]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
clarify Skip() meaning even more (latest version of patch 1516341)
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #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 wxSize wxBitmap_GetSize(wxBitmap *self){
2956 wxSize size(self->GetWidth(), self->GetHeight());
2957 return size;
2958 }
2959 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2960 wxMask *mask = new wxMask(*self, colour);
2961 self->SetMask(mask);
2962 }
2963 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2964 self->SetWidth(size.x);
2965 self->SetHeight(size.y);
2966 }
2967 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2968 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2969
2970 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2971 // appears to me that the other platforms are already doing it, so I'll just
2972 // automatically do it for wxMSW here.
2973 #ifdef __WXMSW__
2974 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2975 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2976 #else
2977 #define wxPy_premultiply(p, a) (p)
2978 #define wxPy_unpremultiply(p, a) (p)
2979 #endif
2980
2981
2982 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2983 buffer data, int DATASIZE,
2984 buffer alpha, int ALPHASIZE)
2985 {
2986 if (DATASIZE != width*height*3) {
2987 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2988 return NULL;
2989 }
2990
2991 if (ALPHASIZE != width*height) {
2992 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2993 return NULL;
2994 }
2995
2996 wxBitmap* bmp = new wxBitmap(width, height, 32);
2997 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2998 if (! pixData) {
2999 // raise an exception...
3000 wxPyErr_SetString(PyExc_RuntimeError,
3001 "Failed to gain raw access to bitmap data.");
3002 return NULL;
3003 }
3004
3005 pixData.UseAlpha();
3006 wxAlphaPixelData::Iterator p(pixData);
3007 for (int y=0; y<height; y++) {
3008 wxAlphaPixelData::Iterator rowStart = p;
3009 for (int x=0; x<width; x++) {
3010 byte a = *(alpha++);
3011 p.Red() = wxPy_premultiply(*(data++), a);
3012 p.Green() = wxPy_premultiply(*(data++), a);
3013 p.Blue() = wxPy_premultiply(*(data++), a);
3014 p.Alpha() = a;
3015 ++p;
3016 }
3017 p = rowStart;
3018 p.OffsetY(pixData, 1);
3019 }
3020 return bmp;
3021 }
3022
3023 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3024 {
3025 if (DATASIZE != width*height*3) {
3026 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3027 return NULL;
3028 }
3029
3030 wxBitmap* bmp = new wxBitmap(width, height, 24);
3031 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3032 if (! pixData) {
3033 // raise an exception...
3034 wxPyErr_SetString(PyExc_RuntimeError,
3035 "Failed to gain raw access to bitmap data.");
3036 return NULL;
3037 }
3038
3039 wxNativePixelData::Iterator p(pixData);
3040 for (int y=0; y<height; y++) {
3041 wxNativePixelData::Iterator rowStart = p;
3042 for (int x=0; x<width; x++) {
3043 p.Red() = *(data++);
3044 p.Green() = *(data++);
3045 p.Blue() = *(data++);
3046 ++p;
3047 }
3048 p = rowStart;
3049 p.OffsetY(pixData, 1);
3050 }
3051 return bmp;
3052 }
3053
3054
3055 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3056 {
3057 if (DATASIZE != width*height*4) {
3058 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3059 return NULL;
3060 }
3061
3062 wxBitmap* bmp = new wxBitmap(width, height, 32);
3063 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3064 if (! pixData) {
3065 // raise an exception...
3066 wxPyErr_SetString(PyExc_RuntimeError,
3067 "Failed to gain raw access to bitmap data.");
3068 return NULL;
3069 }
3070
3071 pixData.UseAlpha();
3072 wxAlphaPixelData::Iterator p(pixData);
3073 for (int y=0; y<height; y++) {
3074 wxAlphaPixelData::Iterator rowStart = p;
3075 for (int x=0; x<width; x++) {
3076 byte a = data[3];
3077 p.Red() = wxPy_premultiply(*(data++), a);
3078 p.Green() = wxPy_premultiply(*(data++), a);
3079 p.Blue() = wxPy_premultiply(*(data++), a);
3080 p.Alpha() = a; data++;
3081 ++p;
3082 }
3083 p = rowStart;
3084 p.OffsetY(pixData, 1);
3085 }
3086 return bmp;
3087 }
3088
3089
3090 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3091
3092 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3093 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3094 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3095 self->Red() = red;
3096 self->Green() = green;
3097 self->Blue() = blue;
3098 }
3099 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3100 PyObject* rv = PyTuple_New(3);
3101 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3102 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3103 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3104 return rv;
3105 }
3106
3107 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3108
3109 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3110 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3111 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3112 self->Red() = wxPy_premultiply(red, alpha);
3113 self->Green() = wxPy_premultiply(green, alpha);
3114 self->Blue() = wxPy_premultiply(blue, alpha);
3115 self->Alpha() = alpha;
3116 }
3117 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3118 PyObject* rv = PyTuple_New(4);
3119 int red = self->Red();
3120 int green = self->Green();
3121 int blue = self->Blue();
3122 int alpha = self->Alpha();
3123
3124 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3125 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3126 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3127 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3128 return rv;
3129 }
3130 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3131 if ( !colour.IsOk() )
3132 return new wxMask(bitmap, *wxBLACK);
3133 else
3134 return new wxMask(bitmap, colour);
3135 }
3136
3137 #include <wx/iconbndl.h>
3138
3139 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3140 wxIcon* icon = new wxIcon();
3141 icon->CopyFromBitmap(bmp);
3142 return icon;
3143 }
3144 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3145 char** cArray = NULL;
3146 wxIcon* icon;
3147
3148 cArray = ConvertListOfStrings(listOfStrings);
3149 if (! cArray)
3150 return NULL;
3151 icon = new wxIcon(cArray);
3152 delete [] cArray;
3153 return icon;
3154 }
3155 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3156
3157
3158
3159 return new wxIconLocation(*filename);
3160
3161 }
3162 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3163
3164
3165
3166 // do nothing
3167
3168 }
3169 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3170
3171
3172
3173 return -1;
3174
3175 }
3176 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3177 #ifdef __WXGTK__
3178 wxImage img(cursorName, type);
3179 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3180 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3181 return new wxCursor(img);
3182 #else
3183 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3184 #endif
3185 }
3186
3187
3188 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3189 (*self) ++;
3190 }
3191 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3192 return self->operator bool();
3193 }
3194
3195 #include <wx/fontutil.h>
3196 #include <wx/fontmap.h>
3197 #include <wx/fontenum.h>
3198
3199 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3200 return self->ToString();
3201 }
3202
3203 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3204 static wxNativeEncodingInfo info;
3205 if ( wxGetNativeFontEncoding(encoding, &info) )
3206 return &info;
3207 else
3208 return NULL;
3209 }
3210
3211
3212 SWIGINTERNINLINE PyObject *
3213 SWIG_From_size_t (size_t value)
3214 {
3215 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3216 }
3217
3218
3219 SWIGINTERNINLINE int
3220 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3221 {
3222 unsigned long v;
3223 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3224 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3225 return res;
3226 }
3227
3228 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3229 wxFontEncoding alt_enc;
3230 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3231 return PyInt_FromLong(alt_enc);
3232 else {
3233 Py_INCREF(Py_None);
3234 return Py_None;
3235 }
3236 }
3237 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3238 wxNativeFontInfo nfi;
3239 nfi.FromString(info);
3240 return new wxFont(nfi);
3241 }
3242 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3243 return wxFont::New(pointSize, family, flags, face, encoding);
3244 }
3245 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3246 return wxFontBase::New(pixelSize, family,
3247 style, weight, underlined,
3248 face, encoding);
3249 }
3250 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3251 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3252 }
3253 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3254 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3255
3256 class wxPyFontEnumerator : public wxFontEnumerator {
3257 public:
3258 wxPyFontEnumerator() {}
3259 ~wxPyFontEnumerator() {}
3260
3261 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3262 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3263
3264 PYPRIVATE;
3265 };
3266
3267 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3268 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3269
3270
3271 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3272 PyObject* ret;
3273 wxArrayString arr = wxFontEnumerator::GetEncodings();
3274 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3275 ret = wxArrayString2PyList_helper(arr);
3276 wxPyEndBlockThreads(blocked);
3277 return ret;
3278 }
3279 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3280 PyObject* ret;
3281 wxArrayString arr = wxFontEnumerator::GetFacenames();
3282 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3283 ret = wxArrayString2PyList_helper(arr);
3284 wxPyEndBlockThreads(blocked);
3285 return ret;
3286 }
3287
3288 #include <locale.h>
3289
3290 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3291 wxLocale* loc;
3292 if (language == -1)
3293 loc = new wxLocale();
3294 else
3295 loc = new wxLocale(language, flags);
3296 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3297 // for the floating point conversions and such to work right.
3298 #if PY_VERSION_HEX < 0x02040000
3299 setlocale(LC_NUMERIC, "C");
3300 #endif
3301 return loc;
3302 }
3303 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3304 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3305 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3306 // for the floating point conversions and such to work right.
3307 #if PY_VERSION_HEX < 0x02040000
3308 setlocale(LC_NUMERIC, "C");
3309 #endif
3310 return rc;
3311 }
3312 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3313 bool rc = self->Init(language, flags);
3314 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3315 // for the floating point conversions and such to work right.
3316 #if PY_VERSION_HEX < 0x02040000
3317 setlocale(LC_NUMERIC, "C");
3318 #endif
3319 return rc;
3320 }
3321
3322 class wxPyLocale : public wxLocale
3323 {
3324 public:
3325 wxPyLocale();
3326
3327 wxPyLocale(const wxChar *szName, // name (for messages)
3328 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3329 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3330 bool bLoadDefault = true, // preload wxstd.mo?
3331 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3332
3333 wxPyLocale(int language, // wxLanguage id or custom language
3334 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3335
3336 ~wxPyLocale();
3337
3338 virtual const wxChar *GetString(const wxChar *szOrigString,
3339 const wxChar *szDomain = NULL) const;
3340 virtual const wxChar *GetString(const wxChar *szOrigString,
3341 const wxChar *szOrigString2, size_t n,
3342 const wxChar *szDomain = NULL) const;
3343
3344 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3345 const wxChar *szDomain = NULL) const;
3346 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3347 const wxChar *szOrigString2, size_t n,
3348 const wxChar *szDomain = NULL) const;
3349
3350 PYPRIVATE;
3351 private:
3352 DECLARE_NO_COPY_CLASS(wxPyLocale)
3353 };
3354
3355 wxPyLocale::wxPyLocale() : wxLocale()
3356 {
3357 }
3358
3359 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3360 const wxChar *szShort, // dir prefix (for msg files)
3361 const wxChar *szLocale, // locale (for setlocale)
3362 bool bLoadDefault, // preload wxstd.mo?
3363 bool bConvertEncoding) // convert Win<->Unix if necessary?
3364 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3365 {
3366 }
3367
3368 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3369 int flags) : wxLocale(language, flags)
3370 {
3371 }
3372
3373 wxPyLocale::~wxPyLocale()
3374 {
3375 }
3376
3377 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3378 const wxChar *szDomain) const
3379 {
3380 wxChar *str = GetSingularString(szOrigString, szDomain);
3381 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3382 }
3383
3384 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3385 const wxChar *szOrigString2, size_t n,
3386 const wxChar *szDomain) const
3387 {
3388 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3389 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3390 }
3391
3392 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3393 const wxChar *szDomain) const
3394 {
3395 bool found;
3396 static wxString str;
3397 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.
3398 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3399 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3400 PyObject* param1 = wx2PyString(szOrigString);
3401 PyObject* param2 = wx2PyString(szDomain);
3402 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3403 Py_DECREF(param1);
3404 Py_DECREF(param2);
3405 if (ret) {
3406 str = Py2wxString(ret);
3407 Py_DECREF(ret);
3408 }
3409 }
3410 wxPyEndBlockThreads(blocked);
3411 return (found ? (wxChar*)str.c_str() : NULL);
3412 }
3413
3414 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3415 const wxChar *szOrigString2, size_t n,
3416 const wxChar *szDomain) const
3417 {
3418 bool found;
3419 static wxString str;
3420 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.
3421 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3422 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3423 PyObject* param1 = wx2PyString(szOrigString);
3424 PyObject* param2 = wx2PyString(szOrigString2);
3425 PyObject* param4 = wx2PyString(szDomain);
3426 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3427 Py_DECREF(param1);
3428 Py_DECREF(param2);
3429 Py_DECREF(param4);
3430 if( ret) {
3431 str = Py2wxString(ret);
3432 Py_DECREF(ret);
3433 }
3434 }
3435 wxPyEndBlockThreads(blocked);
3436 return (found ? (wxChar*)str.c_str() : NULL);
3437 }
3438
3439 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3440 wxPyLocale* loc;
3441 if (language == -1)
3442 loc = new wxPyLocale();
3443 else
3444 loc = new wxPyLocale(language, flags);
3445 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3446 // for the floating point conversions and such to work right.
3447 #if PY_VERSION_HEX < 0x02040000
3448 setlocale(LC_NUMERIC, "C");
3449 #endif
3450 return loc;
3451 }
3452
3453 #include "wx/wxPython/pydrawxxx.h"
3454
3455 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3456 wxColour col;
3457 self->GetPixel(x, y, &col);
3458 return col;
3459 }
3460 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3461 wxColour col;
3462 self->GetPixel(pt, &col);
3463 return col;
3464 }
3465
3466 SWIGINTERN int
3467 SWIG_AsVal_double (PyObject *obj, double* val)
3468 {
3469 if (PyNumber_Check(obj)) {
3470 if (val) *val = PyFloat_AsDouble(obj);
3471 return SWIG_OK;
3472 }
3473 return SWIG_TypeError;
3474 }
3475
3476 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3477 wxRect rv;
3478 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3479 return rv;
3480 }
3481 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3482 wxRect rect;
3483 self->GetClippingBox(rect);
3484 return rect;
3485 }
3486 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3487 wxArrayInt widths;
3488 self->GetPartialTextExtents(text, widths);
3489 return widths;
3490 }
3491
3492 #define SWIG_From_double PyFloat_FromDouble
3493
3494 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3495 self->SetLogicalOrigin(point.x, point.y);
3496 }
3497 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3498 self->SetDeviceOrigin(point.x, point.y);
3499 }
3500 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3501 self->CalcBoundingBox(point.x, point.y);
3502 }
3503 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3504 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3505 }
3506 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3507 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3508 }
3509 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3510 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3511 }
3512 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3513 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3514 }
3515 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3516 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3517 }
3518 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3519 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3520 }
3521
3522 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3523 *x1 = dc->MinX();
3524 *y1 = dc->MinY();
3525 *x2 = dc->MaxX();
3526 *y2 = dc->MaxY();
3527 }
3528
3529
3530 #include <wx/dcbuffer.h>
3531
3532
3533 #include <wx/dcps.h>
3534
3535
3536 class wxMetaFile : public wxObject {
3537 public:
3538 wxMetaFile(const wxString&)
3539 { wxPyRaiseNotImplemented(); }
3540 };
3541
3542 class wxMetaFileDC : public wxClientDC {
3543 public:
3544 wxMetaFileDC(const wxString&, int, int, const wxString&)
3545 { wxPyRaiseNotImplemented(); }
3546 };
3547
3548
3549
3550 class wxPrinterDC : public wxClientDC {
3551 public:
3552 wxPrinterDC(const wxPrintData&)
3553 { wxPyRaiseNotImplemented(); }
3554
3555 };
3556
3557
3558 #include <wx/graphics.h>
3559
3560
3561 #if !wxUSE_GRAPHICS_CONTEXT
3562 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3563
3564 class wxGraphicsPath
3565 {
3566 public :
3567 wxGraphicsPath() {
3568 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3569 PyErr_SetString(PyExc_NotImplementedError,
3570 "wxGraphicsPath is not available on this platform.");
3571 wxPyEndBlockThreads(blocked);
3572 }
3573 virtual ~wxGraphicsPath() {}
3574
3575 void MoveToPoint( wxDouble, wxDouble ) {}
3576 void AddLineToPoint( wxDouble, wxDouble ) {}
3577 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3578 void CloseSubpath() {}
3579 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3580 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3581
3582 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3583 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3584 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3585 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3586
3587 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3588 void MoveToPoint( const wxPoint2DDouble& ) {}
3589 void AddLineToPoint( const wxPoint2DDouble&) {}
3590 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3591 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3592 };
3593
3594
3595 class wxGraphicsContext
3596 {
3597 public:
3598 wxGraphicsContext() {
3599 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3600 PyErr_SetString(PyExc_NotImplementedError,
3601 "wxGraphicsContext is not available on this platform.");
3602 wxPyEndBlockThreads(blocked);
3603 }
3604 virtual ~wxGraphicsContext() {}
3605
3606 static wxGraphicsContext* Create( const wxWindowDC&) {
3607 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3608 PyErr_SetString(PyExc_NotImplementedError,
3609 "wxGraphicsPath is not available on this platform.");
3610 wxPyEndBlockThreads(blocked);
3611 return NULL;
3612 }
3613
3614 wxGraphicsPath * CreatePath() { return NULL; }
3615 void PushState() {}
3616 void PopState() {}
3617 void Clip( const wxRegion & ) {}
3618 void Translate( wxDouble , wxDouble ) {}
3619 void Scale( wxDouble , wxDouble ) {}
3620 void Rotate( wxDouble ) {}
3621 void SetPen( const wxPen & ) {}
3622 void SetBrush( const wxBrush & ) {}
3623 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3624 const wxColour&, const wxColour&) {}
3625 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3626 const wxColour &, const wxColour &) {}
3627 void SetFont( const wxFont & ) {}
3628 void SetTextColor( const wxColour & ) {}
3629 void StrokePath( const wxGraphicsPath * ) {}
3630 void FillPath( const wxGraphicsPath *, int ) {}
3631 void DrawPath( const wxGraphicsPath *, int ) {}
3632 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3633 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3634 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3635 wxDouble *, wxDouble * ) const {}
3636 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3637 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3638 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3639 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3640 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3641 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3642 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3643 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3644 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3645 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3646 };
3647
3648
3649 class wxGCDC: public wxWindowDC
3650 {
3651 public:
3652 wxGCDC(const wxWindowDC&) {
3653 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3654 PyErr_SetString(PyExc_NotImplementedError,
3655 "wxGCDC is not available on this platform.");
3656 wxPyEndBlockThreads(blocked);
3657 }
3658
3659 wxGCDC() {
3660 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3661 PyErr_SetString(PyExc_NotImplementedError,
3662 "wxGCDC is not available on this platform.");
3663 wxPyEndBlockThreads(blocked);
3664 }
3665
3666 virtual ~wxGCDC() {}
3667
3668 wxGraphicsContext* GetGraphicContext() { return NULL; }
3669 };
3670
3671 #endif
3672
3673 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3674 wxArrayDouble widths;
3675 self->GetPartialTextExtents(text, widths);
3676 return widths;
3677 }
3678 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3679 size_t c1, c2, count;
3680 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3681 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3682
3683 if ( beginP != NULL && endP != NULL )
3684 {
3685 count = wxMin(c1, c2);
3686 self->StrokeLines(count, beginP, endP);
3687 }
3688 delete [] beginP;
3689 delete [] endP;
3690 }
3691
3692 #include "wx/dcgraph.h"
3693
3694
3695
3696 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3697 self->AddColour(name, wxColour(red, green, blue));
3698 }
3699
3700 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3701 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3702 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3703 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3704
3705
3706 #include <wx/effects.h>
3707
3708
3709 #include "wx/renderer.h"
3710
3711
3712 SWIGINTERNINLINE PyObject*
3713 SWIG_From_bool (bool value)
3714 {
3715 return PyBool_FromLong(value ? 1 : 0);
3716 }
3717
3718
3719 #include "wx/wxPython/pseudodc.h"
3720
3721 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3722 wxRect rect;
3723 self->GetIdBounds(id, rect);
3724 return rect;
3725 }
3726 #ifdef __cplusplus
3727 extern "C" {
3728 #endif
3729 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3730 PyObject *resultobj = 0;
3731 wxGDIObject *result = 0 ;
3732
3733 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3734 {
3735 if (!wxPyCheckForApp()) SWIG_fail;
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = (wxGDIObject *)new wxGDIObject();
3738 wxPyEndAllowThreads(__tstate);
3739 if (PyErr_Occurred()) SWIG_fail;
3740 }
3741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3742 return resultobj;
3743 fail:
3744 return NULL;
3745 }
3746
3747
3748 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3749 PyObject *resultobj = 0;
3750 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3751 void *argp1 = 0 ;
3752 int res1 = 0 ;
3753 PyObject *swig_obj[1] ;
3754
3755 if (!args) SWIG_fail;
3756 swig_obj[0] = args;
3757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3758 if (!SWIG_IsOK(res1)) {
3759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3760 }
3761 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3762 {
3763 PyThreadState* __tstate = wxPyBeginAllowThreads();
3764 delete arg1;
3765
3766 wxPyEndAllowThreads(__tstate);
3767 if (PyErr_Occurred()) SWIG_fail;
3768 }
3769 resultobj = SWIG_Py_Void();
3770 return resultobj;
3771 fail:
3772 return NULL;
3773 }
3774
3775
3776 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3777 PyObject *resultobj = 0;
3778 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3779 bool result;
3780 void *argp1 = 0 ;
3781 int res1 = 0 ;
3782 PyObject *swig_obj[1] ;
3783
3784 if (!args) SWIG_fail;
3785 swig_obj[0] = args;
3786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3787 if (!SWIG_IsOK(res1)) {
3788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3789 }
3790 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3791 {
3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
3793 result = (bool)(arg1)->IsNull();
3794 wxPyEndAllowThreads(__tstate);
3795 if (PyErr_Occurred()) SWIG_fail;
3796 }
3797 {
3798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3799 }
3800 return resultobj;
3801 fail:
3802 return NULL;
3803 }
3804
3805
3806 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3807 PyObject *obj;
3808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3809 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3810 return SWIG_Py_Void();
3811 }
3812
3813 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3814 return SWIG_Python_InitShadowInstance(args);
3815 }
3816
3817 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3818 PyObject *resultobj = 0;
3819 byte arg1 = (byte) 0 ;
3820 byte arg2 = (byte) 0 ;
3821 byte arg3 = (byte) 0 ;
3822 byte arg4 = (byte) wxALPHA_OPAQUE ;
3823 wxColour *result = 0 ;
3824 unsigned char val1 ;
3825 int ecode1 = 0 ;
3826 unsigned char val2 ;
3827 int ecode2 = 0 ;
3828 unsigned char val3 ;
3829 int ecode3 = 0 ;
3830 unsigned char val4 ;
3831 int ecode4 = 0 ;
3832 PyObject * obj0 = 0 ;
3833 PyObject * obj1 = 0 ;
3834 PyObject * obj2 = 0 ;
3835 PyObject * obj3 = 0 ;
3836 char * kwnames[] = {
3837 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3838 };
3839
3840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3841 if (obj0) {
3842 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3843 if (!SWIG_IsOK(ecode1)) {
3844 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3845 }
3846 arg1 = static_cast< byte >(val1);
3847 }
3848 if (obj1) {
3849 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3850 if (!SWIG_IsOK(ecode2)) {
3851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3852 }
3853 arg2 = static_cast< byte >(val2);
3854 }
3855 if (obj2) {
3856 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3857 if (!SWIG_IsOK(ecode3)) {
3858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3859 }
3860 arg3 = static_cast< byte >(val3);
3861 }
3862 if (obj3) {
3863 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3864 if (!SWIG_IsOK(ecode4)) {
3865 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3866 }
3867 arg4 = static_cast< byte >(val4);
3868 }
3869 {
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3876 return resultobj;
3877 fail:
3878 return NULL;
3879 }
3880
3881
3882 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3883 PyObject *resultobj = 0;
3884 wxString *arg1 = 0 ;
3885 wxColour *result = 0 ;
3886 bool temp1 = false ;
3887 PyObject * obj0 = 0 ;
3888 char * kwnames[] = {
3889 (char *) "colorName", NULL
3890 };
3891
3892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3893 {
3894 arg1 = wxString_in_helper(obj0);
3895 if (arg1 == NULL) SWIG_fail;
3896 temp1 = true;
3897 }
3898 {
3899 if (!wxPyCheckForApp()) SWIG_fail;
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (wxColour *)new wxColour((wxString const &)*arg1);
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3906 {
3907 if (temp1)
3908 delete arg1;
3909 }
3910 return resultobj;
3911 fail:
3912 {
3913 if (temp1)
3914 delete arg1;
3915 }
3916 return NULL;
3917 }
3918
3919
3920 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3921 PyObject *resultobj = 0;
3922 unsigned long arg1 ;
3923 wxColour *result = 0 ;
3924 unsigned long val1 ;
3925 int ecode1 = 0 ;
3926 PyObject * obj0 = 0 ;
3927 char * kwnames[] = {
3928 (char *) "colRGB", NULL
3929 };
3930
3931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3932 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3933 if (!SWIG_IsOK(ecode1)) {
3934 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3935 }
3936 arg1 = static_cast< unsigned long >(val1);
3937 {
3938 PyThreadState* __tstate = wxPyBeginAllowThreads();
3939 result = (wxColour *)new wxColour(arg1);
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 }
3943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3944 return resultobj;
3945 fail:
3946 return NULL;
3947 }
3948
3949
3950 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3951 PyObject *resultobj = 0;
3952 wxColour *arg1 = (wxColour *) 0 ;
3953 void *argp1 = 0 ;
3954 int res1 = 0 ;
3955 PyObject *swig_obj[1] ;
3956
3957 if (!args) SWIG_fail;
3958 swig_obj[0] = args;
3959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3960 if (!SWIG_IsOK(res1)) {
3961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3962 }
3963 arg1 = reinterpret_cast< wxColour * >(argp1);
3964 {
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 delete arg1;
3967
3968 wxPyEndAllowThreads(__tstate);
3969 if (PyErr_Occurred()) SWIG_fail;
3970 }
3971 resultobj = SWIG_Py_Void();
3972 return resultobj;
3973 fail:
3974 return NULL;
3975 }
3976
3977
3978 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3979 PyObject *resultobj = 0;
3980 wxColour *arg1 = (wxColour *) 0 ;
3981 byte result;
3982 void *argp1 = 0 ;
3983 int res1 = 0 ;
3984 PyObject *swig_obj[1] ;
3985
3986 if (!args) SWIG_fail;
3987 swig_obj[0] = args;
3988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3989 if (!SWIG_IsOK(res1)) {
3990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3991 }
3992 arg1 = reinterpret_cast< wxColour * >(argp1);
3993 {
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 result = (byte)(arg1)->Red();
3996 wxPyEndAllowThreads(__tstate);
3997 if (PyErr_Occurred()) SWIG_fail;
3998 }
3999 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4000 return resultobj;
4001 fail:
4002 return NULL;
4003 }
4004
4005
4006 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4007 PyObject *resultobj = 0;
4008 wxColour *arg1 = (wxColour *) 0 ;
4009 byte result;
4010 void *argp1 = 0 ;
4011 int res1 = 0 ;
4012 PyObject *swig_obj[1] ;
4013
4014 if (!args) SWIG_fail;
4015 swig_obj[0] = args;
4016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4017 if (!SWIG_IsOK(res1)) {
4018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4019 }
4020 arg1 = reinterpret_cast< wxColour * >(argp1);
4021 {
4022 PyThreadState* __tstate = wxPyBeginAllowThreads();
4023 result = (byte)(arg1)->Green();
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4028 return resultobj;
4029 fail:
4030 return NULL;
4031 }
4032
4033
4034 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4035 PyObject *resultobj = 0;
4036 wxColour *arg1 = (wxColour *) 0 ;
4037 byte result;
4038 void *argp1 = 0 ;
4039 int res1 = 0 ;
4040 PyObject *swig_obj[1] ;
4041
4042 if (!args) SWIG_fail;
4043 swig_obj[0] = args;
4044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4045 if (!SWIG_IsOK(res1)) {
4046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4047 }
4048 arg1 = reinterpret_cast< wxColour * >(argp1);
4049 {
4050 PyThreadState* __tstate = wxPyBeginAllowThreads();
4051 result = (byte)(arg1)->Blue();
4052 wxPyEndAllowThreads(__tstate);
4053 if (PyErr_Occurred()) SWIG_fail;
4054 }
4055 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4056 return resultobj;
4057 fail:
4058 return NULL;
4059 }
4060
4061
4062 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4063 PyObject *resultobj = 0;
4064 wxColour *arg1 = (wxColour *) 0 ;
4065 byte result;
4066 void *argp1 = 0 ;
4067 int res1 = 0 ;
4068 PyObject *swig_obj[1] ;
4069
4070 if (!args) SWIG_fail;
4071 swig_obj[0] = args;
4072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4073 if (!SWIG_IsOK(res1)) {
4074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4075 }
4076 arg1 = reinterpret_cast< wxColour * >(argp1);
4077 {
4078 PyThreadState* __tstate = wxPyBeginAllowThreads();
4079 result = (byte)(arg1)->Alpha();
4080 wxPyEndAllowThreads(__tstate);
4081 if (PyErr_Occurred()) SWIG_fail;
4082 }
4083 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4084 return resultobj;
4085 fail:
4086 return NULL;
4087 }
4088
4089
4090 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4091 PyObject *resultobj = 0;
4092 wxColour *arg1 = (wxColour *) 0 ;
4093 bool result;
4094 void *argp1 = 0 ;
4095 int res1 = 0 ;
4096 PyObject *swig_obj[1] ;
4097
4098 if (!args) SWIG_fail;
4099 swig_obj[0] = args;
4100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4101 if (!SWIG_IsOK(res1)) {
4102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4103 }
4104 arg1 = reinterpret_cast< wxColour * >(argp1);
4105 {
4106 PyThreadState* __tstate = wxPyBeginAllowThreads();
4107 result = (bool)(arg1)->IsOk();
4108 wxPyEndAllowThreads(__tstate);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 }
4111 {
4112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4113 }
4114 return resultobj;
4115 fail:
4116 return NULL;
4117 }
4118
4119
4120 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4121 PyObject *resultobj = 0;
4122 wxColour *arg1 = (wxColour *) 0 ;
4123 byte arg2 ;
4124 byte arg3 ;
4125 byte arg4 ;
4126 byte arg5 = (byte) wxALPHA_OPAQUE ;
4127 void *argp1 = 0 ;
4128 int res1 = 0 ;
4129 unsigned char val2 ;
4130 int ecode2 = 0 ;
4131 unsigned char val3 ;
4132 int ecode3 = 0 ;
4133 unsigned char val4 ;
4134 int ecode4 = 0 ;
4135 unsigned char val5 ;
4136 int ecode5 = 0 ;
4137 PyObject * obj0 = 0 ;
4138 PyObject * obj1 = 0 ;
4139 PyObject * obj2 = 0 ;
4140 PyObject * obj3 = 0 ;
4141 PyObject * obj4 = 0 ;
4142 char * kwnames[] = {
4143 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4144 };
4145
4146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4148 if (!SWIG_IsOK(res1)) {
4149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4150 }
4151 arg1 = reinterpret_cast< wxColour * >(argp1);
4152 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4153 if (!SWIG_IsOK(ecode2)) {
4154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4155 }
4156 arg2 = static_cast< byte >(val2);
4157 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4158 if (!SWIG_IsOK(ecode3)) {
4159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4160 }
4161 arg3 = static_cast< byte >(val3);
4162 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4163 if (!SWIG_IsOK(ecode4)) {
4164 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4165 }
4166 arg4 = static_cast< byte >(val4);
4167 if (obj4) {
4168 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4169 if (!SWIG_IsOK(ecode5)) {
4170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4171 }
4172 arg5 = static_cast< byte >(val5);
4173 }
4174 {
4175 PyThreadState* __tstate = wxPyBeginAllowThreads();
4176 (arg1)->Set(arg2,arg3,arg4,arg5);
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 resultobj = SWIG_Py_Void();
4181 return resultobj;
4182 fail:
4183 return NULL;
4184 }
4185
4186
4187 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj = 0;
4189 wxColour *arg1 = (wxColour *) 0 ;
4190 unsigned long arg2 ;
4191 void *argp1 = 0 ;
4192 int res1 = 0 ;
4193 unsigned long val2 ;
4194 int ecode2 = 0 ;
4195 PyObject * obj0 = 0 ;
4196 PyObject * obj1 = 0 ;
4197 char * kwnames[] = {
4198 (char *) "self",(char *) "colRGB", NULL
4199 };
4200
4201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4203 if (!SWIG_IsOK(res1)) {
4204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4205 }
4206 arg1 = reinterpret_cast< wxColour * >(argp1);
4207 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4208 if (!SWIG_IsOK(ecode2)) {
4209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4210 }
4211 arg2 = static_cast< unsigned long >(val2);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 (arg1)->Set(arg2);
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_Py_Void();
4219 return resultobj;
4220 fail:
4221 return NULL;
4222 }
4223
4224
4225 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj = 0;
4227 wxColour *arg1 = (wxColour *) 0 ;
4228 wxString *arg2 = 0 ;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 bool temp2 = false ;
4232 PyObject * obj0 = 0 ;
4233 PyObject * obj1 = 0 ;
4234 char * kwnames[] = {
4235 (char *) "self",(char *) "colourName", NULL
4236 };
4237
4238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4240 if (!SWIG_IsOK(res1)) {
4241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4242 }
4243 arg1 = reinterpret_cast< wxColour * >(argp1);
4244 {
4245 arg2 = wxString_in_helper(obj1);
4246 if (arg2 == NULL) SWIG_fail;
4247 temp2 = true;
4248 }
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 (arg1)->Set((wxString const &)*arg2);
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_Py_Void();
4256 {
4257 if (temp2)
4258 delete arg2;
4259 }
4260 return resultobj;
4261 fail:
4262 {
4263 if (temp2)
4264 delete arg2;
4265 }
4266 return NULL;
4267 }
4268
4269
4270 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj = 0;
4272 wxColour *arg1 = (wxColour *) 0 ;
4273 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4274 wxString result;
4275 void *argp1 = 0 ;
4276 int res1 = 0 ;
4277 long val2 ;
4278 int ecode2 = 0 ;
4279 PyObject * obj0 = 0 ;
4280 PyObject * obj1 = 0 ;
4281 char * kwnames[] = {
4282 (char *) "self",(char *) "flags", NULL
4283 };
4284
4285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4287 if (!SWIG_IsOK(res1)) {
4288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4289 }
4290 arg1 = reinterpret_cast< wxColour * >(argp1);
4291 if (obj1) {
4292 ecode2 = SWIG_AsVal_long(obj1, &val2);
4293 if (!SWIG_IsOK(ecode2)) {
4294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4295 }
4296 arg2 = static_cast< long >(val2);
4297 }
4298 {
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 result = ((wxColour const *)arg1)->GetAsString(arg2);
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 {
4305 #if wxUSE_UNICODE
4306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4307 #else
4308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4309 #endif
4310 }
4311 return resultobj;
4312 fail:
4313 return NULL;
4314 }
4315
4316
4317 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4318 PyObject *resultobj = 0;
4319 wxColour *arg1 = (wxColour *) 0 ;
4320 long result;
4321 void *argp1 = 0 ;
4322 int res1 = 0 ;
4323 PyObject *swig_obj[1] ;
4324
4325 if (!args) SWIG_fail;
4326 swig_obj[0] = args;
4327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4328 if (!SWIG_IsOK(res1)) {
4329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4330 }
4331 arg1 = reinterpret_cast< wxColour * >(argp1);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 result = (long)((wxColour const *)arg1)->GetPixel();
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_From_long(static_cast< long >(result));
4339 return resultobj;
4340 fail:
4341 return NULL;
4342 }
4343
4344
4345 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxColour *arg1 = (wxColour *) 0 ;
4348 PyObject *arg2 = (PyObject *) 0 ;
4349 bool result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 PyObject * obj0 = 0 ;
4353 PyObject * obj1 = 0 ;
4354 char * kwnames[] = {
4355 (char *) "self",(char *) "other", NULL
4356 };
4357
4358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4360 if (!SWIG_IsOK(res1)) {
4361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4362 }
4363 arg1 = reinterpret_cast< wxColour * >(argp1);
4364 arg2 = obj1;
4365 {
4366 result = (bool)wxColour___eq__(arg1,arg2);
4367 if (PyErr_Occurred()) SWIG_fail;
4368 }
4369 {
4370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4371 }
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4379 PyObject *resultobj = 0;
4380 wxColour *arg1 = (wxColour *) 0 ;
4381 PyObject *arg2 = (PyObject *) 0 ;
4382 bool result;
4383 void *argp1 = 0 ;
4384 int res1 = 0 ;
4385 PyObject * obj0 = 0 ;
4386 PyObject * obj1 = 0 ;
4387 char * kwnames[] = {
4388 (char *) "self",(char *) "other", NULL
4389 };
4390
4391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4395 }
4396 arg1 = reinterpret_cast< wxColour * >(argp1);
4397 arg2 = obj1;
4398 {
4399 result = (bool)wxColour___ne__(arg1,arg2);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 {
4403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4404 }
4405 return resultobj;
4406 fail:
4407 return NULL;
4408 }
4409
4410
4411 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4412 PyObject *resultobj = 0;
4413 wxColour *arg1 = (wxColour *) 0 ;
4414 bool arg2 = (bool) false ;
4415 PyObject *result = 0 ;
4416 void *argp1 = 0 ;
4417 int res1 = 0 ;
4418 bool val2 ;
4419 int ecode2 = 0 ;
4420 PyObject * obj0 = 0 ;
4421 PyObject * obj1 = 0 ;
4422 char * kwnames[] = {
4423 (char *) "self",(char *) "includeAlpha", NULL
4424 };
4425
4426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4428 if (!SWIG_IsOK(res1)) {
4429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4430 }
4431 arg1 = reinterpret_cast< wxColour * >(argp1);
4432 if (obj1) {
4433 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4434 if (!SWIG_IsOK(ecode2)) {
4435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4436 }
4437 arg2 = static_cast< bool >(val2);
4438 }
4439 {
4440 result = (PyObject *)wxColour_Get(arg1,arg2);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 resultobj = result;
4444 return resultobj;
4445 fail:
4446 return NULL;
4447 }
4448
4449
4450 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4451 PyObject *resultobj = 0;
4452 wxColour *arg1 = (wxColour *) 0 ;
4453 unsigned long result;
4454 void *argp1 = 0 ;
4455 int res1 = 0 ;
4456 PyObject *swig_obj[1] ;
4457
4458 if (!args) SWIG_fail;
4459 swig_obj[0] = args;
4460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4461 if (!SWIG_IsOK(res1)) {
4462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4463 }
4464 arg1 = reinterpret_cast< wxColour * >(argp1);
4465 {
4466 result = (unsigned long)wxColour_GetRGB(arg1);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4470 return resultobj;
4471 fail:
4472 return NULL;
4473 }
4474
4475
4476 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4477 PyObject *obj;
4478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4479 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4480 return SWIG_Py_Void();
4481 }
4482
4483 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4484 return SWIG_Python_InitShadowInstance(args);
4485 }
4486
4487 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj = 0;
4489 int arg1 ;
4490 unsigned char *arg2 = (unsigned char *) 0 ;
4491 unsigned char *arg3 = (unsigned char *) 0 ;
4492 unsigned char *arg4 = (unsigned char *) 0 ;
4493 wxPalette *result = 0 ;
4494 int val1 ;
4495 int ecode1 = 0 ;
4496 void *argp2 = 0 ;
4497 int res2 = 0 ;
4498 void *argp3 = 0 ;
4499 int res3 = 0 ;
4500 void *argp4 = 0 ;
4501 int res4 = 0 ;
4502 PyObject * obj0 = 0 ;
4503 PyObject * obj1 = 0 ;
4504 PyObject * obj2 = 0 ;
4505 PyObject * obj3 = 0 ;
4506 char * kwnames[] = {
4507 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4508 };
4509
4510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4511 ecode1 = SWIG_AsVal_int(obj0, &val1);
4512 if (!SWIG_IsOK(ecode1)) {
4513 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4514 }
4515 arg1 = static_cast< int >(val1);
4516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4517 if (!SWIG_IsOK(res2)) {
4518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4519 }
4520 arg2 = reinterpret_cast< unsigned char * >(argp2);
4521 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4522 if (!SWIG_IsOK(res3)) {
4523 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4524 }
4525 arg3 = reinterpret_cast< unsigned char * >(argp3);
4526 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4527 if (!SWIG_IsOK(res4)) {
4528 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4529 }
4530 arg4 = reinterpret_cast< unsigned char * >(argp4);
4531 {
4532 if (!wxPyCheckForApp()) SWIG_fail;
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
4534 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4535 wxPyEndAllowThreads(__tstate);
4536 if (PyErr_Occurred()) SWIG_fail;
4537 }
4538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4539 return resultobj;
4540 fail:
4541 return NULL;
4542 }
4543
4544
4545 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4546 PyObject *resultobj = 0;
4547 wxPalette *arg1 = (wxPalette *) 0 ;
4548 void *argp1 = 0 ;
4549 int res1 = 0 ;
4550 PyObject *swig_obj[1] ;
4551
4552 if (!args) SWIG_fail;
4553 swig_obj[0] = args;
4554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4555 if (!SWIG_IsOK(res1)) {
4556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4557 }
4558 arg1 = reinterpret_cast< wxPalette * >(argp1);
4559 {
4560 PyThreadState* __tstate = wxPyBeginAllowThreads();
4561 delete arg1;
4562
4563 wxPyEndAllowThreads(__tstate);
4564 if (PyErr_Occurred()) SWIG_fail;
4565 }
4566 resultobj = SWIG_Py_Void();
4567 return resultobj;
4568 fail:
4569 return NULL;
4570 }
4571
4572
4573 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4574 PyObject *resultobj = 0;
4575 wxPalette *arg1 = (wxPalette *) 0 ;
4576 byte arg2 ;
4577 byte arg3 ;
4578 byte arg4 ;
4579 int result;
4580 void *argp1 = 0 ;
4581 int res1 = 0 ;
4582 unsigned char val2 ;
4583 int ecode2 = 0 ;
4584 unsigned char val3 ;
4585 int ecode3 = 0 ;
4586 unsigned char val4 ;
4587 int ecode4 = 0 ;
4588 PyObject * obj0 = 0 ;
4589 PyObject * obj1 = 0 ;
4590 PyObject * obj2 = 0 ;
4591 PyObject * obj3 = 0 ;
4592 char * kwnames[] = {
4593 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4594 };
4595
4596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4598 if (!SWIG_IsOK(res1)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4600 }
4601 arg1 = reinterpret_cast< wxPalette * >(argp1);
4602 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4603 if (!SWIG_IsOK(ecode2)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4605 }
4606 arg2 = static_cast< byte >(val2);
4607 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4608 if (!SWIG_IsOK(ecode3)) {
4609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4610 }
4611 arg3 = static_cast< byte >(val3);
4612 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4613 if (!SWIG_IsOK(ecode4)) {
4614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4615 }
4616 arg4 = static_cast< byte >(val4);
4617 {
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_From_int(static_cast< int >(result));
4624 return resultobj;
4625 fail:
4626 return NULL;
4627 }
4628
4629
4630 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4631 PyObject *resultobj = 0;
4632 wxPalette *arg1 = (wxPalette *) 0 ;
4633 int arg2 ;
4634 byte *arg3 = (byte *) 0 ;
4635 byte *arg4 = (byte *) 0 ;
4636 byte *arg5 = (byte *) 0 ;
4637 bool result;
4638 void *argp1 = 0 ;
4639 int res1 = 0 ;
4640 int val2 ;
4641 int ecode2 = 0 ;
4642 byte temp3 ;
4643 int res3 = SWIG_TMPOBJ ;
4644 byte temp4 ;
4645 int res4 = SWIG_TMPOBJ ;
4646 byte temp5 ;
4647 int res5 = SWIG_TMPOBJ ;
4648 PyObject * obj0 = 0 ;
4649 PyObject * obj1 = 0 ;
4650 char * kwnames[] = {
4651 (char *) "self",(char *) "pixel", NULL
4652 };
4653
4654 arg3 = &temp3;
4655 arg4 = &temp4;
4656 arg5 = &temp5;
4657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4659 if (!SWIG_IsOK(res1)) {
4660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4661 }
4662 arg1 = reinterpret_cast< wxPalette * >(argp1);
4663 ecode2 = SWIG_AsVal_int(obj1, &val2);
4664 if (!SWIG_IsOK(ecode2)) {
4665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4666 }
4667 arg2 = static_cast< int >(val2);
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4671 wxPyEndAllowThreads(__tstate);
4672 if (PyErr_Occurred()) SWIG_fail;
4673 }
4674 {
4675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4676 }
4677 if (SWIG_IsTmpObj(res3)) {
4678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4679 } else {
4680 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4682 }
4683 if (SWIG_IsTmpObj(res4)) {
4684 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4685 } else {
4686 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4688 }
4689 if (SWIG_IsTmpObj(res5)) {
4690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4691 } else {
4692 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4694 }
4695 return resultobj;
4696 fail:
4697 return NULL;
4698 }
4699
4700
4701 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4702 PyObject *resultobj = 0;
4703 wxPalette *arg1 = (wxPalette *) 0 ;
4704 int result;
4705 void *argp1 = 0 ;
4706 int res1 = 0 ;
4707 PyObject *swig_obj[1] ;
4708
4709 if (!args) SWIG_fail;
4710 swig_obj[0] = args;
4711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4712 if (!SWIG_IsOK(res1)) {
4713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4714 }
4715 arg1 = reinterpret_cast< wxPalette * >(argp1);
4716 {
4717 PyThreadState* __tstate = wxPyBeginAllowThreads();
4718 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4719 wxPyEndAllowThreads(__tstate);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 }
4722 resultobj = SWIG_From_int(static_cast< int >(result));
4723 return resultobj;
4724 fail:
4725 return NULL;
4726 }
4727
4728
4729 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4730 PyObject *resultobj = 0;
4731 wxPalette *arg1 = (wxPalette *) 0 ;
4732 bool result;
4733 void *argp1 = 0 ;
4734 int res1 = 0 ;
4735 PyObject *swig_obj[1] ;
4736
4737 if (!args) SWIG_fail;
4738 swig_obj[0] = args;
4739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4740 if (!SWIG_IsOK(res1)) {
4741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4742 }
4743 arg1 = reinterpret_cast< wxPalette * >(argp1);
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->IsOk();
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 {
4751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4752 }
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4760 PyObject *obj;
4761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4762 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4763 return SWIG_Py_Void();
4764 }
4765
4766 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4767 return SWIG_Python_InitShadowInstance(args);
4768 }
4769
4770 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4771 PyObject *resultobj = 0;
4772 wxColour *arg1 = 0 ;
4773 int arg2 = (int) 1 ;
4774 int arg3 = (int) wxSOLID ;
4775 wxPen *result = 0 ;
4776 wxColour temp1 ;
4777 int val2 ;
4778 int ecode2 = 0 ;
4779 int val3 ;
4780 int ecode3 = 0 ;
4781 PyObject * obj0 = 0 ;
4782 PyObject * obj1 = 0 ;
4783 PyObject * obj2 = 0 ;
4784 char * kwnames[] = {
4785 (char *) "colour",(char *) "width",(char *) "style", NULL
4786 };
4787
4788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4789 {
4790 arg1 = &temp1;
4791 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4792 }
4793 if (obj1) {
4794 ecode2 = SWIG_AsVal_int(obj1, &val2);
4795 if (!SWIG_IsOK(ecode2)) {
4796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4797 }
4798 arg2 = static_cast< int >(val2);
4799 }
4800 if (obj2) {
4801 ecode3 = SWIG_AsVal_int(obj2, &val3);
4802 if (!SWIG_IsOK(ecode3)) {
4803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4804 }
4805 arg3 = static_cast< int >(val3);
4806 }
4807 {
4808 if (!wxPyCheckForApp()) SWIG_fail;
4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
4810 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4815 return resultobj;
4816 fail:
4817 return NULL;
4818 }
4819
4820
4821 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4822 PyObject *resultobj = 0;
4823 wxPen *arg1 = (wxPen *) 0 ;
4824 void *argp1 = 0 ;
4825 int res1 = 0 ;
4826 PyObject *swig_obj[1] ;
4827
4828 if (!args) SWIG_fail;
4829 swig_obj[0] = args;
4830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4831 if (!SWIG_IsOK(res1)) {
4832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4833 }
4834 arg1 = reinterpret_cast< wxPen * >(argp1);
4835 {
4836 PyThreadState* __tstate = wxPyBeginAllowThreads();
4837 delete arg1;
4838
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 resultobj = SWIG_Py_Void();
4843 return resultobj;
4844 fail:
4845 return NULL;
4846 }
4847
4848
4849 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4850 PyObject *resultobj = 0;
4851 wxPen *arg1 = (wxPen *) 0 ;
4852 int result;
4853 void *argp1 = 0 ;
4854 int res1 = 0 ;
4855 PyObject *swig_obj[1] ;
4856
4857 if (!args) SWIG_fail;
4858 swig_obj[0] = args;
4859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4860 if (!SWIG_IsOK(res1)) {
4861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4862 }
4863 arg1 = reinterpret_cast< wxPen * >(argp1);
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 result = (int)(arg1)->GetCap();
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = SWIG_From_int(static_cast< int >(result));
4871 return resultobj;
4872 fail:
4873 return NULL;
4874 }
4875
4876
4877 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4878 PyObject *resultobj = 0;
4879 wxPen *arg1 = (wxPen *) 0 ;
4880 wxColour result;
4881 void *argp1 = 0 ;
4882 int res1 = 0 ;
4883 PyObject *swig_obj[1] ;
4884
4885 if (!args) SWIG_fail;
4886 swig_obj[0] = args;
4887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4890 }
4891 arg1 = reinterpret_cast< wxPen * >(argp1);
4892 {
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 result = (arg1)->GetColour();
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4899 return resultobj;
4900 fail:
4901 return NULL;
4902 }
4903
4904
4905 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4906 PyObject *resultobj = 0;
4907 wxPen *arg1 = (wxPen *) 0 ;
4908 int result;
4909 void *argp1 = 0 ;
4910 int res1 = 0 ;
4911 PyObject *swig_obj[1] ;
4912
4913 if (!args) SWIG_fail;
4914 swig_obj[0] = args;
4915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4916 if (!SWIG_IsOK(res1)) {
4917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4918 }
4919 arg1 = reinterpret_cast< wxPen * >(argp1);
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 result = (int)(arg1)->GetJoin();
4923 wxPyEndAllowThreads(__tstate);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 }
4926 resultobj = SWIG_From_int(static_cast< int >(result));
4927 return resultobj;
4928 fail:
4929 return NULL;
4930 }
4931
4932
4933 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4934 PyObject *resultobj = 0;
4935 wxPen *arg1 = (wxPen *) 0 ;
4936 int result;
4937 void *argp1 = 0 ;
4938 int res1 = 0 ;
4939 PyObject *swig_obj[1] ;
4940
4941 if (!args) SWIG_fail;
4942 swig_obj[0] = args;
4943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4944 if (!SWIG_IsOK(res1)) {
4945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4946 }
4947 arg1 = reinterpret_cast< wxPen * >(argp1);
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 result = (int)(arg1)->GetStyle();
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_From_int(static_cast< int >(result));
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *resultobj = 0;
4963 wxPen *arg1 = (wxPen *) 0 ;
4964 int result;
4965 void *argp1 = 0 ;
4966 int res1 = 0 ;
4967 PyObject *swig_obj[1] ;
4968
4969 if (!args) SWIG_fail;
4970 swig_obj[0] = args;
4971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4972 if (!SWIG_IsOK(res1)) {
4973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4974 }
4975 arg1 = reinterpret_cast< wxPen * >(argp1);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (int)(arg1)->GetWidth();
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = SWIG_From_int(static_cast< int >(result));
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4990 PyObject *resultobj = 0;
4991 wxPen *arg1 = (wxPen *) 0 ;
4992 bool result;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPen * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (bool)(arg1)->IsOk();
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 {
5011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5012 }
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5020 PyObject *resultobj = 0;
5021 wxPen *arg1 = (wxPen *) 0 ;
5022 int arg2 ;
5023 void *argp1 = 0 ;
5024 int res1 = 0 ;
5025 int val2 ;
5026 int ecode2 = 0 ;
5027 PyObject * obj0 = 0 ;
5028 PyObject * obj1 = 0 ;
5029 char * kwnames[] = {
5030 (char *) "self",(char *) "cap_style", NULL
5031 };
5032
5033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5035 if (!SWIG_IsOK(res1)) {
5036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5037 }
5038 arg1 = reinterpret_cast< wxPen * >(argp1);
5039 ecode2 = SWIG_AsVal_int(obj1, &val2);
5040 if (!SWIG_IsOK(ecode2)) {
5041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5042 }
5043 arg2 = static_cast< int >(val2);
5044 {
5045 PyThreadState* __tstate = wxPyBeginAllowThreads();
5046 (arg1)->SetCap(arg2);
5047 wxPyEndAllowThreads(__tstate);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 }
5050 resultobj = SWIG_Py_Void();
5051 return resultobj;
5052 fail:
5053 return NULL;
5054 }
5055
5056
5057 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5058 PyObject *resultobj = 0;
5059 wxPen *arg1 = (wxPen *) 0 ;
5060 wxColour *arg2 = 0 ;
5061 void *argp1 = 0 ;
5062 int res1 = 0 ;
5063 wxColour temp2 ;
5064 PyObject * obj0 = 0 ;
5065 PyObject * obj1 = 0 ;
5066 char * kwnames[] = {
5067 (char *) "self",(char *) "colour", NULL
5068 };
5069
5070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5072 if (!SWIG_IsOK(res1)) {
5073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5074 }
5075 arg1 = reinterpret_cast< wxPen * >(argp1);
5076 {
5077 arg2 = &temp2;
5078 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5079 }
5080 {
5081 PyThreadState* __tstate = wxPyBeginAllowThreads();
5082 (arg1)->SetColour(*arg2);
5083 wxPyEndAllowThreads(__tstate);
5084 if (PyErr_Occurred()) SWIG_fail;
5085 }
5086 resultobj = SWIG_Py_Void();
5087 return resultobj;
5088 fail:
5089 return NULL;
5090 }
5091
5092
5093 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5094 PyObject *resultobj = 0;
5095 wxPen *arg1 = (wxPen *) 0 ;
5096 int arg2 ;
5097 void *argp1 = 0 ;
5098 int res1 = 0 ;
5099 int val2 ;
5100 int ecode2 = 0 ;
5101 PyObject * obj0 = 0 ;
5102 PyObject * obj1 = 0 ;
5103 char * kwnames[] = {
5104 (char *) "self",(char *) "join_style", NULL
5105 };
5106
5107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5109 if (!SWIG_IsOK(res1)) {
5110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5111 }
5112 arg1 = reinterpret_cast< wxPen * >(argp1);
5113 ecode2 = SWIG_AsVal_int(obj1, &val2);
5114 if (!SWIG_IsOK(ecode2)) {
5115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5116 }
5117 arg2 = static_cast< int >(val2);
5118 {
5119 PyThreadState* __tstate = wxPyBeginAllowThreads();
5120 (arg1)->SetJoin(arg2);
5121 wxPyEndAllowThreads(__tstate);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 }
5124 resultobj = SWIG_Py_Void();
5125 return resultobj;
5126 fail:
5127 return NULL;
5128 }
5129
5130
5131 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5132 PyObject *resultobj = 0;
5133 wxPen *arg1 = (wxPen *) 0 ;
5134 int arg2 ;
5135 void *argp1 = 0 ;
5136 int res1 = 0 ;
5137 int val2 ;
5138 int ecode2 = 0 ;
5139 PyObject * obj0 = 0 ;
5140 PyObject * obj1 = 0 ;
5141 char * kwnames[] = {
5142 (char *) "self",(char *) "style", NULL
5143 };
5144
5145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5147 if (!SWIG_IsOK(res1)) {
5148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5149 }
5150 arg1 = reinterpret_cast< wxPen * >(argp1);
5151 ecode2 = SWIG_AsVal_int(obj1, &val2);
5152 if (!SWIG_IsOK(ecode2)) {
5153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5154 }
5155 arg2 = static_cast< int >(val2);
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 (arg1)->SetStyle(arg2);
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 resultobj = SWIG_Py_Void();
5163 return resultobj;
5164 fail:
5165 return NULL;
5166 }
5167
5168
5169 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5170 PyObject *resultobj = 0;
5171 wxPen *arg1 = (wxPen *) 0 ;
5172 int arg2 ;
5173 void *argp1 = 0 ;
5174 int res1 = 0 ;
5175 int val2 ;
5176 int ecode2 = 0 ;
5177 PyObject * obj0 = 0 ;
5178 PyObject * obj1 = 0 ;
5179 char * kwnames[] = {
5180 (char *) "self",(char *) "width", NULL
5181 };
5182
5183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5185 if (!SWIG_IsOK(res1)) {
5186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5187 }
5188 arg1 = reinterpret_cast< wxPen * >(argp1);
5189 ecode2 = SWIG_AsVal_int(obj1, &val2);
5190 if (!SWIG_IsOK(ecode2)) {
5191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5192 }
5193 arg2 = static_cast< int >(val2);
5194 {
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 (arg1)->SetWidth(arg2);
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_Py_Void();
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5208 PyObject *resultobj = 0;
5209 wxPen *arg1 = (wxPen *) 0 ;
5210 int arg2 ;
5211 wxDash *arg3 = (wxDash *) 0 ;
5212 void *argp1 = 0 ;
5213 int res1 = 0 ;
5214 PyObject * obj0 = 0 ;
5215 PyObject * obj1 = 0 ;
5216 char * kwnames[] = {
5217 (char *) "self",(char *) "dashes", NULL
5218 };
5219
5220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5222 if (!SWIG_IsOK(res1)) {
5223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5224 }
5225 arg1 = reinterpret_cast< wxPen * >(argp1);
5226 {
5227 arg2 = PyList_Size(obj1);
5228 arg3 = (wxDash*)byte_LIST_helper(obj1);
5229 if (arg3 == NULL) SWIG_fail;
5230 }
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 (arg1)->SetDashes(arg2,arg3);
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_Py_Void();
5238 {
5239 if (arg3) delete [] arg3;
5240 }
5241 return resultobj;
5242 fail:
5243 {
5244 if (arg3) delete [] arg3;
5245 }
5246 return NULL;
5247 }
5248
5249
5250 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5251 PyObject *resultobj = 0;
5252 wxPen *arg1 = (wxPen *) 0 ;
5253 PyObject *result = 0 ;
5254 void *argp1 = 0 ;
5255 int res1 = 0 ;
5256 PyObject *swig_obj[1] ;
5257
5258 if (!args) SWIG_fail;
5259 swig_obj[0] = args;
5260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5261 if (!SWIG_IsOK(res1)) {
5262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5263 }
5264 arg1 = reinterpret_cast< wxPen * >(argp1);
5265 {
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 result = (PyObject *)wxPen_GetDashes(arg1);
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 resultobj = result;
5272 return resultobj;
5273 fail:
5274 return NULL;
5275 }
5276
5277
5278 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5279 PyObject *resultobj = 0;
5280 wxPen *arg1 = (wxPen *) 0 ;
5281 PyObject *arg2 = (PyObject *) 0 ;
5282 PyObject *arg3 = (PyObject *) 0 ;
5283 void *argp1 = 0 ;
5284 int res1 = 0 ;
5285 PyObject * obj0 = 0 ;
5286 PyObject * obj1 = 0 ;
5287 PyObject * obj2 = 0 ;
5288 char * kwnames[] = {
5289 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5290 };
5291
5292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5294 if (!SWIG_IsOK(res1)) {
5295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5296 }
5297 arg1 = reinterpret_cast< wxPen * >(argp1);
5298 arg2 = obj1;
5299 arg3 = obj2;
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 wxPen__SetDashes(arg1,arg2,arg3);
5303 wxPyEndAllowThreads(__tstate);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 }
5306 resultobj = SWIG_Py_Void();
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5314 PyObject *resultobj = 0;
5315 wxPen *arg1 = (wxPen *) 0 ;
5316 int result;
5317 void *argp1 = 0 ;
5318 int res1 = 0 ;
5319 PyObject *swig_obj[1] ;
5320
5321 if (!args) SWIG_fail;
5322 swig_obj[0] = args;
5323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5324 if (!SWIG_IsOK(res1)) {
5325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5326 }
5327 arg1 = reinterpret_cast< wxPen * >(argp1);
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 result = (int)((wxPen const *)arg1)->GetDashCount();
5331 wxPyEndAllowThreads(__tstate);
5332 if (PyErr_Occurred()) SWIG_fail;
5333 }
5334 resultobj = SWIG_From_int(static_cast< int >(result));
5335 return resultobj;
5336 fail:
5337 return NULL;
5338 }
5339
5340
5341 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5342 PyObject *resultobj = 0;
5343 wxPen *arg1 = (wxPen *) 0 ;
5344 wxPen *arg2 = (wxPen *) 0 ;
5345 bool result;
5346 void *argp1 = 0 ;
5347 int res1 = 0 ;
5348 void *argp2 = 0 ;
5349 int res2 = 0 ;
5350 PyObject * obj0 = 0 ;
5351 PyObject * obj1 = 0 ;
5352 char * kwnames[] = {
5353 (char *) "self",(char *) "other", NULL
5354 };
5355
5356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5358 if (!SWIG_IsOK(res1)) {
5359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5360 }
5361 arg1 = reinterpret_cast< wxPen * >(argp1);
5362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5363 if (!SWIG_IsOK(res2)) {
5364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5365 }
5366 arg2 = reinterpret_cast< wxPen * >(argp2);
5367 {
5368 PyThreadState* __tstate = wxPyBeginAllowThreads();
5369 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 }
5373 {
5374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5375 }
5376 return resultobj;
5377 fail:
5378 return NULL;
5379 }
5380
5381
5382 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5383 PyObject *resultobj = 0;
5384 wxPen *arg1 = (wxPen *) 0 ;
5385 wxPen *arg2 = (wxPen *) 0 ;
5386 bool result;
5387 void *argp1 = 0 ;
5388 int res1 = 0 ;
5389 void *argp2 = 0 ;
5390 int res2 = 0 ;
5391 PyObject * obj0 = 0 ;
5392 PyObject * obj1 = 0 ;
5393 char * kwnames[] = {
5394 (char *) "self",(char *) "other", NULL
5395 };
5396
5397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5399 if (!SWIG_IsOK(res1)) {
5400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5401 }
5402 arg1 = reinterpret_cast< wxPen * >(argp1);
5403 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5404 if (!SWIG_IsOK(res2)) {
5405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5406 }
5407 arg2 = reinterpret_cast< wxPen * >(argp2);
5408 {
5409 PyThreadState* __tstate = wxPyBeginAllowThreads();
5410 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 {
5415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5416 }
5417 return resultobj;
5418 fail:
5419 return NULL;
5420 }
5421
5422
5423 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5424 PyObject *obj;
5425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5426 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5427 return SWIG_Py_Void();
5428 }
5429
5430 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5431 return SWIG_Python_InitShadowInstance(args);
5432 }
5433
5434 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5435 PyObject *resultobj = 0;
5436 wxColour *arg1 = 0 ;
5437 int arg2 = (int) wxSOLID ;
5438 wxBrush *result = 0 ;
5439 wxColour temp1 ;
5440 int val2 ;
5441 int ecode2 = 0 ;
5442 PyObject * obj0 = 0 ;
5443 PyObject * obj1 = 0 ;
5444 char * kwnames[] = {
5445 (char *) "colour",(char *) "style", NULL
5446 };
5447
5448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5449 {
5450 arg1 = &temp1;
5451 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5452 }
5453 if (obj1) {
5454 ecode2 = SWIG_AsVal_int(obj1, &val2);
5455 if (!SWIG_IsOK(ecode2)) {
5456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5457 }
5458 arg2 = static_cast< int >(val2);
5459 }
5460 {
5461 if (!wxPyCheckForApp()) SWIG_fail;
5462 PyThreadState* __tstate = wxPyBeginAllowThreads();
5463 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj = 0;
5476 wxBitmap *arg1 = 0 ;
5477 wxBrush *result = 0 ;
5478 void *argp1 = 0 ;
5479 int res1 = 0 ;
5480 PyObject * obj0 = 0 ;
5481 char * kwnames[] = {
5482 (char *) "stippleBitmap", NULL
5483 };
5484
5485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5486 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5487 if (!SWIG_IsOK(res1)) {
5488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5489 }
5490 if (!argp1) {
5491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5492 }
5493 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5494 {
5495 if (!wxPyCheckForApp()) SWIG_fail;
5496 PyThreadState* __tstate = wxPyBeginAllowThreads();
5497 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5498 wxPyEndAllowThreads(__tstate);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 }
5501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5502 return resultobj;
5503 fail:
5504 return NULL;
5505 }
5506
5507
5508 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5509 PyObject *resultobj = 0;
5510 wxBrush *arg1 = (wxBrush *) 0 ;
5511 void *argp1 = 0 ;
5512 int res1 = 0 ;
5513 PyObject *swig_obj[1] ;
5514
5515 if (!args) SWIG_fail;
5516 swig_obj[0] = args;
5517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5518 if (!SWIG_IsOK(res1)) {
5519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5520 }
5521 arg1 = reinterpret_cast< wxBrush * >(argp1);
5522 {
5523 PyThreadState* __tstate = wxPyBeginAllowThreads();
5524 delete arg1;
5525
5526 wxPyEndAllowThreads(__tstate);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 resultobj = SWIG_Py_Void();
5530 return resultobj;
5531 fail:
5532 return NULL;
5533 }
5534
5535
5536 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5537 PyObject *resultobj = 0;
5538 wxBrush *arg1 = (wxBrush *) 0 ;
5539 wxColour *arg2 = 0 ;
5540 void *argp1 = 0 ;
5541 int res1 = 0 ;
5542 wxColour temp2 ;
5543 PyObject * obj0 = 0 ;
5544 PyObject * obj1 = 0 ;
5545 char * kwnames[] = {
5546 (char *) "self",(char *) "col", NULL
5547 };
5548
5549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5551 if (!SWIG_IsOK(res1)) {
5552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5553 }
5554 arg1 = reinterpret_cast< wxBrush * >(argp1);
5555 {
5556 arg2 = &temp2;
5557 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5558 }
5559 {
5560 PyThreadState* __tstate = wxPyBeginAllowThreads();
5561 (arg1)->SetColour((wxColour const &)*arg2);
5562 wxPyEndAllowThreads(__tstate);
5563 if (PyErr_Occurred()) SWIG_fail;
5564 }
5565 resultobj = SWIG_Py_Void();
5566 return resultobj;
5567 fail:
5568 return NULL;
5569 }
5570
5571
5572 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5573 PyObject *resultobj = 0;
5574 wxBrush *arg1 = (wxBrush *) 0 ;
5575 int arg2 ;
5576 void *argp1 = 0 ;
5577 int res1 = 0 ;
5578 int val2 ;
5579 int ecode2 = 0 ;
5580 PyObject * obj0 = 0 ;
5581 PyObject * obj1 = 0 ;
5582 char * kwnames[] = {
5583 (char *) "self",(char *) "style", NULL
5584 };
5585
5586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5588 if (!SWIG_IsOK(res1)) {
5589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5590 }
5591 arg1 = reinterpret_cast< wxBrush * >(argp1);
5592 ecode2 = SWIG_AsVal_int(obj1, &val2);
5593 if (!SWIG_IsOK(ecode2)) {
5594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5595 }
5596 arg2 = static_cast< int >(val2);
5597 {
5598 PyThreadState* __tstate = wxPyBeginAllowThreads();
5599 (arg1)->SetStyle(arg2);
5600 wxPyEndAllowThreads(__tstate);
5601 if (PyErr_Occurred()) SWIG_fail;
5602 }
5603 resultobj = SWIG_Py_Void();
5604 return resultobj;
5605 fail:
5606 return NULL;
5607 }
5608
5609
5610 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5611 PyObject *resultobj = 0;
5612 wxBrush *arg1 = (wxBrush *) 0 ;
5613 wxBitmap *arg2 = 0 ;
5614 void *argp1 = 0 ;
5615 int res1 = 0 ;
5616 void *argp2 = 0 ;
5617 int res2 = 0 ;
5618 PyObject * obj0 = 0 ;
5619 PyObject * obj1 = 0 ;
5620 char * kwnames[] = {
5621 (char *) "self",(char *) "stipple", NULL
5622 };
5623
5624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5626 if (!SWIG_IsOK(res1)) {
5627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5628 }
5629 arg1 = reinterpret_cast< wxBrush * >(argp1);
5630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5631 if (!SWIG_IsOK(res2)) {
5632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5633 }
5634 if (!argp2) {
5635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5636 }
5637 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 (arg1)->SetStipple((wxBitmap const &)*arg2);
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 resultobj = SWIG_Py_Void();
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5652 PyObject *resultobj = 0;
5653 wxBrush *arg1 = (wxBrush *) 0 ;
5654 wxColour result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 PyObject *swig_obj[1] ;
5658
5659 if (!args) SWIG_fail;
5660 swig_obj[0] = args;
5661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5664 }
5665 arg1 = reinterpret_cast< wxBrush * >(argp1);
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = ((wxBrush const *)arg1)->GetColour();
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5680 PyObject *resultobj = 0;
5681 wxBrush *arg1 = (wxBrush *) 0 ;
5682 int result;
5683 void *argp1 = 0 ;
5684 int res1 = 0 ;
5685 PyObject *swig_obj[1] ;
5686
5687 if (!args) SWIG_fail;
5688 swig_obj[0] = args;
5689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5690 if (!SWIG_IsOK(res1)) {
5691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5692 }
5693 arg1 = reinterpret_cast< wxBrush * >(argp1);
5694 {
5695 PyThreadState* __tstate = wxPyBeginAllowThreads();
5696 result = (int)((wxBrush const *)arg1)->GetStyle();
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 resultobj = SWIG_From_int(static_cast< int >(result));
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 PyObject *resultobj = 0;
5709 wxBrush *arg1 = (wxBrush *) 0 ;
5710 wxBitmap *result = 0 ;
5711 void *argp1 = 0 ;
5712 int res1 = 0 ;
5713 PyObject *swig_obj[1] ;
5714
5715 if (!args) SWIG_fail;
5716 swig_obj[0] = args;
5717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5720 }
5721 arg1 = reinterpret_cast< wxBrush * >(argp1);
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5736 PyObject *resultobj = 0;
5737 wxBrush *arg1 = (wxBrush *) 0 ;
5738 bool result;
5739 void *argp1 = 0 ;
5740 int res1 = 0 ;
5741 PyObject *swig_obj[1] ;
5742
5743 if (!args) SWIG_fail;
5744 swig_obj[0] = args;
5745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5746 if (!SWIG_IsOK(res1)) {
5747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5748 }
5749 arg1 = reinterpret_cast< wxBrush * >(argp1);
5750 {
5751 PyThreadState* __tstate = wxPyBeginAllowThreads();
5752 result = (bool)((wxBrush const *)arg1)->IsHatch();
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 {
5757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5758 }
5759 return resultobj;
5760 fail:
5761 return NULL;
5762 }
5763
5764
5765 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5766 PyObject *resultobj = 0;
5767 wxBrush *arg1 = (wxBrush *) 0 ;
5768 bool result;
5769 void *argp1 = 0 ;
5770 int res1 = 0 ;
5771 PyObject *swig_obj[1] ;
5772
5773 if (!args) SWIG_fail;
5774 swig_obj[0] = args;
5775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5776 if (!SWIG_IsOK(res1)) {
5777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5778 }
5779 arg1 = reinterpret_cast< wxBrush * >(argp1);
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 result = (bool)(arg1)->IsOk();
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 {
5787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5788 }
5789 return resultobj;
5790 fail:
5791 return NULL;
5792 }
5793
5794
5795 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5796 PyObject *obj;
5797 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5798 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5799 return SWIG_Py_Void();
5800 }
5801
5802 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5803 return SWIG_Python_InitShadowInstance(args);
5804 }
5805
5806 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5807 PyObject *resultobj = 0;
5808 wxString *arg1 = 0 ;
5809 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5810 wxBitmap *result = 0 ;
5811 bool temp1 = false ;
5812 int val2 ;
5813 int ecode2 = 0 ;
5814 PyObject * obj0 = 0 ;
5815 PyObject * obj1 = 0 ;
5816 char * kwnames[] = {
5817 (char *) "name",(char *) "type", NULL
5818 };
5819
5820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5821 {
5822 arg1 = wxString_in_helper(obj0);
5823 if (arg1 == NULL) SWIG_fail;
5824 temp1 = true;
5825 }
5826 if (obj1) {
5827 ecode2 = SWIG_AsVal_int(obj1, &val2);
5828 if (!SWIG_IsOK(ecode2)) {
5829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5830 }
5831 arg2 = static_cast< wxBitmapType >(val2);
5832 }
5833 {
5834 if (!wxPyCheckForApp()) SWIG_fail;
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5841 {
5842 if (temp1)
5843 delete arg1;
5844 }
5845 return resultobj;
5846 fail:
5847 {
5848 if (temp1)
5849 delete arg1;
5850 }
5851 return NULL;
5852 }
5853
5854
5855 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5856 PyObject *resultobj = 0;
5857 wxBitmap *arg1 = (wxBitmap *) 0 ;
5858 void *argp1 = 0 ;
5859 int res1 = 0 ;
5860 PyObject *swig_obj[1] ;
5861
5862 if (!args) SWIG_fail;
5863 swig_obj[0] = args;
5864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5865 if (!SWIG_IsOK(res1)) {
5866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5867 }
5868 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5869 {
5870 delete arg1;
5871
5872 if (PyErr_Occurred()) SWIG_fail;
5873 }
5874 resultobj = SWIG_Py_Void();
5875 return resultobj;
5876 fail:
5877 return NULL;
5878 }
5879
5880
5881 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5882 PyObject *resultobj = 0;
5883 int arg1 ;
5884 int arg2 ;
5885 int arg3 = (int) -1 ;
5886 wxBitmap *result = 0 ;
5887 int val1 ;
5888 int ecode1 = 0 ;
5889 int val2 ;
5890 int ecode2 = 0 ;
5891 int val3 ;
5892 int ecode3 = 0 ;
5893 PyObject * obj0 = 0 ;
5894 PyObject * obj1 = 0 ;
5895 PyObject * obj2 = 0 ;
5896 char * kwnames[] = {
5897 (char *) "width",(char *) "height",(char *) "depth", NULL
5898 };
5899
5900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5901 ecode1 = SWIG_AsVal_int(obj0, &val1);
5902 if (!SWIG_IsOK(ecode1)) {
5903 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5904 }
5905 arg1 = static_cast< int >(val1);
5906 ecode2 = SWIG_AsVal_int(obj1, &val2);
5907 if (!SWIG_IsOK(ecode2)) {
5908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5909 }
5910 arg2 = static_cast< int >(val2);
5911 if (obj2) {
5912 ecode3 = SWIG_AsVal_int(obj2, &val3);
5913 if (!SWIG_IsOK(ecode3)) {
5914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5915 }
5916 arg3 = static_cast< int >(val3);
5917 }
5918 {
5919 if (!wxPyCheckForApp()) SWIG_fail;
5920 PyThreadState* __tstate = wxPyBeginAllowThreads();
5921 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5922 wxPyEndAllowThreads(__tstate);
5923 if (PyErr_Occurred()) SWIG_fail;
5924 }
5925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5926 return resultobj;
5927 fail:
5928 return NULL;
5929 }
5930
5931
5932 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5933 PyObject *resultobj = 0;
5934 wxIcon *arg1 = 0 ;
5935 wxBitmap *result = 0 ;
5936 void *argp1 = 0 ;
5937 int res1 = 0 ;
5938 PyObject * obj0 = 0 ;
5939 char * kwnames[] = {
5940 (char *) "icon", NULL
5941 };
5942
5943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5944 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5945 if (!SWIG_IsOK(res1)) {
5946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5947 }
5948 if (!argp1) {
5949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5950 }
5951 arg1 = reinterpret_cast< wxIcon * >(argp1);
5952 {
5953 if (!wxPyCheckForApp()) SWIG_fail;
5954 PyThreadState* __tstate = wxPyBeginAllowThreads();
5955 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5960 return resultobj;
5961 fail:
5962 return NULL;
5963 }
5964
5965
5966 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5967 PyObject *resultobj = 0;
5968 wxImage *arg1 = 0 ;
5969 int arg2 = (int) -1 ;
5970 wxBitmap *result = 0 ;
5971 void *argp1 = 0 ;
5972 int res1 = 0 ;
5973 int val2 ;
5974 int ecode2 = 0 ;
5975 PyObject * obj0 = 0 ;
5976 PyObject * obj1 = 0 ;
5977 char * kwnames[] = {
5978 (char *) "image",(char *) "depth", NULL
5979 };
5980
5981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5982 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5983 if (!SWIG_IsOK(res1)) {
5984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5985 }
5986 if (!argp1) {
5987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5988 }
5989 arg1 = reinterpret_cast< wxImage * >(argp1);
5990 if (obj1) {
5991 ecode2 = SWIG_AsVal_int(obj1, &val2);
5992 if (!SWIG_IsOK(ecode2)) {
5993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5994 }
5995 arg2 = static_cast< int >(val2);
5996 }
5997 {
5998 if (!wxPyCheckForApp()) SWIG_fail;
5999 PyThreadState* __tstate = wxPyBeginAllowThreads();
6000 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6001 wxPyEndAllowThreads(__tstate);
6002 if (PyErr_Occurred()) SWIG_fail;
6003 }
6004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6005 return resultobj;
6006 fail:
6007 return NULL;
6008 }
6009
6010
6011 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6012 PyObject *resultobj = 0;
6013 PyObject *arg1 = (PyObject *) 0 ;
6014 wxBitmap *result = 0 ;
6015 PyObject * obj0 = 0 ;
6016 char * kwnames[] = {
6017 (char *) "listOfStrings", NULL
6018 };
6019
6020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6021 arg1 = obj0;
6022 {
6023 if (!wxPyCheckForApp()) SWIG_fail;
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 result = (wxBitmap *)new_wxBitmap(arg1);
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
6029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6030 return resultobj;
6031 fail:
6032 return NULL;
6033 }
6034
6035
6036 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6037 PyObject *resultobj = 0;
6038 PyObject *arg1 = (PyObject *) 0 ;
6039 int arg2 ;
6040 int arg3 ;
6041 int arg4 = (int) 1 ;
6042 wxBitmap *result = 0 ;
6043 int val2 ;
6044 int ecode2 = 0 ;
6045 int val3 ;
6046 int ecode3 = 0 ;
6047 int val4 ;
6048 int ecode4 = 0 ;
6049 PyObject * obj0 = 0 ;
6050 PyObject * obj1 = 0 ;
6051 PyObject * obj2 = 0 ;
6052 PyObject * obj3 = 0 ;
6053 char * kwnames[] = {
6054 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6055 };
6056
6057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6058 arg1 = obj0;
6059 ecode2 = SWIG_AsVal_int(obj1, &val2);
6060 if (!SWIG_IsOK(ecode2)) {
6061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6062 }
6063 arg2 = static_cast< int >(val2);
6064 ecode3 = SWIG_AsVal_int(obj2, &val3);
6065 if (!SWIG_IsOK(ecode3)) {
6066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6067 }
6068 arg3 = static_cast< int >(val3);
6069 if (obj3) {
6070 ecode4 = SWIG_AsVal_int(obj3, &val4);
6071 if (!SWIG_IsOK(ecode4)) {
6072 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6073 }
6074 arg4 = static_cast< int >(val4);
6075 }
6076 {
6077 if (!wxPyCheckForApp()) SWIG_fail;
6078 PyThreadState* __tstate = wxPyBeginAllowThreads();
6079 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 }
6083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6084 return resultobj;
6085 fail:
6086 return NULL;
6087 }
6088
6089
6090 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6091 PyObject *resultobj = 0;
6092 wxBitmap *arg1 = (wxBitmap *) 0 ;
6093 bool result;
6094 void *argp1 = 0 ;
6095 int res1 = 0 ;
6096 PyObject *swig_obj[1] ;
6097
6098 if (!args) SWIG_fail;
6099 swig_obj[0] = args;
6100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6101 if (!SWIG_IsOK(res1)) {
6102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6103 }
6104 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6105 {
6106 result = (bool)(arg1)->IsOk();
6107 if (PyErr_Occurred()) SWIG_fail;
6108 }
6109 {
6110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6111 }
6112 return resultobj;
6113 fail:
6114 return NULL;
6115 }
6116
6117
6118 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6119 PyObject *resultobj = 0;
6120 wxBitmap *arg1 = (wxBitmap *) 0 ;
6121 int result;
6122 void *argp1 = 0 ;
6123 int res1 = 0 ;
6124 PyObject *swig_obj[1] ;
6125
6126 if (!args) SWIG_fail;
6127 swig_obj[0] = args;
6128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6129 if (!SWIG_IsOK(res1)) {
6130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6131 }
6132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6133 {
6134 result = (int)(arg1)->GetWidth();
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 resultobj = SWIG_From_int(static_cast< int >(result));
6138 return resultobj;
6139 fail:
6140 return NULL;
6141 }
6142
6143
6144 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6145 PyObject *resultobj = 0;
6146 wxBitmap *arg1 = (wxBitmap *) 0 ;
6147 int result;
6148 void *argp1 = 0 ;
6149 int res1 = 0 ;
6150 PyObject *swig_obj[1] ;
6151
6152 if (!args) SWIG_fail;
6153 swig_obj[0] = args;
6154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6155 if (!SWIG_IsOK(res1)) {
6156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6157 }
6158 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6159 {
6160 result = (int)(arg1)->GetHeight();
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 resultobj = SWIG_From_int(static_cast< int >(result));
6164 return resultobj;
6165 fail:
6166 return NULL;
6167 }
6168
6169
6170 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6171 PyObject *resultobj = 0;
6172 wxBitmap *arg1 = (wxBitmap *) 0 ;
6173 int result;
6174 void *argp1 = 0 ;
6175 int res1 = 0 ;
6176 PyObject *swig_obj[1] ;
6177
6178 if (!args) SWIG_fail;
6179 swig_obj[0] = args;
6180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6181 if (!SWIG_IsOK(res1)) {
6182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6183 }
6184 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6185 {
6186 result = (int)(arg1)->GetDepth();
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 resultobj = SWIG_From_int(static_cast< int >(result));
6190 return resultobj;
6191 fail:
6192 return NULL;
6193 }
6194
6195
6196 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6197 PyObject *resultobj = 0;
6198 wxBitmap *arg1 = (wxBitmap *) 0 ;
6199 wxSize result;
6200 void *argp1 = 0 ;
6201 int res1 = 0 ;
6202 PyObject *swig_obj[1] ;
6203
6204 if (!args) SWIG_fail;
6205 swig_obj[0] = args;
6206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6207 if (!SWIG_IsOK(res1)) {
6208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6209 }
6210 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6211 {
6212 result = wxBitmap_GetSize(arg1);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6216 return resultobj;
6217 fail:
6218 return NULL;
6219 }
6220
6221
6222 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6223 PyObject *resultobj = 0;
6224 wxBitmap *arg1 = (wxBitmap *) 0 ;
6225 SwigValueWrapper<wxImage > result;
6226 void *argp1 = 0 ;
6227 int res1 = 0 ;
6228 PyObject *swig_obj[1] ;
6229
6230 if (!args) SWIG_fail;
6231 swig_obj[0] = args;
6232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6233 if (!SWIG_IsOK(res1)) {
6234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6235 }
6236 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6237 {
6238 result = ((wxBitmap const *)arg1)->ConvertToImage();
6239 if (PyErr_Occurred()) SWIG_fail;
6240 }
6241 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6242 return resultobj;
6243 fail:
6244 return NULL;
6245 }
6246
6247
6248 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6249 PyObject *resultobj = 0;
6250 wxBitmap *arg1 = (wxBitmap *) 0 ;
6251 wxMask *result = 0 ;
6252 void *argp1 = 0 ;
6253 int res1 = 0 ;
6254 PyObject *swig_obj[1] ;
6255
6256 if (!args) SWIG_fail;
6257 swig_obj[0] = args;
6258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6259 if (!SWIG_IsOK(res1)) {
6260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6261 }
6262 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6263 {
6264 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6268 return resultobj;
6269 fail:
6270 return NULL;
6271 }
6272
6273
6274 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj = 0;
6276 wxBitmap *arg1 = (wxBitmap *) 0 ;
6277 wxMask *arg2 = (wxMask *) 0 ;
6278 void *argp1 = 0 ;
6279 int res1 = 0 ;
6280 int res2 = 0 ;
6281 PyObject * obj0 = 0 ;
6282 PyObject * obj1 = 0 ;
6283 char * kwnames[] = {
6284 (char *) "self",(char *) "mask", NULL
6285 };
6286
6287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6289 if (!SWIG_IsOK(res1)) {
6290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6291 }
6292 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6293 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6294 if (!SWIG_IsOK(res2)) {
6295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6296 }
6297 {
6298 (arg1)->SetMask(arg2);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 resultobj = SWIG_Py_Void();
6302 return resultobj;
6303 fail:
6304 return NULL;
6305 }
6306
6307
6308 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxBitmap *arg1 = (wxBitmap *) 0 ;
6311 wxColour *arg2 = 0 ;
6312 void *argp1 = 0 ;
6313 int res1 = 0 ;
6314 wxColour temp2 ;
6315 PyObject * obj0 = 0 ;
6316 PyObject * obj1 = 0 ;
6317 char * kwnames[] = {
6318 (char *) "self",(char *) "colour", NULL
6319 };
6320
6321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6323 if (!SWIG_IsOK(res1)) {
6324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6325 }
6326 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6327 {
6328 arg2 = &temp2;
6329 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6330 }
6331 {
6332 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6333 if (PyErr_Occurred()) SWIG_fail;
6334 }
6335 resultobj = SWIG_Py_Void();
6336 return resultobj;
6337 fail:
6338 return NULL;
6339 }
6340
6341
6342 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6343 PyObject *resultobj = 0;
6344 wxBitmap *arg1 = (wxBitmap *) 0 ;
6345 wxRect *arg2 = 0 ;
6346 SwigValueWrapper<wxBitmap > result;
6347 void *argp1 = 0 ;
6348 int res1 = 0 ;
6349 wxRect temp2 ;
6350 PyObject * obj0 = 0 ;
6351 PyObject * obj1 = 0 ;
6352 char * kwnames[] = {
6353 (char *) "self",(char *) "rect", NULL
6354 };
6355
6356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6358 if (!SWIG_IsOK(res1)) {
6359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6360 }
6361 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6362 {
6363 arg2 = &temp2;
6364 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6365 }
6366 {
6367 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6371 return resultobj;
6372 fail:
6373 return NULL;
6374 }
6375
6376
6377 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj = 0;
6379 wxBitmap *arg1 = (wxBitmap *) 0 ;
6380 wxString *arg2 = 0 ;
6381 wxBitmapType arg3 ;
6382 wxPalette *arg4 = (wxPalette *) NULL ;
6383 bool result;
6384 void *argp1 = 0 ;
6385 int res1 = 0 ;
6386 bool temp2 = false ;
6387 int val3 ;
6388 int ecode3 = 0 ;
6389 void *argp4 = 0 ;
6390 int res4 = 0 ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393 PyObject * obj2 = 0 ;
6394 PyObject * obj3 = 0 ;
6395 char * kwnames[] = {
6396 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6397 };
6398
6399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6401 if (!SWIG_IsOK(res1)) {
6402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6403 }
6404 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6405 {
6406 arg2 = wxString_in_helper(obj1);
6407 if (arg2 == NULL) SWIG_fail;
6408 temp2 = true;
6409 }
6410 ecode3 = SWIG_AsVal_int(obj2, &val3);
6411 if (!SWIG_IsOK(ecode3)) {
6412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6413 }
6414 arg3 = static_cast< wxBitmapType >(val3);
6415 if (obj3) {
6416 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6417 if (!SWIG_IsOK(res4)) {
6418 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6419 }
6420 arg4 = reinterpret_cast< wxPalette * >(argp4);
6421 }
6422 {
6423 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 {
6427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6428 }
6429 {
6430 if (temp2)
6431 delete arg2;
6432 }
6433 return resultobj;
6434 fail:
6435 {
6436 if (temp2)
6437 delete arg2;
6438 }
6439 return NULL;
6440 }
6441
6442
6443 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj = 0;
6445 wxBitmap *arg1 = (wxBitmap *) 0 ;
6446 wxString *arg2 = 0 ;
6447 wxBitmapType arg3 ;
6448 bool result;
6449 void *argp1 = 0 ;
6450 int res1 = 0 ;
6451 bool temp2 = false ;
6452 int val3 ;
6453 int ecode3 = 0 ;
6454 PyObject * obj0 = 0 ;
6455 PyObject * obj1 = 0 ;
6456 PyObject * obj2 = 0 ;
6457 char * kwnames[] = {
6458 (char *) "self",(char *) "name",(char *) "type", NULL
6459 };
6460
6461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6463 if (!SWIG_IsOK(res1)) {
6464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6465 }
6466 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6467 {
6468 arg2 = wxString_in_helper(obj1);
6469 if (arg2 == NULL) SWIG_fail;
6470 temp2 = true;
6471 }
6472 ecode3 = SWIG_AsVal_int(obj2, &val3);
6473 if (!SWIG_IsOK(ecode3)) {
6474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6475 }
6476 arg3 = static_cast< wxBitmapType >(val3);
6477 {
6478 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 {
6482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6483 }
6484 {
6485 if (temp2)
6486 delete arg2;
6487 }
6488 return resultobj;
6489 fail:
6490 {
6491 if (temp2)
6492 delete arg2;
6493 }
6494 return NULL;
6495 }
6496
6497
6498 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6499 PyObject *resultobj = 0;
6500 wxBitmap *arg1 = (wxBitmap *) 0 ;
6501 wxPalette *result = 0 ;
6502 void *argp1 = 0 ;
6503 int res1 = 0 ;
6504 PyObject *swig_obj[1] ;
6505
6506 if (!args) SWIG_fail;
6507 swig_obj[0] = args;
6508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6509 if (!SWIG_IsOK(res1)) {
6510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6511 }
6512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6513 {
6514 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6518 return resultobj;
6519 fail:
6520 return NULL;
6521 }
6522
6523
6524 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6525 PyObject *resultobj = 0;
6526 wxBitmap *arg1 = (wxBitmap *) 0 ;
6527 wxIcon *arg2 = 0 ;
6528 bool result;
6529 void *argp1 = 0 ;
6530 int res1 = 0 ;
6531 void *argp2 = 0 ;
6532 int res2 = 0 ;
6533 PyObject * obj0 = 0 ;
6534 PyObject * obj1 = 0 ;
6535 char * kwnames[] = {
6536 (char *) "self",(char *) "icon", NULL
6537 };
6538
6539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6543 }
6544 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6546 if (!SWIG_IsOK(res2)) {
6547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6548 }
6549 if (!argp2) {
6550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6551 }
6552 arg2 = reinterpret_cast< wxIcon * >(argp2);
6553 {
6554 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 {
6558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6559 }
6560 return resultobj;
6561 fail:
6562 return NULL;
6563 }
6564
6565
6566 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6567 PyObject *resultobj = 0;
6568 wxBitmap *arg1 = (wxBitmap *) 0 ;
6569 int arg2 ;
6570 void *argp1 = 0 ;
6571 int res1 = 0 ;
6572 int val2 ;
6573 int ecode2 = 0 ;
6574 PyObject * obj0 = 0 ;
6575 PyObject * obj1 = 0 ;
6576 char * kwnames[] = {
6577 (char *) "self",(char *) "height", NULL
6578 };
6579
6580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6582 if (!SWIG_IsOK(res1)) {
6583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6584 }
6585 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6586 ecode2 = SWIG_AsVal_int(obj1, &val2);
6587 if (!SWIG_IsOK(ecode2)) {
6588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6589 }
6590 arg2 = static_cast< int >(val2);
6591 {
6592 (arg1)->SetHeight(arg2);
6593 if (PyErr_Occurred()) SWIG_fail;
6594 }
6595 resultobj = SWIG_Py_Void();
6596 return resultobj;
6597 fail:
6598 return NULL;
6599 }
6600
6601
6602 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6603 PyObject *resultobj = 0;
6604 wxBitmap *arg1 = (wxBitmap *) 0 ;
6605 int arg2 ;
6606 void *argp1 = 0 ;
6607 int res1 = 0 ;
6608 int val2 ;
6609 int ecode2 = 0 ;
6610 PyObject * obj0 = 0 ;
6611 PyObject * obj1 = 0 ;
6612 char * kwnames[] = {
6613 (char *) "self",(char *) "width", NULL
6614 };
6615
6616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6618 if (!SWIG_IsOK(res1)) {
6619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6620 }
6621 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6622 ecode2 = SWIG_AsVal_int(obj1, &val2);
6623 if (!SWIG_IsOK(ecode2)) {
6624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6625 }
6626 arg2 = static_cast< int >(val2);
6627 {
6628 (arg1)->SetWidth(arg2);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 resultobj = SWIG_Py_Void();
6632 return resultobj;
6633 fail:
6634 return NULL;
6635 }
6636
6637
6638 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6639 PyObject *resultobj = 0;
6640 wxBitmap *arg1 = (wxBitmap *) 0 ;
6641 int arg2 ;
6642 void *argp1 = 0 ;
6643 int res1 = 0 ;
6644 int val2 ;
6645 int ecode2 = 0 ;
6646 PyObject * obj0 = 0 ;
6647 PyObject * obj1 = 0 ;
6648 char * kwnames[] = {
6649 (char *) "self",(char *) "depth", NULL
6650 };
6651
6652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6654 if (!SWIG_IsOK(res1)) {
6655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6656 }
6657 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6658 ecode2 = SWIG_AsVal_int(obj1, &val2);
6659 if (!SWIG_IsOK(ecode2)) {
6660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6661 }
6662 arg2 = static_cast< int >(val2);
6663 {
6664 (arg1)->SetDepth(arg2);
6665 if (PyErr_Occurred()) SWIG_fail;
6666 }
6667 resultobj = SWIG_Py_Void();
6668 return resultobj;
6669 fail:
6670 return NULL;
6671 }
6672
6673
6674 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6675 PyObject *resultobj = 0;
6676 wxBitmap *arg1 = (wxBitmap *) 0 ;
6677 wxSize *arg2 = 0 ;
6678 void *argp1 = 0 ;
6679 int res1 = 0 ;
6680 wxSize temp2 ;
6681 PyObject * obj0 = 0 ;
6682 PyObject * obj1 = 0 ;
6683 char * kwnames[] = {
6684 (char *) "self",(char *) "size", NULL
6685 };
6686
6687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6691 }
6692 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6693 {
6694 arg2 = &temp2;
6695 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6696 }
6697 {
6698 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6699 if (PyErr_Occurred()) SWIG_fail;
6700 }
6701 resultobj = SWIG_Py_Void();
6702 return resultobj;
6703 fail:
6704 return NULL;
6705 }
6706
6707
6708 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj = 0;
6710 wxBitmap *arg1 = (wxBitmap *) 0 ;
6711 wxBitmap *arg2 = (wxBitmap *) 0 ;
6712 bool result;
6713 void *argp1 = 0 ;
6714 int res1 = 0 ;
6715 void *argp2 = 0 ;
6716 int res2 = 0 ;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 char * kwnames[] = {
6720 (char *) "self",(char *) "other", NULL
6721 };
6722
6723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6725 if (!SWIG_IsOK(res1)) {
6726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6727 }
6728 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6729 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6730 if (!SWIG_IsOK(res2)) {
6731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6732 }
6733 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6734 {
6735 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 {
6739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6740 }
6741 return resultobj;
6742 fail:
6743 return NULL;
6744 }
6745
6746
6747 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6748 PyObject *resultobj = 0;
6749 wxBitmap *arg1 = (wxBitmap *) 0 ;
6750 wxBitmap *arg2 = (wxBitmap *) 0 ;
6751 bool result;
6752 void *argp1 = 0 ;
6753 int res1 = 0 ;
6754 void *argp2 = 0 ;
6755 int res2 = 0 ;
6756 PyObject * obj0 = 0 ;
6757 PyObject * obj1 = 0 ;
6758 char * kwnames[] = {
6759 (char *) "self",(char *) "other", NULL
6760 };
6761
6762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6764 if (!SWIG_IsOK(res1)) {
6765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6766 }
6767 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6768 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6769 if (!SWIG_IsOK(res2)) {
6770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6771 }
6772 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6773 {
6774 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6775 if (PyErr_Occurred()) SWIG_fail;
6776 }
6777 {
6778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6779 }
6780 return resultobj;
6781 fail:
6782 return NULL;
6783 }
6784
6785
6786 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6787 PyObject *obj;
6788 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6789 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6790 return SWIG_Py_Void();
6791 }
6792
6793 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6794 return SWIG_Python_InitShadowInstance(args);
6795 }
6796
6797 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj = 0;
6799 int arg1 ;
6800 int arg2 ;
6801 buffer arg3 ;
6802 int arg4 ;
6803 buffer arg5 ;
6804 int arg6 ;
6805 wxBitmap *result = 0 ;
6806 int val1 ;
6807 int ecode1 = 0 ;
6808 int val2 ;
6809 int ecode2 = 0 ;
6810 Py_ssize_t temp3 ;
6811 Py_ssize_t temp5 ;
6812 PyObject * obj0 = 0 ;
6813 PyObject * obj1 = 0 ;
6814 PyObject * obj2 = 0 ;
6815 PyObject * obj3 = 0 ;
6816 char * kwnames[] = {
6817 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6818 };
6819
6820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6821 ecode1 = SWIG_AsVal_int(obj0, &val1);
6822 if (!SWIG_IsOK(ecode1)) {
6823 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6824 }
6825 arg1 = static_cast< int >(val1);
6826 ecode2 = SWIG_AsVal_int(obj1, &val2);
6827 if (!SWIG_IsOK(ecode2)) {
6828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6829 }
6830 arg2 = static_cast< int >(val2);
6831 {
6832 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6833 arg4 = (int)temp3;
6834 }
6835 {
6836 if (obj3 != Py_None) {
6837 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6838 arg6 = (int)temp5;
6839 }
6840 }
6841 {
6842 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6846 return resultobj;
6847 fail:
6848 return NULL;
6849 }
6850
6851
6852 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj = 0;
6854 int arg1 ;
6855 int arg2 ;
6856 buffer arg3 ;
6857 int arg4 ;
6858 wxBitmap *result = 0 ;
6859 int val1 ;
6860 int ecode1 = 0 ;
6861 int val2 ;
6862 int ecode2 = 0 ;
6863 Py_ssize_t temp3 ;
6864 PyObject * obj0 = 0 ;
6865 PyObject * obj1 = 0 ;
6866 PyObject * obj2 = 0 ;
6867 char * kwnames[] = {
6868 (char *) "width",(char *) "height",(char *) "data", NULL
6869 };
6870
6871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6872 ecode1 = SWIG_AsVal_int(obj0, &val1);
6873 if (!SWIG_IsOK(ecode1)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6875 }
6876 arg1 = static_cast< int >(val1);
6877 ecode2 = SWIG_AsVal_int(obj1, &val2);
6878 if (!SWIG_IsOK(ecode2)) {
6879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6880 }
6881 arg2 = static_cast< int >(val2);
6882 {
6883 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6884 arg4 = (int)temp3;
6885 }
6886 {
6887 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6888 if (PyErr_Occurred()) SWIG_fail;
6889 }
6890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6891 return resultobj;
6892 fail:
6893 return NULL;
6894 }
6895
6896
6897 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6898 PyObject *resultobj = 0;
6899 int arg1 ;
6900 int arg2 ;
6901 buffer arg3 ;
6902 int arg4 ;
6903 wxBitmap *result = 0 ;
6904 int val1 ;
6905 int ecode1 = 0 ;
6906 int val2 ;
6907 int ecode2 = 0 ;
6908 Py_ssize_t temp3 ;
6909 PyObject * obj0 = 0 ;
6910 PyObject * obj1 = 0 ;
6911 PyObject * obj2 = 0 ;
6912 char * kwnames[] = {
6913 (char *) "width",(char *) "height",(char *) "data", NULL
6914 };
6915
6916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6917 ecode1 = SWIG_AsVal_int(obj0, &val1);
6918 if (!SWIG_IsOK(ecode1)) {
6919 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6920 }
6921 arg1 = static_cast< int >(val1);
6922 ecode2 = SWIG_AsVal_int(obj1, &val2);
6923 if (!SWIG_IsOK(ecode2)) {
6924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6925 }
6926 arg2 = static_cast< int >(val2);
6927 {
6928 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6929 arg4 = (int)temp3;
6930 }
6931 {
6932 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6936 return resultobj;
6937 fail:
6938 return NULL;
6939 }
6940
6941
6942 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6943 PyObject *resultobj = 0;
6944 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6945 wxPoint result;
6946 void *argp1 = 0 ;
6947 int res1 = 0 ;
6948 PyObject *swig_obj[1] ;
6949
6950 if (!args) SWIG_fail;
6951 swig_obj[0] = args;
6952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6953 if (!SWIG_IsOK(res1)) {
6954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6955 }
6956 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6957 {
6958 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6969 PyObject *resultobj = 0;
6970 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6971 int result;
6972 void *argp1 = 0 ;
6973 int res1 = 0 ;
6974 PyObject *swig_obj[1] ;
6975
6976 if (!args) SWIG_fail;
6977 swig_obj[0] = args;
6978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6979 if (!SWIG_IsOK(res1)) {
6980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6981 }
6982 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6983 {
6984 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6985 if (PyErr_Occurred()) SWIG_fail;
6986 }
6987 resultobj = SWIG_From_int(static_cast< int >(result));
6988 return resultobj;
6989 fail:
6990 return NULL;
6991 }
6992
6993
6994 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6995 PyObject *resultobj = 0;
6996 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6997 int result;
6998 void *argp1 = 0 ;
6999 int res1 = 0 ;
7000 PyObject *swig_obj[1] ;
7001
7002 if (!args) SWIG_fail;
7003 swig_obj[0] = args;
7004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7005 if (!SWIG_IsOK(res1)) {
7006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7007 }
7008 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7009 {
7010 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7011 if (PyErr_Occurred()) SWIG_fail;
7012 }
7013 resultobj = SWIG_From_int(static_cast< int >(result));
7014 return resultobj;
7015 fail:
7016 return NULL;
7017 }
7018
7019
7020 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7021 PyObject *resultobj = 0;
7022 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7023 wxSize result;
7024 void *argp1 = 0 ;
7025 int res1 = 0 ;
7026 PyObject *swig_obj[1] ;
7027
7028 if (!args) SWIG_fail;
7029 swig_obj[0] = args;
7030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7031 if (!SWIG_IsOK(res1)) {
7032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7033 }
7034 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7035 {
7036 result = ((wxPixelDataBase const *)arg1)->GetSize();
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7040 return resultobj;
7041 fail:
7042 return NULL;
7043 }
7044
7045
7046 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7047 PyObject *resultobj = 0;
7048 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7049 int result;
7050 void *argp1 = 0 ;
7051 int res1 = 0 ;
7052 PyObject *swig_obj[1] ;
7053
7054 if (!args) SWIG_fail;
7055 swig_obj[0] = args;
7056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7057 if (!SWIG_IsOK(res1)) {
7058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7059 }
7060 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7061 {
7062 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 resultobj = SWIG_From_int(static_cast< int >(result));
7066 return resultobj;
7067 fail:
7068 return NULL;
7069 }
7070
7071
7072 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7073 PyObject *obj;
7074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7075 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7076 return SWIG_Py_Void();
7077 }
7078
7079 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7080 PyObject *resultobj = 0;
7081 wxBitmap *arg1 = 0 ;
7082 wxNativePixelData *result = 0 ;
7083 void *argp1 = 0 ;
7084 int res1 = 0 ;
7085
7086 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7088 if (!SWIG_IsOK(res1)) {
7089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7090 }
7091 if (!argp1) {
7092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7093 }
7094 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7095 {
7096 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7097 if (PyErr_Occurred()) SWIG_fail;
7098 }
7099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7100 return resultobj;
7101 fail:
7102 return NULL;
7103 }
7104
7105
7106 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7107 PyObject *resultobj = 0;
7108 wxBitmap *arg1 = 0 ;
7109 wxRect *arg2 = 0 ;
7110 wxNativePixelData *result = 0 ;
7111 void *argp1 = 0 ;
7112 int res1 = 0 ;
7113 wxRect temp2 ;
7114
7115 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7117 if (!SWIG_IsOK(res1)) {
7118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7119 }
7120 if (!argp1) {
7121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7122 }
7123 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7124 {
7125 arg2 = &temp2;
7126 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7127 }
7128 {
7129 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7130 if (PyErr_Occurred()) SWIG_fail;
7131 }
7132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7133 return resultobj;
7134 fail:
7135 return NULL;
7136 }
7137
7138
7139 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7140 PyObject *resultobj = 0;
7141 wxBitmap *arg1 = 0 ;
7142 wxPoint *arg2 = 0 ;
7143 wxSize *arg3 = 0 ;
7144 wxNativePixelData *result = 0 ;
7145 void *argp1 = 0 ;
7146 int res1 = 0 ;
7147 wxPoint temp2 ;
7148 wxSize temp3 ;
7149
7150 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7152 if (!SWIG_IsOK(res1)) {
7153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7154 }
7155 if (!argp1) {
7156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7157 }
7158 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7159 {
7160 arg2 = &temp2;
7161 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7162 }
7163 {
7164 arg3 = &temp3;
7165 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7166 }
7167 {
7168 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
7171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7172 return resultobj;
7173 fail:
7174 return NULL;
7175 }
7176
7177
7178 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7179 int argc;
7180 PyObject *argv[4];
7181
7182 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7183 --argc;
7184 if (argc == 1) {
7185 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7186 }
7187 if (argc == 2) {
7188 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7189 }
7190 if (argc == 3) {
7191 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7192 }
7193
7194 fail:
7195 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7196 return NULL;
7197 }
7198
7199
7200 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7201 PyObject *resultobj = 0;
7202 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7203 void *argp1 = 0 ;
7204 int res1 = 0 ;
7205 PyObject *swig_obj[1] ;
7206
7207 if (!args) SWIG_fail;
7208 swig_obj[0] = args;
7209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7210 if (!SWIG_IsOK(res1)) {
7211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7212 }
7213 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7214 {
7215 delete arg1;
7216
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_Py_Void();
7220 return resultobj;
7221 fail:
7222 return NULL;
7223 }
7224
7225
7226 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7227 PyObject *resultobj = 0;
7228 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7229 wxNativePixelData_Accessor result;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 PyObject *swig_obj[1] ;
7233
7234 if (!args) SWIG_fail;
7235 swig_obj[0] = args;
7236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7237 if (!SWIG_IsOK(res1)) {
7238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7239 }
7240 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7241 {
7242 result = ((wxNativePixelData const *)arg1)->GetPixels();
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7246 return resultobj;
7247 fail:
7248 return NULL;
7249 }
7250
7251
7252 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7253 PyObject *resultobj = 0;
7254 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7255 void *argp1 = 0 ;
7256 int res1 = 0 ;
7257 PyObject *swig_obj[1] ;
7258
7259 if (!args) SWIG_fail;
7260 swig_obj[0] = args;
7261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7262 if (!SWIG_IsOK(res1)) {
7263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7264 }
7265 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7266 {
7267 (arg1)->UseAlpha();
7268 if (PyErr_Occurred()) SWIG_fail;
7269 }
7270 resultobj = SWIG_Py_Void();
7271 return resultobj;
7272 fail:
7273 return NULL;
7274 }
7275
7276
7277 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7278 PyObject *resultobj = 0;
7279 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7280 bool result;
7281 void *argp1 = 0 ;
7282 int res1 = 0 ;
7283 PyObject *swig_obj[1] ;
7284
7285 if (!args) SWIG_fail;
7286 swig_obj[0] = args;
7287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7288 if (!SWIG_IsOK(res1)) {
7289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7290 }
7291 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7292 {
7293 result = (bool)wxNativePixelData___nonzero__(arg1);
7294 if (PyErr_Occurred()) SWIG_fail;
7295 }
7296 {
7297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7298 }
7299 return resultobj;
7300 fail:
7301 return NULL;
7302 }
7303
7304
7305 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7306 PyObject *obj;
7307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7308 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7309 return SWIG_Py_Void();
7310 }
7311
7312 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7313 return SWIG_Python_InitShadowInstance(args);
7314 }
7315
7316 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7317 PyObject *resultobj = 0;
7318 wxNativePixelData *arg1 = 0 ;
7319 wxNativePixelData_Accessor *result = 0 ;
7320 void *argp1 = 0 ;
7321 int res1 = 0 ;
7322
7323 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7325 if (!SWIG_IsOK(res1)) {
7326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7327 }
7328 if (!argp1) {
7329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7330 }
7331 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7332 {
7333 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7334 if (PyErr_Occurred()) SWIG_fail;
7335 }
7336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7337 return resultobj;
7338 fail:
7339 return NULL;
7340 }
7341
7342
7343 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7344 PyObject *resultobj = 0;
7345 wxBitmap *arg1 = 0 ;
7346 wxNativePixelData *arg2 = 0 ;
7347 wxNativePixelData_Accessor *result = 0 ;
7348 void *argp1 = 0 ;
7349 int res1 = 0 ;
7350 void *argp2 = 0 ;
7351 int res2 = 0 ;
7352
7353 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7355 if (!SWIG_IsOK(res1)) {
7356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7357 }
7358 if (!argp1) {
7359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7360 }
7361 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7362 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7363 if (!SWIG_IsOK(res2)) {
7364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7365 }
7366 if (!argp2) {
7367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7368 }
7369 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7370 {
7371 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7382 PyObject *resultobj = 0;
7383 wxNativePixelData_Accessor *result = 0 ;
7384
7385 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7386 {
7387 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7388 if (PyErr_Occurred()) SWIG_fail;
7389 }
7390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7391 return resultobj;
7392 fail:
7393 return NULL;
7394 }
7395
7396
7397 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7398 int argc;
7399 PyObject *argv[3];
7400
7401 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7402 --argc;
7403 if (argc == 0) {
7404 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7405 }
7406 if (argc == 1) {
7407 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7408 }
7409 if (argc == 2) {
7410 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7411 }
7412
7413 fail:
7414 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7415 return NULL;
7416 }
7417
7418
7419 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7420 PyObject *resultobj = 0;
7421 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7422 void *argp1 = 0 ;
7423 int res1 = 0 ;
7424 PyObject *swig_obj[1] ;
7425
7426 if (!args) SWIG_fail;
7427 swig_obj[0] = args;
7428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7429 if (!SWIG_IsOK(res1)) {
7430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7431 }
7432 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7433 {
7434 delete arg1;
7435
7436 if (PyErr_Occurred()) SWIG_fail;
7437 }
7438 resultobj = SWIG_Py_Void();
7439 return resultobj;
7440 fail:
7441 return NULL;
7442 }
7443
7444
7445 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7446 PyObject *resultobj = 0;
7447 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7448 wxNativePixelData *arg2 = 0 ;
7449 void *argp1 = 0 ;
7450 int res1 = 0 ;
7451 void *argp2 = 0 ;
7452 int res2 = 0 ;
7453 PyObject * obj0 = 0 ;
7454 PyObject * obj1 = 0 ;
7455 char * kwnames[] = {
7456 (char *) "self",(char *) "data", NULL
7457 };
7458
7459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7461 if (!SWIG_IsOK(res1)) {
7462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7463 }
7464 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7466 if (!SWIG_IsOK(res2)) {
7467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7468 }
7469 if (!argp2) {
7470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7471 }
7472 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7473 {
7474 (arg1)->Reset((wxNativePixelData const &)*arg2);
7475 if (PyErr_Occurred()) SWIG_fail;
7476 }
7477 resultobj = SWIG_Py_Void();
7478 return resultobj;
7479 fail:
7480 return NULL;
7481 }
7482
7483
7484 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7485 PyObject *resultobj = 0;
7486 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7487 bool result;
7488 void *argp1 = 0 ;
7489 int res1 = 0 ;
7490 PyObject *swig_obj[1] ;
7491
7492 if (!args) SWIG_fail;
7493 swig_obj[0] = args;
7494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7495 if (!SWIG_IsOK(res1)) {
7496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7497 }
7498 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7499 {
7500 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 {
7504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7505 }
7506 return resultobj;
7507 fail:
7508 return NULL;
7509 }
7510
7511
7512 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7513 PyObject *resultobj = 0;
7514 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7515 void *argp1 = 0 ;
7516 int res1 = 0 ;
7517 PyObject *swig_obj[1] ;
7518
7519 if (!args) SWIG_fail;
7520 swig_obj[0] = args;
7521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7522 if (!SWIG_IsOK(res1)) {
7523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7524 }
7525 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7526 {
7527 wxNativePixelData_Accessor_nextPixel(arg1);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_Py_Void();
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj = 0;
7539 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7540 wxNativePixelData *arg2 = 0 ;
7541 int arg3 ;
7542 int arg4 ;
7543 void *argp1 = 0 ;
7544 int res1 = 0 ;
7545 void *argp2 = 0 ;
7546 int res2 = 0 ;
7547 int val3 ;
7548 int ecode3 = 0 ;
7549 int val4 ;
7550 int ecode4 = 0 ;
7551 PyObject * obj0 = 0 ;
7552 PyObject * obj1 = 0 ;
7553 PyObject * obj2 = 0 ;
7554 PyObject * obj3 = 0 ;
7555 char * kwnames[] = {
7556 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7557 };
7558
7559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7561 if (!SWIG_IsOK(res1)) {
7562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7563 }
7564 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7565 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7566 if (!SWIG_IsOK(res2)) {
7567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7568 }
7569 if (!argp2) {
7570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7571 }
7572 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7573 ecode3 = SWIG_AsVal_int(obj2, &val3);
7574 if (!SWIG_IsOK(ecode3)) {
7575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7576 }
7577 arg3 = static_cast< int >(val3);
7578 ecode4 = SWIG_AsVal_int(obj3, &val4);
7579 if (!SWIG_IsOK(ecode4)) {
7580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7581 }
7582 arg4 = static_cast< int >(val4);
7583 {
7584 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = SWIG_Py_Void();
7588 return resultobj;
7589 fail:
7590 return NULL;
7591 }
7592
7593
7594 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7595 PyObject *resultobj = 0;
7596 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7597 wxNativePixelData *arg2 = 0 ;
7598 int arg3 ;
7599 void *argp1 = 0 ;
7600 int res1 = 0 ;
7601 void *argp2 = 0 ;
7602 int res2 = 0 ;
7603 int val3 ;
7604 int ecode3 = 0 ;
7605 PyObject * obj0 = 0 ;
7606 PyObject * obj1 = 0 ;
7607 PyObject * obj2 = 0 ;
7608 char * kwnames[] = {
7609 (char *) "self",(char *) "data",(char *) "x", NULL
7610 };
7611
7612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7614 if (!SWIG_IsOK(res1)) {
7615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7616 }
7617 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7619 if (!SWIG_IsOK(res2)) {
7620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7621 }
7622 if (!argp2) {
7623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7624 }
7625 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7626 ecode3 = SWIG_AsVal_int(obj2, &val3);
7627 if (!SWIG_IsOK(ecode3)) {
7628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7629 }
7630 arg3 = static_cast< int >(val3);
7631 {
7632 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 resultobj = SWIG_Py_Void();
7636 return resultobj;
7637 fail:
7638 return NULL;
7639 }
7640
7641
7642 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj = 0;
7644 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7645 wxNativePixelData *arg2 = 0 ;
7646 int arg3 ;
7647 void *argp1 = 0 ;
7648 int res1 = 0 ;
7649 void *argp2 = 0 ;
7650 int res2 = 0 ;
7651 int val3 ;
7652 int ecode3 = 0 ;
7653 PyObject * obj0 = 0 ;
7654 PyObject * obj1 = 0 ;
7655 PyObject * obj2 = 0 ;
7656 char * kwnames[] = {
7657 (char *) "self",(char *) "data",(char *) "y", NULL
7658 };
7659
7660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7662 if (!SWIG_IsOK(res1)) {
7663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7664 }
7665 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7667 if (!SWIG_IsOK(res2)) {
7668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7669 }
7670 if (!argp2) {
7671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7672 }
7673 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7674 ecode3 = SWIG_AsVal_int(obj2, &val3);
7675 if (!SWIG_IsOK(ecode3)) {
7676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7677 }
7678 arg3 = static_cast< int >(val3);
7679 {
7680 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_Py_Void();
7684 return resultobj;
7685 fail:
7686 return NULL;
7687 }
7688
7689
7690 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj = 0;
7692 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7693 wxNativePixelData *arg2 = 0 ;
7694 int arg3 ;
7695 int arg4 ;
7696 void *argp1 = 0 ;
7697 int res1 = 0 ;
7698 void *argp2 = 0 ;
7699 int res2 = 0 ;
7700 int val3 ;
7701 int ecode3 = 0 ;
7702 int val4 ;
7703 int ecode4 = 0 ;
7704 PyObject * obj0 = 0 ;
7705 PyObject * obj1 = 0 ;
7706 PyObject * obj2 = 0 ;
7707 PyObject * obj3 = 0 ;
7708 char * kwnames[] = {
7709 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7710 };
7711
7712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7714 if (!SWIG_IsOK(res1)) {
7715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7716 }
7717 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7719 if (!SWIG_IsOK(res2)) {
7720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7721 }
7722 if (!argp2) {
7723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7724 }
7725 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7726 ecode3 = SWIG_AsVal_int(obj2, &val3);
7727 if (!SWIG_IsOK(ecode3)) {
7728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7729 }
7730 arg3 = static_cast< int >(val3);
7731 ecode4 = SWIG_AsVal_int(obj3, &val4);
7732 if (!SWIG_IsOK(ecode4)) {
7733 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7734 }
7735 arg4 = static_cast< int >(val4);
7736 {
7737 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 resultobj = SWIG_Py_Void();
7741 return resultobj;
7742 fail:
7743 return NULL;
7744 }
7745
7746
7747 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7748 PyObject *resultobj = 0;
7749 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7750 byte arg2 ;
7751 byte arg3 ;
7752 byte arg4 ;
7753 void *argp1 = 0 ;
7754 int res1 = 0 ;
7755 unsigned char val2 ;
7756 int ecode2 = 0 ;
7757 unsigned char val3 ;
7758 int ecode3 = 0 ;
7759 unsigned char val4 ;
7760 int ecode4 = 0 ;
7761 PyObject * obj0 = 0 ;
7762 PyObject * obj1 = 0 ;
7763 PyObject * obj2 = 0 ;
7764 PyObject * obj3 = 0 ;
7765 char * kwnames[] = {
7766 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7767 };
7768
7769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7771 if (!SWIG_IsOK(res1)) {
7772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7773 }
7774 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7775 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7776 if (!SWIG_IsOK(ecode2)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7778 }
7779 arg2 = static_cast< byte >(val2);
7780 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7781 if (!SWIG_IsOK(ecode3)) {
7782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7783 }
7784 arg3 = static_cast< byte >(val3);
7785 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7786 if (!SWIG_IsOK(ecode4)) {
7787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7788 }
7789 arg4 = static_cast< byte >(val4);
7790 {
7791 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_Py_Void();
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7802 PyObject *resultobj = 0;
7803 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7804 PyObject *result = 0 ;
7805 void *argp1 = 0 ;
7806 int res1 = 0 ;
7807 PyObject *swig_obj[1] ;
7808
7809 if (!args) SWIG_fail;
7810 swig_obj[0] = args;
7811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7812 if (!SWIG_IsOK(res1)) {
7813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7814 }
7815 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7816 {
7817 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 resultobj = result;
7821 return resultobj;
7822 fail:
7823 return NULL;
7824 }
7825
7826
7827 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7828 PyObject *obj;
7829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7830 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7831 return SWIG_Py_Void();
7832 }
7833
7834 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7835 return SWIG_Python_InitShadowInstance(args);
7836 }
7837
7838 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7839 PyObject *resultobj = 0;
7840 wxBitmap *arg1 = 0 ;
7841 wxAlphaPixelData *result = 0 ;
7842 void *argp1 = 0 ;
7843 int res1 = 0 ;
7844
7845 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7847 if (!SWIG_IsOK(res1)) {
7848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7849 }
7850 if (!argp1) {
7851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7852 }
7853 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7854 {
7855 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
7858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7859 return resultobj;
7860 fail:
7861 return NULL;
7862 }
7863
7864
7865 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7866 PyObject *resultobj = 0;
7867 wxBitmap *arg1 = 0 ;
7868 wxRect *arg2 = 0 ;
7869 wxAlphaPixelData *result = 0 ;
7870 void *argp1 = 0 ;
7871 int res1 = 0 ;
7872 wxRect temp2 ;
7873
7874 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7876 if (!SWIG_IsOK(res1)) {
7877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7878 }
7879 if (!argp1) {
7880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7881 }
7882 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7883 {
7884 arg2 = &temp2;
7885 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7886 }
7887 {
7888 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7889 if (PyErr_Occurred()) SWIG_fail;
7890 }
7891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7892 return resultobj;
7893 fail:
7894 return NULL;
7895 }
7896
7897
7898 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7899 PyObject *resultobj = 0;
7900 wxBitmap *arg1 = 0 ;
7901 wxPoint *arg2 = 0 ;
7902 wxSize *arg3 = 0 ;
7903 wxAlphaPixelData *result = 0 ;
7904 void *argp1 = 0 ;
7905 int res1 = 0 ;
7906 wxPoint temp2 ;
7907 wxSize temp3 ;
7908
7909 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7911 if (!SWIG_IsOK(res1)) {
7912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7913 }
7914 if (!argp1) {
7915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7916 }
7917 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7918 {
7919 arg2 = &temp2;
7920 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7921 }
7922 {
7923 arg3 = &temp3;
7924 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7925 }
7926 {
7927 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7931 return resultobj;
7932 fail:
7933 return NULL;
7934 }
7935
7936
7937 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7938 int argc;
7939 PyObject *argv[4];
7940
7941 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7942 --argc;
7943 if (argc == 1) {
7944 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7945 }
7946 if (argc == 2) {
7947 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7948 }
7949 if (argc == 3) {
7950 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7951 }
7952
7953 fail:
7954 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7955 return NULL;
7956 }
7957
7958
7959 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7960 PyObject *resultobj = 0;
7961 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7962 void *argp1 = 0 ;
7963 int res1 = 0 ;
7964 PyObject *swig_obj[1] ;
7965
7966 if (!args) SWIG_fail;
7967 swig_obj[0] = args;
7968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7969 if (!SWIG_IsOK(res1)) {
7970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7971 }
7972 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7973 {
7974 delete arg1;
7975
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 resultobj = SWIG_Py_Void();
7979 return resultobj;
7980 fail:
7981 return NULL;
7982 }
7983
7984
7985 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7986 PyObject *resultobj = 0;
7987 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7988 wxAlphaPixelData_Accessor result;
7989 void *argp1 = 0 ;
7990 int res1 = 0 ;
7991 PyObject *swig_obj[1] ;
7992
7993 if (!args) SWIG_fail;
7994 swig_obj[0] = args;
7995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7996 if (!SWIG_IsOK(res1)) {
7997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7998 }
7999 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8000 {
8001 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8002 if (PyErr_Occurred()) SWIG_fail;
8003 }
8004 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8005 return resultobj;
8006 fail:
8007 return NULL;
8008 }
8009
8010
8011 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8012 PyObject *resultobj = 0;
8013 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 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_wxAlphaPixelData, 0 | 0 );
8021 if (!SWIG_IsOK(res1)) {
8022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8023 }
8024 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8025 {
8026 (arg1)->UseAlpha();
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 resultobj = SWIG_Py_Void();
8030 return resultobj;
8031 fail:
8032 return NULL;
8033 }
8034
8035
8036 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8037 PyObject *resultobj = 0;
8038 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8039 bool result;
8040 void *argp1 = 0 ;
8041 int res1 = 0 ;
8042 PyObject *swig_obj[1] ;
8043
8044 if (!args) SWIG_fail;
8045 swig_obj[0] = args;
8046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8047 if (!SWIG_IsOK(res1)) {
8048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8049 }
8050 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8051 {
8052 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8053 if (PyErr_Occurred()) SWIG_fail;
8054 }
8055 {
8056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8057 }
8058 return resultobj;
8059 fail:
8060 return NULL;
8061 }
8062
8063
8064 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8065 PyObject *obj;
8066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8067 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8068 return SWIG_Py_Void();
8069 }
8070
8071 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8072 return SWIG_Python_InitShadowInstance(args);
8073 }
8074
8075 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8076 PyObject *resultobj = 0;
8077 wxAlphaPixelData *arg1 = 0 ;
8078 wxAlphaPixelData_Accessor *result = 0 ;
8079 void *argp1 = 0 ;
8080 int res1 = 0 ;
8081
8082 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8084 if (!SWIG_IsOK(res1)) {
8085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8086 }
8087 if (!argp1) {
8088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8089 }
8090 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8091 {
8092 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 }
8095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8096 return resultobj;
8097 fail:
8098 return NULL;
8099 }
8100
8101
8102 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8103 PyObject *resultobj = 0;
8104 wxBitmap *arg1 = 0 ;
8105 wxAlphaPixelData *arg2 = 0 ;
8106 wxAlphaPixelData_Accessor *result = 0 ;
8107 void *argp1 = 0 ;
8108 int res1 = 0 ;
8109 void *argp2 = 0 ;
8110 int res2 = 0 ;
8111
8112 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8114 if (!SWIG_IsOK(res1)) {
8115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8116 }
8117 if (!argp1) {
8118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8119 }
8120 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8121 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8122 if (!SWIG_IsOK(res2)) {
8123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8124 }
8125 if (!argp2) {
8126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8127 }
8128 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8129 {
8130 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8131 if (PyErr_Occurred()) SWIG_fail;
8132 }
8133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8134 return resultobj;
8135 fail:
8136 return NULL;
8137 }
8138
8139
8140 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8141 PyObject *resultobj = 0;
8142 wxAlphaPixelData_Accessor *result = 0 ;
8143
8144 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8145 {
8146 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8147 if (PyErr_Occurred()) SWIG_fail;
8148 }
8149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8150 return resultobj;
8151 fail:
8152 return NULL;
8153 }
8154
8155
8156 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8157 int argc;
8158 PyObject *argv[3];
8159
8160 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8161 --argc;
8162 if (argc == 0) {
8163 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8164 }
8165 if (argc == 1) {
8166 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8167 }
8168 if (argc == 2) {
8169 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8170 }
8171
8172 fail:
8173 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8174 return NULL;
8175 }
8176
8177
8178 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8179 PyObject *resultobj = 0;
8180 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8181 void *argp1 = 0 ;
8182 int res1 = 0 ;
8183 PyObject *swig_obj[1] ;
8184
8185 if (!args) SWIG_fail;
8186 swig_obj[0] = args;
8187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8188 if (!SWIG_IsOK(res1)) {
8189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8190 }
8191 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8192 {
8193 delete arg1;
8194
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_Py_Void();
8198 return resultobj;
8199 fail:
8200 return NULL;
8201 }
8202
8203
8204 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8205 PyObject *resultobj = 0;
8206 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8207 wxAlphaPixelData *arg2 = 0 ;
8208 void *argp1 = 0 ;
8209 int res1 = 0 ;
8210 void *argp2 = 0 ;
8211 int res2 = 0 ;
8212 PyObject * obj0 = 0 ;
8213 PyObject * obj1 = 0 ;
8214 char * kwnames[] = {
8215 (char *) "self",(char *) "data", NULL
8216 };
8217
8218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8220 if (!SWIG_IsOK(res1)) {
8221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8222 }
8223 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8225 if (!SWIG_IsOK(res2)) {
8226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8227 }
8228 if (!argp2) {
8229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8230 }
8231 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8232 {
8233 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8234 if (PyErr_Occurred()) SWIG_fail;
8235 }
8236 resultobj = SWIG_Py_Void();
8237 return resultobj;
8238 fail:
8239 return NULL;
8240 }
8241
8242
8243 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8244 PyObject *resultobj = 0;
8245 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8246 bool result;
8247 void *argp1 = 0 ;
8248 int res1 = 0 ;
8249 PyObject *swig_obj[1] ;
8250
8251 if (!args) SWIG_fail;
8252 swig_obj[0] = args;
8253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8254 if (!SWIG_IsOK(res1)) {
8255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8256 }
8257 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8258 {
8259 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 {
8263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8264 }
8265 return resultobj;
8266 fail:
8267 return NULL;
8268 }
8269
8270
8271 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8272 PyObject *resultobj = 0;
8273 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8274 void *argp1 = 0 ;
8275 int res1 = 0 ;
8276 PyObject *swig_obj[1] ;
8277
8278 if (!args) SWIG_fail;
8279 swig_obj[0] = args;
8280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8281 if (!SWIG_IsOK(res1)) {
8282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8283 }
8284 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8285 {
8286 wxAlphaPixelData_Accessor_nextPixel(arg1);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 resultobj = SWIG_Py_Void();
8290 return resultobj;
8291 fail:
8292 return NULL;
8293 }
8294
8295
8296 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8297 PyObject *resultobj = 0;
8298 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8299 wxAlphaPixelData *arg2 = 0 ;
8300 int arg3 ;
8301 int arg4 ;
8302 void *argp1 = 0 ;
8303 int res1 = 0 ;
8304 void *argp2 = 0 ;
8305 int res2 = 0 ;
8306 int val3 ;
8307 int ecode3 = 0 ;
8308 int val4 ;
8309 int ecode4 = 0 ;
8310 PyObject * obj0 = 0 ;
8311 PyObject * obj1 = 0 ;
8312 PyObject * obj2 = 0 ;
8313 PyObject * obj3 = 0 ;
8314 char * kwnames[] = {
8315 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8316 };
8317
8318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8320 if (!SWIG_IsOK(res1)) {
8321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8322 }
8323 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8325 if (!SWIG_IsOK(res2)) {
8326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8327 }
8328 if (!argp2) {
8329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8330 }
8331 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8332 ecode3 = SWIG_AsVal_int(obj2, &val3);
8333 if (!SWIG_IsOK(ecode3)) {
8334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8335 }
8336 arg3 = static_cast< int >(val3);
8337 ecode4 = SWIG_AsVal_int(obj3, &val4);
8338 if (!SWIG_IsOK(ecode4)) {
8339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8340 }
8341 arg4 = static_cast< int >(val4);
8342 {
8343 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_Py_Void();
8347 return resultobj;
8348 fail:
8349 return NULL;
8350 }
8351
8352
8353 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8354 PyObject *resultobj = 0;
8355 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8356 wxAlphaPixelData *arg2 = 0 ;
8357 int arg3 ;
8358 void *argp1 = 0 ;
8359 int res1 = 0 ;
8360 void *argp2 = 0 ;
8361 int res2 = 0 ;
8362 int val3 ;
8363 int ecode3 = 0 ;
8364 PyObject * obj0 = 0 ;
8365 PyObject * obj1 = 0 ;
8366 PyObject * obj2 = 0 ;
8367 char * kwnames[] = {
8368 (char *) "self",(char *) "data",(char *) "x", NULL
8369 };
8370
8371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8373 if (!SWIG_IsOK(res1)) {
8374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8375 }
8376 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8378 if (!SWIG_IsOK(res2)) {
8379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8380 }
8381 if (!argp2) {
8382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8383 }
8384 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8385 ecode3 = SWIG_AsVal_int(obj2, &val3);
8386 if (!SWIG_IsOK(ecode3)) {
8387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8388 }
8389 arg3 = static_cast< int >(val3);
8390 {
8391 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 resultobj = SWIG_Py_Void();
8395 return resultobj;
8396 fail:
8397 return NULL;
8398 }
8399
8400
8401 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj = 0;
8403 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8404 wxAlphaPixelData *arg2 = 0 ;
8405 int arg3 ;
8406 void *argp1 = 0 ;
8407 int res1 = 0 ;
8408 void *argp2 = 0 ;
8409 int res2 = 0 ;
8410 int val3 ;
8411 int ecode3 = 0 ;
8412 PyObject * obj0 = 0 ;
8413 PyObject * obj1 = 0 ;
8414 PyObject * obj2 = 0 ;
8415 char * kwnames[] = {
8416 (char *) "self",(char *) "data",(char *) "y", NULL
8417 };
8418
8419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8421 if (!SWIG_IsOK(res1)) {
8422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8423 }
8424 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8426 if (!SWIG_IsOK(res2)) {
8427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8428 }
8429 if (!argp2) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8431 }
8432 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8433 ecode3 = SWIG_AsVal_int(obj2, &val3);
8434 if (!SWIG_IsOK(ecode3)) {
8435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8436 }
8437 arg3 = static_cast< int >(val3);
8438 {
8439 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 resultobj = SWIG_Py_Void();
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj = 0;
8451 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8452 wxAlphaPixelData *arg2 = 0 ;
8453 int arg3 ;
8454 int arg4 ;
8455 void *argp1 = 0 ;
8456 int res1 = 0 ;
8457 void *argp2 = 0 ;
8458 int res2 = 0 ;
8459 int val3 ;
8460 int ecode3 = 0 ;
8461 int val4 ;
8462 int ecode4 = 0 ;
8463 PyObject * obj0 = 0 ;
8464 PyObject * obj1 = 0 ;
8465 PyObject * obj2 = 0 ;
8466 PyObject * obj3 = 0 ;
8467 char * kwnames[] = {
8468 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8469 };
8470
8471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8473 if (!SWIG_IsOK(res1)) {
8474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8475 }
8476 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8478 if (!SWIG_IsOK(res2)) {
8479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8480 }
8481 if (!argp2) {
8482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8483 }
8484 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8485 ecode3 = SWIG_AsVal_int(obj2, &val3);
8486 if (!SWIG_IsOK(ecode3)) {
8487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8488 }
8489 arg3 = static_cast< int >(val3);
8490 ecode4 = SWIG_AsVal_int(obj3, &val4);
8491 if (!SWIG_IsOK(ecode4)) {
8492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8493 }
8494 arg4 = static_cast< int >(val4);
8495 {
8496 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8497 if (PyErr_Occurred()) SWIG_fail;
8498 }
8499 resultobj = SWIG_Py_Void();
8500 return resultobj;
8501 fail:
8502 return NULL;
8503 }
8504
8505
8506 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8507 PyObject *resultobj = 0;
8508 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8509 byte arg2 ;
8510 byte arg3 ;
8511 byte arg4 ;
8512 byte arg5 ;
8513 void *argp1 = 0 ;
8514 int res1 = 0 ;
8515 unsigned char val2 ;
8516 int ecode2 = 0 ;
8517 unsigned char val3 ;
8518 int ecode3 = 0 ;
8519 unsigned char val4 ;
8520 int ecode4 = 0 ;
8521 unsigned char val5 ;
8522 int ecode5 = 0 ;
8523 PyObject * obj0 = 0 ;
8524 PyObject * obj1 = 0 ;
8525 PyObject * obj2 = 0 ;
8526 PyObject * obj3 = 0 ;
8527 PyObject * obj4 = 0 ;
8528 char * kwnames[] = {
8529 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8530 };
8531
8532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8534 if (!SWIG_IsOK(res1)) {
8535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8536 }
8537 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8538 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8539 if (!SWIG_IsOK(ecode2)) {
8540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8541 }
8542 arg2 = static_cast< byte >(val2);
8543 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8544 if (!SWIG_IsOK(ecode3)) {
8545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8546 }
8547 arg3 = static_cast< byte >(val3);
8548 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8549 if (!SWIG_IsOK(ecode4)) {
8550 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8551 }
8552 arg4 = static_cast< byte >(val4);
8553 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8554 if (!SWIG_IsOK(ecode5)) {
8555 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8556 }
8557 arg5 = static_cast< byte >(val5);
8558 {
8559 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 resultobj = SWIG_Py_Void();
8563 return resultobj;
8564 fail:
8565 return NULL;
8566 }
8567
8568
8569 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8570 PyObject *resultobj = 0;
8571 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8572 PyObject *result = 0 ;
8573 void *argp1 = 0 ;
8574 int res1 = 0 ;
8575 PyObject *swig_obj[1] ;
8576
8577 if (!args) SWIG_fail;
8578 swig_obj[0] = args;
8579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8580 if (!SWIG_IsOK(res1)) {
8581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8582 }
8583 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8584 {
8585 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 resultobj = result;
8589 return resultobj;
8590 fail:
8591 return NULL;
8592 }
8593
8594
8595 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8596 PyObject *obj;
8597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8598 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8599 return SWIG_Py_Void();
8600 }
8601
8602 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8603 return SWIG_Python_InitShadowInstance(args);
8604 }
8605
8606 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8607 PyObject *resultobj = 0;
8608 wxBitmap *arg1 = 0 ;
8609 wxColour const &arg2_defvalue = wxNullColour ;
8610 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8611 wxMask *result = 0 ;
8612 void *argp1 = 0 ;
8613 int res1 = 0 ;
8614 wxColour temp2 ;
8615 PyObject * obj0 = 0 ;
8616 PyObject * obj1 = 0 ;
8617 char * kwnames[] = {
8618 (char *) "bitmap",(char *) "colour", NULL
8619 };
8620
8621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8622 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8623 if (!SWIG_IsOK(res1)) {
8624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8625 }
8626 if (!argp1) {
8627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8628 }
8629 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8630 if (obj1) {
8631 {
8632 arg2 = &temp2;
8633 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8634 }
8635 }
8636 {
8637 if (!wxPyCheckForApp()) SWIG_fail;
8638 PyThreadState* __tstate = wxPyBeginAllowThreads();
8639 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8640 wxPyEndAllowThreads(__tstate);
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8644 return resultobj;
8645 fail:
8646 return NULL;
8647 }
8648
8649
8650 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8651 PyObject *resultobj = 0;
8652 wxMask *arg1 = (wxMask *) 0 ;
8653 void *argp1 = 0 ;
8654 int res1 = 0 ;
8655 PyObject *swig_obj[1] ;
8656
8657 if (!args) SWIG_fail;
8658 swig_obj[0] = args;
8659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8660 if (!SWIG_IsOK(res1)) {
8661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8662 }
8663 arg1 = reinterpret_cast< wxMask * >(argp1);
8664 {
8665 delete arg1;
8666
8667 if (PyErr_Occurred()) SWIG_fail;
8668 }
8669 resultobj = SWIG_Py_Void();
8670 return resultobj;
8671 fail:
8672 return NULL;
8673 }
8674
8675
8676 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8677 PyObject *obj;
8678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8679 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8680 return SWIG_Py_Void();
8681 }
8682
8683 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8684 return SWIG_Python_InitShadowInstance(args);
8685 }
8686
8687 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj = 0;
8689 wxString *arg1 = 0 ;
8690 wxBitmapType arg2 ;
8691 int arg3 = (int) -1 ;
8692 int arg4 = (int) -1 ;
8693 wxIcon *result = 0 ;
8694 bool temp1 = false ;
8695 int val2 ;
8696 int ecode2 = 0 ;
8697 int val3 ;
8698 int ecode3 = 0 ;
8699 int val4 ;
8700 int ecode4 = 0 ;
8701 PyObject * obj0 = 0 ;
8702 PyObject * obj1 = 0 ;
8703 PyObject * obj2 = 0 ;
8704 PyObject * obj3 = 0 ;
8705 char * kwnames[] = {
8706 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8707 };
8708
8709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8710 {
8711 arg1 = wxString_in_helper(obj0);
8712 if (arg1 == NULL) SWIG_fail;
8713 temp1 = true;
8714 }
8715 ecode2 = SWIG_AsVal_int(obj1, &val2);
8716 if (!SWIG_IsOK(ecode2)) {
8717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8718 }
8719 arg2 = static_cast< wxBitmapType >(val2);
8720 if (obj2) {
8721 ecode3 = SWIG_AsVal_int(obj2, &val3);
8722 if (!SWIG_IsOK(ecode3)) {
8723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8724 }
8725 arg3 = static_cast< int >(val3);
8726 }
8727 if (obj3) {
8728 ecode4 = SWIG_AsVal_int(obj3, &val4);
8729 if (!SWIG_IsOK(ecode4)) {
8730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8731 }
8732 arg4 = static_cast< int >(val4);
8733 }
8734 {
8735 if (!wxPyCheckForApp()) SWIG_fail;
8736 PyThreadState* __tstate = wxPyBeginAllowThreads();
8737 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8738 wxPyEndAllowThreads(__tstate);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 }
8741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8742 {
8743 if (temp1)
8744 delete arg1;
8745 }
8746 return resultobj;
8747 fail:
8748 {
8749 if (temp1)
8750 delete arg1;
8751 }
8752 return NULL;
8753 }
8754
8755
8756 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8757 PyObject *resultobj = 0;
8758 wxIcon *arg1 = (wxIcon *) 0 ;
8759 void *argp1 = 0 ;
8760 int res1 = 0 ;
8761 PyObject *swig_obj[1] ;
8762
8763 if (!args) SWIG_fail;
8764 swig_obj[0] = args;
8765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8766 if (!SWIG_IsOK(res1)) {
8767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8768 }
8769 arg1 = reinterpret_cast< wxIcon * >(argp1);
8770 {
8771 PyThreadState* __tstate = wxPyBeginAllowThreads();
8772 delete arg1;
8773
8774 wxPyEndAllowThreads(__tstate);
8775 if (PyErr_Occurred()) SWIG_fail;
8776 }
8777 resultobj = SWIG_Py_Void();
8778 return resultobj;
8779 fail:
8780 return NULL;
8781 }
8782
8783
8784 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8785 PyObject *resultobj = 0;
8786 wxIcon *result = 0 ;
8787
8788 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8789 {
8790 if (!wxPyCheckForApp()) SWIG_fail;
8791 PyThreadState* __tstate = wxPyBeginAllowThreads();
8792 result = (wxIcon *)new wxIcon();
8793 wxPyEndAllowThreads(__tstate);
8794 if (PyErr_Occurred()) SWIG_fail;
8795 }
8796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8797 return resultobj;
8798 fail:
8799 return NULL;
8800 }
8801
8802
8803 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8804 PyObject *resultobj = 0;
8805 wxIconLocation *arg1 = 0 ;
8806 wxIcon *result = 0 ;
8807 void *argp1 = 0 ;
8808 int res1 = 0 ;
8809 PyObject * obj0 = 0 ;
8810 char * kwnames[] = {
8811 (char *) "loc", NULL
8812 };
8813
8814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8815 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8816 if (!SWIG_IsOK(res1)) {
8817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8818 }
8819 if (!argp1) {
8820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8821 }
8822 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8823 {
8824 if (!wxPyCheckForApp()) SWIG_fail;
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8827 wxPyEndAllowThreads(__tstate);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8831 return resultobj;
8832 fail:
8833 return NULL;
8834 }
8835
8836
8837 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8838 PyObject *resultobj = 0;
8839 wxBitmap *arg1 = 0 ;
8840 wxIcon *result = 0 ;
8841 void *argp1 = 0 ;
8842 int res1 = 0 ;
8843 PyObject * obj0 = 0 ;
8844 char * kwnames[] = {
8845 (char *) "bmp", NULL
8846 };
8847
8848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8849 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8850 if (!SWIG_IsOK(res1)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8852 }
8853 if (!argp1) {
8854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8855 }
8856 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8857 {
8858 if (!wxPyCheckForApp()) SWIG_fail;
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8861 wxPyEndAllowThreads(__tstate);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 }
8864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8865 return resultobj;
8866 fail:
8867 return NULL;
8868 }
8869
8870
8871 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8872 PyObject *resultobj = 0;
8873 PyObject *arg1 = (PyObject *) 0 ;
8874 wxIcon *result = 0 ;
8875 PyObject * obj0 = 0 ;
8876 char * kwnames[] = {
8877 (char *) "listOfStrings", NULL
8878 };
8879
8880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8881 arg1 = obj0;
8882 {
8883 if (!wxPyCheckForApp()) SWIG_fail;
8884 PyThreadState* __tstate = wxPyBeginAllowThreads();
8885 result = (wxIcon *)new_wxIcon(arg1);
8886 wxPyEndAllowThreads(__tstate);
8887 if (PyErr_Occurred()) SWIG_fail;
8888 }
8889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8890 return resultobj;
8891 fail:
8892 return NULL;
8893 }
8894
8895
8896 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj = 0;
8898 wxIcon *arg1 = (wxIcon *) 0 ;
8899 wxString *arg2 = 0 ;
8900 wxBitmapType arg3 ;
8901 bool result;
8902 void *argp1 = 0 ;
8903 int res1 = 0 ;
8904 bool temp2 = false ;
8905 int val3 ;
8906 int ecode3 = 0 ;
8907 PyObject * obj0 = 0 ;
8908 PyObject * obj1 = 0 ;
8909 PyObject * obj2 = 0 ;
8910 char * kwnames[] = {
8911 (char *) "self",(char *) "name",(char *) "type", NULL
8912 };
8913
8914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8916 if (!SWIG_IsOK(res1)) {
8917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8918 }
8919 arg1 = reinterpret_cast< wxIcon * >(argp1);
8920 {
8921 arg2 = wxString_in_helper(obj1);
8922 if (arg2 == NULL) SWIG_fail;
8923 temp2 = true;
8924 }
8925 ecode3 = SWIG_AsVal_int(obj2, &val3);
8926 if (!SWIG_IsOK(ecode3)) {
8927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8928 }
8929 arg3 = static_cast< wxBitmapType >(val3);
8930 {
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8933 wxPyEndAllowThreads(__tstate);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 }
8936 {
8937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8938 }
8939 {
8940 if (temp2)
8941 delete arg2;
8942 }
8943 return resultobj;
8944 fail:
8945 {
8946 if (temp2)
8947 delete arg2;
8948 }
8949 return NULL;
8950 }
8951
8952
8953 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8954 PyObject *resultobj = 0;
8955 wxIcon *arg1 = (wxIcon *) 0 ;
8956 bool result;
8957 void *argp1 = 0 ;
8958 int res1 = 0 ;
8959 PyObject *swig_obj[1] ;
8960
8961 if (!args) SWIG_fail;
8962 swig_obj[0] = args;
8963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8964 if (!SWIG_IsOK(res1)) {
8965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
8966 }
8967 arg1 = reinterpret_cast< wxIcon * >(argp1);
8968 {
8969 PyThreadState* __tstate = wxPyBeginAllowThreads();
8970 result = (bool)(arg1)->IsOk();
8971 wxPyEndAllowThreads(__tstate);
8972 if (PyErr_Occurred()) SWIG_fail;
8973 }
8974 {
8975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8976 }
8977 return resultobj;
8978 fail:
8979 return NULL;
8980 }
8981
8982
8983 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8984 PyObject *resultobj = 0;
8985 wxIcon *arg1 = (wxIcon *) 0 ;
8986 int result;
8987 void *argp1 = 0 ;
8988 int res1 = 0 ;
8989 PyObject *swig_obj[1] ;
8990
8991 if (!args) SWIG_fail;
8992 swig_obj[0] = args;
8993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8994 if (!SWIG_IsOK(res1)) {
8995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8996 }
8997 arg1 = reinterpret_cast< wxIcon * >(argp1);
8998 {
8999 PyThreadState* __tstate = wxPyBeginAllowThreads();
9000 result = (int)(arg1)->GetWidth();
9001 wxPyEndAllowThreads(__tstate);
9002 if (PyErr_Occurred()) SWIG_fail;
9003 }
9004 resultobj = SWIG_From_int(static_cast< int >(result));
9005 return resultobj;
9006 fail:
9007 return NULL;
9008 }
9009
9010
9011 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9012 PyObject *resultobj = 0;
9013 wxIcon *arg1 = (wxIcon *) 0 ;
9014 int result;
9015 void *argp1 = 0 ;
9016 int res1 = 0 ;
9017 PyObject *swig_obj[1] ;
9018
9019 if (!args) SWIG_fail;
9020 swig_obj[0] = args;
9021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9022 if (!SWIG_IsOK(res1)) {
9023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9024 }
9025 arg1 = reinterpret_cast< wxIcon * >(argp1);
9026 {
9027 PyThreadState* __tstate = wxPyBeginAllowThreads();
9028 result = (int)(arg1)->GetHeight();
9029 wxPyEndAllowThreads(__tstate);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 }
9032 resultobj = SWIG_From_int(static_cast< int >(result));
9033 return resultobj;
9034 fail:
9035 return NULL;
9036 }
9037
9038
9039 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9040 PyObject *resultobj = 0;
9041 wxIcon *arg1 = (wxIcon *) 0 ;
9042 int result;
9043 void *argp1 = 0 ;
9044 int res1 = 0 ;
9045 PyObject *swig_obj[1] ;
9046
9047 if (!args) SWIG_fail;
9048 swig_obj[0] = args;
9049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9050 if (!SWIG_IsOK(res1)) {
9051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9052 }
9053 arg1 = reinterpret_cast< wxIcon * >(argp1);
9054 {
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 result = (int)(arg1)->GetDepth();
9057 wxPyEndAllowThreads(__tstate);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 }
9060 resultobj = SWIG_From_int(static_cast< int >(result));
9061 return resultobj;
9062 fail:
9063 return NULL;
9064 }
9065
9066
9067 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9068 PyObject *resultobj = 0;
9069 wxIcon *arg1 = (wxIcon *) 0 ;
9070 int arg2 ;
9071 void *argp1 = 0 ;
9072 int res1 = 0 ;
9073 int val2 ;
9074 int ecode2 = 0 ;
9075 PyObject * obj0 = 0 ;
9076 PyObject * obj1 = 0 ;
9077 char * kwnames[] = {
9078 (char *) "self",(char *) "w", NULL
9079 };
9080
9081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9083 if (!SWIG_IsOK(res1)) {
9084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9085 }
9086 arg1 = reinterpret_cast< wxIcon * >(argp1);
9087 ecode2 = SWIG_AsVal_int(obj1, &val2);
9088 if (!SWIG_IsOK(ecode2)) {
9089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9090 }
9091 arg2 = static_cast< int >(val2);
9092 {
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 (arg1)->SetWidth(arg2);
9095 wxPyEndAllowThreads(__tstate);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
9098 resultobj = SWIG_Py_Void();
9099 return resultobj;
9100 fail:
9101 return NULL;
9102 }
9103
9104
9105 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9106 PyObject *resultobj = 0;
9107 wxIcon *arg1 = (wxIcon *) 0 ;
9108 int arg2 ;
9109 void *argp1 = 0 ;
9110 int res1 = 0 ;
9111 int val2 ;
9112 int ecode2 = 0 ;
9113 PyObject * obj0 = 0 ;
9114 PyObject * obj1 = 0 ;
9115 char * kwnames[] = {
9116 (char *) "self",(char *) "h", NULL
9117 };
9118
9119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9121 if (!SWIG_IsOK(res1)) {
9122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9123 }
9124 arg1 = reinterpret_cast< wxIcon * >(argp1);
9125 ecode2 = SWIG_AsVal_int(obj1, &val2);
9126 if (!SWIG_IsOK(ecode2)) {
9127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9128 }
9129 arg2 = static_cast< int >(val2);
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 (arg1)->SetHeight(arg2);
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 resultobj = SWIG_Py_Void();
9137 return resultobj;
9138 fail:
9139 return NULL;
9140 }
9141
9142
9143 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9144 PyObject *resultobj = 0;
9145 wxIcon *arg1 = (wxIcon *) 0 ;
9146 int arg2 ;
9147 void *argp1 = 0 ;
9148 int res1 = 0 ;
9149 int val2 ;
9150 int ecode2 = 0 ;
9151 PyObject * obj0 = 0 ;
9152 PyObject * obj1 = 0 ;
9153 char * kwnames[] = {
9154 (char *) "self",(char *) "d", NULL
9155 };
9156
9157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9159 if (!SWIG_IsOK(res1)) {
9160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9161 }
9162 arg1 = reinterpret_cast< wxIcon * >(argp1);
9163 ecode2 = SWIG_AsVal_int(obj1, &val2);
9164 if (!SWIG_IsOK(ecode2)) {
9165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9166 }
9167 arg2 = static_cast< int >(val2);
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 (arg1)->SetDepth(arg2);
9171 wxPyEndAllowThreads(__tstate);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 }
9174 resultobj = SWIG_Py_Void();
9175 return resultobj;
9176 fail:
9177 return NULL;
9178 }
9179
9180
9181 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9182 PyObject *resultobj = 0;
9183 wxIcon *arg1 = (wxIcon *) 0 ;
9184 wxBitmap *arg2 = 0 ;
9185 void *argp1 = 0 ;
9186 int res1 = 0 ;
9187 void *argp2 = 0 ;
9188 int res2 = 0 ;
9189 PyObject * obj0 = 0 ;
9190 PyObject * obj1 = 0 ;
9191 char * kwnames[] = {
9192 (char *) "self",(char *) "bmp", NULL
9193 };
9194
9195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9197 if (!SWIG_IsOK(res1)) {
9198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9199 }
9200 arg1 = reinterpret_cast< wxIcon * >(argp1);
9201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9202 if (!SWIG_IsOK(res2)) {
9203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9204 }
9205 if (!argp2) {
9206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9207 }
9208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9209 {
9210 PyThreadState* __tstate = wxPyBeginAllowThreads();
9211 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9212 wxPyEndAllowThreads(__tstate);
9213 if (PyErr_Occurred()) SWIG_fail;
9214 }
9215 resultobj = SWIG_Py_Void();
9216 return resultobj;
9217 fail:
9218 return NULL;
9219 }
9220
9221
9222 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9223 PyObject *obj;
9224 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9225 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9226 return SWIG_Py_Void();
9227 }
9228
9229 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9230 return SWIG_Python_InitShadowInstance(args);
9231 }
9232
9233 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9234 PyObject *resultobj = 0;
9235 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9236 int arg2 = (int) 0 ;
9237 wxIconLocation *result = 0 ;
9238 bool temp1 = false ;
9239 int val2 ;
9240 int ecode2 = 0 ;
9241 PyObject * obj0 = 0 ;
9242 PyObject * obj1 = 0 ;
9243 char * kwnames[] = {
9244 (char *) "filename",(char *) "num", NULL
9245 };
9246
9247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9248 if (obj0) {
9249 {
9250 arg1 = wxString_in_helper(obj0);
9251 if (arg1 == NULL) SWIG_fail;
9252 temp1 = true;
9253 }
9254 }
9255 if (obj1) {
9256 ecode2 = SWIG_AsVal_int(obj1, &val2);
9257 if (!SWIG_IsOK(ecode2)) {
9258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9259 }
9260 arg2 = static_cast< int >(val2);
9261 }
9262 {
9263 PyThreadState* __tstate = wxPyBeginAllowThreads();
9264 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 }
9268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9269 {
9270 if (temp1)
9271 delete arg1;
9272 }
9273 return resultobj;
9274 fail:
9275 {
9276 if (temp1)
9277 delete arg1;
9278 }
9279 return NULL;
9280 }
9281
9282
9283 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9284 PyObject *resultobj = 0;
9285 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9286 void *argp1 = 0 ;
9287 int res1 = 0 ;
9288 PyObject *swig_obj[1] ;
9289
9290 if (!args) SWIG_fail;
9291 swig_obj[0] = args;
9292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9293 if (!SWIG_IsOK(res1)) {
9294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9295 }
9296 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 delete arg1;
9300
9301 wxPyEndAllowThreads(__tstate);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 resultobj = SWIG_Py_Void();
9305 return resultobj;
9306 fail:
9307 return NULL;
9308 }
9309
9310
9311 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9312 PyObject *resultobj = 0;
9313 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9314 bool result;
9315 void *argp1 = 0 ;
9316 int res1 = 0 ;
9317 PyObject *swig_obj[1] ;
9318
9319 if (!args) SWIG_fail;
9320 swig_obj[0] = args;
9321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9322 if (!SWIG_IsOK(res1)) {
9323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9324 }
9325 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 {
9333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9334 }
9335 return resultobj;
9336 fail:
9337 return NULL;
9338 }
9339
9340
9341 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9342 PyObject *resultobj = 0;
9343 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9344 wxString *arg2 = 0 ;
9345 void *argp1 = 0 ;
9346 int res1 = 0 ;
9347 bool temp2 = false ;
9348 PyObject * obj0 = 0 ;
9349 PyObject * obj1 = 0 ;
9350 char * kwnames[] = {
9351 (char *) "self",(char *) "filename", NULL
9352 };
9353
9354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9356 if (!SWIG_IsOK(res1)) {
9357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9358 }
9359 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9360 {
9361 arg2 = wxString_in_helper(obj1);
9362 if (arg2 == NULL) SWIG_fail;
9363 temp2 = true;
9364 }
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 (arg1)->SetFileName((wxString const &)*arg2);
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 resultobj = SWIG_Py_Void();
9372 {
9373 if (temp2)
9374 delete arg2;
9375 }
9376 return resultobj;
9377 fail:
9378 {
9379 if (temp2)
9380 delete arg2;
9381 }
9382 return NULL;
9383 }
9384
9385
9386 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9387 PyObject *resultobj = 0;
9388 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9389 wxString *result = 0 ;
9390 void *argp1 = 0 ;
9391 int res1 = 0 ;
9392 PyObject *swig_obj[1] ;
9393
9394 if (!args) SWIG_fail;
9395 swig_obj[0] = args;
9396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9397 if (!SWIG_IsOK(res1)) {
9398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9399 }
9400 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9401 {
9402 PyThreadState* __tstate = wxPyBeginAllowThreads();
9403 {
9404 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9405 result = (wxString *) &_result_ref;
9406 }
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 {
9411 #if wxUSE_UNICODE
9412 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9413 #else
9414 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9415 #endif
9416 }
9417 return resultobj;
9418 fail:
9419 return NULL;
9420 }
9421
9422
9423 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9424 PyObject *resultobj = 0;
9425 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9426 int arg2 ;
9427 void *argp1 = 0 ;
9428 int res1 = 0 ;
9429 int val2 ;
9430 int ecode2 = 0 ;
9431 PyObject * obj0 = 0 ;
9432 PyObject * obj1 = 0 ;
9433 char * kwnames[] = {
9434 (char *) "self",(char *) "num", NULL
9435 };
9436
9437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9439 if (!SWIG_IsOK(res1)) {
9440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9441 }
9442 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9443 ecode2 = SWIG_AsVal_int(obj1, &val2);
9444 if (!SWIG_IsOK(ecode2)) {
9445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9446 }
9447 arg2 = static_cast< int >(val2);
9448 {
9449 PyThreadState* __tstate = wxPyBeginAllowThreads();
9450 wxIconLocation_SetIndex(arg1,arg2);
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 resultobj = SWIG_Py_Void();
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9462 PyObject *resultobj = 0;
9463 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9464 int result;
9465 void *argp1 = 0 ;
9466 int res1 = 0 ;
9467 PyObject *swig_obj[1] ;
9468
9469 if (!args) SWIG_fail;
9470 swig_obj[0] = args;
9471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9472 if (!SWIG_IsOK(res1)) {
9473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9474 }
9475 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9476 {
9477 PyThreadState* __tstate = wxPyBeginAllowThreads();
9478 result = (int)wxIconLocation_GetIndex(arg1);
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 resultobj = SWIG_From_int(static_cast< int >(result));
9483 return resultobj;
9484 fail:
9485 return NULL;
9486 }
9487
9488
9489 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9490 PyObject *obj;
9491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9492 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9493 return SWIG_Py_Void();
9494 }
9495
9496 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9497 return SWIG_Python_InitShadowInstance(args);
9498 }
9499
9500 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9501 PyObject *resultobj = 0;
9502 wxIconBundle *result = 0 ;
9503
9504 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 result = (wxIconBundle *)new wxIconBundle();
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj = 0;
9520 wxString *arg1 = 0 ;
9521 long arg2 ;
9522 wxIconBundle *result = 0 ;
9523 bool temp1 = false ;
9524 long val2 ;
9525 int ecode2 = 0 ;
9526 PyObject * obj0 = 0 ;
9527 PyObject * obj1 = 0 ;
9528 char * kwnames[] = {
9529 (char *) "file",(char *) "type", NULL
9530 };
9531
9532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9533 {
9534 arg1 = wxString_in_helper(obj0);
9535 if (arg1 == NULL) SWIG_fail;
9536 temp1 = true;
9537 }
9538 ecode2 = SWIG_AsVal_long(obj1, &val2);
9539 if (!SWIG_IsOK(ecode2)) {
9540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9541 }
9542 arg2 = static_cast< long >(val2);
9543 {
9544 PyThreadState* __tstate = wxPyBeginAllowThreads();
9545 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) SWIG_fail;
9548 }
9549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9550 {
9551 if (temp1)
9552 delete arg1;
9553 }
9554 return resultobj;
9555 fail:
9556 {
9557 if (temp1)
9558 delete arg1;
9559 }
9560 return NULL;
9561 }
9562
9563
9564 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj = 0;
9566 wxIcon *arg1 = 0 ;
9567 wxIconBundle *result = 0 ;
9568 void *argp1 = 0 ;
9569 int res1 = 0 ;
9570 PyObject * obj0 = 0 ;
9571 char * kwnames[] = {
9572 (char *) "icon", NULL
9573 };
9574
9575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9576 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9577 if (!SWIG_IsOK(res1)) {
9578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9579 }
9580 if (!argp1) {
9581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9582 }
9583 arg1 = reinterpret_cast< wxIcon * >(argp1);
9584 {
9585 PyThreadState* __tstate = wxPyBeginAllowThreads();
9586 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9587 wxPyEndAllowThreads(__tstate);
9588 if (PyErr_Occurred()) SWIG_fail;
9589 }
9590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9591 return resultobj;
9592 fail:
9593 return NULL;
9594 }
9595
9596
9597 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9598 PyObject *resultobj = 0;
9599 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9600 void *argp1 = 0 ;
9601 int res1 = 0 ;
9602 PyObject *swig_obj[1] ;
9603
9604 if (!args) SWIG_fail;
9605 swig_obj[0] = args;
9606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9607 if (!SWIG_IsOK(res1)) {
9608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9609 }
9610 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 delete arg1;
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 resultobj = SWIG_Py_Void();
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9626 PyObject *resultobj = 0;
9627 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9628 wxIcon *arg2 = 0 ;
9629 void *argp1 = 0 ;
9630 int res1 = 0 ;
9631 void *argp2 = 0 ;
9632 int res2 = 0 ;
9633 PyObject * obj0 = 0 ;
9634 PyObject * obj1 = 0 ;
9635 char * kwnames[] = {
9636 (char *) "self",(char *) "icon", NULL
9637 };
9638
9639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9641 if (!SWIG_IsOK(res1)) {
9642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9643 }
9644 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9646 if (!SWIG_IsOK(res2)) {
9647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9648 }
9649 if (!argp2) {
9650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9651 }
9652 arg2 = reinterpret_cast< wxIcon * >(argp2);
9653 {
9654 PyThreadState* __tstate = wxPyBeginAllowThreads();
9655 (arg1)->AddIcon((wxIcon const &)*arg2);
9656 wxPyEndAllowThreads(__tstate);
9657 if (PyErr_Occurred()) SWIG_fail;
9658 }
9659 resultobj = SWIG_Py_Void();
9660 return resultobj;
9661 fail:
9662 return NULL;
9663 }
9664
9665
9666 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9667 PyObject *resultobj = 0;
9668 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9669 wxString *arg2 = 0 ;
9670 long arg3 ;
9671 void *argp1 = 0 ;
9672 int res1 = 0 ;
9673 bool temp2 = false ;
9674 long val3 ;
9675 int ecode3 = 0 ;
9676 PyObject * obj0 = 0 ;
9677 PyObject * obj1 = 0 ;
9678 PyObject * obj2 = 0 ;
9679 char * kwnames[] = {
9680 (char *) "self",(char *) "file",(char *) "type", NULL
9681 };
9682
9683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9685 if (!SWIG_IsOK(res1)) {
9686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9687 }
9688 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9689 {
9690 arg2 = wxString_in_helper(obj1);
9691 if (arg2 == NULL) SWIG_fail;
9692 temp2 = true;
9693 }
9694 ecode3 = SWIG_AsVal_long(obj2, &val3);
9695 if (!SWIG_IsOK(ecode3)) {
9696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9697 }
9698 arg3 = static_cast< long >(val3);
9699 {
9700 PyThreadState* __tstate = wxPyBeginAllowThreads();
9701 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 resultobj = SWIG_Py_Void();
9706 {
9707 if (temp2)
9708 delete arg2;
9709 }
9710 return resultobj;
9711 fail:
9712 {
9713 if (temp2)
9714 delete arg2;
9715 }
9716 return NULL;
9717 }
9718
9719
9720 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9721 PyObject *resultobj = 0;
9722 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9723 wxSize *arg2 = 0 ;
9724 wxIcon *result = 0 ;
9725 void *argp1 = 0 ;
9726 int res1 = 0 ;
9727 wxSize temp2 ;
9728 PyObject * obj0 = 0 ;
9729 PyObject * obj1 = 0 ;
9730 char * kwnames[] = {
9731 (char *) "self",(char *) "size", NULL
9732 };
9733
9734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9736 if (!SWIG_IsOK(res1)) {
9737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9738 }
9739 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9740 {
9741 arg2 = &temp2;
9742 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9743 }
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
9746 {
9747 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9748 result = (wxIcon *) &_result_ref;
9749 }
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 {
9754 wxIcon* resultptr = new wxIcon(*result);
9755 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9756 }
9757 return resultobj;
9758 fail:
9759 return NULL;
9760 }
9761
9762
9763 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9764 PyObject *obj;
9765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9766 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9767 return SWIG_Py_Void();
9768 }
9769
9770 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9771 return SWIG_Python_InitShadowInstance(args);
9772 }
9773
9774 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9775 PyObject *resultobj = 0;
9776 wxString *arg1 = 0 ;
9777 long arg2 ;
9778 int arg3 = (int) 0 ;
9779 int arg4 = (int) 0 ;
9780 wxCursor *result = 0 ;
9781 bool temp1 = false ;
9782 long val2 ;
9783 int ecode2 = 0 ;
9784 int val3 ;
9785 int ecode3 = 0 ;
9786 int val4 ;
9787 int ecode4 = 0 ;
9788 PyObject * obj0 = 0 ;
9789 PyObject * obj1 = 0 ;
9790 PyObject * obj2 = 0 ;
9791 PyObject * obj3 = 0 ;
9792 char * kwnames[] = {
9793 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9794 };
9795
9796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9797 {
9798 arg1 = wxString_in_helper(obj0);
9799 if (arg1 == NULL) SWIG_fail;
9800 temp1 = true;
9801 }
9802 ecode2 = SWIG_AsVal_long(obj1, &val2);
9803 if (!SWIG_IsOK(ecode2)) {
9804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9805 }
9806 arg2 = static_cast< long >(val2);
9807 if (obj2) {
9808 ecode3 = SWIG_AsVal_int(obj2, &val3);
9809 if (!SWIG_IsOK(ecode3)) {
9810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9811 }
9812 arg3 = static_cast< int >(val3);
9813 }
9814 if (obj3) {
9815 ecode4 = SWIG_AsVal_int(obj3, &val4);
9816 if (!SWIG_IsOK(ecode4)) {
9817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9818 }
9819 arg4 = static_cast< int >(val4);
9820 }
9821 {
9822 if (!wxPyCheckForApp()) SWIG_fail;
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9829 {
9830 if (temp1)
9831 delete arg1;
9832 }
9833 return resultobj;
9834 fail:
9835 {
9836 if (temp1)
9837 delete arg1;
9838 }
9839 return NULL;
9840 }
9841
9842
9843 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9844 PyObject *resultobj = 0;
9845 wxCursor *arg1 = (wxCursor *) 0 ;
9846 void *argp1 = 0 ;
9847 int res1 = 0 ;
9848 PyObject *swig_obj[1] ;
9849
9850 if (!args) SWIG_fail;
9851 swig_obj[0] = args;
9852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9853 if (!SWIG_IsOK(res1)) {
9854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9855 }
9856 arg1 = reinterpret_cast< wxCursor * >(argp1);
9857 {
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 delete arg1;
9860
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 resultobj = SWIG_Py_Void();
9865 return resultobj;
9866 fail:
9867 return NULL;
9868 }
9869
9870
9871 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9872 PyObject *resultobj = 0;
9873 int arg1 ;
9874 wxCursor *result = 0 ;
9875 int val1 ;
9876 int ecode1 = 0 ;
9877 PyObject * obj0 = 0 ;
9878 char * kwnames[] = {
9879 (char *) "id", NULL
9880 };
9881
9882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9883 ecode1 = SWIG_AsVal_int(obj0, &val1);
9884 if (!SWIG_IsOK(ecode1)) {
9885 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9886 }
9887 arg1 = static_cast< int >(val1);
9888 {
9889 if (!wxPyCheckForApp()) SWIG_fail;
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 result = (wxCursor *)new wxCursor(arg1);
9892 wxPyEndAllowThreads(__tstate);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 }
9895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9896 return resultobj;
9897 fail:
9898 return NULL;
9899 }
9900
9901
9902 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9903 PyObject *resultobj = 0;
9904 wxImage *arg1 = 0 ;
9905 wxCursor *result = 0 ;
9906 void *argp1 = 0 ;
9907 int res1 = 0 ;
9908 PyObject * obj0 = 0 ;
9909 char * kwnames[] = {
9910 (char *) "image", NULL
9911 };
9912
9913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9914 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9915 if (!SWIG_IsOK(res1)) {
9916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9917 }
9918 if (!argp1) {
9919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9920 }
9921 arg1 = reinterpret_cast< wxImage * >(argp1);
9922 {
9923 if (!wxPyCheckForApp()) SWIG_fail;
9924 PyThreadState* __tstate = wxPyBeginAllowThreads();
9925 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9930 return resultobj;
9931 fail:
9932 return NULL;
9933 }
9934
9935
9936 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9937 PyObject *resultobj = 0;
9938 wxCursor *arg1 = (wxCursor *) 0 ;
9939 bool result;
9940 void *argp1 = 0 ;
9941 int res1 = 0 ;
9942 PyObject *swig_obj[1] ;
9943
9944 if (!args) SWIG_fail;
9945 swig_obj[0] = args;
9946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9947 if (!SWIG_IsOK(res1)) {
9948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
9949 }
9950 arg1 = reinterpret_cast< wxCursor * >(argp1);
9951 {
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 result = (bool)(arg1)->IsOk();
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 {
9958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9959 }
9960 return resultobj;
9961 fail:
9962 return NULL;
9963 }
9964
9965
9966 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9967 PyObject *obj;
9968 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9969 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9970 return SWIG_Py_Void();
9971 }
9972
9973 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9974 return SWIG_Python_InitShadowInstance(args);
9975 }
9976
9977 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9978 PyObject *resultobj = 0;
9979 int arg1 = (int) 0 ;
9980 int arg2 = (int) 0 ;
9981 int arg3 = (int) 0 ;
9982 int arg4 = (int) 0 ;
9983 wxRegion *result = 0 ;
9984 int val1 ;
9985 int ecode1 = 0 ;
9986 int val2 ;
9987 int ecode2 = 0 ;
9988 int val3 ;
9989 int ecode3 = 0 ;
9990 int val4 ;
9991 int ecode4 = 0 ;
9992 PyObject * obj0 = 0 ;
9993 PyObject * obj1 = 0 ;
9994 PyObject * obj2 = 0 ;
9995 PyObject * obj3 = 0 ;
9996 char * kwnames[] = {
9997 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9998 };
9999
10000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10001 if (obj0) {
10002 ecode1 = SWIG_AsVal_int(obj0, &val1);
10003 if (!SWIG_IsOK(ecode1)) {
10004 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10005 }
10006 arg1 = static_cast< int >(val1);
10007 }
10008 if (obj1) {
10009 ecode2 = SWIG_AsVal_int(obj1, &val2);
10010 if (!SWIG_IsOK(ecode2)) {
10011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10012 }
10013 arg2 = static_cast< int >(val2);
10014 }
10015 if (obj2) {
10016 ecode3 = SWIG_AsVal_int(obj2, &val3);
10017 if (!SWIG_IsOK(ecode3)) {
10018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10019 }
10020 arg3 = static_cast< int >(val3);
10021 }
10022 if (obj3) {
10023 ecode4 = SWIG_AsVal_int(obj3, &val4);
10024 if (!SWIG_IsOK(ecode4)) {
10025 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10026 }
10027 arg4 = static_cast< int >(val4);
10028 }
10029 {
10030 if (!wxPyCheckForApp()) SWIG_fail;
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10033 wxPyEndAllowThreads(__tstate);
10034 if (PyErr_Occurred()) SWIG_fail;
10035 }
10036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10037 return resultobj;
10038 fail:
10039 return NULL;
10040 }
10041
10042
10043 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10044 PyObject *resultobj = 0;
10045 wxBitmap *arg1 = 0 ;
10046 wxRegion *result = 0 ;
10047 void *argp1 = 0 ;
10048 int res1 = 0 ;
10049 PyObject * obj0 = 0 ;
10050 char * kwnames[] = {
10051 (char *) "bmp", NULL
10052 };
10053
10054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10055 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10056 if (!SWIG_IsOK(res1)) {
10057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10058 }
10059 if (!argp1) {
10060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10061 }
10062 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10063 {
10064 if (!wxPyCheckForApp()) SWIG_fail;
10065 PyThreadState* __tstate = wxPyBeginAllowThreads();
10066 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10067 wxPyEndAllowThreads(__tstate);
10068 if (PyErr_Occurred()) SWIG_fail;
10069 }
10070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10071 return resultobj;
10072 fail:
10073 return NULL;
10074 }
10075
10076
10077 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10078 PyObject *resultobj = 0;
10079 wxBitmap *arg1 = 0 ;
10080 wxColour *arg2 = 0 ;
10081 int arg3 = (int) 0 ;
10082 wxRegion *result = 0 ;
10083 void *argp1 = 0 ;
10084 int res1 = 0 ;
10085 wxColour temp2 ;
10086 int val3 ;
10087 int ecode3 = 0 ;
10088 PyObject * obj0 = 0 ;
10089 PyObject * obj1 = 0 ;
10090 PyObject * obj2 = 0 ;
10091 char * kwnames[] = {
10092 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10093 };
10094
10095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10096 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10097 if (!SWIG_IsOK(res1)) {
10098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10099 }
10100 if (!argp1) {
10101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10102 }
10103 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10104 {
10105 arg2 = &temp2;
10106 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10107 }
10108 if (obj2) {
10109 ecode3 = SWIG_AsVal_int(obj2, &val3);
10110 if (!SWIG_IsOK(ecode3)) {
10111 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10112 }
10113 arg3 = static_cast< int >(val3);
10114 }
10115 {
10116 if (!wxPyCheckForApp()) SWIG_fail;
10117 PyThreadState* __tstate = wxPyBeginAllowThreads();
10118 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 }
10122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10123 return resultobj;
10124 fail:
10125 return NULL;
10126 }
10127
10128
10129 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10130 PyObject *resultobj = 0;
10131 int arg1 ;
10132 wxPoint *arg2 = (wxPoint *) 0 ;
10133 int arg3 = (int) wxWINDING_RULE ;
10134 wxRegion *result = 0 ;
10135 int val3 ;
10136 int ecode3 = 0 ;
10137 PyObject * obj0 = 0 ;
10138 PyObject * obj1 = 0 ;
10139 char * kwnames[] = {
10140 (char *) "points",(char *) "fillStyle", NULL
10141 };
10142
10143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10144 {
10145 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10146 if (arg2 == NULL) SWIG_fail;
10147 }
10148 if (obj1) {
10149 ecode3 = SWIG_AsVal_int(obj1, &val3);
10150 if (!SWIG_IsOK(ecode3)) {
10151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10152 }
10153 arg3 = static_cast< int >(val3);
10154 }
10155 {
10156 if (!wxPyCheckForApp()) SWIG_fail;
10157 PyThreadState* __tstate = wxPyBeginAllowThreads();
10158 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10163 {
10164 if (arg2) delete [] arg2;
10165 }
10166 return resultobj;
10167 fail:
10168 {
10169 if (arg2) delete [] arg2;
10170 }
10171 return NULL;
10172 }
10173
10174
10175 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10176 PyObject *resultobj = 0;
10177 wxRegion *arg1 = (wxRegion *) 0 ;
10178 void *argp1 = 0 ;
10179 int res1 = 0 ;
10180 PyObject *swig_obj[1] ;
10181
10182 if (!args) SWIG_fail;
10183 swig_obj[0] = args;
10184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10185 if (!SWIG_IsOK(res1)) {
10186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10187 }
10188 arg1 = reinterpret_cast< wxRegion * >(argp1);
10189 {
10190 PyThreadState* __tstate = wxPyBeginAllowThreads();
10191 delete arg1;
10192
10193 wxPyEndAllowThreads(__tstate);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 resultobj = SWIG_Py_Void();
10197 return resultobj;
10198 fail:
10199 return NULL;
10200 }
10201
10202
10203 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10204 PyObject *resultobj = 0;
10205 wxRegion *arg1 = (wxRegion *) 0 ;
10206 void *argp1 = 0 ;
10207 int res1 = 0 ;
10208 PyObject *swig_obj[1] ;
10209
10210 if (!args) SWIG_fail;
10211 swig_obj[0] = args;
10212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10213 if (!SWIG_IsOK(res1)) {
10214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10215 }
10216 arg1 = reinterpret_cast< wxRegion * >(argp1);
10217 {
10218 PyThreadState* __tstate = wxPyBeginAllowThreads();
10219 (arg1)->Clear();
10220 wxPyEndAllowThreads(__tstate);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 resultobj = SWIG_Py_Void();
10224 return resultobj;
10225 fail:
10226 return NULL;
10227 }
10228
10229
10230 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10231 PyObject *resultobj = 0;
10232 wxRegion *arg1 = (wxRegion *) 0 ;
10233 int arg2 ;
10234 int arg3 ;
10235 bool result;
10236 void *argp1 = 0 ;
10237 int res1 = 0 ;
10238 int val2 ;
10239 int ecode2 = 0 ;
10240 int val3 ;
10241 int ecode3 = 0 ;
10242 PyObject * obj0 = 0 ;
10243 PyObject * obj1 = 0 ;
10244 PyObject * obj2 = 0 ;
10245 char * kwnames[] = {
10246 (char *) "self",(char *) "x",(char *) "y", NULL
10247 };
10248
10249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10251 if (!SWIG_IsOK(res1)) {
10252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10253 }
10254 arg1 = reinterpret_cast< wxRegion * >(argp1);
10255 ecode2 = SWIG_AsVal_int(obj1, &val2);
10256 if (!SWIG_IsOK(ecode2)) {
10257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10258 }
10259 arg2 = static_cast< int >(val2);
10260 ecode3 = SWIG_AsVal_int(obj2, &val3);
10261 if (!SWIG_IsOK(ecode3)) {
10262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10263 }
10264 arg3 = static_cast< int >(val3);
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 result = (bool)(arg1)->Offset(arg2,arg3);
10268 wxPyEndAllowThreads(__tstate);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 }
10271 {
10272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10273 }
10274 return resultobj;
10275 fail:
10276 return NULL;
10277 }
10278
10279
10280 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10281 PyObject *resultobj = 0;
10282 wxRegion *arg1 = (wxRegion *) 0 ;
10283 int arg2 ;
10284 int arg3 ;
10285 wxRegionContain result;
10286 void *argp1 = 0 ;
10287 int res1 = 0 ;
10288 int val2 ;
10289 int ecode2 = 0 ;
10290 int val3 ;
10291 int ecode3 = 0 ;
10292 PyObject * obj0 = 0 ;
10293 PyObject * obj1 = 0 ;
10294 PyObject * obj2 = 0 ;
10295 char * kwnames[] = {
10296 (char *) "self",(char *) "x",(char *) "y", NULL
10297 };
10298
10299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10301 if (!SWIG_IsOK(res1)) {
10302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10303 }
10304 arg1 = reinterpret_cast< wxRegion * >(argp1);
10305 ecode2 = SWIG_AsVal_int(obj1, &val2);
10306 if (!SWIG_IsOK(ecode2)) {
10307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10308 }
10309 arg2 = static_cast< int >(val2);
10310 ecode3 = SWIG_AsVal_int(obj2, &val3);
10311 if (!SWIG_IsOK(ecode3)) {
10312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10313 }
10314 arg3 = static_cast< int >(val3);
10315 {
10316 PyThreadState* __tstate = wxPyBeginAllowThreads();
10317 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10318 wxPyEndAllowThreads(__tstate);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 }
10321 resultobj = SWIG_From_int(static_cast< int >(result));
10322 return resultobj;
10323 fail:
10324 return NULL;
10325 }
10326
10327
10328 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10329 PyObject *resultobj = 0;
10330 wxRegion *arg1 = (wxRegion *) 0 ;
10331 wxPoint *arg2 = 0 ;
10332 wxRegionContain result;
10333 void *argp1 = 0 ;
10334 int res1 = 0 ;
10335 wxPoint temp2 ;
10336 PyObject * obj0 = 0 ;
10337 PyObject * obj1 = 0 ;
10338 char * kwnames[] = {
10339 (char *) "self",(char *) "pt", NULL
10340 };
10341
10342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10344 if (!SWIG_IsOK(res1)) {
10345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10346 }
10347 arg1 = reinterpret_cast< wxRegion * >(argp1);
10348 {
10349 arg2 = &temp2;
10350 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10351 }
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 resultobj = SWIG_From_int(static_cast< int >(result));
10359 return resultobj;
10360 fail:
10361 return NULL;
10362 }
10363
10364
10365 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10366 PyObject *resultobj = 0;
10367 wxRegion *arg1 = (wxRegion *) 0 ;
10368 wxRect *arg2 = 0 ;
10369 wxRegionContain result;
10370 void *argp1 = 0 ;
10371 int res1 = 0 ;
10372 wxRect temp2 ;
10373 PyObject * obj0 = 0 ;
10374 PyObject * obj1 = 0 ;
10375 char * kwnames[] = {
10376 (char *) "self",(char *) "rect", NULL
10377 };
10378
10379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10381 if (!SWIG_IsOK(res1)) {
10382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10383 }
10384 arg1 = reinterpret_cast< wxRegion * >(argp1);
10385 {
10386 arg2 = &temp2;
10387 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10388 }
10389 {
10390 PyThreadState* __tstate = wxPyBeginAllowThreads();
10391 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10392 wxPyEndAllowThreads(__tstate);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 }
10395 resultobj = SWIG_From_int(static_cast< int >(result));
10396 return resultobj;
10397 fail:
10398 return NULL;
10399 }
10400
10401
10402 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10403 PyObject *resultobj = 0;
10404 wxRegion *arg1 = (wxRegion *) 0 ;
10405 int arg2 ;
10406 int arg3 ;
10407 int arg4 ;
10408 int arg5 ;
10409 wxRegionContain result;
10410 void *argp1 = 0 ;
10411 int res1 = 0 ;
10412 int val2 ;
10413 int ecode2 = 0 ;
10414 int val3 ;
10415 int ecode3 = 0 ;
10416 int val4 ;
10417 int ecode4 = 0 ;
10418 int val5 ;
10419 int ecode5 = 0 ;
10420 PyObject * obj0 = 0 ;
10421 PyObject * obj1 = 0 ;
10422 PyObject * obj2 = 0 ;
10423 PyObject * obj3 = 0 ;
10424 PyObject * obj4 = 0 ;
10425 char * kwnames[] = {
10426 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10427 };
10428
10429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10431 if (!SWIG_IsOK(res1)) {
10432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10433 }
10434 arg1 = reinterpret_cast< wxRegion * >(argp1);
10435 ecode2 = SWIG_AsVal_int(obj1, &val2);
10436 if (!SWIG_IsOK(ecode2)) {
10437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10438 }
10439 arg2 = static_cast< int >(val2);
10440 ecode3 = SWIG_AsVal_int(obj2, &val3);
10441 if (!SWIG_IsOK(ecode3)) {
10442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10443 }
10444 arg3 = static_cast< int >(val3);
10445 ecode4 = SWIG_AsVal_int(obj3, &val4);
10446 if (!SWIG_IsOK(ecode4)) {
10447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10448 }
10449 arg4 = static_cast< int >(val4);
10450 ecode5 = SWIG_AsVal_int(obj4, &val5);
10451 if (!SWIG_IsOK(ecode5)) {
10452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10453 }
10454 arg5 = static_cast< int >(val5);
10455 {
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10458 wxPyEndAllowThreads(__tstate);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 resultobj = SWIG_From_int(static_cast< int >(result));
10462 return resultobj;
10463 fail:
10464 return NULL;
10465 }
10466
10467
10468 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10469 PyObject *resultobj = 0;
10470 wxRegion *arg1 = (wxRegion *) 0 ;
10471 wxRect result;
10472 void *argp1 = 0 ;
10473 int res1 = 0 ;
10474 PyObject *swig_obj[1] ;
10475
10476 if (!args) SWIG_fail;
10477 swig_obj[0] = args;
10478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10479 if (!SWIG_IsOK(res1)) {
10480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10481 }
10482 arg1 = reinterpret_cast< wxRegion * >(argp1);
10483 {
10484 PyThreadState* __tstate = wxPyBeginAllowThreads();
10485 result = (arg1)->GetBox();
10486 wxPyEndAllowThreads(__tstate);
10487 if (PyErr_Occurred()) SWIG_fail;
10488 }
10489 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10490 return resultobj;
10491 fail:
10492 return NULL;
10493 }
10494
10495
10496 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10497 PyObject *resultobj = 0;
10498 wxRegion *arg1 = (wxRegion *) 0 ;
10499 int arg2 ;
10500 int arg3 ;
10501 int arg4 ;
10502 int arg5 ;
10503 bool result;
10504 void *argp1 = 0 ;
10505 int res1 = 0 ;
10506 int val2 ;
10507 int ecode2 = 0 ;
10508 int val3 ;
10509 int ecode3 = 0 ;
10510 int val4 ;
10511 int ecode4 = 0 ;
10512 int val5 ;
10513 int ecode5 = 0 ;
10514 PyObject * obj0 = 0 ;
10515 PyObject * obj1 = 0 ;
10516 PyObject * obj2 = 0 ;
10517 PyObject * obj3 = 0 ;
10518 PyObject * obj4 = 0 ;
10519 char * kwnames[] = {
10520 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10521 };
10522
10523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10525 if (!SWIG_IsOK(res1)) {
10526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10527 }
10528 arg1 = reinterpret_cast< wxRegion * >(argp1);
10529 ecode2 = SWIG_AsVal_int(obj1, &val2);
10530 if (!SWIG_IsOK(ecode2)) {
10531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10532 }
10533 arg2 = static_cast< int >(val2);
10534 ecode3 = SWIG_AsVal_int(obj2, &val3);
10535 if (!SWIG_IsOK(ecode3)) {
10536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10537 }
10538 arg3 = static_cast< int >(val3);
10539 ecode4 = SWIG_AsVal_int(obj3, &val4);
10540 if (!SWIG_IsOK(ecode4)) {
10541 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10542 }
10543 arg4 = static_cast< int >(val4);
10544 ecode5 = SWIG_AsVal_int(obj4, &val5);
10545 if (!SWIG_IsOK(ecode5)) {
10546 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10547 }
10548 arg5 = static_cast< int >(val5);
10549 {
10550 PyThreadState* __tstate = wxPyBeginAllowThreads();
10551 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10552 wxPyEndAllowThreads(__tstate);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 }
10555 {
10556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10557 }
10558 return resultobj;
10559 fail:
10560 return NULL;
10561 }
10562
10563
10564 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10565 PyObject *resultobj = 0;
10566 wxRegion *arg1 = (wxRegion *) 0 ;
10567 wxRect *arg2 = 0 ;
10568 bool result;
10569 void *argp1 = 0 ;
10570 int res1 = 0 ;
10571 wxRect temp2 ;
10572 PyObject * obj0 = 0 ;
10573 PyObject * obj1 = 0 ;
10574 char * kwnames[] = {
10575 (char *) "self",(char *) "rect", NULL
10576 };
10577
10578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10580 if (!SWIG_IsOK(res1)) {
10581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10582 }
10583 arg1 = reinterpret_cast< wxRegion * >(argp1);
10584 {
10585 arg2 = &temp2;
10586 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10587 }
10588 {
10589 PyThreadState* __tstate = wxPyBeginAllowThreads();
10590 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10591 wxPyEndAllowThreads(__tstate);
10592 if (PyErr_Occurred()) SWIG_fail;
10593 }
10594 {
10595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10596 }
10597 return resultobj;
10598 fail:
10599 return NULL;
10600 }
10601
10602
10603 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10604 PyObject *resultobj = 0;
10605 wxRegion *arg1 = (wxRegion *) 0 ;
10606 wxRegion *arg2 = 0 ;
10607 bool result;
10608 void *argp1 = 0 ;
10609 int res1 = 0 ;
10610 void *argp2 = 0 ;
10611 int res2 = 0 ;
10612 PyObject * obj0 = 0 ;
10613 PyObject * obj1 = 0 ;
10614 char * kwnames[] = {
10615 (char *) "self",(char *) "region", NULL
10616 };
10617
10618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10620 if (!SWIG_IsOK(res1)) {
10621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10622 }
10623 arg1 = reinterpret_cast< wxRegion * >(argp1);
10624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10625 if (!SWIG_IsOK(res2)) {
10626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10627 }
10628 if (!argp2) {
10629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10630 }
10631 arg2 = reinterpret_cast< wxRegion * >(argp2);
10632 {
10633 PyThreadState* __tstate = wxPyBeginAllowThreads();
10634 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 {
10639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10640 }
10641 return resultobj;
10642 fail:
10643 return NULL;
10644 }
10645
10646
10647 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10648 PyObject *resultobj = 0;
10649 wxRegion *arg1 = (wxRegion *) 0 ;
10650 bool result;
10651 void *argp1 = 0 ;
10652 int res1 = 0 ;
10653 PyObject *swig_obj[1] ;
10654
10655 if (!args) SWIG_fail;
10656 swig_obj[0] = args;
10657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10658 if (!SWIG_IsOK(res1)) {
10659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10660 }
10661 arg1 = reinterpret_cast< wxRegion * >(argp1);
10662 {
10663 PyThreadState* __tstate = wxPyBeginAllowThreads();
10664 result = (bool)(arg1)->IsEmpty();
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 {
10669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10670 }
10671 return resultobj;
10672 fail:
10673 return NULL;
10674 }
10675
10676
10677 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10678 PyObject *resultobj = 0;
10679 wxRegion *arg1 = (wxRegion *) 0 ;
10680 wxRegion *arg2 = 0 ;
10681 bool result;
10682 void *argp1 = 0 ;
10683 int res1 = 0 ;
10684 void *argp2 = 0 ;
10685 int res2 = 0 ;
10686 PyObject * obj0 = 0 ;
10687 PyObject * obj1 = 0 ;
10688 char * kwnames[] = {
10689 (char *) "self",(char *) "region", NULL
10690 };
10691
10692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10694 if (!SWIG_IsOK(res1)) {
10695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10696 }
10697 arg1 = reinterpret_cast< wxRegion * >(argp1);
10698 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10699 if (!SWIG_IsOK(res2)) {
10700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10701 }
10702 if (!argp2) {
10703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10704 }
10705 arg2 = reinterpret_cast< wxRegion * >(argp2);
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 {
10713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10714 }
10715 return resultobj;
10716 fail:
10717 return NULL;
10718 }
10719
10720
10721 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10722 PyObject *resultobj = 0;
10723 wxRegion *arg1 = (wxRegion *) 0 ;
10724 int arg2 ;
10725 int arg3 ;
10726 int arg4 ;
10727 int arg5 ;
10728 bool result;
10729 void *argp1 = 0 ;
10730 int res1 = 0 ;
10731 int val2 ;
10732 int ecode2 = 0 ;
10733 int val3 ;
10734 int ecode3 = 0 ;
10735 int val4 ;
10736 int ecode4 = 0 ;
10737 int val5 ;
10738 int ecode5 = 0 ;
10739 PyObject * obj0 = 0 ;
10740 PyObject * obj1 = 0 ;
10741 PyObject * obj2 = 0 ;
10742 PyObject * obj3 = 0 ;
10743 PyObject * obj4 = 0 ;
10744 char * kwnames[] = {
10745 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10746 };
10747
10748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10750 if (!SWIG_IsOK(res1)) {
10751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10752 }
10753 arg1 = reinterpret_cast< wxRegion * >(argp1);
10754 ecode2 = SWIG_AsVal_int(obj1, &val2);
10755 if (!SWIG_IsOK(ecode2)) {
10756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10757 }
10758 arg2 = static_cast< int >(val2);
10759 ecode3 = SWIG_AsVal_int(obj2, &val3);
10760 if (!SWIG_IsOK(ecode3)) {
10761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10762 }
10763 arg3 = static_cast< int >(val3);
10764 ecode4 = SWIG_AsVal_int(obj3, &val4);
10765 if (!SWIG_IsOK(ecode4)) {
10766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10767 }
10768 arg4 = static_cast< int >(val4);
10769 ecode5 = SWIG_AsVal_int(obj4, &val5);
10770 if (!SWIG_IsOK(ecode5)) {
10771 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10772 }
10773 arg5 = static_cast< int >(val5);
10774 {
10775 PyThreadState* __tstate = wxPyBeginAllowThreads();
10776 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 {
10781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10782 }
10783 return resultobj;
10784 fail:
10785 return NULL;
10786 }
10787
10788
10789 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj = 0;
10791 wxRegion *arg1 = (wxRegion *) 0 ;
10792 wxRect *arg2 = 0 ;
10793 bool result;
10794 void *argp1 = 0 ;
10795 int res1 = 0 ;
10796 wxRect temp2 ;
10797 PyObject * obj0 = 0 ;
10798 PyObject * obj1 = 0 ;
10799 char * kwnames[] = {
10800 (char *) "self",(char *) "rect", NULL
10801 };
10802
10803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10805 if (!SWIG_IsOK(res1)) {
10806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10807 }
10808 arg1 = reinterpret_cast< wxRegion * >(argp1);
10809 {
10810 arg2 = &temp2;
10811 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10812 }
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 {
10820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10821 }
10822 return resultobj;
10823 fail:
10824 return NULL;
10825 }
10826
10827
10828 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10829 PyObject *resultobj = 0;
10830 wxRegion *arg1 = (wxRegion *) 0 ;
10831 wxRegion *arg2 = 0 ;
10832 bool result;
10833 void *argp1 = 0 ;
10834 int res1 = 0 ;
10835 void *argp2 = 0 ;
10836 int res2 = 0 ;
10837 PyObject * obj0 = 0 ;
10838 PyObject * obj1 = 0 ;
10839 char * kwnames[] = {
10840 (char *) "self",(char *) "region", NULL
10841 };
10842
10843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10845 if (!SWIG_IsOK(res1)) {
10846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10847 }
10848 arg1 = reinterpret_cast< wxRegion * >(argp1);
10849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10850 if (!SWIG_IsOK(res2)) {
10851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10852 }
10853 if (!argp2) {
10854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10855 }
10856 arg2 = reinterpret_cast< wxRegion * >(argp2);
10857 {
10858 PyThreadState* __tstate = wxPyBeginAllowThreads();
10859 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 {
10864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10865 }
10866 return resultobj;
10867 fail:
10868 return NULL;
10869 }
10870
10871
10872 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10873 PyObject *resultobj = 0;
10874 wxRegion *arg1 = (wxRegion *) 0 ;
10875 int arg2 ;
10876 int arg3 ;
10877 int arg4 ;
10878 int arg5 ;
10879 bool result;
10880 void *argp1 = 0 ;
10881 int res1 = 0 ;
10882 int val2 ;
10883 int ecode2 = 0 ;
10884 int val3 ;
10885 int ecode3 = 0 ;
10886 int val4 ;
10887 int ecode4 = 0 ;
10888 int val5 ;
10889 int ecode5 = 0 ;
10890 PyObject * obj0 = 0 ;
10891 PyObject * obj1 = 0 ;
10892 PyObject * obj2 = 0 ;
10893 PyObject * obj3 = 0 ;
10894 PyObject * obj4 = 0 ;
10895 char * kwnames[] = {
10896 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10897 };
10898
10899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10901 if (!SWIG_IsOK(res1)) {
10902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10903 }
10904 arg1 = reinterpret_cast< wxRegion * >(argp1);
10905 ecode2 = SWIG_AsVal_int(obj1, &val2);
10906 if (!SWIG_IsOK(ecode2)) {
10907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10908 }
10909 arg2 = static_cast< int >(val2);
10910 ecode3 = SWIG_AsVal_int(obj2, &val3);
10911 if (!SWIG_IsOK(ecode3)) {
10912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10913 }
10914 arg3 = static_cast< int >(val3);
10915 ecode4 = SWIG_AsVal_int(obj3, &val4);
10916 if (!SWIG_IsOK(ecode4)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10918 }
10919 arg4 = static_cast< int >(val4);
10920 ecode5 = SWIG_AsVal_int(obj4, &val5);
10921 if (!SWIG_IsOK(ecode5)) {
10922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10923 }
10924 arg5 = static_cast< int >(val5);
10925 {
10926 PyThreadState* __tstate = wxPyBeginAllowThreads();
10927 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10928 wxPyEndAllowThreads(__tstate);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 }
10931 {
10932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10933 }
10934 return resultobj;
10935 fail:
10936 return NULL;
10937 }
10938
10939
10940 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10941 PyObject *resultobj = 0;
10942 wxRegion *arg1 = (wxRegion *) 0 ;
10943 wxRect *arg2 = 0 ;
10944 bool result;
10945 void *argp1 = 0 ;
10946 int res1 = 0 ;
10947 wxRect temp2 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 char * kwnames[] = {
10951 (char *) "self",(char *) "rect", NULL
10952 };
10953
10954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10956 if (!SWIG_IsOK(res1)) {
10957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10958 }
10959 arg1 = reinterpret_cast< wxRegion * >(argp1);
10960 {
10961 arg2 = &temp2;
10962 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10963 }
10964 {
10965 PyThreadState* __tstate = wxPyBeginAllowThreads();
10966 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 {
10971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10972 }
10973 return resultobj;
10974 fail:
10975 return NULL;
10976 }
10977
10978
10979 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10980 PyObject *resultobj = 0;
10981 wxRegion *arg1 = (wxRegion *) 0 ;
10982 wxRegion *arg2 = 0 ;
10983 bool result;
10984 void *argp1 = 0 ;
10985 int res1 = 0 ;
10986 void *argp2 = 0 ;
10987 int res2 = 0 ;
10988 PyObject * obj0 = 0 ;
10989 PyObject * obj1 = 0 ;
10990 char * kwnames[] = {
10991 (char *) "self",(char *) "region", NULL
10992 };
10993
10994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10996 if (!SWIG_IsOK(res1)) {
10997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10998 }
10999 arg1 = reinterpret_cast< wxRegion * >(argp1);
11000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11001 if (!SWIG_IsOK(res2)) {
11002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11003 }
11004 if (!argp2) {
11005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11006 }
11007 arg2 = reinterpret_cast< wxRegion * >(argp2);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11024 PyObject *resultobj = 0;
11025 wxRegion *arg1 = (wxRegion *) 0 ;
11026 int arg2 ;
11027 int arg3 ;
11028 int arg4 ;
11029 int arg5 ;
11030 bool result;
11031 void *argp1 = 0 ;
11032 int res1 = 0 ;
11033 int val2 ;
11034 int ecode2 = 0 ;
11035 int val3 ;
11036 int ecode3 = 0 ;
11037 int val4 ;
11038 int ecode4 = 0 ;
11039 int val5 ;
11040 int ecode5 = 0 ;
11041 PyObject * obj0 = 0 ;
11042 PyObject * obj1 = 0 ;
11043 PyObject * obj2 = 0 ;
11044 PyObject * obj3 = 0 ;
11045 PyObject * obj4 = 0 ;
11046 char * kwnames[] = {
11047 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11048 };
11049
11050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11052 if (!SWIG_IsOK(res1)) {
11053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11054 }
11055 arg1 = reinterpret_cast< wxRegion * >(argp1);
11056 ecode2 = SWIG_AsVal_int(obj1, &val2);
11057 if (!SWIG_IsOK(ecode2)) {
11058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11059 }
11060 arg2 = static_cast< int >(val2);
11061 ecode3 = SWIG_AsVal_int(obj2, &val3);
11062 if (!SWIG_IsOK(ecode3)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11064 }
11065 arg3 = static_cast< int >(val3);
11066 ecode4 = SWIG_AsVal_int(obj3, &val4);
11067 if (!SWIG_IsOK(ecode4)) {
11068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11069 }
11070 arg4 = static_cast< int >(val4);
11071 ecode5 = SWIG_AsVal_int(obj4, &val5);
11072 if (!SWIG_IsOK(ecode5)) {
11073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11074 }
11075 arg5 = static_cast< int >(val5);
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11084 }
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj = 0;
11093 wxRegion *arg1 = (wxRegion *) 0 ;
11094 wxRect *arg2 = 0 ;
11095 bool result;
11096 void *argp1 = 0 ;
11097 int res1 = 0 ;
11098 wxRect temp2 ;
11099 PyObject * obj0 = 0 ;
11100 PyObject * obj1 = 0 ;
11101 char * kwnames[] = {
11102 (char *) "self",(char *) "rect", NULL
11103 };
11104
11105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11109 }
11110 arg1 = reinterpret_cast< wxRegion * >(argp1);
11111 {
11112 arg2 = &temp2;
11113 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11114 }
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 {
11122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11123 }
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj = 0;
11132 wxRegion *arg1 = (wxRegion *) 0 ;
11133 wxRegion *arg2 = 0 ;
11134 bool result;
11135 void *argp1 = 0 ;
11136 int res1 = 0 ;
11137 void *argp2 = 0 ;
11138 int res2 = 0 ;
11139 PyObject * obj0 = 0 ;
11140 PyObject * obj1 = 0 ;
11141 char * kwnames[] = {
11142 (char *) "self",(char *) "region", NULL
11143 };
11144
11145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11147 if (!SWIG_IsOK(res1)) {
11148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11149 }
11150 arg1 = reinterpret_cast< wxRegion * >(argp1);
11151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11152 if (!SWIG_IsOK(res2)) {
11153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11154 }
11155 if (!argp2) {
11156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11157 }
11158 arg2 = reinterpret_cast< wxRegion * >(argp2);
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 {
11166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11167 }
11168 return resultobj;
11169 fail:
11170 return NULL;
11171 }
11172
11173
11174 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11175 PyObject *resultobj = 0;
11176 wxRegion *arg1 = (wxRegion *) 0 ;
11177 SwigValueWrapper<wxBitmap > result;
11178 void *argp1 = 0 ;
11179 int res1 = 0 ;
11180 PyObject *swig_obj[1] ;
11181
11182 if (!args) SWIG_fail;
11183 swig_obj[0] = args;
11184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11185 if (!SWIG_IsOK(res1)) {
11186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11187 }
11188 arg1 = reinterpret_cast< wxRegion * >(argp1);
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 result = (arg1)->ConvertToBitmap();
11192 wxPyEndAllowThreads(__tstate);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 }
11195 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11196 return resultobj;
11197 fail:
11198 return NULL;
11199 }
11200
11201
11202 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11203 PyObject *resultobj = 0;
11204 wxRegion *arg1 = (wxRegion *) 0 ;
11205 wxBitmap *arg2 = 0 ;
11206 bool result;
11207 void *argp1 = 0 ;
11208 int res1 = 0 ;
11209 void *argp2 = 0 ;
11210 int res2 = 0 ;
11211 PyObject * obj0 = 0 ;
11212 PyObject * obj1 = 0 ;
11213 char * kwnames[] = {
11214 (char *) "self",(char *) "bmp", NULL
11215 };
11216
11217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11219 if (!SWIG_IsOK(res1)) {
11220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11221 }
11222 arg1 = reinterpret_cast< wxRegion * >(argp1);
11223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11224 if (!SWIG_IsOK(res2)) {
11225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11226 }
11227 if (!argp2) {
11228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11229 }
11230 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11231 {
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11234 wxPyEndAllowThreads(__tstate);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 }
11237 {
11238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11239 }
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11247 PyObject *resultobj = 0;
11248 wxRegion *arg1 = (wxRegion *) 0 ;
11249 wxBitmap *arg2 = 0 ;
11250 wxColour *arg3 = 0 ;
11251 int arg4 = (int) 0 ;
11252 bool result;
11253 void *argp1 = 0 ;
11254 int res1 = 0 ;
11255 void *argp2 = 0 ;
11256 int res2 = 0 ;
11257 wxColour temp3 ;
11258 int val4 ;
11259 int ecode4 = 0 ;
11260 PyObject * obj0 = 0 ;
11261 PyObject * obj1 = 0 ;
11262 PyObject * obj2 = 0 ;
11263 PyObject * obj3 = 0 ;
11264 char * kwnames[] = {
11265 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11266 };
11267
11268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11270 if (!SWIG_IsOK(res1)) {
11271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11272 }
11273 arg1 = reinterpret_cast< wxRegion * >(argp1);
11274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11275 if (!SWIG_IsOK(res2)) {
11276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11277 }
11278 if (!argp2) {
11279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11280 }
11281 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11282 {
11283 arg3 = &temp3;
11284 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11285 }
11286 if (obj3) {
11287 ecode4 = SWIG_AsVal_int(obj3, &val4);
11288 if (!SWIG_IsOK(ecode4)) {
11289 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11290 }
11291 arg4 = static_cast< int >(val4);
11292 }
11293 {
11294 PyThreadState* __tstate = wxPyBeginAllowThreads();
11295 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11296 wxPyEndAllowThreads(__tstate);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 }
11299 {
11300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11301 }
11302 return resultobj;
11303 fail:
11304 return NULL;
11305 }
11306
11307
11308 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11309 PyObject *obj;
11310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11311 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11312 return SWIG_Py_Void();
11313 }
11314
11315 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11316 return SWIG_Python_InitShadowInstance(args);
11317 }
11318
11319 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj = 0;
11321 wxRegion *arg1 = 0 ;
11322 wxRegionIterator *result = 0 ;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 PyObject * obj0 = 0 ;
11326 char * kwnames[] = {
11327 (char *) "region", NULL
11328 };
11329
11330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11331 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11332 if (!SWIG_IsOK(res1)) {
11333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11334 }
11335 if (!argp1) {
11336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11337 }
11338 arg1 = reinterpret_cast< wxRegion * >(argp1);
11339 {
11340 if (!wxPyCheckForApp()) SWIG_fail;
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11356 void *argp1 = 0 ;
11357 int res1 = 0 ;
11358 PyObject *swig_obj[1] ;
11359
11360 if (!args) SWIG_fail;
11361 swig_obj[0] = args;
11362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11363 if (!SWIG_IsOK(res1)) {
11364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11365 }
11366 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11367 {
11368 PyThreadState* __tstate = wxPyBeginAllowThreads();
11369 delete arg1;
11370
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_Py_Void();
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11384 int result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11394 }
11395 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (int)(arg1)->GetX();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_From_int(static_cast< int >(result));
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11410 PyObject *resultobj = 0;
11411 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11412 int result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 PyObject *swig_obj[1] ;
11416
11417 if (!args) SWIG_fail;
11418 swig_obj[0] = args;
11419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11420 if (!SWIG_IsOK(res1)) {
11421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11422 }
11423 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (int)(arg1)->GetY();
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 resultobj = SWIG_From_int(static_cast< int >(result));
11431 return resultobj;
11432 fail:
11433 return NULL;
11434 }
11435
11436
11437 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11438 PyObject *resultobj = 0;
11439 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11440 int result;
11441 void *argp1 = 0 ;
11442 int res1 = 0 ;
11443 PyObject *swig_obj[1] ;
11444
11445 if (!args) SWIG_fail;
11446 swig_obj[0] = args;
11447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11448 if (!SWIG_IsOK(res1)) {
11449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11450 }
11451 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11452 {
11453 PyThreadState* __tstate = wxPyBeginAllowThreads();
11454 result = (int)(arg1)->GetW();
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 resultobj = SWIG_From_int(static_cast< int >(result));
11459 return resultobj;
11460 fail:
11461 return NULL;
11462 }
11463
11464
11465 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11466 PyObject *resultobj = 0;
11467 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11468 int result;
11469 void *argp1 = 0 ;
11470 int res1 = 0 ;
11471 PyObject *swig_obj[1] ;
11472
11473 if (!args) SWIG_fail;
11474 swig_obj[0] = args;
11475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11476 if (!SWIG_IsOK(res1)) {
11477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11478 }
11479 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 result = (int)(arg1)->GetWidth();
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 resultobj = SWIG_From_int(static_cast< int >(result));
11487 return resultobj;
11488 fail:
11489 return NULL;
11490 }
11491
11492
11493 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11494 PyObject *resultobj = 0;
11495 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11496 int result;
11497 void *argp1 = 0 ;
11498 int res1 = 0 ;
11499 PyObject *swig_obj[1] ;
11500
11501 if (!args) SWIG_fail;
11502 swig_obj[0] = args;
11503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11504 if (!SWIG_IsOK(res1)) {
11505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11506 }
11507 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 result = (int)(arg1)->GetH();
11511 wxPyEndAllowThreads(__tstate);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 resultobj = SWIG_From_int(static_cast< int >(result));
11515 return resultobj;
11516 fail:
11517 return NULL;
11518 }
11519
11520
11521 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11522 PyObject *resultobj = 0;
11523 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11524 int result;
11525 void *argp1 = 0 ;
11526 int res1 = 0 ;
11527 PyObject *swig_obj[1] ;
11528
11529 if (!args) SWIG_fail;
11530 swig_obj[0] = args;
11531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11532 if (!SWIG_IsOK(res1)) {
11533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11534 }
11535 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 result = (int)(arg1)->GetHeight();
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 resultobj = SWIG_From_int(static_cast< int >(result));
11543 return resultobj;
11544 fail:
11545 return NULL;
11546 }
11547
11548
11549 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11550 PyObject *resultobj = 0;
11551 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11552 wxRect result;
11553 void *argp1 = 0 ;
11554 int res1 = 0 ;
11555 PyObject *swig_obj[1] ;
11556
11557 if (!args) SWIG_fail;
11558 swig_obj[0] = args;
11559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11560 if (!SWIG_IsOK(res1)) {
11561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11562 }
11563 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11564 {
11565 PyThreadState* __tstate = wxPyBeginAllowThreads();
11566 result = (arg1)->GetRect();
11567 wxPyEndAllowThreads(__tstate);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 }
11570 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11571 return resultobj;
11572 fail:
11573 return NULL;
11574 }
11575
11576
11577 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11578 PyObject *resultobj = 0;
11579 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11580 bool result;
11581 void *argp1 = 0 ;
11582 int res1 = 0 ;
11583 PyObject *swig_obj[1] ;
11584
11585 if (!args) SWIG_fail;
11586 swig_obj[0] = args;
11587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11588 if (!SWIG_IsOK(res1)) {
11589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11590 }
11591 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11592 {
11593 PyThreadState* __tstate = wxPyBeginAllowThreads();
11594 result = (bool)(arg1)->HaveRects();
11595 wxPyEndAllowThreads(__tstate);
11596 if (PyErr_Occurred()) SWIG_fail;
11597 }
11598 {
11599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11600 }
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11608 PyObject *resultobj = 0;
11609 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11610 void *argp1 = 0 ;
11611 int res1 = 0 ;
11612 PyObject *swig_obj[1] ;
11613
11614 if (!args) SWIG_fail;
11615 swig_obj[0] = args;
11616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11617 if (!SWIG_IsOK(res1)) {
11618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11619 }
11620 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11621 {
11622 PyThreadState* __tstate = wxPyBeginAllowThreads();
11623 (arg1)->Reset();
11624 wxPyEndAllowThreads(__tstate);
11625 if (PyErr_Occurred()) SWIG_fail;
11626 }
11627 resultobj = SWIG_Py_Void();
11628 return resultobj;
11629 fail:
11630 return NULL;
11631 }
11632
11633
11634 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11635 PyObject *resultobj = 0;
11636 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11637 void *argp1 = 0 ;
11638 int res1 = 0 ;
11639 PyObject *swig_obj[1] ;
11640
11641 if (!args) SWIG_fail;
11642 swig_obj[0] = args;
11643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11644 if (!SWIG_IsOK(res1)) {
11645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11646 }
11647 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11648 {
11649 PyThreadState* __tstate = wxPyBeginAllowThreads();
11650 wxRegionIterator_Next(arg1);
11651 wxPyEndAllowThreads(__tstate);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 }
11654 resultobj = SWIG_Py_Void();
11655 return resultobj;
11656 fail:
11657 return NULL;
11658 }
11659
11660
11661 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11662 PyObject *resultobj = 0;
11663 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11664 bool result;
11665 void *argp1 = 0 ;
11666 int res1 = 0 ;
11667 PyObject *swig_obj[1] ;
11668
11669 if (!args) SWIG_fail;
11670 swig_obj[0] = args;
11671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11672 if (!SWIG_IsOK(res1)) {
11673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11674 }
11675 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11676 {
11677 PyThreadState* __tstate = wxPyBeginAllowThreads();
11678 result = (bool)wxRegionIterator___nonzero__(arg1);
11679 wxPyEndAllowThreads(__tstate);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 }
11682 {
11683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11684 }
11685 return resultobj;
11686 fail:
11687 return NULL;
11688 }
11689
11690
11691 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11692 PyObject *obj;
11693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11694 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11695 return SWIG_Py_Void();
11696 }
11697
11698 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11699 return SWIG_Python_InitShadowInstance(args);
11700 }
11701
11702 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11703 PyObject *resultobj = 0;
11704 wxNativeFontInfo *result = 0 ;
11705
11706 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11714 return resultobj;
11715 fail:
11716 return NULL;
11717 }
11718
11719
11720 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11721 PyObject *resultobj = 0;
11722 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11723 void *argp1 = 0 ;
11724 int res1 = 0 ;
11725 PyObject *swig_obj[1] ;
11726
11727 if (!args) SWIG_fail;
11728 swig_obj[0] = args;
11729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11730 if (!SWIG_IsOK(res1)) {
11731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11732 }
11733 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11734 {
11735 PyThreadState* __tstate = wxPyBeginAllowThreads();
11736 delete arg1;
11737
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 resultobj = SWIG_Py_Void();
11742 return resultobj;
11743 fail:
11744 return NULL;
11745 }
11746
11747
11748 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11749 PyObject *resultobj = 0;
11750 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11751 void *argp1 = 0 ;
11752 int res1 = 0 ;
11753 PyObject *swig_obj[1] ;
11754
11755 if (!args) SWIG_fail;
11756 swig_obj[0] = args;
11757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11758 if (!SWIG_IsOK(res1)) {
11759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11760 }
11761 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11762 {
11763 PyThreadState* __tstate = wxPyBeginAllowThreads();
11764 (arg1)->Init();
11765 wxPyEndAllowThreads(__tstate);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 }
11768 resultobj = SWIG_Py_Void();
11769 return resultobj;
11770 fail:
11771 return NULL;
11772 }
11773
11774
11775 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11776 PyObject *resultobj = 0;
11777 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11778 wxFont *arg2 = 0 ;
11779 void *argp1 = 0 ;
11780 int res1 = 0 ;
11781 void *argp2 = 0 ;
11782 int res2 = 0 ;
11783 PyObject * obj0 = 0 ;
11784 PyObject * obj1 = 0 ;
11785 char * kwnames[] = {
11786 (char *) "self",(char *) "font", NULL
11787 };
11788
11789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11791 if (!SWIG_IsOK(res1)) {
11792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11793 }
11794 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11796 if (!SWIG_IsOK(res2)) {
11797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11798 }
11799 if (!argp2) {
11800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11801 }
11802 arg2 = reinterpret_cast< wxFont * >(argp2);
11803 {
11804 PyThreadState* __tstate = wxPyBeginAllowThreads();
11805 (arg1)->InitFromFont((wxFont const &)*arg2);
11806 wxPyEndAllowThreads(__tstate);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 }
11809 resultobj = SWIG_Py_Void();
11810 return resultobj;
11811 fail:
11812 return NULL;
11813 }
11814
11815
11816 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11817 PyObject *resultobj = 0;
11818 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11819 int result;
11820 void *argp1 = 0 ;
11821 int res1 = 0 ;
11822 PyObject *swig_obj[1] ;
11823
11824 if (!args) SWIG_fail;
11825 swig_obj[0] = args;
11826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11827 if (!SWIG_IsOK(res1)) {
11828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11829 }
11830 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11831 {
11832 PyThreadState* __tstate = wxPyBeginAllowThreads();
11833 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11834 wxPyEndAllowThreads(__tstate);
11835 if (PyErr_Occurred()) SWIG_fail;
11836 }
11837 resultobj = SWIG_From_int(static_cast< int >(result));
11838 return resultobj;
11839 fail:
11840 return NULL;
11841 }
11842
11843
11844 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11845 PyObject *resultobj = 0;
11846 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11847 wxFontStyle result;
11848 void *argp1 = 0 ;
11849 int res1 = 0 ;
11850 PyObject *swig_obj[1] ;
11851
11852 if (!args) SWIG_fail;
11853 swig_obj[0] = args;
11854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11855 if (!SWIG_IsOK(res1)) {
11856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11857 }
11858 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11859 {
11860 PyThreadState* __tstate = wxPyBeginAllowThreads();
11861 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11862 wxPyEndAllowThreads(__tstate);
11863 if (PyErr_Occurred()) SWIG_fail;
11864 }
11865 resultobj = SWIG_From_int(static_cast< int >(result));
11866 return resultobj;
11867 fail:
11868 return NULL;
11869 }
11870
11871
11872 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11873 PyObject *resultobj = 0;
11874 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11875 wxFontWeight result;
11876 void *argp1 = 0 ;
11877 int res1 = 0 ;
11878 PyObject *swig_obj[1] ;
11879
11880 if (!args) SWIG_fail;
11881 swig_obj[0] = args;
11882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11883 if (!SWIG_IsOK(res1)) {
11884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11885 }
11886 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 resultobj = SWIG_From_int(static_cast< int >(result));
11894 return resultobj;
11895 fail:
11896 return NULL;
11897 }
11898
11899
11900 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11901 PyObject *resultobj = 0;
11902 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11903 bool result;
11904 void *argp1 = 0 ;
11905 int res1 = 0 ;
11906 PyObject *swig_obj[1] ;
11907
11908 if (!args) SWIG_fail;
11909 swig_obj[0] = args;
11910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11911 if (!SWIG_IsOK(res1)) {
11912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11913 }
11914 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11915 {
11916 PyThreadState* __tstate = wxPyBeginAllowThreads();
11917 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 {
11922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11923 }
11924 return resultobj;
11925 fail:
11926 return NULL;
11927 }
11928
11929
11930 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11931 PyObject *resultobj = 0;
11932 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11933 wxString result;
11934 void *argp1 = 0 ;
11935 int res1 = 0 ;
11936 PyObject *swig_obj[1] ;
11937
11938 if (!args) SWIG_fail;
11939 swig_obj[0] = args;
11940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11941 if (!SWIG_IsOK(res1)) {
11942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11943 }
11944 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11945 {
11946 PyThreadState* __tstate = wxPyBeginAllowThreads();
11947 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 {
11952 #if wxUSE_UNICODE
11953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11954 #else
11955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11956 #endif
11957 }
11958 return resultobj;
11959 fail:
11960 return NULL;
11961 }
11962
11963
11964 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11965 PyObject *resultobj = 0;
11966 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11967 wxFontFamily result;
11968 void *argp1 = 0 ;
11969 int res1 = 0 ;
11970 PyObject *swig_obj[1] ;
11971
11972 if (!args) SWIG_fail;
11973 swig_obj[0] = args;
11974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11975 if (!SWIG_IsOK(res1)) {
11976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11977 }
11978 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11979 {
11980 PyThreadState* __tstate = wxPyBeginAllowThreads();
11981 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11982 wxPyEndAllowThreads(__tstate);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 resultobj = SWIG_From_int(static_cast< int >(result));
11986 return resultobj;
11987 fail:
11988 return NULL;
11989 }
11990
11991
11992 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11993 PyObject *resultobj = 0;
11994 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11995 wxFontEncoding 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_wxNativeFontInfo, 0 | 0 );
12003 if (!SWIG_IsOK(res1)) {
12004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12005 }
12006 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12007 {
12008 PyThreadState* __tstate = wxPyBeginAllowThreads();
12009 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
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_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12021 PyObject *resultobj = 0;
12022 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12023 int arg2 ;
12024 void *argp1 = 0 ;
12025 int res1 = 0 ;
12026 int val2 ;
12027 int ecode2 = 0 ;
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
12030 char * kwnames[] = {
12031 (char *) "self",(char *) "pointsize", NULL
12032 };
12033
12034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12036 if (!SWIG_IsOK(res1)) {
12037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12038 }
12039 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12040 ecode2 = SWIG_AsVal_int(obj1, &val2);
12041 if (!SWIG_IsOK(ecode2)) {
12042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12043 }
12044 arg2 = static_cast< int >(val2);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 (arg1)->SetPointSize(arg2);
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 resultobj = SWIG_Py_Void();
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12059 PyObject *resultobj = 0;
12060 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12061 wxFontStyle arg2 ;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 int val2 ;
12065 int ecode2 = 0 ;
12066 PyObject * obj0 = 0 ;
12067 PyObject * obj1 = 0 ;
12068 char * kwnames[] = {
12069 (char *) "self",(char *) "style", NULL
12070 };
12071
12072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12074 if (!SWIG_IsOK(res1)) {
12075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12076 }
12077 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12078 ecode2 = SWIG_AsVal_int(obj1, &val2);
12079 if (!SWIG_IsOK(ecode2)) {
12080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12081 }
12082 arg2 = static_cast< wxFontStyle >(val2);
12083 {
12084 PyThreadState* __tstate = wxPyBeginAllowThreads();
12085 (arg1)->SetStyle(arg2);
12086 wxPyEndAllowThreads(__tstate);
12087 if (PyErr_Occurred()) SWIG_fail;
12088 }
12089 resultobj = SWIG_Py_Void();
12090 return resultobj;
12091 fail:
12092 return NULL;
12093 }
12094
12095
12096 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12097 PyObject *resultobj = 0;
12098 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12099 wxFontWeight arg2 ;
12100 void *argp1 = 0 ;
12101 int res1 = 0 ;
12102 int val2 ;
12103 int ecode2 = 0 ;
12104 PyObject * obj0 = 0 ;
12105 PyObject * obj1 = 0 ;
12106 char * kwnames[] = {
12107 (char *) "self",(char *) "weight", NULL
12108 };
12109
12110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12112 if (!SWIG_IsOK(res1)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12114 }
12115 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12116 ecode2 = SWIG_AsVal_int(obj1, &val2);
12117 if (!SWIG_IsOK(ecode2)) {
12118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12119 }
12120 arg2 = static_cast< wxFontWeight >(val2);
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 (arg1)->SetWeight(arg2);
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 resultobj = SWIG_Py_Void();
12128 return resultobj;
12129 fail:
12130 return NULL;
12131 }
12132
12133
12134 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12135 PyObject *resultobj = 0;
12136 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12137 bool arg2 ;
12138 void *argp1 = 0 ;
12139 int res1 = 0 ;
12140 bool val2 ;
12141 int ecode2 = 0 ;
12142 PyObject * obj0 = 0 ;
12143 PyObject * obj1 = 0 ;
12144 char * kwnames[] = {
12145 (char *) "self",(char *) "underlined", NULL
12146 };
12147
12148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12150 if (!SWIG_IsOK(res1)) {
12151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12152 }
12153 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12154 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12155 if (!SWIG_IsOK(ecode2)) {
12156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12157 }
12158 arg2 = static_cast< bool >(val2);
12159 {
12160 PyThreadState* __tstate = wxPyBeginAllowThreads();
12161 (arg1)->SetUnderlined(arg2);
12162 wxPyEndAllowThreads(__tstate);
12163 if (PyErr_Occurred()) SWIG_fail;
12164 }
12165 resultobj = SWIG_Py_Void();
12166 return resultobj;
12167 fail:
12168 return NULL;
12169 }
12170
12171
12172 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12173 PyObject *resultobj = 0;
12174 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12175 wxString arg2 ;
12176 bool result;
12177 void *argp1 = 0 ;
12178 int res1 = 0 ;
12179 PyObject * obj0 = 0 ;
12180 PyObject * obj1 = 0 ;
12181 char * kwnames[] = {
12182 (char *) "self",(char *) "facename", NULL
12183 };
12184
12185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12187 if (!SWIG_IsOK(res1)) {
12188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12189 }
12190 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12191 {
12192 wxString* sptr = wxString_in_helper(obj1);
12193 if (sptr == NULL) SWIG_fail;
12194 arg2 = *sptr;
12195 delete sptr;
12196 }
12197 {
12198 PyThreadState* __tstate = wxPyBeginAllowThreads();
12199 result = (bool)(arg1)->SetFaceName(arg2);
12200 wxPyEndAllowThreads(__tstate);
12201 if (PyErr_Occurred()) SWIG_fail;
12202 }
12203 {
12204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12205 }
12206 return resultobj;
12207 fail:
12208 return NULL;
12209 }
12210
12211
12212 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12213 PyObject *resultobj = 0;
12214 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12215 wxFontFamily arg2 ;
12216 void *argp1 = 0 ;
12217 int res1 = 0 ;
12218 int val2 ;
12219 int ecode2 = 0 ;
12220 PyObject * obj0 = 0 ;
12221 PyObject * obj1 = 0 ;
12222 char * kwnames[] = {
12223 (char *) "self",(char *) "family", NULL
12224 };
12225
12226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12228 if (!SWIG_IsOK(res1)) {
12229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12230 }
12231 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12232 ecode2 = SWIG_AsVal_int(obj1, &val2);
12233 if (!SWIG_IsOK(ecode2)) {
12234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12235 }
12236 arg2 = static_cast< wxFontFamily >(val2);
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 (arg1)->SetFamily(arg2);
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 resultobj = SWIG_Py_Void();
12244 return resultobj;
12245 fail:
12246 return NULL;
12247 }
12248
12249
12250 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12251 PyObject *resultobj = 0;
12252 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12253 wxFontEncoding arg2 ;
12254 void *argp1 = 0 ;
12255 int res1 = 0 ;
12256 int val2 ;
12257 int ecode2 = 0 ;
12258 PyObject * obj0 = 0 ;
12259 PyObject * obj1 = 0 ;
12260 char * kwnames[] = {
12261 (char *) "self",(char *) "encoding", NULL
12262 };
12263
12264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12266 if (!SWIG_IsOK(res1)) {
12267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12268 }
12269 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12270 ecode2 = SWIG_AsVal_int(obj1, &val2);
12271 if (!SWIG_IsOK(ecode2)) {
12272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12273 }
12274 arg2 = static_cast< wxFontEncoding >(val2);
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 (arg1)->SetEncoding(arg2);
12278 wxPyEndAllowThreads(__tstate);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 }
12281 resultobj = SWIG_Py_Void();
12282 return resultobj;
12283 fail:
12284 return NULL;
12285 }
12286
12287
12288 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12289 PyObject *resultobj = 0;
12290 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12291 wxString *arg2 = 0 ;
12292 bool result;
12293 void *argp1 = 0 ;
12294 int res1 = 0 ;
12295 bool temp2 = false ;
12296 PyObject * obj0 = 0 ;
12297 PyObject * obj1 = 0 ;
12298 char * kwnames[] = {
12299 (char *) "self",(char *) "s", NULL
12300 };
12301
12302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12304 if (!SWIG_IsOK(res1)) {
12305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12306 }
12307 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12308 {
12309 arg2 = wxString_in_helper(obj1);
12310 if (arg2 == NULL) SWIG_fail;
12311 temp2 = true;
12312 }
12313 {
12314 PyThreadState* __tstate = wxPyBeginAllowThreads();
12315 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12316 wxPyEndAllowThreads(__tstate);
12317 if (PyErr_Occurred()) SWIG_fail;
12318 }
12319 {
12320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12321 }
12322 {
12323 if (temp2)
12324 delete arg2;
12325 }
12326 return resultobj;
12327 fail:
12328 {
12329 if (temp2)
12330 delete arg2;
12331 }
12332 return NULL;
12333 }
12334
12335
12336 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12337 PyObject *resultobj = 0;
12338 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12339 wxString result;
12340 void *argp1 = 0 ;
12341 int res1 = 0 ;
12342 PyObject *swig_obj[1] ;
12343
12344 if (!args) SWIG_fail;
12345 swig_obj[0] = args;
12346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12347 if (!SWIG_IsOK(res1)) {
12348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12349 }
12350 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12351 {
12352 PyThreadState* __tstate = wxPyBeginAllowThreads();
12353 result = ((wxNativeFontInfo const *)arg1)->ToString();
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 {
12358 #if wxUSE_UNICODE
12359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12360 #else
12361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12362 #endif
12363 }
12364 return resultobj;
12365 fail:
12366 return NULL;
12367 }
12368
12369
12370 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12371 PyObject *resultobj = 0;
12372 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12373 wxString result;
12374 void *argp1 = 0 ;
12375 int res1 = 0 ;
12376 PyObject *swig_obj[1] ;
12377
12378 if (!args) SWIG_fail;
12379 swig_obj[0] = args;
12380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12381 if (!SWIG_IsOK(res1)) {
12382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12383 }
12384 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 result = wxNativeFontInfo___str__(arg1);
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 {
12392 #if wxUSE_UNICODE
12393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12394 #else
12395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12396 #endif
12397 }
12398 return resultobj;
12399 fail:
12400 return NULL;
12401 }
12402
12403
12404 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12405 PyObject *resultobj = 0;
12406 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12407 wxString *arg2 = 0 ;
12408 bool result;
12409 void *argp1 = 0 ;
12410 int res1 = 0 ;
12411 bool temp2 = false ;
12412 PyObject * obj0 = 0 ;
12413 PyObject * obj1 = 0 ;
12414 char * kwnames[] = {
12415 (char *) "self",(char *) "s", NULL
12416 };
12417
12418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12420 if (!SWIG_IsOK(res1)) {
12421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12422 }
12423 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12424 {
12425 arg2 = wxString_in_helper(obj1);
12426 if (arg2 == NULL) SWIG_fail;
12427 temp2 = true;
12428 }
12429 {
12430 PyThreadState* __tstate = wxPyBeginAllowThreads();
12431 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12432 wxPyEndAllowThreads(__tstate);
12433 if (PyErr_Occurred()) SWIG_fail;
12434 }
12435 {
12436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12437 }
12438 {
12439 if (temp2)
12440 delete arg2;
12441 }
12442 return resultobj;
12443 fail:
12444 {
12445 if (temp2)
12446 delete arg2;
12447 }
12448 return NULL;
12449 }
12450
12451
12452 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12453 PyObject *resultobj = 0;
12454 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12455 wxString result;
12456 void *argp1 = 0 ;
12457 int res1 = 0 ;
12458 PyObject *swig_obj[1] ;
12459
12460 if (!args) SWIG_fail;
12461 swig_obj[0] = args;
12462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12463 if (!SWIG_IsOK(res1)) {
12464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12465 }
12466 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12467 {
12468 PyThreadState* __tstate = wxPyBeginAllowThreads();
12469 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12470 wxPyEndAllowThreads(__tstate);
12471 if (PyErr_Occurred()) SWIG_fail;
12472 }
12473 {
12474 #if wxUSE_UNICODE
12475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12476 #else
12477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12478 #endif
12479 }
12480 return resultobj;
12481 fail:
12482 return NULL;
12483 }
12484
12485
12486 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12487 PyObject *obj;
12488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12489 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12490 return SWIG_Py_Void();
12491 }
12492
12493 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12494 return SWIG_Python_InitShadowInstance(args);
12495 }
12496
12497 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12498 PyObject *resultobj = 0;
12499 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12500 wxString *arg2 = (wxString *) 0 ;
12501 void *argp1 = 0 ;
12502 int res1 = 0 ;
12503 bool temp2 = false ;
12504 PyObject *swig_obj[2] ;
12505
12506 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12508 if (!SWIG_IsOK(res1)) {
12509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12510 }
12511 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12512 {
12513 arg2 = wxString_in_helper(swig_obj[1]);
12514 if (arg2 == NULL) SWIG_fail;
12515 temp2 = true;
12516 }
12517 if (arg1) (arg1)->facename = *arg2;
12518
12519 resultobj = SWIG_Py_Void();
12520 {
12521 if (temp2)
12522 delete arg2;
12523 }
12524 return resultobj;
12525 fail:
12526 {
12527 if (temp2)
12528 delete arg2;
12529 }
12530 return NULL;
12531 }
12532
12533
12534 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12535 PyObject *resultobj = 0;
12536 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12537 wxString *result = 0 ;
12538 void *argp1 = 0 ;
12539 int res1 = 0 ;
12540 PyObject *swig_obj[1] ;
12541
12542 if (!args) SWIG_fail;
12543 swig_obj[0] = args;
12544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12545 if (!SWIG_IsOK(res1)) {
12546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12547 }
12548 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12549 result = (wxString *)& ((arg1)->facename);
12550 {
12551 #if wxUSE_UNICODE
12552 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12553 #else
12554 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12555 #endif
12556 }
12557 return resultobj;
12558 fail:
12559 return NULL;
12560 }
12561
12562
12563 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12564 PyObject *resultobj = 0;
12565 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12566 wxFontEncoding arg2 ;
12567 void *argp1 = 0 ;
12568 int res1 = 0 ;
12569 int val2 ;
12570 int ecode2 = 0 ;
12571 PyObject *swig_obj[2] ;
12572
12573 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12575 if (!SWIG_IsOK(res1)) {
12576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12577 }
12578 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12579 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12580 if (!SWIG_IsOK(ecode2)) {
12581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12582 }
12583 arg2 = static_cast< wxFontEncoding >(val2);
12584 if (arg1) (arg1)->encoding = arg2;
12585
12586 resultobj = SWIG_Py_Void();
12587 return resultobj;
12588 fail:
12589 return NULL;
12590 }
12591
12592
12593 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12594 PyObject *resultobj = 0;
12595 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12596 wxFontEncoding result;
12597 void *argp1 = 0 ;
12598 int res1 = 0 ;
12599 PyObject *swig_obj[1] ;
12600
12601 if (!args) SWIG_fail;
12602 swig_obj[0] = args;
12603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12604 if (!SWIG_IsOK(res1)) {
12605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12606 }
12607 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12608 result = (wxFontEncoding) ((arg1)->encoding);
12609 resultobj = SWIG_From_int(static_cast< int >(result));
12610 return resultobj;
12611 fail:
12612 return NULL;
12613 }
12614
12615
12616 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12617 PyObject *resultobj = 0;
12618 wxNativeEncodingInfo *result = 0 ;
12619
12620 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12621 {
12622 PyThreadState* __tstate = wxPyBeginAllowThreads();
12623 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12624 wxPyEndAllowThreads(__tstate);
12625 if (PyErr_Occurred()) SWIG_fail;
12626 }
12627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12628 return resultobj;
12629 fail:
12630 return NULL;
12631 }
12632
12633
12634 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12635 PyObject *resultobj = 0;
12636 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12637 void *argp1 = 0 ;
12638 int res1 = 0 ;
12639 PyObject *swig_obj[1] ;
12640
12641 if (!args) SWIG_fail;
12642 swig_obj[0] = args;
12643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12644 if (!SWIG_IsOK(res1)) {
12645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12646 }
12647 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12648 {
12649 PyThreadState* __tstate = wxPyBeginAllowThreads();
12650 delete arg1;
12651
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 }
12655 resultobj = SWIG_Py_Void();
12656 return resultobj;
12657 fail:
12658 return NULL;
12659 }
12660
12661
12662 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12663 PyObject *resultobj = 0;
12664 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12665 wxString *arg2 = 0 ;
12666 bool result;
12667 void *argp1 = 0 ;
12668 int res1 = 0 ;
12669 bool temp2 = false ;
12670 PyObject * obj0 = 0 ;
12671 PyObject * obj1 = 0 ;
12672 char * kwnames[] = {
12673 (char *) "self",(char *) "s", NULL
12674 };
12675
12676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12680 }
12681 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12682 {
12683 arg2 = wxString_in_helper(obj1);
12684 if (arg2 == NULL) SWIG_fail;
12685 temp2 = true;
12686 }
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 {
12694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12695 }
12696 {
12697 if (temp2)
12698 delete arg2;
12699 }
12700 return resultobj;
12701 fail:
12702 {
12703 if (temp2)
12704 delete arg2;
12705 }
12706 return NULL;
12707 }
12708
12709
12710 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12711 PyObject *resultobj = 0;
12712 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12713 wxString result;
12714 void *argp1 = 0 ;
12715 int res1 = 0 ;
12716 PyObject *swig_obj[1] ;
12717
12718 if (!args) SWIG_fail;
12719 swig_obj[0] = args;
12720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12721 if (!SWIG_IsOK(res1)) {
12722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12723 }
12724 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 {
12732 #if wxUSE_UNICODE
12733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12734 #else
12735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12736 #endif
12737 }
12738 return resultobj;
12739 fail:
12740 return NULL;
12741 }
12742
12743
12744 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12745 PyObject *obj;
12746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12747 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12748 return SWIG_Py_Void();
12749 }
12750
12751 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12752 return SWIG_Python_InitShadowInstance(args);
12753 }
12754
12755 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12756 PyObject *resultobj = 0;
12757 wxFontEncoding arg1 ;
12758 wxNativeEncodingInfo *result = 0 ;
12759 int val1 ;
12760 int ecode1 = 0 ;
12761 PyObject * obj0 = 0 ;
12762 char * kwnames[] = {
12763 (char *) "encoding", NULL
12764 };
12765
12766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12767 ecode1 = SWIG_AsVal_int(obj0, &val1);
12768 if (!SWIG_IsOK(ecode1)) {
12769 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12770 }
12771 arg1 = static_cast< wxFontEncoding >(val1);
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12779 return resultobj;
12780 fail:
12781 return NULL;
12782 }
12783
12784
12785 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12786 PyObject *resultobj = 0;
12787 wxNativeEncodingInfo *arg1 = 0 ;
12788 bool result;
12789 void *argp1 = 0 ;
12790 int res1 = 0 ;
12791 PyObject * obj0 = 0 ;
12792 char * kwnames[] = {
12793 (char *) "info", NULL
12794 };
12795
12796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12797 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12798 if (!SWIG_IsOK(res1)) {
12799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12800 }
12801 if (!argp1) {
12802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12803 }
12804 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12805 {
12806 PyThreadState* __tstate = wxPyBeginAllowThreads();
12807 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12808 wxPyEndAllowThreads(__tstate);
12809 if (PyErr_Occurred()) SWIG_fail;
12810 }
12811 {
12812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12813 }
12814 return resultobj;
12815 fail:
12816 return NULL;
12817 }
12818
12819
12820 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12821 PyObject *resultobj = 0;
12822 wxFontMapper *result = 0 ;
12823
12824 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = (wxFontMapper *)new wxFontMapper();
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12832 return resultobj;
12833 fail:
12834 return NULL;
12835 }
12836
12837
12838 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12839 PyObject *resultobj = 0;
12840 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12841 void *argp1 = 0 ;
12842 int res1 = 0 ;
12843 PyObject *swig_obj[1] ;
12844
12845 if (!args) SWIG_fail;
12846 swig_obj[0] = args;
12847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12848 if (!SWIG_IsOK(res1)) {
12849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12850 }
12851 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12852 {
12853 PyThreadState* __tstate = wxPyBeginAllowThreads();
12854 delete arg1;
12855
12856 wxPyEndAllowThreads(__tstate);
12857 if (PyErr_Occurred()) SWIG_fail;
12858 }
12859 resultobj = SWIG_Py_Void();
12860 return resultobj;
12861 fail:
12862 return NULL;
12863 }
12864
12865
12866 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12867 PyObject *resultobj = 0;
12868 wxFontMapper *result = 0 ;
12869
12870 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12871 {
12872 PyThreadState* __tstate = wxPyBeginAllowThreads();
12873 result = (wxFontMapper *)wxFontMapper::Get();
12874 wxPyEndAllowThreads(__tstate);
12875 if (PyErr_Occurred()) SWIG_fail;
12876 }
12877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12878 return resultobj;
12879 fail:
12880 return NULL;
12881 }
12882
12883
12884 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12885 PyObject *resultobj = 0;
12886 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12887 wxFontMapper *result = 0 ;
12888 void *argp1 = 0 ;
12889 int res1 = 0 ;
12890 PyObject * obj0 = 0 ;
12891 char * kwnames[] = {
12892 (char *) "mapper", NULL
12893 };
12894
12895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12897 if (!SWIG_IsOK(res1)) {
12898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12899 }
12900 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12901 {
12902 PyThreadState* __tstate = wxPyBeginAllowThreads();
12903 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12904 wxPyEndAllowThreads(__tstate);
12905 if (PyErr_Occurred()) SWIG_fail;
12906 }
12907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12908 return resultobj;
12909 fail:
12910 return NULL;
12911 }
12912
12913
12914 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12915 PyObject *resultobj = 0;
12916 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12917 wxString *arg2 = 0 ;
12918 bool arg3 = (bool) true ;
12919 wxFontEncoding result;
12920 void *argp1 = 0 ;
12921 int res1 = 0 ;
12922 bool temp2 = false ;
12923 bool val3 ;
12924 int ecode3 = 0 ;
12925 PyObject * obj0 = 0 ;
12926 PyObject * obj1 = 0 ;
12927 PyObject * obj2 = 0 ;
12928 char * kwnames[] = {
12929 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12930 };
12931
12932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12934 if (!SWIG_IsOK(res1)) {
12935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12936 }
12937 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12938 {
12939 arg2 = wxString_in_helper(obj1);
12940 if (arg2 == NULL) SWIG_fail;
12941 temp2 = true;
12942 }
12943 if (obj2) {
12944 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12945 if (!SWIG_IsOK(ecode3)) {
12946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12947 }
12948 arg3 = static_cast< bool >(val3);
12949 }
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12953 wxPyEndAllowThreads(__tstate);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 resultobj = SWIG_From_int(static_cast< int >(result));
12957 {
12958 if (temp2)
12959 delete arg2;
12960 }
12961 return resultobj;
12962 fail:
12963 {
12964 if (temp2)
12965 delete arg2;
12966 }
12967 return NULL;
12968 }
12969
12970
12971 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12972 PyObject *resultobj = 0;
12973 size_t result;
12974
12975 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12979 wxPyEndAllowThreads(__tstate);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 }
12982 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12983 return resultobj;
12984 fail:
12985 return NULL;
12986 }
12987
12988
12989 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12990 PyObject *resultobj = 0;
12991 size_t arg1 ;
12992 wxFontEncoding result;
12993 size_t val1 ;
12994 int ecode1 = 0 ;
12995 PyObject * obj0 = 0 ;
12996 char * kwnames[] = {
12997 (char *) "n", NULL
12998 };
12999
13000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13001 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13002 if (!SWIG_IsOK(ecode1)) {
13003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13004 }
13005 arg1 = static_cast< size_t >(val1);
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 resultobj = SWIG_From_int(static_cast< int >(result));
13013 return resultobj;
13014 fail:
13015 return NULL;
13016 }
13017
13018
13019 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13020 PyObject *resultobj = 0;
13021 wxFontEncoding arg1 ;
13022 wxString result;
13023 int val1 ;
13024 int ecode1 = 0 ;
13025 PyObject * obj0 = 0 ;
13026 char * kwnames[] = {
13027 (char *) "encoding", NULL
13028 };
13029
13030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13031 ecode1 = SWIG_AsVal_int(obj0, &val1);
13032 if (!SWIG_IsOK(ecode1)) {
13033 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13034 }
13035 arg1 = static_cast< wxFontEncoding >(val1);
13036 {
13037 PyThreadState* __tstate = wxPyBeginAllowThreads();
13038 result = wxFontMapper::GetEncodingName(arg1);
13039 wxPyEndAllowThreads(__tstate);
13040 if (PyErr_Occurred()) SWIG_fail;
13041 }
13042 {
13043 #if wxUSE_UNICODE
13044 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13045 #else
13046 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13047 #endif
13048 }
13049 return resultobj;
13050 fail:
13051 return NULL;
13052 }
13053
13054
13055 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13056 PyObject *resultobj = 0;
13057 wxFontEncoding arg1 ;
13058 wxString result;
13059 int val1 ;
13060 int ecode1 = 0 ;
13061 PyObject * obj0 = 0 ;
13062 char * kwnames[] = {
13063 (char *) "encoding", NULL
13064 };
13065
13066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13067 ecode1 = SWIG_AsVal_int(obj0, &val1);
13068 if (!SWIG_IsOK(ecode1)) {
13069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13070 }
13071 arg1 = static_cast< wxFontEncoding >(val1);
13072 {
13073 PyThreadState* __tstate = wxPyBeginAllowThreads();
13074 result = wxFontMapper::GetEncodingDescription(arg1);
13075 wxPyEndAllowThreads(__tstate);
13076 if (PyErr_Occurred()) SWIG_fail;
13077 }
13078 {
13079 #if wxUSE_UNICODE
13080 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13081 #else
13082 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13083 #endif
13084 }
13085 return resultobj;
13086 fail:
13087 return NULL;
13088 }
13089
13090
13091 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13092 PyObject *resultobj = 0;
13093 wxString *arg1 = 0 ;
13094 wxFontEncoding result;
13095 bool temp1 = false ;
13096 PyObject * obj0 = 0 ;
13097 char * kwnames[] = {
13098 (char *) "name", NULL
13099 };
13100
13101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13102 {
13103 arg1 = wxString_in_helper(obj0);
13104 if (arg1 == NULL) SWIG_fail;
13105 temp1 = true;
13106 }
13107 {
13108 PyThreadState* __tstate = wxPyBeginAllowThreads();
13109 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13110 wxPyEndAllowThreads(__tstate);
13111 if (PyErr_Occurred()) SWIG_fail;
13112 }
13113 resultobj = SWIG_From_int(static_cast< int >(result));
13114 {
13115 if (temp1)
13116 delete arg1;
13117 }
13118 return resultobj;
13119 fail:
13120 {
13121 if (temp1)
13122 delete arg1;
13123 }
13124 return NULL;
13125 }
13126
13127
13128 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13129 PyObject *resultobj = 0;
13130 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13131 wxString *arg2 = 0 ;
13132 void *argp1 = 0 ;
13133 int res1 = 0 ;
13134 bool temp2 = false ;
13135 PyObject * obj0 = 0 ;
13136 PyObject * obj1 = 0 ;
13137 char * kwnames[] = {
13138 (char *) "self",(char *) "prefix", NULL
13139 };
13140
13141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13143 if (!SWIG_IsOK(res1)) {
13144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13145 }
13146 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13147 {
13148 arg2 = wxString_in_helper(obj1);
13149 if (arg2 == NULL) SWIG_fail;
13150 temp2 = true;
13151 }
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 (arg1)->SetConfigPath((wxString const &)*arg2);
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 resultobj = SWIG_Py_Void();
13159 {
13160 if (temp2)
13161 delete arg2;
13162 }
13163 return resultobj;
13164 fail:
13165 {
13166 if (temp2)
13167 delete arg2;
13168 }
13169 return NULL;
13170 }
13171
13172
13173 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13174 PyObject *resultobj = 0;
13175 wxString result;
13176
13177 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 result = wxFontMapper::GetDefaultConfigPath();
13181 wxPyEndAllowThreads(__tstate);
13182 if (PyErr_Occurred()) SWIG_fail;
13183 }
13184 {
13185 #if wxUSE_UNICODE
13186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13187 #else
13188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13189 #endif
13190 }
13191 return resultobj;
13192 fail:
13193 return NULL;
13194 }
13195
13196
13197 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13198 PyObject *resultobj = 0;
13199 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13200 wxFontEncoding arg2 ;
13201 wxString const &arg3_defvalue = wxPyEmptyString ;
13202 wxString *arg3 = (wxString *) &arg3_defvalue ;
13203 bool arg4 = (bool) true ;
13204 PyObject *result = 0 ;
13205 void *argp1 = 0 ;
13206 int res1 = 0 ;
13207 int val2 ;
13208 int ecode2 = 0 ;
13209 bool temp3 = false ;
13210 bool val4 ;
13211 int ecode4 = 0 ;
13212 PyObject * obj0 = 0 ;
13213 PyObject * obj1 = 0 ;
13214 PyObject * obj2 = 0 ;
13215 PyObject * obj3 = 0 ;
13216 char * kwnames[] = {
13217 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13218 };
13219
13220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13222 if (!SWIG_IsOK(res1)) {
13223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13224 }
13225 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13226 ecode2 = SWIG_AsVal_int(obj1, &val2);
13227 if (!SWIG_IsOK(ecode2)) {
13228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13229 }
13230 arg2 = static_cast< wxFontEncoding >(val2);
13231 if (obj2) {
13232 {
13233 arg3 = wxString_in_helper(obj2);
13234 if (arg3 == NULL) SWIG_fail;
13235 temp3 = true;
13236 }
13237 }
13238 if (obj3) {
13239 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13240 if (!SWIG_IsOK(ecode4)) {
13241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13242 }
13243 arg4 = static_cast< bool >(val4);
13244 }
13245 {
13246 PyThreadState* __tstate = wxPyBeginAllowThreads();
13247 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13248 wxPyEndAllowThreads(__tstate);
13249 if (PyErr_Occurred()) SWIG_fail;
13250 }
13251 resultobj = result;
13252 {
13253 if (temp3)
13254 delete arg3;
13255 }
13256 return resultobj;
13257 fail:
13258 {
13259 if (temp3)
13260 delete arg3;
13261 }
13262 return NULL;
13263 }
13264
13265
13266 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj = 0;
13268 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13269 wxFontEncoding arg2 ;
13270 wxString const &arg3_defvalue = wxPyEmptyString ;
13271 wxString *arg3 = (wxString *) &arg3_defvalue ;
13272 bool result;
13273 void *argp1 = 0 ;
13274 int res1 = 0 ;
13275 int val2 ;
13276 int ecode2 = 0 ;
13277 bool temp3 = false ;
13278 PyObject * obj0 = 0 ;
13279 PyObject * obj1 = 0 ;
13280 PyObject * obj2 = 0 ;
13281 char * kwnames[] = {
13282 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13283 };
13284
13285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13287 if (!SWIG_IsOK(res1)) {
13288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13289 }
13290 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13291 ecode2 = SWIG_AsVal_int(obj1, &val2);
13292 if (!SWIG_IsOK(ecode2)) {
13293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13294 }
13295 arg2 = static_cast< wxFontEncoding >(val2);
13296 if (obj2) {
13297 {
13298 arg3 = wxString_in_helper(obj2);
13299 if (arg3 == NULL) SWIG_fail;
13300 temp3 = true;
13301 }
13302 }
13303 {
13304 PyThreadState* __tstate = wxPyBeginAllowThreads();
13305 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13306 wxPyEndAllowThreads(__tstate);
13307 if (PyErr_Occurred()) SWIG_fail;
13308 }
13309 {
13310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13311 }
13312 {
13313 if (temp3)
13314 delete arg3;
13315 }
13316 return resultobj;
13317 fail:
13318 {
13319 if (temp3)
13320 delete arg3;
13321 }
13322 return NULL;
13323 }
13324
13325
13326 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13327 PyObject *resultobj = 0;
13328 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13329 wxWindow *arg2 = (wxWindow *) 0 ;
13330 void *argp1 = 0 ;
13331 int res1 = 0 ;
13332 void *argp2 = 0 ;
13333 int res2 = 0 ;
13334 PyObject * obj0 = 0 ;
13335 PyObject * obj1 = 0 ;
13336 char * kwnames[] = {
13337 (char *) "self",(char *) "parent", NULL
13338 };
13339
13340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13342 if (!SWIG_IsOK(res1)) {
13343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13344 }
13345 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13346 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13347 if (!SWIG_IsOK(res2)) {
13348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13349 }
13350 arg2 = reinterpret_cast< wxWindow * >(argp2);
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 (arg1)->SetDialogParent(arg2);
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = SWIG_Py_Void();
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj = 0;
13366 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13367 wxString *arg2 = 0 ;
13368 void *argp1 = 0 ;
13369 int res1 = 0 ;
13370 bool temp2 = false ;
13371 PyObject * obj0 = 0 ;
13372 PyObject * obj1 = 0 ;
13373 char * kwnames[] = {
13374 (char *) "self",(char *) "title", NULL
13375 };
13376
13377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13379 if (!SWIG_IsOK(res1)) {
13380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13381 }
13382 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13383 {
13384 arg2 = wxString_in_helper(obj1);
13385 if (arg2 == NULL) SWIG_fail;
13386 temp2 = true;
13387 }
13388 {
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 (arg1)->SetDialogTitle((wxString const &)*arg2);
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 resultobj = SWIG_Py_Void();
13395 {
13396 if (temp2)
13397 delete arg2;
13398 }
13399 return resultobj;
13400 fail:
13401 {
13402 if (temp2)
13403 delete arg2;
13404 }
13405 return NULL;
13406 }
13407
13408
13409 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13410 PyObject *obj;
13411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13412 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13413 return SWIG_Py_Void();
13414 }
13415
13416 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13417 return SWIG_Python_InitShadowInstance(args);
13418 }
13419
13420 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj = 0;
13422 int arg1 ;
13423 int arg2 ;
13424 int arg3 ;
13425 int arg4 ;
13426 bool arg5 = (bool) false ;
13427 wxString const &arg6_defvalue = wxPyEmptyString ;
13428 wxString *arg6 = (wxString *) &arg6_defvalue ;
13429 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13430 wxFont *result = 0 ;
13431 int val1 ;
13432 int ecode1 = 0 ;
13433 int val2 ;
13434 int ecode2 = 0 ;
13435 int val3 ;
13436 int ecode3 = 0 ;
13437 int val4 ;
13438 int ecode4 = 0 ;
13439 bool val5 ;
13440 int ecode5 = 0 ;
13441 bool temp6 = false ;
13442 int val7 ;
13443 int ecode7 = 0 ;
13444 PyObject * obj0 = 0 ;
13445 PyObject * obj1 = 0 ;
13446 PyObject * obj2 = 0 ;
13447 PyObject * obj3 = 0 ;
13448 PyObject * obj4 = 0 ;
13449 PyObject * obj5 = 0 ;
13450 PyObject * obj6 = 0 ;
13451 char * kwnames[] = {
13452 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13453 };
13454
13455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13456 ecode1 = SWIG_AsVal_int(obj0, &val1);
13457 if (!SWIG_IsOK(ecode1)) {
13458 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13459 }
13460 arg1 = static_cast< int >(val1);
13461 ecode2 = SWIG_AsVal_int(obj1, &val2);
13462 if (!SWIG_IsOK(ecode2)) {
13463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13464 }
13465 arg2 = static_cast< int >(val2);
13466 ecode3 = SWIG_AsVal_int(obj2, &val3);
13467 if (!SWIG_IsOK(ecode3)) {
13468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13469 }
13470 arg3 = static_cast< int >(val3);
13471 ecode4 = SWIG_AsVal_int(obj3, &val4);
13472 if (!SWIG_IsOK(ecode4)) {
13473 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13474 }
13475 arg4 = static_cast< int >(val4);
13476 if (obj4) {
13477 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13478 if (!SWIG_IsOK(ecode5)) {
13479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13480 }
13481 arg5 = static_cast< bool >(val5);
13482 }
13483 if (obj5) {
13484 {
13485 arg6 = wxString_in_helper(obj5);
13486 if (arg6 == NULL) SWIG_fail;
13487 temp6 = true;
13488 }
13489 }
13490 if (obj6) {
13491 ecode7 = SWIG_AsVal_int(obj6, &val7);
13492 if (!SWIG_IsOK(ecode7)) {
13493 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13494 }
13495 arg7 = static_cast< wxFontEncoding >(val7);
13496 }
13497 {
13498 if (!wxPyCheckForApp()) SWIG_fail;
13499 PyThreadState* __tstate = wxPyBeginAllowThreads();
13500 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13501 wxPyEndAllowThreads(__tstate);
13502 if (PyErr_Occurred()) SWIG_fail;
13503 }
13504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13505 {
13506 if (temp6)
13507 delete arg6;
13508 }
13509 return resultobj;
13510 fail:
13511 {
13512 if (temp6)
13513 delete arg6;
13514 }
13515 return NULL;
13516 }
13517
13518
13519 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13520 PyObject *resultobj = 0;
13521 wxFont *arg1 = (wxFont *) 0 ;
13522 void *argp1 = 0 ;
13523 int res1 = 0 ;
13524 PyObject *swig_obj[1] ;
13525
13526 if (!args) SWIG_fail;
13527 swig_obj[0] = args;
13528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13529 if (!SWIG_IsOK(res1)) {
13530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13531 }
13532 arg1 = reinterpret_cast< wxFont * >(argp1);
13533 {
13534 PyThreadState* __tstate = wxPyBeginAllowThreads();
13535 delete arg1;
13536
13537 wxPyEndAllowThreads(__tstate);
13538 if (PyErr_Occurred()) SWIG_fail;
13539 }
13540 resultobj = SWIG_Py_Void();
13541 return resultobj;
13542 fail:
13543 return NULL;
13544 }
13545
13546
13547 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13548 PyObject *resultobj = 0;
13549 wxNativeFontInfo *arg1 = 0 ;
13550 wxFont *result = 0 ;
13551 void *argp1 = 0 ;
13552 int res1 = 0 ;
13553 PyObject * obj0 = 0 ;
13554 char * kwnames[] = {
13555 (char *) "info", NULL
13556 };
13557
13558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13559 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13560 if (!SWIG_IsOK(res1)) {
13561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13562 }
13563 if (!argp1) {
13564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13565 }
13566 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13567 {
13568 if (!wxPyCheckForApp()) SWIG_fail;
13569 PyThreadState* __tstate = wxPyBeginAllowThreads();
13570 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13575 return resultobj;
13576 fail:
13577 return NULL;
13578 }
13579
13580
13581 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13582 PyObject *resultobj = 0;
13583 wxString *arg1 = 0 ;
13584 wxFont *result = 0 ;
13585 bool temp1 = false ;
13586 PyObject * obj0 = 0 ;
13587 char * kwnames[] = {
13588 (char *) "info", NULL
13589 };
13590
13591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13592 {
13593 arg1 = wxString_in_helper(obj0);
13594 if (arg1 == NULL) SWIG_fail;
13595 temp1 = true;
13596 }
13597 {
13598 if (!wxPyCheckForApp()) SWIG_fail;
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13605 {
13606 if (temp1)
13607 delete arg1;
13608 }
13609 return resultobj;
13610 fail:
13611 {
13612 if (temp1)
13613 delete arg1;
13614 }
13615 return NULL;
13616 }
13617
13618
13619 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13620 PyObject *resultobj = 0;
13621 int arg1 ;
13622 wxFontFamily arg2 ;
13623 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13624 wxString const &arg4_defvalue = wxPyEmptyString ;
13625 wxString *arg4 = (wxString *) &arg4_defvalue ;
13626 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13627 wxFont *result = 0 ;
13628 int val1 ;
13629 int ecode1 = 0 ;
13630 int val2 ;
13631 int ecode2 = 0 ;
13632 int val3 ;
13633 int ecode3 = 0 ;
13634 bool temp4 = false ;
13635 int val5 ;
13636 int ecode5 = 0 ;
13637 PyObject * obj0 = 0 ;
13638 PyObject * obj1 = 0 ;
13639 PyObject * obj2 = 0 ;
13640 PyObject * obj3 = 0 ;
13641 PyObject * obj4 = 0 ;
13642 char * kwnames[] = {
13643 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13644 };
13645
13646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13647 ecode1 = SWIG_AsVal_int(obj0, &val1);
13648 if (!SWIG_IsOK(ecode1)) {
13649 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13650 }
13651 arg1 = static_cast< int >(val1);
13652 ecode2 = SWIG_AsVal_int(obj1, &val2);
13653 if (!SWIG_IsOK(ecode2)) {
13654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13655 }
13656 arg2 = static_cast< wxFontFamily >(val2);
13657 if (obj2) {
13658 ecode3 = SWIG_AsVal_int(obj2, &val3);
13659 if (!SWIG_IsOK(ecode3)) {
13660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13661 }
13662 arg3 = static_cast< int >(val3);
13663 }
13664 if (obj3) {
13665 {
13666 arg4 = wxString_in_helper(obj3);
13667 if (arg4 == NULL) SWIG_fail;
13668 temp4 = true;
13669 }
13670 }
13671 if (obj4) {
13672 ecode5 = SWIG_AsVal_int(obj4, &val5);
13673 if (!SWIG_IsOK(ecode5)) {
13674 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13675 }
13676 arg5 = static_cast< wxFontEncoding >(val5);
13677 }
13678 {
13679 if (!wxPyCheckForApp()) SWIG_fail;
13680 PyThreadState* __tstate = wxPyBeginAllowThreads();
13681 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13682 wxPyEndAllowThreads(__tstate);
13683 if (PyErr_Occurred()) SWIG_fail;
13684 }
13685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13686 {
13687 if (temp4)
13688 delete arg4;
13689 }
13690 return resultobj;
13691 fail:
13692 {
13693 if (temp4)
13694 delete arg4;
13695 }
13696 return NULL;
13697 }
13698
13699
13700 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13701 PyObject *resultobj = 0;
13702 wxSize *arg1 = 0 ;
13703 int arg2 ;
13704 int arg3 ;
13705 int arg4 ;
13706 bool arg5 = (bool) false ;
13707 wxString const &arg6_defvalue = wxEmptyString ;
13708 wxString *arg6 = (wxString *) &arg6_defvalue ;
13709 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13710 wxFont *result = 0 ;
13711 wxSize temp1 ;
13712 int val2 ;
13713 int ecode2 = 0 ;
13714 int val3 ;
13715 int ecode3 = 0 ;
13716 int val4 ;
13717 int ecode4 = 0 ;
13718 bool val5 ;
13719 int ecode5 = 0 ;
13720 bool temp6 = false ;
13721 int val7 ;
13722 int ecode7 = 0 ;
13723 PyObject * obj0 = 0 ;
13724 PyObject * obj1 = 0 ;
13725 PyObject * obj2 = 0 ;
13726 PyObject * obj3 = 0 ;
13727 PyObject * obj4 = 0 ;
13728 PyObject * obj5 = 0 ;
13729 PyObject * obj6 = 0 ;
13730 char * kwnames[] = {
13731 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13732 };
13733
13734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13735 {
13736 arg1 = &temp1;
13737 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13738 }
13739 ecode2 = SWIG_AsVal_int(obj1, &val2);
13740 if (!SWIG_IsOK(ecode2)) {
13741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13742 }
13743 arg2 = static_cast< int >(val2);
13744 ecode3 = SWIG_AsVal_int(obj2, &val3);
13745 if (!SWIG_IsOK(ecode3)) {
13746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13747 }
13748 arg3 = static_cast< int >(val3);
13749 ecode4 = SWIG_AsVal_int(obj3, &val4);
13750 if (!SWIG_IsOK(ecode4)) {
13751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13752 }
13753 arg4 = static_cast< int >(val4);
13754 if (obj4) {
13755 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13756 if (!SWIG_IsOK(ecode5)) {
13757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13758 }
13759 arg5 = static_cast< bool >(val5);
13760 }
13761 if (obj5) {
13762 {
13763 arg6 = wxString_in_helper(obj5);
13764 if (arg6 == NULL) SWIG_fail;
13765 temp6 = true;
13766 }
13767 }
13768 if (obj6) {
13769 ecode7 = SWIG_AsVal_int(obj6, &val7);
13770 if (!SWIG_IsOK(ecode7)) {
13771 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13772 }
13773 arg7 = static_cast< wxFontEncoding >(val7);
13774 }
13775 {
13776 if (!wxPyCheckForApp()) SWIG_fail;
13777 PyThreadState* __tstate = wxPyBeginAllowThreads();
13778 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13779 wxPyEndAllowThreads(__tstate);
13780 if (PyErr_Occurred()) SWIG_fail;
13781 }
13782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13783 {
13784 if (temp6)
13785 delete arg6;
13786 }
13787 return resultobj;
13788 fail:
13789 {
13790 if (temp6)
13791 delete arg6;
13792 }
13793 return NULL;
13794 }
13795
13796
13797 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13798 PyObject *resultobj = 0;
13799 wxSize *arg1 = 0 ;
13800 wxFontFamily arg2 ;
13801 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13802 wxString const &arg4_defvalue = wxEmptyString ;
13803 wxString *arg4 = (wxString *) &arg4_defvalue ;
13804 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13805 wxFont *result = 0 ;
13806 wxSize temp1 ;
13807 int val2 ;
13808 int ecode2 = 0 ;
13809 int val3 ;
13810 int ecode3 = 0 ;
13811 bool temp4 = false ;
13812 int val5 ;
13813 int ecode5 = 0 ;
13814 PyObject * obj0 = 0 ;
13815 PyObject * obj1 = 0 ;
13816 PyObject * obj2 = 0 ;
13817 PyObject * obj3 = 0 ;
13818 PyObject * obj4 = 0 ;
13819 char * kwnames[] = {
13820 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13821 };
13822
13823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13824 {
13825 arg1 = &temp1;
13826 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13827 }
13828 ecode2 = SWIG_AsVal_int(obj1, &val2);
13829 if (!SWIG_IsOK(ecode2)) {
13830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13831 }
13832 arg2 = static_cast< wxFontFamily >(val2);
13833 if (obj2) {
13834 ecode3 = SWIG_AsVal_int(obj2, &val3);
13835 if (!SWIG_IsOK(ecode3)) {
13836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13837 }
13838 arg3 = static_cast< int >(val3);
13839 }
13840 if (obj3) {
13841 {
13842 arg4 = wxString_in_helper(obj3);
13843 if (arg4 == NULL) SWIG_fail;
13844 temp4 = true;
13845 }
13846 }
13847 if (obj4) {
13848 ecode5 = SWIG_AsVal_int(obj4, &val5);
13849 if (!SWIG_IsOK(ecode5)) {
13850 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13851 }
13852 arg5 = static_cast< wxFontEncoding >(val5);
13853 }
13854 {
13855 if (!wxPyCheckForApp()) SWIG_fail;
13856 PyThreadState* __tstate = wxPyBeginAllowThreads();
13857 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13858 wxPyEndAllowThreads(__tstate);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13862 {
13863 if (temp4)
13864 delete arg4;
13865 }
13866 return resultobj;
13867 fail:
13868 {
13869 if (temp4)
13870 delete arg4;
13871 }
13872 return NULL;
13873 }
13874
13875
13876 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13877 PyObject *resultobj = 0;
13878 wxFont *arg1 = (wxFont *) 0 ;
13879 bool result;
13880 void *argp1 = 0 ;
13881 int res1 = 0 ;
13882 PyObject *swig_obj[1] ;
13883
13884 if (!args) SWIG_fail;
13885 swig_obj[0] = args;
13886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13887 if (!SWIG_IsOK(res1)) {
13888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
13889 }
13890 arg1 = reinterpret_cast< wxFont * >(argp1);
13891 {
13892 PyThreadState* __tstate = wxPyBeginAllowThreads();
13893 result = (bool)((wxFont const *)arg1)->IsOk();
13894 wxPyEndAllowThreads(__tstate);
13895 if (PyErr_Occurred()) SWIG_fail;
13896 }
13897 {
13898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13899 }
13900 return resultobj;
13901 fail:
13902 return NULL;
13903 }
13904
13905
13906 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13907 PyObject *resultobj = 0;
13908 wxFont *arg1 = (wxFont *) 0 ;
13909 wxFont *arg2 = (wxFont *) 0 ;
13910 bool result;
13911 void *argp1 = 0 ;
13912 int res1 = 0 ;
13913 void *argp2 = 0 ;
13914 int res2 = 0 ;
13915 PyObject * obj0 = 0 ;
13916 PyObject * obj1 = 0 ;
13917 char * kwnames[] = {
13918 (char *) "self",(char *) "other", NULL
13919 };
13920
13921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13923 if (!SWIG_IsOK(res1)) {
13924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13925 }
13926 arg1 = reinterpret_cast< wxFont * >(argp1);
13927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13928 if (!SWIG_IsOK(res2)) {
13929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13930 }
13931 arg2 = reinterpret_cast< wxFont * >(argp2);
13932 {
13933 PyThreadState* __tstate = wxPyBeginAllowThreads();
13934 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13935 wxPyEndAllowThreads(__tstate);
13936 if (PyErr_Occurred()) SWIG_fail;
13937 }
13938 {
13939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13940 }
13941 return resultobj;
13942 fail:
13943 return NULL;
13944 }
13945
13946
13947 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj = 0;
13949 wxFont *arg1 = (wxFont *) 0 ;
13950 wxFont *arg2 = (wxFont *) 0 ;
13951 bool result;
13952 void *argp1 = 0 ;
13953 int res1 = 0 ;
13954 void *argp2 = 0 ;
13955 int res2 = 0 ;
13956 PyObject * obj0 = 0 ;
13957 PyObject * obj1 = 0 ;
13958 char * kwnames[] = {
13959 (char *) "self",(char *) "other", NULL
13960 };
13961
13962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13964 if (!SWIG_IsOK(res1)) {
13965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13966 }
13967 arg1 = reinterpret_cast< wxFont * >(argp1);
13968 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13969 if (!SWIG_IsOK(res2)) {
13970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13971 }
13972 arg2 = reinterpret_cast< wxFont * >(argp2);
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13976 wxPyEndAllowThreads(__tstate);
13977 if (PyErr_Occurred()) SWIG_fail;
13978 }
13979 {
13980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13981 }
13982 return resultobj;
13983 fail:
13984 return NULL;
13985 }
13986
13987
13988 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13989 PyObject *resultobj = 0;
13990 wxFont *arg1 = (wxFont *) 0 ;
13991 int result;
13992 void *argp1 = 0 ;
13993 int res1 = 0 ;
13994 PyObject *swig_obj[1] ;
13995
13996 if (!args) SWIG_fail;
13997 swig_obj[0] = args;
13998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13999 if (!SWIG_IsOK(res1)) {
14000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14001 }
14002 arg1 = reinterpret_cast< wxFont * >(argp1);
14003 {
14004 PyThreadState* __tstate = wxPyBeginAllowThreads();
14005 result = (int)((wxFont const *)arg1)->GetPointSize();
14006 wxPyEndAllowThreads(__tstate);
14007 if (PyErr_Occurred()) SWIG_fail;
14008 }
14009 resultobj = SWIG_From_int(static_cast< int >(result));
14010 return resultobj;
14011 fail:
14012 return NULL;
14013 }
14014
14015
14016 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14017 PyObject *resultobj = 0;
14018 wxFont *arg1 = (wxFont *) 0 ;
14019 wxSize result;
14020 void *argp1 = 0 ;
14021 int res1 = 0 ;
14022 PyObject *swig_obj[1] ;
14023
14024 if (!args) SWIG_fail;
14025 swig_obj[0] = args;
14026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14027 if (!SWIG_IsOK(res1)) {
14028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14029 }
14030 arg1 = reinterpret_cast< wxFont * >(argp1);
14031 {
14032 PyThreadState* __tstate = wxPyBeginAllowThreads();
14033 result = ((wxFont const *)arg1)->GetPixelSize();
14034 wxPyEndAllowThreads(__tstate);
14035 if (PyErr_Occurred()) SWIG_fail;
14036 }
14037 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14038 return resultobj;
14039 fail:
14040 return NULL;
14041 }
14042
14043
14044 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14045 PyObject *resultobj = 0;
14046 wxFont *arg1 = (wxFont *) 0 ;
14047 bool result;
14048 void *argp1 = 0 ;
14049 int res1 = 0 ;
14050 PyObject *swig_obj[1] ;
14051
14052 if (!args) SWIG_fail;
14053 swig_obj[0] = args;
14054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14055 if (!SWIG_IsOK(res1)) {
14056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14057 }
14058 arg1 = reinterpret_cast< wxFont * >(argp1);
14059 {
14060 PyThreadState* __tstate = wxPyBeginAllowThreads();
14061 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14062 wxPyEndAllowThreads(__tstate);
14063 if (PyErr_Occurred()) SWIG_fail;
14064 }
14065 {
14066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14067 }
14068 return resultobj;
14069 fail:
14070 return NULL;
14071 }
14072
14073
14074 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14075 PyObject *resultobj = 0;
14076 wxFont *arg1 = (wxFont *) 0 ;
14077 int result;
14078 void *argp1 = 0 ;
14079 int res1 = 0 ;
14080 PyObject *swig_obj[1] ;
14081
14082 if (!args) SWIG_fail;
14083 swig_obj[0] = args;
14084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14085 if (!SWIG_IsOK(res1)) {
14086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14087 }
14088 arg1 = reinterpret_cast< wxFont * >(argp1);
14089 {
14090 PyThreadState* __tstate = wxPyBeginAllowThreads();
14091 result = (int)((wxFont const *)arg1)->GetFamily();
14092 wxPyEndAllowThreads(__tstate);
14093 if (PyErr_Occurred()) SWIG_fail;
14094 }
14095 resultobj = SWIG_From_int(static_cast< int >(result));
14096 return resultobj;
14097 fail:
14098 return NULL;
14099 }
14100
14101
14102 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14103 PyObject *resultobj = 0;
14104 wxFont *arg1 = (wxFont *) 0 ;
14105 int result;
14106 void *argp1 = 0 ;
14107 int res1 = 0 ;
14108 PyObject *swig_obj[1] ;
14109
14110 if (!args) SWIG_fail;
14111 swig_obj[0] = args;
14112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14113 if (!SWIG_IsOK(res1)) {
14114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14115 }
14116 arg1 = reinterpret_cast< wxFont * >(argp1);
14117 {
14118 PyThreadState* __tstate = wxPyBeginAllowThreads();
14119 result = (int)((wxFont const *)arg1)->GetStyle();
14120 wxPyEndAllowThreads(__tstate);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 resultobj = SWIG_From_int(static_cast< int >(result));
14124 return resultobj;
14125 fail:
14126 return NULL;
14127 }
14128
14129
14130 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14131 PyObject *resultobj = 0;
14132 wxFont *arg1 = (wxFont *) 0 ;
14133 int result;
14134 void *argp1 = 0 ;
14135 int res1 = 0 ;
14136 PyObject *swig_obj[1] ;
14137
14138 if (!args) SWIG_fail;
14139 swig_obj[0] = args;
14140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14141 if (!SWIG_IsOK(res1)) {
14142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14143 }
14144 arg1 = reinterpret_cast< wxFont * >(argp1);
14145 {
14146 PyThreadState* __tstate = wxPyBeginAllowThreads();
14147 result = (int)((wxFont const *)arg1)->GetWeight();
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 resultobj = SWIG_From_int(static_cast< int >(result));
14152 return resultobj;
14153 fail:
14154 return NULL;
14155 }
14156
14157
14158 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14159 PyObject *resultobj = 0;
14160 wxFont *arg1 = (wxFont *) 0 ;
14161 bool result;
14162 void *argp1 = 0 ;
14163 int res1 = 0 ;
14164 PyObject *swig_obj[1] ;
14165
14166 if (!args) SWIG_fail;
14167 swig_obj[0] = args;
14168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14169 if (!SWIG_IsOK(res1)) {
14170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14171 }
14172 arg1 = reinterpret_cast< wxFont * >(argp1);
14173 {
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
14175 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14176 wxPyEndAllowThreads(__tstate);
14177 if (PyErr_Occurred()) SWIG_fail;
14178 }
14179 {
14180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14181 }
14182 return resultobj;
14183 fail:
14184 return NULL;
14185 }
14186
14187
14188 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14189 PyObject *resultobj = 0;
14190 wxFont *arg1 = (wxFont *) 0 ;
14191 wxString result;
14192 void *argp1 = 0 ;
14193 int res1 = 0 ;
14194 PyObject *swig_obj[1] ;
14195
14196 if (!args) SWIG_fail;
14197 swig_obj[0] = args;
14198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14199 if (!SWIG_IsOK(res1)) {
14200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14201 }
14202 arg1 = reinterpret_cast< wxFont * >(argp1);
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 result = ((wxFont const *)arg1)->GetFaceName();
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 {
14210 #if wxUSE_UNICODE
14211 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14212 #else
14213 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14214 #endif
14215 }
14216 return resultobj;
14217 fail:
14218 return NULL;
14219 }
14220
14221
14222 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14223 PyObject *resultobj = 0;
14224 wxFont *arg1 = (wxFont *) 0 ;
14225 wxFontEncoding result;
14226 void *argp1 = 0 ;
14227 int res1 = 0 ;
14228 PyObject *swig_obj[1] ;
14229
14230 if (!args) SWIG_fail;
14231 swig_obj[0] = args;
14232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14233 if (!SWIG_IsOK(res1)) {
14234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14235 }
14236 arg1 = reinterpret_cast< wxFont * >(argp1);
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14240 wxPyEndAllowThreads(__tstate);
14241 if (PyErr_Occurred()) SWIG_fail;
14242 }
14243 resultobj = SWIG_From_int(static_cast< int >(result));
14244 return resultobj;
14245 fail:
14246 return NULL;
14247 }
14248
14249
14250 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14251 PyObject *resultobj = 0;
14252 wxFont *arg1 = (wxFont *) 0 ;
14253 wxNativeFontInfo *result = 0 ;
14254 void *argp1 = 0 ;
14255 int res1 = 0 ;
14256 PyObject *swig_obj[1] ;
14257
14258 if (!args) SWIG_fail;
14259 swig_obj[0] = args;
14260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14261 if (!SWIG_IsOK(res1)) {
14262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14263 }
14264 arg1 = reinterpret_cast< wxFont * >(argp1);
14265 {
14266 PyThreadState* __tstate = wxPyBeginAllowThreads();
14267 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14268 wxPyEndAllowThreads(__tstate);
14269 if (PyErr_Occurred()) SWIG_fail;
14270 }
14271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14272 return resultobj;
14273 fail:
14274 return NULL;
14275 }
14276
14277
14278 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14279 PyObject *resultobj = 0;
14280 wxFont *arg1 = (wxFont *) 0 ;
14281 bool result;
14282 void *argp1 = 0 ;
14283 int res1 = 0 ;
14284 PyObject *swig_obj[1] ;
14285
14286 if (!args) SWIG_fail;
14287 swig_obj[0] = args;
14288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14289 if (!SWIG_IsOK(res1)) {
14290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14291 }
14292 arg1 = reinterpret_cast< wxFont * >(argp1);
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14296 wxPyEndAllowThreads(__tstate);
14297 if (PyErr_Occurred()) SWIG_fail;
14298 }
14299 {
14300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14301 }
14302 return resultobj;
14303 fail:
14304 return NULL;
14305 }
14306
14307
14308 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14309 PyObject *resultobj = 0;
14310 wxFont *arg1 = (wxFont *) 0 ;
14311 wxString result;
14312 void *argp1 = 0 ;
14313 int res1 = 0 ;
14314 PyObject *swig_obj[1] ;
14315
14316 if (!args) SWIG_fail;
14317 swig_obj[0] = args;
14318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14319 if (!SWIG_IsOK(res1)) {
14320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14321 }
14322 arg1 = reinterpret_cast< wxFont * >(argp1);
14323 {
14324 PyThreadState* __tstate = wxPyBeginAllowThreads();
14325 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 {
14330 #if wxUSE_UNICODE
14331 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14332 #else
14333 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14334 #endif
14335 }
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14343 PyObject *resultobj = 0;
14344 wxFont *arg1 = (wxFont *) 0 ;
14345 wxString result;
14346 void *argp1 = 0 ;
14347 int res1 = 0 ;
14348 PyObject *swig_obj[1] ;
14349
14350 if (!args) SWIG_fail;
14351 swig_obj[0] = args;
14352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14353 if (!SWIG_IsOK(res1)) {
14354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14355 }
14356 arg1 = reinterpret_cast< wxFont * >(argp1);
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 {
14364 #if wxUSE_UNICODE
14365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14366 #else
14367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14368 #endif
14369 }
14370 return resultobj;
14371 fail:
14372 return NULL;
14373 }
14374
14375
14376 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14377 PyObject *resultobj = 0;
14378 wxFont *arg1 = (wxFont *) 0 ;
14379 int arg2 ;
14380 void *argp1 = 0 ;
14381 int res1 = 0 ;
14382 int val2 ;
14383 int ecode2 = 0 ;
14384 PyObject * obj0 = 0 ;
14385 PyObject * obj1 = 0 ;
14386 char * kwnames[] = {
14387 (char *) "self",(char *) "pointSize", NULL
14388 };
14389
14390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14392 if (!SWIG_IsOK(res1)) {
14393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14394 }
14395 arg1 = reinterpret_cast< wxFont * >(argp1);
14396 ecode2 = SWIG_AsVal_int(obj1, &val2);
14397 if (!SWIG_IsOK(ecode2)) {
14398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14399 }
14400 arg2 = static_cast< int >(val2);
14401 {
14402 PyThreadState* __tstate = wxPyBeginAllowThreads();
14403 (arg1)->SetPointSize(arg2);
14404 wxPyEndAllowThreads(__tstate);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 }
14407 resultobj = SWIG_Py_Void();
14408 return resultobj;
14409 fail:
14410 return NULL;
14411 }
14412
14413
14414 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14415 PyObject *resultobj = 0;
14416 wxFont *arg1 = (wxFont *) 0 ;
14417 wxSize *arg2 = 0 ;
14418 void *argp1 = 0 ;
14419 int res1 = 0 ;
14420 wxSize temp2 ;
14421 PyObject * obj0 = 0 ;
14422 PyObject * obj1 = 0 ;
14423 char * kwnames[] = {
14424 (char *) "self",(char *) "pixelSize", NULL
14425 };
14426
14427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14429 if (!SWIG_IsOK(res1)) {
14430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14431 }
14432 arg1 = reinterpret_cast< wxFont * >(argp1);
14433 {
14434 arg2 = &temp2;
14435 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14436 }
14437 {
14438 PyThreadState* __tstate = wxPyBeginAllowThreads();
14439 (arg1)->SetPixelSize((wxSize const &)*arg2);
14440 wxPyEndAllowThreads(__tstate);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 }
14443 resultobj = SWIG_Py_Void();
14444 return resultobj;
14445 fail:
14446 return NULL;
14447 }
14448
14449
14450 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14451 PyObject *resultobj = 0;
14452 wxFont *arg1 = (wxFont *) 0 ;
14453 int arg2 ;
14454 void *argp1 = 0 ;
14455 int res1 = 0 ;
14456 int val2 ;
14457 int ecode2 = 0 ;
14458 PyObject * obj0 = 0 ;
14459 PyObject * obj1 = 0 ;
14460 char * kwnames[] = {
14461 (char *) "self",(char *) "family", NULL
14462 };
14463
14464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14466 if (!SWIG_IsOK(res1)) {
14467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14468 }
14469 arg1 = reinterpret_cast< wxFont * >(argp1);
14470 ecode2 = SWIG_AsVal_int(obj1, &val2);
14471 if (!SWIG_IsOK(ecode2)) {
14472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14473 }
14474 arg2 = static_cast< int >(val2);
14475 {
14476 PyThreadState* __tstate = wxPyBeginAllowThreads();
14477 (arg1)->SetFamily(arg2);
14478 wxPyEndAllowThreads(__tstate);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 resultobj = SWIG_Py_Void();
14482 return resultobj;
14483 fail:
14484 return NULL;
14485 }
14486
14487
14488 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14489 PyObject *resultobj = 0;
14490 wxFont *arg1 = (wxFont *) 0 ;
14491 int arg2 ;
14492 void *argp1 = 0 ;
14493 int res1 = 0 ;
14494 int val2 ;
14495 int ecode2 = 0 ;
14496 PyObject * obj0 = 0 ;
14497 PyObject * obj1 = 0 ;
14498 char * kwnames[] = {
14499 (char *) "self",(char *) "style", NULL
14500 };
14501
14502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14504 if (!SWIG_IsOK(res1)) {
14505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14506 }
14507 arg1 = reinterpret_cast< wxFont * >(argp1);
14508 ecode2 = SWIG_AsVal_int(obj1, &val2);
14509 if (!SWIG_IsOK(ecode2)) {
14510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14511 }
14512 arg2 = static_cast< int >(val2);
14513 {
14514 PyThreadState* __tstate = wxPyBeginAllowThreads();
14515 (arg1)->SetStyle(arg2);
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 resultobj = SWIG_Py_Void();
14520 return resultobj;
14521 fail:
14522 return NULL;
14523 }
14524
14525
14526 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14527 PyObject *resultobj = 0;
14528 wxFont *arg1 = (wxFont *) 0 ;
14529 int arg2 ;
14530 void *argp1 = 0 ;
14531 int res1 = 0 ;
14532 int val2 ;
14533 int ecode2 = 0 ;
14534 PyObject * obj0 = 0 ;
14535 PyObject * obj1 = 0 ;
14536 char * kwnames[] = {
14537 (char *) "self",(char *) "weight", NULL
14538 };
14539
14540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14542 if (!SWIG_IsOK(res1)) {
14543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14544 }
14545 arg1 = reinterpret_cast< wxFont * >(argp1);
14546 ecode2 = SWIG_AsVal_int(obj1, &val2);
14547 if (!SWIG_IsOK(ecode2)) {
14548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14549 }
14550 arg2 = static_cast< int >(val2);
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 (arg1)->SetWeight(arg2);
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 resultobj = SWIG_Py_Void();
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj = 0;
14566 wxFont *arg1 = (wxFont *) 0 ;
14567 wxString *arg2 = 0 ;
14568 bool result;
14569 void *argp1 = 0 ;
14570 int res1 = 0 ;
14571 bool temp2 = false ;
14572 PyObject * obj0 = 0 ;
14573 PyObject * obj1 = 0 ;
14574 char * kwnames[] = {
14575 (char *) "self",(char *) "faceName", NULL
14576 };
14577
14578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14580 if (!SWIG_IsOK(res1)) {
14581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14582 }
14583 arg1 = reinterpret_cast< wxFont * >(argp1);
14584 {
14585 arg2 = wxString_in_helper(obj1);
14586 if (arg2 == NULL) SWIG_fail;
14587 temp2 = true;
14588 }
14589 {
14590 PyThreadState* __tstate = wxPyBeginAllowThreads();
14591 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14592 wxPyEndAllowThreads(__tstate);
14593 if (PyErr_Occurred()) SWIG_fail;
14594 }
14595 {
14596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14597 }
14598 {
14599 if (temp2)
14600 delete arg2;
14601 }
14602 return resultobj;
14603 fail:
14604 {
14605 if (temp2)
14606 delete arg2;
14607 }
14608 return NULL;
14609 }
14610
14611
14612 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14613 PyObject *resultobj = 0;
14614 wxFont *arg1 = (wxFont *) 0 ;
14615 bool arg2 ;
14616 void *argp1 = 0 ;
14617 int res1 = 0 ;
14618 bool val2 ;
14619 int ecode2 = 0 ;
14620 PyObject * obj0 = 0 ;
14621 PyObject * obj1 = 0 ;
14622 char * kwnames[] = {
14623 (char *) "self",(char *) "underlined", NULL
14624 };
14625
14626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14628 if (!SWIG_IsOK(res1)) {
14629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14630 }
14631 arg1 = reinterpret_cast< wxFont * >(argp1);
14632 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14633 if (!SWIG_IsOK(ecode2)) {
14634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14635 }
14636 arg2 = static_cast< bool >(val2);
14637 {
14638 PyThreadState* __tstate = wxPyBeginAllowThreads();
14639 (arg1)->SetUnderlined(arg2);
14640 wxPyEndAllowThreads(__tstate);
14641 if (PyErr_Occurred()) SWIG_fail;
14642 }
14643 resultobj = SWIG_Py_Void();
14644 return resultobj;
14645 fail:
14646 return NULL;
14647 }
14648
14649
14650 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14651 PyObject *resultobj = 0;
14652 wxFont *arg1 = (wxFont *) 0 ;
14653 wxFontEncoding arg2 ;
14654 void *argp1 = 0 ;
14655 int res1 = 0 ;
14656 int val2 ;
14657 int ecode2 = 0 ;
14658 PyObject * obj0 = 0 ;
14659 PyObject * obj1 = 0 ;
14660 char * kwnames[] = {
14661 (char *) "self",(char *) "encoding", NULL
14662 };
14663
14664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14666 if (!SWIG_IsOK(res1)) {
14667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14668 }
14669 arg1 = reinterpret_cast< wxFont * >(argp1);
14670 ecode2 = SWIG_AsVal_int(obj1, &val2);
14671 if (!SWIG_IsOK(ecode2)) {
14672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14673 }
14674 arg2 = static_cast< wxFontEncoding >(val2);
14675 {
14676 PyThreadState* __tstate = wxPyBeginAllowThreads();
14677 (arg1)->SetEncoding(arg2);
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 resultobj = SWIG_Py_Void();
14682 return resultobj;
14683 fail:
14684 return NULL;
14685 }
14686
14687
14688 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14689 PyObject *resultobj = 0;
14690 wxFont *arg1 = (wxFont *) 0 ;
14691 wxNativeFontInfo *arg2 = 0 ;
14692 void *argp1 = 0 ;
14693 int res1 = 0 ;
14694 void *argp2 = 0 ;
14695 int res2 = 0 ;
14696 PyObject * obj0 = 0 ;
14697 PyObject * obj1 = 0 ;
14698 char * kwnames[] = {
14699 (char *) "self",(char *) "info", NULL
14700 };
14701
14702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14704 if (!SWIG_IsOK(res1)) {
14705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14706 }
14707 arg1 = reinterpret_cast< wxFont * >(argp1);
14708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14709 if (!SWIG_IsOK(res2)) {
14710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14711 }
14712 if (!argp2) {
14713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14714 }
14715 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14716 {
14717 PyThreadState* __tstate = wxPyBeginAllowThreads();
14718 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 resultobj = SWIG_Py_Void();
14723 return resultobj;
14724 fail:
14725 return NULL;
14726 }
14727
14728
14729 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14730 PyObject *resultobj = 0;
14731 wxFont *arg1 = (wxFont *) 0 ;
14732 wxString *arg2 = 0 ;
14733 bool result;
14734 void *argp1 = 0 ;
14735 int res1 = 0 ;
14736 bool temp2 = false ;
14737 PyObject * obj0 = 0 ;
14738 PyObject * obj1 = 0 ;
14739 char * kwnames[] = {
14740 (char *) "self",(char *) "info", NULL
14741 };
14742
14743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14745 if (!SWIG_IsOK(res1)) {
14746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14747 }
14748 arg1 = reinterpret_cast< wxFont * >(argp1);
14749 {
14750 arg2 = wxString_in_helper(obj1);
14751 if (arg2 == NULL) SWIG_fail;
14752 temp2 = true;
14753 }
14754 {
14755 PyThreadState* __tstate = wxPyBeginAllowThreads();
14756 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14757 wxPyEndAllowThreads(__tstate);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 {
14761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14762 }
14763 {
14764 if (temp2)
14765 delete arg2;
14766 }
14767 return resultobj;
14768 fail:
14769 {
14770 if (temp2)
14771 delete arg2;
14772 }
14773 return NULL;
14774 }
14775
14776
14777 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14778 PyObject *resultobj = 0;
14779 wxFont *arg1 = (wxFont *) 0 ;
14780 wxString *arg2 = 0 ;
14781 bool result;
14782 void *argp1 = 0 ;
14783 int res1 = 0 ;
14784 bool temp2 = false ;
14785 PyObject * obj0 = 0 ;
14786 PyObject * obj1 = 0 ;
14787 char * kwnames[] = {
14788 (char *) "self",(char *) "info", NULL
14789 };
14790
14791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14793 if (!SWIG_IsOK(res1)) {
14794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14795 }
14796 arg1 = reinterpret_cast< wxFont * >(argp1);
14797 {
14798 arg2 = wxString_in_helper(obj1);
14799 if (arg2 == NULL) SWIG_fail;
14800 temp2 = true;
14801 }
14802 {
14803 PyThreadState* __tstate = wxPyBeginAllowThreads();
14804 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14805 wxPyEndAllowThreads(__tstate);
14806 if (PyErr_Occurred()) SWIG_fail;
14807 }
14808 {
14809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14810 }
14811 {
14812 if (temp2)
14813 delete arg2;
14814 }
14815 return resultobj;
14816 fail:
14817 {
14818 if (temp2)
14819 delete arg2;
14820 }
14821 return NULL;
14822 }
14823
14824
14825 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14826 PyObject *resultobj = 0;
14827 wxFont *arg1 = (wxFont *) 0 ;
14828 wxString result;
14829 void *argp1 = 0 ;
14830 int res1 = 0 ;
14831 PyObject *swig_obj[1] ;
14832
14833 if (!args) SWIG_fail;
14834 swig_obj[0] = args;
14835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14836 if (!SWIG_IsOK(res1)) {
14837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14838 }
14839 arg1 = reinterpret_cast< wxFont * >(argp1);
14840 {
14841 PyThreadState* __tstate = wxPyBeginAllowThreads();
14842 result = ((wxFont const *)arg1)->GetFamilyString();
14843 wxPyEndAllowThreads(__tstate);
14844 if (PyErr_Occurred()) SWIG_fail;
14845 }
14846 {
14847 #if wxUSE_UNICODE
14848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14849 #else
14850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14851 #endif
14852 }
14853 return resultobj;
14854 fail:
14855 return NULL;
14856 }
14857
14858
14859 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14860 PyObject *resultobj = 0;
14861 wxFont *arg1 = (wxFont *) 0 ;
14862 wxString result;
14863 void *argp1 = 0 ;
14864 int res1 = 0 ;
14865 PyObject *swig_obj[1] ;
14866
14867 if (!args) SWIG_fail;
14868 swig_obj[0] = args;
14869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14870 if (!SWIG_IsOK(res1)) {
14871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14872 }
14873 arg1 = reinterpret_cast< wxFont * >(argp1);
14874 {
14875 PyThreadState* __tstate = wxPyBeginAllowThreads();
14876 result = ((wxFont const *)arg1)->GetStyleString();
14877 wxPyEndAllowThreads(__tstate);
14878 if (PyErr_Occurred()) SWIG_fail;
14879 }
14880 {
14881 #if wxUSE_UNICODE
14882 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14883 #else
14884 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14885 #endif
14886 }
14887 return resultobj;
14888 fail:
14889 return NULL;
14890 }
14891
14892
14893 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14894 PyObject *resultobj = 0;
14895 wxFont *arg1 = (wxFont *) 0 ;
14896 wxString result;
14897 void *argp1 = 0 ;
14898 int res1 = 0 ;
14899 PyObject *swig_obj[1] ;
14900
14901 if (!args) SWIG_fail;
14902 swig_obj[0] = args;
14903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14904 if (!SWIG_IsOK(res1)) {
14905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14906 }
14907 arg1 = reinterpret_cast< wxFont * >(argp1);
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 result = ((wxFont const *)arg1)->GetWeightString();
14911 wxPyEndAllowThreads(__tstate);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 }
14914 {
14915 #if wxUSE_UNICODE
14916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14917 #else
14918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14919 #endif
14920 }
14921 return resultobj;
14922 fail:
14923 return NULL;
14924 }
14925
14926
14927 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14928 PyObject *resultobj = 0;
14929 wxFont *arg1 = (wxFont *) 0 ;
14930 bool arg2 = (bool) true ;
14931 void *argp1 = 0 ;
14932 int res1 = 0 ;
14933 bool val2 ;
14934 int ecode2 = 0 ;
14935 PyObject * obj0 = 0 ;
14936 PyObject * obj1 = 0 ;
14937 char * kwnames[] = {
14938 (char *) "self",(char *) "no", NULL
14939 };
14940
14941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14943 if (!SWIG_IsOK(res1)) {
14944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14945 }
14946 arg1 = reinterpret_cast< wxFont * >(argp1);
14947 if (obj1) {
14948 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14949 if (!SWIG_IsOK(ecode2)) {
14950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14951 }
14952 arg2 = static_cast< bool >(val2);
14953 }
14954 {
14955 PyThreadState* __tstate = wxPyBeginAllowThreads();
14956 (arg1)->SetNoAntiAliasing(arg2);
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 resultobj = SWIG_Py_Void();
14961 return resultobj;
14962 fail:
14963 return NULL;
14964 }
14965
14966
14967 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14968 PyObject *resultobj = 0;
14969 wxFont *arg1 = (wxFont *) 0 ;
14970 bool result;
14971 void *argp1 = 0 ;
14972 int res1 = 0 ;
14973 PyObject *swig_obj[1] ;
14974
14975 if (!args) SWIG_fail;
14976 swig_obj[0] = args;
14977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14978 if (!SWIG_IsOK(res1)) {
14979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14980 }
14981 arg1 = reinterpret_cast< wxFont * >(argp1);
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 {
14989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14990 }
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14998 PyObject *resultobj = 0;
14999 wxFontEncoding result;
15000
15001 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15002 {
15003 if (!wxPyCheckForApp()) SWIG_fail;
15004 PyThreadState* __tstate = wxPyBeginAllowThreads();
15005 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15006 wxPyEndAllowThreads(__tstate);
15007 if (PyErr_Occurred()) SWIG_fail;
15008 }
15009 resultobj = SWIG_From_int(static_cast< int >(result));
15010 return resultobj;
15011 fail:
15012 return NULL;
15013 }
15014
15015
15016 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15017 PyObject *resultobj = 0;
15018 wxFontEncoding arg1 ;
15019 int val1 ;
15020 int ecode1 = 0 ;
15021 PyObject * obj0 = 0 ;
15022 char * kwnames[] = {
15023 (char *) "encoding", NULL
15024 };
15025
15026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15027 ecode1 = SWIG_AsVal_int(obj0, &val1);
15028 if (!SWIG_IsOK(ecode1)) {
15029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15030 }
15031 arg1 = static_cast< wxFontEncoding >(val1);
15032 {
15033 if (!wxPyCheckForApp()) SWIG_fail;
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 wxFont::SetDefaultEncoding(arg1);
15036 wxPyEndAllowThreads(__tstate);
15037 if (PyErr_Occurred()) SWIG_fail;
15038 }
15039 resultobj = SWIG_Py_Void();
15040 return resultobj;
15041 fail:
15042 return NULL;
15043 }
15044
15045
15046 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15047 PyObject *obj;
15048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15049 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15050 return SWIG_Py_Void();
15051 }
15052
15053 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15054 return SWIG_Python_InitShadowInstance(args);
15055 }
15056
15057 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15058 PyObject *resultobj = 0;
15059 wxPyFontEnumerator *result = 0 ;
15060
15061 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15062 {
15063 if (!wxPyCheckForApp()) SWIG_fail;
15064 PyThreadState* __tstate = wxPyBeginAllowThreads();
15065 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15066 wxPyEndAllowThreads(__tstate);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 }
15069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15070 return resultobj;
15071 fail:
15072 return NULL;
15073 }
15074
15075
15076 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15077 PyObject *resultobj = 0;
15078 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15079 void *argp1 = 0 ;
15080 int res1 = 0 ;
15081 PyObject *swig_obj[1] ;
15082
15083 if (!args) SWIG_fail;
15084 swig_obj[0] = args;
15085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15086 if (!SWIG_IsOK(res1)) {
15087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15088 }
15089 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15090 {
15091 PyThreadState* __tstate = wxPyBeginAllowThreads();
15092 delete arg1;
15093
15094 wxPyEndAllowThreads(__tstate);
15095 if (PyErr_Occurred()) SWIG_fail;
15096 }
15097 resultobj = SWIG_Py_Void();
15098 return resultobj;
15099 fail:
15100 return NULL;
15101 }
15102
15103
15104 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15105 PyObject *resultobj = 0;
15106 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15107 PyObject *arg2 = (PyObject *) 0 ;
15108 PyObject *arg3 = (PyObject *) 0 ;
15109 bool arg4 ;
15110 void *argp1 = 0 ;
15111 int res1 = 0 ;
15112 bool val4 ;
15113 int ecode4 = 0 ;
15114 PyObject * obj0 = 0 ;
15115 PyObject * obj1 = 0 ;
15116 PyObject * obj2 = 0 ;
15117 PyObject * obj3 = 0 ;
15118 char * kwnames[] = {
15119 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15120 };
15121
15122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15124 if (!SWIG_IsOK(res1)) {
15125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15126 }
15127 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15128 arg2 = obj1;
15129 arg3 = obj2;
15130 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15131 if (!SWIG_IsOK(ecode4)) {
15132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15133 }
15134 arg4 = static_cast< bool >(val4);
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
15137 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 resultobj = SWIG_Py_Void();
15142 return resultobj;
15143 fail:
15144 return NULL;
15145 }
15146
15147
15148 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj = 0;
15150 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15151 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15152 bool arg3 = (bool) false ;
15153 bool result;
15154 void *argp1 = 0 ;
15155 int res1 = 0 ;
15156 int val2 ;
15157 int ecode2 = 0 ;
15158 bool val3 ;
15159 int ecode3 = 0 ;
15160 PyObject * obj0 = 0 ;
15161 PyObject * obj1 = 0 ;
15162 PyObject * obj2 = 0 ;
15163 char * kwnames[] = {
15164 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15165 };
15166
15167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15169 if (!SWIG_IsOK(res1)) {
15170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15171 }
15172 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15173 if (obj1) {
15174 ecode2 = SWIG_AsVal_int(obj1, &val2);
15175 if (!SWIG_IsOK(ecode2)) {
15176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15177 }
15178 arg2 = static_cast< wxFontEncoding >(val2);
15179 }
15180 if (obj2) {
15181 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15182 if (!SWIG_IsOK(ecode3)) {
15183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15184 }
15185 arg3 = static_cast< bool >(val3);
15186 }
15187 {
15188 PyThreadState* __tstate = wxPyBeginAllowThreads();
15189 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15190 wxPyEndAllowThreads(__tstate);
15191 if (PyErr_Occurred()) SWIG_fail;
15192 }
15193 {
15194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15195 }
15196 return resultobj;
15197 fail:
15198 return NULL;
15199 }
15200
15201
15202 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15203 PyObject *resultobj = 0;
15204 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15205 wxString const &arg2_defvalue = wxPyEmptyString ;
15206 wxString *arg2 = (wxString *) &arg2_defvalue ;
15207 bool result;
15208 void *argp1 = 0 ;
15209 int res1 = 0 ;
15210 bool temp2 = false ;
15211 PyObject * obj0 = 0 ;
15212 PyObject * obj1 = 0 ;
15213 char * kwnames[] = {
15214 (char *) "self",(char *) "facename", NULL
15215 };
15216
15217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15219 if (!SWIG_IsOK(res1)) {
15220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15221 }
15222 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15223 if (obj1) {
15224 {
15225 arg2 = wxString_in_helper(obj1);
15226 if (arg2 == NULL) SWIG_fail;
15227 temp2 = true;
15228 }
15229 }
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 {
15237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15238 }
15239 {
15240 if (temp2)
15241 delete arg2;
15242 }
15243 return resultobj;
15244 fail:
15245 {
15246 if (temp2)
15247 delete arg2;
15248 }
15249 return NULL;
15250 }
15251
15252
15253 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15254 PyObject *resultobj = 0;
15255 PyObject *result = 0 ;
15256
15257 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15258 {
15259 PyThreadState* __tstate = wxPyBeginAllowThreads();
15260 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15261 wxPyEndAllowThreads(__tstate);
15262 if (PyErr_Occurred()) SWIG_fail;
15263 }
15264 resultobj = result;
15265 return resultobj;
15266 fail:
15267 return NULL;
15268 }
15269
15270
15271 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15272 PyObject *resultobj = 0;
15273 PyObject *result = 0 ;
15274
15275 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15276 {
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15279 wxPyEndAllowThreads(__tstate);
15280 if (PyErr_Occurred()) SWIG_fail;
15281 }
15282 resultobj = result;
15283 return resultobj;
15284 fail:
15285 return NULL;
15286 }
15287
15288
15289 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15290 PyObject *resultobj = 0;
15291 wxString *arg1 = 0 ;
15292 bool result;
15293 bool temp1 = false ;
15294 PyObject * obj0 = 0 ;
15295 char * kwnames[] = {
15296 (char *) "str", NULL
15297 };
15298
15299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15300 {
15301 arg1 = wxString_in_helper(obj0);
15302 if (arg1 == NULL) SWIG_fail;
15303 temp1 = true;
15304 }
15305 {
15306 PyThreadState* __tstate = wxPyBeginAllowThreads();
15307 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15308 wxPyEndAllowThreads(__tstate);
15309 if (PyErr_Occurred()) SWIG_fail;
15310 }
15311 {
15312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15313 }
15314 {
15315 if (temp1)
15316 delete arg1;
15317 }
15318 return resultobj;
15319 fail:
15320 {
15321 if (temp1)
15322 delete arg1;
15323 }
15324 return NULL;
15325 }
15326
15327
15328 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15329 PyObject *obj;
15330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15331 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15332 return SWIG_Py_Void();
15333 }
15334
15335 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15336 return SWIG_Python_InitShadowInstance(args);
15337 }
15338
15339 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15340 PyObject *resultobj = 0;
15341 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15342 int arg2 ;
15343 void *argp1 = 0 ;
15344 int res1 = 0 ;
15345 int val2 ;
15346 int ecode2 = 0 ;
15347 PyObject *swig_obj[2] ;
15348
15349 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15351 if (!SWIG_IsOK(res1)) {
15352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15353 }
15354 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15355 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15356 if (!SWIG_IsOK(ecode2)) {
15357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15358 }
15359 arg2 = static_cast< int >(val2);
15360 if (arg1) (arg1)->Language = arg2;
15361
15362 resultobj = SWIG_Py_Void();
15363 return resultobj;
15364 fail:
15365 return NULL;
15366 }
15367
15368
15369 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15370 PyObject *resultobj = 0;
15371 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15372 int result;
15373 void *argp1 = 0 ;
15374 int res1 = 0 ;
15375 PyObject *swig_obj[1] ;
15376
15377 if (!args) SWIG_fail;
15378 swig_obj[0] = args;
15379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15380 if (!SWIG_IsOK(res1)) {
15381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15382 }
15383 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15384 result = (int) ((arg1)->Language);
15385 resultobj = SWIG_From_int(static_cast< int >(result));
15386 return resultobj;
15387 fail:
15388 return NULL;
15389 }
15390
15391
15392 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15393 PyObject *resultobj = 0;
15394 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15395 wxString *arg2 = (wxString *) 0 ;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 bool temp2 = false ;
15399 PyObject *swig_obj[2] ;
15400
15401 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15403 if (!SWIG_IsOK(res1)) {
15404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15405 }
15406 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15407 {
15408 arg2 = wxString_in_helper(swig_obj[1]);
15409 if (arg2 == NULL) SWIG_fail;
15410 temp2 = true;
15411 }
15412 if (arg1) (arg1)->CanonicalName = *arg2;
15413
15414 resultobj = SWIG_Py_Void();
15415 {
15416 if (temp2)
15417 delete arg2;
15418 }
15419 return resultobj;
15420 fail:
15421 {
15422 if (temp2)
15423 delete arg2;
15424 }
15425 return NULL;
15426 }
15427
15428
15429 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15430 PyObject *resultobj = 0;
15431 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15432 wxString *result = 0 ;
15433 void *argp1 = 0 ;
15434 int res1 = 0 ;
15435 PyObject *swig_obj[1] ;
15436
15437 if (!args) SWIG_fail;
15438 swig_obj[0] = args;
15439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15440 if (!SWIG_IsOK(res1)) {
15441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15442 }
15443 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15444 result = (wxString *)& ((arg1)->CanonicalName);
15445 {
15446 #if wxUSE_UNICODE
15447 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15448 #else
15449 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15450 #endif
15451 }
15452 return resultobj;
15453 fail:
15454 return NULL;
15455 }
15456
15457
15458 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15459 PyObject *resultobj = 0;
15460 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15461 wxString *arg2 = (wxString *) 0 ;
15462 void *argp1 = 0 ;
15463 int res1 = 0 ;
15464 bool temp2 = false ;
15465 PyObject *swig_obj[2] ;
15466
15467 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15469 if (!SWIG_IsOK(res1)) {
15470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15471 }
15472 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15473 {
15474 arg2 = wxString_in_helper(swig_obj[1]);
15475 if (arg2 == NULL) SWIG_fail;
15476 temp2 = true;
15477 }
15478 if (arg1) (arg1)->Description = *arg2;
15479
15480 resultobj = SWIG_Py_Void();
15481 {
15482 if (temp2)
15483 delete arg2;
15484 }
15485 return resultobj;
15486 fail:
15487 {
15488 if (temp2)
15489 delete arg2;
15490 }
15491 return NULL;
15492 }
15493
15494
15495 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15496 PyObject *resultobj = 0;
15497 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15498 wxString *result = 0 ;
15499 void *argp1 = 0 ;
15500 int res1 = 0 ;
15501 PyObject *swig_obj[1] ;
15502
15503 if (!args) SWIG_fail;
15504 swig_obj[0] = args;
15505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15506 if (!SWIG_IsOK(res1)) {
15507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15508 }
15509 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15510 result = (wxString *)& ((arg1)->Description);
15511 {
15512 #if wxUSE_UNICODE
15513 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15514 #else
15515 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15516 #endif
15517 }
15518 return resultobj;
15519 fail:
15520 return NULL;
15521 }
15522
15523
15524 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15525 PyObject *obj;
15526 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15527 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15528 return SWIG_Py_Void();
15529 }
15530
15531 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15532 PyObject *resultobj = 0;
15533 int arg1 = (int) -1 ;
15534 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15535 wxLocale *result = 0 ;
15536 int val1 ;
15537 int ecode1 = 0 ;
15538 int val2 ;
15539 int ecode2 = 0 ;
15540 PyObject * obj0 = 0 ;
15541 PyObject * obj1 = 0 ;
15542 char * kwnames[] = {
15543 (char *) "language",(char *) "flags", NULL
15544 };
15545
15546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15547 if (obj0) {
15548 ecode1 = SWIG_AsVal_int(obj0, &val1);
15549 if (!SWIG_IsOK(ecode1)) {
15550 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15551 }
15552 arg1 = static_cast< int >(val1);
15553 }
15554 if (obj1) {
15555 ecode2 = SWIG_AsVal_int(obj1, &val2);
15556 if (!SWIG_IsOK(ecode2)) {
15557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15558 }
15559 arg2 = static_cast< int >(val2);
15560 }
15561 {
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 result = (wxLocale *)new_wxLocale(arg1,arg2);
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15568 return resultobj;
15569 fail:
15570 return NULL;
15571 }
15572
15573
15574 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15575 PyObject *resultobj = 0;
15576 wxLocale *arg1 = (wxLocale *) 0 ;
15577 void *argp1 = 0 ;
15578 int res1 = 0 ;
15579 PyObject *swig_obj[1] ;
15580
15581 if (!args) SWIG_fail;
15582 swig_obj[0] = args;
15583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15584 if (!SWIG_IsOK(res1)) {
15585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15586 }
15587 arg1 = reinterpret_cast< wxLocale * >(argp1);
15588 {
15589 PyThreadState* __tstate = wxPyBeginAllowThreads();
15590 delete arg1;
15591
15592 wxPyEndAllowThreads(__tstate);
15593 if (PyErr_Occurred()) SWIG_fail;
15594 }
15595 resultobj = SWIG_Py_Void();
15596 return resultobj;
15597 fail:
15598 return NULL;
15599 }
15600
15601
15602 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15603 PyObject *resultobj = 0;
15604 wxLocale *arg1 = (wxLocale *) 0 ;
15605 wxString *arg2 = 0 ;
15606 wxString const &arg3_defvalue = wxPyEmptyString ;
15607 wxString *arg3 = (wxString *) &arg3_defvalue ;
15608 wxString const &arg4_defvalue = wxPyEmptyString ;
15609 wxString *arg4 = (wxString *) &arg4_defvalue ;
15610 bool arg5 = (bool) true ;
15611 bool arg6 = (bool) false ;
15612 bool result;
15613 void *argp1 = 0 ;
15614 int res1 = 0 ;
15615 bool temp2 = false ;
15616 bool temp3 = false ;
15617 bool temp4 = false ;
15618 bool val5 ;
15619 int ecode5 = 0 ;
15620 bool val6 ;
15621 int ecode6 = 0 ;
15622 PyObject * obj0 = 0 ;
15623 PyObject * obj1 = 0 ;
15624 PyObject * obj2 = 0 ;
15625 PyObject * obj3 = 0 ;
15626 PyObject * obj4 = 0 ;
15627 PyObject * obj5 = 0 ;
15628 char * kwnames[] = {
15629 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15630 };
15631
15632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15634 if (!SWIG_IsOK(res1)) {
15635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15636 }
15637 arg1 = reinterpret_cast< wxLocale * >(argp1);
15638 {
15639 arg2 = wxString_in_helper(obj1);
15640 if (arg2 == NULL) SWIG_fail;
15641 temp2 = true;
15642 }
15643 if (obj2) {
15644 {
15645 arg3 = wxString_in_helper(obj2);
15646 if (arg3 == NULL) SWIG_fail;
15647 temp3 = true;
15648 }
15649 }
15650 if (obj3) {
15651 {
15652 arg4 = wxString_in_helper(obj3);
15653 if (arg4 == NULL) SWIG_fail;
15654 temp4 = true;
15655 }
15656 }
15657 if (obj4) {
15658 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15659 if (!SWIG_IsOK(ecode5)) {
15660 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15661 }
15662 arg5 = static_cast< bool >(val5);
15663 }
15664 if (obj5) {
15665 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15666 if (!SWIG_IsOK(ecode6)) {
15667 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15668 }
15669 arg6 = static_cast< bool >(val6);
15670 }
15671 {
15672 PyThreadState* __tstate = wxPyBeginAllowThreads();
15673 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15674 wxPyEndAllowThreads(__tstate);
15675 if (PyErr_Occurred()) SWIG_fail;
15676 }
15677 {
15678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15679 }
15680 {
15681 if (temp2)
15682 delete arg2;
15683 }
15684 {
15685 if (temp3)
15686 delete arg3;
15687 }
15688 {
15689 if (temp4)
15690 delete arg4;
15691 }
15692 return resultobj;
15693 fail:
15694 {
15695 if (temp2)
15696 delete arg2;
15697 }
15698 {
15699 if (temp3)
15700 delete arg3;
15701 }
15702 {
15703 if (temp4)
15704 delete arg4;
15705 }
15706 return NULL;
15707 }
15708
15709
15710 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15711 PyObject *resultobj = 0;
15712 wxLocale *arg1 = (wxLocale *) 0 ;
15713 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15714 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15715 bool result;
15716 void *argp1 = 0 ;
15717 int res1 = 0 ;
15718 int val2 ;
15719 int ecode2 = 0 ;
15720 int val3 ;
15721 int ecode3 = 0 ;
15722 PyObject * obj0 = 0 ;
15723 PyObject * obj1 = 0 ;
15724 PyObject * obj2 = 0 ;
15725 char * kwnames[] = {
15726 (char *) "self",(char *) "language",(char *) "flags", NULL
15727 };
15728
15729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15731 if (!SWIG_IsOK(res1)) {
15732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15733 }
15734 arg1 = reinterpret_cast< wxLocale * >(argp1);
15735 if (obj1) {
15736 ecode2 = SWIG_AsVal_int(obj1, &val2);
15737 if (!SWIG_IsOK(ecode2)) {
15738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15739 }
15740 arg2 = static_cast< int >(val2);
15741 }
15742 if (obj2) {
15743 ecode3 = SWIG_AsVal_int(obj2, &val3);
15744 if (!SWIG_IsOK(ecode3)) {
15745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15746 }
15747 arg3 = static_cast< int >(val3);
15748 }
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 {
15756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15757 }
15758 return resultobj;
15759 fail:
15760 return NULL;
15761 }
15762
15763
15764 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15765 PyObject *resultobj = 0;
15766 int result;
15767
15768 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15769 {
15770 PyThreadState* __tstate = wxPyBeginAllowThreads();
15771 result = (int)wxLocale::GetSystemLanguage();
15772 wxPyEndAllowThreads(__tstate);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 resultobj = SWIG_From_int(static_cast< int >(result));
15776 return resultobj;
15777 fail:
15778 return NULL;
15779 }
15780
15781
15782 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15783 PyObject *resultobj = 0;
15784 wxFontEncoding result;
15785
15786 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15787 {
15788 PyThreadState* __tstate = wxPyBeginAllowThreads();
15789 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15790 wxPyEndAllowThreads(__tstate);
15791 if (PyErr_Occurred()) SWIG_fail;
15792 }
15793 resultobj = SWIG_From_int(static_cast< int >(result));
15794 return resultobj;
15795 fail:
15796 return NULL;
15797 }
15798
15799
15800 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15801 PyObject *resultobj = 0;
15802 wxString result;
15803
15804 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15805 {
15806 PyThreadState* __tstate = wxPyBeginAllowThreads();
15807 result = wxLocale::GetSystemEncodingName();
15808 wxPyEndAllowThreads(__tstate);
15809 if (PyErr_Occurred()) SWIG_fail;
15810 }
15811 {
15812 #if wxUSE_UNICODE
15813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15814 #else
15815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15816 #endif
15817 }
15818 return resultobj;
15819 fail:
15820 return NULL;
15821 }
15822
15823
15824 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15825 PyObject *resultobj = 0;
15826 wxLocale *arg1 = (wxLocale *) 0 ;
15827 bool result;
15828 void *argp1 = 0 ;
15829 int res1 = 0 ;
15830 PyObject *swig_obj[1] ;
15831
15832 if (!args) SWIG_fail;
15833 swig_obj[0] = args;
15834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15835 if (!SWIG_IsOK(res1)) {
15836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15837 }
15838 arg1 = reinterpret_cast< wxLocale * >(argp1);
15839 {
15840 PyThreadState* __tstate = wxPyBeginAllowThreads();
15841 result = (bool)((wxLocale const *)arg1)->IsOk();
15842 wxPyEndAllowThreads(__tstate);
15843 if (PyErr_Occurred()) SWIG_fail;
15844 }
15845 {
15846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15847 }
15848 return resultobj;
15849 fail:
15850 return NULL;
15851 }
15852
15853
15854 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15855 PyObject *resultobj = 0;
15856 wxLocale *arg1 = (wxLocale *) 0 ;
15857 wxString result;
15858 void *argp1 = 0 ;
15859 int res1 = 0 ;
15860 PyObject *swig_obj[1] ;
15861
15862 if (!args) SWIG_fail;
15863 swig_obj[0] = args;
15864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15865 if (!SWIG_IsOK(res1)) {
15866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15867 }
15868 arg1 = reinterpret_cast< wxLocale * >(argp1);
15869 {
15870 PyThreadState* __tstate = wxPyBeginAllowThreads();
15871 result = ((wxLocale const *)arg1)->GetLocale();
15872 wxPyEndAllowThreads(__tstate);
15873 if (PyErr_Occurred()) SWIG_fail;
15874 }
15875 {
15876 #if wxUSE_UNICODE
15877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15878 #else
15879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15880 #endif
15881 }
15882 return resultobj;
15883 fail:
15884 return NULL;
15885 }
15886
15887
15888 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15889 PyObject *resultobj = 0;
15890 wxLocale *arg1 = (wxLocale *) 0 ;
15891 int result;
15892 void *argp1 = 0 ;
15893 int res1 = 0 ;
15894 PyObject *swig_obj[1] ;
15895
15896 if (!args) SWIG_fail;
15897 swig_obj[0] = args;
15898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15899 if (!SWIG_IsOK(res1)) {
15900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15901 }
15902 arg1 = reinterpret_cast< wxLocale * >(argp1);
15903 {
15904 PyThreadState* __tstate = wxPyBeginAllowThreads();
15905 result = (int)((wxLocale const *)arg1)->GetLanguage();
15906 wxPyEndAllowThreads(__tstate);
15907 if (PyErr_Occurred()) SWIG_fail;
15908 }
15909 resultobj = SWIG_From_int(static_cast< int >(result));
15910 return resultobj;
15911 fail:
15912 return NULL;
15913 }
15914
15915
15916 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15917 PyObject *resultobj = 0;
15918 wxLocale *arg1 = (wxLocale *) 0 ;
15919 wxString result;
15920 void *argp1 = 0 ;
15921 int res1 = 0 ;
15922 PyObject *swig_obj[1] ;
15923
15924 if (!args) SWIG_fail;
15925 swig_obj[0] = args;
15926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15927 if (!SWIG_IsOK(res1)) {
15928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15929 }
15930 arg1 = reinterpret_cast< wxLocale * >(argp1);
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 result = ((wxLocale const *)arg1)->GetSysName();
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 {
15938 #if wxUSE_UNICODE
15939 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15940 #else
15941 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15942 #endif
15943 }
15944 return resultobj;
15945 fail:
15946 return NULL;
15947 }
15948
15949
15950 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15951 PyObject *resultobj = 0;
15952 wxLocale *arg1 = (wxLocale *) 0 ;
15953 wxString result;
15954 void *argp1 = 0 ;
15955 int res1 = 0 ;
15956 PyObject *swig_obj[1] ;
15957
15958 if (!args) SWIG_fail;
15959 swig_obj[0] = args;
15960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15961 if (!SWIG_IsOK(res1)) {
15962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15963 }
15964 arg1 = reinterpret_cast< wxLocale * >(argp1);
15965 {
15966 PyThreadState* __tstate = wxPyBeginAllowThreads();
15967 result = ((wxLocale const *)arg1)->GetCanonicalName();
15968 wxPyEndAllowThreads(__tstate);
15969 if (PyErr_Occurred()) SWIG_fail;
15970 }
15971 {
15972 #if wxUSE_UNICODE
15973 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15974 #else
15975 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15976 #endif
15977 }
15978 return resultobj;
15979 fail:
15980 return NULL;
15981 }
15982
15983
15984 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15985 PyObject *resultobj = 0;
15986 wxString *arg1 = 0 ;
15987 bool temp1 = false ;
15988 PyObject * obj0 = 0 ;
15989 char * kwnames[] = {
15990 (char *) "prefix", NULL
15991 };
15992
15993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15994 {
15995 arg1 = wxString_in_helper(obj0);
15996 if (arg1 == NULL) SWIG_fail;
15997 temp1 = true;
15998 }
15999 {
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16002 wxPyEndAllowThreads(__tstate);
16003 if (PyErr_Occurred()) SWIG_fail;
16004 }
16005 resultobj = SWIG_Py_Void();
16006 {
16007 if (temp1)
16008 delete arg1;
16009 }
16010 return resultobj;
16011 fail:
16012 {
16013 if (temp1)
16014 delete arg1;
16015 }
16016 return NULL;
16017 }
16018
16019
16020 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj = 0;
16022 wxLocale *arg1 = (wxLocale *) 0 ;
16023 wxString *arg2 = 0 ;
16024 bool result;
16025 void *argp1 = 0 ;
16026 int res1 = 0 ;
16027 bool temp2 = false ;
16028 PyObject * obj0 = 0 ;
16029 PyObject * obj1 = 0 ;
16030 char * kwnames[] = {
16031 (char *) "self",(char *) "szDomain", NULL
16032 };
16033
16034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16036 if (!SWIG_IsOK(res1)) {
16037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16038 }
16039 arg1 = reinterpret_cast< wxLocale * >(argp1);
16040 {
16041 arg2 = wxString_in_helper(obj1);
16042 if (arg2 == NULL) SWIG_fail;
16043 temp2 = true;
16044 }
16045 {
16046 PyThreadState* __tstate = wxPyBeginAllowThreads();
16047 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16048 wxPyEndAllowThreads(__tstate);
16049 if (PyErr_Occurred()) SWIG_fail;
16050 }
16051 {
16052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16053 }
16054 {
16055 if (temp2)
16056 delete arg2;
16057 }
16058 return resultobj;
16059 fail:
16060 {
16061 if (temp2)
16062 delete arg2;
16063 }
16064 return NULL;
16065 }
16066
16067
16068 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16069 PyObject *resultobj = 0;
16070 int arg1 ;
16071 bool result;
16072 int val1 ;
16073 int ecode1 = 0 ;
16074 PyObject * obj0 = 0 ;
16075 char * kwnames[] = {
16076 (char *) "lang", NULL
16077 };
16078
16079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16080 ecode1 = SWIG_AsVal_int(obj0, &val1);
16081 if (!SWIG_IsOK(ecode1)) {
16082 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16083 }
16084 arg1 = static_cast< int >(val1);
16085 {
16086 PyThreadState* __tstate = wxPyBeginAllowThreads();
16087 result = (bool)wxLocale::IsAvailable(arg1);
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
16091 {
16092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16093 }
16094 return resultobj;
16095 fail:
16096 return NULL;
16097 }
16098
16099
16100 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16101 PyObject *resultobj = 0;
16102 wxLocale *arg1 = (wxLocale *) 0 ;
16103 wxString *arg2 = 0 ;
16104 bool result;
16105 void *argp1 = 0 ;
16106 int res1 = 0 ;
16107 bool temp2 = false ;
16108 PyObject * obj0 = 0 ;
16109 PyObject * obj1 = 0 ;
16110 char * kwnames[] = {
16111 (char *) "self",(char *) "szDomain", NULL
16112 };
16113
16114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16116 if (!SWIG_IsOK(res1)) {
16117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16118 }
16119 arg1 = reinterpret_cast< wxLocale * >(argp1);
16120 {
16121 arg2 = wxString_in_helper(obj1);
16122 if (arg2 == NULL) SWIG_fail;
16123 temp2 = true;
16124 }
16125 {
16126 PyThreadState* __tstate = wxPyBeginAllowThreads();
16127 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 {
16132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16133 }
16134 {
16135 if (temp2)
16136 delete arg2;
16137 }
16138 return resultobj;
16139 fail:
16140 {
16141 if (temp2)
16142 delete arg2;
16143 }
16144 return NULL;
16145 }
16146
16147
16148 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16149 PyObject *resultobj = 0;
16150 int arg1 ;
16151 wxLanguageInfo *result = 0 ;
16152 int val1 ;
16153 int ecode1 = 0 ;
16154 PyObject * obj0 = 0 ;
16155 char * kwnames[] = {
16156 (char *) "lang", NULL
16157 };
16158
16159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16160 ecode1 = SWIG_AsVal_int(obj0, &val1);
16161 if (!SWIG_IsOK(ecode1)) {
16162 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16163 }
16164 arg1 = static_cast< int >(val1);
16165 {
16166 PyThreadState* __tstate = wxPyBeginAllowThreads();
16167 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16168 wxPyEndAllowThreads(__tstate);
16169 if (PyErr_Occurred()) SWIG_fail;
16170 }
16171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16172 return resultobj;
16173 fail:
16174 return NULL;
16175 }
16176
16177
16178 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16179 PyObject *resultobj = 0;
16180 int arg1 ;
16181 wxString result;
16182 int val1 ;
16183 int ecode1 = 0 ;
16184 PyObject * obj0 = 0 ;
16185 char * kwnames[] = {
16186 (char *) "lang", NULL
16187 };
16188
16189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16190 ecode1 = SWIG_AsVal_int(obj0, &val1);
16191 if (!SWIG_IsOK(ecode1)) {
16192 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16193 }
16194 arg1 = static_cast< int >(val1);
16195 {
16196 PyThreadState* __tstate = wxPyBeginAllowThreads();
16197 result = wxLocale::GetLanguageName(arg1);
16198 wxPyEndAllowThreads(__tstate);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 }
16201 {
16202 #if wxUSE_UNICODE
16203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16204 #else
16205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16206 #endif
16207 }
16208 return resultobj;
16209 fail:
16210 return NULL;
16211 }
16212
16213
16214 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16215 PyObject *resultobj = 0;
16216 wxString *arg1 = 0 ;
16217 wxLanguageInfo *result = 0 ;
16218 bool temp1 = false ;
16219 PyObject * obj0 = 0 ;
16220 char * kwnames[] = {
16221 (char *) "locale", NULL
16222 };
16223
16224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16225 {
16226 arg1 = wxString_in_helper(obj0);
16227 if (arg1 == NULL) SWIG_fail;
16228 temp1 = true;
16229 }
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16233 wxPyEndAllowThreads(__tstate);
16234 if (PyErr_Occurred()) SWIG_fail;
16235 }
16236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16237 {
16238 if (temp1)
16239 delete arg1;
16240 }
16241 return resultobj;
16242 fail:
16243 {
16244 if (temp1)
16245 delete arg1;
16246 }
16247 return NULL;
16248 }
16249
16250
16251 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16252 PyObject *resultobj = 0;
16253 wxLanguageInfo *arg1 = 0 ;
16254 void *argp1 = 0 ;
16255 int res1 = 0 ;
16256 PyObject * obj0 = 0 ;
16257 char * kwnames[] = {
16258 (char *) "info", NULL
16259 };
16260
16261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16262 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16263 if (!SWIG_IsOK(res1)) {
16264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16265 }
16266 if (!argp1) {
16267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16268 }
16269 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16270 {
16271 PyThreadState* __tstate = wxPyBeginAllowThreads();
16272 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16273 wxPyEndAllowThreads(__tstate);
16274 if (PyErr_Occurred()) SWIG_fail;
16275 }
16276 resultobj = SWIG_Py_Void();
16277 return resultobj;
16278 fail:
16279 return NULL;
16280 }
16281
16282
16283 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16284 PyObject *resultobj = 0;
16285 wxLocale *arg1 = (wxLocale *) 0 ;
16286 wxString *arg2 = 0 ;
16287 wxString const &arg3_defvalue = wxPyEmptyString ;
16288 wxString *arg3 = (wxString *) &arg3_defvalue ;
16289 wxString result;
16290 void *argp1 = 0 ;
16291 int res1 = 0 ;
16292 bool temp2 = false ;
16293 bool temp3 = false ;
16294 PyObject * obj0 = 0 ;
16295 PyObject * obj1 = 0 ;
16296 PyObject * obj2 = 0 ;
16297 char * kwnames[] = {
16298 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16299 };
16300
16301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16303 if (!SWIG_IsOK(res1)) {
16304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16305 }
16306 arg1 = reinterpret_cast< wxLocale * >(argp1);
16307 {
16308 arg2 = wxString_in_helper(obj1);
16309 if (arg2 == NULL) SWIG_fail;
16310 temp2 = true;
16311 }
16312 if (obj2) {
16313 {
16314 arg3 = wxString_in_helper(obj2);
16315 if (arg3 == NULL) SWIG_fail;
16316 temp3 = true;
16317 }
16318 }
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 {
16326 #if wxUSE_UNICODE
16327 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16328 #else
16329 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16330 #endif
16331 }
16332 {
16333 if (temp2)
16334 delete arg2;
16335 }
16336 {
16337 if (temp3)
16338 delete arg3;
16339 }
16340 return resultobj;
16341 fail:
16342 {
16343 if (temp2)
16344 delete arg2;
16345 }
16346 {
16347 if (temp3)
16348 delete arg3;
16349 }
16350 return NULL;
16351 }
16352
16353
16354 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16355 PyObject *resultobj = 0;
16356 wxLocale *arg1 = (wxLocale *) 0 ;
16357 wxString *result = 0 ;
16358 void *argp1 = 0 ;
16359 int res1 = 0 ;
16360 PyObject *swig_obj[1] ;
16361
16362 if (!args) SWIG_fail;
16363 swig_obj[0] = args;
16364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16365 if (!SWIG_IsOK(res1)) {
16366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16367 }
16368 arg1 = reinterpret_cast< wxLocale * >(argp1);
16369 {
16370 PyThreadState* __tstate = wxPyBeginAllowThreads();
16371 {
16372 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16373 result = (wxString *) &_result_ref;
16374 }
16375 wxPyEndAllowThreads(__tstate);
16376 if (PyErr_Occurred()) SWIG_fail;
16377 }
16378 {
16379 #if wxUSE_UNICODE
16380 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16381 #else
16382 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16383 #endif
16384 }
16385 return resultobj;
16386 fail:
16387 return NULL;
16388 }
16389
16390
16391 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16392 PyObject *obj;
16393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16394 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16395 return SWIG_Py_Void();
16396 }
16397
16398 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16399 return SWIG_Python_InitShadowInstance(args);
16400 }
16401
16402 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj = 0;
16404 int arg1 = (int) -1 ;
16405 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16406 wxPyLocale *result = 0 ;
16407 int val1 ;
16408 int ecode1 = 0 ;
16409 int val2 ;
16410 int ecode2 = 0 ;
16411 PyObject * obj0 = 0 ;
16412 PyObject * obj1 = 0 ;
16413 char * kwnames[] = {
16414 (char *) "language",(char *) "flags", NULL
16415 };
16416
16417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16418 if (obj0) {
16419 ecode1 = SWIG_AsVal_int(obj0, &val1);
16420 if (!SWIG_IsOK(ecode1)) {
16421 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16422 }
16423 arg1 = static_cast< int >(val1);
16424 }
16425 if (obj1) {
16426 ecode2 = SWIG_AsVal_int(obj1, &val2);
16427 if (!SWIG_IsOK(ecode2)) {
16428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16429 }
16430 arg2 = static_cast< int >(val2);
16431 }
16432 {
16433 PyThreadState* __tstate = wxPyBeginAllowThreads();
16434 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16435 wxPyEndAllowThreads(__tstate);
16436 if (PyErr_Occurred()) SWIG_fail;
16437 }
16438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16439 return resultobj;
16440 fail:
16441 return NULL;
16442 }
16443
16444
16445 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16446 PyObject *resultobj = 0;
16447 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16448 void *argp1 = 0 ;
16449 int res1 = 0 ;
16450 PyObject *swig_obj[1] ;
16451
16452 if (!args) SWIG_fail;
16453 swig_obj[0] = args;
16454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16455 if (!SWIG_IsOK(res1)) {
16456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16457 }
16458 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16459 {
16460 PyThreadState* __tstate = wxPyBeginAllowThreads();
16461 delete arg1;
16462
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 resultobj = SWIG_Py_Void();
16467 return resultobj;
16468 fail:
16469 return NULL;
16470 }
16471
16472
16473 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj = 0;
16475 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16476 PyObject *arg2 = (PyObject *) 0 ;
16477 PyObject *arg3 = (PyObject *) 0 ;
16478 void *argp1 = 0 ;
16479 int res1 = 0 ;
16480 PyObject * obj0 = 0 ;
16481 PyObject * obj1 = 0 ;
16482 PyObject * obj2 = 0 ;
16483 char * kwnames[] = {
16484 (char *) "self",(char *) "self",(char *) "_class", NULL
16485 };
16486
16487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16489 if (!SWIG_IsOK(res1)) {
16490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16491 }
16492 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16493 arg2 = obj1;
16494 arg3 = obj2;
16495 {
16496 PyThreadState* __tstate = wxPyBeginAllowThreads();
16497 (arg1)->_setCallbackInfo(arg2,arg3);
16498 wxPyEndAllowThreads(__tstate);
16499 if (PyErr_Occurred()) SWIG_fail;
16500 }
16501 resultobj = SWIG_Py_Void();
16502 return resultobj;
16503 fail:
16504 return NULL;
16505 }
16506
16507
16508 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16509 PyObject *resultobj = 0;
16510 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16511 wxChar *arg2 = (wxChar *) 0 ;
16512 wxChar *arg3 = (wxChar *) NULL ;
16513 wxChar *result = 0 ;
16514 void *argp1 = 0 ;
16515 int res1 = 0 ;
16516 void *argp2 = 0 ;
16517 int res2 = 0 ;
16518 void *argp3 = 0 ;
16519 int res3 = 0 ;
16520 PyObject * obj0 = 0 ;
16521 PyObject * obj1 = 0 ;
16522 PyObject * obj2 = 0 ;
16523 char * kwnames[] = {
16524 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16525 };
16526
16527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16529 if (!SWIG_IsOK(res1)) {
16530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16531 }
16532 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16533 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16534 if (!SWIG_IsOK(res2)) {
16535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16536 }
16537 arg2 = reinterpret_cast< wxChar * >(argp2);
16538 if (obj2) {
16539 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16540 if (!SWIG_IsOK(res3)) {
16541 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16542 }
16543 arg3 = reinterpret_cast< wxChar * >(argp3);
16544 }
16545 {
16546 PyThreadState* __tstate = wxPyBeginAllowThreads();
16547 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16548 wxPyEndAllowThreads(__tstate);
16549 if (PyErr_Occurred()) SWIG_fail;
16550 }
16551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16552 return resultobj;
16553 fail:
16554 return NULL;
16555 }
16556
16557
16558 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16559 PyObject *resultobj = 0;
16560 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16561 wxChar *arg2 = (wxChar *) 0 ;
16562 wxChar *arg3 = (wxChar *) 0 ;
16563 size_t arg4 ;
16564 wxChar *arg5 = (wxChar *) NULL ;
16565 wxChar *result = 0 ;
16566 void *argp1 = 0 ;
16567 int res1 = 0 ;
16568 void *argp2 = 0 ;
16569 int res2 = 0 ;
16570 void *argp3 = 0 ;
16571 int res3 = 0 ;
16572 size_t val4 ;
16573 int ecode4 = 0 ;
16574 void *argp5 = 0 ;
16575 int res5 = 0 ;
16576 PyObject * obj0 = 0 ;
16577 PyObject * obj1 = 0 ;
16578 PyObject * obj2 = 0 ;
16579 PyObject * obj3 = 0 ;
16580 PyObject * obj4 = 0 ;
16581 char * kwnames[] = {
16582 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16583 };
16584
16585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16587 if (!SWIG_IsOK(res1)) {
16588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16589 }
16590 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16592 if (!SWIG_IsOK(res2)) {
16593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16594 }
16595 arg2 = reinterpret_cast< wxChar * >(argp2);
16596 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16597 if (!SWIG_IsOK(res3)) {
16598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16599 }
16600 arg3 = reinterpret_cast< wxChar * >(argp3);
16601 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16602 if (!SWIG_IsOK(ecode4)) {
16603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16604 }
16605 arg4 = static_cast< size_t >(val4);
16606 if (obj4) {
16607 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16608 if (!SWIG_IsOK(res5)) {
16609 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16610 }
16611 arg5 = reinterpret_cast< wxChar * >(argp5);
16612 }
16613 {
16614 PyThreadState* __tstate = wxPyBeginAllowThreads();
16615 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16616 wxPyEndAllowThreads(__tstate);
16617 if (PyErr_Occurred()) SWIG_fail;
16618 }
16619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16620 return resultobj;
16621 fail:
16622 return NULL;
16623 }
16624
16625
16626 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16627 PyObject *obj;
16628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16629 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16630 return SWIG_Py_Void();
16631 }
16632
16633 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16634 return SWIG_Python_InitShadowInstance(args);
16635 }
16636
16637 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16638 PyObject *resultobj = 0;
16639 wxLocale *result = 0 ;
16640
16641 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16642 {
16643 PyThreadState* __tstate = wxPyBeginAllowThreads();
16644 result = (wxLocale *)wxGetLocale();
16645 wxPyEndAllowThreads(__tstate);
16646 if (PyErr_Occurred()) SWIG_fail;
16647 }
16648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16649 return resultobj;
16650 fail:
16651 return NULL;
16652 }
16653
16654
16655 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16656 PyObject *resultobj = 0;
16657 wxString *arg1 = 0 ;
16658 wxString result;
16659 bool temp1 = false ;
16660
16661 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16662 {
16663 arg1 = wxString_in_helper(swig_obj[0]);
16664 if (arg1 == NULL) SWIG_fail;
16665 temp1 = true;
16666 }
16667 {
16668 PyThreadState* __tstate = wxPyBeginAllowThreads();
16669 result = wxGetTranslation((wxString const &)*arg1);
16670 wxPyEndAllowThreads(__tstate);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 }
16673 {
16674 #if wxUSE_UNICODE
16675 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16676 #else
16677 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16678 #endif
16679 }
16680 {
16681 if (temp1)
16682 delete arg1;
16683 }
16684 return resultobj;
16685 fail:
16686 {
16687 if (temp1)
16688 delete arg1;
16689 }
16690 return NULL;
16691 }
16692
16693
16694 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16695 PyObject *resultobj = 0;
16696 wxString *arg1 = 0 ;
16697 wxString *arg2 = 0 ;
16698 wxString result;
16699 bool temp1 = false ;
16700 bool temp2 = false ;
16701
16702 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16703 {
16704 arg1 = wxString_in_helper(swig_obj[0]);
16705 if (arg1 == NULL) SWIG_fail;
16706 temp1 = true;
16707 }
16708 {
16709 arg2 = wxString_in_helper(swig_obj[1]);
16710 if (arg2 == NULL) SWIG_fail;
16711 temp2 = true;
16712 }
16713 {
16714 PyThreadState* __tstate = wxPyBeginAllowThreads();
16715 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16716 wxPyEndAllowThreads(__tstate);
16717 if (PyErr_Occurred()) SWIG_fail;
16718 }
16719 {
16720 #if wxUSE_UNICODE
16721 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16722 #else
16723 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16724 #endif
16725 }
16726 {
16727 if (temp1)
16728 delete arg1;
16729 }
16730 {
16731 if (temp2)
16732 delete arg2;
16733 }
16734 return resultobj;
16735 fail:
16736 {
16737 if (temp1)
16738 delete arg1;
16739 }
16740 {
16741 if (temp2)
16742 delete arg2;
16743 }
16744 return NULL;
16745 }
16746
16747
16748 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16749 PyObject *resultobj = 0;
16750 wxString *arg1 = 0 ;
16751 wxString *arg2 = 0 ;
16752 size_t arg3 ;
16753 wxString result;
16754 bool temp1 = false ;
16755 bool temp2 = false ;
16756 size_t val3 ;
16757 int ecode3 = 0 ;
16758
16759 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16760 {
16761 arg1 = wxString_in_helper(swig_obj[0]);
16762 if (arg1 == NULL) SWIG_fail;
16763 temp1 = true;
16764 }
16765 {
16766 arg2 = wxString_in_helper(swig_obj[1]);
16767 if (arg2 == NULL) SWIG_fail;
16768 temp2 = true;
16769 }
16770 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16771 if (!SWIG_IsOK(ecode3)) {
16772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16773 }
16774 arg3 = static_cast< size_t >(val3);
16775 {
16776 PyThreadState* __tstate = wxPyBeginAllowThreads();
16777 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16778 wxPyEndAllowThreads(__tstate);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 {
16782 #if wxUSE_UNICODE
16783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16784 #else
16785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16786 #endif
16787 }
16788 {
16789 if (temp1)
16790 delete arg1;
16791 }
16792 {
16793 if (temp2)
16794 delete arg2;
16795 }
16796 return resultobj;
16797 fail:
16798 {
16799 if (temp1)
16800 delete arg1;
16801 }
16802 {
16803 if (temp2)
16804 delete arg2;
16805 }
16806 return NULL;
16807 }
16808
16809
16810 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16811 PyObject *resultobj = 0;
16812 wxString *arg1 = 0 ;
16813 wxString *arg2 = 0 ;
16814 size_t arg3 ;
16815 wxString *arg4 = 0 ;
16816 wxString result;
16817 bool temp1 = false ;
16818 bool temp2 = false ;
16819 size_t val3 ;
16820 int ecode3 = 0 ;
16821 bool temp4 = false ;
16822
16823 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16824 {
16825 arg1 = wxString_in_helper(swig_obj[0]);
16826 if (arg1 == NULL) SWIG_fail;
16827 temp1 = true;
16828 }
16829 {
16830 arg2 = wxString_in_helper(swig_obj[1]);
16831 if (arg2 == NULL) SWIG_fail;
16832 temp2 = true;
16833 }
16834 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16835 if (!SWIG_IsOK(ecode3)) {
16836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16837 }
16838 arg3 = static_cast< size_t >(val3);
16839 {
16840 arg4 = wxString_in_helper(swig_obj[3]);
16841 if (arg4 == NULL) SWIG_fail;
16842 temp4 = true;
16843 }
16844 {
16845 PyThreadState* __tstate = wxPyBeginAllowThreads();
16846 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16847 wxPyEndAllowThreads(__tstate);
16848 if (PyErr_Occurred()) SWIG_fail;
16849 }
16850 {
16851 #if wxUSE_UNICODE
16852 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16853 #else
16854 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16855 #endif
16856 }
16857 {
16858 if (temp1)
16859 delete arg1;
16860 }
16861 {
16862 if (temp2)
16863 delete arg2;
16864 }
16865 {
16866 if (temp4)
16867 delete arg4;
16868 }
16869 return resultobj;
16870 fail:
16871 {
16872 if (temp1)
16873 delete arg1;
16874 }
16875 {
16876 if (temp2)
16877 delete arg2;
16878 }
16879 {
16880 if (temp4)
16881 delete arg4;
16882 }
16883 return NULL;
16884 }
16885
16886
16887 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16888 int argc;
16889 PyObject *argv[5];
16890
16891 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16892 --argc;
16893 if (argc == 1) {
16894 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16895 }
16896 if (argc == 2) {
16897 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16898 }
16899 if (argc == 3) {
16900 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16901 }
16902 if (argc == 4) {
16903 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16904 }
16905
16906 fail:
16907 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16908 return NULL;
16909 }
16910
16911
16912 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16913 PyObject *resultobj = 0;
16914 wxEncodingConverter *result = 0 ;
16915
16916 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16917 {
16918 PyThreadState* __tstate = wxPyBeginAllowThreads();
16919 result = (wxEncodingConverter *)new wxEncodingConverter();
16920 wxPyEndAllowThreads(__tstate);
16921 if (PyErr_Occurred()) SWIG_fail;
16922 }
16923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16924 return resultobj;
16925 fail:
16926 return NULL;
16927 }
16928
16929
16930 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16931 PyObject *resultobj = 0;
16932 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16933 void *argp1 = 0 ;
16934 int res1 = 0 ;
16935 PyObject *swig_obj[1] ;
16936
16937 if (!args) SWIG_fail;
16938 swig_obj[0] = args;
16939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16940 if (!SWIG_IsOK(res1)) {
16941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16942 }
16943 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16944 {
16945 PyThreadState* __tstate = wxPyBeginAllowThreads();
16946 delete arg1;
16947
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_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16959 PyObject *resultobj = 0;
16960 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16961 wxFontEncoding arg2 ;
16962 wxFontEncoding arg3 ;
16963 int arg4 = (int) wxCONVERT_STRICT ;
16964 bool result;
16965 void *argp1 = 0 ;
16966 int res1 = 0 ;
16967 int val2 ;
16968 int ecode2 = 0 ;
16969 int val3 ;
16970 int ecode3 = 0 ;
16971 int val4 ;
16972 int ecode4 = 0 ;
16973 PyObject * obj0 = 0 ;
16974 PyObject * obj1 = 0 ;
16975 PyObject * obj2 = 0 ;
16976 PyObject * obj3 = 0 ;
16977 char * kwnames[] = {
16978 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16979 };
16980
16981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16983 if (!SWIG_IsOK(res1)) {
16984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16985 }
16986 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16987 ecode2 = SWIG_AsVal_int(obj1, &val2);
16988 if (!SWIG_IsOK(ecode2)) {
16989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16990 }
16991 arg2 = static_cast< wxFontEncoding >(val2);
16992 ecode3 = SWIG_AsVal_int(obj2, &val3);
16993 if (!SWIG_IsOK(ecode3)) {
16994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16995 }
16996 arg3 = static_cast< wxFontEncoding >(val3);
16997 if (obj3) {
16998 ecode4 = SWIG_AsVal_int(obj3, &val4);
16999 if (!SWIG_IsOK(ecode4)) {
17000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17001 }
17002 arg4 = static_cast< int >(val4);
17003 }
17004 {
17005 PyThreadState* __tstate = wxPyBeginAllowThreads();
17006 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17007 wxPyEndAllowThreads(__tstate);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 {
17011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17012 }
17013 return resultobj;
17014 fail:
17015 return NULL;
17016 }
17017
17018
17019 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17020 PyObject *resultobj = 0;
17021 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17022 wxString *arg2 = 0 ;
17023 wxString result;
17024 void *argp1 = 0 ;
17025 int res1 = 0 ;
17026 bool temp2 = false ;
17027 PyObject * obj0 = 0 ;
17028 PyObject * obj1 = 0 ;
17029 char * kwnames[] = {
17030 (char *) "self",(char *) "input", NULL
17031 };
17032
17033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17035 if (!SWIG_IsOK(res1)) {
17036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17037 }
17038 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17039 {
17040 arg2 = wxString_in_helper(obj1);
17041 if (arg2 == NULL) SWIG_fail;
17042 temp2 = true;
17043 }
17044 {
17045 PyThreadState* __tstate = wxPyBeginAllowThreads();
17046 result = (arg1)->Convert((wxString const &)*arg2);
17047 wxPyEndAllowThreads(__tstate);
17048 if (PyErr_Occurred()) SWIG_fail;
17049 }
17050 {
17051 #if wxUSE_UNICODE
17052 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17053 #else
17054 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17055 #endif
17056 }
17057 {
17058 if (temp2)
17059 delete arg2;
17060 }
17061 return resultobj;
17062 fail:
17063 {
17064 if (temp2)
17065 delete arg2;
17066 }
17067 return NULL;
17068 }
17069
17070
17071 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17072 PyObject *resultobj = 0;
17073 wxFontEncoding arg1 ;
17074 int arg2 = (int) wxPLATFORM_CURRENT ;
17075 wxFontEncodingArray result;
17076 int val1 ;
17077 int ecode1 = 0 ;
17078 int val2 ;
17079 int ecode2 = 0 ;
17080 PyObject * obj0 = 0 ;
17081 PyObject * obj1 = 0 ;
17082 char * kwnames[] = {
17083 (char *) "enc",(char *) "platform", NULL
17084 };
17085
17086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17087 ecode1 = SWIG_AsVal_int(obj0, &val1);
17088 if (!SWIG_IsOK(ecode1)) {
17089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17090 }
17091 arg1 = static_cast< wxFontEncoding >(val1);
17092 if (obj1) {
17093 ecode2 = SWIG_AsVal_int(obj1, &val2);
17094 if (!SWIG_IsOK(ecode2)) {
17095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17096 }
17097 arg2 = static_cast< int >(val2);
17098 }
17099 {
17100 PyThreadState* __tstate = wxPyBeginAllowThreads();
17101 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17102 wxPyEndAllowThreads(__tstate);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
17105 {
17106 resultobj = PyList_New(0);
17107 for (size_t i=0; i < (&result)->GetCount(); i++) {
17108 PyObject* number = PyInt_FromLong((&result)->Item(i));
17109 PyList_Append(resultobj, number);
17110 Py_DECREF(number);
17111 }
17112 }
17113 return resultobj;
17114 fail:
17115 return NULL;
17116 }
17117
17118
17119 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17120 PyObject *resultobj = 0;
17121 wxFontEncoding arg1 ;
17122 wxFontEncodingArray result;
17123 int val1 ;
17124 int ecode1 = 0 ;
17125 PyObject * obj0 = 0 ;
17126 char * kwnames[] = {
17127 (char *) "enc", NULL
17128 };
17129
17130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17131 ecode1 = SWIG_AsVal_int(obj0, &val1);
17132 if (!SWIG_IsOK(ecode1)) {
17133 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17134 }
17135 arg1 = static_cast< wxFontEncoding >(val1);
17136 {
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 result = wxEncodingConverter::GetAllEquivalents(arg1);
17139 wxPyEndAllowThreads(__tstate);
17140 if (PyErr_Occurred()) SWIG_fail;
17141 }
17142 {
17143 resultobj = PyList_New(0);
17144 for (size_t i=0; i < (&result)->GetCount(); i++) {
17145 PyObject* number = PyInt_FromLong((&result)->Item(i));
17146 PyList_Append(resultobj, number);
17147 Py_DECREF(number);
17148 }
17149 }
17150 return resultobj;
17151 fail:
17152 return NULL;
17153 }
17154
17155
17156 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17157 PyObject *resultobj = 0;
17158 wxFontEncoding arg1 ;
17159 wxFontEncoding arg2 ;
17160 bool result;
17161 int val1 ;
17162 int ecode1 = 0 ;
17163 int val2 ;
17164 int ecode2 = 0 ;
17165 PyObject * obj0 = 0 ;
17166 PyObject * obj1 = 0 ;
17167 char * kwnames[] = {
17168 (char *) "encIn",(char *) "encOut", NULL
17169 };
17170
17171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17172 ecode1 = SWIG_AsVal_int(obj0, &val1);
17173 if (!SWIG_IsOK(ecode1)) {
17174 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17175 }
17176 arg1 = static_cast< wxFontEncoding >(val1);
17177 ecode2 = SWIG_AsVal_int(obj1, &val2);
17178 if (!SWIG_IsOK(ecode2)) {
17179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17180 }
17181 arg2 = static_cast< wxFontEncoding >(val2);
17182 {
17183 PyThreadState* __tstate = wxPyBeginAllowThreads();
17184 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17185 wxPyEndAllowThreads(__tstate);
17186 if (PyErr_Occurred()) SWIG_fail;
17187 }
17188 {
17189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17190 }
17191 return resultobj;
17192 fail:
17193 return NULL;
17194 }
17195
17196
17197 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17198 PyObject *obj;
17199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17200 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17201 return SWIG_Py_Void();
17202 }
17203
17204 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17205 return SWIG_Python_InitShadowInstance(args);
17206 }
17207
17208 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17209 PyObject *resultobj = 0;
17210 wxDC *arg1 = (wxDC *) 0 ;
17211 void *argp1 = 0 ;
17212 int res1 = 0 ;
17213 PyObject *swig_obj[1] ;
17214
17215 if (!args) SWIG_fail;
17216 swig_obj[0] = args;
17217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17218 if (!SWIG_IsOK(res1)) {
17219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17220 }
17221 arg1 = reinterpret_cast< wxDC * >(argp1);
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 delete arg1;
17225
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 resultobj = SWIG_Py_Void();
17230 return resultobj;
17231 fail:
17232 return NULL;
17233 }
17234
17235
17236 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj = 0;
17238 wxDC *arg1 = (wxDC *) 0 ;
17239 int arg2 ;
17240 int arg3 ;
17241 wxColour *arg4 = 0 ;
17242 int arg5 = (int) wxFLOOD_SURFACE ;
17243 bool result;
17244 void *argp1 = 0 ;
17245 int res1 = 0 ;
17246 int val2 ;
17247 int ecode2 = 0 ;
17248 int val3 ;
17249 int ecode3 = 0 ;
17250 wxColour temp4 ;
17251 int val5 ;
17252 int ecode5 = 0 ;
17253 PyObject * obj0 = 0 ;
17254 PyObject * obj1 = 0 ;
17255 PyObject * obj2 = 0 ;
17256 PyObject * obj3 = 0 ;
17257 PyObject * obj4 = 0 ;
17258 char * kwnames[] = {
17259 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17260 };
17261
17262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17264 if (!SWIG_IsOK(res1)) {
17265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17266 }
17267 arg1 = reinterpret_cast< wxDC * >(argp1);
17268 ecode2 = SWIG_AsVal_int(obj1, &val2);
17269 if (!SWIG_IsOK(ecode2)) {
17270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17271 }
17272 arg2 = static_cast< int >(val2);
17273 ecode3 = SWIG_AsVal_int(obj2, &val3);
17274 if (!SWIG_IsOK(ecode3)) {
17275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17276 }
17277 arg3 = static_cast< int >(val3);
17278 {
17279 arg4 = &temp4;
17280 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17281 }
17282 if (obj4) {
17283 ecode5 = SWIG_AsVal_int(obj4, &val5);
17284 if (!SWIG_IsOK(ecode5)) {
17285 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17286 }
17287 arg5 = static_cast< int >(val5);
17288 }
17289 {
17290 PyThreadState* __tstate = wxPyBeginAllowThreads();
17291 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 {
17296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17297 }
17298 return resultobj;
17299 fail:
17300 return NULL;
17301 }
17302
17303
17304 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17305 PyObject *resultobj = 0;
17306 wxDC *arg1 = (wxDC *) 0 ;
17307 wxPoint *arg2 = 0 ;
17308 wxColour *arg3 = 0 ;
17309 int arg4 = (int) wxFLOOD_SURFACE ;
17310 bool result;
17311 void *argp1 = 0 ;
17312 int res1 = 0 ;
17313 wxPoint temp2 ;
17314 wxColour temp3 ;
17315 int val4 ;
17316 int ecode4 = 0 ;
17317 PyObject * obj0 = 0 ;
17318 PyObject * obj1 = 0 ;
17319 PyObject * obj2 = 0 ;
17320 PyObject * obj3 = 0 ;
17321 char * kwnames[] = {
17322 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17323 };
17324
17325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17327 if (!SWIG_IsOK(res1)) {
17328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17329 }
17330 arg1 = reinterpret_cast< wxDC * >(argp1);
17331 {
17332 arg2 = &temp2;
17333 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17334 }
17335 {
17336 arg3 = &temp3;
17337 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17338 }
17339 if (obj3) {
17340 ecode4 = SWIG_AsVal_int(obj3, &val4);
17341 if (!SWIG_IsOK(ecode4)) {
17342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17343 }
17344 arg4 = static_cast< int >(val4);
17345 }
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 {
17353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17354 }
17355 return resultobj;
17356 fail:
17357 return NULL;
17358 }
17359
17360
17361 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17362 PyObject *resultobj = 0;
17363 wxDC *arg1 = (wxDC *) 0 ;
17364 wxRect *arg2 = 0 ;
17365 wxColour *arg3 = 0 ;
17366 wxColour *arg4 = 0 ;
17367 wxPoint *arg5 = 0 ;
17368 void *argp1 = 0 ;
17369 int res1 = 0 ;
17370 wxRect temp2 ;
17371 wxColour temp3 ;
17372 wxColour temp4 ;
17373 wxPoint temp5 ;
17374 PyObject * obj0 = 0 ;
17375 PyObject * obj1 = 0 ;
17376 PyObject * obj2 = 0 ;
17377 PyObject * obj3 = 0 ;
17378 PyObject * obj4 = 0 ;
17379 char * kwnames[] = {
17380 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17381 };
17382
17383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17385 if (!SWIG_IsOK(res1)) {
17386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17387 }
17388 arg1 = reinterpret_cast< wxDC * >(argp1);
17389 {
17390 arg2 = &temp2;
17391 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17392 }
17393 {
17394 arg3 = &temp3;
17395 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17396 }
17397 {
17398 arg4 = &temp4;
17399 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17400 }
17401 {
17402 arg5 = &temp5;
17403 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17404 }
17405 {
17406 PyThreadState* __tstate = wxPyBeginAllowThreads();
17407 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17408 wxPyEndAllowThreads(__tstate);
17409 if (PyErr_Occurred()) SWIG_fail;
17410 }
17411 resultobj = SWIG_Py_Void();
17412 return resultobj;
17413 fail:
17414 return NULL;
17415 }
17416
17417
17418 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17419 PyObject *resultobj = 0;
17420 wxDC *arg1 = (wxDC *) 0 ;
17421 wxRect *arg2 = 0 ;
17422 wxColour *arg3 = 0 ;
17423 wxColour *arg4 = 0 ;
17424 wxDirection arg5 = (wxDirection) wxEAST ;
17425 void *argp1 = 0 ;
17426 int res1 = 0 ;
17427 wxRect temp2 ;
17428 wxColour temp3 ;
17429 wxColour temp4 ;
17430 int val5 ;
17431 int ecode5 = 0 ;
17432 PyObject * obj0 = 0 ;
17433 PyObject * obj1 = 0 ;
17434 PyObject * obj2 = 0 ;
17435 PyObject * obj3 = 0 ;
17436 PyObject * obj4 = 0 ;
17437 char * kwnames[] = {
17438 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17439 };
17440
17441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17443 if (!SWIG_IsOK(res1)) {
17444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17445 }
17446 arg1 = reinterpret_cast< wxDC * >(argp1);
17447 {
17448 arg2 = &temp2;
17449 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17450 }
17451 {
17452 arg3 = &temp3;
17453 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17454 }
17455 {
17456 arg4 = &temp4;
17457 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17458 }
17459 if (obj4) {
17460 ecode5 = SWIG_AsVal_int(obj4, &val5);
17461 if (!SWIG_IsOK(ecode5)) {
17462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17463 }
17464 arg5 = static_cast< wxDirection >(val5);
17465 }
17466 {
17467 PyThreadState* __tstate = wxPyBeginAllowThreads();
17468 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17469 wxPyEndAllowThreads(__tstate);
17470 if (PyErr_Occurred()) SWIG_fail;
17471 }
17472 resultobj = SWIG_Py_Void();
17473 return resultobj;
17474 fail:
17475 return NULL;
17476 }
17477
17478
17479 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17480 PyObject *resultobj = 0;
17481 wxDC *arg1 = (wxDC *) 0 ;
17482 int arg2 ;
17483 int arg3 ;
17484 wxColour result;
17485 void *argp1 = 0 ;
17486 int res1 = 0 ;
17487 int val2 ;
17488 int ecode2 = 0 ;
17489 int val3 ;
17490 int ecode3 = 0 ;
17491 PyObject * obj0 = 0 ;
17492 PyObject * obj1 = 0 ;
17493 PyObject * obj2 = 0 ;
17494 char * kwnames[] = {
17495 (char *) "self",(char *) "x",(char *) "y", NULL
17496 };
17497
17498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17500 if (!SWIG_IsOK(res1)) {
17501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17502 }
17503 arg1 = reinterpret_cast< wxDC * >(argp1);
17504 ecode2 = SWIG_AsVal_int(obj1, &val2);
17505 if (!SWIG_IsOK(ecode2)) {
17506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17507 }
17508 arg2 = static_cast< int >(val2);
17509 ecode3 = SWIG_AsVal_int(obj2, &val3);
17510 if (!SWIG_IsOK(ecode3)) {
17511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17512 }
17513 arg3 = static_cast< int >(val3);
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = wxDC_GetPixel(arg1,arg2,arg3);
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17521 return resultobj;
17522 fail:
17523 return NULL;
17524 }
17525
17526
17527 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj = 0;
17529 wxDC *arg1 = (wxDC *) 0 ;
17530 wxPoint *arg2 = 0 ;
17531 wxColour result;
17532 void *argp1 = 0 ;
17533 int res1 = 0 ;
17534 wxPoint temp2 ;
17535 PyObject * obj0 = 0 ;
17536 PyObject * obj1 = 0 ;
17537 char * kwnames[] = {
17538 (char *) "self",(char *) "pt", NULL
17539 };
17540
17541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17543 if (!SWIG_IsOK(res1)) {
17544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17545 }
17546 arg1 = reinterpret_cast< wxDC * >(argp1);
17547 {
17548 arg2 = &temp2;
17549 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17550 }
17551 {
17552 PyThreadState* __tstate = wxPyBeginAllowThreads();
17553 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17554 wxPyEndAllowThreads(__tstate);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 }
17557 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17558 return resultobj;
17559 fail:
17560 return NULL;
17561 }
17562
17563
17564 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17565 PyObject *resultobj = 0;
17566 wxDC *arg1 = (wxDC *) 0 ;
17567 int arg2 ;
17568 int arg3 ;
17569 int arg4 ;
17570 int arg5 ;
17571 void *argp1 = 0 ;
17572 int res1 = 0 ;
17573 int val2 ;
17574 int ecode2 = 0 ;
17575 int val3 ;
17576 int ecode3 = 0 ;
17577 int val4 ;
17578 int ecode4 = 0 ;
17579 int val5 ;
17580 int ecode5 = 0 ;
17581 PyObject * obj0 = 0 ;
17582 PyObject * obj1 = 0 ;
17583 PyObject * obj2 = 0 ;
17584 PyObject * obj3 = 0 ;
17585 PyObject * obj4 = 0 ;
17586 char * kwnames[] = {
17587 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17588 };
17589
17590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17592 if (!SWIG_IsOK(res1)) {
17593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17594 }
17595 arg1 = reinterpret_cast< wxDC * >(argp1);
17596 ecode2 = SWIG_AsVal_int(obj1, &val2);
17597 if (!SWIG_IsOK(ecode2)) {
17598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17599 }
17600 arg2 = static_cast< int >(val2);
17601 ecode3 = SWIG_AsVal_int(obj2, &val3);
17602 if (!SWIG_IsOK(ecode3)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17604 }
17605 arg3 = static_cast< int >(val3);
17606 ecode4 = SWIG_AsVal_int(obj3, &val4);
17607 if (!SWIG_IsOK(ecode4)) {
17608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17609 }
17610 arg4 = static_cast< int >(val4);
17611 ecode5 = SWIG_AsVal_int(obj4, &val5);
17612 if (!SWIG_IsOK(ecode5)) {
17613 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17614 }
17615 arg5 = static_cast< int >(val5);
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17619 wxPyEndAllowThreads(__tstate);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 }
17622 resultobj = SWIG_Py_Void();
17623 return resultobj;
17624 fail:
17625 return NULL;
17626 }
17627
17628
17629 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17630 PyObject *resultobj = 0;
17631 wxDC *arg1 = (wxDC *) 0 ;
17632 wxPoint *arg2 = 0 ;
17633 wxPoint *arg3 = 0 ;
17634 void *argp1 = 0 ;
17635 int res1 = 0 ;
17636 wxPoint temp2 ;
17637 wxPoint temp3 ;
17638 PyObject * obj0 = 0 ;
17639 PyObject * obj1 = 0 ;
17640 PyObject * obj2 = 0 ;
17641 char * kwnames[] = {
17642 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17643 };
17644
17645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17647 if (!SWIG_IsOK(res1)) {
17648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17649 }
17650 arg1 = reinterpret_cast< wxDC * >(argp1);
17651 {
17652 arg2 = &temp2;
17653 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17654 }
17655 {
17656 arg3 = &temp3;
17657 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17658 }
17659 {
17660 PyThreadState* __tstate = wxPyBeginAllowThreads();
17661 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 resultobj = SWIG_Py_Void();
17666 return resultobj;
17667 fail:
17668 return NULL;
17669 }
17670
17671
17672 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17673 PyObject *resultobj = 0;
17674 wxDC *arg1 = (wxDC *) 0 ;
17675 int arg2 ;
17676 int arg3 ;
17677 void *argp1 = 0 ;
17678 int res1 = 0 ;
17679 int val2 ;
17680 int ecode2 = 0 ;
17681 int val3 ;
17682 int ecode3 = 0 ;
17683 PyObject * obj0 = 0 ;
17684 PyObject * obj1 = 0 ;
17685 PyObject * obj2 = 0 ;
17686 char * kwnames[] = {
17687 (char *) "self",(char *) "x",(char *) "y", NULL
17688 };
17689
17690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17692 if (!SWIG_IsOK(res1)) {
17693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17694 }
17695 arg1 = reinterpret_cast< wxDC * >(argp1);
17696 ecode2 = SWIG_AsVal_int(obj1, &val2);
17697 if (!SWIG_IsOK(ecode2)) {
17698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17699 }
17700 arg2 = static_cast< int >(val2);
17701 ecode3 = SWIG_AsVal_int(obj2, &val3);
17702 if (!SWIG_IsOK(ecode3)) {
17703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17704 }
17705 arg3 = static_cast< int >(val3);
17706 {
17707 PyThreadState* __tstate = wxPyBeginAllowThreads();
17708 (arg1)->CrossHair(arg2,arg3);
17709 wxPyEndAllowThreads(__tstate);
17710 if (PyErr_Occurred()) SWIG_fail;
17711 }
17712 resultobj = SWIG_Py_Void();
17713 return resultobj;
17714 fail:
17715 return NULL;
17716 }
17717
17718
17719 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17720 PyObject *resultobj = 0;
17721 wxDC *arg1 = (wxDC *) 0 ;
17722 wxPoint *arg2 = 0 ;
17723 void *argp1 = 0 ;
17724 int res1 = 0 ;
17725 wxPoint temp2 ;
17726 PyObject * obj0 = 0 ;
17727 PyObject * obj1 = 0 ;
17728 char * kwnames[] = {
17729 (char *) "self",(char *) "pt", NULL
17730 };
17731
17732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17734 if (!SWIG_IsOK(res1)) {
17735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17736 }
17737 arg1 = reinterpret_cast< wxDC * >(argp1);
17738 {
17739 arg2 = &temp2;
17740 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17741 }
17742 {
17743 PyThreadState* __tstate = wxPyBeginAllowThreads();
17744 (arg1)->CrossHair((wxPoint const &)*arg2);
17745 wxPyEndAllowThreads(__tstate);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 resultobj = SWIG_Py_Void();
17749 return resultobj;
17750 fail:
17751 return NULL;
17752 }
17753
17754
17755 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17756 PyObject *resultobj = 0;
17757 wxDC *arg1 = (wxDC *) 0 ;
17758 int arg2 ;
17759 int arg3 ;
17760 int arg4 ;
17761 int arg5 ;
17762 int arg6 ;
17763 int arg7 ;
17764 void *argp1 = 0 ;
17765 int res1 = 0 ;
17766 int val2 ;
17767 int ecode2 = 0 ;
17768 int val3 ;
17769 int ecode3 = 0 ;
17770 int val4 ;
17771 int ecode4 = 0 ;
17772 int val5 ;
17773 int ecode5 = 0 ;
17774 int val6 ;
17775 int ecode6 = 0 ;
17776 int val7 ;
17777 int ecode7 = 0 ;
17778 PyObject * obj0 = 0 ;
17779 PyObject * obj1 = 0 ;
17780 PyObject * obj2 = 0 ;
17781 PyObject * obj3 = 0 ;
17782 PyObject * obj4 = 0 ;
17783 PyObject * obj5 = 0 ;
17784 PyObject * obj6 = 0 ;
17785 char * kwnames[] = {
17786 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17787 };
17788
17789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17791 if (!SWIG_IsOK(res1)) {
17792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17793 }
17794 arg1 = reinterpret_cast< wxDC * >(argp1);
17795 ecode2 = SWIG_AsVal_int(obj1, &val2);
17796 if (!SWIG_IsOK(ecode2)) {
17797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17798 }
17799 arg2 = static_cast< int >(val2);
17800 ecode3 = SWIG_AsVal_int(obj2, &val3);
17801 if (!SWIG_IsOK(ecode3)) {
17802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17803 }
17804 arg3 = static_cast< int >(val3);
17805 ecode4 = SWIG_AsVal_int(obj3, &val4);
17806 if (!SWIG_IsOK(ecode4)) {
17807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17808 }
17809 arg4 = static_cast< int >(val4);
17810 ecode5 = SWIG_AsVal_int(obj4, &val5);
17811 if (!SWIG_IsOK(ecode5)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17813 }
17814 arg5 = static_cast< int >(val5);
17815 ecode6 = SWIG_AsVal_int(obj5, &val6);
17816 if (!SWIG_IsOK(ecode6)) {
17817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17818 }
17819 arg6 = static_cast< int >(val6);
17820 ecode7 = SWIG_AsVal_int(obj6, &val7);
17821 if (!SWIG_IsOK(ecode7)) {
17822 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17823 }
17824 arg7 = static_cast< int >(val7);
17825 {
17826 PyThreadState* __tstate = wxPyBeginAllowThreads();
17827 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17828 wxPyEndAllowThreads(__tstate);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 }
17831 resultobj = SWIG_Py_Void();
17832 return resultobj;
17833 fail:
17834 return NULL;
17835 }
17836
17837
17838 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17839 PyObject *resultobj = 0;
17840 wxDC *arg1 = (wxDC *) 0 ;
17841 wxPoint *arg2 = 0 ;
17842 wxPoint *arg3 = 0 ;
17843 wxPoint *arg4 = 0 ;
17844 void *argp1 = 0 ;
17845 int res1 = 0 ;
17846 wxPoint temp2 ;
17847 wxPoint temp3 ;
17848 wxPoint temp4 ;
17849 PyObject * obj0 = 0 ;
17850 PyObject * obj1 = 0 ;
17851 PyObject * obj2 = 0 ;
17852 PyObject * obj3 = 0 ;
17853 char * kwnames[] = {
17854 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17855 };
17856
17857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17859 if (!SWIG_IsOK(res1)) {
17860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17861 }
17862 arg1 = reinterpret_cast< wxDC * >(argp1);
17863 {
17864 arg2 = &temp2;
17865 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17866 }
17867 {
17868 arg3 = &temp3;
17869 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17870 }
17871 {
17872 arg4 = &temp4;
17873 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17874 }
17875 {
17876 PyThreadState* __tstate = wxPyBeginAllowThreads();
17877 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 resultobj = SWIG_Py_Void();
17882 return resultobj;
17883 fail:
17884 return NULL;
17885 }
17886
17887
17888 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj = 0;
17890 wxDC *arg1 = (wxDC *) 0 ;
17891 int arg2 ;
17892 int arg3 ;
17893 int arg4 ;
17894 int arg5 ;
17895 void *argp1 = 0 ;
17896 int res1 = 0 ;
17897 int val2 ;
17898 int ecode2 = 0 ;
17899 int val3 ;
17900 int ecode3 = 0 ;
17901 int val4 ;
17902 int ecode4 = 0 ;
17903 int val5 ;
17904 int ecode5 = 0 ;
17905 PyObject * obj0 = 0 ;
17906 PyObject * obj1 = 0 ;
17907 PyObject * obj2 = 0 ;
17908 PyObject * obj3 = 0 ;
17909 PyObject * obj4 = 0 ;
17910 char * kwnames[] = {
17911 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17912 };
17913
17914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17916 if (!SWIG_IsOK(res1)) {
17917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17918 }
17919 arg1 = reinterpret_cast< wxDC * >(argp1);
17920 ecode2 = SWIG_AsVal_int(obj1, &val2);
17921 if (!SWIG_IsOK(ecode2)) {
17922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17923 }
17924 arg2 = static_cast< int >(val2);
17925 ecode3 = SWIG_AsVal_int(obj2, &val3);
17926 if (!SWIG_IsOK(ecode3)) {
17927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17928 }
17929 arg3 = static_cast< int >(val3);
17930 ecode4 = SWIG_AsVal_int(obj3, &val4);
17931 if (!SWIG_IsOK(ecode4)) {
17932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17933 }
17934 arg4 = static_cast< int >(val4);
17935 ecode5 = SWIG_AsVal_int(obj4, &val5);
17936 if (!SWIG_IsOK(ecode5)) {
17937 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17938 }
17939 arg5 = static_cast< int >(val5);
17940 {
17941 PyThreadState* __tstate = wxPyBeginAllowThreads();
17942 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17943 wxPyEndAllowThreads(__tstate);
17944 if (PyErr_Occurred()) SWIG_fail;
17945 }
17946 resultobj = SWIG_Py_Void();
17947 return resultobj;
17948 fail:
17949 return NULL;
17950 }
17951
17952
17953 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17954 PyObject *resultobj = 0;
17955 wxDC *arg1 = (wxDC *) 0 ;
17956 wxRect *arg2 = 0 ;
17957 void *argp1 = 0 ;
17958 int res1 = 0 ;
17959 wxRect temp2 ;
17960 PyObject * obj0 = 0 ;
17961 PyObject * obj1 = 0 ;
17962 char * kwnames[] = {
17963 (char *) "self",(char *) "rect", NULL
17964 };
17965
17966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17968 if (!SWIG_IsOK(res1)) {
17969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17970 }
17971 arg1 = reinterpret_cast< wxDC * >(argp1);
17972 {
17973 arg2 = &temp2;
17974 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17975 }
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 resultobj = SWIG_Py_Void();
17983 return resultobj;
17984 fail:
17985 return NULL;
17986 }
17987
17988
17989 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17990 PyObject *resultobj = 0;
17991 wxDC *arg1 = (wxDC *) 0 ;
17992 int arg2 ;
17993 int arg3 ;
17994 int arg4 ;
17995 int arg5 ;
17996 double arg6 ;
17997 double arg7 ;
17998 void *argp1 = 0 ;
17999 int res1 = 0 ;
18000 int val2 ;
18001 int ecode2 = 0 ;
18002 int val3 ;
18003 int ecode3 = 0 ;
18004 int val4 ;
18005 int ecode4 = 0 ;
18006 int val5 ;
18007 int ecode5 = 0 ;
18008 double val6 ;
18009 int ecode6 = 0 ;
18010 double val7 ;
18011 int ecode7 = 0 ;
18012 PyObject * obj0 = 0 ;
18013 PyObject * obj1 = 0 ;
18014 PyObject * obj2 = 0 ;
18015 PyObject * obj3 = 0 ;
18016 PyObject * obj4 = 0 ;
18017 PyObject * obj5 = 0 ;
18018 PyObject * obj6 = 0 ;
18019 char * kwnames[] = {
18020 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18021 };
18022
18023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18025 if (!SWIG_IsOK(res1)) {
18026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18027 }
18028 arg1 = reinterpret_cast< wxDC * >(argp1);
18029 ecode2 = SWIG_AsVal_int(obj1, &val2);
18030 if (!SWIG_IsOK(ecode2)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18032 }
18033 arg2 = static_cast< int >(val2);
18034 ecode3 = SWIG_AsVal_int(obj2, &val3);
18035 if (!SWIG_IsOK(ecode3)) {
18036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18037 }
18038 arg3 = static_cast< int >(val3);
18039 ecode4 = SWIG_AsVal_int(obj3, &val4);
18040 if (!SWIG_IsOK(ecode4)) {
18041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18042 }
18043 arg4 = static_cast< int >(val4);
18044 ecode5 = SWIG_AsVal_int(obj4, &val5);
18045 if (!SWIG_IsOK(ecode5)) {
18046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18047 }
18048 arg5 = static_cast< int >(val5);
18049 ecode6 = SWIG_AsVal_double(obj5, &val6);
18050 if (!SWIG_IsOK(ecode6)) {
18051 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18052 }
18053 arg6 = static_cast< double >(val6);
18054 ecode7 = SWIG_AsVal_double(obj6, &val7);
18055 if (!SWIG_IsOK(ecode7)) {
18056 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18057 }
18058 arg7 = static_cast< double >(val7);
18059 {
18060 PyThreadState* __tstate = wxPyBeginAllowThreads();
18061 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18062 wxPyEndAllowThreads(__tstate);
18063 if (PyErr_Occurred()) SWIG_fail;
18064 }
18065 resultobj = SWIG_Py_Void();
18066 return resultobj;
18067 fail:
18068 return NULL;
18069 }
18070
18071
18072 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18073 PyObject *resultobj = 0;
18074 wxDC *arg1 = (wxDC *) 0 ;
18075 wxPoint *arg2 = 0 ;
18076 wxSize *arg3 = 0 ;
18077 double arg4 ;
18078 double arg5 ;
18079 void *argp1 = 0 ;
18080 int res1 = 0 ;
18081 wxPoint temp2 ;
18082 wxSize temp3 ;
18083 double val4 ;
18084 int ecode4 = 0 ;
18085 double val5 ;
18086 int ecode5 = 0 ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 PyObject * obj2 = 0 ;
18090 PyObject * obj3 = 0 ;
18091 PyObject * obj4 = 0 ;
18092 char * kwnames[] = {
18093 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18094 };
18095
18096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18098 if (!SWIG_IsOK(res1)) {
18099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18100 }
18101 arg1 = reinterpret_cast< wxDC * >(argp1);
18102 {
18103 arg2 = &temp2;
18104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18105 }
18106 {
18107 arg3 = &temp3;
18108 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18109 }
18110 ecode4 = SWIG_AsVal_double(obj3, &val4);
18111 if (!SWIG_IsOK(ecode4)) {
18112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18113 }
18114 arg4 = static_cast< double >(val4);
18115 ecode5 = SWIG_AsVal_double(obj4, &val5);
18116 if (!SWIG_IsOK(ecode5)) {
18117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18118 }
18119 arg5 = static_cast< double >(val5);
18120 {
18121 PyThreadState* __tstate = wxPyBeginAllowThreads();
18122 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18123 wxPyEndAllowThreads(__tstate);
18124 if (PyErr_Occurred()) SWIG_fail;
18125 }
18126 resultobj = SWIG_Py_Void();
18127 return resultobj;
18128 fail:
18129 return NULL;
18130 }
18131
18132
18133 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18134 PyObject *resultobj = 0;
18135 wxDC *arg1 = (wxDC *) 0 ;
18136 int arg2 ;
18137 int arg3 ;
18138 void *argp1 = 0 ;
18139 int res1 = 0 ;
18140 int val2 ;
18141 int ecode2 = 0 ;
18142 int val3 ;
18143 int ecode3 = 0 ;
18144 PyObject * obj0 = 0 ;
18145 PyObject * obj1 = 0 ;
18146 PyObject * obj2 = 0 ;
18147 char * kwnames[] = {
18148 (char *) "self",(char *) "x",(char *) "y", NULL
18149 };
18150
18151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18153 if (!SWIG_IsOK(res1)) {
18154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18155 }
18156 arg1 = reinterpret_cast< wxDC * >(argp1);
18157 ecode2 = SWIG_AsVal_int(obj1, &val2);
18158 if (!SWIG_IsOK(ecode2)) {
18159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18160 }
18161 arg2 = static_cast< int >(val2);
18162 ecode3 = SWIG_AsVal_int(obj2, &val3);
18163 if (!SWIG_IsOK(ecode3)) {
18164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18165 }
18166 arg3 = static_cast< int >(val3);
18167 {
18168 PyThreadState* __tstate = wxPyBeginAllowThreads();
18169 (arg1)->DrawPoint(arg2,arg3);
18170 wxPyEndAllowThreads(__tstate);
18171 if (PyErr_Occurred()) SWIG_fail;
18172 }
18173 resultobj = SWIG_Py_Void();
18174 return resultobj;
18175 fail:
18176 return NULL;
18177 }
18178
18179
18180 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18181 PyObject *resultobj = 0;
18182 wxDC *arg1 = (wxDC *) 0 ;
18183 wxPoint *arg2 = 0 ;
18184 void *argp1 = 0 ;
18185 int res1 = 0 ;
18186 wxPoint temp2 ;
18187 PyObject * obj0 = 0 ;
18188 PyObject * obj1 = 0 ;
18189 char * kwnames[] = {
18190 (char *) "self",(char *) "pt", NULL
18191 };
18192
18193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18195 if (!SWIG_IsOK(res1)) {
18196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18197 }
18198 arg1 = reinterpret_cast< wxDC * >(argp1);
18199 {
18200 arg2 = &temp2;
18201 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18202 }
18203 {
18204 PyThreadState* __tstate = wxPyBeginAllowThreads();
18205 (arg1)->DrawPoint((wxPoint const &)*arg2);
18206 wxPyEndAllowThreads(__tstate);
18207 if (PyErr_Occurred()) SWIG_fail;
18208 }
18209 resultobj = SWIG_Py_Void();
18210 return resultobj;
18211 fail:
18212 return NULL;
18213 }
18214
18215
18216 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18217 PyObject *resultobj = 0;
18218 wxDC *arg1 = (wxDC *) 0 ;
18219 int arg2 ;
18220 int arg3 ;
18221 int arg4 ;
18222 int arg5 ;
18223 void *argp1 = 0 ;
18224 int res1 = 0 ;
18225 int val2 ;
18226 int ecode2 = 0 ;
18227 int val3 ;
18228 int ecode3 = 0 ;
18229 int val4 ;
18230 int ecode4 = 0 ;
18231 int val5 ;
18232 int ecode5 = 0 ;
18233 PyObject * obj0 = 0 ;
18234 PyObject * obj1 = 0 ;
18235 PyObject * obj2 = 0 ;
18236 PyObject * obj3 = 0 ;
18237 PyObject * obj4 = 0 ;
18238 char * kwnames[] = {
18239 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18240 };
18241
18242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18244 if (!SWIG_IsOK(res1)) {
18245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18246 }
18247 arg1 = reinterpret_cast< wxDC * >(argp1);
18248 ecode2 = SWIG_AsVal_int(obj1, &val2);
18249 if (!SWIG_IsOK(ecode2)) {
18250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18251 }
18252 arg2 = static_cast< int >(val2);
18253 ecode3 = SWIG_AsVal_int(obj2, &val3);
18254 if (!SWIG_IsOK(ecode3)) {
18255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18256 }
18257 arg3 = static_cast< int >(val3);
18258 ecode4 = SWIG_AsVal_int(obj3, &val4);
18259 if (!SWIG_IsOK(ecode4)) {
18260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18261 }
18262 arg4 = static_cast< int >(val4);
18263 ecode5 = SWIG_AsVal_int(obj4, &val5);
18264 if (!SWIG_IsOK(ecode5)) {
18265 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18266 }
18267 arg5 = static_cast< int >(val5);
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18271 wxPyEndAllowThreads(__tstate);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 }
18274 resultobj = SWIG_Py_Void();
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj = 0;
18283 wxDC *arg1 = (wxDC *) 0 ;
18284 wxRect *arg2 = 0 ;
18285 void *argp1 = 0 ;
18286 int res1 = 0 ;
18287 wxRect temp2 ;
18288 PyObject * obj0 = 0 ;
18289 PyObject * obj1 = 0 ;
18290 char * kwnames[] = {
18291 (char *) "self",(char *) "rect", NULL
18292 };
18293
18294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18296 if (!SWIG_IsOK(res1)) {
18297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18298 }
18299 arg1 = reinterpret_cast< wxDC * >(argp1);
18300 {
18301 arg2 = &temp2;
18302 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18303 }
18304 {
18305 PyThreadState* __tstate = wxPyBeginAllowThreads();
18306 (arg1)->DrawRectangle((wxRect const &)*arg2);
18307 wxPyEndAllowThreads(__tstate);
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 resultobj = SWIG_Py_Void();
18311 return resultobj;
18312 fail:
18313 return NULL;
18314 }
18315
18316
18317 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18318 PyObject *resultobj = 0;
18319 wxDC *arg1 = (wxDC *) 0 ;
18320 wxPoint *arg2 = 0 ;
18321 wxSize *arg3 = 0 ;
18322 void *argp1 = 0 ;
18323 int res1 = 0 ;
18324 wxPoint temp2 ;
18325 wxSize temp3 ;
18326 PyObject * obj0 = 0 ;
18327 PyObject * obj1 = 0 ;
18328 PyObject * obj2 = 0 ;
18329 char * kwnames[] = {
18330 (char *) "self",(char *) "pt",(char *) "sz", NULL
18331 };
18332
18333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18335 if (!SWIG_IsOK(res1)) {
18336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18337 }
18338 arg1 = reinterpret_cast< wxDC * >(argp1);
18339 {
18340 arg2 = &temp2;
18341 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18342 }
18343 {
18344 arg3 = &temp3;
18345 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18346 }
18347 {
18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
18349 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 resultobj = SWIG_Py_Void();
18354 return resultobj;
18355 fail:
18356 return NULL;
18357 }
18358
18359
18360 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18361 PyObject *resultobj = 0;
18362 wxDC *arg1 = (wxDC *) 0 ;
18363 int arg2 ;
18364 int arg3 ;
18365 int arg4 ;
18366 int arg5 ;
18367 double arg6 ;
18368 void *argp1 = 0 ;
18369 int res1 = 0 ;
18370 int val2 ;
18371 int ecode2 = 0 ;
18372 int val3 ;
18373 int ecode3 = 0 ;
18374 int val4 ;
18375 int ecode4 = 0 ;
18376 int val5 ;
18377 int ecode5 = 0 ;
18378 double val6 ;
18379 int ecode6 = 0 ;
18380 PyObject * obj0 = 0 ;
18381 PyObject * obj1 = 0 ;
18382 PyObject * obj2 = 0 ;
18383 PyObject * obj3 = 0 ;
18384 PyObject * obj4 = 0 ;
18385 PyObject * obj5 = 0 ;
18386 char * kwnames[] = {
18387 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18388 };
18389
18390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18392 if (!SWIG_IsOK(res1)) {
18393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18394 }
18395 arg1 = reinterpret_cast< wxDC * >(argp1);
18396 ecode2 = SWIG_AsVal_int(obj1, &val2);
18397 if (!SWIG_IsOK(ecode2)) {
18398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18399 }
18400 arg2 = static_cast< int >(val2);
18401 ecode3 = SWIG_AsVal_int(obj2, &val3);
18402 if (!SWIG_IsOK(ecode3)) {
18403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18404 }
18405 arg3 = static_cast< int >(val3);
18406 ecode4 = SWIG_AsVal_int(obj3, &val4);
18407 if (!SWIG_IsOK(ecode4)) {
18408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18409 }
18410 arg4 = static_cast< int >(val4);
18411 ecode5 = SWIG_AsVal_int(obj4, &val5);
18412 if (!SWIG_IsOK(ecode5)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18414 }
18415 arg5 = static_cast< int >(val5);
18416 ecode6 = SWIG_AsVal_double(obj5, &val6);
18417 if (!SWIG_IsOK(ecode6)) {
18418 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18419 }
18420 arg6 = static_cast< double >(val6);
18421 {
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 resultobj = SWIG_Py_Void();
18428 return resultobj;
18429 fail:
18430 return NULL;
18431 }
18432
18433
18434 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18435 PyObject *resultobj = 0;
18436 wxDC *arg1 = (wxDC *) 0 ;
18437 wxRect *arg2 = 0 ;
18438 double arg3 ;
18439 void *argp1 = 0 ;
18440 int res1 = 0 ;
18441 wxRect temp2 ;
18442 double val3 ;
18443 int ecode3 = 0 ;
18444 PyObject * obj0 = 0 ;
18445 PyObject * obj1 = 0 ;
18446 PyObject * obj2 = 0 ;
18447 char * kwnames[] = {
18448 (char *) "self",(char *) "r",(char *) "radius", NULL
18449 };
18450
18451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18453 if (!SWIG_IsOK(res1)) {
18454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18455 }
18456 arg1 = reinterpret_cast< wxDC * >(argp1);
18457 {
18458 arg2 = &temp2;
18459 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18460 }
18461 ecode3 = SWIG_AsVal_double(obj2, &val3);
18462 if (!SWIG_IsOK(ecode3)) {
18463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18464 }
18465 arg3 = static_cast< double >(val3);
18466 {
18467 PyThreadState* __tstate = wxPyBeginAllowThreads();
18468 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18469 wxPyEndAllowThreads(__tstate);
18470 if (PyErr_Occurred()) SWIG_fail;
18471 }
18472 resultobj = SWIG_Py_Void();
18473 return resultobj;
18474 fail:
18475 return NULL;
18476 }
18477
18478
18479 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18480 PyObject *resultobj = 0;
18481 wxDC *arg1 = (wxDC *) 0 ;
18482 wxPoint *arg2 = 0 ;
18483 wxSize *arg3 = 0 ;
18484 double arg4 ;
18485 void *argp1 = 0 ;
18486 int res1 = 0 ;
18487 wxPoint temp2 ;
18488 wxSize temp3 ;
18489 double val4 ;
18490 int ecode4 = 0 ;
18491 PyObject * obj0 = 0 ;
18492 PyObject * obj1 = 0 ;
18493 PyObject * obj2 = 0 ;
18494 PyObject * obj3 = 0 ;
18495 char * kwnames[] = {
18496 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18497 };
18498
18499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18501 if (!SWIG_IsOK(res1)) {
18502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18503 }
18504 arg1 = reinterpret_cast< wxDC * >(argp1);
18505 {
18506 arg2 = &temp2;
18507 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18508 }
18509 {
18510 arg3 = &temp3;
18511 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18512 }
18513 ecode4 = SWIG_AsVal_double(obj3, &val4);
18514 if (!SWIG_IsOK(ecode4)) {
18515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18516 }
18517 arg4 = static_cast< double >(val4);
18518 {
18519 PyThreadState* __tstate = wxPyBeginAllowThreads();
18520 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18521 wxPyEndAllowThreads(__tstate);
18522 if (PyErr_Occurred()) SWIG_fail;
18523 }
18524 resultobj = SWIG_Py_Void();
18525 return resultobj;
18526 fail:
18527 return NULL;
18528 }
18529
18530
18531 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18532 PyObject *resultobj = 0;
18533 wxDC *arg1 = (wxDC *) 0 ;
18534 int arg2 ;
18535 int arg3 ;
18536 int arg4 ;
18537 void *argp1 = 0 ;
18538 int res1 = 0 ;
18539 int val2 ;
18540 int ecode2 = 0 ;
18541 int val3 ;
18542 int ecode3 = 0 ;
18543 int val4 ;
18544 int ecode4 = 0 ;
18545 PyObject * obj0 = 0 ;
18546 PyObject * obj1 = 0 ;
18547 PyObject * obj2 = 0 ;
18548 PyObject * obj3 = 0 ;
18549 char * kwnames[] = {
18550 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18551 };
18552
18553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18555 if (!SWIG_IsOK(res1)) {
18556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18557 }
18558 arg1 = reinterpret_cast< wxDC * >(argp1);
18559 ecode2 = SWIG_AsVal_int(obj1, &val2);
18560 if (!SWIG_IsOK(ecode2)) {
18561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18562 }
18563 arg2 = static_cast< int >(val2);
18564 ecode3 = SWIG_AsVal_int(obj2, &val3);
18565 if (!SWIG_IsOK(ecode3)) {
18566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18567 }
18568 arg3 = static_cast< int >(val3);
18569 ecode4 = SWIG_AsVal_int(obj3, &val4);
18570 if (!SWIG_IsOK(ecode4)) {
18571 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18572 }
18573 arg4 = static_cast< int >(val4);
18574 {
18575 PyThreadState* __tstate = wxPyBeginAllowThreads();
18576 (arg1)->DrawCircle(arg2,arg3,arg4);
18577 wxPyEndAllowThreads(__tstate);
18578 if (PyErr_Occurred()) SWIG_fail;
18579 }
18580 resultobj = SWIG_Py_Void();
18581 return resultobj;
18582 fail:
18583 return NULL;
18584 }
18585
18586
18587 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18588 PyObject *resultobj = 0;
18589 wxDC *arg1 = (wxDC *) 0 ;
18590 wxPoint *arg2 = 0 ;
18591 int arg3 ;
18592 void *argp1 = 0 ;
18593 int res1 = 0 ;
18594 wxPoint temp2 ;
18595 int val3 ;
18596 int ecode3 = 0 ;
18597 PyObject * obj0 = 0 ;
18598 PyObject * obj1 = 0 ;
18599 PyObject * obj2 = 0 ;
18600 char * kwnames[] = {
18601 (char *) "self",(char *) "pt",(char *) "radius", NULL
18602 };
18603
18604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18606 if (!SWIG_IsOK(res1)) {
18607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18608 }
18609 arg1 = reinterpret_cast< wxDC * >(argp1);
18610 {
18611 arg2 = &temp2;
18612 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18613 }
18614 ecode3 = SWIG_AsVal_int(obj2, &val3);
18615 if (!SWIG_IsOK(ecode3)) {
18616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18617 }
18618 arg3 = static_cast< int >(val3);
18619 {
18620 PyThreadState* __tstate = wxPyBeginAllowThreads();
18621 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18622 wxPyEndAllowThreads(__tstate);
18623 if (PyErr_Occurred()) SWIG_fail;
18624 }
18625 resultobj = SWIG_Py_Void();
18626 return resultobj;
18627 fail:
18628 return NULL;
18629 }
18630
18631
18632 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18633 PyObject *resultobj = 0;
18634 wxDC *arg1 = (wxDC *) 0 ;
18635 int arg2 ;
18636 int arg3 ;
18637 int arg4 ;
18638 int arg5 ;
18639 void *argp1 = 0 ;
18640 int res1 = 0 ;
18641 int val2 ;
18642 int ecode2 = 0 ;
18643 int val3 ;
18644 int ecode3 = 0 ;
18645 int val4 ;
18646 int ecode4 = 0 ;
18647 int val5 ;
18648 int ecode5 = 0 ;
18649 PyObject * obj0 = 0 ;
18650 PyObject * obj1 = 0 ;
18651 PyObject * obj2 = 0 ;
18652 PyObject * obj3 = 0 ;
18653 PyObject * obj4 = 0 ;
18654 char * kwnames[] = {
18655 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18656 };
18657
18658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18660 if (!SWIG_IsOK(res1)) {
18661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18662 }
18663 arg1 = reinterpret_cast< wxDC * >(argp1);
18664 ecode2 = SWIG_AsVal_int(obj1, &val2);
18665 if (!SWIG_IsOK(ecode2)) {
18666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18667 }
18668 arg2 = static_cast< int >(val2);
18669 ecode3 = SWIG_AsVal_int(obj2, &val3);
18670 if (!SWIG_IsOK(ecode3)) {
18671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18672 }
18673 arg3 = static_cast< int >(val3);
18674 ecode4 = SWIG_AsVal_int(obj3, &val4);
18675 if (!SWIG_IsOK(ecode4)) {
18676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18677 }
18678 arg4 = static_cast< int >(val4);
18679 ecode5 = SWIG_AsVal_int(obj4, &val5);
18680 if (!SWIG_IsOK(ecode5)) {
18681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18682 }
18683 arg5 = static_cast< int >(val5);
18684 {
18685 PyThreadState* __tstate = wxPyBeginAllowThreads();
18686 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18687 wxPyEndAllowThreads(__tstate);
18688 if (PyErr_Occurred()) SWIG_fail;
18689 }
18690 resultobj = SWIG_Py_Void();
18691 return resultobj;
18692 fail:
18693 return NULL;
18694 }
18695
18696
18697 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18698 PyObject *resultobj = 0;
18699 wxDC *arg1 = (wxDC *) 0 ;
18700 wxRect *arg2 = 0 ;
18701 void *argp1 = 0 ;
18702 int res1 = 0 ;
18703 wxRect temp2 ;
18704 PyObject * obj0 = 0 ;
18705 PyObject * obj1 = 0 ;
18706 char * kwnames[] = {
18707 (char *) "self",(char *) "rect", NULL
18708 };
18709
18710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18712 if (!SWIG_IsOK(res1)) {
18713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18714 }
18715 arg1 = reinterpret_cast< wxDC * >(argp1);
18716 {
18717 arg2 = &temp2;
18718 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18719 }
18720 {
18721 PyThreadState* __tstate = wxPyBeginAllowThreads();
18722 (arg1)->DrawEllipse((wxRect const &)*arg2);
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 resultobj = SWIG_Py_Void();
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj = 0;
18735 wxDC *arg1 = (wxDC *) 0 ;
18736 wxPoint *arg2 = 0 ;
18737 wxSize *arg3 = 0 ;
18738 void *argp1 = 0 ;
18739 int res1 = 0 ;
18740 wxPoint temp2 ;
18741 wxSize temp3 ;
18742 PyObject * obj0 = 0 ;
18743 PyObject * obj1 = 0 ;
18744 PyObject * obj2 = 0 ;
18745 char * kwnames[] = {
18746 (char *) "self",(char *) "pt",(char *) "sz", NULL
18747 };
18748
18749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18751 if (!SWIG_IsOK(res1)) {
18752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18753 }
18754 arg1 = reinterpret_cast< wxDC * >(argp1);
18755 {
18756 arg2 = &temp2;
18757 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18758 }
18759 {
18760 arg3 = &temp3;
18761 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18762 }
18763 {
18764 PyThreadState* __tstate = wxPyBeginAllowThreads();
18765 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18766 wxPyEndAllowThreads(__tstate);
18767 if (PyErr_Occurred()) SWIG_fail;
18768 }
18769 resultobj = SWIG_Py_Void();
18770 return resultobj;
18771 fail:
18772 return NULL;
18773 }
18774
18775
18776 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18777 PyObject *resultobj = 0;
18778 wxDC *arg1 = (wxDC *) 0 ;
18779 wxIcon *arg2 = 0 ;
18780 int arg3 ;
18781 int arg4 ;
18782 void *argp1 = 0 ;
18783 int res1 = 0 ;
18784 void *argp2 = 0 ;
18785 int res2 = 0 ;
18786 int val3 ;
18787 int ecode3 = 0 ;
18788 int val4 ;
18789 int ecode4 = 0 ;
18790 PyObject * obj0 = 0 ;
18791 PyObject * obj1 = 0 ;
18792 PyObject * obj2 = 0 ;
18793 PyObject * obj3 = 0 ;
18794 char * kwnames[] = {
18795 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18796 };
18797
18798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18800 if (!SWIG_IsOK(res1)) {
18801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18802 }
18803 arg1 = reinterpret_cast< wxDC * >(argp1);
18804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18805 if (!SWIG_IsOK(res2)) {
18806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18807 }
18808 if (!argp2) {
18809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18810 }
18811 arg2 = reinterpret_cast< wxIcon * >(argp2);
18812 ecode3 = SWIG_AsVal_int(obj2, &val3);
18813 if (!SWIG_IsOK(ecode3)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18815 }
18816 arg3 = static_cast< int >(val3);
18817 ecode4 = SWIG_AsVal_int(obj3, &val4);
18818 if (!SWIG_IsOK(ecode4)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18820 }
18821 arg4 = static_cast< int >(val4);
18822 {
18823 PyThreadState* __tstate = wxPyBeginAllowThreads();
18824 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 resultobj = SWIG_Py_Void();
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj = 0;
18837 wxDC *arg1 = (wxDC *) 0 ;
18838 wxIcon *arg2 = 0 ;
18839 wxPoint *arg3 = 0 ;
18840 void *argp1 = 0 ;
18841 int res1 = 0 ;
18842 void *argp2 = 0 ;
18843 int res2 = 0 ;
18844 wxPoint temp3 ;
18845 PyObject * obj0 = 0 ;
18846 PyObject * obj1 = 0 ;
18847 PyObject * obj2 = 0 ;
18848 char * kwnames[] = {
18849 (char *) "self",(char *) "icon",(char *) "pt", NULL
18850 };
18851
18852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18854 if (!SWIG_IsOK(res1)) {
18855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18856 }
18857 arg1 = reinterpret_cast< wxDC * >(argp1);
18858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18859 if (!SWIG_IsOK(res2)) {
18860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18861 }
18862 if (!argp2) {
18863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18864 }
18865 arg2 = reinterpret_cast< wxIcon * >(argp2);
18866 {
18867 arg3 = &temp3;
18868 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18869 }
18870 {
18871 PyThreadState* __tstate = wxPyBeginAllowThreads();
18872 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18873 wxPyEndAllowThreads(__tstate);
18874 if (PyErr_Occurred()) SWIG_fail;
18875 }
18876 resultobj = SWIG_Py_Void();
18877 return resultobj;
18878 fail:
18879 return NULL;
18880 }
18881
18882
18883 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18884 PyObject *resultobj = 0;
18885 wxDC *arg1 = (wxDC *) 0 ;
18886 wxBitmap *arg2 = 0 ;
18887 int arg3 ;
18888 int arg4 ;
18889 bool arg5 = (bool) false ;
18890 void *argp1 = 0 ;
18891 int res1 = 0 ;
18892 void *argp2 = 0 ;
18893 int res2 = 0 ;
18894 int val3 ;
18895 int ecode3 = 0 ;
18896 int val4 ;
18897 int ecode4 = 0 ;
18898 bool val5 ;
18899 int ecode5 = 0 ;
18900 PyObject * obj0 = 0 ;
18901 PyObject * obj1 = 0 ;
18902 PyObject * obj2 = 0 ;
18903 PyObject * obj3 = 0 ;
18904 PyObject * obj4 = 0 ;
18905 char * kwnames[] = {
18906 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18907 };
18908
18909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18911 if (!SWIG_IsOK(res1)) {
18912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18913 }
18914 arg1 = reinterpret_cast< wxDC * >(argp1);
18915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18916 if (!SWIG_IsOK(res2)) {
18917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18918 }
18919 if (!argp2) {
18920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18921 }
18922 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18923 ecode3 = SWIG_AsVal_int(obj2, &val3);
18924 if (!SWIG_IsOK(ecode3)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18926 }
18927 arg3 = static_cast< int >(val3);
18928 ecode4 = SWIG_AsVal_int(obj3, &val4);
18929 if (!SWIG_IsOK(ecode4)) {
18930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18931 }
18932 arg4 = static_cast< int >(val4);
18933 if (obj4) {
18934 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18935 if (!SWIG_IsOK(ecode5)) {
18936 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18937 }
18938 arg5 = static_cast< bool >(val5);
18939 }
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18943 wxPyEndAllowThreads(__tstate);
18944 if (PyErr_Occurred()) SWIG_fail;
18945 }
18946 resultobj = SWIG_Py_Void();
18947 return resultobj;
18948 fail:
18949 return NULL;
18950 }
18951
18952
18953 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18954 PyObject *resultobj = 0;
18955 wxDC *arg1 = (wxDC *) 0 ;
18956 wxBitmap *arg2 = 0 ;
18957 wxPoint *arg3 = 0 ;
18958 bool arg4 = (bool) false ;
18959 void *argp1 = 0 ;
18960 int res1 = 0 ;
18961 void *argp2 = 0 ;
18962 int res2 = 0 ;
18963 wxPoint temp3 ;
18964 bool val4 ;
18965 int ecode4 = 0 ;
18966 PyObject * obj0 = 0 ;
18967 PyObject * obj1 = 0 ;
18968 PyObject * obj2 = 0 ;
18969 PyObject * obj3 = 0 ;
18970 char * kwnames[] = {
18971 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18972 };
18973
18974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18976 if (!SWIG_IsOK(res1)) {
18977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18978 }
18979 arg1 = reinterpret_cast< wxDC * >(argp1);
18980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18981 if (!SWIG_IsOK(res2)) {
18982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18983 }
18984 if (!argp2) {
18985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18986 }
18987 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18988 {
18989 arg3 = &temp3;
18990 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18991 }
18992 if (obj3) {
18993 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18994 if (!SWIG_IsOK(ecode4)) {
18995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18996 }
18997 arg4 = static_cast< bool >(val4);
18998 }
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19002 wxPyEndAllowThreads(__tstate);
19003 if (PyErr_Occurred()) SWIG_fail;
19004 }
19005 resultobj = SWIG_Py_Void();
19006 return resultobj;
19007 fail:
19008 return NULL;
19009 }
19010
19011
19012 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19013 PyObject *resultobj = 0;
19014 wxDC *arg1 = (wxDC *) 0 ;
19015 wxString *arg2 = 0 ;
19016 int arg3 ;
19017 int arg4 ;
19018 void *argp1 = 0 ;
19019 int res1 = 0 ;
19020 bool temp2 = false ;
19021 int val3 ;
19022 int ecode3 = 0 ;
19023 int val4 ;
19024 int ecode4 = 0 ;
19025 PyObject * obj0 = 0 ;
19026 PyObject * obj1 = 0 ;
19027 PyObject * obj2 = 0 ;
19028 PyObject * obj3 = 0 ;
19029 char * kwnames[] = {
19030 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19031 };
19032
19033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19035 if (!SWIG_IsOK(res1)) {
19036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19037 }
19038 arg1 = reinterpret_cast< wxDC * >(argp1);
19039 {
19040 arg2 = wxString_in_helper(obj1);
19041 if (arg2 == NULL) SWIG_fail;
19042 temp2 = true;
19043 }
19044 ecode3 = SWIG_AsVal_int(obj2, &val3);
19045 if (!SWIG_IsOK(ecode3)) {
19046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19047 }
19048 arg3 = static_cast< int >(val3);
19049 ecode4 = SWIG_AsVal_int(obj3, &val4);
19050 if (!SWIG_IsOK(ecode4)) {
19051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19052 }
19053 arg4 = static_cast< int >(val4);
19054 {
19055 PyThreadState* __tstate = wxPyBeginAllowThreads();
19056 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19057 wxPyEndAllowThreads(__tstate);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 }
19060 resultobj = SWIG_Py_Void();
19061 {
19062 if (temp2)
19063 delete arg2;
19064 }
19065 return resultobj;
19066 fail:
19067 {
19068 if (temp2)
19069 delete arg2;
19070 }
19071 return NULL;
19072 }
19073
19074
19075 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19076 PyObject *resultobj = 0;
19077 wxDC *arg1 = (wxDC *) 0 ;
19078 wxString *arg2 = 0 ;
19079 wxPoint *arg3 = 0 ;
19080 void *argp1 = 0 ;
19081 int res1 = 0 ;
19082 bool temp2 = false ;
19083 wxPoint temp3 ;
19084 PyObject * obj0 = 0 ;
19085 PyObject * obj1 = 0 ;
19086 PyObject * obj2 = 0 ;
19087 char * kwnames[] = {
19088 (char *) "self",(char *) "text",(char *) "pt", NULL
19089 };
19090
19091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19093 if (!SWIG_IsOK(res1)) {
19094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19095 }
19096 arg1 = reinterpret_cast< wxDC * >(argp1);
19097 {
19098 arg2 = wxString_in_helper(obj1);
19099 if (arg2 == NULL) SWIG_fail;
19100 temp2 = true;
19101 }
19102 {
19103 arg3 = &temp3;
19104 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19105 }
19106 {
19107 PyThreadState* __tstate = wxPyBeginAllowThreads();
19108 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19109 wxPyEndAllowThreads(__tstate);
19110 if (PyErr_Occurred()) SWIG_fail;
19111 }
19112 resultobj = SWIG_Py_Void();
19113 {
19114 if (temp2)
19115 delete arg2;
19116 }
19117 return resultobj;
19118 fail:
19119 {
19120 if (temp2)
19121 delete arg2;
19122 }
19123 return NULL;
19124 }
19125
19126
19127 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19128 PyObject *resultobj = 0;
19129 wxDC *arg1 = (wxDC *) 0 ;
19130 wxString *arg2 = 0 ;
19131 int arg3 ;
19132 int arg4 ;
19133 double arg5 ;
19134 void *argp1 = 0 ;
19135 int res1 = 0 ;
19136 bool temp2 = false ;
19137 int val3 ;
19138 int ecode3 = 0 ;
19139 int val4 ;
19140 int ecode4 = 0 ;
19141 double val5 ;
19142 int ecode5 = 0 ;
19143 PyObject * obj0 = 0 ;
19144 PyObject * obj1 = 0 ;
19145 PyObject * obj2 = 0 ;
19146 PyObject * obj3 = 0 ;
19147 PyObject * obj4 = 0 ;
19148 char * kwnames[] = {
19149 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19150 };
19151
19152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19154 if (!SWIG_IsOK(res1)) {
19155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19156 }
19157 arg1 = reinterpret_cast< wxDC * >(argp1);
19158 {
19159 arg2 = wxString_in_helper(obj1);
19160 if (arg2 == NULL) SWIG_fail;
19161 temp2 = true;
19162 }
19163 ecode3 = SWIG_AsVal_int(obj2, &val3);
19164 if (!SWIG_IsOK(ecode3)) {
19165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19166 }
19167 arg3 = static_cast< int >(val3);
19168 ecode4 = SWIG_AsVal_int(obj3, &val4);
19169 if (!SWIG_IsOK(ecode4)) {
19170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19171 }
19172 arg4 = static_cast< int >(val4);
19173 ecode5 = SWIG_AsVal_double(obj4, &val5);
19174 if (!SWIG_IsOK(ecode5)) {
19175 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19176 }
19177 arg5 = static_cast< double >(val5);
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19181 wxPyEndAllowThreads(__tstate);
19182 if (PyErr_Occurred()) SWIG_fail;
19183 }
19184 resultobj = SWIG_Py_Void();
19185 {
19186 if (temp2)
19187 delete arg2;
19188 }
19189 return resultobj;
19190 fail:
19191 {
19192 if (temp2)
19193 delete arg2;
19194 }
19195 return NULL;
19196 }
19197
19198
19199 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19200 PyObject *resultobj = 0;
19201 wxDC *arg1 = (wxDC *) 0 ;
19202 wxString *arg2 = 0 ;
19203 wxPoint *arg3 = 0 ;
19204 double arg4 ;
19205 void *argp1 = 0 ;
19206 int res1 = 0 ;
19207 bool temp2 = false ;
19208 wxPoint temp3 ;
19209 double val4 ;
19210 int ecode4 = 0 ;
19211 PyObject * obj0 = 0 ;
19212 PyObject * obj1 = 0 ;
19213 PyObject * obj2 = 0 ;
19214 PyObject * obj3 = 0 ;
19215 char * kwnames[] = {
19216 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19217 };
19218
19219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19221 if (!SWIG_IsOK(res1)) {
19222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19223 }
19224 arg1 = reinterpret_cast< wxDC * >(argp1);
19225 {
19226 arg2 = wxString_in_helper(obj1);
19227 if (arg2 == NULL) SWIG_fail;
19228 temp2 = true;
19229 }
19230 {
19231 arg3 = &temp3;
19232 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19233 }
19234 ecode4 = SWIG_AsVal_double(obj3, &val4);
19235 if (!SWIG_IsOK(ecode4)) {
19236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19237 }
19238 arg4 = static_cast< double >(val4);
19239 {
19240 PyThreadState* __tstate = wxPyBeginAllowThreads();
19241 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19242 wxPyEndAllowThreads(__tstate);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 }
19245 resultobj = SWIG_Py_Void();
19246 {
19247 if (temp2)
19248 delete arg2;
19249 }
19250 return resultobj;
19251 fail:
19252 {
19253 if (temp2)
19254 delete arg2;
19255 }
19256 return NULL;
19257 }
19258
19259
19260 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19261 PyObject *resultobj = 0;
19262 wxDC *arg1 = (wxDC *) 0 ;
19263 int arg2 ;
19264 int arg3 ;
19265 int arg4 ;
19266 int arg5 ;
19267 wxDC *arg6 = (wxDC *) 0 ;
19268 int arg7 ;
19269 int arg8 ;
19270 int arg9 = (int) wxCOPY ;
19271 bool arg10 = (bool) false ;
19272 int arg11 = (int) -1 ;
19273 int arg12 = (int) -1 ;
19274 bool result;
19275 void *argp1 = 0 ;
19276 int res1 = 0 ;
19277 int val2 ;
19278 int ecode2 = 0 ;
19279 int val3 ;
19280 int ecode3 = 0 ;
19281 int val4 ;
19282 int ecode4 = 0 ;
19283 int val5 ;
19284 int ecode5 = 0 ;
19285 void *argp6 = 0 ;
19286 int res6 = 0 ;
19287 int val7 ;
19288 int ecode7 = 0 ;
19289 int val8 ;
19290 int ecode8 = 0 ;
19291 int val9 ;
19292 int ecode9 = 0 ;
19293 bool val10 ;
19294 int ecode10 = 0 ;
19295 int val11 ;
19296 int ecode11 = 0 ;
19297 int val12 ;
19298 int ecode12 = 0 ;
19299 PyObject * obj0 = 0 ;
19300 PyObject * obj1 = 0 ;
19301 PyObject * obj2 = 0 ;
19302 PyObject * obj3 = 0 ;
19303 PyObject * obj4 = 0 ;
19304 PyObject * obj5 = 0 ;
19305 PyObject * obj6 = 0 ;
19306 PyObject * obj7 = 0 ;
19307 PyObject * obj8 = 0 ;
19308 PyObject * obj9 = 0 ;
19309 PyObject * obj10 = 0 ;
19310 PyObject * obj11 = 0 ;
19311 char * kwnames[] = {
19312 (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
19313 };
19314
19315 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;
19316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19317 if (!SWIG_IsOK(res1)) {
19318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19319 }
19320 arg1 = reinterpret_cast< wxDC * >(argp1);
19321 ecode2 = SWIG_AsVal_int(obj1, &val2);
19322 if (!SWIG_IsOK(ecode2)) {
19323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19324 }
19325 arg2 = static_cast< int >(val2);
19326 ecode3 = SWIG_AsVal_int(obj2, &val3);
19327 if (!SWIG_IsOK(ecode3)) {
19328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19329 }
19330 arg3 = static_cast< int >(val3);
19331 ecode4 = SWIG_AsVal_int(obj3, &val4);
19332 if (!SWIG_IsOK(ecode4)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19334 }
19335 arg4 = static_cast< int >(val4);
19336 ecode5 = SWIG_AsVal_int(obj4, &val5);
19337 if (!SWIG_IsOK(ecode5)) {
19338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19339 }
19340 arg5 = static_cast< int >(val5);
19341 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19342 if (!SWIG_IsOK(res6)) {
19343 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19344 }
19345 arg6 = reinterpret_cast< wxDC * >(argp6);
19346 ecode7 = SWIG_AsVal_int(obj6, &val7);
19347 if (!SWIG_IsOK(ecode7)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19349 }
19350 arg7 = static_cast< int >(val7);
19351 ecode8 = SWIG_AsVal_int(obj7, &val8);
19352 if (!SWIG_IsOK(ecode8)) {
19353 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19354 }
19355 arg8 = static_cast< int >(val8);
19356 if (obj8) {
19357 ecode9 = SWIG_AsVal_int(obj8, &val9);
19358 if (!SWIG_IsOK(ecode9)) {
19359 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19360 }
19361 arg9 = static_cast< int >(val9);
19362 }
19363 if (obj9) {
19364 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19365 if (!SWIG_IsOK(ecode10)) {
19366 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19367 }
19368 arg10 = static_cast< bool >(val10);
19369 }
19370 if (obj10) {
19371 ecode11 = SWIG_AsVal_int(obj10, &val11);
19372 if (!SWIG_IsOK(ecode11)) {
19373 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19374 }
19375 arg11 = static_cast< int >(val11);
19376 }
19377 if (obj11) {
19378 ecode12 = SWIG_AsVal_int(obj11, &val12);
19379 if (!SWIG_IsOK(ecode12)) {
19380 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19381 }
19382 arg12 = static_cast< int >(val12);
19383 }
19384 {
19385 PyThreadState* __tstate = wxPyBeginAllowThreads();
19386 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 {
19391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19392 }
19393 return resultobj;
19394 fail:
19395 return NULL;
19396 }
19397
19398
19399 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19400 PyObject *resultobj = 0;
19401 wxDC *arg1 = (wxDC *) 0 ;
19402 wxPoint *arg2 = 0 ;
19403 wxSize *arg3 = 0 ;
19404 wxDC *arg4 = (wxDC *) 0 ;
19405 wxPoint *arg5 = 0 ;
19406 int arg6 = (int) wxCOPY ;
19407 bool arg7 = (bool) false ;
19408 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19409 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19410 bool result;
19411 void *argp1 = 0 ;
19412 int res1 = 0 ;
19413 wxPoint temp2 ;
19414 wxSize temp3 ;
19415 void *argp4 = 0 ;
19416 int res4 = 0 ;
19417 wxPoint temp5 ;
19418 int val6 ;
19419 int ecode6 = 0 ;
19420 bool val7 ;
19421 int ecode7 = 0 ;
19422 wxPoint temp8 ;
19423 PyObject * obj0 = 0 ;
19424 PyObject * obj1 = 0 ;
19425 PyObject * obj2 = 0 ;
19426 PyObject * obj3 = 0 ;
19427 PyObject * obj4 = 0 ;
19428 PyObject * obj5 = 0 ;
19429 PyObject * obj6 = 0 ;
19430 PyObject * obj7 = 0 ;
19431 char * kwnames[] = {
19432 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19433 };
19434
19435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19437 if (!SWIG_IsOK(res1)) {
19438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19439 }
19440 arg1 = reinterpret_cast< wxDC * >(argp1);
19441 {
19442 arg2 = &temp2;
19443 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19444 }
19445 {
19446 arg3 = &temp3;
19447 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19448 }
19449 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19450 if (!SWIG_IsOK(res4)) {
19451 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19452 }
19453 arg4 = reinterpret_cast< wxDC * >(argp4);
19454 {
19455 arg5 = &temp5;
19456 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19457 }
19458 if (obj5) {
19459 ecode6 = SWIG_AsVal_int(obj5, &val6);
19460 if (!SWIG_IsOK(ecode6)) {
19461 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19462 }
19463 arg6 = static_cast< int >(val6);
19464 }
19465 if (obj6) {
19466 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19467 if (!SWIG_IsOK(ecode7)) {
19468 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19469 }
19470 arg7 = static_cast< bool >(val7);
19471 }
19472 if (obj7) {
19473 {
19474 arg8 = &temp8;
19475 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19476 }
19477 }
19478 {
19479 PyThreadState* __tstate = wxPyBeginAllowThreads();
19480 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19481 wxPyEndAllowThreads(__tstate);
19482 if (PyErr_Occurred()) SWIG_fail;
19483 }
19484 {
19485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19486 }
19487 return resultobj;
19488 fail:
19489 return NULL;
19490 }
19491
19492
19493 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19494 PyObject *resultobj = 0;
19495 wxDC *arg1 = (wxDC *) 0 ;
19496 int arg2 ;
19497 int arg3 ;
19498 int arg4 ;
19499 int arg5 ;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 int val2 ;
19503 int ecode2 = 0 ;
19504 int val3 ;
19505 int ecode3 = 0 ;
19506 int val4 ;
19507 int ecode4 = 0 ;
19508 int val5 ;
19509 int ecode5 = 0 ;
19510 PyObject * obj0 = 0 ;
19511 PyObject * obj1 = 0 ;
19512 PyObject * obj2 = 0 ;
19513 PyObject * obj3 = 0 ;
19514 PyObject * obj4 = 0 ;
19515 char * kwnames[] = {
19516 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19517 };
19518
19519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19521 if (!SWIG_IsOK(res1)) {
19522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19523 }
19524 arg1 = reinterpret_cast< wxDC * >(argp1);
19525 ecode2 = SWIG_AsVal_int(obj1, &val2);
19526 if (!SWIG_IsOK(ecode2)) {
19527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19528 }
19529 arg2 = static_cast< int >(val2);
19530 ecode3 = SWIG_AsVal_int(obj2, &val3);
19531 if (!SWIG_IsOK(ecode3)) {
19532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19533 }
19534 arg3 = static_cast< int >(val3);
19535 ecode4 = SWIG_AsVal_int(obj3, &val4);
19536 if (!SWIG_IsOK(ecode4)) {
19537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19538 }
19539 arg4 = static_cast< int >(val4);
19540 ecode5 = SWIG_AsVal_int(obj4, &val5);
19541 if (!SWIG_IsOK(ecode5)) {
19542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19543 }
19544 arg5 = static_cast< int >(val5);
19545 {
19546 PyThreadState* __tstate = wxPyBeginAllowThreads();
19547 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
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_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19559 PyObject *resultobj = 0;
19560 wxDC *arg1 = (wxDC *) 0 ;
19561 wxPoint *arg2 = 0 ;
19562 wxSize *arg3 = 0 ;
19563 void *argp1 = 0 ;
19564 int res1 = 0 ;
19565 wxPoint temp2 ;
19566 wxSize temp3 ;
19567 PyObject * obj0 = 0 ;
19568 PyObject * obj1 = 0 ;
19569 PyObject * obj2 = 0 ;
19570 char * kwnames[] = {
19571 (char *) "self",(char *) "pt",(char *) "sz", NULL
19572 };
19573
19574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19576 if (!SWIG_IsOK(res1)) {
19577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19578 }
19579 arg1 = reinterpret_cast< wxDC * >(argp1);
19580 {
19581 arg2 = &temp2;
19582 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19583 }
19584 {
19585 arg3 = &temp3;
19586 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19587 }
19588 {
19589 PyThreadState* __tstate = wxPyBeginAllowThreads();
19590 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19591 wxPyEndAllowThreads(__tstate);
19592 if (PyErr_Occurred()) SWIG_fail;
19593 }
19594 resultobj = SWIG_Py_Void();
19595 return resultobj;
19596 fail:
19597 return NULL;
19598 }
19599
19600
19601 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19602 PyObject *resultobj = 0;
19603 wxDC *arg1 = (wxDC *) 0 ;
19604 wxRegion *arg2 = 0 ;
19605 void *argp1 = 0 ;
19606 int res1 = 0 ;
19607 void *argp2 = 0 ;
19608 int res2 = 0 ;
19609 PyObject * obj0 = 0 ;
19610 PyObject * obj1 = 0 ;
19611 char * kwnames[] = {
19612 (char *) "self",(char *) "region", NULL
19613 };
19614
19615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19617 if (!SWIG_IsOK(res1)) {
19618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19619 }
19620 arg1 = reinterpret_cast< wxDC * >(argp1);
19621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19622 if (!SWIG_IsOK(res2)) {
19623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19624 }
19625 if (!argp2) {
19626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19627 }
19628 arg2 = reinterpret_cast< wxRegion * >(argp2);
19629 {
19630 PyThreadState* __tstate = wxPyBeginAllowThreads();
19631 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19632 wxPyEndAllowThreads(__tstate);
19633 if (PyErr_Occurred()) SWIG_fail;
19634 }
19635 resultobj = SWIG_Py_Void();
19636 return resultobj;
19637 fail:
19638 return NULL;
19639 }
19640
19641
19642 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19643 PyObject *resultobj = 0;
19644 wxDC *arg1 = (wxDC *) 0 ;
19645 wxRect *arg2 = 0 ;
19646 void *argp1 = 0 ;
19647 int res1 = 0 ;
19648 wxRect temp2 ;
19649 PyObject * obj0 = 0 ;
19650 PyObject * obj1 = 0 ;
19651 char * kwnames[] = {
19652 (char *) "self",(char *) "rect", NULL
19653 };
19654
19655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19657 if (!SWIG_IsOK(res1)) {
19658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19659 }
19660 arg1 = reinterpret_cast< wxDC * >(argp1);
19661 {
19662 arg2 = &temp2;
19663 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19664 }
19665 {
19666 PyThreadState* __tstate = wxPyBeginAllowThreads();
19667 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19668 wxPyEndAllowThreads(__tstate);
19669 if (PyErr_Occurred()) SWIG_fail;
19670 }
19671 resultobj = SWIG_Py_Void();
19672 return resultobj;
19673 fail:
19674 return NULL;
19675 }
19676
19677
19678 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19679 PyObject *resultobj = 0;
19680 wxDC *arg1 = (wxDC *) 0 ;
19681 int arg2 ;
19682 wxPoint *arg3 = (wxPoint *) 0 ;
19683 int arg4 = (int) 0 ;
19684 int arg5 = (int) 0 ;
19685 void *argp1 = 0 ;
19686 int res1 = 0 ;
19687 int val4 ;
19688 int ecode4 = 0 ;
19689 int val5 ;
19690 int ecode5 = 0 ;
19691 PyObject * obj0 = 0 ;
19692 PyObject * obj1 = 0 ;
19693 PyObject * obj2 = 0 ;
19694 PyObject * obj3 = 0 ;
19695 char * kwnames[] = {
19696 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19697 };
19698
19699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19701 if (!SWIG_IsOK(res1)) {
19702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19703 }
19704 arg1 = reinterpret_cast< wxDC * >(argp1);
19705 {
19706 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19707 if (arg3 == NULL) SWIG_fail;
19708 }
19709 if (obj2) {
19710 ecode4 = SWIG_AsVal_int(obj2, &val4);
19711 if (!SWIG_IsOK(ecode4)) {
19712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19713 }
19714 arg4 = static_cast< int >(val4);
19715 }
19716 if (obj3) {
19717 ecode5 = SWIG_AsVal_int(obj3, &val5);
19718 if (!SWIG_IsOK(ecode5)) {
19719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19720 }
19721 arg5 = static_cast< int >(val5);
19722 }
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19726 wxPyEndAllowThreads(__tstate);
19727 if (PyErr_Occurred()) SWIG_fail;
19728 }
19729 resultobj = SWIG_Py_Void();
19730 {
19731 if (arg3) delete [] arg3;
19732 }
19733 return resultobj;
19734 fail:
19735 {
19736 if (arg3) delete [] arg3;
19737 }
19738 return NULL;
19739 }
19740
19741
19742 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19743 PyObject *resultobj = 0;
19744 wxDC *arg1 = (wxDC *) 0 ;
19745 int arg2 ;
19746 wxPoint *arg3 = (wxPoint *) 0 ;
19747 int arg4 = (int) 0 ;
19748 int arg5 = (int) 0 ;
19749 int arg6 = (int) wxODDEVEN_RULE ;
19750 void *argp1 = 0 ;
19751 int res1 = 0 ;
19752 int val4 ;
19753 int ecode4 = 0 ;
19754 int val5 ;
19755 int ecode5 = 0 ;
19756 int val6 ;
19757 int ecode6 = 0 ;
19758 PyObject * obj0 = 0 ;
19759 PyObject * obj1 = 0 ;
19760 PyObject * obj2 = 0 ;
19761 PyObject * obj3 = 0 ;
19762 PyObject * obj4 = 0 ;
19763 char * kwnames[] = {
19764 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19765 };
19766
19767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19769 if (!SWIG_IsOK(res1)) {
19770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19771 }
19772 arg1 = reinterpret_cast< wxDC * >(argp1);
19773 {
19774 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19775 if (arg3 == NULL) SWIG_fail;
19776 }
19777 if (obj2) {
19778 ecode4 = SWIG_AsVal_int(obj2, &val4);
19779 if (!SWIG_IsOK(ecode4)) {
19780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19781 }
19782 arg4 = static_cast< int >(val4);
19783 }
19784 if (obj3) {
19785 ecode5 = SWIG_AsVal_int(obj3, &val5);
19786 if (!SWIG_IsOK(ecode5)) {
19787 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19788 }
19789 arg5 = static_cast< int >(val5);
19790 }
19791 if (obj4) {
19792 ecode6 = SWIG_AsVal_int(obj4, &val6);
19793 if (!SWIG_IsOK(ecode6)) {
19794 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19795 }
19796 arg6 = static_cast< int >(val6);
19797 }
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19801 wxPyEndAllowThreads(__tstate);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 resultobj = SWIG_Py_Void();
19805 {
19806 if (arg3) delete [] arg3;
19807 }
19808 return resultobj;
19809 fail:
19810 {
19811 if (arg3) delete [] arg3;
19812 }
19813 return NULL;
19814 }
19815
19816
19817 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19818 PyObject *resultobj = 0;
19819 wxDC *arg1 = (wxDC *) 0 ;
19820 wxString *arg2 = 0 ;
19821 wxRect *arg3 = 0 ;
19822 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19823 int arg5 = (int) -1 ;
19824 void *argp1 = 0 ;
19825 int res1 = 0 ;
19826 bool temp2 = false ;
19827 wxRect temp3 ;
19828 int val4 ;
19829 int ecode4 = 0 ;
19830 int val5 ;
19831 int ecode5 = 0 ;
19832 PyObject * obj0 = 0 ;
19833 PyObject * obj1 = 0 ;
19834 PyObject * obj2 = 0 ;
19835 PyObject * obj3 = 0 ;
19836 PyObject * obj4 = 0 ;
19837 char * kwnames[] = {
19838 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19839 };
19840
19841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19843 if (!SWIG_IsOK(res1)) {
19844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19845 }
19846 arg1 = reinterpret_cast< wxDC * >(argp1);
19847 {
19848 arg2 = wxString_in_helper(obj1);
19849 if (arg2 == NULL) SWIG_fail;
19850 temp2 = true;
19851 }
19852 {
19853 arg3 = &temp3;
19854 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19855 }
19856 if (obj3) {
19857 ecode4 = SWIG_AsVal_int(obj3, &val4);
19858 if (!SWIG_IsOK(ecode4)) {
19859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19860 }
19861 arg4 = static_cast< int >(val4);
19862 }
19863 if (obj4) {
19864 ecode5 = SWIG_AsVal_int(obj4, &val5);
19865 if (!SWIG_IsOK(ecode5)) {
19866 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19867 }
19868 arg5 = static_cast< int >(val5);
19869 }
19870 {
19871 PyThreadState* __tstate = wxPyBeginAllowThreads();
19872 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19873 wxPyEndAllowThreads(__tstate);
19874 if (PyErr_Occurred()) SWIG_fail;
19875 }
19876 resultobj = SWIG_Py_Void();
19877 {
19878 if (temp2)
19879 delete arg2;
19880 }
19881 return resultobj;
19882 fail:
19883 {
19884 if (temp2)
19885 delete arg2;
19886 }
19887 return NULL;
19888 }
19889
19890
19891 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19892 PyObject *resultobj = 0;
19893 wxDC *arg1 = (wxDC *) 0 ;
19894 wxString *arg2 = 0 ;
19895 wxBitmap *arg3 = 0 ;
19896 wxRect *arg4 = 0 ;
19897 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19898 int arg6 = (int) -1 ;
19899 wxRect result;
19900 void *argp1 = 0 ;
19901 int res1 = 0 ;
19902 bool temp2 = false ;
19903 void *argp3 = 0 ;
19904 int res3 = 0 ;
19905 wxRect temp4 ;
19906 int val5 ;
19907 int ecode5 = 0 ;
19908 int val6 ;
19909 int ecode6 = 0 ;
19910 PyObject * obj0 = 0 ;
19911 PyObject * obj1 = 0 ;
19912 PyObject * obj2 = 0 ;
19913 PyObject * obj3 = 0 ;
19914 PyObject * obj4 = 0 ;
19915 PyObject * obj5 = 0 ;
19916 char * kwnames[] = {
19917 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19918 };
19919
19920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19922 if (!SWIG_IsOK(res1)) {
19923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19924 }
19925 arg1 = reinterpret_cast< wxDC * >(argp1);
19926 {
19927 arg2 = wxString_in_helper(obj1);
19928 if (arg2 == NULL) SWIG_fail;
19929 temp2 = true;
19930 }
19931 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19932 if (!SWIG_IsOK(res3)) {
19933 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19934 }
19935 if (!argp3) {
19936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19937 }
19938 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19939 {
19940 arg4 = &temp4;
19941 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19942 }
19943 if (obj4) {
19944 ecode5 = SWIG_AsVal_int(obj4, &val5);
19945 if (!SWIG_IsOK(ecode5)) {
19946 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19947 }
19948 arg5 = static_cast< int >(val5);
19949 }
19950 if (obj5) {
19951 ecode6 = SWIG_AsVal_int(obj5, &val6);
19952 if (!SWIG_IsOK(ecode6)) {
19953 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19954 }
19955 arg6 = static_cast< int >(val6);
19956 }
19957 {
19958 PyThreadState* __tstate = wxPyBeginAllowThreads();
19959 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19960 wxPyEndAllowThreads(__tstate);
19961 if (PyErr_Occurred()) SWIG_fail;
19962 }
19963 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19964 {
19965 if (temp2)
19966 delete arg2;
19967 }
19968 return resultobj;
19969 fail:
19970 {
19971 if (temp2)
19972 delete arg2;
19973 }
19974 return NULL;
19975 }
19976
19977
19978 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19979 PyObject *resultobj = 0;
19980 wxDC *arg1 = (wxDC *) 0 ;
19981 int arg2 ;
19982 wxPoint *arg3 = (wxPoint *) 0 ;
19983 void *argp1 = 0 ;
19984 int res1 = 0 ;
19985 PyObject * obj0 = 0 ;
19986 PyObject * obj1 = 0 ;
19987 char * kwnames[] = {
19988 (char *) "self",(char *) "points", NULL
19989 };
19990
19991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19993 if (!SWIG_IsOK(res1)) {
19994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19995 }
19996 arg1 = reinterpret_cast< wxDC * >(argp1);
19997 {
19998 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19999 if (arg3 == NULL) SWIG_fail;
20000 }
20001 {
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 (arg1)->DrawSpline(arg2,arg3);
20004 wxPyEndAllowThreads(__tstate);
20005 if (PyErr_Occurred()) SWIG_fail;
20006 }
20007 resultobj = SWIG_Py_Void();
20008 {
20009 if (arg3) delete [] arg3;
20010 }
20011 return resultobj;
20012 fail:
20013 {
20014 if (arg3) delete [] arg3;
20015 }
20016 return NULL;
20017 }
20018
20019
20020 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20021 PyObject *resultobj = 0;
20022 wxDC *arg1 = (wxDC *) 0 ;
20023 void *argp1 = 0 ;
20024 int res1 = 0 ;
20025 PyObject *swig_obj[1] ;
20026
20027 if (!args) SWIG_fail;
20028 swig_obj[0] = args;
20029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20030 if (!SWIG_IsOK(res1)) {
20031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20032 }
20033 arg1 = reinterpret_cast< wxDC * >(argp1);
20034 {
20035 PyThreadState* __tstate = wxPyBeginAllowThreads();
20036 (arg1)->Clear();
20037 wxPyEndAllowThreads(__tstate);
20038 if (PyErr_Occurred()) SWIG_fail;
20039 }
20040 resultobj = SWIG_Py_Void();
20041 return resultobj;
20042 fail:
20043 return NULL;
20044 }
20045
20046
20047 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20048 PyObject *resultobj = 0;
20049 wxDC *arg1 = (wxDC *) 0 ;
20050 wxString *arg2 = 0 ;
20051 bool result;
20052 void *argp1 = 0 ;
20053 int res1 = 0 ;
20054 bool temp2 = false ;
20055 PyObject * obj0 = 0 ;
20056 PyObject * obj1 = 0 ;
20057 char * kwnames[] = {
20058 (char *) "self",(char *) "message", NULL
20059 };
20060
20061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20063 if (!SWIG_IsOK(res1)) {
20064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20065 }
20066 arg1 = reinterpret_cast< wxDC * >(argp1);
20067 {
20068 arg2 = wxString_in_helper(obj1);
20069 if (arg2 == NULL) SWIG_fail;
20070 temp2 = true;
20071 }
20072 {
20073 PyThreadState* __tstate = wxPyBeginAllowThreads();
20074 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20075 wxPyEndAllowThreads(__tstate);
20076 if (PyErr_Occurred()) SWIG_fail;
20077 }
20078 {
20079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20080 }
20081 {
20082 if (temp2)
20083 delete arg2;
20084 }
20085 return resultobj;
20086 fail:
20087 {
20088 if (temp2)
20089 delete arg2;
20090 }
20091 return NULL;
20092 }
20093
20094
20095 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20096 PyObject *resultobj = 0;
20097 wxDC *arg1 = (wxDC *) 0 ;
20098 void *argp1 = 0 ;
20099 int res1 = 0 ;
20100 PyObject *swig_obj[1] ;
20101
20102 if (!args) SWIG_fail;
20103 swig_obj[0] = args;
20104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20105 if (!SWIG_IsOK(res1)) {
20106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20107 }
20108 arg1 = reinterpret_cast< wxDC * >(argp1);
20109 {
20110 PyThreadState* __tstate = wxPyBeginAllowThreads();
20111 (arg1)->EndDoc();
20112 wxPyEndAllowThreads(__tstate);
20113 if (PyErr_Occurred()) SWIG_fail;
20114 }
20115 resultobj = SWIG_Py_Void();
20116 return resultobj;
20117 fail:
20118 return NULL;
20119 }
20120
20121
20122 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20123 PyObject *resultobj = 0;
20124 wxDC *arg1 = (wxDC *) 0 ;
20125 void *argp1 = 0 ;
20126 int res1 = 0 ;
20127 PyObject *swig_obj[1] ;
20128
20129 if (!args) SWIG_fail;
20130 swig_obj[0] = args;
20131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20132 if (!SWIG_IsOK(res1)) {
20133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20134 }
20135 arg1 = reinterpret_cast< wxDC * >(argp1);
20136 {
20137 PyThreadState* __tstate = wxPyBeginAllowThreads();
20138 (arg1)->StartPage();
20139 wxPyEndAllowThreads(__tstate);
20140 if (PyErr_Occurred()) SWIG_fail;
20141 }
20142 resultobj = SWIG_Py_Void();
20143 return resultobj;
20144 fail:
20145 return NULL;
20146 }
20147
20148
20149 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20150 PyObject *resultobj = 0;
20151 wxDC *arg1 = (wxDC *) 0 ;
20152 void *argp1 = 0 ;
20153 int res1 = 0 ;
20154 PyObject *swig_obj[1] ;
20155
20156 if (!args) SWIG_fail;
20157 swig_obj[0] = args;
20158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20159 if (!SWIG_IsOK(res1)) {
20160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20161 }
20162 arg1 = reinterpret_cast< wxDC * >(argp1);
20163 {
20164 PyThreadState* __tstate = wxPyBeginAllowThreads();
20165 (arg1)->EndPage();
20166 wxPyEndAllowThreads(__tstate);
20167 if (PyErr_Occurred()) SWIG_fail;
20168 }
20169 resultobj = SWIG_Py_Void();
20170 return resultobj;
20171 fail:
20172 return NULL;
20173 }
20174
20175
20176 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20177 PyObject *resultobj = 0;
20178 wxDC *arg1 = (wxDC *) 0 ;
20179 wxFont *arg2 = 0 ;
20180 void *argp1 = 0 ;
20181 int res1 = 0 ;
20182 void *argp2 = 0 ;
20183 int res2 = 0 ;
20184 PyObject * obj0 = 0 ;
20185 PyObject * obj1 = 0 ;
20186 char * kwnames[] = {
20187 (char *) "self",(char *) "font", NULL
20188 };
20189
20190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20192 if (!SWIG_IsOK(res1)) {
20193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20194 }
20195 arg1 = reinterpret_cast< wxDC * >(argp1);
20196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20197 if (!SWIG_IsOK(res2)) {
20198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20199 }
20200 if (!argp2) {
20201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20202 }
20203 arg2 = reinterpret_cast< wxFont * >(argp2);
20204 {
20205 PyThreadState* __tstate = wxPyBeginAllowThreads();
20206 (arg1)->SetFont((wxFont const &)*arg2);
20207 wxPyEndAllowThreads(__tstate);
20208 if (PyErr_Occurred()) SWIG_fail;
20209 }
20210 resultobj = SWIG_Py_Void();
20211 return resultobj;
20212 fail:
20213 return NULL;
20214 }
20215
20216
20217 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj = 0;
20219 wxDC *arg1 = (wxDC *) 0 ;
20220 wxPen *arg2 = 0 ;
20221 void *argp1 = 0 ;
20222 int res1 = 0 ;
20223 void *argp2 = 0 ;
20224 int res2 = 0 ;
20225 PyObject * obj0 = 0 ;
20226 PyObject * obj1 = 0 ;
20227 char * kwnames[] = {
20228 (char *) "self",(char *) "pen", NULL
20229 };
20230
20231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20233 if (!SWIG_IsOK(res1)) {
20234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20235 }
20236 arg1 = reinterpret_cast< wxDC * >(argp1);
20237 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20238 if (!SWIG_IsOK(res2)) {
20239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20240 }
20241 if (!argp2) {
20242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20243 }
20244 arg2 = reinterpret_cast< wxPen * >(argp2);
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 (arg1)->SetPen((wxPen const &)*arg2);
20248 wxPyEndAllowThreads(__tstate);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 }
20251 resultobj = SWIG_Py_Void();
20252 return resultobj;
20253 fail:
20254 return NULL;
20255 }
20256
20257
20258 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20259 PyObject *resultobj = 0;
20260 wxDC *arg1 = (wxDC *) 0 ;
20261 wxBrush *arg2 = 0 ;
20262 void *argp1 = 0 ;
20263 int res1 = 0 ;
20264 void *argp2 = 0 ;
20265 int res2 = 0 ;
20266 PyObject * obj0 = 0 ;
20267 PyObject * obj1 = 0 ;
20268 char * kwnames[] = {
20269 (char *) "self",(char *) "brush", NULL
20270 };
20271
20272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20274 if (!SWIG_IsOK(res1)) {
20275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20276 }
20277 arg1 = reinterpret_cast< wxDC * >(argp1);
20278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20279 if (!SWIG_IsOK(res2)) {
20280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20281 }
20282 if (!argp2) {
20283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20284 }
20285 arg2 = reinterpret_cast< wxBrush * >(argp2);
20286 {
20287 PyThreadState* __tstate = wxPyBeginAllowThreads();
20288 (arg1)->SetBrush((wxBrush const &)*arg2);
20289 wxPyEndAllowThreads(__tstate);
20290 if (PyErr_Occurred()) SWIG_fail;
20291 }
20292 resultobj = SWIG_Py_Void();
20293 return resultobj;
20294 fail:
20295 return NULL;
20296 }
20297
20298
20299 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20300 PyObject *resultobj = 0;
20301 wxDC *arg1 = (wxDC *) 0 ;
20302 wxBrush *arg2 = 0 ;
20303 void *argp1 = 0 ;
20304 int res1 = 0 ;
20305 void *argp2 = 0 ;
20306 int res2 = 0 ;
20307 PyObject * obj0 = 0 ;
20308 PyObject * obj1 = 0 ;
20309 char * kwnames[] = {
20310 (char *) "self",(char *) "brush", NULL
20311 };
20312
20313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20315 if (!SWIG_IsOK(res1)) {
20316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20317 }
20318 arg1 = reinterpret_cast< wxDC * >(argp1);
20319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20320 if (!SWIG_IsOK(res2)) {
20321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20322 }
20323 if (!argp2) {
20324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20325 }
20326 arg2 = reinterpret_cast< wxBrush * >(argp2);
20327 {
20328 PyThreadState* __tstate = wxPyBeginAllowThreads();
20329 (arg1)->SetBackground((wxBrush const &)*arg2);
20330 wxPyEndAllowThreads(__tstate);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 }
20333 resultobj = SWIG_Py_Void();
20334 return resultobj;
20335 fail:
20336 return NULL;
20337 }
20338
20339
20340 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20341 PyObject *resultobj = 0;
20342 wxDC *arg1 = (wxDC *) 0 ;
20343 int arg2 ;
20344 void *argp1 = 0 ;
20345 int res1 = 0 ;
20346 int val2 ;
20347 int ecode2 = 0 ;
20348 PyObject * obj0 = 0 ;
20349 PyObject * obj1 = 0 ;
20350 char * kwnames[] = {
20351 (char *) "self",(char *) "mode", NULL
20352 };
20353
20354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20356 if (!SWIG_IsOK(res1)) {
20357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20358 }
20359 arg1 = reinterpret_cast< wxDC * >(argp1);
20360 ecode2 = SWIG_AsVal_int(obj1, &val2);
20361 if (!SWIG_IsOK(ecode2)) {
20362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20363 }
20364 arg2 = static_cast< int >(val2);
20365 {
20366 PyThreadState* __tstate = wxPyBeginAllowThreads();
20367 (arg1)->SetBackgroundMode(arg2);
20368 wxPyEndAllowThreads(__tstate);
20369 if (PyErr_Occurred()) SWIG_fail;
20370 }
20371 resultobj = SWIG_Py_Void();
20372 return resultobj;
20373 fail:
20374 return NULL;
20375 }
20376
20377
20378 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20379 PyObject *resultobj = 0;
20380 wxDC *arg1 = (wxDC *) 0 ;
20381 wxPalette *arg2 = 0 ;
20382 void *argp1 = 0 ;
20383 int res1 = 0 ;
20384 void *argp2 = 0 ;
20385 int res2 = 0 ;
20386 PyObject * obj0 = 0 ;
20387 PyObject * obj1 = 0 ;
20388 char * kwnames[] = {
20389 (char *) "self",(char *) "palette", NULL
20390 };
20391
20392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20394 if (!SWIG_IsOK(res1)) {
20395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20396 }
20397 arg1 = reinterpret_cast< wxDC * >(argp1);
20398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20399 if (!SWIG_IsOK(res2)) {
20400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20401 }
20402 if (!argp2) {
20403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20404 }
20405 arg2 = reinterpret_cast< wxPalette * >(argp2);
20406 {
20407 PyThreadState* __tstate = wxPyBeginAllowThreads();
20408 (arg1)->SetPalette((wxPalette const &)*arg2);
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 resultobj = SWIG_Py_Void();
20413 return resultobj;
20414 fail:
20415 return NULL;
20416 }
20417
20418
20419 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20420 PyObject *resultobj = 0;
20421 wxDC *arg1 = (wxDC *) 0 ;
20422 void *argp1 = 0 ;
20423 int res1 = 0 ;
20424 PyObject *swig_obj[1] ;
20425
20426 if (!args) SWIG_fail;
20427 swig_obj[0] = args;
20428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20429 if (!SWIG_IsOK(res1)) {
20430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20431 }
20432 arg1 = reinterpret_cast< wxDC * >(argp1);
20433 {
20434 PyThreadState* __tstate = wxPyBeginAllowThreads();
20435 (arg1)->DestroyClippingRegion();
20436 wxPyEndAllowThreads(__tstate);
20437 if (PyErr_Occurred()) SWIG_fail;
20438 }
20439 resultobj = SWIG_Py_Void();
20440 return resultobj;
20441 fail:
20442 return NULL;
20443 }
20444
20445
20446 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20447 PyObject *resultobj = 0;
20448 wxDC *arg1 = (wxDC *) 0 ;
20449 int *arg2 = (int *) 0 ;
20450 int *arg3 = (int *) 0 ;
20451 int *arg4 = (int *) 0 ;
20452 int *arg5 = (int *) 0 ;
20453 void *argp1 = 0 ;
20454 int res1 = 0 ;
20455 int temp2 ;
20456 int res2 = SWIG_TMPOBJ ;
20457 int temp3 ;
20458 int res3 = SWIG_TMPOBJ ;
20459 int temp4 ;
20460 int res4 = SWIG_TMPOBJ ;
20461 int temp5 ;
20462 int res5 = SWIG_TMPOBJ ;
20463 PyObject *swig_obj[1] ;
20464
20465 arg2 = &temp2;
20466 arg3 = &temp3;
20467 arg4 = &temp4;
20468 arg5 = &temp5;
20469 if (!args) SWIG_fail;
20470 swig_obj[0] = args;
20471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20472 if (!SWIG_IsOK(res1)) {
20473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20474 }
20475 arg1 = reinterpret_cast< wxDC * >(argp1);
20476 {
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 resultobj = SWIG_Py_Void();
20483 if (SWIG_IsTmpObj(res2)) {
20484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20485 } else {
20486 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20487 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20488 }
20489 if (SWIG_IsTmpObj(res3)) {
20490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20491 } else {
20492 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20494 }
20495 if (SWIG_IsTmpObj(res4)) {
20496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20497 } else {
20498 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20500 }
20501 if (SWIG_IsTmpObj(res5)) {
20502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20503 } else {
20504 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20506 }
20507 return resultobj;
20508 fail:
20509 return NULL;
20510 }
20511
20512
20513 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20514 PyObject *resultobj = 0;
20515 wxDC *arg1 = (wxDC *) 0 ;
20516 wxRect result;
20517 void *argp1 = 0 ;
20518 int res1 = 0 ;
20519 PyObject *swig_obj[1] ;
20520
20521 if (!args) SWIG_fail;
20522 swig_obj[0] = args;
20523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20524 if (!SWIG_IsOK(res1)) {
20525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20526 }
20527 arg1 = reinterpret_cast< wxDC * >(argp1);
20528 {
20529 PyThreadState* __tstate = wxPyBeginAllowThreads();
20530 result = wxDC_GetClippingRect(arg1);
20531 wxPyEndAllowThreads(__tstate);
20532 if (PyErr_Occurred()) SWIG_fail;
20533 }
20534 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20535 return resultobj;
20536 fail:
20537 return NULL;
20538 }
20539
20540
20541 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20542 PyObject *resultobj = 0;
20543 wxDC *arg1 = (wxDC *) 0 ;
20544 int result;
20545 void *argp1 = 0 ;
20546 int res1 = 0 ;
20547 PyObject *swig_obj[1] ;
20548
20549 if (!args) SWIG_fail;
20550 swig_obj[0] = args;
20551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20552 if (!SWIG_IsOK(res1)) {
20553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20554 }
20555 arg1 = reinterpret_cast< wxDC * >(argp1);
20556 {
20557 PyThreadState* __tstate = wxPyBeginAllowThreads();
20558 result = (int)((wxDC const *)arg1)->GetCharHeight();
20559 wxPyEndAllowThreads(__tstate);
20560 if (PyErr_Occurred()) SWIG_fail;
20561 }
20562 resultobj = SWIG_From_int(static_cast< int >(result));
20563 return resultobj;
20564 fail:
20565 return NULL;
20566 }
20567
20568
20569 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20570 PyObject *resultobj = 0;
20571 wxDC *arg1 = (wxDC *) 0 ;
20572 int result;
20573 void *argp1 = 0 ;
20574 int res1 = 0 ;
20575 PyObject *swig_obj[1] ;
20576
20577 if (!args) SWIG_fail;
20578 swig_obj[0] = args;
20579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20580 if (!SWIG_IsOK(res1)) {
20581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20582 }
20583 arg1 = reinterpret_cast< wxDC * >(argp1);
20584 {
20585 PyThreadState* __tstate = wxPyBeginAllowThreads();
20586 result = (int)((wxDC const *)arg1)->GetCharWidth();
20587 wxPyEndAllowThreads(__tstate);
20588 if (PyErr_Occurred()) SWIG_fail;
20589 }
20590 resultobj = SWIG_From_int(static_cast< int >(result));
20591 return resultobj;
20592 fail:
20593 return NULL;
20594 }
20595
20596
20597 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj = 0;
20599 wxDC *arg1 = (wxDC *) 0 ;
20600 wxString *arg2 = 0 ;
20601 int *arg3 = (int *) 0 ;
20602 int *arg4 = (int *) 0 ;
20603 void *argp1 = 0 ;
20604 int res1 = 0 ;
20605 bool temp2 = false ;
20606 int temp3 ;
20607 int res3 = SWIG_TMPOBJ ;
20608 int temp4 ;
20609 int res4 = SWIG_TMPOBJ ;
20610 PyObject * obj0 = 0 ;
20611 PyObject * obj1 = 0 ;
20612 char * kwnames[] = {
20613 (char *) "self",(char *) "string", NULL
20614 };
20615
20616 arg3 = &temp3;
20617 arg4 = &temp4;
20618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20620 if (!SWIG_IsOK(res1)) {
20621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20622 }
20623 arg1 = reinterpret_cast< wxDC * >(argp1);
20624 {
20625 arg2 = wxString_in_helper(obj1);
20626 if (arg2 == NULL) SWIG_fail;
20627 temp2 = true;
20628 }
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20632 wxPyEndAllowThreads(__tstate);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 }
20635 resultobj = SWIG_Py_Void();
20636 if (SWIG_IsTmpObj(res3)) {
20637 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20638 } else {
20639 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20640 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20641 }
20642 if (SWIG_IsTmpObj(res4)) {
20643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20644 } else {
20645 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20647 }
20648 {
20649 if (temp2)
20650 delete arg2;
20651 }
20652 return resultobj;
20653 fail:
20654 {
20655 if (temp2)
20656 delete arg2;
20657 }
20658 return NULL;
20659 }
20660
20661
20662 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20663 PyObject *resultobj = 0;
20664 wxDC *arg1 = (wxDC *) 0 ;
20665 wxString *arg2 = 0 ;
20666 int *arg3 = (int *) 0 ;
20667 int *arg4 = (int *) 0 ;
20668 int *arg5 = (int *) 0 ;
20669 int *arg6 = (int *) 0 ;
20670 wxFont *arg7 = (wxFont *) NULL ;
20671 void *argp1 = 0 ;
20672 int res1 = 0 ;
20673 bool temp2 = false ;
20674 int temp3 ;
20675 int res3 = SWIG_TMPOBJ ;
20676 int temp4 ;
20677 int res4 = SWIG_TMPOBJ ;
20678 int temp5 ;
20679 int res5 = SWIG_TMPOBJ ;
20680 int temp6 ;
20681 int res6 = SWIG_TMPOBJ ;
20682 void *argp7 = 0 ;
20683 int res7 = 0 ;
20684 PyObject * obj0 = 0 ;
20685 PyObject * obj1 = 0 ;
20686 PyObject * obj2 = 0 ;
20687 char * kwnames[] = {
20688 (char *) "self",(char *) "string",(char *) "font", NULL
20689 };
20690
20691 arg3 = &temp3;
20692 arg4 = &temp4;
20693 arg5 = &temp5;
20694 arg6 = &temp6;
20695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20697 if (!SWIG_IsOK(res1)) {
20698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20699 }
20700 arg1 = reinterpret_cast< wxDC * >(argp1);
20701 {
20702 arg2 = wxString_in_helper(obj1);
20703 if (arg2 == NULL) SWIG_fail;
20704 temp2 = true;
20705 }
20706 if (obj2) {
20707 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20708 if (!SWIG_IsOK(res7)) {
20709 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20710 }
20711 arg7 = reinterpret_cast< wxFont * >(argp7);
20712 }
20713 {
20714 PyThreadState* __tstate = wxPyBeginAllowThreads();
20715 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20716 wxPyEndAllowThreads(__tstate);
20717 if (PyErr_Occurred()) SWIG_fail;
20718 }
20719 resultobj = SWIG_Py_Void();
20720 if (SWIG_IsTmpObj(res3)) {
20721 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20722 } else {
20723 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20724 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20725 }
20726 if (SWIG_IsTmpObj(res4)) {
20727 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20728 } else {
20729 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20730 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20731 }
20732 if (SWIG_IsTmpObj(res5)) {
20733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20734 } else {
20735 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20737 }
20738 if (SWIG_IsTmpObj(res6)) {
20739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20740 } else {
20741 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20743 }
20744 {
20745 if (temp2)
20746 delete arg2;
20747 }
20748 return resultobj;
20749 fail:
20750 {
20751 if (temp2)
20752 delete arg2;
20753 }
20754 return NULL;
20755 }
20756
20757
20758 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20759 PyObject *resultobj = 0;
20760 wxDC *arg1 = (wxDC *) 0 ;
20761 wxString *arg2 = 0 ;
20762 int *arg3 = (int *) 0 ;
20763 int *arg4 = (int *) 0 ;
20764 int *arg5 = (int *) 0 ;
20765 wxFont *arg6 = (wxFont *) NULL ;
20766 void *argp1 = 0 ;
20767 int res1 = 0 ;
20768 bool temp2 = false ;
20769 int temp3 ;
20770 int res3 = SWIG_TMPOBJ ;
20771 int temp4 ;
20772 int res4 = SWIG_TMPOBJ ;
20773 int temp5 ;
20774 int res5 = SWIG_TMPOBJ ;
20775 void *argp6 = 0 ;
20776 int res6 = 0 ;
20777 PyObject * obj0 = 0 ;
20778 PyObject * obj1 = 0 ;
20779 PyObject * obj2 = 0 ;
20780 char * kwnames[] = {
20781 (char *) "self",(char *) "text",(char *) "font", NULL
20782 };
20783
20784 arg3 = &temp3;
20785 arg4 = &temp4;
20786 arg5 = &temp5;
20787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20789 if (!SWIG_IsOK(res1)) {
20790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20791 }
20792 arg1 = reinterpret_cast< wxDC * >(argp1);
20793 {
20794 arg2 = wxString_in_helper(obj1);
20795 if (arg2 == NULL) SWIG_fail;
20796 temp2 = true;
20797 }
20798 if (obj2) {
20799 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20800 if (!SWIG_IsOK(res6)) {
20801 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20802 }
20803 arg6 = reinterpret_cast< wxFont * >(argp6);
20804 }
20805 {
20806 PyThreadState* __tstate = wxPyBeginAllowThreads();
20807 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20808 wxPyEndAllowThreads(__tstate);
20809 if (PyErr_Occurred()) SWIG_fail;
20810 }
20811 resultobj = SWIG_Py_Void();
20812 if (SWIG_IsTmpObj(res3)) {
20813 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20814 } else {
20815 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20816 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20817 }
20818 if (SWIG_IsTmpObj(res4)) {
20819 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20820 } else {
20821 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20822 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20823 }
20824 if (SWIG_IsTmpObj(res5)) {
20825 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20826 } else {
20827 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20829 }
20830 {
20831 if (temp2)
20832 delete arg2;
20833 }
20834 return resultobj;
20835 fail:
20836 {
20837 if (temp2)
20838 delete arg2;
20839 }
20840 return NULL;
20841 }
20842
20843
20844 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20845 PyObject *resultobj = 0;
20846 wxDC *arg1 = (wxDC *) 0 ;
20847 wxString *arg2 = 0 ;
20848 wxArrayInt result;
20849 void *argp1 = 0 ;
20850 int res1 = 0 ;
20851 bool temp2 = false ;
20852 PyObject * obj0 = 0 ;
20853 PyObject * obj1 = 0 ;
20854 char * kwnames[] = {
20855 (char *) "self",(char *) "text", NULL
20856 };
20857
20858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20860 if (!SWIG_IsOK(res1)) {
20861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20862 }
20863 arg1 = reinterpret_cast< wxDC * >(argp1);
20864 {
20865 arg2 = wxString_in_helper(obj1);
20866 if (arg2 == NULL) SWIG_fail;
20867 temp2 = true;
20868 }
20869 {
20870 PyThreadState* __tstate = wxPyBeginAllowThreads();
20871 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20872 wxPyEndAllowThreads(__tstate);
20873 if (PyErr_Occurred()) SWIG_fail;
20874 }
20875 {
20876 resultobj = wxArrayInt2PyList_helper(result);
20877 }
20878 {
20879 if (temp2)
20880 delete arg2;
20881 }
20882 return resultobj;
20883 fail:
20884 {
20885 if (temp2)
20886 delete arg2;
20887 }
20888 return NULL;
20889 }
20890
20891
20892 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20893 PyObject *resultobj = 0;
20894 wxDC *arg1 = (wxDC *) 0 ;
20895 wxSize result;
20896 void *argp1 = 0 ;
20897 int res1 = 0 ;
20898 PyObject *swig_obj[1] ;
20899
20900 if (!args) SWIG_fail;
20901 swig_obj[0] = args;
20902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20903 if (!SWIG_IsOK(res1)) {
20904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20905 }
20906 arg1 = reinterpret_cast< wxDC * >(argp1);
20907 {
20908 PyThreadState* __tstate = wxPyBeginAllowThreads();
20909 result = (arg1)->GetSize();
20910 wxPyEndAllowThreads(__tstate);
20911 if (PyErr_Occurred()) SWIG_fail;
20912 }
20913 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20914 return resultobj;
20915 fail:
20916 return NULL;
20917 }
20918
20919
20920 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20921 PyObject *resultobj = 0;
20922 wxDC *arg1 = (wxDC *) 0 ;
20923 int *arg2 = (int *) 0 ;
20924 int *arg3 = (int *) 0 ;
20925 void *argp1 = 0 ;
20926 int res1 = 0 ;
20927 int temp2 ;
20928 int res2 = SWIG_TMPOBJ ;
20929 int temp3 ;
20930 int res3 = SWIG_TMPOBJ ;
20931 PyObject *swig_obj[1] ;
20932
20933 arg2 = &temp2;
20934 arg3 = &temp3;
20935 if (!args) SWIG_fail;
20936 swig_obj[0] = args;
20937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20938 if (!SWIG_IsOK(res1)) {
20939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20940 }
20941 arg1 = reinterpret_cast< wxDC * >(argp1);
20942 {
20943 PyThreadState* __tstate = wxPyBeginAllowThreads();
20944 (arg1)->GetSize(arg2,arg3);
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_Py_Void();
20949 if (SWIG_IsTmpObj(res2)) {
20950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20951 } else {
20952 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20954 }
20955 if (SWIG_IsTmpObj(res3)) {
20956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20957 } else {
20958 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20960 }
20961 return resultobj;
20962 fail:
20963 return NULL;
20964 }
20965
20966
20967 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20968 PyObject *resultobj = 0;
20969 wxDC *arg1 = (wxDC *) 0 ;
20970 wxSize result;
20971 void *argp1 = 0 ;
20972 int res1 = 0 ;
20973 PyObject *swig_obj[1] ;
20974
20975 if (!args) SWIG_fail;
20976 swig_obj[0] = args;
20977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20978 if (!SWIG_IsOK(res1)) {
20979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20980 }
20981 arg1 = reinterpret_cast< wxDC * >(argp1);
20982 {
20983 PyThreadState* __tstate = wxPyBeginAllowThreads();
20984 result = ((wxDC const *)arg1)->GetSizeMM();
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
20988 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20989 return resultobj;
20990 fail:
20991 return NULL;
20992 }
20993
20994
20995 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20996 PyObject *resultobj = 0;
20997 wxDC *arg1 = (wxDC *) 0 ;
20998 int *arg2 = (int *) 0 ;
20999 int *arg3 = (int *) 0 ;
21000 void *argp1 = 0 ;
21001 int res1 = 0 ;
21002 int temp2 ;
21003 int res2 = SWIG_TMPOBJ ;
21004 int temp3 ;
21005 int res3 = SWIG_TMPOBJ ;
21006 PyObject *swig_obj[1] ;
21007
21008 arg2 = &temp2;
21009 arg3 = &temp3;
21010 if (!args) SWIG_fail;
21011 swig_obj[0] = args;
21012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21013 if (!SWIG_IsOK(res1)) {
21014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21015 }
21016 arg1 = reinterpret_cast< wxDC * >(argp1);
21017 {
21018 PyThreadState* __tstate = wxPyBeginAllowThreads();
21019 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21020 wxPyEndAllowThreads(__tstate);
21021 if (PyErr_Occurred()) SWIG_fail;
21022 }
21023 resultobj = SWIG_Py_Void();
21024 if (SWIG_IsTmpObj(res2)) {
21025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21026 } else {
21027 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21029 }
21030 if (SWIG_IsTmpObj(res3)) {
21031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21032 } else {
21033 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21035 }
21036 return resultobj;
21037 fail:
21038 return NULL;
21039 }
21040
21041
21042 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21043 PyObject *resultobj = 0;
21044 wxDC *arg1 = (wxDC *) 0 ;
21045 int arg2 ;
21046 int result;
21047 void *argp1 = 0 ;
21048 int res1 = 0 ;
21049 int val2 ;
21050 int ecode2 = 0 ;
21051 PyObject * obj0 = 0 ;
21052 PyObject * obj1 = 0 ;
21053 char * kwnames[] = {
21054 (char *) "self",(char *) "x", NULL
21055 };
21056
21057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21059 if (!SWIG_IsOK(res1)) {
21060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21061 }
21062 arg1 = reinterpret_cast< wxDC * >(argp1);
21063 ecode2 = SWIG_AsVal_int(obj1, &val2);
21064 if (!SWIG_IsOK(ecode2)) {
21065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21066 }
21067 arg2 = static_cast< int >(val2);
21068 {
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21071 wxPyEndAllowThreads(__tstate);
21072 if (PyErr_Occurred()) SWIG_fail;
21073 }
21074 resultobj = SWIG_From_int(static_cast< int >(result));
21075 return resultobj;
21076 fail:
21077 return NULL;
21078 }
21079
21080
21081 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21082 PyObject *resultobj = 0;
21083 wxDC *arg1 = (wxDC *) 0 ;
21084 int arg2 ;
21085 int result;
21086 void *argp1 = 0 ;
21087 int res1 = 0 ;
21088 int val2 ;
21089 int ecode2 = 0 ;
21090 PyObject * obj0 = 0 ;
21091 PyObject * obj1 = 0 ;
21092 char * kwnames[] = {
21093 (char *) "self",(char *) "y", NULL
21094 };
21095
21096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21098 if (!SWIG_IsOK(res1)) {
21099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21100 }
21101 arg1 = reinterpret_cast< wxDC * >(argp1);
21102 ecode2 = SWIG_AsVal_int(obj1, &val2);
21103 if (!SWIG_IsOK(ecode2)) {
21104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21105 }
21106 arg2 = static_cast< int >(val2);
21107 {
21108 PyThreadState* __tstate = wxPyBeginAllowThreads();
21109 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21110 wxPyEndAllowThreads(__tstate);
21111 if (PyErr_Occurred()) SWIG_fail;
21112 }
21113 resultobj = SWIG_From_int(static_cast< int >(result));
21114 return resultobj;
21115 fail:
21116 return NULL;
21117 }
21118
21119
21120 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21121 PyObject *resultobj = 0;
21122 wxDC *arg1 = (wxDC *) 0 ;
21123 int arg2 ;
21124 int result;
21125 void *argp1 = 0 ;
21126 int res1 = 0 ;
21127 int val2 ;
21128 int ecode2 = 0 ;
21129 PyObject * obj0 = 0 ;
21130 PyObject * obj1 = 0 ;
21131 char * kwnames[] = {
21132 (char *) "self",(char *) "x", NULL
21133 };
21134
21135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21137 if (!SWIG_IsOK(res1)) {
21138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21139 }
21140 arg1 = reinterpret_cast< wxDC * >(argp1);
21141 ecode2 = SWIG_AsVal_int(obj1, &val2);
21142 if (!SWIG_IsOK(ecode2)) {
21143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21144 }
21145 arg2 = static_cast< int >(val2);
21146 {
21147 PyThreadState* __tstate = wxPyBeginAllowThreads();
21148 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21149 wxPyEndAllowThreads(__tstate);
21150 if (PyErr_Occurred()) SWIG_fail;
21151 }
21152 resultobj = SWIG_From_int(static_cast< int >(result));
21153 return resultobj;
21154 fail:
21155 return NULL;
21156 }
21157
21158
21159 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21160 PyObject *resultobj = 0;
21161 wxDC *arg1 = (wxDC *) 0 ;
21162 int arg2 ;
21163 int result;
21164 void *argp1 = 0 ;
21165 int res1 = 0 ;
21166 int val2 ;
21167 int ecode2 = 0 ;
21168 PyObject * obj0 = 0 ;
21169 PyObject * obj1 = 0 ;
21170 char * kwnames[] = {
21171 (char *) "self",(char *) "y", NULL
21172 };
21173
21174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21176 if (!SWIG_IsOK(res1)) {
21177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21178 }
21179 arg1 = reinterpret_cast< wxDC * >(argp1);
21180 ecode2 = SWIG_AsVal_int(obj1, &val2);
21181 if (!SWIG_IsOK(ecode2)) {
21182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21183 }
21184 arg2 = static_cast< int >(val2);
21185 {
21186 PyThreadState* __tstate = wxPyBeginAllowThreads();
21187 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21188 wxPyEndAllowThreads(__tstate);
21189 if (PyErr_Occurred()) SWIG_fail;
21190 }
21191 resultobj = SWIG_From_int(static_cast< int >(result));
21192 return resultobj;
21193 fail:
21194 return NULL;
21195 }
21196
21197
21198 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21199 PyObject *resultobj = 0;
21200 wxDC *arg1 = (wxDC *) 0 ;
21201 int arg2 ;
21202 int result;
21203 void *argp1 = 0 ;
21204 int res1 = 0 ;
21205 int val2 ;
21206 int ecode2 = 0 ;
21207 PyObject * obj0 = 0 ;
21208 PyObject * obj1 = 0 ;
21209 char * kwnames[] = {
21210 (char *) "self",(char *) "x", NULL
21211 };
21212
21213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21215 if (!SWIG_IsOK(res1)) {
21216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21217 }
21218 arg1 = reinterpret_cast< wxDC * >(argp1);
21219 ecode2 = SWIG_AsVal_int(obj1, &val2);
21220 if (!SWIG_IsOK(ecode2)) {
21221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21222 }
21223 arg2 = static_cast< int >(val2);
21224 {
21225 PyThreadState* __tstate = wxPyBeginAllowThreads();
21226 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21227 wxPyEndAllowThreads(__tstate);
21228 if (PyErr_Occurred()) SWIG_fail;
21229 }
21230 resultobj = SWIG_From_int(static_cast< int >(result));
21231 return resultobj;
21232 fail:
21233 return NULL;
21234 }
21235
21236
21237 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21238 PyObject *resultobj = 0;
21239 wxDC *arg1 = (wxDC *) 0 ;
21240 int arg2 ;
21241 int result;
21242 void *argp1 = 0 ;
21243 int res1 = 0 ;
21244 int val2 ;
21245 int ecode2 = 0 ;
21246 PyObject * obj0 = 0 ;
21247 PyObject * obj1 = 0 ;
21248 char * kwnames[] = {
21249 (char *) "self",(char *) "y", NULL
21250 };
21251
21252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21254 if (!SWIG_IsOK(res1)) {
21255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21256 }
21257 arg1 = reinterpret_cast< wxDC * >(argp1);
21258 ecode2 = SWIG_AsVal_int(obj1, &val2);
21259 if (!SWIG_IsOK(ecode2)) {
21260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21261 }
21262 arg2 = static_cast< int >(val2);
21263 {
21264 PyThreadState* __tstate = wxPyBeginAllowThreads();
21265 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21266 wxPyEndAllowThreads(__tstate);
21267 if (PyErr_Occurred()) SWIG_fail;
21268 }
21269 resultobj = SWIG_From_int(static_cast< int >(result));
21270 return resultobj;
21271 fail:
21272 return NULL;
21273 }
21274
21275
21276 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21277 PyObject *resultobj = 0;
21278 wxDC *arg1 = (wxDC *) 0 ;
21279 int arg2 ;
21280 int result;
21281 void *argp1 = 0 ;
21282 int res1 = 0 ;
21283 int val2 ;
21284 int ecode2 = 0 ;
21285 PyObject * obj0 = 0 ;
21286 PyObject * obj1 = 0 ;
21287 char * kwnames[] = {
21288 (char *) "self",(char *) "x", NULL
21289 };
21290
21291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21293 if (!SWIG_IsOK(res1)) {
21294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21295 }
21296 arg1 = reinterpret_cast< wxDC * >(argp1);
21297 ecode2 = SWIG_AsVal_int(obj1, &val2);
21298 if (!SWIG_IsOK(ecode2)) {
21299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21300 }
21301 arg2 = static_cast< int >(val2);
21302 {
21303 PyThreadState* __tstate = wxPyBeginAllowThreads();
21304 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21305 wxPyEndAllowThreads(__tstate);
21306 if (PyErr_Occurred()) SWIG_fail;
21307 }
21308 resultobj = SWIG_From_int(static_cast< int >(result));
21309 return resultobj;
21310 fail:
21311 return NULL;
21312 }
21313
21314
21315 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21316 PyObject *resultobj = 0;
21317 wxDC *arg1 = (wxDC *) 0 ;
21318 int arg2 ;
21319 int result;
21320 void *argp1 = 0 ;
21321 int res1 = 0 ;
21322 int val2 ;
21323 int ecode2 = 0 ;
21324 PyObject * obj0 = 0 ;
21325 PyObject * obj1 = 0 ;
21326 char * kwnames[] = {
21327 (char *) "self",(char *) "y", NULL
21328 };
21329
21330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21332 if (!SWIG_IsOK(res1)) {
21333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21334 }
21335 arg1 = reinterpret_cast< wxDC * >(argp1);
21336 ecode2 = SWIG_AsVal_int(obj1, &val2);
21337 if (!SWIG_IsOK(ecode2)) {
21338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21339 }
21340 arg2 = static_cast< int >(val2);
21341 {
21342 PyThreadState* __tstate = wxPyBeginAllowThreads();
21343 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21344 wxPyEndAllowThreads(__tstate);
21345 if (PyErr_Occurred()) SWIG_fail;
21346 }
21347 resultobj = SWIG_From_int(static_cast< int >(result));
21348 return resultobj;
21349 fail:
21350 return NULL;
21351 }
21352
21353
21354 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21355 PyObject *resultobj = 0;
21356 wxDC *arg1 = (wxDC *) 0 ;
21357 bool result;
21358 void *argp1 = 0 ;
21359 int res1 = 0 ;
21360 PyObject *swig_obj[1] ;
21361
21362 if (!args) SWIG_fail;
21363 swig_obj[0] = args;
21364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21365 if (!SWIG_IsOK(res1)) {
21366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21367 }
21368 arg1 = reinterpret_cast< wxDC * >(argp1);
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21372 wxPyEndAllowThreads(__tstate);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 }
21375 {
21376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21377 }
21378 return resultobj;
21379 fail:
21380 return NULL;
21381 }
21382
21383
21384 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21385 PyObject *resultobj = 0;
21386 wxDC *arg1 = (wxDC *) 0 ;
21387 bool result;
21388 void *argp1 = 0 ;
21389 int res1 = 0 ;
21390 PyObject *swig_obj[1] ;
21391
21392 if (!args) SWIG_fail;
21393 swig_obj[0] = args;
21394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21395 if (!SWIG_IsOK(res1)) {
21396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21397 }
21398 arg1 = reinterpret_cast< wxDC * >(argp1);
21399 {
21400 PyThreadState* __tstate = wxPyBeginAllowThreads();
21401 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21402 wxPyEndAllowThreads(__tstate);
21403 if (PyErr_Occurred()) SWIG_fail;
21404 }
21405 {
21406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21407 }
21408 return resultobj;
21409 fail:
21410 return NULL;
21411 }
21412
21413
21414 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21415 PyObject *resultobj = 0;
21416 wxDC *arg1 = (wxDC *) 0 ;
21417 int result;
21418 void *argp1 = 0 ;
21419 int res1 = 0 ;
21420 PyObject *swig_obj[1] ;
21421
21422 if (!args) SWIG_fail;
21423 swig_obj[0] = args;
21424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21425 if (!SWIG_IsOK(res1)) {
21426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21427 }
21428 arg1 = reinterpret_cast< wxDC * >(argp1);
21429 {
21430 PyThreadState* __tstate = wxPyBeginAllowThreads();
21431 result = (int)((wxDC const *)arg1)->GetDepth();
21432 wxPyEndAllowThreads(__tstate);
21433 if (PyErr_Occurred()) SWIG_fail;
21434 }
21435 resultobj = SWIG_From_int(static_cast< int >(result));
21436 return resultobj;
21437 fail:
21438 return NULL;
21439 }
21440
21441
21442 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21443 PyObject *resultobj = 0;
21444 wxDC *arg1 = (wxDC *) 0 ;
21445 wxSize result;
21446 void *argp1 = 0 ;
21447 int res1 = 0 ;
21448 PyObject *swig_obj[1] ;
21449
21450 if (!args) SWIG_fail;
21451 swig_obj[0] = args;
21452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21453 if (!SWIG_IsOK(res1)) {
21454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21455 }
21456 arg1 = reinterpret_cast< wxDC * >(argp1);
21457 {
21458 PyThreadState* __tstate = wxPyBeginAllowThreads();
21459 result = ((wxDC const *)arg1)->GetPPI();
21460 wxPyEndAllowThreads(__tstate);
21461 if (PyErr_Occurred()) SWIG_fail;
21462 }
21463 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21464 return resultobj;
21465 fail:
21466 return NULL;
21467 }
21468
21469
21470 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21471 PyObject *resultobj = 0;
21472 wxDC *arg1 = (wxDC *) 0 ;
21473 bool result;
21474 void *argp1 = 0 ;
21475 int res1 = 0 ;
21476 PyObject *swig_obj[1] ;
21477
21478 if (!args) SWIG_fail;
21479 swig_obj[0] = args;
21480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21481 if (!SWIG_IsOK(res1)) {
21482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21483 }
21484 arg1 = reinterpret_cast< wxDC * >(argp1);
21485 {
21486 PyThreadState* __tstate = wxPyBeginAllowThreads();
21487 result = (bool)((wxDC const *)arg1)->IsOk();
21488 wxPyEndAllowThreads(__tstate);
21489 if (PyErr_Occurred()) SWIG_fail;
21490 }
21491 {
21492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21493 }
21494 return resultobj;
21495 fail:
21496 return NULL;
21497 }
21498
21499
21500 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21501 PyObject *resultobj = 0;
21502 wxDC *arg1 = (wxDC *) 0 ;
21503 int result;
21504 void *argp1 = 0 ;
21505 int res1 = 0 ;
21506 PyObject *swig_obj[1] ;
21507
21508 if (!args) SWIG_fail;
21509 swig_obj[0] = args;
21510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21511 if (!SWIG_IsOK(res1)) {
21512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21513 }
21514 arg1 = reinterpret_cast< wxDC * >(argp1);
21515 {
21516 PyThreadState* __tstate = wxPyBeginAllowThreads();
21517 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21518 wxPyEndAllowThreads(__tstate);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 }
21521 resultobj = SWIG_From_int(static_cast< int >(result));
21522 return resultobj;
21523 fail:
21524 return NULL;
21525 }
21526
21527
21528 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21529 PyObject *resultobj = 0;
21530 wxDC *arg1 = (wxDC *) 0 ;
21531 wxBrush *result = 0 ;
21532 void *argp1 = 0 ;
21533 int res1 = 0 ;
21534 PyObject *swig_obj[1] ;
21535
21536 if (!args) SWIG_fail;
21537 swig_obj[0] = args;
21538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21539 if (!SWIG_IsOK(res1)) {
21540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21541 }
21542 arg1 = reinterpret_cast< wxDC * >(argp1);
21543 {
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 {
21546 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21547 result = (wxBrush *) &_result_ref;
21548 }
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 {
21553 wxBrush* resultptr = new wxBrush(*result);
21554 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21555 }
21556 return resultobj;
21557 fail:
21558 return NULL;
21559 }
21560
21561
21562 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21563 PyObject *resultobj = 0;
21564 wxDC *arg1 = (wxDC *) 0 ;
21565 wxBrush *result = 0 ;
21566 void *argp1 = 0 ;
21567 int res1 = 0 ;
21568 PyObject *swig_obj[1] ;
21569
21570 if (!args) SWIG_fail;
21571 swig_obj[0] = args;
21572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21573 if (!SWIG_IsOK(res1)) {
21574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21575 }
21576 arg1 = reinterpret_cast< wxDC * >(argp1);
21577 {
21578 PyThreadState* __tstate = wxPyBeginAllowThreads();
21579 {
21580 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21581 result = (wxBrush *) &_result_ref;
21582 }
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 {
21587 wxBrush* resultptr = new wxBrush(*result);
21588 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21589 }
21590 return resultobj;
21591 fail:
21592 return NULL;
21593 }
21594
21595
21596 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21597 PyObject *resultobj = 0;
21598 wxDC *arg1 = (wxDC *) 0 ;
21599 wxFont *result = 0 ;
21600 void *argp1 = 0 ;
21601 int res1 = 0 ;
21602 PyObject *swig_obj[1] ;
21603
21604 if (!args) SWIG_fail;
21605 swig_obj[0] = args;
21606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21607 if (!SWIG_IsOK(res1)) {
21608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21609 }
21610 arg1 = reinterpret_cast< wxDC * >(argp1);
21611 {
21612 PyThreadState* __tstate = wxPyBeginAllowThreads();
21613 {
21614 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21615 result = (wxFont *) &_result_ref;
21616 }
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 {
21621 wxFont* resultptr = new wxFont(*result);
21622 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21623 }
21624 return resultobj;
21625 fail:
21626 return NULL;
21627 }
21628
21629
21630 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21631 PyObject *resultobj = 0;
21632 wxDC *arg1 = (wxDC *) 0 ;
21633 wxPen *result = 0 ;
21634 void *argp1 = 0 ;
21635 int res1 = 0 ;
21636 PyObject *swig_obj[1] ;
21637
21638 if (!args) SWIG_fail;
21639 swig_obj[0] = args;
21640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21641 if (!SWIG_IsOK(res1)) {
21642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21643 }
21644 arg1 = reinterpret_cast< wxDC * >(argp1);
21645 {
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 {
21648 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21649 result = (wxPen *) &_result_ref;
21650 }
21651 wxPyEndAllowThreads(__tstate);
21652 if (PyErr_Occurred()) SWIG_fail;
21653 }
21654 {
21655 wxPen* resultptr = new wxPen(*result);
21656 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21657 }
21658 return resultobj;
21659 fail:
21660 return NULL;
21661 }
21662
21663
21664 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21665 PyObject *resultobj = 0;
21666 wxDC *arg1 = (wxDC *) 0 ;
21667 wxColour *result = 0 ;
21668 void *argp1 = 0 ;
21669 int res1 = 0 ;
21670 PyObject *swig_obj[1] ;
21671
21672 if (!args) SWIG_fail;
21673 swig_obj[0] = args;
21674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21675 if (!SWIG_IsOK(res1)) {
21676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21677 }
21678 arg1 = reinterpret_cast< wxDC * >(argp1);
21679 {
21680 PyThreadState* __tstate = wxPyBeginAllowThreads();
21681 {
21682 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21683 result = (wxColour *) &_result_ref;
21684 }
21685 wxPyEndAllowThreads(__tstate);
21686 if (PyErr_Occurred()) SWIG_fail;
21687 }
21688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21689 return resultobj;
21690 fail:
21691 return NULL;
21692 }
21693
21694
21695 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21696 PyObject *resultobj = 0;
21697 wxDC *arg1 = (wxDC *) 0 ;
21698 wxColour *result = 0 ;
21699 void *argp1 = 0 ;
21700 int res1 = 0 ;
21701 PyObject *swig_obj[1] ;
21702
21703 if (!args) SWIG_fail;
21704 swig_obj[0] = args;
21705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21706 if (!SWIG_IsOK(res1)) {
21707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21708 }
21709 arg1 = reinterpret_cast< wxDC * >(argp1);
21710 {
21711 PyThreadState* __tstate = wxPyBeginAllowThreads();
21712 {
21713 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21714 result = (wxColour *) &_result_ref;
21715 }
21716 wxPyEndAllowThreads(__tstate);
21717 if (PyErr_Occurred()) SWIG_fail;
21718 }
21719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21720 return resultobj;
21721 fail:
21722 return NULL;
21723 }
21724
21725
21726 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21727 PyObject *resultobj = 0;
21728 wxDC *arg1 = (wxDC *) 0 ;
21729 wxColour *arg2 = 0 ;
21730 void *argp1 = 0 ;
21731 int res1 = 0 ;
21732 wxColour temp2 ;
21733 PyObject * obj0 = 0 ;
21734 PyObject * obj1 = 0 ;
21735 char * kwnames[] = {
21736 (char *) "self",(char *) "colour", NULL
21737 };
21738
21739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21741 if (!SWIG_IsOK(res1)) {
21742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21743 }
21744 arg1 = reinterpret_cast< wxDC * >(argp1);
21745 {
21746 arg2 = &temp2;
21747 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21748 }
21749 {
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
21751 (arg1)->SetTextForeground((wxColour const &)*arg2);
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 resultobj = SWIG_Py_Void();
21756 return resultobj;
21757 fail:
21758 return NULL;
21759 }
21760
21761
21762 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj = 0;
21764 wxDC *arg1 = (wxDC *) 0 ;
21765 wxColour *arg2 = 0 ;
21766 void *argp1 = 0 ;
21767 int res1 = 0 ;
21768 wxColour temp2 ;
21769 PyObject * obj0 = 0 ;
21770 PyObject * obj1 = 0 ;
21771 char * kwnames[] = {
21772 (char *) "self",(char *) "colour", NULL
21773 };
21774
21775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21777 if (!SWIG_IsOK(res1)) {
21778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21779 }
21780 arg1 = reinterpret_cast< wxDC * >(argp1);
21781 {
21782 arg2 = &temp2;
21783 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21784 }
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 (arg1)->SetTextBackground((wxColour const &)*arg2);
21788 wxPyEndAllowThreads(__tstate);
21789 if (PyErr_Occurred()) SWIG_fail;
21790 }
21791 resultobj = SWIG_Py_Void();
21792 return resultobj;
21793 fail:
21794 return NULL;
21795 }
21796
21797
21798 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21799 PyObject *resultobj = 0;
21800 wxDC *arg1 = (wxDC *) 0 ;
21801 int result;
21802 void *argp1 = 0 ;
21803 int res1 = 0 ;
21804 PyObject *swig_obj[1] ;
21805
21806 if (!args) SWIG_fail;
21807 swig_obj[0] = args;
21808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21809 if (!SWIG_IsOK(res1)) {
21810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21811 }
21812 arg1 = reinterpret_cast< wxDC * >(argp1);
21813 {
21814 PyThreadState* __tstate = wxPyBeginAllowThreads();
21815 result = (int)((wxDC const *)arg1)->GetMapMode();
21816 wxPyEndAllowThreads(__tstate);
21817 if (PyErr_Occurred()) SWIG_fail;
21818 }
21819 resultobj = SWIG_From_int(static_cast< int >(result));
21820 return resultobj;
21821 fail:
21822 return NULL;
21823 }
21824
21825
21826 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21827 PyObject *resultobj = 0;
21828 wxDC *arg1 = (wxDC *) 0 ;
21829 int arg2 ;
21830 void *argp1 = 0 ;
21831 int res1 = 0 ;
21832 int val2 ;
21833 int ecode2 = 0 ;
21834 PyObject * obj0 = 0 ;
21835 PyObject * obj1 = 0 ;
21836 char * kwnames[] = {
21837 (char *) "self",(char *) "mode", NULL
21838 };
21839
21840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21842 if (!SWIG_IsOK(res1)) {
21843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21844 }
21845 arg1 = reinterpret_cast< wxDC * >(argp1);
21846 ecode2 = SWIG_AsVal_int(obj1, &val2);
21847 if (!SWIG_IsOK(ecode2)) {
21848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21849 }
21850 arg2 = static_cast< int >(val2);
21851 {
21852 PyThreadState* __tstate = wxPyBeginAllowThreads();
21853 (arg1)->SetMapMode(arg2);
21854 wxPyEndAllowThreads(__tstate);
21855 if (PyErr_Occurred()) SWIG_fail;
21856 }
21857 resultobj = SWIG_Py_Void();
21858 return resultobj;
21859 fail:
21860 return NULL;
21861 }
21862
21863
21864 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21865 PyObject *resultobj = 0;
21866 wxDC *arg1 = (wxDC *) 0 ;
21867 double *arg2 = (double *) 0 ;
21868 double *arg3 = (double *) 0 ;
21869 void *argp1 = 0 ;
21870 int res1 = 0 ;
21871 double temp2 ;
21872 int res2 = SWIG_TMPOBJ ;
21873 double temp3 ;
21874 int res3 = SWIG_TMPOBJ ;
21875 PyObject *swig_obj[1] ;
21876
21877 arg2 = &temp2;
21878 arg3 = &temp3;
21879 if (!args) SWIG_fail;
21880 swig_obj[0] = args;
21881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21882 if (!SWIG_IsOK(res1)) {
21883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21884 }
21885 arg1 = reinterpret_cast< wxDC * >(argp1);
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
21888 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21889 wxPyEndAllowThreads(__tstate);
21890 if (PyErr_Occurred()) SWIG_fail;
21891 }
21892 resultobj = SWIG_Py_Void();
21893 if (SWIG_IsTmpObj(res2)) {
21894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21895 } else {
21896 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21898 }
21899 if (SWIG_IsTmpObj(res3)) {
21900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21901 } else {
21902 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21904 }
21905 return resultobj;
21906 fail:
21907 return NULL;
21908 }
21909
21910
21911 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21912 PyObject *resultobj = 0;
21913 wxDC *arg1 = (wxDC *) 0 ;
21914 double arg2 ;
21915 double arg3 ;
21916 void *argp1 = 0 ;
21917 int res1 = 0 ;
21918 double val2 ;
21919 int ecode2 = 0 ;
21920 double val3 ;
21921 int ecode3 = 0 ;
21922 PyObject * obj0 = 0 ;
21923 PyObject * obj1 = 0 ;
21924 PyObject * obj2 = 0 ;
21925 char * kwnames[] = {
21926 (char *) "self",(char *) "x",(char *) "y", NULL
21927 };
21928
21929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21931 if (!SWIG_IsOK(res1)) {
21932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21933 }
21934 arg1 = reinterpret_cast< wxDC * >(argp1);
21935 ecode2 = SWIG_AsVal_double(obj1, &val2);
21936 if (!SWIG_IsOK(ecode2)) {
21937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21938 }
21939 arg2 = static_cast< double >(val2);
21940 ecode3 = SWIG_AsVal_double(obj2, &val3);
21941 if (!SWIG_IsOK(ecode3)) {
21942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21943 }
21944 arg3 = static_cast< double >(val3);
21945 {
21946 PyThreadState* __tstate = wxPyBeginAllowThreads();
21947 (arg1)->SetUserScale(arg2,arg3);
21948 wxPyEndAllowThreads(__tstate);
21949 if (PyErr_Occurred()) SWIG_fail;
21950 }
21951 resultobj = SWIG_Py_Void();
21952 return resultobj;
21953 fail:
21954 return NULL;
21955 }
21956
21957
21958 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21959 PyObject *resultobj = 0;
21960 wxDC *arg1 = (wxDC *) 0 ;
21961 double *arg2 = (double *) 0 ;
21962 double *arg3 = (double *) 0 ;
21963 void *argp1 = 0 ;
21964 int res1 = 0 ;
21965 double temp2 ;
21966 int res2 = SWIG_TMPOBJ ;
21967 double temp3 ;
21968 int res3 = SWIG_TMPOBJ ;
21969 PyObject *swig_obj[1] ;
21970
21971 arg2 = &temp2;
21972 arg3 = &temp3;
21973 if (!args) SWIG_fail;
21974 swig_obj[0] = args;
21975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21976 if (!SWIG_IsOK(res1)) {
21977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21978 }
21979 arg1 = reinterpret_cast< wxDC * >(argp1);
21980 {
21981 PyThreadState* __tstate = wxPyBeginAllowThreads();
21982 (arg1)->GetLogicalScale(arg2,arg3);
21983 wxPyEndAllowThreads(__tstate);
21984 if (PyErr_Occurred()) SWIG_fail;
21985 }
21986 resultobj = SWIG_Py_Void();
21987 if (SWIG_IsTmpObj(res2)) {
21988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21989 } else {
21990 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21992 }
21993 if (SWIG_IsTmpObj(res3)) {
21994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21995 } else {
21996 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21998 }
21999 return resultobj;
22000 fail:
22001 return NULL;
22002 }
22003
22004
22005 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22006 PyObject *resultobj = 0;
22007 wxDC *arg1 = (wxDC *) 0 ;
22008 double arg2 ;
22009 double arg3 ;
22010 void *argp1 = 0 ;
22011 int res1 = 0 ;
22012 double val2 ;
22013 int ecode2 = 0 ;
22014 double val3 ;
22015 int ecode3 = 0 ;
22016 PyObject * obj0 = 0 ;
22017 PyObject * obj1 = 0 ;
22018 PyObject * obj2 = 0 ;
22019 char * kwnames[] = {
22020 (char *) "self",(char *) "x",(char *) "y", NULL
22021 };
22022
22023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22025 if (!SWIG_IsOK(res1)) {
22026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22027 }
22028 arg1 = reinterpret_cast< wxDC * >(argp1);
22029 ecode2 = SWIG_AsVal_double(obj1, &val2);
22030 if (!SWIG_IsOK(ecode2)) {
22031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22032 }
22033 arg2 = static_cast< double >(val2);
22034 ecode3 = SWIG_AsVal_double(obj2, &val3);
22035 if (!SWIG_IsOK(ecode3)) {
22036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22037 }
22038 arg3 = static_cast< double >(val3);
22039 {
22040 PyThreadState* __tstate = wxPyBeginAllowThreads();
22041 (arg1)->SetLogicalScale(arg2,arg3);
22042 wxPyEndAllowThreads(__tstate);
22043 if (PyErr_Occurred()) SWIG_fail;
22044 }
22045 resultobj = SWIG_Py_Void();
22046 return resultobj;
22047 fail:
22048 return NULL;
22049 }
22050
22051
22052 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22053 PyObject *resultobj = 0;
22054 wxDC *arg1 = (wxDC *) 0 ;
22055 wxPoint result;
22056 void *argp1 = 0 ;
22057 int res1 = 0 ;
22058 PyObject *swig_obj[1] ;
22059
22060 if (!args) SWIG_fail;
22061 swig_obj[0] = args;
22062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22063 if (!SWIG_IsOK(res1)) {
22064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22065 }
22066 arg1 = reinterpret_cast< wxDC * >(argp1);
22067 {
22068 PyThreadState* __tstate = wxPyBeginAllowThreads();
22069 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22070 wxPyEndAllowThreads(__tstate);
22071 if (PyErr_Occurred()) SWIG_fail;
22072 }
22073 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22074 return resultobj;
22075 fail:
22076 return NULL;
22077 }
22078
22079
22080 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22081 PyObject *resultobj = 0;
22082 wxDC *arg1 = (wxDC *) 0 ;
22083 int *arg2 = (int *) 0 ;
22084 int *arg3 = (int *) 0 ;
22085 void *argp1 = 0 ;
22086 int res1 = 0 ;
22087 int temp2 ;
22088 int res2 = SWIG_TMPOBJ ;
22089 int temp3 ;
22090 int res3 = SWIG_TMPOBJ ;
22091 PyObject *swig_obj[1] ;
22092
22093 arg2 = &temp2;
22094 arg3 = &temp3;
22095 if (!args) SWIG_fail;
22096 swig_obj[0] = args;
22097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22098 if (!SWIG_IsOK(res1)) {
22099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22100 }
22101 arg1 = reinterpret_cast< wxDC * >(argp1);
22102 {
22103 PyThreadState* __tstate = wxPyBeginAllowThreads();
22104 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22105 wxPyEndAllowThreads(__tstate);
22106 if (PyErr_Occurred()) SWIG_fail;
22107 }
22108 resultobj = SWIG_Py_Void();
22109 if (SWIG_IsTmpObj(res2)) {
22110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22111 } else {
22112 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22114 }
22115 if (SWIG_IsTmpObj(res3)) {
22116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22117 } else {
22118 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22120 }
22121 return resultobj;
22122 fail:
22123 return NULL;
22124 }
22125
22126
22127 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22128 PyObject *resultobj = 0;
22129 wxDC *arg1 = (wxDC *) 0 ;
22130 int arg2 ;
22131 int arg3 ;
22132 void *argp1 = 0 ;
22133 int res1 = 0 ;
22134 int val2 ;
22135 int ecode2 = 0 ;
22136 int val3 ;
22137 int ecode3 = 0 ;
22138 PyObject * obj0 = 0 ;
22139 PyObject * obj1 = 0 ;
22140 PyObject * obj2 = 0 ;
22141 char * kwnames[] = {
22142 (char *) "self",(char *) "x",(char *) "y", NULL
22143 };
22144
22145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22147 if (!SWIG_IsOK(res1)) {
22148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22149 }
22150 arg1 = reinterpret_cast< wxDC * >(argp1);
22151 ecode2 = SWIG_AsVal_int(obj1, &val2);
22152 if (!SWIG_IsOK(ecode2)) {
22153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22154 }
22155 arg2 = static_cast< int >(val2);
22156 ecode3 = SWIG_AsVal_int(obj2, &val3);
22157 if (!SWIG_IsOK(ecode3)) {
22158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22159 }
22160 arg3 = static_cast< int >(val3);
22161 {
22162 PyThreadState* __tstate = wxPyBeginAllowThreads();
22163 (arg1)->SetLogicalOrigin(arg2,arg3);
22164 wxPyEndAllowThreads(__tstate);
22165 if (PyErr_Occurred()) SWIG_fail;
22166 }
22167 resultobj = SWIG_Py_Void();
22168 return resultobj;
22169 fail:
22170 return NULL;
22171 }
22172
22173
22174 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22175 PyObject *resultobj = 0;
22176 wxDC *arg1 = (wxDC *) 0 ;
22177 wxPoint *arg2 = 0 ;
22178 void *argp1 = 0 ;
22179 int res1 = 0 ;
22180 wxPoint temp2 ;
22181 PyObject * obj0 = 0 ;
22182 PyObject * obj1 = 0 ;
22183 char * kwnames[] = {
22184 (char *) "self",(char *) "point", NULL
22185 };
22186
22187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22189 if (!SWIG_IsOK(res1)) {
22190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22191 }
22192 arg1 = reinterpret_cast< wxDC * >(argp1);
22193 {
22194 arg2 = &temp2;
22195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22196 }
22197 {
22198 PyThreadState* __tstate = wxPyBeginAllowThreads();
22199 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22200 wxPyEndAllowThreads(__tstate);
22201 if (PyErr_Occurred()) SWIG_fail;
22202 }
22203 resultobj = SWIG_Py_Void();
22204 return resultobj;
22205 fail:
22206 return NULL;
22207 }
22208
22209
22210 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22211 PyObject *resultobj = 0;
22212 wxDC *arg1 = (wxDC *) 0 ;
22213 wxPoint result;
22214 void *argp1 = 0 ;
22215 int res1 = 0 ;
22216 PyObject *swig_obj[1] ;
22217
22218 if (!args) SWIG_fail;
22219 swig_obj[0] = args;
22220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22221 if (!SWIG_IsOK(res1)) {
22222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22223 }
22224 arg1 = reinterpret_cast< wxDC * >(argp1);
22225 {
22226 PyThreadState* __tstate = wxPyBeginAllowThreads();
22227 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22232 return resultobj;
22233 fail:
22234 return NULL;
22235 }
22236
22237
22238 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22239 PyObject *resultobj = 0;
22240 wxDC *arg1 = (wxDC *) 0 ;
22241 int *arg2 = (int *) 0 ;
22242 int *arg3 = (int *) 0 ;
22243 void *argp1 = 0 ;
22244 int res1 = 0 ;
22245 int temp2 ;
22246 int res2 = SWIG_TMPOBJ ;
22247 int temp3 ;
22248 int res3 = SWIG_TMPOBJ ;
22249 PyObject *swig_obj[1] ;
22250
22251 arg2 = &temp2;
22252 arg3 = &temp3;
22253 if (!args) SWIG_fail;
22254 swig_obj[0] = args;
22255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22256 if (!SWIG_IsOK(res1)) {
22257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22258 }
22259 arg1 = reinterpret_cast< wxDC * >(argp1);
22260 {
22261 PyThreadState* __tstate = wxPyBeginAllowThreads();
22262 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22263 wxPyEndAllowThreads(__tstate);
22264 if (PyErr_Occurred()) SWIG_fail;
22265 }
22266 resultobj = SWIG_Py_Void();
22267 if (SWIG_IsTmpObj(res2)) {
22268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22269 } else {
22270 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22272 }
22273 if (SWIG_IsTmpObj(res3)) {
22274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22275 } else {
22276 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22278 }
22279 return resultobj;
22280 fail:
22281 return NULL;
22282 }
22283
22284
22285 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22286 PyObject *resultobj = 0;
22287 wxDC *arg1 = (wxDC *) 0 ;
22288 int arg2 ;
22289 int arg3 ;
22290 void *argp1 = 0 ;
22291 int res1 = 0 ;
22292 int val2 ;
22293 int ecode2 = 0 ;
22294 int val3 ;
22295 int ecode3 = 0 ;
22296 PyObject * obj0 = 0 ;
22297 PyObject * obj1 = 0 ;
22298 PyObject * obj2 = 0 ;
22299 char * kwnames[] = {
22300 (char *) "self",(char *) "x",(char *) "y", NULL
22301 };
22302
22303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22305 if (!SWIG_IsOK(res1)) {
22306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22307 }
22308 arg1 = reinterpret_cast< wxDC * >(argp1);
22309 ecode2 = SWIG_AsVal_int(obj1, &val2);
22310 if (!SWIG_IsOK(ecode2)) {
22311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22312 }
22313 arg2 = static_cast< int >(val2);
22314 ecode3 = SWIG_AsVal_int(obj2, &val3);
22315 if (!SWIG_IsOK(ecode3)) {
22316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22317 }
22318 arg3 = static_cast< int >(val3);
22319 {
22320 PyThreadState* __tstate = wxPyBeginAllowThreads();
22321 (arg1)->SetDeviceOrigin(arg2,arg3);
22322 wxPyEndAllowThreads(__tstate);
22323 if (PyErr_Occurred()) SWIG_fail;
22324 }
22325 resultobj = SWIG_Py_Void();
22326 return resultobj;
22327 fail:
22328 return NULL;
22329 }
22330
22331
22332 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22333 PyObject *resultobj = 0;
22334 wxDC *arg1 = (wxDC *) 0 ;
22335 wxPoint *arg2 = 0 ;
22336 void *argp1 = 0 ;
22337 int res1 = 0 ;
22338 wxPoint temp2 ;
22339 PyObject * obj0 = 0 ;
22340 PyObject * obj1 = 0 ;
22341 char * kwnames[] = {
22342 (char *) "self",(char *) "point", NULL
22343 };
22344
22345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22347 if (!SWIG_IsOK(res1)) {
22348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22349 }
22350 arg1 = reinterpret_cast< wxDC * >(argp1);
22351 {
22352 arg2 = &temp2;
22353 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22354 }
22355 {
22356 PyThreadState* __tstate = wxPyBeginAllowThreads();
22357 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22358 wxPyEndAllowThreads(__tstate);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 }
22361 resultobj = SWIG_Py_Void();
22362 return resultobj;
22363 fail:
22364 return NULL;
22365 }
22366
22367
22368 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22369 PyObject *resultobj = 0;
22370 wxDC *arg1 = (wxDC *) 0 ;
22371 bool arg2 ;
22372 bool arg3 ;
22373 void *argp1 = 0 ;
22374 int res1 = 0 ;
22375 bool val2 ;
22376 int ecode2 = 0 ;
22377 bool val3 ;
22378 int ecode3 = 0 ;
22379 PyObject * obj0 = 0 ;
22380 PyObject * obj1 = 0 ;
22381 PyObject * obj2 = 0 ;
22382 char * kwnames[] = {
22383 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22384 };
22385
22386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22388 if (!SWIG_IsOK(res1)) {
22389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22390 }
22391 arg1 = reinterpret_cast< wxDC * >(argp1);
22392 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22393 if (!SWIG_IsOK(ecode2)) {
22394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22395 }
22396 arg2 = static_cast< bool >(val2);
22397 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22398 if (!SWIG_IsOK(ecode3)) {
22399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22400 }
22401 arg3 = static_cast< bool >(val3);
22402 {
22403 PyThreadState* __tstate = wxPyBeginAllowThreads();
22404 (arg1)->SetAxisOrientation(arg2,arg3);
22405 wxPyEndAllowThreads(__tstate);
22406 if (PyErr_Occurred()) SWIG_fail;
22407 }
22408 resultobj = SWIG_Py_Void();
22409 return resultobj;
22410 fail:
22411 return NULL;
22412 }
22413
22414
22415 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22416 PyObject *resultobj = 0;
22417 wxDC *arg1 = (wxDC *) 0 ;
22418 int result;
22419 void *argp1 = 0 ;
22420 int res1 = 0 ;
22421 PyObject *swig_obj[1] ;
22422
22423 if (!args) SWIG_fail;
22424 swig_obj[0] = args;
22425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22426 if (!SWIG_IsOK(res1)) {
22427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22428 }
22429 arg1 = reinterpret_cast< wxDC * >(argp1);
22430 {
22431 PyThreadState* __tstate = wxPyBeginAllowThreads();
22432 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22433 wxPyEndAllowThreads(__tstate);
22434 if (PyErr_Occurred()) SWIG_fail;
22435 }
22436 resultobj = SWIG_From_int(static_cast< int >(result));
22437 return resultobj;
22438 fail:
22439 return NULL;
22440 }
22441
22442
22443 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22444 PyObject *resultobj = 0;
22445 wxDC *arg1 = (wxDC *) 0 ;
22446 int arg2 ;
22447 void *argp1 = 0 ;
22448 int res1 = 0 ;
22449 int val2 ;
22450 int ecode2 = 0 ;
22451 PyObject * obj0 = 0 ;
22452 PyObject * obj1 = 0 ;
22453 char * kwnames[] = {
22454 (char *) "self",(char *) "function", NULL
22455 };
22456
22457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22459 if (!SWIG_IsOK(res1)) {
22460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22461 }
22462 arg1 = reinterpret_cast< wxDC * >(argp1);
22463 ecode2 = SWIG_AsVal_int(obj1, &val2);
22464 if (!SWIG_IsOK(ecode2)) {
22465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22466 }
22467 arg2 = static_cast< int >(val2);
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 (arg1)->SetLogicalFunction(arg2);
22471 wxPyEndAllowThreads(__tstate);
22472 if (PyErr_Occurred()) SWIG_fail;
22473 }
22474 resultobj = SWIG_Py_Void();
22475 return resultobj;
22476 fail:
22477 return NULL;
22478 }
22479
22480
22481 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22482 PyObject *resultobj = 0;
22483 wxDC *arg1 = (wxDC *) 0 ;
22484 void *argp1 = 0 ;
22485 int res1 = 0 ;
22486 PyObject *swig_obj[1] ;
22487
22488 if (!args) SWIG_fail;
22489 swig_obj[0] = args;
22490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22491 if (!SWIG_IsOK(res1)) {
22492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22493 }
22494 arg1 = reinterpret_cast< wxDC * >(argp1);
22495 {
22496 PyThreadState* __tstate = wxPyBeginAllowThreads();
22497 (arg1)->ComputeScaleAndOrigin();
22498 wxPyEndAllowThreads(__tstate);
22499 if (PyErr_Occurred()) SWIG_fail;
22500 }
22501 resultobj = SWIG_Py_Void();
22502 return resultobj;
22503 fail:
22504 return NULL;
22505 }
22506
22507
22508 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22509 PyObject *resultobj = 0;
22510 wxDC *arg1 = (wxDC *) 0 ;
22511 int arg2 ;
22512 int arg3 ;
22513 void *argp1 = 0 ;
22514 int res1 = 0 ;
22515 int val2 ;
22516 int ecode2 = 0 ;
22517 int val3 ;
22518 int ecode3 = 0 ;
22519 PyObject * obj0 = 0 ;
22520 PyObject * obj1 = 0 ;
22521 PyObject * obj2 = 0 ;
22522 char * kwnames[] = {
22523 (char *) "self",(char *) "x",(char *) "y", NULL
22524 };
22525
22526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22528 if (!SWIG_IsOK(res1)) {
22529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22530 }
22531 arg1 = reinterpret_cast< wxDC * >(argp1);
22532 ecode2 = SWIG_AsVal_int(obj1, &val2);
22533 if (!SWIG_IsOK(ecode2)) {
22534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22535 }
22536 arg2 = static_cast< int >(val2);
22537 ecode3 = SWIG_AsVal_int(obj2, &val3);
22538 if (!SWIG_IsOK(ecode3)) {
22539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22540 }
22541 arg3 = static_cast< int >(val3);
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 (arg1)->CalcBoundingBox(arg2,arg3);
22545 wxPyEndAllowThreads(__tstate);
22546 if (PyErr_Occurred()) SWIG_fail;
22547 }
22548 resultobj = SWIG_Py_Void();
22549 return resultobj;
22550 fail:
22551 return NULL;
22552 }
22553
22554
22555 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22556 PyObject *resultobj = 0;
22557 wxDC *arg1 = (wxDC *) 0 ;
22558 wxPoint *arg2 = 0 ;
22559 void *argp1 = 0 ;
22560 int res1 = 0 ;
22561 wxPoint temp2 ;
22562 PyObject * obj0 = 0 ;
22563 PyObject * obj1 = 0 ;
22564 char * kwnames[] = {
22565 (char *) "self",(char *) "point", NULL
22566 };
22567
22568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22570 if (!SWIG_IsOK(res1)) {
22571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22572 }
22573 arg1 = reinterpret_cast< wxDC * >(argp1);
22574 {
22575 arg2 = &temp2;
22576 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22577 }
22578 {
22579 PyThreadState* __tstate = wxPyBeginAllowThreads();
22580 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22581 wxPyEndAllowThreads(__tstate);
22582 if (PyErr_Occurred()) SWIG_fail;
22583 }
22584 resultobj = SWIG_Py_Void();
22585 return resultobj;
22586 fail:
22587 return NULL;
22588 }
22589
22590
22591 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22592 PyObject *resultobj = 0;
22593 wxDC *arg1 = (wxDC *) 0 ;
22594 void *argp1 = 0 ;
22595 int res1 = 0 ;
22596 PyObject *swig_obj[1] ;
22597
22598 if (!args) SWIG_fail;
22599 swig_obj[0] = args;
22600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22601 if (!SWIG_IsOK(res1)) {
22602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22603 }
22604 arg1 = reinterpret_cast< wxDC * >(argp1);
22605 {
22606 PyThreadState* __tstate = wxPyBeginAllowThreads();
22607 (arg1)->ResetBoundingBox();
22608 wxPyEndAllowThreads(__tstate);
22609 if (PyErr_Occurred()) SWIG_fail;
22610 }
22611 resultobj = SWIG_Py_Void();
22612 return resultobj;
22613 fail:
22614 return NULL;
22615 }
22616
22617
22618 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22619 PyObject *resultobj = 0;
22620 wxDC *arg1 = (wxDC *) 0 ;
22621 int result;
22622 void *argp1 = 0 ;
22623 int res1 = 0 ;
22624 PyObject *swig_obj[1] ;
22625
22626 if (!args) SWIG_fail;
22627 swig_obj[0] = args;
22628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22629 if (!SWIG_IsOK(res1)) {
22630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22631 }
22632 arg1 = reinterpret_cast< wxDC * >(argp1);
22633 {
22634 PyThreadState* __tstate = wxPyBeginAllowThreads();
22635 result = (int)((wxDC const *)arg1)->MinX();
22636 wxPyEndAllowThreads(__tstate);
22637 if (PyErr_Occurred()) SWIG_fail;
22638 }
22639 resultobj = SWIG_From_int(static_cast< int >(result));
22640 return resultobj;
22641 fail:
22642 return NULL;
22643 }
22644
22645
22646 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22647 PyObject *resultobj = 0;
22648 wxDC *arg1 = (wxDC *) 0 ;
22649 int result;
22650 void *argp1 = 0 ;
22651 int res1 = 0 ;
22652 PyObject *swig_obj[1] ;
22653
22654 if (!args) SWIG_fail;
22655 swig_obj[0] = args;
22656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22657 if (!SWIG_IsOK(res1)) {
22658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22659 }
22660 arg1 = reinterpret_cast< wxDC * >(argp1);
22661 {
22662 PyThreadState* __tstate = wxPyBeginAllowThreads();
22663 result = (int)((wxDC const *)arg1)->MaxX();
22664 wxPyEndAllowThreads(__tstate);
22665 if (PyErr_Occurred()) SWIG_fail;
22666 }
22667 resultobj = SWIG_From_int(static_cast< int >(result));
22668 return resultobj;
22669 fail:
22670 return NULL;
22671 }
22672
22673
22674 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22675 PyObject *resultobj = 0;
22676 wxDC *arg1 = (wxDC *) 0 ;
22677 int result;
22678 void *argp1 = 0 ;
22679 int res1 = 0 ;
22680 PyObject *swig_obj[1] ;
22681
22682 if (!args) SWIG_fail;
22683 swig_obj[0] = args;
22684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22685 if (!SWIG_IsOK(res1)) {
22686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22687 }
22688 arg1 = reinterpret_cast< wxDC * >(argp1);
22689 {
22690 PyThreadState* __tstate = wxPyBeginAllowThreads();
22691 result = (int)((wxDC const *)arg1)->MinY();
22692 wxPyEndAllowThreads(__tstate);
22693 if (PyErr_Occurred()) SWIG_fail;
22694 }
22695 resultobj = SWIG_From_int(static_cast< int >(result));
22696 return resultobj;
22697 fail:
22698 return NULL;
22699 }
22700
22701
22702 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22703 PyObject *resultobj = 0;
22704 wxDC *arg1 = (wxDC *) 0 ;
22705 int result;
22706 void *argp1 = 0 ;
22707 int res1 = 0 ;
22708 PyObject *swig_obj[1] ;
22709
22710 if (!args) SWIG_fail;
22711 swig_obj[0] = args;
22712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22713 if (!SWIG_IsOK(res1)) {
22714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22715 }
22716 arg1 = reinterpret_cast< wxDC * >(argp1);
22717 {
22718 PyThreadState* __tstate = wxPyBeginAllowThreads();
22719 result = (int)((wxDC const *)arg1)->MaxY();
22720 wxPyEndAllowThreads(__tstate);
22721 if (PyErr_Occurred()) SWIG_fail;
22722 }
22723 resultobj = SWIG_From_int(static_cast< int >(result));
22724 return resultobj;
22725 fail:
22726 return NULL;
22727 }
22728
22729
22730 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22731 PyObject *resultobj = 0;
22732 wxDC *arg1 = (wxDC *) 0 ;
22733 int *arg2 = (int *) 0 ;
22734 int *arg3 = (int *) 0 ;
22735 int *arg4 = (int *) 0 ;
22736 int *arg5 = (int *) 0 ;
22737 void *argp1 = 0 ;
22738 int res1 = 0 ;
22739 int temp2 ;
22740 int res2 = SWIG_TMPOBJ ;
22741 int temp3 ;
22742 int res3 = SWIG_TMPOBJ ;
22743 int temp4 ;
22744 int res4 = SWIG_TMPOBJ ;
22745 int temp5 ;
22746 int res5 = SWIG_TMPOBJ ;
22747 PyObject *swig_obj[1] ;
22748
22749 arg2 = &temp2;
22750 arg3 = &temp3;
22751 arg4 = &temp4;
22752 arg5 = &temp5;
22753 if (!args) SWIG_fail;
22754 swig_obj[0] = args;
22755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22756 if (!SWIG_IsOK(res1)) {
22757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22758 }
22759 arg1 = reinterpret_cast< wxDC * >(argp1);
22760 {
22761 PyThreadState* __tstate = wxPyBeginAllowThreads();
22762 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22763 wxPyEndAllowThreads(__tstate);
22764 if (PyErr_Occurred()) SWIG_fail;
22765 }
22766 resultobj = SWIG_Py_Void();
22767 if (SWIG_IsTmpObj(res2)) {
22768 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22769 } else {
22770 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22771 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22772 }
22773 if (SWIG_IsTmpObj(res3)) {
22774 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22775 } else {
22776 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22777 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22778 }
22779 if (SWIG_IsTmpObj(res4)) {
22780 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22781 } else {
22782 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22783 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22784 }
22785 if (SWIG_IsTmpObj(res5)) {
22786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22787 } else {
22788 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22790 }
22791 return resultobj;
22792 fail:
22793 return NULL;
22794 }
22795
22796
22797 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22798 PyObject *resultobj = 0;
22799 wxDC *arg1 = (wxDC *) 0 ;
22800 wxLayoutDirection result;
22801 void *argp1 = 0 ;
22802 int res1 = 0 ;
22803 PyObject *swig_obj[1] ;
22804
22805 if (!args) SWIG_fail;
22806 swig_obj[0] = args;
22807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22808 if (!SWIG_IsOK(res1)) {
22809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22810 }
22811 arg1 = reinterpret_cast< wxDC * >(argp1);
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 resultobj = SWIG_From_int(static_cast< int >(result));
22819 return resultobj;
22820 fail:
22821 return NULL;
22822 }
22823
22824
22825 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22826 PyObject *resultobj = 0;
22827 wxDC *arg1 = (wxDC *) 0 ;
22828 wxLayoutDirection arg2 ;
22829 void *argp1 = 0 ;
22830 int res1 = 0 ;
22831 int val2 ;
22832 int ecode2 = 0 ;
22833 PyObject * obj0 = 0 ;
22834 PyObject * obj1 = 0 ;
22835 char * kwnames[] = {
22836 (char *) "self",(char *) "dir", NULL
22837 };
22838
22839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22841 if (!SWIG_IsOK(res1)) {
22842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22843 }
22844 arg1 = reinterpret_cast< wxDC * >(argp1);
22845 ecode2 = SWIG_AsVal_int(obj1, &val2);
22846 if (!SWIG_IsOK(ecode2)) {
22847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22848 }
22849 arg2 = static_cast< wxLayoutDirection >(val2);
22850 {
22851 PyThreadState* __tstate = wxPyBeginAllowThreads();
22852 (arg1)->SetLayoutDirection(arg2);
22853 wxPyEndAllowThreads(__tstate);
22854 if (PyErr_Occurred()) SWIG_fail;
22855 }
22856 resultobj = SWIG_Py_Void();
22857 return resultobj;
22858 fail:
22859 return NULL;
22860 }
22861
22862
22863 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22864 PyObject *resultobj = 0;
22865 wxDC *arg1 = (wxDC *) 0 ;
22866 PyObject *arg2 = (PyObject *) 0 ;
22867 PyObject *arg3 = (PyObject *) 0 ;
22868 PyObject *arg4 = (PyObject *) 0 ;
22869 PyObject *result = 0 ;
22870 void *argp1 = 0 ;
22871 int res1 = 0 ;
22872 PyObject * obj0 = 0 ;
22873 PyObject * obj1 = 0 ;
22874 PyObject * obj2 = 0 ;
22875 PyObject * obj3 = 0 ;
22876 char * kwnames[] = {
22877 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22878 };
22879
22880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22882 if (!SWIG_IsOK(res1)) {
22883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22884 }
22885 arg1 = reinterpret_cast< wxDC * >(argp1);
22886 arg2 = obj1;
22887 arg3 = obj2;
22888 arg4 = obj3;
22889 {
22890 PyThreadState* __tstate = wxPyBeginAllowThreads();
22891 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22892 wxPyEndAllowThreads(__tstate);
22893 if (PyErr_Occurred()) SWIG_fail;
22894 }
22895 resultobj = result;
22896 return resultobj;
22897 fail:
22898 return NULL;
22899 }
22900
22901
22902 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22903 PyObject *resultobj = 0;
22904 wxDC *arg1 = (wxDC *) 0 ;
22905 PyObject *arg2 = (PyObject *) 0 ;
22906 PyObject *arg3 = (PyObject *) 0 ;
22907 PyObject *arg4 = (PyObject *) 0 ;
22908 PyObject *result = 0 ;
22909 void *argp1 = 0 ;
22910 int res1 = 0 ;
22911 PyObject * obj0 = 0 ;
22912 PyObject * obj1 = 0 ;
22913 PyObject * obj2 = 0 ;
22914 PyObject * obj3 = 0 ;
22915 char * kwnames[] = {
22916 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22917 };
22918
22919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22921 if (!SWIG_IsOK(res1)) {
22922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22923 }
22924 arg1 = reinterpret_cast< wxDC * >(argp1);
22925 arg2 = obj1;
22926 arg3 = obj2;
22927 arg4 = obj3;
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 resultobj = result;
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22942 PyObject *resultobj = 0;
22943 wxDC *arg1 = (wxDC *) 0 ;
22944 PyObject *arg2 = (PyObject *) 0 ;
22945 PyObject *arg3 = (PyObject *) 0 ;
22946 PyObject *arg4 = (PyObject *) 0 ;
22947 PyObject *result = 0 ;
22948 void *argp1 = 0 ;
22949 int res1 = 0 ;
22950 PyObject * obj0 = 0 ;
22951 PyObject * obj1 = 0 ;
22952 PyObject * obj2 = 0 ;
22953 PyObject * obj3 = 0 ;
22954 char * kwnames[] = {
22955 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22956 };
22957
22958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22960 if (!SWIG_IsOK(res1)) {
22961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22962 }
22963 arg1 = reinterpret_cast< wxDC * >(argp1);
22964 arg2 = obj1;
22965 arg3 = obj2;
22966 arg4 = obj3;
22967 {
22968 PyThreadState* __tstate = wxPyBeginAllowThreads();
22969 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22970 wxPyEndAllowThreads(__tstate);
22971 if (PyErr_Occurred()) SWIG_fail;
22972 }
22973 resultobj = result;
22974 return resultobj;
22975 fail:
22976 return NULL;
22977 }
22978
22979
22980 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22981 PyObject *resultobj = 0;
22982 wxDC *arg1 = (wxDC *) 0 ;
22983 PyObject *arg2 = (PyObject *) 0 ;
22984 PyObject *arg3 = (PyObject *) 0 ;
22985 PyObject *arg4 = (PyObject *) 0 ;
22986 PyObject *result = 0 ;
22987 void *argp1 = 0 ;
22988 int res1 = 0 ;
22989 PyObject * obj0 = 0 ;
22990 PyObject * obj1 = 0 ;
22991 PyObject * obj2 = 0 ;
22992 PyObject * obj3 = 0 ;
22993 char * kwnames[] = {
22994 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22995 };
22996
22997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22999 if (!SWIG_IsOK(res1)) {
23000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23001 }
23002 arg1 = reinterpret_cast< wxDC * >(argp1);
23003 arg2 = obj1;
23004 arg3 = obj2;
23005 arg4 = obj3;
23006 {
23007 PyThreadState* __tstate = wxPyBeginAllowThreads();
23008 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23009 wxPyEndAllowThreads(__tstate);
23010 if (PyErr_Occurred()) SWIG_fail;
23011 }
23012 resultobj = result;
23013 return resultobj;
23014 fail:
23015 return NULL;
23016 }
23017
23018
23019 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23020 PyObject *resultobj = 0;
23021 wxDC *arg1 = (wxDC *) 0 ;
23022 PyObject *arg2 = (PyObject *) 0 ;
23023 PyObject *arg3 = (PyObject *) 0 ;
23024 PyObject *arg4 = (PyObject *) 0 ;
23025 PyObject *result = 0 ;
23026 void *argp1 = 0 ;
23027 int res1 = 0 ;
23028 PyObject * obj0 = 0 ;
23029 PyObject * obj1 = 0 ;
23030 PyObject * obj2 = 0 ;
23031 PyObject * obj3 = 0 ;
23032 char * kwnames[] = {
23033 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23034 };
23035
23036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23038 if (!SWIG_IsOK(res1)) {
23039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23040 }
23041 arg1 = reinterpret_cast< wxDC * >(argp1);
23042 arg2 = obj1;
23043 arg3 = obj2;
23044 arg4 = obj3;
23045 {
23046 PyThreadState* __tstate = wxPyBeginAllowThreads();
23047 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23048 wxPyEndAllowThreads(__tstate);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 }
23051 resultobj = result;
23052 return resultobj;
23053 fail:
23054 return NULL;
23055 }
23056
23057
23058 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj = 0;
23060 wxDC *arg1 = (wxDC *) 0 ;
23061 PyObject *arg2 = (PyObject *) 0 ;
23062 PyObject *arg3 = (PyObject *) 0 ;
23063 PyObject *arg4 = (PyObject *) 0 ;
23064 PyObject *arg5 = (PyObject *) 0 ;
23065 PyObject *result = 0 ;
23066 void *argp1 = 0 ;
23067 int res1 = 0 ;
23068 PyObject * obj0 = 0 ;
23069 PyObject * obj1 = 0 ;
23070 PyObject * obj2 = 0 ;
23071 PyObject * obj3 = 0 ;
23072 PyObject * obj4 = 0 ;
23073 char * kwnames[] = {
23074 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23075 };
23076
23077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23079 if (!SWIG_IsOK(res1)) {
23080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23081 }
23082 arg1 = reinterpret_cast< wxDC * >(argp1);
23083 arg2 = obj1;
23084 arg3 = obj2;
23085 arg4 = obj3;
23086 arg5 = obj4;
23087 {
23088 PyThreadState* __tstate = wxPyBeginAllowThreads();
23089 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23090 wxPyEndAllowThreads(__tstate);
23091 if (PyErr_Occurred()) SWIG_fail;
23092 }
23093 resultobj = result;
23094 return resultobj;
23095 fail:
23096 return NULL;
23097 }
23098
23099
23100 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23101 PyObject *obj;
23102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23103 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23104 return SWIG_Py_Void();
23105 }
23106
23107 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23108 PyObject *resultobj = 0;
23109 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23110 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23111 wxMemoryDC *result = 0 ;
23112 void *argp1 = 0 ;
23113 int res1 = 0 ;
23114 PyObject * obj0 = 0 ;
23115 char * kwnames[] = {
23116 (char *) "bitmap", NULL
23117 };
23118
23119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23120 if (obj0) {
23121 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23122 if (!SWIG_IsOK(res1)) {
23123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23124 }
23125 if (!argp1) {
23126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23127 }
23128 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23129 }
23130 {
23131 if (!wxPyCheckForApp()) SWIG_fail;
23132 PyThreadState* __tstate = wxPyBeginAllowThreads();
23133 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23134 wxPyEndAllowThreads(__tstate);
23135 if (PyErr_Occurred()) SWIG_fail;
23136 }
23137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23138 return resultobj;
23139 fail:
23140 return NULL;
23141 }
23142
23143
23144 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23145 PyObject *resultobj = 0;
23146 wxDC *arg1 = (wxDC *) 0 ;
23147 wxMemoryDC *result = 0 ;
23148 void *argp1 = 0 ;
23149 int res1 = 0 ;
23150 PyObject * obj0 = 0 ;
23151 char * kwnames[] = {
23152 (char *) "oldDC", NULL
23153 };
23154
23155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23157 if (!SWIG_IsOK(res1)) {
23158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23159 }
23160 arg1 = reinterpret_cast< wxDC * >(argp1);
23161 {
23162 if (!wxPyCheckForApp()) SWIG_fail;
23163 PyThreadState* __tstate = wxPyBeginAllowThreads();
23164 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23165 wxPyEndAllowThreads(__tstate);
23166 if (PyErr_Occurred()) SWIG_fail;
23167 }
23168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23169 return resultobj;
23170 fail:
23171 return NULL;
23172 }
23173
23174
23175 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23176 PyObject *resultobj = 0;
23177 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23178 wxBitmap *arg2 = 0 ;
23179 void *argp1 = 0 ;
23180 int res1 = 0 ;
23181 void *argp2 = 0 ;
23182 int res2 = 0 ;
23183 PyObject * obj0 = 0 ;
23184 PyObject * obj1 = 0 ;
23185 char * kwnames[] = {
23186 (char *) "self",(char *) "bitmap", NULL
23187 };
23188
23189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23191 if (!SWIG_IsOK(res1)) {
23192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23193 }
23194 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23195 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23196 if (!SWIG_IsOK(res2)) {
23197 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23198 }
23199 if (!argp2) {
23200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23201 }
23202 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23203 {
23204 PyThreadState* __tstate = wxPyBeginAllowThreads();
23205 (arg1)->SelectObject((wxBitmap const &)*arg2);
23206 wxPyEndAllowThreads(__tstate);
23207 if (PyErr_Occurred()) SWIG_fail;
23208 }
23209 resultobj = SWIG_Py_Void();
23210 return resultobj;
23211 fail:
23212 return NULL;
23213 }
23214
23215
23216 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23217 PyObject *obj;
23218 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23219 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23220 return SWIG_Py_Void();
23221 }
23222
23223 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23224 return SWIG_Python_InitShadowInstance(args);
23225 }
23226
23227 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23228 PyObject *resultobj = 0;
23229 wxScreenDC *result = 0 ;
23230
23231 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23232 {
23233 if (!wxPyCheckForApp()) SWIG_fail;
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 result = (wxScreenDC *)new wxScreenDC();
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23240 return resultobj;
23241 fail:
23242 return NULL;
23243 }
23244
23245
23246 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23247 PyObject *resultobj = 0;
23248 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23249 wxWindow *arg2 = (wxWindow *) 0 ;
23250 bool result;
23251 void *argp1 = 0 ;
23252 int res1 = 0 ;
23253 void *argp2 = 0 ;
23254 int res2 = 0 ;
23255 PyObject * obj0 = 0 ;
23256 PyObject * obj1 = 0 ;
23257 char * kwnames[] = {
23258 (char *) "self",(char *) "window", NULL
23259 };
23260
23261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23263 if (!SWIG_IsOK(res1)) {
23264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23265 }
23266 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23268 if (!SWIG_IsOK(res2)) {
23269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23270 }
23271 arg2 = reinterpret_cast< wxWindow * >(argp2);
23272 {
23273 PyThreadState* __tstate = wxPyBeginAllowThreads();
23274 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23275 wxPyEndAllowThreads(__tstate);
23276 if (PyErr_Occurred()) SWIG_fail;
23277 }
23278 {
23279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23280 }
23281 return resultobj;
23282 fail:
23283 return NULL;
23284 }
23285
23286
23287 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23288 PyObject *resultobj = 0;
23289 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23290 wxRect *arg2 = (wxRect *) NULL ;
23291 bool result;
23292 void *argp1 = 0 ;
23293 int res1 = 0 ;
23294 void *argp2 = 0 ;
23295 int res2 = 0 ;
23296 PyObject * obj0 = 0 ;
23297 PyObject * obj1 = 0 ;
23298 char * kwnames[] = {
23299 (char *) "self",(char *) "rect", NULL
23300 };
23301
23302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23304 if (!SWIG_IsOK(res1)) {
23305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23306 }
23307 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23308 if (obj1) {
23309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23310 if (!SWIG_IsOK(res2)) {
23311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23312 }
23313 arg2 = reinterpret_cast< wxRect * >(argp2);
23314 }
23315 {
23316 PyThreadState* __tstate = wxPyBeginAllowThreads();
23317 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23318 wxPyEndAllowThreads(__tstate);
23319 if (PyErr_Occurred()) SWIG_fail;
23320 }
23321 {
23322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23323 }
23324 return resultobj;
23325 fail:
23326 return NULL;
23327 }
23328
23329
23330 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23331 PyObject *resultobj = 0;
23332 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23333 bool result;
23334 void *argp1 = 0 ;
23335 int res1 = 0 ;
23336 PyObject *swig_obj[1] ;
23337
23338 if (!args) SWIG_fail;
23339 swig_obj[0] = args;
23340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23341 if (!SWIG_IsOK(res1)) {
23342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23343 }
23344 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23345 {
23346 PyThreadState* __tstate = wxPyBeginAllowThreads();
23347 result = (bool)(arg1)->EndDrawingOnTop();
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 {
23352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23353 }
23354 return resultobj;
23355 fail:
23356 return NULL;
23357 }
23358
23359
23360 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23361 PyObject *obj;
23362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23363 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23364 return SWIG_Py_Void();
23365 }
23366
23367 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23368 return SWIG_Python_InitShadowInstance(args);
23369 }
23370
23371 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23372 PyObject *resultobj = 0;
23373 wxWindow *arg1 = (wxWindow *) 0 ;
23374 wxWindowDC *result = 0 ;
23375 void *argp1 = 0 ;
23376 int res1 = 0 ;
23377 PyObject * obj0 = 0 ;
23378 char * kwnames[] = {
23379 (char *) "win", NULL
23380 };
23381
23382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23384 if (!SWIG_IsOK(res1)) {
23385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23386 }
23387 arg1 = reinterpret_cast< wxWindow * >(argp1);
23388 {
23389 if (!wxPyCheckForApp()) SWIG_fail;
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 result = (wxWindowDC *)new wxWindowDC(arg1);
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23396 return resultobj;
23397 fail:
23398 return NULL;
23399 }
23400
23401
23402 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23403 PyObject *obj;
23404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23405 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23406 return SWIG_Py_Void();
23407 }
23408
23409 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23410 return SWIG_Python_InitShadowInstance(args);
23411 }
23412
23413 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23414 PyObject *resultobj = 0;
23415 wxWindow *arg1 = (wxWindow *) 0 ;
23416 wxClientDC *result = 0 ;
23417 void *argp1 = 0 ;
23418 int res1 = 0 ;
23419 PyObject * obj0 = 0 ;
23420 char * kwnames[] = {
23421 (char *) "win", NULL
23422 };
23423
23424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23426 if (!SWIG_IsOK(res1)) {
23427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23428 }
23429 arg1 = reinterpret_cast< wxWindow * >(argp1);
23430 {
23431 if (!wxPyCheckForApp()) SWIG_fail;
23432 PyThreadState* __tstate = wxPyBeginAllowThreads();
23433 result = (wxClientDC *)new wxClientDC(arg1);
23434 wxPyEndAllowThreads(__tstate);
23435 if (PyErr_Occurred()) SWIG_fail;
23436 }
23437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23438 return resultobj;
23439 fail:
23440 return NULL;
23441 }
23442
23443
23444 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23445 PyObject *obj;
23446 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23447 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23448 return SWIG_Py_Void();
23449 }
23450
23451 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23452 return SWIG_Python_InitShadowInstance(args);
23453 }
23454
23455 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23456 PyObject *resultobj = 0;
23457 wxWindow *arg1 = (wxWindow *) 0 ;
23458 wxPaintDC *result = 0 ;
23459 void *argp1 = 0 ;
23460 int res1 = 0 ;
23461 PyObject * obj0 = 0 ;
23462 char * kwnames[] = {
23463 (char *) "win", NULL
23464 };
23465
23466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23468 if (!SWIG_IsOK(res1)) {
23469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23470 }
23471 arg1 = reinterpret_cast< wxWindow * >(argp1);
23472 {
23473 if (!wxPyCheckForApp()) SWIG_fail;
23474 PyThreadState* __tstate = wxPyBeginAllowThreads();
23475 result = (wxPaintDC *)new wxPaintDC(arg1);
23476 wxPyEndAllowThreads(__tstate);
23477 if (PyErr_Occurred()) SWIG_fail;
23478 }
23479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23480 return resultobj;
23481 fail:
23482 return NULL;
23483 }
23484
23485
23486 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23487 PyObject *obj;
23488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23489 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23490 return SWIG_Py_Void();
23491 }
23492
23493 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23494 return SWIG_Python_InitShadowInstance(args);
23495 }
23496
23497 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23498 PyObject *resultobj = 0;
23499 wxDC *arg1 = (wxDC *) 0 ;
23500 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23501 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23502 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23503 wxBufferedDC *result = 0 ;
23504 void *argp1 = 0 ;
23505 int res1 = 0 ;
23506 void *argp2 = 0 ;
23507 int res2 = 0 ;
23508 int val3 ;
23509 int ecode3 = 0 ;
23510
23511 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23513 if (!SWIG_IsOK(res1)) {
23514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23515 }
23516 arg1 = reinterpret_cast< wxDC * >(argp1);
23517 if (swig_obj[1]) {
23518 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23519 if (!SWIG_IsOK(res2)) {
23520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23521 }
23522 if (!argp2) {
23523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23524 }
23525 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23526 }
23527 if (swig_obj[2]) {
23528 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23529 if (!SWIG_IsOK(ecode3)) {
23530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23531 }
23532 arg3 = static_cast< int >(val3);
23533 }
23534 {
23535 if (!wxPyCheckForApp()) SWIG_fail;
23536 PyThreadState* __tstate = wxPyBeginAllowThreads();
23537 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23538 wxPyEndAllowThreads(__tstate);
23539 if (PyErr_Occurred()) SWIG_fail;
23540 }
23541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23542 return resultobj;
23543 fail:
23544 return NULL;
23545 }
23546
23547
23548 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23549 PyObject *resultobj = 0;
23550 wxDC *arg1 = (wxDC *) 0 ;
23551 wxSize *arg2 = 0 ;
23552 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23553 wxBufferedDC *result = 0 ;
23554 void *argp1 = 0 ;
23555 int res1 = 0 ;
23556 wxSize temp2 ;
23557 int val3 ;
23558 int ecode3 = 0 ;
23559
23560 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23562 if (!SWIG_IsOK(res1)) {
23563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23564 }
23565 arg1 = reinterpret_cast< wxDC * >(argp1);
23566 {
23567 arg2 = &temp2;
23568 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23569 }
23570 if (swig_obj[2]) {
23571 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23572 if (!SWIG_IsOK(ecode3)) {
23573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23574 }
23575 arg3 = static_cast< int >(val3);
23576 }
23577 {
23578 if (!wxPyCheckForApp()) SWIG_fail;
23579 PyThreadState* __tstate = wxPyBeginAllowThreads();
23580 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23581 wxPyEndAllowThreads(__tstate);
23582 if (PyErr_Occurred()) SWIG_fail;
23583 }
23584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23585 return resultobj;
23586 fail:
23587 return NULL;
23588 }
23589
23590
23591 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23592 int argc;
23593 PyObject *argv[4];
23594
23595 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23596 --argc;
23597 if ((argc >= 1) && (argc <= 3)) {
23598 int _v = 0;
23599 if (argc > 1) {
23600 {
23601 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23602 _v = SWIG_CheckState(res);
23603 }
23604 if (!_v) goto check_1;
23605 }
23606 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23607 }
23608 check_1:
23609
23610 if ((argc >= 2) && (argc <= 3)) {
23611 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23612 }
23613
23614 fail:
23615 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23616 return NULL;
23617 }
23618
23619
23620 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23621 PyObject *resultobj = 0;
23622 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23623 void *argp1 = 0 ;
23624 int res1 = 0 ;
23625 PyObject *swig_obj[1] ;
23626
23627 if (!args) SWIG_fail;
23628 swig_obj[0] = args;
23629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23630 if (!SWIG_IsOK(res1)) {
23631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23632 }
23633 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23634 {
23635 PyThreadState* __tstate = wxPyBeginAllowThreads();
23636 delete arg1;
23637
23638 wxPyEndAllowThreads(__tstate);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 resultobj = SWIG_Py_Void();
23642 return resultobj;
23643 fail:
23644 return NULL;
23645 }
23646
23647
23648 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23649 PyObject *resultobj = 0;
23650 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23651 void *argp1 = 0 ;
23652 int res1 = 0 ;
23653 PyObject *swig_obj[1] ;
23654
23655 if (!args) SWIG_fail;
23656 swig_obj[0] = args;
23657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23658 if (!SWIG_IsOK(res1)) {
23659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23660 }
23661 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23662 {
23663 PyThreadState* __tstate = wxPyBeginAllowThreads();
23664 (arg1)->UnMask();
23665 wxPyEndAllowThreads(__tstate);
23666 if (PyErr_Occurred()) SWIG_fail;
23667 }
23668 resultobj = SWIG_Py_Void();
23669 return resultobj;
23670 fail:
23671 return NULL;
23672 }
23673
23674
23675 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23676 PyObject *obj;
23677 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23678 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23679 return SWIG_Py_Void();
23680 }
23681
23682 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23683 return SWIG_Python_InitShadowInstance(args);
23684 }
23685
23686 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23687 PyObject *resultobj = 0;
23688 wxWindow *arg1 = (wxWindow *) 0 ;
23689 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23690 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23691 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23692 wxBufferedPaintDC *result = 0 ;
23693 void *argp1 = 0 ;
23694 int res1 = 0 ;
23695 void *argp2 = 0 ;
23696 int res2 = 0 ;
23697 int val3 ;
23698 int ecode3 = 0 ;
23699 PyObject * obj0 = 0 ;
23700 PyObject * obj1 = 0 ;
23701 PyObject * obj2 = 0 ;
23702 char * kwnames[] = {
23703 (char *) "window",(char *) "buffer",(char *) "style", NULL
23704 };
23705
23706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23708 if (!SWIG_IsOK(res1)) {
23709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23710 }
23711 arg1 = reinterpret_cast< wxWindow * >(argp1);
23712 if (obj1) {
23713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23714 if (!SWIG_IsOK(res2)) {
23715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23716 }
23717 if (!argp2) {
23718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23719 }
23720 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23721 }
23722 if (obj2) {
23723 ecode3 = SWIG_AsVal_int(obj2, &val3);
23724 if (!SWIG_IsOK(ecode3)) {
23725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23726 }
23727 arg3 = static_cast< int >(val3);
23728 }
23729 {
23730 if (!wxPyCheckForApp()) SWIG_fail;
23731 PyThreadState* __tstate = wxPyBeginAllowThreads();
23732 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23733 wxPyEndAllowThreads(__tstate);
23734 if (PyErr_Occurred()) SWIG_fail;
23735 }
23736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23737 return resultobj;
23738 fail:
23739 return NULL;
23740 }
23741
23742
23743 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23744 PyObject *obj;
23745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23746 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23747 return SWIG_Py_Void();
23748 }
23749
23750 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23751 return SWIG_Python_InitShadowInstance(args);
23752 }
23753
23754 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23755 PyObject *resultobj = 0;
23756 wxWindow *arg1 = (wxWindow *) 0 ;
23757 wxAutoBufferedPaintDC *result = 0 ;
23758 void *argp1 = 0 ;
23759 int res1 = 0 ;
23760 PyObject * obj0 = 0 ;
23761 char * kwnames[] = {
23762 (char *) "win", NULL
23763 };
23764
23765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
23766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23767 if (!SWIG_IsOK(res1)) {
23768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23769 }
23770 arg1 = reinterpret_cast< wxWindow * >(argp1);
23771 {
23772 PyThreadState* __tstate = wxPyBeginAllowThreads();
23773 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
23774 wxPyEndAllowThreads(__tstate);
23775 if (PyErr_Occurred()) SWIG_fail;
23776 }
23777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23778 return resultobj;
23779 fail:
23780 return NULL;
23781 }
23782
23783
23784 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23785 PyObject *obj;
23786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23787 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
23788 return SWIG_Py_Void();
23789 }
23790
23791 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23792 return SWIG_Python_InitShadowInstance(args);
23793 }
23794
23795 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23796 PyObject *resultobj = 0;
23797 wxWindow *arg1 = (wxWindow *) 0 ;
23798 wxDC *result = 0 ;
23799 void *argp1 = 0 ;
23800 int res1 = 0 ;
23801 PyObject * obj0 = 0 ;
23802 char * kwnames[] = {
23803 (char *) "window", NULL
23804 };
23805
23806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23808 if (!SWIG_IsOK(res1)) {
23809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23810 }
23811 arg1 = reinterpret_cast< wxWindow * >(argp1);
23812 {
23813 PyThreadState* __tstate = wxPyBeginAllowThreads();
23814 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23815 wxPyEndAllowThreads(__tstate);
23816 if (PyErr_Occurred()) SWIG_fail;
23817 }
23818 {
23819 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23820 }
23821 return resultobj;
23822 fail:
23823 return NULL;
23824 }
23825
23826
23827 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23828 PyObject *resultobj = 0;
23829 wxDC *arg1 = 0 ;
23830 bool arg2 ;
23831 wxMirrorDC *result = 0 ;
23832 void *argp1 = 0 ;
23833 int res1 = 0 ;
23834 bool val2 ;
23835 int ecode2 = 0 ;
23836 PyObject * obj0 = 0 ;
23837 PyObject * obj1 = 0 ;
23838 char * kwnames[] = {
23839 (char *) "dc",(char *) "mirror", NULL
23840 };
23841
23842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23843 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23844 if (!SWIG_IsOK(res1)) {
23845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23846 }
23847 if (!argp1) {
23848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23849 }
23850 arg1 = reinterpret_cast< wxDC * >(argp1);
23851 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23852 if (!SWIG_IsOK(ecode2)) {
23853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23854 }
23855 arg2 = static_cast< bool >(val2);
23856 {
23857 if (!wxPyCheckForApp()) SWIG_fail;
23858 PyThreadState* __tstate = wxPyBeginAllowThreads();
23859 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23860 wxPyEndAllowThreads(__tstate);
23861 if (PyErr_Occurred()) SWIG_fail;
23862 }
23863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23864 return resultobj;
23865 fail:
23866 return NULL;
23867 }
23868
23869
23870 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23871 PyObject *obj;
23872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23873 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23874 return SWIG_Py_Void();
23875 }
23876
23877 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23878 return SWIG_Python_InitShadowInstance(args);
23879 }
23880
23881 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23882 PyObject *resultobj = 0;
23883 wxPrintData *arg1 = 0 ;
23884 wxPostScriptDC *result = 0 ;
23885 void *argp1 = 0 ;
23886 int res1 = 0 ;
23887 PyObject * obj0 = 0 ;
23888 char * kwnames[] = {
23889 (char *) "printData", NULL
23890 };
23891
23892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23893 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23894 if (!SWIG_IsOK(res1)) {
23895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23896 }
23897 if (!argp1) {
23898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23899 }
23900 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23901 {
23902 if (!wxPyCheckForApp()) SWIG_fail;
23903 PyThreadState* __tstate = wxPyBeginAllowThreads();
23904 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23905 wxPyEndAllowThreads(__tstate);
23906 if (PyErr_Occurred()) SWIG_fail;
23907 }
23908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23909 return resultobj;
23910 fail:
23911 return NULL;
23912 }
23913
23914
23915 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23916 PyObject *resultobj = 0;
23917 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23918 wxPrintData *result = 0 ;
23919 void *argp1 = 0 ;
23920 int res1 = 0 ;
23921 PyObject *swig_obj[1] ;
23922
23923 if (!args) SWIG_fail;
23924 swig_obj[0] = args;
23925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23926 if (!SWIG_IsOK(res1)) {
23927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23928 }
23929 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23930 {
23931 PyThreadState* __tstate = wxPyBeginAllowThreads();
23932 {
23933 wxPrintData &_result_ref = (arg1)->GetPrintData();
23934 result = (wxPrintData *) &_result_ref;
23935 }
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23940 return resultobj;
23941 fail:
23942 return NULL;
23943 }
23944
23945
23946 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23947 PyObject *resultobj = 0;
23948 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23949 wxPrintData *arg2 = 0 ;
23950 void *argp1 = 0 ;
23951 int res1 = 0 ;
23952 void *argp2 = 0 ;
23953 int res2 = 0 ;
23954 PyObject * obj0 = 0 ;
23955 PyObject * obj1 = 0 ;
23956 char * kwnames[] = {
23957 (char *) "self",(char *) "data", NULL
23958 };
23959
23960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23962 if (!SWIG_IsOK(res1)) {
23963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23964 }
23965 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23966 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23967 if (!SWIG_IsOK(res2)) {
23968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23969 }
23970 if (!argp2) {
23971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23972 }
23973 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23974 {
23975 PyThreadState* __tstate = wxPyBeginAllowThreads();
23976 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23977 wxPyEndAllowThreads(__tstate);
23978 if (PyErr_Occurred()) SWIG_fail;
23979 }
23980 resultobj = SWIG_Py_Void();
23981 return resultobj;
23982 fail:
23983 return NULL;
23984 }
23985
23986
23987 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23988 PyObject *resultobj = 0;
23989 int arg1 ;
23990 int val1 ;
23991 int ecode1 = 0 ;
23992 PyObject * obj0 = 0 ;
23993 char * kwnames[] = {
23994 (char *) "ppi", NULL
23995 };
23996
23997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23998 ecode1 = SWIG_AsVal_int(obj0, &val1);
23999 if (!SWIG_IsOK(ecode1)) {
24000 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24001 }
24002 arg1 = static_cast< int >(val1);
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 wxPostScriptDC::SetResolution(arg1);
24006 wxPyEndAllowThreads(__tstate);
24007 if (PyErr_Occurred()) SWIG_fail;
24008 }
24009 resultobj = SWIG_Py_Void();
24010 return resultobj;
24011 fail:
24012 return NULL;
24013 }
24014
24015
24016 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24017 PyObject *resultobj = 0;
24018 int result;
24019
24020 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24021 {
24022 PyThreadState* __tstate = wxPyBeginAllowThreads();
24023 result = (int)wxPostScriptDC::GetResolution();
24024 wxPyEndAllowThreads(__tstate);
24025 if (PyErr_Occurred()) SWIG_fail;
24026 }
24027 resultobj = SWIG_From_int(static_cast< int >(result));
24028 return resultobj;
24029 fail:
24030 return NULL;
24031 }
24032
24033
24034 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24035 PyObject *obj;
24036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24037 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24038 return SWIG_Py_Void();
24039 }
24040
24041 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24042 return SWIG_Python_InitShadowInstance(args);
24043 }
24044
24045 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24046 PyObject *resultobj = 0;
24047 wxString const &arg1_defvalue = wxPyEmptyString ;
24048 wxString *arg1 = (wxString *) &arg1_defvalue ;
24049 wxMetaFile *result = 0 ;
24050 bool temp1 = false ;
24051 PyObject * obj0 = 0 ;
24052 char * kwnames[] = {
24053 (char *) "filename", NULL
24054 };
24055
24056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24057 if (obj0) {
24058 {
24059 arg1 = wxString_in_helper(obj0);
24060 if (arg1 == NULL) SWIG_fail;
24061 temp1 = true;
24062 }
24063 }
24064 {
24065 if (!wxPyCheckForApp()) SWIG_fail;
24066 PyThreadState* __tstate = wxPyBeginAllowThreads();
24067 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24068 wxPyEndAllowThreads(__tstate);
24069 if (PyErr_Occurred()) SWIG_fail;
24070 }
24071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24072 {
24073 if (temp1)
24074 delete arg1;
24075 }
24076 return resultobj;
24077 fail:
24078 {
24079 if (temp1)
24080 delete arg1;
24081 }
24082 return NULL;
24083 }
24084
24085
24086 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24087 PyObject *obj;
24088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24089 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24090 return SWIG_Py_Void();
24091 }
24092
24093 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24094 return SWIG_Python_InitShadowInstance(args);
24095 }
24096
24097 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24098 PyObject *resultobj = 0;
24099 wxString const &arg1_defvalue = wxPyEmptyString ;
24100 wxString *arg1 = (wxString *) &arg1_defvalue ;
24101 int arg2 = (int) 0 ;
24102 int arg3 = (int) 0 ;
24103 wxString const &arg4_defvalue = wxPyEmptyString ;
24104 wxString *arg4 = (wxString *) &arg4_defvalue ;
24105 wxMetaFileDC *result = 0 ;
24106 bool temp1 = false ;
24107 int val2 ;
24108 int ecode2 = 0 ;
24109 int val3 ;
24110 int ecode3 = 0 ;
24111 bool temp4 = false ;
24112 PyObject * obj0 = 0 ;
24113 PyObject * obj1 = 0 ;
24114 PyObject * obj2 = 0 ;
24115 PyObject * obj3 = 0 ;
24116 char * kwnames[] = {
24117 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24118 };
24119
24120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24121 if (obj0) {
24122 {
24123 arg1 = wxString_in_helper(obj0);
24124 if (arg1 == NULL) SWIG_fail;
24125 temp1 = true;
24126 }
24127 }
24128 if (obj1) {
24129 ecode2 = SWIG_AsVal_int(obj1, &val2);
24130 if (!SWIG_IsOK(ecode2)) {
24131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24132 }
24133 arg2 = static_cast< int >(val2);
24134 }
24135 if (obj2) {
24136 ecode3 = SWIG_AsVal_int(obj2, &val3);
24137 if (!SWIG_IsOK(ecode3)) {
24138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24139 }
24140 arg3 = static_cast< int >(val3);
24141 }
24142 if (obj3) {
24143 {
24144 arg4 = wxString_in_helper(obj3);
24145 if (arg4 == NULL) SWIG_fail;
24146 temp4 = true;
24147 }
24148 }
24149 {
24150 if (!wxPyCheckForApp()) SWIG_fail;
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24157 {
24158 if (temp1)
24159 delete arg1;
24160 }
24161 {
24162 if (temp4)
24163 delete arg4;
24164 }
24165 return resultobj;
24166 fail:
24167 {
24168 if (temp1)
24169 delete arg1;
24170 }
24171 {
24172 if (temp4)
24173 delete arg4;
24174 }
24175 return NULL;
24176 }
24177
24178
24179 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24180 PyObject *obj;
24181 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24182 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24183 return SWIG_Py_Void();
24184 }
24185
24186 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24187 return SWIG_Python_InitShadowInstance(args);
24188 }
24189
24190 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24191 PyObject *resultobj = 0;
24192 wxPrintData *arg1 = 0 ;
24193 wxPrinterDC *result = 0 ;
24194 void *argp1 = 0 ;
24195 int res1 = 0 ;
24196 PyObject * obj0 = 0 ;
24197 char * kwnames[] = {
24198 (char *) "printData", NULL
24199 };
24200
24201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24202 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24203 if (!SWIG_IsOK(res1)) {
24204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24205 }
24206 if (!argp1) {
24207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24208 }
24209 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24210 {
24211 if (!wxPyCheckForApp()) SWIG_fail;
24212 PyThreadState* __tstate = wxPyBeginAllowThreads();
24213 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24214 wxPyEndAllowThreads(__tstate);
24215 if (PyErr_Occurred()) SWIG_fail;
24216 }
24217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24218 return resultobj;
24219 fail:
24220 return NULL;
24221 }
24222
24223
24224 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24225 PyObject *obj;
24226 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24227 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24228 return SWIG_Py_Void();
24229 }
24230
24231 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24232 return SWIG_Python_InitShadowInstance(args);
24233 }
24234
24235 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24236 PyObject *resultobj = 0;
24237 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24238 void *argp1 = 0 ;
24239 int res1 = 0 ;
24240 PyObject *swig_obj[1] ;
24241
24242 if (!args) SWIG_fail;
24243 swig_obj[0] = args;
24244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
24245 if (!SWIG_IsOK(res1)) {
24246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24247 }
24248 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24249 {
24250 delete arg1;
24251
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 resultobj = SWIG_Py_Void();
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24262 PyObject *resultobj = 0;
24263 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24264 wxDouble arg2 ;
24265 wxDouble arg3 ;
24266 void *argp1 = 0 ;
24267 int res1 = 0 ;
24268 double val2 ;
24269 int ecode2 = 0 ;
24270 double val3 ;
24271 int ecode3 = 0 ;
24272 PyObject * obj0 = 0 ;
24273 PyObject * obj1 = 0 ;
24274 PyObject * obj2 = 0 ;
24275 char * kwnames[] = {
24276 (char *) "self",(char *) "x",(char *) "y", NULL
24277 };
24278
24279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24281 if (!SWIG_IsOK(res1)) {
24282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24283 }
24284 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24285 ecode2 = SWIG_AsVal_double(obj1, &val2);
24286 if (!SWIG_IsOK(ecode2)) {
24287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24288 }
24289 arg2 = static_cast< wxDouble >(val2);
24290 ecode3 = SWIG_AsVal_double(obj2, &val3);
24291 if (!SWIG_IsOK(ecode3)) {
24292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24293 }
24294 arg3 = static_cast< wxDouble >(val3);
24295 {
24296 (arg1)->MoveToPoint(arg2,arg3);
24297 if (PyErr_Occurred()) SWIG_fail;
24298 }
24299 resultobj = SWIG_Py_Void();
24300 return resultobj;
24301 fail:
24302 return NULL;
24303 }
24304
24305
24306 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24307 PyObject *resultobj = 0;
24308 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24309 wxDouble arg2 ;
24310 wxDouble arg3 ;
24311 void *argp1 = 0 ;
24312 int res1 = 0 ;
24313 double val2 ;
24314 int ecode2 = 0 ;
24315 double val3 ;
24316 int ecode3 = 0 ;
24317 PyObject * obj0 = 0 ;
24318 PyObject * obj1 = 0 ;
24319 PyObject * obj2 = 0 ;
24320 char * kwnames[] = {
24321 (char *) "self",(char *) "x",(char *) "y", NULL
24322 };
24323
24324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24326 if (!SWIG_IsOK(res1)) {
24327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24328 }
24329 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24330 ecode2 = SWIG_AsVal_double(obj1, &val2);
24331 if (!SWIG_IsOK(ecode2)) {
24332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24333 }
24334 arg2 = static_cast< wxDouble >(val2);
24335 ecode3 = SWIG_AsVal_double(obj2, &val3);
24336 if (!SWIG_IsOK(ecode3)) {
24337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24338 }
24339 arg3 = static_cast< wxDouble >(val3);
24340 {
24341 (arg1)->AddLineToPoint(arg2,arg3);
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_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24352 PyObject *resultobj = 0;
24353 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24354 wxDouble arg2 ;
24355 wxDouble arg3 ;
24356 wxDouble arg4 ;
24357 wxDouble arg5 ;
24358 wxDouble arg6 ;
24359 wxDouble arg7 ;
24360 void *argp1 = 0 ;
24361 int res1 = 0 ;
24362 double val2 ;
24363 int ecode2 = 0 ;
24364 double val3 ;
24365 int ecode3 = 0 ;
24366 double val4 ;
24367 int ecode4 = 0 ;
24368 double val5 ;
24369 int ecode5 = 0 ;
24370 double val6 ;
24371 int ecode6 = 0 ;
24372 double val7 ;
24373 int ecode7 = 0 ;
24374 PyObject * obj0 = 0 ;
24375 PyObject * obj1 = 0 ;
24376 PyObject * obj2 = 0 ;
24377 PyObject * obj3 = 0 ;
24378 PyObject * obj4 = 0 ;
24379 PyObject * obj5 = 0 ;
24380 PyObject * obj6 = 0 ;
24381 char * kwnames[] = {
24382 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24383 };
24384
24385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24387 if (!SWIG_IsOK(res1)) {
24388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24389 }
24390 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24391 ecode2 = SWIG_AsVal_double(obj1, &val2);
24392 if (!SWIG_IsOK(ecode2)) {
24393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24394 }
24395 arg2 = static_cast< wxDouble >(val2);
24396 ecode3 = SWIG_AsVal_double(obj2, &val3);
24397 if (!SWIG_IsOK(ecode3)) {
24398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24399 }
24400 arg3 = static_cast< wxDouble >(val3);
24401 ecode4 = SWIG_AsVal_double(obj3, &val4);
24402 if (!SWIG_IsOK(ecode4)) {
24403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24404 }
24405 arg4 = static_cast< wxDouble >(val4);
24406 ecode5 = SWIG_AsVal_double(obj4, &val5);
24407 if (!SWIG_IsOK(ecode5)) {
24408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24409 }
24410 arg5 = static_cast< wxDouble >(val5);
24411 ecode6 = SWIG_AsVal_double(obj5, &val6);
24412 if (!SWIG_IsOK(ecode6)) {
24413 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24414 }
24415 arg6 = static_cast< wxDouble >(val6);
24416 ecode7 = SWIG_AsVal_double(obj6, &val7);
24417 if (!SWIG_IsOK(ecode7)) {
24418 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24419 }
24420 arg7 = static_cast< wxDouble >(val7);
24421 {
24422 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24423 if (PyErr_Occurred()) SWIG_fail;
24424 }
24425 resultobj = SWIG_Py_Void();
24426 return resultobj;
24427 fail:
24428 return NULL;
24429 }
24430
24431
24432 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24433 PyObject *resultobj = 0;
24434 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24435 void *argp1 = 0 ;
24436 int res1 = 0 ;
24437 PyObject *swig_obj[1] ;
24438
24439 if (!args) SWIG_fail;
24440 swig_obj[0] = args;
24441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24442 if (!SWIG_IsOK(res1)) {
24443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24444 }
24445 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24446 {
24447 (arg1)->CloseSubpath();
24448 if (PyErr_Occurred()) SWIG_fail;
24449 }
24450 resultobj = SWIG_Py_Void();
24451 return resultobj;
24452 fail:
24453 return NULL;
24454 }
24455
24456
24457 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24458 PyObject *resultobj = 0;
24459 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24460 wxPoint2D result;
24461 void *argp1 = 0 ;
24462 int res1 = 0 ;
24463 PyObject *swig_obj[1] ;
24464
24465 if (!args) SWIG_fail;
24466 swig_obj[0] = args;
24467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24468 if (!SWIG_IsOK(res1)) {
24469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24470 }
24471 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24472 {
24473 result = (arg1)->GetCurrentPoint();
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24477 return resultobj;
24478 fail:
24479 return NULL;
24480 }
24481
24482
24483 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24484 PyObject *resultobj = 0;
24485 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24486 wxDouble arg2 ;
24487 wxDouble arg3 ;
24488 wxDouble arg4 ;
24489 wxDouble arg5 ;
24490 wxDouble arg6 ;
24491 bool arg7 ;
24492 void *argp1 = 0 ;
24493 int res1 = 0 ;
24494 double val2 ;
24495 int ecode2 = 0 ;
24496 double val3 ;
24497 int ecode3 = 0 ;
24498 double val4 ;
24499 int ecode4 = 0 ;
24500 double val5 ;
24501 int ecode5 = 0 ;
24502 double val6 ;
24503 int ecode6 = 0 ;
24504 bool val7 ;
24505 int ecode7 = 0 ;
24506 PyObject * obj0 = 0 ;
24507 PyObject * obj1 = 0 ;
24508 PyObject * obj2 = 0 ;
24509 PyObject * obj3 = 0 ;
24510 PyObject * obj4 = 0 ;
24511 PyObject * obj5 = 0 ;
24512 PyObject * obj6 = 0 ;
24513 char * kwnames[] = {
24514 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24515 };
24516
24517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24519 if (!SWIG_IsOK(res1)) {
24520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24521 }
24522 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24523 ecode2 = SWIG_AsVal_double(obj1, &val2);
24524 if (!SWIG_IsOK(ecode2)) {
24525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24526 }
24527 arg2 = static_cast< wxDouble >(val2);
24528 ecode3 = SWIG_AsVal_double(obj2, &val3);
24529 if (!SWIG_IsOK(ecode3)) {
24530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24531 }
24532 arg3 = static_cast< wxDouble >(val3);
24533 ecode4 = SWIG_AsVal_double(obj3, &val4);
24534 if (!SWIG_IsOK(ecode4)) {
24535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24536 }
24537 arg4 = static_cast< wxDouble >(val4);
24538 ecode5 = SWIG_AsVal_double(obj4, &val5);
24539 if (!SWIG_IsOK(ecode5)) {
24540 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24541 }
24542 arg5 = static_cast< wxDouble >(val5);
24543 ecode6 = SWIG_AsVal_double(obj5, &val6);
24544 if (!SWIG_IsOK(ecode6)) {
24545 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24546 }
24547 arg6 = static_cast< wxDouble >(val6);
24548 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24549 if (!SWIG_IsOK(ecode7)) {
24550 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24551 }
24552 arg7 = static_cast< bool >(val7);
24553 {
24554 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24555 if (PyErr_Occurred()) SWIG_fail;
24556 }
24557 resultobj = SWIG_Py_Void();
24558 return resultobj;
24559 fail:
24560 return NULL;
24561 }
24562
24563
24564 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj = 0;
24566 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24567 wxDouble arg2 ;
24568 wxDouble arg3 ;
24569 wxDouble arg4 ;
24570 wxDouble arg5 ;
24571 void *argp1 = 0 ;
24572 int res1 = 0 ;
24573 double val2 ;
24574 int ecode2 = 0 ;
24575 double val3 ;
24576 int ecode3 = 0 ;
24577 double val4 ;
24578 int ecode4 = 0 ;
24579 double val5 ;
24580 int ecode5 = 0 ;
24581 PyObject * obj0 = 0 ;
24582 PyObject * obj1 = 0 ;
24583 PyObject * obj2 = 0 ;
24584 PyObject * obj3 = 0 ;
24585 PyObject * obj4 = 0 ;
24586 char * kwnames[] = {
24587 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24588 };
24589
24590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24592 if (!SWIG_IsOK(res1)) {
24593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24594 }
24595 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24596 ecode2 = SWIG_AsVal_double(obj1, &val2);
24597 if (!SWIG_IsOK(ecode2)) {
24598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24599 }
24600 arg2 = static_cast< wxDouble >(val2);
24601 ecode3 = SWIG_AsVal_double(obj2, &val3);
24602 if (!SWIG_IsOK(ecode3)) {
24603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24604 }
24605 arg3 = static_cast< wxDouble >(val3);
24606 ecode4 = SWIG_AsVal_double(obj3, &val4);
24607 if (!SWIG_IsOK(ecode4)) {
24608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24609 }
24610 arg4 = static_cast< wxDouble >(val4);
24611 ecode5 = SWIG_AsVal_double(obj4, &val5);
24612 if (!SWIG_IsOK(ecode5)) {
24613 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24614 }
24615 arg5 = static_cast< wxDouble >(val5);
24616 {
24617 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24618 if (PyErr_Occurred()) SWIG_fail;
24619 }
24620 resultobj = SWIG_Py_Void();
24621 return resultobj;
24622 fail:
24623 return NULL;
24624 }
24625
24626
24627 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24628 PyObject *resultobj = 0;
24629 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24630 wxDouble arg2 ;
24631 wxDouble arg3 ;
24632 wxDouble arg4 ;
24633 wxDouble arg5 ;
24634 void *argp1 = 0 ;
24635 int res1 = 0 ;
24636 double val2 ;
24637 int ecode2 = 0 ;
24638 double val3 ;
24639 int ecode3 = 0 ;
24640 double val4 ;
24641 int ecode4 = 0 ;
24642 double val5 ;
24643 int ecode5 = 0 ;
24644 PyObject * obj0 = 0 ;
24645 PyObject * obj1 = 0 ;
24646 PyObject * obj2 = 0 ;
24647 PyObject * obj3 = 0 ;
24648 PyObject * obj4 = 0 ;
24649 char * kwnames[] = {
24650 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24651 };
24652
24653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24655 if (!SWIG_IsOK(res1)) {
24656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24657 }
24658 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24659 ecode2 = SWIG_AsVal_double(obj1, &val2);
24660 if (!SWIG_IsOK(ecode2)) {
24661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24662 }
24663 arg2 = static_cast< wxDouble >(val2);
24664 ecode3 = SWIG_AsVal_double(obj2, &val3);
24665 if (!SWIG_IsOK(ecode3)) {
24666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24667 }
24668 arg3 = static_cast< wxDouble >(val3);
24669 ecode4 = SWIG_AsVal_double(obj3, &val4);
24670 if (!SWIG_IsOK(ecode4)) {
24671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24672 }
24673 arg4 = static_cast< wxDouble >(val4);
24674 ecode5 = SWIG_AsVal_double(obj4, &val5);
24675 if (!SWIG_IsOK(ecode5)) {
24676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24677 }
24678 arg5 = static_cast< wxDouble >(val5);
24679 {
24680 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
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_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24691 PyObject *resultobj = 0;
24692 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24693 wxDouble arg2 ;
24694 wxDouble arg3 ;
24695 wxDouble arg4 ;
24696 void *argp1 = 0 ;
24697 int res1 = 0 ;
24698 double val2 ;
24699 int ecode2 = 0 ;
24700 double val3 ;
24701 int ecode3 = 0 ;
24702 double val4 ;
24703 int ecode4 = 0 ;
24704 PyObject * obj0 = 0 ;
24705 PyObject * obj1 = 0 ;
24706 PyObject * obj2 = 0 ;
24707 PyObject * obj3 = 0 ;
24708 char * kwnames[] = {
24709 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24710 };
24711
24712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24714 if (!SWIG_IsOK(res1)) {
24715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24716 }
24717 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24718 ecode2 = SWIG_AsVal_double(obj1, &val2);
24719 if (!SWIG_IsOK(ecode2)) {
24720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24721 }
24722 arg2 = static_cast< wxDouble >(val2);
24723 ecode3 = SWIG_AsVal_double(obj2, &val3);
24724 if (!SWIG_IsOK(ecode3)) {
24725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24726 }
24727 arg3 = static_cast< wxDouble >(val3);
24728 ecode4 = SWIG_AsVal_double(obj3, &val4);
24729 if (!SWIG_IsOK(ecode4)) {
24730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24731 }
24732 arg4 = static_cast< wxDouble >(val4);
24733 {
24734 (arg1)->AddCircle(arg2,arg3,arg4);
24735 if (PyErr_Occurred()) SWIG_fail;
24736 }
24737 resultobj = SWIG_Py_Void();
24738 return resultobj;
24739 fail:
24740 return NULL;
24741 }
24742
24743
24744 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24745 PyObject *resultobj = 0;
24746 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24747 wxDouble arg2 ;
24748 wxDouble arg3 ;
24749 wxDouble arg4 ;
24750 wxDouble arg5 ;
24751 wxDouble arg6 ;
24752 void *argp1 = 0 ;
24753 int res1 = 0 ;
24754 double val2 ;
24755 int ecode2 = 0 ;
24756 double val3 ;
24757 int ecode3 = 0 ;
24758 double val4 ;
24759 int ecode4 = 0 ;
24760 double val5 ;
24761 int ecode5 = 0 ;
24762 double val6 ;
24763 int ecode6 = 0 ;
24764 PyObject * obj0 = 0 ;
24765 PyObject * obj1 = 0 ;
24766 PyObject * obj2 = 0 ;
24767 PyObject * obj3 = 0 ;
24768 PyObject * obj4 = 0 ;
24769 PyObject * obj5 = 0 ;
24770 char * kwnames[] = {
24771 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24772 };
24773
24774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24776 if (!SWIG_IsOK(res1)) {
24777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24778 }
24779 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24780 ecode2 = SWIG_AsVal_double(obj1, &val2);
24781 if (!SWIG_IsOK(ecode2)) {
24782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24783 }
24784 arg2 = static_cast< wxDouble >(val2);
24785 ecode3 = SWIG_AsVal_double(obj2, &val3);
24786 if (!SWIG_IsOK(ecode3)) {
24787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24788 }
24789 arg3 = static_cast< wxDouble >(val3);
24790 ecode4 = SWIG_AsVal_double(obj3, &val4);
24791 if (!SWIG_IsOK(ecode4)) {
24792 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24793 }
24794 arg4 = static_cast< wxDouble >(val4);
24795 ecode5 = SWIG_AsVal_double(obj4, &val5);
24796 if (!SWIG_IsOK(ecode5)) {
24797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24798 }
24799 arg5 = static_cast< wxDouble >(val5);
24800 ecode6 = SWIG_AsVal_double(obj5, &val6);
24801 if (!SWIG_IsOK(ecode6)) {
24802 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24803 }
24804 arg6 = static_cast< wxDouble >(val6);
24805 {
24806 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
24807 if (PyErr_Occurred()) SWIG_fail;
24808 }
24809 resultobj = SWIG_Py_Void();
24810 return resultobj;
24811 fail:
24812 return NULL;
24813 }
24814
24815
24816 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24817 PyObject *obj;
24818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24819 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24820 return SWIG_Py_Void();
24821 }
24822
24823 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24824 PyObject *resultobj = 0;
24825 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24826 void *argp1 = 0 ;
24827 int res1 = 0 ;
24828 PyObject *swig_obj[1] ;
24829
24830 if (!args) SWIG_fail;
24831 swig_obj[0] = args;
24832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24833 if (!SWIG_IsOK(res1)) {
24834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24835 }
24836 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24837 {
24838 delete arg1;
24839
24840 if (PyErr_Occurred()) SWIG_fail;
24841 }
24842 resultobj = SWIG_Py_Void();
24843 return resultobj;
24844 fail:
24845 return NULL;
24846 }
24847
24848
24849 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24850 PyObject *resultobj = 0;
24851 wxWindowDC *arg1 = 0 ;
24852 wxGraphicsContext *result = 0 ;
24853 void *argp1 = 0 ;
24854 int res1 = 0 ;
24855
24856 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
24858 if (!SWIG_IsOK(res1)) {
24859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24860 }
24861 if (!argp1) {
24862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24863 }
24864 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
24865 {
24866 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
24867 if (PyErr_Occurred()) SWIG_fail;
24868 }
24869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24870 return resultobj;
24871 fail:
24872 return NULL;
24873 }
24874
24875
24876 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24877 PyObject *resultobj = 0;
24878 wxWindow *arg1 = (wxWindow *) 0 ;
24879 wxGraphicsContext *result = 0 ;
24880 void *argp1 = 0 ;
24881 int res1 = 0 ;
24882
24883 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24885 if (!SWIG_IsOK(res1)) {
24886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
24887 }
24888 arg1 = reinterpret_cast< wxWindow * >(argp1);
24889 {
24890 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
24891 if (PyErr_Occurred()) SWIG_fail;
24892 }
24893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24894 return resultobj;
24895 fail:
24896 return NULL;
24897 }
24898
24899
24900 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
24901 int argc;
24902 PyObject *argv[2];
24903
24904 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
24905 --argc;
24906 if (argc == 1) {
24907 int _v = 0;
24908 {
24909 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
24910 _v = SWIG_CheckState(res);
24911 }
24912 if (!_v) goto check_1;
24913 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
24914 }
24915 check_1:
24916
24917 if (argc == 1) {
24918 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
24919 }
24920
24921 fail:
24922 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
24923 return NULL;
24924 }
24925
24926
24927 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24928 PyObject *resultobj = 0;
24929 void *arg1 = (void *) 0 ;
24930 wxGraphicsContext *result = 0 ;
24931 int res1 ;
24932 PyObject * obj0 = 0 ;
24933 char * kwnames[] = {
24934 (char *) "context", NULL
24935 };
24936
24937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
24938 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
24939 if (!SWIG_IsOK(res1)) {
24940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
24941 }
24942 {
24943 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24947 return resultobj;
24948 fail:
24949 return NULL;
24950 }
24951
24952
24953 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24954 PyObject *resultobj = 0;
24955 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24956 wxGraphicsPath *result = 0 ;
24957 void *argp1 = 0 ;
24958 int res1 = 0 ;
24959 PyObject *swig_obj[1] ;
24960
24961 if (!args) SWIG_fail;
24962 swig_obj[0] = args;
24963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24964 if (!SWIG_IsOK(res1)) {
24965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24966 }
24967 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24968 {
24969 result = (wxGraphicsPath *)(arg1)->CreatePath();
24970 if (PyErr_Occurred()) SWIG_fail;
24971 }
24972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24973 return resultobj;
24974 fail:
24975 return NULL;
24976 }
24977
24978
24979 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24980 PyObject *resultobj = 0;
24981 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24982 void *argp1 = 0 ;
24983 int res1 = 0 ;
24984 PyObject *swig_obj[1] ;
24985
24986 if (!args) SWIG_fail;
24987 swig_obj[0] = args;
24988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24989 if (!SWIG_IsOK(res1)) {
24990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24991 }
24992 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24993 {
24994 (arg1)->PushState();
24995 if (PyErr_Occurred()) SWIG_fail;
24996 }
24997 resultobj = SWIG_Py_Void();
24998 return resultobj;
24999 fail:
25000 return NULL;
25001 }
25002
25003
25004 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25005 PyObject *resultobj = 0;
25006 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25007 void *argp1 = 0 ;
25008 int res1 = 0 ;
25009 PyObject *swig_obj[1] ;
25010
25011 if (!args) SWIG_fail;
25012 swig_obj[0] = args;
25013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25014 if (!SWIG_IsOK(res1)) {
25015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25016 }
25017 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25018 {
25019 (arg1)->PopState();
25020 if (PyErr_Occurred()) SWIG_fail;
25021 }
25022 resultobj = SWIG_Py_Void();
25023 return resultobj;
25024 fail:
25025 return NULL;
25026 }
25027
25028
25029 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25030 PyObject *resultobj = 0;
25031 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25032 wxRegion *arg2 = 0 ;
25033 void *argp1 = 0 ;
25034 int res1 = 0 ;
25035 void *argp2 = 0 ;
25036 int res2 = 0 ;
25037 PyObject * obj0 = 0 ;
25038 PyObject * obj1 = 0 ;
25039 char * kwnames[] = {
25040 (char *) "self",(char *) "region", NULL
25041 };
25042
25043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
25044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25045 if (!SWIG_IsOK(res1)) {
25046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25047 }
25048 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25049 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25050 if (!SWIG_IsOK(res2)) {
25051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
25052 }
25053 if (!argp2) {
25054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
25055 }
25056 arg2 = reinterpret_cast< wxRegion * >(argp2);
25057 {
25058 (arg1)->Clip((wxRegion const &)*arg2);
25059 if (PyErr_Occurred()) SWIG_fail;
25060 }
25061 resultobj = SWIG_Py_Void();
25062 return resultobj;
25063 fail:
25064 return NULL;
25065 }
25066
25067
25068 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25069 PyObject *resultobj = 0;
25070 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25071 wxDouble arg2 ;
25072 wxDouble arg3 ;
25073 wxDouble arg4 ;
25074 wxDouble arg5 ;
25075 void *argp1 = 0 ;
25076 int res1 = 0 ;
25077 double val2 ;
25078 int ecode2 = 0 ;
25079 double val3 ;
25080 int ecode3 = 0 ;
25081 double val4 ;
25082 int ecode4 = 0 ;
25083 double val5 ;
25084 int ecode5 = 0 ;
25085 PyObject * obj0 = 0 ;
25086 PyObject * obj1 = 0 ;
25087 PyObject * obj2 = 0 ;
25088 PyObject * obj3 = 0 ;
25089 PyObject * obj4 = 0 ;
25090 char * kwnames[] = {
25091 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25092 };
25093
25094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25096 if (!SWIG_IsOK(res1)) {
25097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25098 }
25099 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25100 ecode2 = SWIG_AsVal_double(obj1, &val2);
25101 if (!SWIG_IsOK(ecode2)) {
25102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
25103 }
25104 arg2 = static_cast< wxDouble >(val2);
25105 ecode3 = SWIG_AsVal_double(obj2, &val3);
25106 if (!SWIG_IsOK(ecode3)) {
25107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
25108 }
25109 arg3 = static_cast< wxDouble >(val3);
25110 ecode4 = SWIG_AsVal_double(obj3, &val4);
25111 if (!SWIG_IsOK(ecode4)) {
25112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
25113 }
25114 arg4 = static_cast< wxDouble >(val4);
25115 ecode5 = SWIG_AsVal_double(obj4, &val5);
25116 if (!SWIG_IsOK(ecode5)) {
25117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
25118 }
25119 arg5 = static_cast< wxDouble >(val5);
25120 {
25121 (arg1)->Clip(arg2,arg3,arg4,arg5);
25122 if (PyErr_Occurred()) SWIG_fail;
25123 }
25124 resultobj = SWIG_Py_Void();
25125 return resultobj;
25126 fail:
25127 return NULL;
25128 }
25129
25130
25131 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25132 PyObject *resultobj = 0;
25133 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25134 void *argp1 = 0 ;
25135 int res1 = 0 ;
25136 PyObject *swig_obj[1] ;
25137
25138 if (!args) SWIG_fail;
25139 swig_obj[0] = args;
25140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25141 if (!SWIG_IsOK(res1)) {
25142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25143 }
25144 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25145 {
25146 (arg1)->ResetClip();
25147 if (PyErr_Occurred()) SWIG_fail;
25148 }
25149 resultobj = SWIG_Py_Void();
25150 return resultobj;
25151 fail:
25152 return NULL;
25153 }
25154
25155
25156 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25157 PyObject *resultobj = 0;
25158 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25159 void *result = 0 ;
25160 void *argp1 = 0 ;
25161 int res1 = 0 ;
25162 PyObject *swig_obj[1] ;
25163
25164 if (!args) SWIG_fail;
25165 swig_obj[0] = args;
25166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25167 if (!SWIG_IsOK(res1)) {
25168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25169 }
25170 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25171 {
25172 result = (void *)(arg1)->GetNativeContext();
25173 if (PyErr_Occurred()) SWIG_fail;
25174 }
25175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25176 return resultobj;
25177 fail:
25178 return NULL;
25179 }
25180
25181
25182 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25183 PyObject *resultobj = 0;
25184 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25185 wxDouble arg2 ;
25186 wxDouble arg3 ;
25187 void *argp1 = 0 ;
25188 int res1 = 0 ;
25189 double val2 ;
25190 int ecode2 = 0 ;
25191 double val3 ;
25192 int ecode3 = 0 ;
25193 PyObject * obj0 = 0 ;
25194 PyObject * obj1 = 0 ;
25195 PyObject * obj2 = 0 ;
25196 char * kwnames[] = {
25197 (char *) "self",(char *) "dx",(char *) "dy", NULL
25198 };
25199
25200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25202 if (!SWIG_IsOK(res1)) {
25203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25204 }
25205 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25206 ecode2 = SWIG_AsVal_double(obj1, &val2);
25207 if (!SWIG_IsOK(ecode2)) {
25208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25209 }
25210 arg2 = static_cast< wxDouble >(val2);
25211 ecode3 = SWIG_AsVal_double(obj2, &val3);
25212 if (!SWIG_IsOK(ecode3)) {
25213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25214 }
25215 arg3 = static_cast< wxDouble >(val3);
25216 {
25217 (arg1)->Translate(arg2,arg3);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 resultobj = SWIG_Py_Void();
25221 return resultobj;
25222 fail:
25223 return NULL;
25224 }
25225
25226
25227 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25228 PyObject *resultobj = 0;
25229 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25230 wxDouble arg2 ;
25231 wxDouble arg3 ;
25232 void *argp1 = 0 ;
25233 int res1 = 0 ;
25234 double val2 ;
25235 int ecode2 = 0 ;
25236 double val3 ;
25237 int ecode3 = 0 ;
25238 PyObject * obj0 = 0 ;
25239 PyObject * obj1 = 0 ;
25240 PyObject * obj2 = 0 ;
25241 char * kwnames[] = {
25242 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25243 };
25244
25245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25247 if (!SWIG_IsOK(res1)) {
25248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25249 }
25250 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25251 ecode2 = SWIG_AsVal_double(obj1, &val2);
25252 if (!SWIG_IsOK(ecode2)) {
25253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25254 }
25255 arg2 = static_cast< wxDouble >(val2);
25256 ecode3 = SWIG_AsVal_double(obj2, &val3);
25257 if (!SWIG_IsOK(ecode3)) {
25258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25259 }
25260 arg3 = static_cast< wxDouble >(val3);
25261 {
25262 (arg1)->Scale(arg2,arg3);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_Py_Void();
25266 return resultobj;
25267 fail:
25268 return NULL;
25269 }
25270
25271
25272 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25273 PyObject *resultobj = 0;
25274 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25275 wxDouble arg2 ;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 double val2 ;
25279 int ecode2 = 0 ;
25280 PyObject * obj0 = 0 ;
25281 PyObject * obj1 = 0 ;
25282 char * kwnames[] = {
25283 (char *) "self",(char *) "angle", NULL
25284 };
25285
25286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25288 if (!SWIG_IsOK(res1)) {
25289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25290 }
25291 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25292 ecode2 = SWIG_AsVal_double(obj1, &val2);
25293 if (!SWIG_IsOK(ecode2)) {
25294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25295 }
25296 arg2 = static_cast< wxDouble >(val2);
25297 {
25298 (arg1)->Rotate(arg2);
25299 if (PyErr_Occurred()) SWIG_fail;
25300 }
25301 resultobj = SWIG_Py_Void();
25302 return resultobj;
25303 fail:
25304 return NULL;
25305 }
25306
25307
25308 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25309 PyObject *resultobj = 0;
25310 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25311 wxPen *arg2 = 0 ;
25312 void *argp1 = 0 ;
25313 int res1 = 0 ;
25314 void *argp2 = 0 ;
25315 int res2 = 0 ;
25316 PyObject * obj0 = 0 ;
25317 PyObject * obj1 = 0 ;
25318 char * kwnames[] = {
25319 (char *) "self",(char *) "pen", NULL
25320 };
25321
25322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25324 if (!SWIG_IsOK(res1)) {
25325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25326 }
25327 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25329 if (!SWIG_IsOK(res2)) {
25330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25331 }
25332 if (!argp2) {
25333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25334 }
25335 arg2 = reinterpret_cast< wxPen * >(argp2);
25336 {
25337 (arg1)->SetPen((wxPen const &)*arg2);
25338 if (PyErr_Occurred()) SWIG_fail;
25339 }
25340 resultobj = SWIG_Py_Void();
25341 return resultobj;
25342 fail:
25343 return NULL;
25344 }
25345
25346
25347 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25348 PyObject *resultobj = 0;
25349 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25350 wxBrush *arg2 = 0 ;
25351 void *argp1 = 0 ;
25352 int res1 = 0 ;
25353 void *argp2 = 0 ;
25354 int res2 = 0 ;
25355 PyObject * obj0 = 0 ;
25356 PyObject * obj1 = 0 ;
25357 char * kwnames[] = {
25358 (char *) "self",(char *) "brush", NULL
25359 };
25360
25361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25363 if (!SWIG_IsOK(res1)) {
25364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25365 }
25366 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25368 if (!SWIG_IsOK(res2)) {
25369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25370 }
25371 if (!argp2) {
25372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25373 }
25374 arg2 = reinterpret_cast< wxBrush * >(argp2);
25375 {
25376 (arg1)->SetBrush((wxBrush const &)*arg2);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 resultobj = SWIG_Py_Void();
25380 return resultobj;
25381 fail:
25382 return NULL;
25383 }
25384
25385
25386 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25387 PyObject *resultobj = 0;
25388 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25389 wxDouble arg2 ;
25390 wxDouble arg3 ;
25391 wxDouble arg4 ;
25392 wxDouble arg5 ;
25393 wxColour *arg6 = 0 ;
25394 wxColour *arg7 = 0 ;
25395 void *argp1 = 0 ;
25396 int res1 = 0 ;
25397 double val2 ;
25398 int ecode2 = 0 ;
25399 double val3 ;
25400 int ecode3 = 0 ;
25401 double val4 ;
25402 int ecode4 = 0 ;
25403 double val5 ;
25404 int ecode5 = 0 ;
25405 wxColour temp6 ;
25406 wxColour temp7 ;
25407 PyObject * obj0 = 0 ;
25408 PyObject * obj1 = 0 ;
25409 PyObject * obj2 = 0 ;
25410 PyObject * obj3 = 0 ;
25411 PyObject * obj4 = 0 ;
25412 PyObject * obj5 = 0 ;
25413 PyObject * obj6 = 0 ;
25414 char * kwnames[] = {
25415 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25416 };
25417
25418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25420 if (!SWIG_IsOK(res1)) {
25421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25422 }
25423 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25424 ecode2 = SWIG_AsVal_double(obj1, &val2);
25425 if (!SWIG_IsOK(ecode2)) {
25426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25427 }
25428 arg2 = static_cast< wxDouble >(val2);
25429 ecode3 = SWIG_AsVal_double(obj2, &val3);
25430 if (!SWIG_IsOK(ecode3)) {
25431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25432 }
25433 arg3 = static_cast< wxDouble >(val3);
25434 ecode4 = SWIG_AsVal_double(obj3, &val4);
25435 if (!SWIG_IsOK(ecode4)) {
25436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25437 }
25438 arg4 = static_cast< wxDouble >(val4);
25439 ecode5 = SWIG_AsVal_double(obj4, &val5);
25440 if (!SWIG_IsOK(ecode5)) {
25441 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25442 }
25443 arg5 = static_cast< wxDouble >(val5);
25444 {
25445 arg6 = &temp6;
25446 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25447 }
25448 {
25449 arg7 = &temp7;
25450 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25451 }
25452 {
25453 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25454 if (PyErr_Occurred()) SWIG_fail;
25455 }
25456 resultobj = SWIG_Py_Void();
25457 return resultobj;
25458 fail:
25459 return NULL;
25460 }
25461
25462
25463 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25464 PyObject *resultobj = 0;
25465 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25466 wxDouble arg2 ;
25467 wxDouble arg3 ;
25468 wxDouble arg4 ;
25469 wxDouble arg5 ;
25470 wxDouble arg6 ;
25471 wxColour *arg7 = 0 ;
25472 wxColour *arg8 = 0 ;
25473 void *argp1 = 0 ;
25474 int res1 = 0 ;
25475 double val2 ;
25476 int ecode2 = 0 ;
25477 double val3 ;
25478 int ecode3 = 0 ;
25479 double val4 ;
25480 int ecode4 = 0 ;
25481 double val5 ;
25482 int ecode5 = 0 ;
25483 double val6 ;
25484 int ecode6 = 0 ;
25485 wxColour temp7 ;
25486 wxColour temp8 ;
25487 PyObject * obj0 = 0 ;
25488 PyObject * obj1 = 0 ;
25489 PyObject * obj2 = 0 ;
25490 PyObject * obj3 = 0 ;
25491 PyObject * obj4 = 0 ;
25492 PyObject * obj5 = 0 ;
25493 PyObject * obj6 = 0 ;
25494 PyObject * obj7 = 0 ;
25495 char * kwnames[] = {
25496 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25497 };
25498
25499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25501 if (!SWIG_IsOK(res1)) {
25502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25503 }
25504 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25505 ecode2 = SWIG_AsVal_double(obj1, &val2);
25506 if (!SWIG_IsOK(ecode2)) {
25507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25508 }
25509 arg2 = static_cast< wxDouble >(val2);
25510 ecode3 = SWIG_AsVal_double(obj2, &val3);
25511 if (!SWIG_IsOK(ecode3)) {
25512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25513 }
25514 arg3 = static_cast< wxDouble >(val3);
25515 ecode4 = SWIG_AsVal_double(obj3, &val4);
25516 if (!SWIG_IsOK(ecode4)) {
25517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25518 }
25519 arg4 = static_cast< wxDouble >(val4);
25520 ecode5 = SWIG_AsVal_double(obj4, &val5);
25521 if (!SWIG_IsOK(ecode5)) {
25522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25523 }
25524 arg5 = static_cast< wxDouble >(val5);
25525 ecode6 = SWIG_AsVal_double(obj5, &val6);
25526 if (!SWIG_IsOK(ecode6)) {
25527 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25528 }
25529 arg6 = static_cast< wxDouble >(val6);
25530 {
25531 arg7 = &temp7;
25532 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25533 }
25534 {
25535 arg8 = &temp8;
25536 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25537 }
25538 {
25539 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25540 if (PyErr_Occurred()) SWIG_fail;
25541 }
25542 resultobj = SWIG_Py_Void();
25543 return resultobj;
25544 fail:
25545 return NULL;
25546 }
25547
25548
25549 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25550 PyObject *resultobj = 0;
25551 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25552 wxFont *arg2 = 0 ;
25553 void *argp1 = 0 ;
25554 int res1 = 0 ;
25555 void *argp2 = 0 ;
25556 int res2 = 0 ;
25557 PyObject * obj0 = 0 ;
25558 PyObject * obj1 = 0 ;
25559 char * kwnames[] = {
25560 (char *) "self",(char *) "font", NULL
25561 };
25562
25563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25565 if (!SWIG_IsOK(res1)) {
25566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25567 }
25568 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25569 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25570 if (!SWIG_IsOK(res2)) {
25571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25572 }
25573 if (!argp2) {
25574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25575 }
25576 arg2 = reinterpret_cast< wxFont * >(argp2);
25577 {
25578 (arg1)->SetFont((wxFont const &)*arg2);
25579 if (PyErr_Occurred()) SWIG_fail;
25580 }
25581 resultobj = SWIG_Py_Void();
25582 return resultobj;
25583 fail:
25584 return NULL;
25585 }
25586
25587
25588 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25589 PyObject *resultobj = 0;
25590 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25591 wxColour *arg2 = 0 ;
25592 void *argp1 = 0 ;
25593 int res1 = 0 ;
25594 wxColour temp2 ;
25595 PyObject * obj0 = 0 ;
25596 PyObject * obj1 = 0 ;
25597 char * kwnames[] = {
25598 (char *) "self",(char *) "col", NULL
25599 };
25600
25601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25603 if (!SWIG_IsOK(res1)) {
25604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25605 }
25606 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25607 {
25608 arg2 = &temp2;
25609 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25610 }
25611 {
25612 (arg1)->SetTextColor((wxColour const &)*arg2);
25613 if (PyErr_Occurred()) SWIG_fail;
25614 }
25615 resultobj = SWIG_Py_Void();
25616 return resultobj;
25617 fail:
25618 return NULL;
25619 }
25620
25621
25622 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25623 PyObject *resultobj = 0;
25624 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25625 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25626 void *argp1 = 0 ;
25627 int res1 = 0 ;
25628 void *argp2 = 0 ;
25629 int res2 = 0 ;
25630 PyObject * obj0 = 0 ;
25631 PyObject * obj1 = 0 ;
25632 char * kwnames[] = {
25633 (char *) "self",(char *) "path", NULL
25634 };
25635
25636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25638 if (!SWIG_IsOK(res1)) {
25639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25640 }
25641 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25642 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25643 if (!SWIG_IsOK(res2)) {
25644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25645 }
25646 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25647 {
25648 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25649 if (PyErr_Occurred()) SWIG_fail;
25650 }
25651 resultobj = SWIG_Py_Void();
25652 return resultobj;
25653 fail:
25654 return NULL;
25655 }
25656
25657
25658 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25659 PyObject *resultobj = 0;
25660 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25661 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25662 int arg3 = (int) wxWINDING_RULE ;
25663 void *argp1 = 0 ;
25664 int res1 = 0 ;
25665 void *argp2 = 0 ;
25666 int res2 = 0 ;
25667 int val3 ;
25668 int ecode3 = 0 ;
25669 PyObject * obj0 = 0 ;
25670 PyObject * obj1 = 0 ;
25671 PyObject * obj2 = 0 ;
25672 char * kwnames[] = {
25673 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25674 };
25675
25676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25678 if (!SWIG_IsOK(res1)) {
25679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25680 }
25681 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25682 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25683 if (!SWIG_IsOK(res2)) {
25684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25685 }
25686 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25687 if (obj2) {
25688 ecode3 = SWIG_AsVal_int(obj2, &val3);
25689 if (!SWIG_IsOK(ecode3)) {
25690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25691 }
25692 arg3 = static_cast< int >(val3);
25693 }
25694 {
25695 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_Py_Void();
25699 return resultobj;
25700 fail:
25701 return NULL;
25702 }
25703
25704
25705 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25706 PyObject *resultobj = 0;
25707 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25708 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25709 int arg3 = (int) wxWINDING_RULE ;
25710 void *argp1 = 0 ;
25711 int res1 = 0 ;
25712 void *argp2 = 0 ;
25713 int res2 = 0 ;
25714 int val3 ;
25715 int ecode3 = 0 ;
25716 PyObject * obj0 = 0 ;
25717 PyObject * obj1 = 0 ;
25718 PyObject * obj2 = 0 ;
25719 char * kwnames[] = {
25720 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25721 };
25722
25723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25725 if (!SWIG_IsOK(res1)) {
25726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25727 }
25728 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25729 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25730 if (!SWIG_IsOK(res2)) {
25731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25732 }
25733 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25734 if (obj2) {
25735 ecode3 = SWIG_AsVal_int(obj2, &val3);
25736 if (!SWIG_IsOK(ecode3)) {
25737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25738 }
25739 arg3 = static_cast< int >(val3);
25740 }
25741 {
25742 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
25743 if (PyErr_Occurred()) SWIG_fail;
25744 }
25745 resultobj = SWIG_Py_Void();
25746 return resultobj;
25747 fail:
25748 return NULL;
25749 }
25750
25751
25752 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25753 PyObject *resultobj = 0;
25754 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25755 wxString *arg2 = 0 ;
25756 wxDouble arg3 ;
25757 wxDouble arg4 ;
25758 void *argp1 = 0 ;
25759 int res1 = 0 ;
25760 bool temp2 = false ;
25761 double val3 ;
25762 int ecode3 = 0 ;
25763 double val4 ;
25764 int ecode4 = 0 ;
25765 PyObject * obj0 = 0 ;
25766 PyObject * obj1 = 0 ;
25767 PyObject * obj2 = 0 ;
25768 PyObject * obj3 = 0 ;
25769 char * kwnames[] = {
25770 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25771 };
25772
25773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25775 if (!SWIG_IsOK(res1)) {
25776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25777 }
25778 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25779 {
25780 arg2 = wxString_in_helper(obj1);
25781 if (arg2 == NULL) SWIG_fail;
25782 temp2 = true;
25783 }
25784 ecode3 = SWIG_AsVal_double(obj2, &val3);
25785 if (!SWIG_IsOK(ecode3)) {
25786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25787 }
25788 arg3 = static_cast< wxDouble >(val3);
25789 ecode4 = SWIG_AsVal_double(obj3, &val4);
25790 if (!SWIG_IsOK(ecode4)) {
25791 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25792 }
25793 arg4 = static_cast< wxDouble >(val4);
25794 {
25795 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
25796 if (PyErr_Occurred()) SWIG_fail;
25797 }
25798 resultobj = SWIG_Py_Void();
25799 {
25800 if (temp2)
25801 delete arg2;
25802 }
25803 return resultobj;
25804 fail:
25805 {
25806 if (temp2)
25807 delete arg2;
25808 }
25809 return NULL;
25810 }
25811
25812
25813 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25814 PyObject *resultobj = 0;
25815 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25816 wxString *arg2 = 0 ;
25817 wxDouble arg3 ;
25818 wxDouble arg4 ;
25819 wxDouble arg5 ;
25820 void *argp1 = 0 ;
25821 int res1 = 0 ;
25822 bool temp2 = false ;
25823 double val3 ;
25824 int ecode3 = 0 ;
25825 double val4 ;
25826 int ecode4 = 0 ;
25827 double val5 ;
25828 int ecode5 = 0 ;
25829 PyObject * obj0 = 0 ;
25830 PyObject * obj1 = 0 ;
25831 PyObject * obj2 = 0 ;
25832 PyObject * obj3 = 0 ;
25833 PyObject * obj4 = 0 ;
25834 char * kwnames[] = {
25835 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25836 };
25837
25838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25840 if (!SWIG_IsOK(res1)) {
25841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25842 }
25843 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25844 {
25845 arg2 = wxString_in_helper(obj1);
25846 if (arg2 == NULL) SWIG_fail;
25847 temp2 = true;
25848 }
25849 ecode3 = SWIG_AsVal_double(obj2, &val3);
25850 if (!SWIG_IsOK(ecode3)) {
25851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
25852 }
25853 arg3 = static_cast< wxDouble >(val3);
25854 ecode4 = SWIG_AsVal_double(obj3, &val4);
25855 if (!SWIG_IsOK(ecode4)) {
25856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
25857 }
25858 arg4 = static_cast< wxDouble >(val4);
25859 ecode5 = SWIG_AsVal_double(obj4, &val5);
25860 if (!SWIG_IsOK(ecode5)) {
25861 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
25862 }
25863 arg5 = static_cast< wxDouble >(val5);
25864 {
25865 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
25866 if (PyErr_Occurred()) SWIG_fail;
25867 }
25868 resultobj = SWIG_Py_Void();
25869 {
25870 if (temp2)
25871 delete arg2;
25872 }
25873 return resultobj;
25874 fail:
25875 {
25876 if (temp2)
25877 delete arg2;
25878 }
25879 return NULL;
25880 }
25881
25882
25883 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25884 PyObject *resultobj = 0;
25885 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25886 wxString *arg2 = 0 ;
25887 wxDouble *arg3 = (wxDouble *) 0 ;
25888 wxDouble *arg4 = (wxDouble *) 0 ;
25889 wxDouble *arg5 = (wxDouble *) 0 ;
25890 wxDouble *arg6 = (wxDouble *) 0 ;
25891 void *argp1 = 0 ;
25892 int res1 = 0 ;
25893 bool temp2 = false ;
25894 wxDouble temp3 ;
25895 int res3 = SWIG_TMPOBJ ;
25896 wxDouble temp4 ;
25897 int res4 = SWIG_TMPOBJ ;
25898 wxDouble temp5 ;
25899 int res5 = SWIG_TMPOBJ ;
25900 wxDouble temp6 ;
25901 int res6 = SWIG_TMPOBJ ;
25902 PyObject * obj0 = 0 ;
25903 PyObject * obj1 = 0 ;
25904 char * kwnames[] = {
25905 (char *) "self",(char *) "text", NULL
25906 };
25907
25908 arg3 = &temp3;
25909 arg4 = &temp4;
25910 arg5 = &temp5;
25911 arg6 = &temp6;
25912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25914 if (!SWIG_IsOK(res1)) {
25915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25916 }
25917 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25918 {
25919 arg2 = wxString_in_helper(obj1);
25920 if (arg2 == NULL) SWIG_fail;
25921 temp2 = true;
25922 }
25923 {
25924 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
25925 if (PyErr_Occurred()) SWIG_fail;
25926 }
25927 resultobj = SWIG_Py_Void();
25928 if (SWIG_IsTmpObj(res3)) {
25929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25930 } else {
25931 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25933 }
25934 if (SWIG_IsTmpObj(res4)) {
25935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25936 } else {
25937 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25939 }
25940 if (SWIG_IsTmpObj(res5)) {
25941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25942 } else {
25943 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25945 }
25946 if (SWIG_IsTmpObj(res6)) {
25947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25948 } else {
25949 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25951 }
25952 {
25953 if (temp2)
25954 delete arg2;
25955 }
25956 return resultobj;
25957 fail:
25958 {
25959 if (temp2)
25960 delete arg2;
25961 }
25962 return NULL;
25963 }
25964
25965
25966 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25967 PyObject *resultobj = 0;
25968 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25969 wxString *arg2 = 0 ;
25970 wxArrayDouble result;
25971 void *argp1 = 0 ;
25972 int res1 = 0 ;
25973 bool temp2 = false ;
25974 PyObject * obj0 = 0 ;
25975 PyObject * obj1 = 0 ;
25976 char * kwnames[] = {
25977 (char *) "self",(char *) "text", NULL
25978 };
25979
25980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
25981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25982 if (!SWIG_IsOK(res1)) {
25983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25984 }
25985 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25986 {
25987 arg2 = wxString_in_helper(obj1);
25988 if (arg2 == NULL) SWIG_fail;
25989 temp2 = true;
25990 }
25991 {
25992 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
25993 if (PyErr_Occurred()) SWIG_fail;
25994 }
25995 {
25996 resultobj = wxArrayDouble2PyList_helper(result);
25997 }
25998 {
25999 if (temp2)
26000 delete arg2;
26001 }
26002 return resultobj;
26003 fail:
26004 {
26005 if (temp2)
26006 delete arg2;
26007 }
26008 return NULL;
26009 }
26010
26011
26012 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26013 PyObject *resultobj = 0;
26014 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26015 wxBitmap *arg2 = 0 ;
26016 wxDouble arg3 ;
26017 wxDouble arg4 ;
26018 wxDouble arg5 ;
26019 wxDouble arg6 ;
26020 void *argp1 = 0 ;
26021 int res1 = 0 ;
26022 void *argp2 = 0 ;
26023 int res2 = 0 ;
26024 double val3 ;
26025 int ecode3 = 0 ;
26026 double val4 ;
26027 int ecode4 = 0 ;
26028 double val5 ;
26029 int ecode5 = 0 ;
26030 double val6 ;
26031 int ecode6 = 0 ;
26032 PyObject * obj0 = 0 ;
26033 PyObject * obj1 = 0 ;
26034 PyObject * obj2 = 0 ;
26035 PyObject * obj3 = 0 ;
26036 PyObject * obj4 = 0 ;
26037 PyObject * obj5 = 0 ;
26038 char * kwnames[] = {
26039 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26040 };
26041
26042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26044 if (!SWIG_IsOK(res1)) {
26045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26046 }
26047 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26049 if (!SWIG_IsOK(res2)) {
26050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26051 }
26052 if (!argp2) {
26053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26054 }
26055 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26056 ecode3 = SWIG_AsVal_double(obj2, &val3);
26057 if (!SWIG_IsOK(ecode3)) {
26058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26059 }
26060 arg3 = static_cast< wxDouble >(val3);
26061 ecode4 = SWIG_AsVal_double(obj3, &val4);
26062 if (!SWIG_IsOK(ecode4)) {
26063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26064 }
26065 arg4 = static_cast< wxDouble >(val4);
26066 ecode5 = SWIG_AsVal_double(obj4, &val5);
26067 if (!SWIG_IsOK(ecode5)) {
26068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26069 }
26070 arg5 = static_cast< wxDouble >(val5);
26071 ecode6 = SWIG_AsVal_double(obj5, &val6);
26072 if (!SWIG_IsOK(ecode6)) {
26073 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26074 }
26075 arg6 = static_cast< wxDouble >(val6);
26076 {
26077 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26078 if (PyErr_Occurred()) SWIG_fail;
26079 }
26080 resultobj = SWIG_Py_Void();
26081 return resultobj;
26082 fail:
26083 return NULL;
26084 }
26085
26086
26087 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26088 PyObject *resultobj = 0;
26089 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26090 wxIcon *arg2 = 0 ;
26091 wxDouble arg3 ;
26092 wxDouble arg4 ;
26093 wxDouble arg5 ;
26094 wxDouble arg6 ;
26095 void *argp1 = 0 ;
26096 int res1 = 0 ;
26097 void *argp2 = 0 ;
26098 int res2 = 0 ;
26099 double val3 ;
26100 int ecode3 = 0 ;
26101 double val4 ;
26102 int ecode4 = 0 ;
26103 double val5 ;
26104 int ecode5 = 0 ;
26105 double val6 ;
26106 int ecode6 = 0 ;
26107 PyObject * obj0 = 0 ;
26108 PyObject * obj1 = 0 ;
26109 PyObject * obj2 = 0 ;
26110 PyObject * obj3 = 0 ;
26111 PyObject * obj4 = 0 ;
26112 PyObject * obj5 = 0 ;
26113 char * kwnames[] = {
26114 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26115 };
26116
26117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26119 if (!SWIG_IsOK(res1)) {
26120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26121 }
26122 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26123 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26124 if (!SWIG_IsOK(res2)) {
26125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26126 }
26127 if (!argp2) {
26128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26129 }
26130 arg2 = reinterpret_cast< wxIcon * >(argp2);
26131 ecode3 = SWIG_AsVal_double(obj2, &val3);
26132 if (!SWIG_IsOK(ecode3)) {
26133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26134 }
26135 arg3 = static_cast< wxDouble >(val3);
26136 ecode4 = SWIG_AsVal_double(obj3, &val4);
26137 if (!SWIG_IsOK(ecode4)) {
26138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26139 }
26140 arg4 = static_cast< wxDouble >(val4);
26141 ecode5 = SWIG_AsVal_double(obj4, &val5);
26142 if (!SWIG_IsOK(ecode5)) {
26143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26144 }
26145 arg5 = static_cast< wxDouble >(val5);
26146 ecode6 = SWIG_AsVal_double(obj5, &val6);
26147 if (!SWIG_IsOK(ecode6)) {
26148 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26149 }
26150 arg6 = static_cast< wxDouble >(val6);
26151 {
26152 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26153 if (PyErr_Occurred()) SWIG_fail;
26154 }
26155 resultobj = SWIG_Py_Void();
26156 return resultobj;
26157 fail:
26158 return NULL;
26159 }
26160
26161
26162 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26163 PyObject *resultobj = 0;
26164 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26165 wxDouble arg2 ;
26166 wxDouble arg3 ;
26167 wxDouble arg4 ;
26168 wxDouble arg5 ;
26169 void *argp1 = 0 ;
26170 int res1 = 0 ;
26171 double val2 ;
26172 int ecode2 = 0 ;
26173 double val3 ;
26174 int ecode3 = 0 ;
26175 double val4 ;
26176 int ecode4 = 0 ;
26177 double val5 ;
26178 int ecode5 = 0 ;
26179 PyObject * obj0 = 0 ;
26180 PyObject * obj1 = 0 ;
26181 PyObject * obj2 = 0 ;
26182 PyObject * obj3 = 0 ;
26183 PyObject * obj4 = 0 ;
26184 char * kwnames[] = {
26185 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26186 };
26187
26188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26190 if (!SWIG_IsOK(res1)) {
26191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26192 }
26193 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26194 ecode2 = SWIG_AsVal_double(obj1, &val2);
26195 if (!SWIG_IsOK(ecode2)) {
26196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26197 }
26198 arg2 = static_cast< wxDouble >(val2);
26199 ecode3 = SWIG_AsVal_double(obj2, &val3);
26200 if (!SWIG_IsOK(ecode3)) {
26201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26202 }
26203 arg3 = static_cast< wxDouble >(val3);
26204 ecode4 = SWIG_AsVal_double(obj3, &val4);
26205 if (!SWIG_IsOK(ecode4)) {
26206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26207 }
26208 arg4 = static_cast< wxDouble >(val4);
26209 ecode5 = SWIG_AsVal_double(obj4, &val5);
26210 if (!SWIG_IsOK(ecode5)) {
26211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26212 }
26213 arg5 = static_cast< wxDouble >(val5);
26214 {
26215 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 resultobj = SWIG_Py_Void();
26219 return resultobj;
26220 fail:
26221 return NULL;
26222 }
26223
26224
26225 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26226 PyObject *resultobj = 0;
26227 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26228 size_t arg2 ;
26229 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26230 void *argp1 = 0 ;
26231 int res1 = 0 ;
26232 PyObject * obj0 = 0 ;
26233 PyObject * obj1 = 0 ;
26234 char * kwnames[] = {
26235 (char *) "self",(char *) "points", NULL
26236 };
26237
26238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26242 }
26243 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26244 {
26245 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26246 if (arg3 == NULL) SWIG_fail;
26247 }
26248 {
26249 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26250 if (PyErr_Occurred()) SWIG_fail;
26251 }
26252 resultobj = SWIG_Py_Void();
26253 {
26254 if (arg3) delete [] arg3;
26255 }
26256 return resultobj;
26257 fail:
26258 {
26259 if (arg3) delete [] arg3;
26260 }
26261 return NULL;
26262 }
26263
26264
26265 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26266 PyObject *resultobj = 0;
26267 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26268 PyObject *arg2 = (PyObject *) 0 ;
26269 PyObject *arg3 = (PyObject *) 0 ;
26270 void *argp1 = 0 ;
26271 int res1 = 0 ;
26272 PyObject * obj0 = 0 ;
26273 PyObject * obj1 = 0 ;
26274 PyObject * obj2 = 0 ;
26275 char * kwnames[] = {
26276 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26277 };
26278
26279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26281 if (!SWIG_IsOK(res1)) {
26282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26283 }
26284 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26285 arg2 = obj1;
26286 arg3 = obj2;
26287 {
26288 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 }
26291 resultobj = SWIG_Py_Void();
26292 return resultobj;
26293 fail:
26294 return NULL;
26295 }
26296
26297
26298 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26299 PyObject *resultobj = 0;
26300 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26301 size_t arg2 ;
26302 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26303 int arg4 = (int) wxWINDING_RULE ;
26304 void *argp1 = 0 ;
26305 int res1 = 0 ;
26306 int val4 ;
26307 int ecode4 = 0 ;
26308 PyObject * obj0 = 0 ;
26309 PyObject * obj1 = 0 ;
26310 PyObject * obj2 = 0 ;
26311 char * kwnames[] = {
26312 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
26313 };
26314
26315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26317 if (!SWIG_IsOK(res1)) {
26318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26319 }
26320 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26321 {
26322 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26323 if (arg3 == NULL) SWIG_fail;
26324 }
26325 if (obj2) {
26326 ecode4 = SWIG_AsVal_int(obj2, &val4);
26327 if (!SWIG_IsOK(ecode4)) {
26328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26329 }
26330 arg4 = static_cast< int >(val4);
26331 }
26332 {
26333 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26334 if (PyErr_Occurred()) SWIG_fail;
26335 }
26336 resultobj = SWIG_Py_Void();
26337 {
26338 if (arg3) delete [] arg3;
26339 }
26340 return resultobj;
26341 fail:
26342 {
26343 if (arg3) delete [] arg3;
26344 }
26345 return NULL;
26346 }
26347
26348
26349 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26350 PyObject *resultobj = 0;
26351 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26352 wxDouble arg2 ;
26353 wxDouble arg3 ;
26354 wxDouble arg4 ;
26355 wxDouble arg5 ;
26356 void *argp1 = 0 ;
26357 int res1 = 0 ;
26358 double val2 ;
26359 int ecode2 = 0 ;
26360 double val3 ;
26361 int ecode3 = 0 ;
26362 double val4 ;
26363 int ecode4 = 0 ;
26364 double val5 ;
26365 int ecode5 = 0 ;
26366 PyObject * obj0 = 0 ;
26367 PyObject * obj1 = 0 ;
26368 PyObject * obj2 = 0 ;
26369 PyObject * obj3 = 0 ;
26370 PyObject * obj4 = 0 ;
26371 char * kwnames[] = {
26372 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26373 };
26374
26375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26377 if (!SWIG_IsOK(res1)) {
26378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26379 }
26380 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26381 ecode2 = SWIG_AsVal_double(obj1, &val2);
26382 if (!SWIG_IsOK(ecode2)) {
26383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26384 }
26385 arg2 = static_cast< wxDouble >(val2);
26386 ecode3 = SWIG_AsVal_double(obj2, &val3);
26387 if (!SWIG_IsOK(ecode3)) {
26388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26389 }
26390 arg3 = static_cast< wxDouble >(val3);
26391 ecode4 = SWIG_AsVal_double(obj3, &val4);
26392 if (!SWIG_IsOK(ecode4)) {
26393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26394 }
26395 arg4 = static_cast< wxDouble >(val4);
26396 ecode5 = SWIG_AsVal_double(obj4, &val5);
26397 if (!SWIG_IsOK(ecode5)) {
26398 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26399 }
26400 arg5 = static_cast< wxDouble >(val5);
26401 {
26402 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 resultobj = SWIG_Py_Void();
26406 return resultobj;
26407 fail:
26408 return NULL;
26409 }
26410
26411
26412 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj = 0;
26414 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26415 wxDouble arg2 ;
26416 wxDouble arg3 ;
26417 wxDouble arg4 ;
26418 wxDouble arg5 ;
26419 void *argp1 = 0 ;
26420 int res1 = 0 ;
26421 double val2 ;
26422 int ecode2 = 0 ;
26423 double val3 ;
26424 int ecode3 = 0 ;
26425 double val4 ;
26426 int ecode4 = 0 ;
26427 double val5 ;
26428 int ecode5 = 0 ;
26429 PyObject * obj0 = 0 ;
26430 PyObject * obj1 = 0 ;
26431 PyObject * obj2 = 0 ;
26432 PyObject * obj3 = 0 ;
26433 PyObject * obj4 = 0 ;
26434 char * kwnames[] = {
26435 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26436 };
26437
26438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26440 if (!SWIG_IsOK(res1)) {
26441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26442 }
26443 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26444 ecode2 = SWIG_AsVal_double(obj1, &val2);
26445 if (!SWIG_IsOK(ecode2)) {
26446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26447 }
26448 arg2 = static_cast< wxDouble >(val2);
26449 ecode3 = SWIG_AsVal_double(obj2, &val3);
26450 if (!SWIG_IsOK(ecode3)) {
26451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26452 }
26453 arg3 = static_cast< wxDouble >(val3);
26454 ecode4 = SWIG_AsVal_double(obj3, &val4);
26455 if (!SWIG_IsOK(ecode4)) {
26456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26457 }
26458 arg4 = static_cast< wxDouble >(val4);
26459 ecode5 = SWIG_AsVal_double(obj4, &val5);
26460 if (!SWIG_IsOK(ecode5)) {
26461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26462 }
26463 arg5 = static_cast< wxDouble >(val5);
26464 {
26465 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26466 if (PyErr_Occurred()) SWIG_fail;
26467 }
26468 resultobj = SWIG_Py_Void();
26469 return resultobj;
26470 fail:
26471 return NULL;
26472 }
26473
26474
26475 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26476 PyObject *resultobj = 0;
26477 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26478 wxDouble arg2 ;
26479 wxDouble arg3 ;
26480 wxDouble arg4 ;
26481 wxDouble arg5 ;
26482 wxDouble arg6 ;
26483 void *argp1 = 0 ;
26484 int res1 = 0 ;
26485 double val2 ;
26486 int ecode2 = 0 ;
26487 double val3 ;
26488 int ecode3 = 0 ;
26489 double val4 ;
26490 int ecode4 = 0 ;
26491 double val5 ;
26492 int ecode5 = 0 ;
26493 double val6 ;
26494 int ecode6 = 0 ;
26495 PyObject * obj0 = 0 ;
26496 PyObject * obj1 = 0 ;
26497 PyObject * obj2 = 0 ;
26498 PyObject * obj3 = 0 ;
26499 PyObject * obj4 = 0 ;
26500 PyObject * obj5 = 0 ;
26501 char * kwnames[] = {
26502 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26503 };
26504
26505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26507 if (!SWIG_IsOK(res1)) {
26508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26509 }
26510 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26511 ecode2 = SWIG_AsVal_double(obj1, &val2);
26512 if (!SWIG_IsOK(ecode2)) {
26513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26514 }
26515 arg2 = static_cast< wxDouble >(val2);
26516 ecode3 = SWIG_AsVal_double(obj2, &val3);
26517 if (!SWIG_IsOK(ecode3)) {
26518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26519 }
26520 arg3 = static_cast< wxDouble >(val3);
26521 ecode4 = SWIG_AsVal_double(obj3, &val4);
26522 if (!SWIG_IsOK(ecode4)) {
26523 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26524 }
26525 arg4 = static_cast< wxDouble >(val4);
26526 ecode5 = SWIG_AsVal_double(obj4, &val5);
26527 if (!SWIG_IsOK(ecode5)) {
26528 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26529 }
26530 arg5 = static_cast< wxDouble >(val5);
26531 ecode6 = SWIG_AsVal_double(obj5, &val6);
26532 if (!SWIG_IsOK(ecode6)) {
26533 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26534 }
26535 arg6 = static_cast< wxDouble >(val6);
26536 {
26537 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26538 if (PyErr_Occurred()) SWIG_fail;
26539 }
26540 resultobj = SWIG_Py_Void();
26541 return resultobj;
26542 fail:
26543 return NULL;
26544 }
26545
26546
26547 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26548 PyObject *obj;
26549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26550 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26551 return SWIG_Py_Void();
26552 }
26553
26554 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26555 PyObject *resultobj = 0;
26556 wxWindowDC *arg1 = 0 ;
26557 wxGCDC *result = 0 ;
26558 void *argp1 = 0 ;
26559 int res1 = 0 ;
26560 PyObject * obj0 = 0 ;
26561 char * kwnames[] = {
26562 (char *) "dc", NULL
26563 };
26564
26565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26566 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26567 if (!SWIG_IsOK(res1)) {
26568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26569 }
26570 if (!argp1) {
26571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26572 }
26573 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26574 {
26575 if (!wxPyCheckForApp()) SWIG_fail;
26576 PyThreadState* __tstate = wxPyBeginAllowThreads();
26577 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26578 wxPyEndAllowThreads(__tstate);
26579 if (PyErr_Occurred()) SWIG_fail;
26580 }
26581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26582 return resultobj;
26583 fail:
26584 return NULL;
26585 }
26586
26587
26588 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26589 PyObject *resultobj = 0;
26590 wxGCDC *arg1 = (wxGCDC *) 0 ;
26591 void *argp1 = 0 ;
26592 int res1 = 0 ;
26593 PyObject *swig_obj[1] ;
26594
26595 if (!args) SWIG_fail;
26596 swig_obj[0] = args;
26597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26598 if (!SWIG_IsOK(res1)) {
26599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26600 }
26601 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26602 {
26603 delete arg1;
26604
26605 if (PyErr_Occurred()) SWIG_fail;
26606 }
26607 resultobj = SWIG_Py_Void();
26608 return resultobj;
26609 fail:
26610 return NULL;
26611 }
26612
26613
26614 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26615 PyObject *resultobj = 0;
26616 wxGCDC *arg1 = (wxGCDC *) 0 ;
26617 wxGraphicsContext *result = 0 ;
26618 void *argp1 = 0 ;
26619 int res1 = 0 ;
26620 PyObject *swig_obj[1] ;
26621
26622 if (!args) SWIG_fail;
26623 swig_obj[0] = args;
26624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26625 if (!SWIG_IsOK(res1)) {
26626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26627 }
26628 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26629 {
26630 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
26631 if (PyErr_Occurred()) SWIG_fail;
26632 }
26633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26634 return resultobj;
26635 fail:
26636 return NULL;
26637 }
26638
26639
26640 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26641 PyObject *resultobj = 0;
26642 wxGCDC *arg1 = (wxGCDC *) 0 ;
26643 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
26644 void *argp1 = 0 ;
26645 int res1 = 0 ;
26646 void *argp2 = 0 ;
26647 int res2 = 0 ;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 char * kwnames[] = {
26651 (char *) "self",(char *) "ctx", NULL
26652 };
26653
26654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
26655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26656 if (!SWIG_IsOK(res1)) {
26657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26658 }
26659 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26661 if (!SWIG_IsOK(res2)) {
26662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
26663 }
26664 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
26665 {
26666 (arg1)->SetGraphicsContext(arg2);
26667 if (PyErr_Occurred()) SWIG_fail;
26668 }
26669 resultobj = SWIG_Py_Void();
26670 return resultobj;
26671 fail:
26672 return NULL;
26673 }
26674
26675
26676 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26677 PyObject *obj;
26678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26679 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26680 return SWIG_Py_Void();
26681 }
26682
26683 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26684 return SWIG_Python_InitShadowInstance(args);
26685 }
26686
26687 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26688 PyObject *resultobj = 0;
26689 wxOverlay *result = 0 ;
26690
26691 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26692 {
26693 PyThreadState* __tstate = wxPyBeginAllowThreads();
26694 result = (wxOverlay *)new wxOverlay();
26695 wxPyEndAllowThreads(__tstate);
26696 if (PyErr_Occurred()) SWIG_fail;
26697 }
26698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26699 return resultobj;
26700 fail:
26701 return NULL;
26702 }
26703
26704
26705 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26706 PyObject *resultobj = 0;
26707 wxOverlay *arg1 = (wxOverlay *) 0 ;
26708 void *argp1 = 0 ;
26709 int res1 = 0 ;
26710 PyObject *swig_obj[1] ;
26711
26712 if (!args) SWIG_fail;
26713 swig_obj[0] = args;
26714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26715 if (!SWIG_IsOK(res1)) {
26716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26717 }
26718 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26719 {
26720 PyThreadState* __tstate = wxPyBeginAllowThreads();
26721 delete arg1;
26722
26723 wxPyEndAllowThreads(__tstate);
26724 if (PyErr_Occurred()) SWIG_fail;
26725 }
26726 resultobj = SWIG_Py_Void();
26727 return resultobj;
26728 fail:
26729 return NULL;
26730 }
26731
26732
26733 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26734 PyObject *resultobj = 0;
26735 wxOverlay *arg1 = (wxOverlay *) 0 ;
26736 void *argp1 = 0 ;
26737 int res1 = 0 ;
26738 PyObject *swig_obj[1] ;
26739
26740 if (!args) SWIG_fail;
26741 swig_obj[0] = args;
26742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26743 if (!SWIG_IsOK(res1)) {
26744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26745 }
26746 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26747 {
26748 PyThreadState* __tstate = wxPyBeginAllowThreads();
26749 (arg1)->Reset();
26750 wxPyEndAllowThreads(__tstate);
26751 if (PyErr_Occurred()) SWIG_fail;
26752 }
26753 resultobj = SWIG_Py_Void();
26754 return resultobj;
26755 fail:
26756 return NULL;
26757 }
26758
26759
26760 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26761 PyObject *obj;
26762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26763 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26764 return SWIG_Py_Void();
26765 }
26766
26767 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26768 return SWIG_Python_InitShadowInstance(args);
26769 }
26770
26771 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26772 PyObject *resultobj = 0;
26773 wxOverlay *arg1 = 0 ;
26774 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26775 int arg3 ;
26776 int arg4 ;
26777 int arg5 ;
26778 int arg6 ;
26779 wxDCOverlay *result = 0 ;
26780 void *argp1 = 0 ;
26781 int res1 = 0 ;
26782 void *argp2 = 0 ;
26783 int res2 = 0 ;
26784 int val3 ;
26785 int ecode3 = 0 ;
26786 int val4 ;
26787 int ecode4 = 0 ;
26788 int val5 ;
26789 int ecode5 = 0 ;
26790 int val6 ;
26791 int ecode6 = 0 ;
26792
26793 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26795 if (!SWIG_IsOK(res1)) {
26796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26797 }
26798 if (!argp1) {
26799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26800 }
26801 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26802 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26803 if (!SWIG_IsOK(res2)) {
26804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26805 }
26806 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26807 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26808 if (!SWIG_IsOK(ecode3)) {
26809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26810 }
26811 arg3 = static_cast< int >(val3);
26812 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26813 if (!SWIG_IsOK(ecode4)) {
26814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26815 }
26816 arg4 = static_cast< int >(val4);
26817 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26818 if (!SWIG_IsOK(ecode5)) {
26819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26820 }
26821 arg5 = static_cast< int >(val5);
26822 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26823 if (!SWIG_IsOK(ecode6)) {
26824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26825 }
26826 arg6 = static_cast< int >(val6);
26827 {
26828 PyThreadState* __tstate = wxPyBeginAllowThreads();
26829 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26830 wxPyEndAllowThreads(__tstate);
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26834 return resultobj;
26835 fail:
26836 return NULL;
26837 }
26838
26839
26840 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26841 PyObject *resultobj = 0;
26842 wxOverlay *arg1 = 0 ;
26843 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26844 wxDCOverlay *result = 0 ;
26845 void *argp1 = 0 ;
26846 int res1 = 0 ;
26847 void *argp2 = 0 ;
26848 int res2 = 0 ;
26849
26850 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26852 if (!SWIG_IsOK(res1)) {
26853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26854 }
26855 if (!argp1) {
26856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26857 }
26858 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26859 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26860 if (!SWIG_IsOK(res2)) {
26861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26862 }
26863 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26864 {
26865 PyThreadState* __tstate = wxPyBeginAllowThreads();
26866 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26867 wxPyEndAllowThreads(__tstate);
26868 if (PyErr_Occurred()) SWIG_fail;
26869 }
26870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26871 return resultobj;
26872 fail:
26873 return NULL;
26874 }
26875
26876
26877 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26878 int argc;
26879 PyObject *argv[7];
26880
26881 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26882 --argc;
26883 if (argc == 2) {
26884 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26885 }
26886 if (argc == 6) {
26887 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26888 }
26889
26890 fail:
26891 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26892 return NULL;
26893 }
26894
26895
26896 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26897 PyObject *resultobj = 0;
26898 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26899 void *argp1 = 0 ;
26900 int res1 = 0 ;
26901 PyObject *swig_obj[1] ;
26902
26903 if (!args) SWIG_fail;
26904 swig_obj[0] = args;
26905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26906 if (!SWIG_IsOK(res1)) {
26907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26908 }
26909 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26910 {
26911 PyThreadState* __tstate = wxPyBeginAllowThreads();
26912 delete arg1;
26913
26914 wxPyEndAllowThreads(__tstate);
26915 if (PyErr_Occurred()) SWIG_fail;
26916 }
26917 resultobj = SWIG_Py_Void();
26918 return resultobj;
26919 fail:
26920 return NULL;
26921 }
26922
26923
26924 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26925 PyObject *resultobj = 0;
26926 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26927 void *argp1 = 0 ;
26928 int res1 = 0 ;
26929 PyObject *swig_obj[1] ;
26930
26931 if (!args) SWIG_fail;
26932 swig_obj[0] = args;
26933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26934 if (!SWIG_IsOK(res1)) {
26935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26936 }
26937 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26938 {
26939 PyThreadState* __tstate = wxPyBeginAllowThreads();
26940 (arg1)->Clear();
26941 wxPyEndAllowThreads(__tstate);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 }
26944 resultobj = SWIG_Py_Void();
26945 return resultobj;
26946 fail:
26947 return NULL;
26948 }
26949
26950
26951 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26952 PyObject *obj;
26953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26954 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26955 return SWIG_Py_Void();
26956 }
26957
26958 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26959 return SWIG_Python_InitShadowInstance(args);
26960 }
26961
26962 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26963 PyObject *resultobj = 0;
26964 int arg1 ;
26965 int arg2 ;
26966 int arg3 = (int) true ;
26967 int arg4 = (int) 1 ;
26968 wxImageList *result = 0 ;
26969 int val1 ;
26970 int ecode1 = 0 ;
26971 int val2 ;
26972 int ecode2 = 0 ;
26973 int val3 ;
26974 int ecode3 = 0 ;
26975 int val4 ;
26976 int ecode4 = 0 ;
26977 PyObject * obj0 = 0 ;
26978 PyObject * obj1 = 0 ;
26979 PyObject * obj2 = 0 ;
26980 PyObject * obj3 = 0 ;
26981 char * kwnames[] = {
26982 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26983 };
26984
26985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26986 ecode1 = SWIG_AsVal_int(obj0, &val1);
26987 if (!SWIG_IsOK(ecode1)) {
26988 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26989 }
26990 arg1 = static_cast< int >(val1);
26991 ecode2 = SWIG_AsVal_int(obj1, &val2);
26992 if (!SWIG_IsOK(ecode2)) {
26993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26994 }
26995 arg2 = static_cast< int >(val2);
26996 if (obj2) {
26997 ecode3 = SWIG_AsVal_int(obj2, &val3);
26998 if (!SWIG_IsOK(ecode3)) {
26999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27000 }
27001 arg3 = static_cast< int >(val3);
27002 }
27003 if (obj3) {
27004 ecode4 = SWIG_AsVal_int(obj3, &val4);
27005 if (!SWIG_IsOK(ecode4)) {
27006 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27007 }
27008 arg4 = static_cast< int >(val4);
27009 }
27010 {
27011 if (!wxPyCheckForApp()) SWIG_fail;
27012 PyThreadState* __tstate = wxPyBeginAllowThreads();
27013 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27014 wxPyEndAllowThreads(__tstate);
27015 if (PyErr_Occurred()) SWIG_fail;
27016 }
27017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
27018 return resultobj;
27019 fail:
27020 return NULL;
27021 }
27022
27023
27024 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27025 PyObject *resultobj = 0;
27026 wxImageList *arg1 = (wxImageList *) 0 ;
27027 void *argp1 = 0 ;
27028 int res1 = 0 ;
27029 PyObject *swig_obj[1] ;
27030
27031 if (!args) SWIG_fail;
27032 swig_obj[0] = args;
27033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27034 if (!SWIG_IsOK(res1)) {
27035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27036 }
27037 arg1 = reinterpret_cast< wxImageList * >(argp1);
27038 {
27039 PyThreadState* __tstate = wxPyBeginAllowThreads();
27040 delete arg1;
27041
27042 wxPyEndAllowThreads(__tstate);
27043 if (PyErr_Occurred()) SWIG_fail;
27044 }
27045 resultobj = SWIG_Py_Void();
27046 return resultobj;
27047 fail:
27048 return NULL;
27049 }
27050
27051
27052 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27053 PyObject *resultobj = 0;
27054 wxImageList *arg1 = (wxImageList *) 0 ;
27055 wxBitmap *arg2 = 0 ;
27056 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27057 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27058 int result;
27059 void *argp1 = 0 ;
27060 int res1 = 0 ;
27061 void *argp2 = 0 ;
27062 int res2 = 0 ;
27063 void *argp3 = 0 ;
27064 int res3 = 0 ;
27065 PyObject * obj0 = 0 ;
27066 PyObject * obj1 = 0 ;
27067 PyObject * obj2 = 0 ;
27068 char * kwnames[] = {
27069 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27070 };
27071
27072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27074 if (!SWIG_IsOK(res1)) {
27075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27076 }
27077 arg1 = reinterpret_cast< wxImageList * >(argp1);
27078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27079 if (!SWIG_IsOK(res2)) {
27080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27081 }
27082 if (!argp2) {
27083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27084 }
27085 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27086 if (obj2) {
27087 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27088 if (!SWIG_IsOK(res3)) {
27089 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27090 }
27091 if (!argp3) {
27092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27093 }
27094 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27095 }
27096 {
27097 PyThreadState* __tstate = wxPyBeginAllowThreads();
27098 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27099 wxPyEndAllowThreads(__tstate);
27100 if (PyErr_Occurred()) SWIG_fail;
27101 }
27102 resultobj = SWIG_From_int(static_cast< int >(result));
27103 return resultobj;
27104 fail:
27105 return NULL;
27106 }
27107
27108
27109 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27110 PyObject *resultobj = 0;
27111 wxImageList *arg1 = (wxImageList *) 0 ;
27112 wxBitmap *arg2 = 0 ;
27113 wxColour *arg3 = 0 ;
27114 int result;
27115 void *argp1 = 0 ;
27116 int res1 = 0 ;
27117 void *argp2 = 0 ;
27118 int res2 = 0 ;
27119 wxColour temp3 ;
27120 PyObject * obj0 = 0 ;
27121 PyObject * obj1 = 0 ;
27122 PyObject * obj2 = 0 ;
27123 char * kwnames[] = {
27124 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27125 };
27126
27127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27129 if (!SWIG_IsOK(res1)) {
27130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27131 }
27132 arg1 = reinterpret_cast< wxImageList * >(argp1);
27133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27134 if (!SWIG_IsOK(res2)) {
27135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27136 }
27137 if (!argp2) {
27138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27139 }
27140 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27141 {
27142 arg3 = &temp3;
27143 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27144 }
27145 {
27146 PyThreadState* __tstate = wxPyBeginAllowThreads();
27147 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27148 wxPyEndAllowThreads(__tstate);
27149 if (PyErr_Occurred()) SWIG_fail;
27150 }
27151 resultobj = SWIG_From_int(static_cast< int >(result));
27152 return resultobj;
27153 fail:
27154 return NULL;
27155 }
27156
27157
27158 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27159 PyObject *resultobj = 0;
27160 wxImageList *arg1 = (wxImageList *) 0 ;
27161 wxIcon *arg2 = 0 ;
27162 int result;
27163 void *argp1 = 0 ;
27164 int res1 = 0 ;
27165 void *argp2 = 0 ;
27166 int res2 = 0 ;
27167 PyObject * obj0 = 0 ;
27168 PyObject * obj1 = 0 ;
27169 char * kwnames[] = {
27170 (char *) "self",(char *) "icon", NULL
27171 };
27172
27173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27175 if (!SWIG_IsOK(res1)) {
27176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27177 }
27178 arg1 = reinterpret_cast< wxImageList * >(argp1);
27179 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27180 if (!SWIG_IsOK(res2)) {
27181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27182 }
27183 if (!argp2) {
27184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27185 }
27186 arg2 = reinterpret_cast< wxIcon * >(argp2);
27187 {
27188 PyThreadState* __tstate = wxPyBeginAllowThreads();
27189 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27190 wxPyEndAllowThreads(__tstate);
27191 if (PyErr_Occurred()) SWIG_fail;
27192 }
27193 resultobj = SWIG_From_int(static_cast< int >(result));
27194 return resultobj;
27195 fail:
27196 return NULL;
27197 }
27198
27199
27200 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27201 PyObject *resultobj = 0;
27202 wxImageList *arg1 = (wxImageList *) 0 ;
27203 int arg2 ;
27204 SwigValueWrapper<wxBitmap > result;
27205 void *argp1 = 0 ;
27206 int res1 = 0 ;
27207 int val2 ;
27208 int ecode2 = 0 ;
27209 PyObject * obj0 = 0 ;
27210 PyObject * obj1 = 0 ;
27211 char * kwnames[] = {
27212 (char *) "self",(char *) "index", NULL
27213 };
27214
27215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27217 if (!SWIG_IsOK(res1)) {
27218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27219 }
27220 arg1 = reinterpret_cast< wxImageList * >(argp1);
27221 ecode2 = SWIG_AsVal_int(obj1, &val2);
27222 if (!SWIG_IsOK(ecode2)) {
27223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27224 }
27225 arg2 = static_cast< int >(val2);
27226 {
27227 PyThreadState* __tstate = wxPyBeginAllowThreads();
27228 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27229 wxPyEndAllowThreads(__tstate);
27230 if (PyErr_Occurred()) SWIG_fail;
27231 }
27232 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27233 return resultobj;
27234 fail:
27235 return NULL;
27236 }
27237
27238
27239 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27240 PyObject *resultobj = 0;
27241 wxImageList *arg1 = (wxImageList *) 0 ;
27242 int arg2 ;
27243 wxIcon result;
27244 void *argp1 = 0 ;
27245 int res1 = 0 ;
27246 int val2 ;
27247 int ecode2 = 0 ;
27248 PyObject * obj0 = 0 ;
27249 PyObject * obj1 = 0 ;
27250 char * kwnames[] = {
27251 (char *) "self",(char *) "index", NULL
27252 };
27253
27254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27256 if (!SWIG_IsOK(res1)) {
27257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27258 }
27259 arg1 = reinterpret_cast< wxImageList * >(argp1);
27260 ecode2 = SWIG_AsVal_int(obj1, &val2);
27261 if (!SWIG_IsOK(ecode2)) {
27262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27263 }
27264 arg2 = static_cast< int >(val2);
27265 {
27266 PyThreadState* __tstate = wxPyBeginAllowThreads();
27267 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27268 wxPyEndAllowThreads(__tstate);
27269 if (PyErr_Occurred()) SWIG_fail;
27270 }
27271 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27272 return resultobj;
27273 fail:
27274 return NULL;
27275 }
27276
27277
27278 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27279 PyObject *resultobj = 0;
27280 wxImageList *arg1 = (wxImageList *) 0 ;
27281 int arg2 ;
27282 wxBitmap *arg3 = 0 ;
27283 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27284 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27285 bool result;
27286 void *argp1 = 0 ;
27287 int res1 = 0 ;
27288 int val2 ;
27289 int ecode2 = 0 ;
27290 void *argp3 = 0 ;
27291 int res3 = 0 ;
27292 void *argp4 = 0 ;
27293 int res4 = 0 ;
27294 PyObject * obj0 = 0 ;
27295 PyObject * obj1 = 0 ;
27296 PyObject * obj2 = 0 ;
27297 PyObject * obj3 = 0 ;
27298 char * kwnames[] = {
27299 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27300 };
27301
27302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27304 if (!SWIG_IsOK(res1)) {
27305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27306 }
27307 arg1 = reinterpret_cast< wxImageList * >(argp1);
27308 ecode2 = SWIG_AsVal_int(obj1, &val2);
27309 if (!SWIG_IsOK(ecode2)) {
27310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27311 }
27312 arg2 = static_cast< int >(val2);
27313 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27314 if (!SWIG_IsOK(res3)) {
27315 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27316 }
27317 if (!argp3) {
27318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27319 }
27320 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27321 if (obj3) {
27322 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27323 if (!SWIG_IsOK(res4)) {
27324 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27325 }
27326 if (!argp4) {
27327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27328 }
27329 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27330 }
27331 {
27332 PyThreadState* __tstate = wxPyBeginAllowThreads();
27333 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27334 wxPyEndAllowThreads(__tstate);
27335 if (PyErr_Occurred()) SWIG_fail;
27336 }
27337 {
27338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27339 }
27340 return resultobj;
27341 fail:
27342 return NULL;
27343 }
27344
27345
27346 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27347 PyObject *resultobj = 0;
27348 wxImageList *arg1 = (wxImageList *) 0 ;
27349 int arg2 ;
27350 wxDC *arg3 = 0 ;
27351 int arg4 ;
27352 int arg5 ;
27353 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27354 bool arg7 = (bool) (bool)false ;
27355 bool result;
27356 void *argp1 = 0 ;
27357 int res1 = 0 ;
27358 int val2 ;
27359 int ecode2 = 0 ;
27360 void *argp3 = 0 ;
27361 int res3 = 0 ;
27362 int val4 ;
27363 int ecode4 = 0 ;
27364 int val5 ;
27365 int ecode5 = 0 ;
27366 int val6 ;
27367 int ecode6 = 0 ;
27368 bool val7 ;
27369 int ecode7 = 0 ;
27370 PyObject * obj0 = 0 ;
27371 PyObject * obj1 = 0 ;
27372 PyObject * obj2 = 0 ;
27373 PyObject * obj3 = 0 ;
27374 PyObject * obj4 = 0 ;
27375 PyObject * obj5 = 0 ;
27376 PyObject * obj6 = 0 ;
27377 char * kwnames[] = {
27378 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27379 };
27380
27381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27383 if (!SWIG_IsOK(res1)) {
27384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27385 }
27386 arg1 = reinterpret_cast< wxImageList * >(argp1);
27387 ecode2 = SWIG_AsVal_int(obj1, &val2);
27388 if (!SWIG_IsOK(ecode2)) {
27389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27390 }
27391 arg2 = static_cast< int >(val2);
27392 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27393 if (!SWIG_IsOK(res3)) {
27394 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27395 }
27396 if (!argp3) {
27397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27398 }
27399 arg3 = reinterpret_cast< wxDC * >(argp3);
27400 ecode4 = SWIG_AsVal_int(obj3, &val4);
27401 if (!SWIG_IsOK(ecode4)) {
27402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27403 }
27404 arg4 = static_cast< int >(val4);
27405 ecode5 = SWIG_AsVal_int(obj4, &val5);
27406 if (!SWIG_IsOK(ecode5)) {
27407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27408 }
27409 arg5 = static_cast< int >(val5);
27410 if (obj5) {
27411 ecode6 = SWIG_AsVal_int(obj5, &val6);
27412 if (!SWIG_IsOK(ecode6)) {
27413 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27414 }
27415 arg6 = static_cast< int >(val6);
27416 }
27417 if (obj6) {
27418 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27419 if (!SWIG_IsOK(ecode7)) {
27420 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27421 }
27422 arg7 = static_cast< bool >(val7);
27423 }
27424 {
27425 PyThreadState* __tstate = wxPyBeginAllowThreads();
27426 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27427 wxPyEndAllowThreads(__tstate);
27428 if (PyErr_Occurred()) SWIG_fail;
27429 }
27430 {
27431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27432 }
27433 return resultobj;
27434 fail:
27435 return NULL;
27436 }
27437
27438
27439 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27440 PyObject *resultobj = 0;
27441 wxImageList *arg1 = (wxImageList *) 0 ;
27442 int result;
27443 void *argp1 = 0 ;
27444 int res1 = 0 ;
27445 PyObject *swig_obj[1] ;
27446
27447 if (!args) SWIG_fail;
27448 swig_obj[0] = args;
27449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27450 if (!SWIG_IsOK(res1)) {
27451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27452 }
27453 arg1 = reinterpret_cast< wxImageList * >(argp1);
27454 {
27455 PyThreadState* __tstate = wxPyBeginAllowThreads();
27456 result = (int)(arg1)->GetImageCount();
27457 wxPyEndAllowThreads(__tstate);
27458 if (PyErr_Occurred()) SWIG_fail;
27459 }
27460 resultobj = SWIG_From_int(static_cast< int >(result));
27461 return resultobj;
27462 fail:
27463 return NULL;
27464 }
27465
27466
27467 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27468 PyObject *resultobj = 0;
27469 wxImageList *arg1 = (wxImageList *) 0 ;
27470 int arg2 ;
27471 bool result;
27472 void *argp1 = 0 ;
27473 int res1 = 0 ;
27474 int val2 ;
27475 int ecode2 = 0 ;
27476 PyObject * obj0 = 0 ;
27477 PyObject * obj1 = 0 ;
27478 char * kwnames[] = {
27479 (char *) "self",(char *) "index", NULL
27480 };
27481
27482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27484 if (!SWIG_IsOK(res1)) {
27485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27486 }
27487 arg1 = reinterpret_cast< wxImageList * >(argp1);
27488 ecode2 = SWIG_AsVal_int(obj1, &val2);
27489 if (!SWIG_IsOK(ecode2)) {
27490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27491 }
27492 arg2 = static_cast< int >(val2);
27493 {
27494 PyThreadState* __tstate = wxPyBeginAllowThreads();
27495 result = (bool)(arg1)->Remove(arg2);
27496 wxPyEndAllowThreads(__tstate);
27497 if (PyErr_Occurred()) SWIG_fail;
27498 }
27499 {
27500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27501 }
27502 return resultobj;
27503 fail:
27504 return NULL;
27505 }
27506
27507
27508 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27509 PyObject *resultobj = 0;
27510 wxImageList *arg1 = (wxImageList *) 0 ;
27511 bool result;
27512 void *argp1 = 0 ;
27513 int res1 = 0 ;
27514 PyObject *swig_obj[1] ;
27515
27516 if (!args) SWIG_fail;
27517 swig_obj[0] = args;
27518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27519 if (!SWIG_IsOK(res1)) {
27520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27521 }
27522 arg1 = reinterpret_cast< wxImageList * >(argp1);
27523 {
27524 PyThreadState* __tstate = wxPyBeginAllowThreads();
27525 result = (bool)(arg1)->RemoveAll();
27526 wxPyEndAllowThreads(__tstate);
27527 if (PyErr_Occurred()) SWIG_fail;
27528 }
27529 {
27530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27531 }
27532 return resultobj;
27533 fail:
27534 return NULL;
27535 }
27536
27537
27538 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27539 PyObject *resultobj = 0;
27540 wxImageList *arg1 = (wxImageList *) 0 ;
27541 int arg2 ;
27542 int *arg3 = 0 ;
27543 int *arg4 = 0 ;
27544 void *argp1 = 0 ;
27545 int res1 = 0 ;
27546 int val2 ;
27547 int ecode2 = 0 ;
27548 int temp3 ;
27549 int res3 = SWIG_TMPOBJ ;
27550 int temp4 ;
27551 int res4 = SWIG_TMPOBJ ;
27552 PyObject * obj0 = 0 ;
27553 PyObject * obj1 = 0 ;
27554 char * kwnames[] = {
27555 (char *) "self",(char *) "index", NULL
27556 };
27557
27558 arg3 = &temp3;
27559 arg4 = &temp4;
27560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27562 if (!SWIG_IsOK(res1)) {
27563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27564 }
27565 arg1 = reinterpret_cast< wxImageList * >(argp1);
27566 ecode2 = SWIG_AsVal_int(obj1, &val2);
27567 if (!SWIG_IsOK(ecode2)) {
27568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27569 }
27570 arg2 = static_cast< int >(val2);
27571 {
27572 PyThreadState* __tstate = wxPyBeginAllowThreads();
27573 (arg1)->GetSize(arg2,*arg3,*arg4);
27574 wxPyEndAllowThreads(__tstate);
27575 if (PyErr_Occurred()) SWIG_fail;
27576 }
27577 resultobj = SWIG_Py_Void();
27578 if (SWIG_IsTmpObj(res3)) {
27579 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27580 } else {
27581 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27583 }
27584 if (SWIG_IsTmpObj(res4)) {
27585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27586 } else {
27587 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27589 }
27590 return resultobj;
27591 fail:
27592 return NULL;
27593 }
27594
27595
27596 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27597 PyObject *obj;
27598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27599 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27600 return SWIG_Py_Void();
27601 }
27602
27603 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27604 return SWIG_Python_InitShadowInstance(args);
27605 }
27606
27607 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27608 PyObject *resultobj = 0;
27609 wxStockGDI *result = 0 ;
27610
27611 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27612 {
27613 PyThreadState* __tstate = wxPyBeginAllowThreads();
27614 result = (wxStockGDI *)new wxStockGDI();
27615 wxPyEndAllowThreads(__tstate);
27616 if (PyErr_Occurred()) SWIG_fail;
27617 }
27618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27619 return resultobj;
27620 fail:
27621 return NULL;
27622 }
27623
27624
27625 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27626 PyObject *resultobj = 0;
27627 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27628 void *argp1 = 0 ;
27629 int res1 = 0 ;
27630 PyObject *swig_obj[1] ;
27631
27632 if (!args) SWIG_fail;
27633 swig_obj[0] = args;
27634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27635 if (!SWIG_IsOK(res1)) {
27636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27637 }
27638 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27639 {
27640 PyThreadState* __tstate = wxPyBeginAllowThreads();
27641 delete arg1;
27642
27643 wxPyEndAllowThreads(__tstate);
27644 if (PyErr_Occurred()) SWIG_fail;
27645 }
27646 resultobj = SWIG_Py_Void();
27647 return resultobj;
27648 fail:
27649 return NULL;
27650 }
27651
27652
27653 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27654 PyObject *resultobj = 0;
27655
27656 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27657 {
27658 PyThreadState* __tstate = wxPyBeginAllowThreads();
27659 wxStockGDI::DeleteAll();
27660 wxPyEndAllowThreads(__tstate);
27661 if (PyErr_Occurred()) SWIG_fail;
27662 }
27663 resultobj = SWIG_Py_Void();
27664 return resultobj;
27665 fail:
27666 return NULL;
27667 }
27668
27669
27670 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27671 PyObject *resultobj = 0;
27672 wxStockGDI *result = 0 ;
27673
27674 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27675 {
27676 PyThreadState* __tstate = wxPyBeginAllowThreads();
27677 {
27678 wxStockGDI &_result_ref = wxStockGDI::instance();
27679 result = (wxStockGDI *) &_result_ref;
27680 }
27681 wxPyEndAllowThreads(__tstate);
27682 if (PyErr_Occurred()) SWIG_fail;
27683 }
27684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27685 return resultobj;
27686 fail:
27687 return NULL;
27688 }
27689
27690
27691 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27692 PyObject *resultobj = 0;
27693 wxStockGDI::Item arg1 ;
27694 wxBrush *result = 0 ;
27695 int val1 ;
27696 int ecode1 = 0 ;
27697 PyObject * obj0 = 0 ;
27698 char * kwnames[] = {
27699 (char *) "item", NULL
27700 };
27701
27702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27703 ecode1 = SWIG_AsVal_int(obj0, &val1);
27704 if (!SWIG_IsOK(ecode1)) {
27705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27706 }
27707 arg1 = static_cast< wxStockGDI::Item >(val1);
27708 {
27709 PyThreadState* __tstate = wxPyBeginAllowThreads();
27710 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27711 wxPyEndAllowThreads(__tstate);
27712 if (PyErr_Occurred()) SWIG_fail;
27713 }
27714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27715 return resultobj;
27716 fail:
27717 return NULL;
27718 }
27719
27720
27721 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27722 PyObject *resultobj = 0;
27723 wxStockGDI::Item arg1 ;
27724 wxColour *result = 0 ;
27725 int val1 ;
27726 int ecode1 = 0 ;
27727 PyObject * obj0 = 0 ;
27728 char * kwnames[] = {
27729 (char *) "item", NULL
27730 };
27731
27732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27733 ecode1 = SWIG_AsVal_int(obj0, &val1);
27734 if (!SWIG_IsOK(ecode1)) {
27735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27736 }
27737 arg1 = static_cast< wxStockGDI::Item >(val1);
27738 {
27739 PyThreadState* __tstate = wxPyBeginAllowThreads();
27740 result = (wxColour *)wxStockGDI::GetColour(arg1);
27741 wxPyEndAllowThreads(__tstate);
27742 if (PyErr_Occurred()) SWIG_fail;
27743 }
27744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27745 return resultobj;
27746 fail:
27747 return NULL;
27748 }
27749
27750
27751 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27752 PyObject *resultobj = 0;
27753 wxStockGDI::Item arg1 ;
27754 wxCursor *result = 0 ;
27755 int val1 ;
27756 int ecode1 = 0 ;
27757 PyObject * obj0 = 0 ;
27758 char * kwnames[] = {
27759 (char *) "item", NULL
27760 };
27761
27762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27763 ecode1 = SWIG_AsVal_int(obj0, &val1);
27764 if (!SWIG_IsOK(ecode1)) {
27765 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27766 }
27767 arg1 = static_cast< wxStockGDI::Item >(val1);
27768 {
27769 PyThreadState* __tstate = wxPyBeginAllowThreads();
27770 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27771 wxPyEndAllowThreads(__tstate);
27772 if (PyErr_Occurred()) SWIG_fail;
27773 }
27774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27775 return resultobj;
27776 fail:
27777 return NULL;
27778 }
27779
27780
27781 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27782 PyObject *resultobj = 0;
27783 wxStockGDI::Item arg1 ;
27784 wxPen *result = 0 ;
27785 int val1 ;
27786 int ecode1 = 0 ;
27787 PyObject * obj0 = 0 ;
27788 char * kwnames[] = {
27789 (char *) "item", NULL
27790 };
27791
27792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27793 ecode1 = SWIG_AsVal_int(obj0, &val1);
27794 if (!SWIG_IsOK(ecode1)) {
27795 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27796 }
27797 arg1 = static_cast< wxStockGDI::Item >(val1);
27798 {
27799 PyThreadState* __tstate = wxPyBeginAllowThreads();
27800 result = (wxPen *)wxStockGDI::GetPen(arg1);
27801 wxPyEndAllowThreads(__tstate);
27802 if (PyErr_Occurred()) SWIG_fail;
27803 }
27804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27805 return resultobj;
27806 fail:
27807 return NULL;
27808 }
27809
27810
27811 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27812 PyObject *resultobj = 0;
27813 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27814 wxStockGDI::Item arg2 ;
27815 wxFont *result = 0 ;
27816 void *argp1 = 0 ;
27817 int res1 = 0 ;
27818 int val2 ;
27819 int ecode2 = 0 ;
27820 PyObject * obj0 = 0 ;
27821 PyObject * obj1 = 0 ;
27822 char * kwnames[] = {
27823 (char *) "self",(char *) "item", NULL
27824 };
27825
27826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27828 if (!SWIG_IsOK(res1)) {
27829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27830 }
27831 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27832 ecode2 = SWIG_AsVal_int(obj1, &val2);
27833 if (!SWIG_IsOK(ecode2)) {
27834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27835 }
27836 arg2 = static_cast< wxStockGDI::Item >(val2);
27837 {
27838 PyThreadState* __tstate = wxPyBeginAllowThreads();
27839 result = (wxFont *)(arg1)->GetFont(arg2);
27840 wxPyEndAllowThreads(__tstate);
27841 if (PyErr_Occurred()) SWIG_fail;
27842 }
27843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27844 return resultobj;
27845 fail:
27846 return NULL;
27847 }
27848
27849
27850 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27851 PyObject *obj;
27852 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27853 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27854 return SWIG_Py_Void();
27855 }
27856
27857 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27858 return SWIG_Python_InitShadowInstance(args);
27859 }
27860
27861 SWIGINTERN int NullBitmap_set(PyObject *) {
27862 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27863 return 1;
27864 }
27865
27866
27867 SWIGINTERN PyObject *NullBitmap_get(void) {
27868 PyObject *pyobj = 0;
27869
27870 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27871 return pyobj;
27872 }
27873
27874
27875 SWIGINTERN int NullIcon_set(PyObject *) {
27876 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27877 return 1;
27878 }
27879
27880
27881 SWIGINTERN PyObject *NullIcon_get(void) {
27882 PyObject *pyobj = 0;
27883
27884 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27885 return pyobj;
27886 }
27887
27888
27889 SWIGINTERN int NullCursor_set(PyObject *) {
27890 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27891 return 1;
27892 }
27893
27894
27895 SWIGINTERN PyObject *NullCursor_get(void) {
27896 PyObject *pyobj = 0;
27897
27898 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27899 return pyobj;
27900 }
27901
27902
27903 SWIGINTERN int NullPen_set(PyObject *) {
27904 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27905 return 1;
27906 }
27907
27908
27909 SWIGINTERN PyObject *NullPen_get(void) {
27910 PyObject *pyobj = 0;
27911
27912 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27913 return pyobj;
27914 }
27915
27916
27917 SWIGINTERN int NullBrush_set(PyObject *) {
27918 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27919 return 1;
27920 }
27921
27922
27923 SWIGINTERN PyObject *NullBrush_get(void) {
27924 PyObject *pyobj = 0;
27925
27926 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27927 return pyobj;
27928 }
27929
27930
27931 SWIGINTERN int NullPalette_set(PyObject *) {
27932 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27933 return 1;
27934 }
27935
27936
27937 SWIGINTERN PyObject *NullPalette_get(void) {
27938 PyObject *pyobj = 0;
27939
27940 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27941 return pyobj;
27942 }
27943
27944
27945 SWIGINTERN int NullFont_set(PyObject *) {
27946 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27947 return 1;
27948 }
27949
27950
27951 SWIGINTERN PyObject *NullFont_get(void) {
27952 PyObject *pyobj = 0;
27953
27954 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27955 return pyobj;
27956 }
27957
27958
27959 SWIGINTERN int NullColour_set(PyObject *) {
27960 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27961 return 1;
27962 }
27963
27964
27965 SWIGINTERN PyObject *NullColour_get(void) {
27966 PyObject *pyobj = 0;
27967
27968 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27969 return pyobj;
27970 }
27971
27972
27973 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27974 PyObject *resultobj = 0;
27975 wxGDIObjListBase *result = 0 ;
27976
27977 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27978 {
27979 PyThreadState* __tstate = wxPyBeginAllowThreads();
27980 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27981 wxPyEndAllowThreads(__tstate);
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
27984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27985 return resultobj;
27986 fail:
27987 return NULL;
27988 }
27989
27990
27991 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27992 PyObject *resultobj = 0;
27993 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
27994 void *argp1 = 0 ;
27995 int res1 = 0 ;
27996 PyObject *swig_obj[1] ;
27997
27998 if (!args) SWIG_fail;
27999 swig_obj[0] = args;
28000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28001 if (!SWIG_IsOK(res1)) {
28002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28003 }
28004 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28005 {
28006 PyThreadState* __tstate = wxPyBeginAllowThreads();
28007 delete arg1;
28008
28009 wxPyEndAllowThreads(__tstate);
28010 if (PyErr_Occurred()) SWIG_fail;
28011 }
28012 resultobj = SWIG_Py_Void();
28013 return resultobj;
28014 fail:
28015 return NULL;
28016 }
28017
28018
28019 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28020 PyObject *obj;
28021 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28022 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28023 return SWIG_Py_Void();
28024 }
28025
28026 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28027 return SWIG_Python_InitShadowInstance(args);
28028 }
28029
28030 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28031 PyObject *resultobj = 0;
28032 wxPenList *arg1 = (wxPenList *) 0 ;
28033 wxColour *arg2 = 0 ;
28034 int arg3 ;
28035 int arg4 ;
28036 wxPen *result = 0 ;
28037 void *argp1 = 0 ;
28038 int res1 = 0 ;
28039 wxColour temp2 ;
28040 int val3 ;
28041 int ecode3 = 0 ;
28042 int val4 ;
28043 int ecode4 = 0 ;
28044 PyObject * obj0 = 0 ;
28045 PyObject * obj1 = 0 ;
28046 PyObject * obj2 = 0 ;
28047 PyObject * obj3 = 0 ;
28048 char * kwnames[] = {
28049 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28050 };
28051
28052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28054 if (!SWIG_IsOK(res1)) {
28055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28056 }
28057 arg1 = reinterpret_cast< wxPenList * >(argp1);
28058 {
28059 arg2 = &temp2;
28060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28061 }
28062 ecode3 = SWIG_AsVal_int(obj2, &val3);
28063 if (!SWIG_IsOK(ecode3)) {
28064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28065 }
28066 arg3 = static_cast< int >(val3);
28067 ecode4 = SWIG_AsVal_int(obj3, &val4);
28068 if (!SWIG_IsOK(ecode4)) {
28069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28070 }
28071 arg4 = static_cast< int >(val4);
28072 {
28073 PyThreadState* __tstate = wxPyBeginAllowThreads();
28074 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28075 wxPyEndAllowThreads(__tstate);
28076 if (PyErr_Occurred()) SWIG_fail;
28077 }
28078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28079 return resultobj;
28080 fail:
28081 return NULL;
28082 }
28083
28084
28085 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28086 PyObject *resultobj = 0;
28087 wxPenList *arg1 = (wxPenList *) 0 ;
28088 wxPen *arg2 = (wxPen *) 0 ;
28089 void *argp1 = 0 ;
28090 int res1 = 0 ;
28091 void *argp2 = 0 ;
28092 int res2 = 0 ;
28093 PyObject * obj0 = 0 ;
28094 PyObject * obj1 = 0 ;
28095 char * kwnames[] = {
28096 (char *) "self",(char *) "pen", NULL
28097 };
28098
28099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28101 if (!SWIG_IsOK(res1)) {
28102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28103 }
28104 arg1 = reinterpret_cast< wxPenList * >(argp1);
28105 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28106 if (!SWIG_IsOK(res2)) {
28107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28108 }
28109 arg2 = reinterpret_cast< wxPen * >(argp2);
28110 {
28111 PyThreadState* __tstate = wxPyBeginAllowThreads();
28112 (arg1)->AddPen(arg2);
28113 wxPyEndAllowThreads(__tstate);
28114 if (PyErr_Occurred()) SWIG_fail;
28115 }
28116 resultobj = SWIG_Py_Void();
28117 return resultobj;
28118 fail:
28119 return NULL;
28120 }
28121
28122
28123 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28124 PyObject *resultobj = 0;
28125 wxPenList *arg1 = (wxPenList *) 0 ;
28126 wxPen *arg2 = (wxPen *) 0 ;
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 *) "pen", NULL
28135 };
28136
28137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28139 if (!SWIG_IsOK(res1)) {
28140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28141 }
28142 arg1 = reinterpret_cast< wxPenList * >(argp1);
28143 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28144 if (!SWIG_IsOK(res2)) {
28145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28146 }
28147 arg2 = reinterpret_cast< wxPen * >(argp2);
28148 {
28149 PyThreadState* __tstate = wxPyBeginAllowThreads();
28150 (arg1)->RemovePen(arg2);
28151 wxPyEndAllowThreads(__tstate);
28152 if (PyErr_Occurred()) SWIG_fail;
28153 }
28154 resultobj = SWIG_Py_Void();
28155 return resultobj;
28156 fail:
28157 return NULL;
28158 }
28159
28160
28161 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28162 PyObject *obj;
28163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28164 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28165 return SWIG_Py_Void();
28166 }
28167
28168 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28169 PyObject *resultobj = 0;
28170 wxBrushList *arg1 = (wxBrushList *) 0 ;
28171 wxColour *arg2 = 0 ;
28172 int arg3 = (int) wxSOLID ;
28173 wxBrush *result = 0 ;
28174 void *argp1 = 0 ;
28175 int res1 = 0 ;
28176 wxColour temp2 ;
28177 int val3 ;
28178 int ecode3 = 0 ;
28179 PyObject * obj0 = 0 ;
28180 PyObject * obj1 = 0 ;
28181 PyObject * obj2 = 0 ;
28182 char * kwnames[] = {
28183 (char *) "self",(char *) "colour",(char *) "style", NULL
28184 };
28185
28186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28188 if (!SWIG_IsOK(res1)) {
28189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28190 }
28191 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28192 {
28193 arg2 = &temp2;
28194 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28195 }
28196 if (obj2) {
28197 ecode3 = SWIG_AsVal_int(obj2, &val3);
28198 if (!SWIG_IsOK(ecode3)) {
28199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28200 }
28201 arg3 = static_cast< int >(val3);
28202 }
28203 {
28204 PyThreadState* __tstate = wxPyBeginAllowThreads();
28205 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28206 wxPyEndAllowThreads(__tstate);
28207 if (PyErr_Occurred()) SWIG_fail;
28208 }
28209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28210 return resultobj;
28211 fail:
28212 return NULL;
28213 }
28214
28215
28216 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28217 PyObject *resultobj = 0;
28218 wxBrushList *arg1 = (wxBrushList *) 0 ;
28219 wxBrush *arg2 = (wxBrush *) 0 ;
28220 void *argp1 = 0 ;
28221 int res1 = 0 ;
28222 void *argp2 = 0 ;
28223 int res2 = 0 ;
28224 PyObject * obj0 = 0 ;
28225 PyObject * obj1 = 0 ;
28226 char * kwnames[] = {
28227 (char *) "self",(char *) "brush", NULL
28228 };
28229
28230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28232 if (!SWIG_IsOK(res1)) {
28233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28234 }
28235 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28237 if (!SWIG_IsOK(res2)) {
28238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28239 }
28240 arg2 = reinterpret_cast< wxBrush * >(argp2);
28241 {
28242 PyThreadState* __tstate = wxPyBeginAllowThreads();
28243 (arg1)->AddBrush(arg2);
28244 wxPyEndAllowThreads(__tstate);
28245 if (PyErr_Occurred()) SWIG_fail;
28246 }
28247 resultobj = SWIG_Py_Void();
28248 return resultobj;
28249 fail:
28250 return NULL;
28251 }
28252
28253
28254 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28255 PyObject *resultobj = 0;
28256 wxBrushList *arg1 = (wxBrushList *) 0 ;
28257 wxBrush *arg2 = (wxBrush *) 0 ;
28258 void *argp1 = 0 ;
28259 int res1 = 0 ;
28260 void *argp2 = 0 ;
28261 int res2 = 0 ;
28262 PyObject * obj0 = 0 ;
28263 PyObject * obj1 = 0 ;
28264 char * kwnames[] = {
28265 (char *) "self",(char *) "brush", NULL
28266 };
28267
28268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28270 if (!SWIG_IsOK(res1)) {
28271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28272 }
28273 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28275 if (!SWIG_IsOK(res2)) {
28276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28277 }
28278 arg2 = reinterpret_cast< wxBrush * >(argp2);
28279 {
28280 PyThreadState* __tstate = wxPyBeginAllowThreads();
28281 (arg1)->RemoveBrush(arg2);
28282 wxPyEndAllowThreads(__tstate);
28283 if (PyErr_Occurred()) SWIG_fail;
28284 }
28285 resultobj = SWIG_Py_Void();
28286 return resultobj;
28287 fail:
28288 return NULL;
28289 }
28290
28291
28292 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28293 PyObject *obj;
28294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28295 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28296 return SWIG_Py_Void();
28297 }
28298
28299 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28300 PyObject *resultobj = 0;
28301 wxFontList *arg1 = (wxFontList *) 0 ;
28302 int arg2 ;
28303 int arg3 ;
28304 int arg4 ;
28305 int arg5 ;
28306 bool arg6 = (bool) false ;
28307 wxString const &arg7_defvalue = wxPyEmptyString ;
28308 wxString *arg7 = (wxString *) &arg7_defvalue ;
28309 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28310 wxFont *result = 0 ;
28311 void *argp1 = 0 ;
28312 int res1 = 0 ;
28313 int val2 ;
28314 int ecode2 = 0 ;
28315 int val3 ;
28316 int ecode3 = 0 ;
28317 int val4 ;
28318 int ecode4 = 0 ;
28319 int val5 ;
28320 int ecode5 = 0 ;
28321 bool val6 ;
28322 int ecode6 = 0 ;
28323 bool temp7 = false ;
28324 int val8 ;
28325 int ecode8 = 0 ;
28326 PyObject * obj0 = 0 ;
28327 PyObject * obj1 = 0 ;
28328 PyObject * obj2 = 0 ;
28329 PyObject * obj3 = 0 ;
28330 PyObject * obj4 = 0 ;
28331 PyObject * obj5 = 0 ;
28332 PyObject * obj6 = 0 ;
28333 PyObject * obj7 = 0 ;
28334 char * kwnames[] = {
28335 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28336 };
28337
28338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28340 if (!SWIG_IsOK(res1)) {
28341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28342 }
28343 arg1 = reinterpret_cast< wxFontList * >(argp1);
28344 ecode2 = SWIG_AsVal_int(obj1, &val2);
28345 if (!SWIG_IsOK(ecode2)) {
28346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28347 }
28348 arg2 = static_cast< int >(val2);
28349 ecode3 = SWIG_AsVal_int(obj2, &val3);
28350 if (!SWIG_IsOK(ecode3)) {
28351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28352 }
28353 arg3 = static_cast< int >(val3);
28354 ecode4 = SWIG_AsVal_int(obj3, &val4);
28355 if (!SWIG_IsOK(ecode4)) {
28356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28357 }
28358 arg4 = static_cast< int >(val4);
28359 ecode5 = SWIG_AsVal_int(obj4, &val5);
28360 if (!SWIG_IsOK(ecode5)) {
28361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28362 }
28363 arg5 = static_cast< int >(val5);
28364 if (obj5) {
28365 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28366 if (!SWIG_IsOK(ecode6)) {
28367 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28368 }
28369 arg6 = static_cast< bool >(val6);
28370 }
28371 if (obj6) {
28372 {
28373 arg7 = wxString_in_helper(obj6);
28374 if (arg7 == NULL) SWIG_fail;
28375 temp7 = true;
28376 }
28377 }
28378 if (obj7) {
28379 ecode8 = SWIG_AsVal_int(obj7, &val8);
28380 if (!SWIG_IsOK(ecode8)) {
28381 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28382 }
28383 arg8 = static_cast< wxFontEncoding >(val8);
28384 }
28385 {
28386 PyThreadState* __tstate = wxPyBeginAllowThreads();
28387 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28388 wxPyEndAllowThreads(__tstate);
28389 if (PyErr_Occurred()) SWIG_fail;
28390 }
28391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28392 {
28393 if (temp7)
28394 delete arg7;
28395 }
28396 return resultobj;
28397 fail:
28398 {
28399 if (temp7)
28400 delete arg7;
28401 }
28402 return NULL;
28403 }
28404
28405
28406 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28407 PyObject *resultobj = 0;
28408 wxFontList *arg1 = (wxFontList *) 0 ;
28409 wxFont *arg2 = (wxFont *) 0 ;
28410 void *argp1 = 0 ;
28411 int res1 = 0 ;
28412 void *argp2 = 0 ;
28413 int res2 = 0 ;
28414 PyObject * obj0 = 0 ;
28415 PyObject * obj1 = 0 ;
28416 char * kwnames[] = {
28417 (char *) "self",(char *) "font", NULL
28418 };
28419
28420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28422 if (!SWIG_IsOK(res1)) {
28423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28424 }
28425 arg1 = reinterpret_cast< wxFontList * >(argp1);
28426 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28427 if (!SWIG_IsOK(res2)) {
28428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28429 }
28430 arg2 = reinterpret_cast< wxFont * >(argp2);
28431 {
28432 PyThreadState* __tstate = wxPyBeginAllowThreads();
28433 (arg1)->AddFont(arg2);
28434 wxPyEndAllowThreads(__tstate);
28435 if (PyErr_Occurred()) SWIG_fail;
28436 }
28437 resultobj = SWIG_Py_Void();
28438 return resultobj;
28439 fail:
28440 return NULL;
28441 }
28442
28443
28444 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28445 PyObject *resultobj = 0;
28446 wxFontList *arg1 = (wxFontList *) 0 ;
28447 wxFont *arg2 = (wxFont *) 0 ;
28448 void *argp1 = 0 ;
28449 int res1 = 0 ;
28450 void *argp2 = 0 ;
28451 int res2 = 0 ;
28452 PyObject * obj0 = 0 ;
28453 PyObject * obj1 = 0 ;
28454 char * kwnames[] = {
28455 (char *) "self",(char *) "font", NULL
28456 };
28457
28458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28460 if (!SWIG_IsOK(res1)) {
28461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28462 }
28463 arg1 = reinterpret_cast< wxFontList * >(argp1);
28464 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28465 if (!SWIG_IsOK(res2)) {
28466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28467 }
28468 arg2 = reinterpret_cast< wxFont * >(argp2);
28469 {
28470 PyThreadState* __tstate = wxPyBeginAllowThreads();
28471 (arg1)->RemoveFont(arg2);
28472 wxPyEndAllowThreads(__tstate);
28473 if (PyErr_Occurred()) SWIG_fail;
28474 }
28475 resultobj = SWIG_Py_Void();
28476 return resultobj;
28477 fail:
28478 return NULL;
28479 }
28480
28481
28482 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28483 PyObject *obj;
28484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28485 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28486 return SWIG_Py_Void();
28487 }
28488
28489 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28490 PyObject *resultobj = 0;
28491 wxColourDatabase *result = 0 ;
28492
28493 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28494 {
28495 if (!wxPyCheckForApp()) SWIG_fail;
28496 PyThreadState* __tstate = wxPyBeginAllowThreads();
28497 result = (wxColourDatabase *)new wxColourDatabase();
28498 wxPyEndAllowThreads(__tstate);
28499 if (PyErr_Occurred()) SWIG_fail;
28500 }
28501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28502 return resultobj;
28503 fail:
28504 return NULL;
28505 }
28506
28507
28508 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28509 PyObject *resultobj = 0;
28510 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28511 void *argp1 = 0 ;
28512 int res1 = 0 ;
28513 PyObject *swig_obj[1] ;
28514
28515 if (!args) SWIG_fail;
28516 swig_obj[0] = args;
28517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28518 if (!SWIG_IsOK(res1)) {
28519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28520 }
28521 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28522 {
28523 PyThreadState* __tstate = wxPyBeginAllowThreads();
28524 delete arg1;
28525
28526 wxPyEndAllowThreads(__tstate);
28527 if (PyErr_Occurred()) SWIG_fail;
28528 }
28529 resultobj = SWIG_Py_Void();
28530 return resultobj;
28531 fail:
28532 return NULL;
28533 }
28534
28535
28536 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28537 PyObject *resultobj = 0;
28538 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28539 wxString *arg2 = 0 ;
28540 wxColour result;
28541 void *argp1 = 0 ;
28542 int res1 = 0 ;
28543 bool temp2 = false ;
28544 PyObject * obj0 = 0 ;
28545 PyObject * obj1 = 0 ;
28546 char * kwnames[] = {
28547 (char *) "self",(char *) "name", NULL
28548 };
28549
28550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28552 if (!SWIG_IsOK(res1)) {
28553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28554 }
28555 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28556 {
28557 arg2 = wxString_in_helper(obj1);
28558 if (arg2 == NULL) SWIG_fail;
28559 temp2 = true;
28560 }
28561 {
28562 PyThreadState* __tstate = wxPyBeginAllowThreads();
28563 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28564 wxPyEndAllowThreads(__tstate);
28565 if (PyErr_Occurred()) SWIG_fail;
28566 }
28567 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28568 {
28569 if (temp2)
28570 delete arg2;
28571 }
28572 return resultobj;
28573 fail:
28574 {
28575 if (temp2)
28576 delete arg2;
28577 }
28578 return NULL;
28579 }
28580
28581
28582 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28583 PyObject *resultobj = 0;
28584 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28585 wxColour *arg2 = 0 ;
28586 wxString result;
28587 void *argp1 = 0 ;
28588 int res1 = 0 ;
28589 wxColour temp2 ;
28590 PyObject * obj0 = 0 ;
28591 PyObject * obj1 = 0 ;
28592 char * kwnames[] = {
28593 (char *) "self",(char *) "colour", NULL
28594 };
28595
28596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28598 if (!SWIG_IsOK(res1)) {
28599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28600 }
28601 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28602 {
28603 arg2 = &temp2;
28604 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28605 }
28606 {
28607 PyThreadState* __tstate = wxPyBeginAllowThreads();
28608 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28609 wxPyEndAllowThreads(__tstate);
28610 if (PyErr_Occurred()) SWIG_fail;
28611 }
28612 {
28613 #if wxUSE_UNICODE
28614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28615 #else
28616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28617 #endif
28618 }
28619 return resultobj;
28620 fail:
28621 return NULL;
28622 }
28623
28624
28625 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28626 PyObject *resultobj = 0;
28627 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28628 wxString *arg2 = 0 ;
28629 wxColour *arg3 = 0 ;
28630 void *argp1 = 0 ;
28631 int res1 = 0 ;
28632 bool temp2 = false ;
28633 wxColour temp3 ;
28634 PyObject * obj0 = 0 ;
28635 PyObject * obj1 = 0 ;
28636 PyObject * obj2 = 0 ;
28637 char * kwnames[] = {
28638 (char *) "self",(char *) "name",(char *) "colour", NULL
28639 };
28640
28641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28643 if (!SWIG_IsOK(res1)) {
28644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28645 }
28646 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28647 {
28648 arg2 = wxString_in_helper(obj1);
28649 if (arg2 == NULL) SWIG_fail;
28650 temp2 = true;
28651 }
28652 {
28653 arg3 = &temp3;
28654 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28655 }
28656 {
28657 PyThreadState* __tstate = wxPyBeginAllowThreads();
28658 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28659 wxPyEndAllowThreads(__tstate);
28660 if (PyErr_Occurred()) SWIG_fail;
28661 }
28662 resultobj = SWIG_Py_Void();
28663 {
28664 if (temp2)
28665 delete arg2;
28666 }
28667 return resultobj;
28668 fail:
28669 {
28670 if (temp2)
28671 delete arg2;
28672 }
28673 return NULL;
28674 }
28675
28676
28677 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28678 PyObject *resultobj = 0;
28679 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28680 wxString *arg2 = 0 ;
28681 int arg3 ;
28682 int arg4 ;
28683 int arg5 ;
28684 void *argp1 = 0 ;
28685 int res1 = 0 ;
28686 bool temp2 = false ;
28687 int val3 ;
28688 int ecode3 = 0 ;
28689 int val4 ;
28690 int ecode4 = 0 ;
28691 int val5 ;
28692 int ecode5 = 0 ;
28693 PyObject * obj0 = 0 ;
28694 PyObject * obj1 = 0 ;
28695 PyObject * obj2 = 0 ;
28696 PyObject * obj3 = 0 ;
28697 PyObject * obj4 = 0 ;
28698 char * kwnames[] = {
28699 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
28700 };
28701
28702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28704 if (!SWIG_IsOK(res1)) {
28705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28706 }
28707 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28708 {
28709 arg2 = wxString_in_helper(obj1);
28710 if (arg2 == NULL) SWIG_fail;
28711 temp2 = true;
28712 }
28713 ecode3 = SWIG_AsVal_int(obj2, &val3);
28714 if (!SWIG_IsOK(ecode3)) {
28715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
28716 }
28717 arg3 = static_cast< int >(val3);
28718 ecode4 = SWIG_AsVal_int(obj3, &val4);
28719 if (!SWIG_IsOK(ecode4)) {
28720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
28721 }
28722 arg4 = static_cast< int >(val4);
28723 ecode5 = SWIG_AsVal_int(obj4, &val5);
28724 if (!SWIG_IsOK(ecode5)) {
28725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
28726 }
28727 arg5 = static_cast< int >(val5);
28728 {
28729 PyThreadState* __tstate = wxPyBeginAllowThreads();
28730 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
28731 wxPyEndAllowThreads(__tstate);
28732 if (PyErr_Occurred()) SWIG_fail;
28733 }
28734 resultobj = SWIG_Py_Void();
28735 {
28736 if (temp2)
28737 delete arg2;
28738 }
28739 return resultobj;
28740 fail:
28741 {
28742 if (temp2)
28743 delete arg2;
28744 }
28745 return NULL;
28746 }
28747
28748
28749 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28750 PyObject *obj;
28751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28752 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28753 return SWIG_Py_Void();
28754 }
28755
28756 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28757 return SWIG_Python_InitShadowInstance(args);
28758 }
28759
28760 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28761 PyObject *resultobj = 0;
28762 wxFontList *result = 0 ;
28763
28764 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
28765 {
28766 PyThreadState* __tstate = wxPyBeginAllowThreads();
28767 result = (wxFontList *)_wxPyInitTheFontList();
28768 wxPyEndAllowThreads(__tstate);
28769 if (PyErr_Occurred()) SWIG_fail;
28770 }
28771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
28772 return resultobj;
28773 fail:
28774 return NULL;
28775 }
28776
28777
28778 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28779 PyObject *resultobj = 0;
28780 wxPenList *result = 0 ;
28781
28782 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
28783 {
28784 PyThreadState* __tstate = wxPyBeginAllowThreads();
28785 result = (wxPenList *)_wxPyInitThePenList();
28786 wxPyEndAllowThreads(__tstate);
28787 if (PyErr_Occurred()) SWIG_fail;
28788 }
28789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
28790 return resultobj;
28791 fail:
28792 return NULL;
28793 }
28794
28795
28796 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28797 PyObject *resultobj = 0;
28798 wxBrushList *result = 0 ;
28799
28800 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28801 {
28802 PyThreadState* __tstate = wxPyBeginAllowThreads();
28803 result = (wxBrushList *)_wxPyInitTheBrushList();
28804 wxPyEndAllowThreads(__tstate);
28805 if (PyErr_Occurred()) SWIG_fail;
28806 }
28807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28808 return resultobj;
28809 fail:
28810 return NULL;
28811 }
28812
28813
28814 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28815 PyObject *resultobj = 0;
28816 wxColourDatabase *result = 0 ;
28817
28818 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28819 {
28820 PyThreadState* __tstate = wxPyBeginAllowThreads();
28821 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28822 wxPyEndAllowThreads(__tstate);
28823 if (PyErr_Occurred()) SWIG_fail;
28824 }
28825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28826 return resultobj;
28827 fail:
28828 return NULL;
28829 }
28830
28831
28832 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28833 PyObject *resultobj = 0;
28834 wxEffects *result = 0 ;
28835
28836 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28837 {
28838 PyThreadState* __tstate = wxPyBeginAllowThreads();
28839 result = (wxEffects *)new wxEffects();
28840 wxPyEndAllowThreads(__tstate);
28841 if (PyErr_Occurred()) SWIG_fail;
28842 }
28843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28844 return resultobj;
28845 fail:
28846 return NULL;
28847 }
28848
28849
28850 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28851 PyObject *resultobj = 0;
28852 wxEffects *arg1 = (wxEffects *) 0 ;
28853 wxColour result;
28854 void *argp1 = 0 ;
28855 int res1 = 0 ;
28856 PyObject *swig_obj[1] ;
28857
28858 if (!args) SWIG_fail;
28859 swig_obj[0] = args;
28860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28861 if (!SWIG_IsOK(res1)) {
28862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28863 }
28864 arg1 = reinterpret_cast< wxEffects * >(argp1);
28865 {
28866 PyThreadState* __tstate = wxPyBeginAllowThreads();
28867 result = ((wxEffects const *)arg1)->GetHighlightColour();
28868 wxPyEndAllowThreads(__tstate);
28869 if (PyErr_Occurred()) SWIG_fail;
28870 }
28871 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28872 return resultobj;
28873 fail:
28874 return NULL;
28875 }
28876
28877
28878 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28879 PyObject *resultobj = 0;
28880 wxEffects *arg1 = (wxEffects *) 0 ;
28881 wxColour result;
28882 void *argp1 = 0 ;
28883 int res1 = 0 ;
28884 PyObject *swig_obj[1] ;
28885
28886 if (!args) SWIG_fail;
28887 swig_obj[0] = args;
28888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28889 if (!SWIG_IsOK(res1)) {
28890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28891 }
28892 arg1 = reinterpret_cast< wxEffects * >(argp1);
28893 {
28894 PyThreadState* __tstate = wxPyBeginAllowThreads();
28895 result = ((wxEffects const *)arg1)->GetLightShadow();
28896 wxPyEndAllowThreads(__tstate);
28897 if (PyErr_Occurred()) SWIG_fail;
28898 }
28899 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28900 return resultobj;
28901 fail:
28902 return NULL;
28903 }
28904
28905
28906 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28907 PyObject *resultobj = 0;
28908 wxEffects *arg1 = (wxEffects *) 0 ;
28909 wxColour result;
28910 void *argp1 = 0 ;
28911 int res1 = 0 ;
28912 PyObject *swig_obj[1] ;
28913
28914 if (!args) SWIG_fail;
28915 swig_obj[0] = args;
28916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28917 if (!SWIG_IsOK(res1)) {
28918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28919 }
28920 arg1 = reinterpret_cast< wxEffects * >(argp1);
28921 {
28922 PyThreadState* __tstate = wxPyBeginAllowThreads();
28923 result = ((wxEffects const *)arg1)->GetFaceColour();
28924 wxPyEndAllowThreads(__tstate);
28925 if (PyErr_Occurred()) SWIG_fail;
28926 }
28927 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28928 return resultobj;
28929 fail:
28930 return NULL;
28931 }
28932
28933
28934 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28935 PyObject *resultobj = 0;
28936 wxEffects *arg1 = (wxEffects *) 0 ;
28937 wxColour result;
28938 void *argp1 = 0 ;
28939 int res1 = 0 ;
28940 PyObject *swig_obj[1] ;
28941
28942 if (!args) SWIG_fail;
28943 swig_obj[0] = args;
28944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28945 if (!SWIG_IsOK(res1)) {
28946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28947 }
28948 arg1 = reinterpret_cast< wxEffects * >(argp1);
28949 {
28950 PyThreadState* __tstate = wxPyBeginAllowThreads();
28951 result = ((wxEffects const *)arg1)->GetMediumShadow();
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28956 return resultobj;
28957 fail:
28958 return NULL;
28959 }
28960
28961
28962 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28963 PyObject *resultobj = 0;
28964 wxEffects *arg1 = (wxEffects *) 0 ;
28965 wxColour result;
28966 void *argp1 = 0 ;
28967 int res1 = 0 ;
28968 PyObject *swig_obj[1] ;
28969
28970 if (!args) SWIG_fail;
28971 swig_obj[0] = args;
28972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28973 if (!SWIG_IsOK(res1)) {
28974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28975 }
28976 arg1 = reinterpret_cast< wxEffects * >(argp1);
28977 {
28978 PyThreadState* __tstate = wxPyBeginAllowThreads();
28979 result = ((wxEffects const *)arg1)->GetDarkShadow();
28980 wxPyEndAllowThreads(__tstate);
28981 if (PyErr_Occurred()) SWIG_fail;
28982 }
28983 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28984 return resultobj;
28985 fail:
28986 return NULL;
28987 }
28988
28989
28990 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28991 PyObject *resultobj = 0;
28992 wxEffects *arg1 = (wxEffects *) 0 ;
28993 wxColour *arg2 = 0 ;
28994 void *argp1 = 0 ;
28995 int res1 = 0 ;
28996 wxColour temp2 ;
28997 PyObject * obj0 = 0 ;
28998 PyObject * obj1 = 0 ;
28999 char * kwnames[] = {
29000 (char *) "self",(char *) "c", NULL
29001 };
29002
29003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29005 if (!SWIG_IsOK(res1)) {
29006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29007 }
29008 arg1 = reinterpret_cast< wxEffects * >(argp1);
29009 {
29010 arg2 = &temp2;
29011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29012 }
29013 {
29014 PyThreadState* __tstate = wxPyBeginAllowThreads();
29015 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29016 wxPyEndAllowThreads(__tstate);
29017 if (PyErr_Occurred()) SWIG_fail;
29018 }
29019 resultobj = SWIG_Py_Void();
29020 return resultobj;
29021 fail:
29022 return NULL;
29023 }
29024
29025
29026 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29027 PyObject *resultobj = 0;
29028 wxEffects *arg1 = (wxEffects *) 0 ;
29029 wxColour *arg2 = 0 ;
29030 void *argp1 = 0 ;
29031 int res1 = 0 ;
29032 wxColour temp2 ;
29033 PyObject * obj0 = 0 ;
29034 PyObject * obj1 = 0 ;
29035 char * kwnames[] = {
29036 (char *) "self",(char *) "c", NULL
29037 };
29038
29039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29041 if (!SWIG_IsOK(res1)) {
29042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29043 }
29044 arg1 = reinterpret_cast< wxEffects * >(argp1);
29045 {
29046 arg2 = &temp2;
29047 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29048 }
29049 {
29050 PyThreadState* __tstate = wxPyBeginAllowThreads();
29051 (arg1)->SetLightShadow((wxColour const &)*arg2);
29052 wxPyEndAllowThreads(__tstate);
29053 if (PyErr_Occurred()) SWIG_fail;
29054 }
29055 resultobj = SWIG_Py_Void();
29056 return resultobj;
29057 fail:
29058 return NULL;
29059 }
29060
29061
29062 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29063 PyObject *resultobj = 0;
29064 wxEffects *arg1 = (wxEffects *) 0 ;
29065 wxColour *arg2 = 0 ;
29066 void *argp1 = 0 ;
29067 int res1 = 0 ;
29068 wxColour temp2 ;
29069 PyObject * obj0 = 0 ;
29070 PyObject * obj1 = 0 ;
29071 char * kwnames[] = {
29072 (char *) "self",(char *) "c", NULL
29073 };
29074
29075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29077 if (!SWIG_IsOK(res1)) {
29078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29079 }
29080 arg1 = reinterpret_cast< wxEffects * >(argp1);
29081 {
29082 arg2 = &temp2;
29083 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29084 }
29085 {
29086 PyThreadState* __tstate = wxPyBeginAllowThreads();
29087 (arg1)->SetFaceColour((wxColour const &)*arg2);
29088 wxPyEndAllowThreads(__tstate);
29089 if (PyErr_Occurred()) SWIG_fail;
29090 }
29091 resultobj = SWIG_Py_Void();
29092 return resultobj;
29093 fail:
29094 return NULL;
29095 }
29096
29097
29098 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29099 PyObject *resultobj = 0;
29100 wxEffects *arg1 = (wxEffects *) 0 ;
29101 wxColour *arg2 = 0 ;
29102 void *argp1 = 0 ;
29103 int res1 = 0 ;
29104 wxColour temp2 ;
29105 PyObject * obj0 = 0 ;
29106 PyObject * obj1 = 0 ;
29107 char * kwnames[] = {
29108 (char *) "self",(char *) "c", NULL
29109 };
29110
29111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29113 if (!SWIG_IsOK(res1)) {
29114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29115 }
29116 arg1 = reinterpret_cast< wxEffects * >(argp1);
29117 {
29118 arg2 = &temp2;
29119 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29120 }
29121 {
29122 PyThreadState* __tstate = wxPyBeginAllowThreads();
29123 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29124 wxPyEndAllowThreads(__tstate);
29125 if (PyErr_Occurred()) SWIG_fail;
29126 }
29127 resultobj = SWIG_Py_Void();
29128 return resultobj;
29129 fail:
29130 return NULL;
29131 }
29132
29133
29134 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29135 PyObject *resultobj = 0;
29136 wxEffects *arg1 = (wxEffects *) 0 ;
29137 wxColour *arg2 = 0 ;
29138 void *argp1 = 0 ;
29139 int res1 = 0 ;
29140 wxColour temp2 ;
29141 PyObject * obj0 = 0 ;
29142 PyObject * obj1 = 0 ;
29143 char * kwnames[] = {
29144 (char *) "self",(char *) "c", NULL
29145 };
29146
29147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29149 if (!SWIG_IsOK(res1)) {
29150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29151 }
29152 arg1 = reinterpret_cast< wxEffects * >(argp1);
29153 {
29154 arg2 = &temp2;
29155 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29156 }
29157 {
29158 PyThreadState* __tstate = wxPyBeginAllowThreads();
29159 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29160 wxPyEndAllowThreads(__tstate);
29161 if (PyErr_Occurred()) SWIG_fail;
29162 }
29163 resultobj = SWIG_Py_Void();
29164 return resultobj;
29165 fail:
29166 return NULL;
29167 }
29168
29169
29170 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29171 PyObject *resultobj = 0;
29172 wxEffects *arg1 = (wxEffects *) 0 ;
29173 wxColour *arg2 = 0 ;
29174 wxColour *arg3 = 0 ;
29175 wxColour *arg4 = 0 ;
29176 wxColour *arg5 = 0 ;
29177 wxColour *arg6 = 0 ;
29178 void *argp1 = 0 ;
29179 int res1 = 0 ;
29180 wxColour temp2 ;
29181 wxColour temp3 ;
29182 wxColour temp4 ;
29183 wxColour temp5 ;
29184 wxColour temp6 ;
29185 PyObject * obj0 = 0 ;
29186 PyObject * obj1 = 0 ;
29187 PyObject * obj2 = 0 ;
29188 PyObject * obj3 = 0 ;
29189 PyObject * obj4 = 0 ;
29190 PyObject * obj5 = 0 ;
29191 char * kwnames[] = {
29192 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29193 };
29194
29195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29197 if (!SWIG_IsOK(res1)) {
29198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29199 }
29200 arg1 = reinterpret_cast< wxEffects * >(argp1);
29201 {
29202 arg2 = &temp2;
29203 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29204 }
29205 {
29206 arg3 = &temp3;
29207 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29208 }
29209 {
29210 arg4 = &temp4;
29211 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29212 }
29213 {
29214 arg5 = &temp5;
29215 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29216 }
29217 {
29218 arg6 = &temp6;
29219 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29220 }
29221 {
29222 PyThreadState* __tstate = wxPyBeginAllowThreads();
29223 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29224 wxPyEndAllowThreads(__tstate);
29225 if (PyErr_Occurred()) SWIG_fail;
29226 }
29227 resultobj = SWIG_Py_Void();
29228 return resultobj;
29229 fail:
29230 return NULL;
29231 }
29232
29233
29234 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29235 PyObject *resultobj = 0;
29236 wxEffects *arg1 = (wxEffects *) 0 ;
29237 wxDC *arg2 = 0 ;
29238 wxRect *arg3 = 0 ;
29239 int arg4 = (int) 1 ;
29240 void *argp1 = 0 ;
29241 int res1 = 0 ;
29242 void *argp2 = 0 ;
29243 int res2 = 0 ;
29244 wxRect temp3 ;
29245 int val4 ;
29246 int ecode4 = 0 ;
29247 PyObject * obj0 = 0 ;
29248 PyObject * obj1 = 0 ;
29249 PyObject * obj2 = 0 ;
29250 PyObject * obj3 = 0 ;
29251 char * kwnames[] = {
29252 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29253 };
29254
29255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29257 if (!SWIG_IsOK(res1)) {
29258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29259 }
29260 arg1 = reinterpret_cast< wxEffects * >(argp1);
29261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29262 if (!SWIG_IsOK(res2)) {
29263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29264 }
29265 if (!argp2) {
29266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29267 }
29268 arg2 = reinterpret_cast< wxDC * >(argp2);
29269 {
29270 arg3 = &temp3;
29271 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29272 }
29273 if (obj3) {
29274 ecode4 = SWIG_AsVal_int(obj3, &val4);
29275 if (!SWIG_IsOK(ecode4)) {
29276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29277 }
29278 arg4 = static_cast< int >(val4);
29279 }
29280 {
29281 PyThreadState* __tstate = wxPyBeginAllowThreads();
29282 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29283 wxPyEndAllowThreads(__tstate);
29284 if (PyErr_Occurred()) SWIG_fail;
29285 }
29286 resultobj = SWIG_Py_Void();
29287 return resultobj;
29288 fail:
29289 return NULL;
29290 }
29291
29292
29293 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29294 PyObject *resultobj = 0;
29295 wxEffects *arg1 = (wxEffects *) 0 ;
29296 wxRect *arg2 = 0 ;
29297 wxDC *arg3 = 0 ;
29298 wxBitmap *arg4 = 0 ;
29299 bool result;
29300 void *argp1 = 0 ;
29301 int res1 = 0 ;
29302 wxRect temp2 ;
29303 void *argp3 = 0 ;
29304 int res3 = 0 ;
29305 void *argp4 = 0 ;
29306 int res4 = 0 ;
29307 PyObject * obj0 = 0 ;
29308 PyObject * obj1 = 0 ;
29309 PyObject * obj2 = 0 ;
29310 PyObject * obj3 = 0 ;
29311 char * kwnames[] = {
29312 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29313 };
29314
29315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29317 if (!SWIG_IsOK(res1)) {
29318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29319 }
29320 arg1 = reinterpret_cast< wxEffects * >(argp1);
29321 {
29322 arg2 = &temp2;
29323 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29324 }
29325 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29326 if (!SWIG_IsOK(res3)) {
29327 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29328 }
29329 if (!argp3) {
29330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29331 }
29332 arg3 = reinterpret_cast< wxDC * >(argp3);
29333 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29334 if (!SWIG_IsOK(res4)) {
29335 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29336 }
29337 if (!argp4) {
29338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29339 }
29340 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29341 {
29342 PyThreadState* __tstate = wxPyBeginAllowThreads();
29343 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29344 wxPyEndAllowThreads(__tstate);
29345 if (PyErr_Occurred()) SWIG_fail;
29346 }
29347 {
29348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29349 }
29350 return resultobj;
29351 fail:
29352 return NULL;
29353 }
29354
29355
29356 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29357 PyObject *obj;
29358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29359 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29360 return SWIG_Py_Void();
29361 }
29362
29363 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29364 return SWIG_Python_InitShadowInstance(args);
29365 }
29366
29367 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29368 PyObject *resultobj = 0;
29369 int arg1 ;
29370 int arg2 ;
29371 bool arg3 ;
29372 wxSplitterRenderParams *result = 0 ;
29373 int val1 ;
29374 int ecode1 = 0 ;
29375 int val2 ;
29376 int ecode2 = 0 ;
29377 bool val3 ;
29378 int ecode3 = 0 ;
29379 PyObject * obj0 = 0 ;
29380 PyObject * obj1 = 0 ;
29381 PyObject * obj2 = 0 ;
29382 char * kwnames[] = {
29383 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29384 };
29385
29386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29387 ecode1 = SWIG_AsVal_int(obj0, &val1);
29388 if (!SWIG_IsOK(ecode1)) {
29389 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29390 }
29391 arg1 = static_cast< int >(val1);
29392 ecode2 = SWIG_AsVal_int(obj1, &val2);
29393 if (!SWIG_IsOK(ecode2)) {
29394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29395 }
29396 arg2 = static_cast< int >(val2);
29397 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29398 if (!SWIG_IsOK(ecode3)) {
29399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29400 }
29401 arg3 = static_cast< bool >(val3);
29402 {
29403 PyThreadState* __tstate = wxPyBeginAllowThreads();
29404 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29405 wxPyEndAllowThreads(__tstate);
29406 if (PyErr_Occurred()) SWIG_fail;
29407 }
29408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29409 return resultobj;
29410 fail:
29411 return NULL;
29412 }
29413
29414
29415 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29416 PyObject *resultobj = 0;
29417 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29418 void *argp1 = 0 ;
29419 int res1 = 0 ;
29420 PyObject *swig_obj[1] ;
29421
29422 if (!args) SWIG_fail;
29423 swig_obj[0] = args;
29424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29425 if (!SWIG_IsOK(res1)) {
29426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29427 }
29428 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29429 {
29430 PyThreadState* __tstate = wxPyBeginAllowThreads();
29431 delete arg1;
29432
29433 wxPyEndAllowThreads(__tstate);
29434 if (PyErr_Occurred()) SWIG_fail;
29435 }
29436 resultobj = SWIG_Py_Void();
29437 return resultobj;
29438 fail:
29439 return NULL;
29440 }
29441
29442
29443 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29444 PyObject *resultobj = 0;
29445 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29446 int result;
29447 void *argp1 = 0 ;
29448 int res1 = 0 ;
29449 PyObject *swig_obj[1] ;
29450
29451 if (!args) SWIG_fail;
29452 swig_obj[0] = args;
29453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29454 if (!SWIG_IsOK(res1)) {
29455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29456 }
29457 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29458 result = (int)(int) ((arg1)->widthSash);
29459 resultobj = SWIG_From_int(static_cast< int >(result));
29460 return resultobj;
29461 fail:
29462 return NULL;
29463 }
29464
29465
29466 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29467 PyObject *resultobj = 0;
29468 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29469 int result;
29470 void *argp1 = 0 ;
29471 int res1 = 0 ;
29472 PyObject *swig_obj[1] ;
29473
29474 if (!args) SWIG_fail;
29475 swig_obj[0] = args;
29476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29477 if (!SWIG_IsOK(res1)) {
29478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29479 }
29480 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29481 result = (int)(int) ((arg1)->border);
29482 resultobj = SWIG_From_int(static_cast< int >(result));
29483 return resultobj;
29484 fail:
29485 return NULL;
29486 }
29487
29488
29489 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29490 PyObject *resultobj = 0;
29491 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29492 bool result;
29493 void *argp1 = 0 ;
29494 int res1 = 0 ;
29495 PyObject *swig_obj[1] ;
29496
29497 if (!args) SWIG_fail;
29498 swig_obj[0] = args;
29499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29500 if (!SWIG_IsOK(res1)) {
29501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29502 }
29503 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29504 result = (bool)(bool) ((arg1)->isHotSensitive);
29505 resultobj = SWIG_From_bool(static_cast< bool >(result));
29506 return resultobj;
29507 fail:
29508 return NULL;
29509 }
29510
29511
29512 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29513 PyObject *obj;
29514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29515 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29516 return SWIG_Py_Void();
29517 }
29518
29519 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29520 return SWIG_Python_InitShadowInstance(args);
29521 }
29522
29523 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29524 PyObject *resultobj = 0;
29525 wxHeaderButtonParams *result = 0 ;
29526
29527 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29528 {
29529 PyThreadState* __tstate = wxPyBeginAllowThreads();
29530 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29531 wxPyEndAllowThreads(__tstate);
29532 if (PyErr_Occurred()) SWIG_fail;
29533 }
29534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29535 return resultobj;
29536 fail:
29537 return NULL;
29538 }
29539
29540
29541 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29542 PyObject *resultobj = 0;
29543 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29544 void *argp1 = 0 ;
29545 int res1 = 0 ;
29546 PyObject *swig_obj[1] ;
29547
29548 if (!args) SWIG_fail;
29549 swig_obj[0] = args;
29550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29551 if (!SWIG_IsOK(res1)) {
29552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29553 }
29554 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29555 {
29556 PyThreadState* __tstate = wxPyBeginAllowThreads();
29557 delete arg1;
29558
29559 wxPyEndAllowThreads(__tstate);
29560 if (PyErr_Occurred()) SWIG_fail;
29561 }
29562 resultobj = SWIG_Py_Void();
29563 return resultobj;
29564 fail:
29565 return NULL;
29566 }
29567
29568
29569 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29570 PyObject *resultobj = 0;
29571 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29572 wxColour *arg2 = (wxColour *) 0 ;
29573 void *argp1 = 0 ;
29574 int res1 = 0 ;
29575 wxColour temp2 ;
29576 PyObject *swig_obj[2] ;
29577
29578 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29580 if (!SWIG_IsOK(res1)) {
29581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29582 }
29583 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29584 {
29585 arg2 = &temp2;
29586 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29587 }
29588 if (arg1) (arg1)->m_arrowColour = *arg2;
29589
29590 resultobj = SWIG_Py_Void();
29591 return resultobj;
29592 fail:
29593 return NULL;
29594 }
29595
29596
29597 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29598 PyObject *resultobj = 0;
29599 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29600 wxColour *result = 0 ;
29601 void *argp1 = 0 ;
29602 int res1 = 0 ;
29603 PyObject *swig_obj[1] ;
29604
29605 if (!args) SWIG_fail;
29606 swig_obj[0] = args;
29607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29608 if (!SWIG_IsOK(res1)) {
29609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29610 }
29611 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29612 result = (wxColour *)& ((arg1)->m_arrowColour);
29613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29614 return resultobj;
29615 fail:
29616 return NULL;
29617 }
29618
29619
29620 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29621 PyObject *resultobj = 0;
29622 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29623 wxColour *arg2 = (wxColour *) 0 ;
29624 void *argp1 = 0 ;
29625 int res1 = 0 ;
29626 wxColour temp2 ;
29627 PyObject *swig_obj[2] ;
29628
29629 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29631 if (!SWIG_IsOK(res1)) {
29632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29633 }
29634 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29635 {
29636 arg2 = &temp2;
29637 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29638 }
29639 if (arg1) (arg1)->m_selectionColour = *arg2;
29640
29641 resultobj = SWIG_Py_Void();
29642 return resultobj;
29643 fail:
29644 return NULL;
29645 }
29646
29647
29648 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29649 PyObject *resultobj = 0;
29650 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29651 wxColour *result = 0 ;
29652 void *argp1 = 0 ;
29653 int res1 = 0 ;
29654 PyObject *swig_obj[1] ;
29655
29656 if (!args) SWIG_fail;
29657 swig_obj[0] = args;
29658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29659 if (!SWIG_IsOK(res1)) {
29660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29661 }
29662 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29663 result = (wxColour *)& ((arg1)->m_selectionColour);
29664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29665 return resultobj;
29666 fail:
29667 return NULL;
29668 }
29669
29670
29671 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29672 PyObject *resultobj = 0;
29673 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29674 wxString *arg2 = (wxString *) 0 ;
29675 void *argp1 = 0 ;
29676 int res1 = 0 ;
29677 bool temp2 = false ;
29678 PyObject *swig_obj[2] ;
29679
29680 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29682 if (!SWIG_IsOK(res1)) {
29683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29684 }
29685 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29686 {
29687 arg2 = wxString_in_helper(swig_obj[1]);
29688 if (arg2 == NULL) SWIG_fail;
29689 temp2 = true;
29690 }
29691 if (arg1) (arg1)->m_labelText = *arg2;
29692
29693 resultobj = SWIG_Py_Void();
29694 {
29695 if (temp2)
29696 delete arg2;
29697 }
29698 return resultobj;
29699 fail:
29700 {
29701 if (temp2)
29702 delete arg2;
29703 }
29704 return NULL;
29705 }
29706
29707
29708 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29709 PyObject *resultobj = 0;
29710 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29711 wxString *result = 0 ;
29712 void *argp1 = 0 ;
29713 int res1 = 0 ;
29714 PyObject *swig_obj[1] ;
29715
29716 if (!args) SWIG_fail;
29717 swig_obj[0] = args;
29718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29719 if (!SWIG_IsOK(res1)) {
29720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29721 }
29722 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29723 result = (wxString *)& ((arg1)->m_labelText);
29724 {
29725 #if wxUSE_UNICODE
29726 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29727 #else
29728 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29729 #endif
29730 }
29731 return resultobj;
29732 fail:
29733 return NULL;
29734 }
29735
29736
29737 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29738 PyObject *resultobj = 0;
29739 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29740 wxFont *arg2 = (wxFont *) 0 ;
29741 void *argp1 = 0 ;
29742 int res1 = 0 ;
29743 void *argp2 = 0 ;
29744 int res2 = 0 ;
29745 PyObject *swig_obj[2] ;
29746
29747 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29749 if (!SWIG_IsOK(res1)) {
29750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29751 }
29752 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29753 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29754 if (!SWIG_IsOK(res2)) {
29755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29756 }
29757 arg2 = reinterpret_cast< wxFont * >(argp2);
29758 if (arg1) (arg1)->m_labelFont = *arg2;
29759
29760 resultobj = SWIG_Py_Void();
29761 return resultobj;
29762 fail:
29763 return NULL;
29764 }
29765
29766
29767 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29768 PyObject *resultobj = 0;
29769 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29770 wxFont *result = 0 ;
29771 void *argp1 = 0 ;
29772 int res1 = 0 ;
29773 PyObject *swig_obj[1] ;
29774
29775 if (!args) SWIG_fail;
29776 swig_obj[0] = args;
29777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29778 if (!SWIG_IsOK(res1)) {
29779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29780 }
29781 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29782 result = (wxFont *)& ((arg1)->m_labelFont);
29783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29784 return resultobj;
29785 fail:
29786 return NULL;
29787 }
29788
29789
29790 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29791 PyObject *resultobj = 0;
29792 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29793 wxColour *arg2 = (wxColour *) 0 ;
29794 void *argp1 = 0 ;
29795 int res1 = 0 ;
29796 wxColour temp2 ;
29797 PyObject *swig_obj[2] ;
29798
29799 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29801 if (!SWIG_IsOK(res1)) {
29802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29803 }
29804 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29805 {
29806 arg2 = &temp2;
29807 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29808 }
29809 if (arg1) (arg1)->m_labelColour = *arg2;
29810
29811 resultobj = SWIG_Py_Void();
29812 return resultobj;
29813 fail:
29814 return NULL;
29815 }
29816
29817
29818 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29819 PyObject *resultobj = 0;
29820 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29821 wxColour *result = 0 ;
29822 void *argp1 = 0 ;
29823 int res1 = 0 ;
29824 PyObject *swig_obj[1] ;
29825
29826 if (!args) SWIG_fail;
29827 swig_obj[0] = args;
29828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29829 if (!SWIG_IsOK(res1)) {
29830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29831 }
29832 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29833 result = (wxColour *)& ((arg1)->m_labelColour);
29834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29835 return resultobj;
29836 fail:
29837 return NULL;
29838 }
29839
29840
29841 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29842 PyObject *resultobj = 0;
29843 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29844 wxBitmap *arg2 = (wxBitmap *) 0 ;
29845 void *argp1 = 0 ;
29846 int res1 = 0 ;
29847 void *argp2 = 0 ;
29848 int res2 = 0 ;
29849 PyObject *swig_obj[2] ;
29850
29851 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29853 if (!SWIG_IsOK(res1)) {
29854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29855 }
29856 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29857 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29858 if (!SWIG_IsOK(res2)) {
29859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29860 }
29861 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29862 if (arg1) (arg1)->m_labelBitmap = *arg2;
29863
29864 resultobj = SWIG_Py_Void();
29865 return resultobj;
29866 fail:
29867 return NULL;
29868 }
29869
29870
29871 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29872 PyObject *resultobj = 0;
29873 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29874 wxBitmap *result = 0 ;
29875 void *argp1 = 0 ;
29876 int res1 = 0 ;
29877 PyObject *swig_obj[1] ;
29878
29879 if (!args) SWIG_fail;
29880 swig_obj[0] = args;
29881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29882 if (!SWIG_IsOK(res1)) {
29883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29884 }
29885 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29886 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29888 return resultobj;
29889 fail:
29890 return NULL;
29891 }
29892
29893
29894 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29895 PyObject *resultobj = 0;
29896 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29897 int arg2 ;
29898 void *argp1 = 0 ;
29899 int res1 = 0 ;
29900 int val2 ;
29901 int ecode2 = 0 ;
29902 PyObject *swig_obj[2] ;
29903
29904 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29906 if (!SWIG_IsOK(res1)) {
29907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29908 }
29909 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29910 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29911 if (!SWIG_IsOK(ecode2)) {
29912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29913 }
29914 arg2 = static_cast< int >(val2);
29915 if (arg1) (arg1)->m_labelAlignment = arg2;
29916
29917 resultobj = SWIG_Py_Void();
29918 return resultobj;
29919 fail:
29920 return NULL;
29921 }
29922
29923
29924 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29925 PyObject *resultobj = 0;
29926 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29927 int result;
29928 void *argp1 = 0 ;
29929 int res1 = 0 ;
29930 PyObject *swig_obj[1] ;
29931
29932 if (!args) SWIG_fail;
29933 swig_obj[0] = args;
29934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29935 if (!SWIG_IsOK(res1)) {
29936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29937 }
29938 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29939 result = (int) ((arg1)->m_labelAlignment);
29940 resultobj = SWIG_From_int(static_cast< int >(result));
29941 return resultobj;
29942 fail:
29943 return NULL;
29944 }
29945
29946
29947 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29948 PyObject *obj;
29949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29950 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29951 return SWIG_Py_Void();
29952 }
29953
29954 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29955 return SWIG_Python_InitShadowInstance(args);
29956 }
29957
29958 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29959 PyObject *resultobj = 0;
29960 int arg1 ;
29961 int arg2 ;
29962 wxRendererVersion *result = 0 ;
29963 int val1 ;
29964 int ecode1 = 0 ;
29965 int val2 ;
29966 int ecode2 = 0 ;
29967 PyObject * obj0 = 0 ;
29968 PyObject * obj1 = 0 ;
29969 char * kwnames[] = {
29970 (char *) "version_",(char *) "age_", NULL
29971 };
29972
29973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29974 ecode1 = SWIG_AsVal_int(obj0, &val1);
29975 if (!SWIG_IsOK(ecode1)) {
29976 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29977 }
29978 arg1 = static_cast< int >(val1);
29979 ecode2 = SWIG_AsVal_int(obj1, &val2);
29980 if (!SWIG_IsOK(ecode2)) {
29981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29982 }
29983 arg2 = static_cast< int >(val2);
29984 {
29985 PyThreadState* __tstate = wxPyBeginAllowThreads();
29986 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29987 wxPyEndAllowThreads(__tstate);
29988 if (PyErr_Occurred()) SWIG_fail;
29989 }
29990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29991 return resultobj;
29992 fail:
29993 return NULL;
29994 }
29995
29996
29997 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29998 PyObject *resultobj = 0;
29999 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30000 void *argp1 = 0 ;
30001 int res1 = 0 ;
30002 PyObject *swig_obj[1] ;
30003
30004 if (!args) SWIG_fail;
30005 swig_obj[0] = args;
30006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30007 if (!SWIG_IsOK(res1)) {
30008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30009 }
30010 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30011 {
30012 PyThreadState* __tstate = wxPyBeginAllowThreads();
30013 delete arg1;
30014
30015 wxPyEndAllowThreads(__tstate);
30016 if (PyErr_Occurred()) SWIG_fail;
30017 }
30018 resultobj = SWIG_Py_Void();
30019 return resultobj;
30020 fail:
30021 return NULL;
30022 }
30023
30024
30025 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30026 PyObject *resultobj = 0;
30027 wxRendererVersion *arg1 = 0 ;
30028 bool result;
30029 void *argp1 = 0 ;
30030 int res1 = 0 ;
30031 PyObject * obj0 = 0 ;
30032 char * kwnames[] = {
30033 (char *) "ver", NULL
30034 };
30035
30036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30037 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30038 if (!SWIG_IsOK(res1)) {
30039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30040 }
30041 if (!argp1) {
30042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30043 }
30044 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30045 {
30046 PyThreadState* __tstate = wxPyBeginAllowThreads();
30047 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30048 wxPyEndAllowThreads(__tstate);
30049 if (PyErr_Occurred()) SWIG_fail;
30050 }
30051 {
30052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30053 }
30054 return resultobj;
30055 fail:
30056 return NULL;
30057 }
30058
30059
30060 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30061 PyObject *resultobj = 0;
30062 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30063 int result;
30064 void *argp1 = 0 ;
30065 int res1 = 0 ;
30066 PyObject *swig_obj[1] ;
30067
30068 if (!args) SWIG_fail;
30069 swig_obj[0] = args;
30070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30071 if (!SWIG_IsOK(res1)) {
30072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30073 }
30074 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30075 result = (int)(int) ((arg1)->version);
30076 resultobj = SWIG_From_int(static_cast< int >(result));
30077 return resultobj;
30078 fail:
30079 return NULL;
30080 }
30081
30082
30083 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30084 PyObject *resultobj = 0;
30085 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30086 int result;
30087 void *argp1 = 0 ;
30088 int res1 = 0 ;
30089 PyObject *swig_obj[1] ;
30090
30091 if (!args) SWIG_fail;
30092 swig_obj[0] = args;
30093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30094 if (!SWIG_IsOK(res1)) {
30095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30096 }
30097 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30098 result = (int)(int) ((arg1)->age);
30099 resultobj = SWIG_From_int(static_cast< int >(result));
30100 return resultobj;
30101 fail:
30102 return NULL;
30103 }
30104
30105
30106 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30107 PyObject *obj;
30108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30109 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30110 return SWIG_Py_Void();
30111 }
30112
30113 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30114 return SWIG_Python_InitShadowInstance(args);
30115 }
30116
30117 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30118 PyObject *resultobj = 0;
30119 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30120 wxWindow *arg2 = (wxWindow *) 0 ;
30121 wxDC *arg3 = 0 ;
30122 wxRect *arg4 = 0 ;
30123 int arg5 = (int) 0 ;
30124 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30125 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30126 void *argp1 = 0 ;
30127 int res1 = 0 ;
30128 void *argp2 = 0 ;
30129 int res2 = 0 ;
30130 void *argp3 = 0 ;
30131 int res3 = 0 ;
30132 wxRect temp4 ;
30133 int val5 ;
30134 int ecode5 = 0 ;
30135 int val6 ;
30136 int ecode6 = 0 ;
30137 void *argp7 = 0 ;
30138 int res7 = 0 ;
30139 PyObject * obj0 = 0 ;
30140 PyObject * obj1 = 0 ;
30141 PyObject * obj2 = 0 ;
30142 PyObject * obj3 = 0 ;
30143 PyObject * obj4 = 0 ;
30144 PyObject * obj5 = 0 ;
30145 PyObject * obj6 = 0 ;
30146 char * kwnames[] = {
30147 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30148 };
30149
30150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30152 if (!SWIG_IsOK(res1)) {
30153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30154 }
30155 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30156 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30157 if (!SWIG_IsOK(res2)) {
30158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30159 }
30160 arg2 = reinterpret_cast< wxWindow * >(argp2);
30161 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30162 if (!SWIG_IsOK(res3)) {
30163 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30164 }
30165 if (!argp3) {
30166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30167 }
30168 arg3 = reinterpret_cast< wxDC * >(argp3);
30169 {
30170 arg4 = &temp4;
30171 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30172 }
30173 if (obj4) {
30174 ecode5 = SWIG_AsVal_int(obj4, &val5);
30175 if (!SWIG_IsOK(ecode5)) {
30176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30177 }
30178 arg5 = static_cast< int >(val5);
30179 }
30180 if (obj5) {
30181 ecode6 = SWIG_AsVal_int(obj5, &val6);
30182 if (!SWIG_IsOK(ecode6)) {
30183 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30184 }
30185 arg6 = static_cast< wxHeaderSortIconType >(val6);
30186 }
30187 if (obj6) {
30188 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30189 if (!SWIG_IsOK(res7)) {
30190 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30191 }
30192 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30193 }
30194 {
30195 PyThreadState* __tstate = wxPyBeginAllowThreads();
30196 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30197 wxPyEndAllowThreads(__tstate);
30198 if (PyErr_Occurred()) SWIG_fail;
30199 }
30200 resultobj = SWIG_Py_Void();
30201 return resultobj;
30202 fail:
30203 return NULL;
30204 }
30205
30206
30207 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30208 PyObject *resultobj = 0;
30209 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30210 wxWindow *arg2 = (wxWindow *) 0 ;
30211 wxDC *arg3 = 0 ;
30212 wxRect *arg4 = 0 ;
30213 int arg5 = (int) 0 ;
30214 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30215 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30216 void *argp1 = 0 ;
30217 int res1 = 0 ;
30218 void *argp2 = 0 ;
30219 int res2 = 0 ;
30220 void *argp3 = 0 ;
30221 int res3 = 0 ;
30222 wxRect temp4 ;
30223 int val5 ;
30224 int ecode5 = 0 ;
30225 int val6 ;
30226 int ecode6 = 0 ;
30227 void *argp7 = 0 ;
30228 int res7 = 0 ;
30229 PyObject * obj0 = 0 ;
30230 PyObject * obj1 = 0 ;
30231 PyObject * obj2 = 0 ;
30232 PyObject * obj3 = 0 ;
30233 PyObject * obj4 = 0 ;
30234 PyObject * obj5 = 0 ;
30235 PyObject * obj6 = 0 ;
30236 char * kwnames[] = {
30237 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30238 };
30239
30240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30242 if (!SWIG_IsOK(res1)) {
30243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30244 }
30245 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30247 if (!SWIG_IsOK(res2)) {
30248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30249 }
30250 arg2 = reinterpret_cast< wxWindow * >(argp2);
30251 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30252 if (!SWIG_IsOK(res3)) {
30253 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30254 }
30255 if (!argp3) {
30256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30257 }
30258 arg3 = reinterpret_cast< wxDC * >(argp3);
30259 {
30260 arg4 = &temp4;
30261 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30262 }
30263 if (obj4) {
30264 ecode5 = SWIG_AsVal_int(obj4, &val5);
30265 if (!SWIG_IsOK(ecode5)) {
30266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30267 }
30268 arg5 = static_cast< int >(val5);
30269 }
30270 if (obj5) {
30271 ecode6 = SWIG_AsVal_int(obj5, &val6);
30272 if (!SWIG_IsOK(ecode6)) {
30273 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30274 }
30275 arg6 = static_cast< wxHeaderSortIconType >(val6);
30276 }
30277 if (obj6) {
30278 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30279 if (!SWIG_IsOK(res7)) {
30280 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30281 }
30282 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30283 }
30284 {
30285 PyThreadState* __tstate = wxPyBeginAllowThreads();
30286 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30287 wxPyEndAllowThreads(__tstate);
30288 if (PyErr_Occurred()) SWIG_fail;
30289 }
30290 resultobj = SWIG_Py_Void();
30291 return resultobj;
30292 fail:
30293 return NULL;
30294 }
30295
30296
30297 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30298 PyObject *resultobj = 0;
30299 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30300 wxWindow *arg2 = (wxWindow *) 0 ;
30301 int result;
30302 void *argp1 = 0 ;
30303 int res1 = 0 ;
30304 void *argp2 = 0 ;
30305 int res2 = 0 ;
30306 PyObject * obj0 = 0 ;
30307 PyObject * obj1 = 0 ;
30308 char * kwnames[] = {
30309 (char *) "self",(char *) "win", NULL
30310 };
30311
30312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30314 if (!SWIG_IsOK(res1)) {
30315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30316 }
30317 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30319 if (!SWIG_IsOK(res2)) {
30320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30321 }
30322 arg2 = reinterpret_cast< wxWindow * >(argp2);
30323 {
30324 PyThreadState* __tstate = wxPyBeginAllowThreads();
30325 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30326 wxPyEndAllowThreads(__tstate);
30327 if (PyErr_Occurred()) SWIG_fail;
30328 }
30329 resultobj = SWIG_From_int(static_cast< int >(result));
30330 return resultobj;
30331 fail:
30332 return NULL;
30333 }
30334
30335
30336 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30337 PyObject *resultobj = 0;
30338 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30339 wxWindow *arg2 = (wxWindow *) 0 ;
30340 wxDC *arg3 = 0 ;
30341 wxRect *arg4 = 0 ;
30342 int arg5 = (int) 0 ;
30343 void *argp1 = 0 ;
30344 int res1 = 0 ;
30345 void *argp2 = 0 ;
30346 int res2 = 0 ;
30347 void *argp3 = 0 ;
30348 int res3 = 0 ;
30349 wxRect temp4 ;
30350 int val5 ;
30351 int ecode5 = 0 ;
30352 PyObject * obj0 = 0 ;
30353 PyObject * obj1 = 0 ;
30354 PyObject * obj2 = 0 ;
30355 PyObject * obj3 = 0 ;
30356 PyObject * obj4 = 0 ;
30357 char * kwnames[] = {
30358 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30359 };
30360
30361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30363 if (!SWIG_IsOK(res1)) {
30364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30365 }
30366 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30367 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30368 if (!SWIG_IsOK(res2)) {
30369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30370 }
30371 arg2 = reinterpret_cast< wxWindow * >(argp2);
30372 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30373 if (!SWIG_IsOK(res3)) {
30374 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30375 }
30376 if (!argp3) {
30377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30378 }
30379 arg3 = reinterpret_cast< wxDC * >(argp3);
30380 {
30381 arg4 = &temp4;
30382 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30383 }
30384 if (obj4) {
30385 ecode5 = SWIG_AsVal_int(obj4, &val5);
30386 if (!SWIG_IsOK(ecode5)) {
30387 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30388 }
30389 arg5 = static_cast< int >(val5);
30390 }
30391 {
30392 PyThreadState* __tstate = wxPyBeginAllowThreads();
30393 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30394 wxPyEndAllowThreads(__tstate);
30395 if (PyErr_Occurred()) SWIG_fail;
30396 }
30397 resultobj = SWIG_Py_Void();
30398 return resultobj;
30399 fail:
30400 return NULL;
30401 }
30402
30403
30404 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30405 PyObject *resultobj = 0;
30406 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30407 wxWindow *arg2 = (wxWindow *) 0 ;
30408 wxDC *arg3 = 0 ;
30409 wxRect *arg4 = 0 ;
30410 int arg5 = (int) 0 ;
30411 void *argp1 = 0 ;
30412 int res1 = 0 ;
30413 void *argp2 = 0 ;
30414 int res2 = 0 ;
30415 void *argp3 = 0 ;
30416 int res3 = 0 ;
30417 wxRect temp4 ;
30418 int val5 ;
30419 int ecode5 = 0 ;
30420 PyObject * obj0 = 0 ;
30421 PyObject * obj1 = 0 ;
30422 PyObject * obj2 = 0 ;
30423 PyObject * obj3 = 0 ;
30424 PyObject * obj4 = 0 ;
30425 char * kwnames[] = {
30426 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30427 };
30428
30429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30431 if (!SWIG_IsOK(res1)) {
30432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30433 }
30434 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30435 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30436 if (!SWIG_IsOK(res2)) {
30437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30438 }
30439 arg2 = reinterpret_cast< wxWindow * >(argp2);
30440 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30441 if (!SWIG_IsOK(res3)) {
30442 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30443 }
30444 if (!argp3) {
30445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30446 }
30447 arg3 = reinterpret_cast< wxDC * >(argp3);
30448 {
30449 arg4 = &temp4;
30450 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30451 }
30452 if (obj4) {
30453 ecode5 = SWIG_AsVal_int(obj4, &val5);
30454 if (!SWIG_IsOK(ecode5)) {
30455 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30456 }
30457 arg5 = static_cast< int >(val5);
30458 }
30459 {
30460 PyThreadState* __tstate = wxPyBeginAllowThreads();
30461 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30462 wxPyEndAllowThreads(__tstate);
30463 if (PyErr_Occurred()) SWIG_fail;
30464 }
30465 resultobj = SWIG_Py_Void();
30466 return resultobj;
30467 fail:
30468 return NULL;
30469 }
30470
30471
30472 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30473 PyObject *resultobj = 0;
30474 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30475 wxWindow *arg2 = (wxWindow *) 0 ;
30476 wxDC *arg3 = 0 ;
30477 wxSize *arg4 = 0 ;
30478 int arg5 ;
30479 wxOrientation arg6 ;
30480 int arg7 = (int) 0 ;
30481 void *argp1 = 0 ;
30482 int res1 = 0 ;
30483 void *argp2 = 0 ;
30484 int res2 = 0 ;
30485 void *argp3 = 0 ;
30486 int res3 = 0 ;
30487 wxSize temp4 ;
30488 int val5 ;
30489 int ecode5 = 0 ;
30490 int val6 ;
30491 int ecode6 = 0 ;
30492 int val7 ;
30493 int ecode7 = 0 ;
30494 PyObject * obj0 = 0 ;
30495 PyObject * obj1 = 0 ;
30496 PyObject * obj2 = 0 ;
30497 PyObject * obj3 = 0 ;
30498 PyObject * obj4 = 0 ;
30499 PyObject * obj5 = 0 ;
30500 PyObject * obj6 = 0 ;
30501 char * kwnames[] = {
30502 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30503 };
30504
30505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30507 if (!SWIG_IsOK(res1)) {
30508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30509 }
30510 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30511 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30512 if (!SWIG_IsOK(res2)) {
30513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30514 }
30515 arg2 = reinterpret_cast< wxWindow * >(argp2);
30516 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30517 if (!SWIG_IsOK(res3)) {
30518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30519 }
30520 if (!argp3) {
30521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30522 }
30523 arg3 = reinterpret_cast< wxDC * >(argp3);
30524 {
30525 arg4 = &temp4;
30526 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30527 }
30528 ecode5 = SWIG_AsVal_int(obj4, &val5);
30529 if (!SWIG_IsOK(ecode5)) {
30530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30531 }
30532 arg5 = static_cast< int >(val5);
30533 ecode6 = SWIG_AsVal_int(obj5, &val6);
30534 if (!SWIG_IsOK(ecode6)) {
30535 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30536 }
30537 arg6 = static_cast< wxOrientation >(val6);
30538 if (obj6) {
30539 ecode7 = SWIG_AsVal_int(obj6, &val7);
30540 if (!SWIG_IsOK(ecode7)) {
30541 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30542 }
30543 arg7 = static_cast< int >(val7);
30544 }
30545 {
30546 PyThreadState* __tstate = wxPyBeginAllowThreads();
30547 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30548 wxPyEndAllowThreads(__tstate);
30549 if (PyErr_Occurred()) SWIG_fail;
30550 }
30551 resultobj = SWIG_Py_Void();
30552 return resultobj;
30553 fail:
30554 return NULL;
30555 }
30556
30557
30558 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30559 PyObject *resultobj = 0;
30560 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30561 wxWindow *arg2 = (wxWindow *) 0 ;
30562 wxDC *arg3 = 0 ;
30563 wxRect *arg4 = 0 ;
30564 int arg5 = (int) 0 ;
30565 void *argp1 = 0 ;
30566 int res1 = 0 ;
30567 void *argp2 = 0 ;
30568 int res2 = 0 ;
30569 void *argp3 = 0 ;
30570 int res3 = 0 ;
30571 wxRect temp4 ;
30572 int val5 ;
30573 int ecode5 = 0 ;
30574 PyObject * obj0 = 0 ;
30575 PyObject * obj1 = 0 ;
30576 PyObject * obj2 = 0 ;
30577 PyObject * obj3 = 0 ;
30578 PyObject * obj4 = 0 ;
30579 char * kwnames[] = {
30580 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30581 };
30582
30583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30585 if (!SWIG_IsOK(res1)) {
30586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30587 }
30588 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30590 if (!SWIG_IsOK(res2)) {
30591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30592 }
30593 arg2 = reinterpret_cast< wxWindow * >(argp2);
30594 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30595 if (!SWIG_IsOK(res3)) {
30596 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30597 }
30598 if (!argp3) {
30599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30600 }
30601 arg3 = reinterpret_cast< wxDC * >(argp3);
30602 {
30603 arg4 = &temp4;
30604 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30605 }
30606 if (obj4) {
30607 ecode5 = SWIG_AsVal_int(obj4, &val5);
30608 if (!SWIG_IsOK(ecode5)) {
30609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30610 }
30611 arg5 = static_cast< int >(val5);
30612 }
30613 {
30614 PyThreadState* __tstate = wxPyBeginAllowThreads();
30615 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30616 wxPyEndAllowThreads(__tstate);
30617 if (PyErr_Occurred()) SWIG_fail;
30618 }
30619 resultobj = SWIG_Py_Void();
30620 return resultobj;
30621 fail:
30622 return NULL;
30623 }
30624
30625
30626 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30627 PyObject *resultobj = 0;
30628 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30629 wxWindow *arg2 = (wxWindow *) 0 ;
30630 wxDC *arg3 = 0 ;
30631 wxRect *arg4 = 0 ;
30632 int arg5 = (int) 0 ;
30633 void *argp1 = 0 ;
30634 int res1 = 0 ;
30635 void *argp2 = 0 ;
30636 int res2 = 0 ;
30637 void *argp3 = 0 ;
30638 int res3 = 0 ;
30639 wxRect temp4 ;
30640 int val5 ;
30641 int ecode5 = 0 ;
30642 PyObject * obj0 = 0 ;
30643 PyObject * obj1 = 0 ;
30644 PyObject * obj2 = 0 ;
30645 PyObject * obj3 = 0 ;
30646 PyObject * obj4 = 0 ;
30647 char * kwnames[] = {
30648 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30649 };
30650
30651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30653 if (!SWIG_IsOK(res1)) {
30654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30655 }
30656 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30658 if (!SWIG_IsOK(res2)) {
30659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30660 }
30661 arg2 = reinterpret_cast< wxWindow * >(argp2);
30662 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30663 if (!SWIG_IsOK(res3)) {
30664 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30665 }
30666 if (!argp3) {
30667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30668 }
30669 arg3 = reinterpret_cast< wxDC * >(argp3);
30670 {
30671 arg4 = &temp4;
30672 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30673 }
30674 if (obj4) {
30675 ecode5 = SWIG_AsVal_int(obj4, &val5);
30676 if (!SWIG_IsOK(ecode5)) {
30677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30678 }
30679 arg5 = static_cast< int >(val5);
30680 }
30681 {
30682 PyThreadState* __tstate = wxPyBeginAllowThreads();
30683 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30684 wxPyEndAllowThreads(__tstate);
30685 if (PyErr_Occurred()) SWIG_fail;
30686 }
30687 resultobj = SWIG_Py_Void();
30688 return resultobj;
30689 fail:
30690 return NULL;
30691 }
30692
30693
30694 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30695 PyObject *resultobj = 0;
30696 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30697 wxWindow *arg2 = (wxWindow *) 0 ;
30698 wxDC *arg3 = 0 ;
30699 wxRect *arg4 = 0 ;
30700 int arg5 = (int) 0 ;
30701 void *argp1 = 0 ;
30702 int res1 = 0 ;
30703 void *argp2 = 0 ;
30704 int res2 = 0 ;
30705 void *argp3 = 0 ;
30706 int res3 = 0 ;
30707 wxRect temp4 ;
30708 int val5 ;
30709 int ecode5 = 0 ;
30710 PyObject * obj0 = 0 ;
30711 PyObject * obj1 = 0 ;
30712 PyObject * obj2 = 0 ;
30713 PyObject * obj3 = 0 ;
30714 PyObject * obj4 = 0 ;
30715 char * kwnames[] = {
30716 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30717 };
30718
30719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30721 if (!SWIG_IsOK(res1)) {
30722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30723 }
30724 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30725 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30726 if (!SWIG_IsOK(res2)) {
30727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30728 }
30729 arg2 = reinterpret_cast< wxWindow * >(argp2);
30730 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30731 if (!SWIG_IsOK(res3)) {
30732 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30733 }
30734 if (!argp3) {
30735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30736 }
30737 arg3 = reinterpret_cast< wxDC * >(argp3);
30738 {
30739 arg4 = &temp4;
30740 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30741 }
30742 if (obj4) {
30743 ecode5 = SWIG_AsVal_int(obj4, &val5);
30744 if (!SWIG_IsOK(ecode5)) {
30745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30746 }
30747 arg5 = static_cast< int >(val5);
30748 }
30749 {
30750 PyThreadState* __tstate = wxPyBeginAllowThreads();
30751 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30752 wxPyEndAllowThreads(__tstate);
30753 if (PyErr_Occurred()) SWIG_fail;
30754 }
30755 resultobj = SWIG_Py_Void();
30756 return resultobj;
30757 fail:
30758 return NULL;
30759 }
30760
30761
30762 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30763 PyObject *resultobj = 0;
30764 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30765 wxWindow *arg2 = (wxWindow *) 0 ;
30766 wxDC *arg3 = 0 ;
30767 wxRect *arg4 = 0 ;
30768 int arg5 = (int) 0 ;
30769 void *argp1 = 0 ;
30770 int res1 = 0 ;
30771 void *argp2 = 0 ;
30772 int res2 = 0 ;
30773 void *argp3 = 0 ;
30774 int res3 = 0 ;
30775 wxRect temp4 ;
30776 int val5 ;
30777 int ecode5 = 0 ;
30778 PyObject * obj0 = 0 ;
30779 PyObject * obj1 = 0 ;
30780 PyObject * obj2 = 0 ;
30781 PyObject * obj3 = 0 ;
30782 PyObject * obj4 = 0 ;
30783 char * kwnames[] = {
30784 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30785 };
30786
30787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30789 if (!SWIG_IsOK(res1)) {
30790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30791 }
30792 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30793 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30794 if (!SWIG_IsOK(res2)) {
30795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30796 }
30797 arg2 = reinterpret_cast< wxWindow * >(argp2);
30798 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30799 if (!SWIG_IsOK(res3)) {
30800 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30801 }
30802 if (!argp3) {
30803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30804 }
30805 arg3 = reinterpret_cast< wxDC * >(argp3);
30806 {
30807 arg4 = &temp4;
30808 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30809 }
30810 if (obj4) {
30811 ecode5 = SWIG_AsVal_int(obj4, &val5);
30812 if (!SWIG_IsOK(ecode5)) {
30813 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30814 }
30815 arg5 = static_cast< int >(val5);
30816 }
30817 {
30818 PyThreadState* __tstate = wxPyBeginAllowThreads();
30819 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30820 wxPyEndAllowThreads(__tstate);
30821 if (PyErr_Occurred()) SWIG_fail;
30822 }
30823 resultobj = SWIG_Py_Void();
30824 return resultobj;
30825 fail:
30826 return NULL;
30827 }
30828
30829
30830 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30831 PyObject *resultobj = 0;
30832 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30833 wxWindow *arg2 = (wxWindow *) 0 ;
30834 wxDC *arg3 = 0 ;
30835 wxRect *arg4 = 0 ;
30836 int arg5 = (int) 0 ;
30837 void *argp1 = 0 ;
30838 int res1 = 0 ;
30839 void *argp2 = 0 ;
30840 int res2 = 0 ;
30841 void *argp3 = 0 ;
30842 int res3 = 0 ;
30843 wxRect temp4 ;
30844 int val5 ;
30845 int ecode5 = 0 ;
30846 PyObject * obj0 = 0 ;
30847 PyObject * obj1 = 0 ;
30848 PyObject * obj2 = 0 ;
30849 PyObject * obj3 = 0 ;
30850 PyObject * obj4 = 0 ;
30851 char * kwnames[] = {
30852 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30853 };
30854
30855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30859 }
30860 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30861 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30862 if (!SWIG_IsOK(res2)) {
30863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
30864 }
30865 arg2 = reinterpret_cast< wxWindow * >(argp2);
30866 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30867 if (!SWIG_IsOK(res3)) {
30868 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30869 }
30870 if (!argp3) {
30871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30872 }
30873 arg3 = reinterpret_cast< wxDC * >(argp3);
30874 {
30875 arg4 = &temp4;
30876 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30877 }
30878 if (obj4) {
30879 ecode5 = SWIG_AsVal_int(obj4, &val5);
30880 if (!SWIG_IsOK(ecode5)) {
30881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
30882 }
30883 arg5 = static_cast< int >(val5);
30884 }
30885 {
30886 PyThreadState* __tstate = wxPyBeginAllowThreads();
30887 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
30888 wxPyEndAllowThreads(__tstate);
30889 if (PyErr_Occurred()) SWIG_fail;
30890 }
30891 resultobj = SWIG_Py_Void();
30892 return resultobj;
30893 fail:
30894 return NULL;
30895 }
30896
30897
30898 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30899 PyObject *resultobj = 0;
30900 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30901 wxWindow *arg2 = (wxWindow *) 0 ;
30902 SwigValueWrapper<wxSplitterRenderParams > result;
30903 void *argp1 = 0 ;
30904 int res1 = 0 ;
30905 void *argp2 = 0 ;
30906 int res2 = 0 ;
30907 PyObject * obj0 = 0 ;
30908 PyObject * obj1 = 0 ;
30909 char * kwnames[] = {
30910 (char *) "self",(char *) "win", NULL
30911 };
30912
30913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30915 if (!SWIG_IsOK(res1)) {
30916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30917 }
30918 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30919 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30920 if (!SWIG_IsOK(res2)) {
30921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30922 }
30923 arg2 = reinterpret_cast< wxWindow * >(argp2);
30924 {
30925 PyThreadState* __tstate = wxPyBeginAllowThreads();
30926 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30927 wxPyEndAllowThreads(__tstate);
30928 if (PyErr_Occurred()) SWIG_fail;
30929 }
30930 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30931 return resultobj;
30932 fail:
30933 return NULL;
30934 }
30935
30936
30937 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30938 PyObject *resultobj = 0;
30939 wxRendererNative *result = 0 ;
30940
30941 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30942 {
30943 if (!wxPyCheckForApp()) SWIG_fail;
30944 PyThreadState* __tstate = wxPyBeginAllowThreads();
30945 {
30946 wxRendererNative &_result_ref = wxRendererNative::Get();
30947 result = (wxRendererNative *) &_result_ref;
30948 }
30949 wxPyEndAllowThreads(__tstate);
30950 if (PyErr_Occurred()) SWIG_fail;
30951 }
30952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30953 return resultobj;
30954 fail:
30955 return NULL;
30956 }
30957
30958
30959 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30960 PyObject *resultobj = 0;
30961 wxRendererNative *result = 0 ;
30962
30963 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30964 {
30965 if (!wxPyCheckForApp()) SWIG_fail;
30966 PyThreadState* __tstate = wxPyBeginAllowThreads();
30967 {
30968 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30969 result = (wxRendererNative *) &_result_ref;
30970 }
30971 wxPyEndAllowThreads(__tstate);
30972 if (PyErr_Occurred()) SWIG_fail;
30973 }
30974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30975 return resultobj;
30976 fail:
30977 return NULL;
30978 }
30979
30980
30981 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30982 PyObject *resultobj = 0;
30983 wxRendererNative *result = 0 ;
30984
30985 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30986 {
30987 if (!wxPyCheckForApp()) SWIG_fail;
30988 PyThreadState* __tstate = wxPyBeginAllowThreads();
30989 {
30990 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30991 result = (wxRendererNative *) &_result_ref;
30992 }
30993 wxPyEndAllowThreads(__tstate);
30994 if (PyErr_Occurred()) SWIG_fail;
30995 }
30996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30997 return resultobj;
30998 fail:
30999 return NULL;
31000 }
31001
31002
31003 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31004 PyObject *resultobj = 0;
31005 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31006 wxRendererNative *result = 0 ;
31007 void *argp1 = 0 ;
31008 int res1 = 0 ;
31009 PyObject * obj0 = 0 ;
31010 char * kwnames[] = {
31011 (char *) "renderer", NULL
31012 };
31013
31014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31016 if (!SWIG_IsOK(res1)) {
31017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31018 }
31019 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31020 {
31021 if (!wxPyCheckForApp()) SWIG_fail;
31022 PyThreadState* __tstate = wxPyBeginAllowThreads();
31023 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31024 wxPyEndAllowThreads(__tstate);
31025 if (PyErr_Occurred()) SWIG_fail;
31026 }
31027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31028 return resultobj;
31029 fail:
31030 return NULL;
31031 }
31032
31033
31034 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31035 PyObject *resultobj = 0;
31036 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31037 SwigValueWrapper<wxRendererVersion > result;
31038 void *argp1 = 0 ;
31039 int res1 = 0 ;
31040 PyObject *swig_obj[1] ;
31041
31042 if (!args) SWIG_fail;
31043 swig_obj[0] = args;
31044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31045 if (!SWIG_IsOK(res1)) {
31046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31047 }
31048 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31049 {
31050 PyThreadState* __tstate = wxPyBeginAllowThreads();
31051 result = ((wxRendererNative const *)arg1)->GetVersion();
31052 wxPyEndAllowThreads(__tstate);
31053 if (PyErr_Occurred()) SWIG_fail;
31054 }
31055 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31056 return resultobj;
31057 fail:
31058 return NULL;
31059 }
31060
31061
31062 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31063 PyObject *obj;
31064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31065 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31066 return SWIG_Py_Void();
31067 }
31068
31069 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31070 PyObject *resultobj = 0;
31071 wxPseudoDC *result = 0 ;
31072
31073 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31074 {
31075 PyThreadState* __tstate = wxPyBeginAllowThreads();
31076 result = (wxPseudoDC *)new wxPseudoDC();
31077 wxPyEndAllowThreads(__tstate);
31078 if (PyErr_Occurred()) SWIG_fail;
31079 }
31080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31081 return resultobj;
31082 fail:
31083 return NULL;
31084 }
31085
31086
31087 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31088 PyObject *resultobj = 0;
31089 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31090 void *argp1 = 0 ;
31091 int res1 = 0 ;
31092 PyObject *swig_obj[1] ;
31093
31094 if (!args) SWIG_fail;
31095 swig_obj[0] = args;
31096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31097 if (!SWIG_IsOK(res1)) {
31098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31099 }
31100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31101 {
31102 PyThreadState* __tstate = wxPyBeginAllowThreads();
31103 (arg1)->BeginDrawing();
31104 wxPyEndAllowThreads(__tstate);
31105 if (PyErr_Occurred()) SWIG_fail;
31106 }
31107 resultobj = SWIG_Py_Void();
31108 return resultobj;
31109 fail:
31110 return NULL;
31111 }
31112
31113
31114 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31115 PyObject *resultobj = 0;
31116 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31117 void *argp1 = 0 ;
31118 int res1 = 0 ;
31119 PyObject *swig_obj[1] ;
31120
31121 if (!args) SWIG_fail;
31122 swig_obj[0] = args;
31123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31124 if (!SWIG_IsOK(res1)) {
31125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31126 }
31127 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31128 {
31129 PyThreadState* __tstate = wxPyBeginAllowThreads();
31130 (arg1)->EndDrawing();
31131 wxPyEndAllowThreads(__tstate);
31132 if (PyErr_Occurred()) SWIG_fail;
31133 }
31134 resultobj = SWIG_Py_Void();
31135 return resultobj;
31136 fail:
31137 return NULL;
31138 }
31139
31140
31141 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31142 PyObject *resultobj = 0;
31143 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31144 void *argp1 = 0 ;
31145 int res1 = 0 ;
31146 PyObject *swig_obj[1] ;
31147
31148 if (!args) SWIG_fail;
31149 swig_obj[0] = args;
31150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31151 if (!SWIG_IsOK(res1)) {
31152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31153 }
31154 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31155 {
31156 PyThreadState* __tstate = wxPyBeginAllowThreads();
31157 delete arg1;
31158
31159 wxPyEndAllowThreads(__tstate);
31160 if (PyErr_Occurred()) SWIG_fail;
31161 }
31162 resultobj = SWIG_Py_Void();
31163 return resultobj;
31164 fail:
31165 return NULL;
31166 }
31167
31168
31169 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31170 PyObject *resultobj = 0;
31171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31172 void *argp1 = 0 ;
31173 int res1 = 0 ;
31174 PyObject *swig_obj[1] ;
31175
31176 if (!args) SWIG_fail;
31177 swig_obj[0] = args;
31178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31179 if (!SWIG_IsOK(res1)) {
31180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31181 }
31182 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31183 {
31184 PyThreadState* __tstate = wxPyBeginAllowThreads();
31185 (arg1)->RemoveAll();
31186 wxPyEndAllowThreads(__tstate);
31187 if (PyErr_Occurred()) SWIG_fail;
31188 }
31189 resultobj = SWIG_Py_Void();
31190 return resultobj;
31191 fail:
31192 return NULL;
31193 }
31194
31195
31196 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31197 PyObject *resultobj = 0;
31198 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31199 int result;
31200 void *argp1 = 0 ;
31201 int res1 = 0 ;
31202 PyObject *swig_obj[1] ;
31203
31204 if (!args) SWIG_fail;
31205 swig_obj[0] = args;
31206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31207 if (!SWIG_IsOK(res1)) {
31208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31209 }
31210 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31211 {
31212 PyThreadState* __tstate = wxPyBeginAllowThreads();
31213 result = (int)(arg1)->GetLen();
31214 wxPyEndAllowThreads(__tstate);
31215 if (PyErr_Occurred()) SWIG_fail;
31216 }
31217 resultobj = SWIG_From_int(static_cast< int >(result));
31218 return resultobj;
31219 fail:
31220 return NULL;
31221 }
31222
31223
31224 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31225 PyObject *resultobj = 0;
31226 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31227 int arg2 ;
31228 void *argp1 = 0 ;
31229 int res1 = 0 ;
31230 int val2 ;
31231 int ecode2 = 0 ;
31232 PyObject * obj0 = 0 ;
31233 PyObject * obj1 = 0 ;
31234 char * kwnames[] = {
31235 (char *) "self",(char *) "id", NULL
31236 };
31237
31238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31240 if (!SWIG_IsOK(res1)) {
31241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31242 }
31243 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31244 ecode2 = SWIG_AsVal_int(obj1, &val2);
31245 if (!SWIG_IsOK(ecode2)) {
31246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31247 }
31248 arg2 = static_cast< int >(val2);
31249 {
31250 PyThreadState* __tstate = wxPyBeginAllowThreads();
31251 (arg1)->SetId(arg2);
31252 wxPyEndAllowThreads(__tstate);
31253 if (PyErr_Occurred()) SWIG_fail;
31254 }
31255 resultobj = SWIG_Py_Void();
31256 return resultobj;
31257 fail:
31258 return NULL;
31259 }
31260
31261
31262 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31263 PyObject *resultobj = 0;
31264 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31265 int arg2 ;
31266 void *argp1 = 0 ;
31267 int res1 = 0 ;
31268 int val2 ;
31269 int ecode2 = 0 ;
31270 PyObject * obj0 = 0 ;
31271 PyObject * obj1 = 0 ;
31272 char * kwnames[] = {
31273 (char *) "self",(char *) "id", NULL
31274 };
31275
31276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31278 if (!SWIG_IsOK(res1)) {
31279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31280 }
31281 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31282 ecode2 = SWIG_AsVal_int(obj1, &val2);
31283 if (!SWIG_IsOK(ecode2)) {
31284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31285 }
31286 arg2 = static_cast< int >(val2);
31287 {
31288 PyThreadState* __tstate = wxPyBeginAllowThreads();
31289 (arg1)->ClearId(arg2);
31290 wxPyEndAllowThreads(__tstate);
31291 if (PyErr_Occurred()) SWIG_fail;
31292 }
31293 resultobj = SWIG_Py_Void();
31294 return resultobj;
31295 fail:
31296 return NULL;
31297 }
31298
31299
31300 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31301 PyObject *resultobj = 0;
31302 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31303 int arg2 ;
31304 void *argp1 = 0 ;
31305 int res1 = 0 ;
31306 int val2 ;
31307 int ecode2 = 0 ;
31308 PyObject * obj0 = 0 ;
31309 PyObject * obj1 = 0 ;
31310 char * kwnames[] = {
31311 (char *) "self",(char *) "id", NULL
31312 };
31313
31314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31316 if (!SWIG_IsOK(res1)) {
31317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31318 }
31319 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31320 ecode2 = SWIG_AsVal_int(obj1, &val2);
31321 if (!SWIG_IsOK(ecode2)) {
31322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31323 }
31324 arg2 = static_cast< int >(val2);
31325 {
31326 PyThreadState* __tstate = wxPyBeginAllowThreads();
31327 (arg1)->RemoveId(arg2);
31328 wxPyEndAllowThreads(__tstate);
31329 if (PyErr_Occurred()) SWIG_fail;
31330 }
31331 resultobj = SWIG_Py_Void();
31332 return resultobj;
31333 fail:
31334 return NULL;
31335 }
31336
31337
31338 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31339 PyObject *resultobj = 0;
31340 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31341 int arg2 ;
31342 int arg3 ;
31343 int arg4 ;
31344 void *argp1 = 0 ;
31345 int res1 = 0 ;
31346 int val2 ;
31347 int ecode2 = 0 ;
31348 int val3 ;
31349 int ecode3 = 0 ;
31350 int val4 ;
31351 int ecode4 = 0 ;
31352 PyObject * obj0 = 0 ;
31353 PyObject * obj1 = 0 ;
31354 PyObject * obj2 = 0 ;
31355 PyObject * obj3 = 0 ;
31356 char * kwnames[] = {
31357 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31358 };
31359
31360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31362 if (!SWIG_IsOK(res1)) {
31363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31364 }
31365 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31366 ecode2 = SWIG_AsVal_int(obj1, &val2);
31367 if (!SWIG_IsOK(ecode2)) {
31368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31369 }
31370 arg2 = static_cast< int >(val2);
31371 ecode3 = SWIG_AsVal_int(obj2, &val3);
31372 if (!SWIG_IsOK(ecode3)) {
31373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31374 }
31375 arg3 = static_cast< int >(val3);
31376 ecode4 = SWIG_AsVal_int(obj3, &val4);
31377 if (!SWIG_IsOK(ecode4)) {
31378 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31379 }
31380 arg4 = static_cast< int >(val4);
31381 {
31382 PyThreadState* __tstate = wxPyBeginAllowThreads();
31383 (arg1)->TranslateId(arg2,arg3,arg4);
31384 wxPyEndAllowThreads(__tstate);
31385 if (PyErr_Occurred()) SWIG_fail;
31386 }
31387 resultobj = SWIG_Py_Void();
31388 return resultobj;
31389 fail:
31390 return NULL;
31391 }
31392
31393
31394 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31395 PyObject *resultobj = 0;
31396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31397 int arg2 ;
31398 bool arg3 = (bool) true ;
31399 void *argp1 = 0 ;
31400 int res1 = 0 ;
31401 int val2 ;
31402 int ecode2 = 0 ;
31403 bool val3 ;
31404 int ecode3 = 0 ;
31405 PyObject * obj0 = 0 ;
31406 PyObject * obj1 = 0 ;
31407 PyObject * obj2 = 0 ;
31408 char * kwnames[] = {
31409 (char *) "self",(char *) "id",(char *) "greyout", NULL
31410 };
31411
31412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31414 if (!SWIG_IsOK(res1)) {
31415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31416 }
31417 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31418 ecode2 = SWIG_AsVal_int(obj1, &val2);
31419 if (!SWIG_IsOK(ecode2)) {
31420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31421 }
31422 arg2 = static_cast< int >(val2);
31423 if (obj2) {
31424 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31425 if (!SWIG_IsOK(ecode3)) {
31426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31427 }
31428 arg3 = static_cast< bool >(val3);
31429 }
31430 {
31431 PyThreadState* __tstate = wxPyBeginAllowThreads();
31432 (arg1)->SetIdGreyedOut(arg2,arg3);
31433 wxPyEndAllowThreads(__tstate);
31434 if (PyErr_Occurred()) SWIG_fail;
31435 }
31436 resultobj = SWIG_Py_Void();
31437 return resultobj;
31438 fail:
31439 return NULL;
31440 }
31441
31442
31443 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31444 PyObject *resultobj = 0;
31445 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31446 int arg2 ;
31447 bool result;
31448 void *argp1 = 0 ;
31449 int res1 = 0 ;
31450 int val2 ;
31451 int ecode2 = 0 ;
31452 PyObject * obj0 = 0 ;
31453 PyObject * obj1 = 0 ;
31454 char * kwnames[] = {
31455 (char *) "self",(char *) "id", NULL
31456 };
31457
31458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31460 if (!SWIG_IsOK(res1)) {
31461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31462 }
31463 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31464 ecode2 = SWIG_AsVal_int(obj1, &val2);
31465 if (!SWIG_IsOK(ecode2)) {
31466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31467 }
31468 arg2 = static_cast< int >(val2);
31469 {
31470 PyThreadState* __tstate = wxPyBeginAllowThreads();
31471 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31472 wxPyEndAllowThreads(__tstate);
31473 if (PyErr_Occurred()) SWIG_fail;
31474 }
31475 {
31476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31477 }
31478 return resultobj;
31479 fail:
31480 return NULL;
31481 }
31482
31483
31484 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31485 PyObject *resultobj = 0;
31486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31487 int arg2 ;
31488 int arg3 ;
31489 int arg4 = (int) 1 ;
31490 wxColor const &arg5_defvalue = *wxWHITE ;
31491 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31492 PyObject *result = 0 ;
31493 void *argp1 = 0 ;
31494 int res1 = 0 ;
31495 int val2 ;
31496 int ecode2 = 0 ;
31497 int val3 ;
31498 int ecode3 = 0 ;
31499 int val4 ;
31500 int ecode4 = 0 ;
31501 void *argp5 = 0 ;
31502 int res5 = 0 ;
31503 PyObject * obj0 = 0 ;
31504 PyObject * obj1 = 0 ;
31505 PyObject * obj2 = 0 ;
31506 PyObject * obj3 = 0 ;
31507 PyObject * obj4 = 0 ;
31508 char * kwnames[] = {
31509 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31510 };
31511
31512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31514 if (!SWIG_IsOK(res1)) {
31515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31516 }
31517 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31518 ecode2 = SWIG_AsVal_int(obj1, &val2);
31519 if (!SWIG_IsOK(ecode2)) {
31520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31521 }
31522 arg2 = static_cast< int >(val2);
31523 ecode3 = SWIG_AsVal_int(obj2, &val3);
31524 if (!SWIG_IsOK(ecode3)) {
31525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31526 }
31527 arg3 = static_cast< int >(val3);
31528 if (obj3) {
31529 ecode4 = SWIG_AsVal_int(obj3, &val4);
31530 if (!SWIG_IsOK(ecode4)) {
31531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31532 }
31533 arg4 = static_cast< int >(val4);
31534 }
31535 if (obj4) {
31536 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31537 if (!SWIG_IsOK(res5)) {
31538 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31539 }
31540 if (!argp5) {
31541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31542 }
31543 arg5 = reinterpret_cast< wxColor * >(argp5);
31544 }
31545 {
31546 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31547 if (PyErr_Occurred()) SWIG_fail;
31548 }
31549 resultobj = result;
31550 return resultobj;
31551 fail:
31552 return NULL;
31553 }
31554
31555
31556 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31557 PyObject *resultobj = 0;
31558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31559 int arg2 ;
31560 int arg3 ;
31561 PyObject *result = 0 ;
31562 void *argp1 = 0 ;
31563 int res1 = 0 ;
31564 int val2 ;
31565 int ecode2 = 0 ;
31566 int val3 ;
31567 int ecode3 = 0 ;
31568 PyObject * obj0 = 0 ;
31569 PyObject * obj1 = 0 ;
31570 PyObject * obj2 = 0 ;
31571 char * kwnames[] = {
31572 (char *) "self",(char *) "x",(char *) "y", NULL
31573 };
31574
31575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31577 if (!SWIG_IsOK(res1)) {
31578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31579 }
31580 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31581 ecode2 = SWIG_AsVal_int(obj1, &val2);
31582 if (!SWIG_IsOK(ecode2)) {
31583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31584 }
31585 arg2 = static_cast< int >(val2);
31586 ecode3 = SWIG_AsVal_int(obj2, &val3);
31587 if (!SWIG_IsOK(ecode3)) {
31588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31589 }
31590 arg3 = static_cast< int >(val3);
31591 {
31592 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31593 if (PyErr_Occurred()) SWIG_fail;
31594 }
31595 resultobj = result;
31596 return resultobj;
31597 fail:
31598 return NULL;
31599 }
31600
31601
31602 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31603 PyObject *resultobj = 0;
31604 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31605 int arg2 ;
31606 wxDC *arg3 = (wxDC *) 0 ;
31607 void *argp1 = 0 ;
31608 int res1 = 0 ;
31609 int val2 ;
31610 int ecode2 = 0 ;
31611 void *argp3 = 0 ;
31612 int res3 = 0 ;
31613 PyObject * obj0 = 0 ;
31614 PyObject * obj1 = 0 ;
31615 PyObject * obj2 = 0 ;
31616 char * kwnames[] = {
31617 (char *) "self",(char *) "id",(char *) "dc", NULL
31618 };
31619
31620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31622 if (!SWIG_IsOK(res1)) {
31623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31624 }
31625 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31626 ecode2 = SWIG_AsVal_int(obj1, &val2);
31627 if (!SWIG_IsOK(ecode2)) {
31628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31629 }
31630 arg2 = static_cast< int >(val2);
31631 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31632 if (!SWIG_IsOK(res3)) {
31633 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31634 }
31635 arg3 = reinterpret_cast< wxDC * >(argp3);
31636 {
31637 PyThreadState* __tstate = wxPyBeginAllowThreads();
31638 (arg1)->DrawIdToDC(arg2,arg3);
31639 wxPyEndAllowThreads(__tstate);
31640 if (PyErr_Occurred()) SWIG_fail;
31641 }
31642 resultobj = SWIG_Py_Void();
31643 return resultobj;
31644 fail:
31645 return NULL;
31646 }
31647
31648
31649 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31650 PyObject *resultobj = 0;
31651 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31652 int arg2 ;
31653 wxRect *arg3 = 0 ;
31654 void *argp1 = 0 ;
31655 int res1 = 0 ;
31656 int val2 ;
31657 int ecode2 = 0 ;
31658 wxRect temp3 ;
31659 PyObject * obj0 = 0 ;
31660 PyObject * obj1 = 0 ;
31661 PyObject * obj2 = 0 ;
31662 char * kwnames[] = {
31663 (char *) "self",(char *) "id",(char *) "rect", NULL
31664 };
31665
31666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31668 if (!SWIG_IsOK(res1)) {
31669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31670 }
31671 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31672 ecode2 = SWIG_AsVal_int(obj1, &val2);
31673 if (!SWIG_IsOK(ecode2)) {
31674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31675 }
31676 arg2 = static_cast< int >(val2);
31677 {
31678 arg3 = &temp3;
31679 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31680 }
31681 {
31682 PyThreadState* __tstate = wxPyBeginAllowThreads();
31683 (arg1)->SetIdBounds(arg2,*arg3);
31684 wxPyEndAllowThreads(__tstate);
31685 if (PyErr_Occurred()) SWIG_fail;
31686 }
31687 resultobj = SWIG_Py_Void();
31688 return resultobj;
31689 fail:
31690 return NULL;
31691 }
31692
31693
31694 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31695 PyObject *resultobj = 0;
31696 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31697 int arg2 ;
31698 wxRect result;
31699 void *argp1 = 0 ;
31700 int res1 = 0 ;
31701 int val2 ;
31702 int ecode2 = 0 ;
31703 PyObject * obj0 = 0 ;
31704 PyObject * obj1 = 0 ;
31705 char * kwnames[] = {
31706 (char *) "self",(char *) "id", NULL
31707 };
31708
31709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31711 if (!SWIG_IsOK(res1)) {
31712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31713 }
31714 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31715 ecode2 = SWIG_AsVal_int(obj1, &val2);
31716 if (!SWIG_IsOK(ecode2)) {
31717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31718 }
31719 arg2 = static_cast< int >(val2);
31720 {
31721 PyThreadState* __tstate = wxPyBeginAllowThreads();
31722 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31723 wxPyEndAllowThreads(__tstate);
31724 if (PyErr_Occurred()) SWIG_fail;
31725 }
31726 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31727 return resultobj;
31728 fail:
31729 return NULL;
31730 }
31731
31732
31733 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31734 PyObject *resultobj = 0;
31735 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31736 wxDC *arg2 = (wxDC *) 0 ;
31737 wxRect *arg3 = 0 ;
31738 void *argp1 = 0 ;
31739 int res1 = 0 ;
31740 void *argp2 = 0 ;
31741 int res2 = 0 ;
31742 wxRect temp3 ;
31743 PyObject * obj0 = 0 ;
31744 PyObject * obj1 = 0 ;
31745 PyObject * obj2 = 0 ;
31746 char * kwnames[] = {
31747 (char *) "self",(char *) "dc",(char *) "rect", NULL
31748 };
31749
31750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31752 if (!SWIG_IsOK(res1)) {
31753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31754 }
31755 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31756 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31757 if (!SWIG_IsOK(res2)) {
31758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31759 }
31760 arg2 = reinterpret_cast< wxDC * >(argp2);
31761 {
31762 arg3 = &temp3;
31763 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31764 }
31765 {
31766 PyThreadState* __tstate = wxPyBeginAllowThreads();
31767 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31768 wxPyEndAllowThreads(__tstate);
31769 if (PyErr_Occurred()) SWIG_fail;
31770 }
31771 resultobj = SWIG_Py_Void();
31772 return resultobj;
31773 fail:
31774 return NULL;
31775 }
31776
31777
31778 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31779 PyObject *resultobj = 0;
31780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31781 wxDC *arg2 = (wxDC *) 0 ;
31782 wxRegion *arg3 = 0 ;
31783 void *argp1 = 0 ;
31784 int res1 = 0 ;
31785 void *argp2 = 0 ;
31786 int res2 = 0 ;
31787 void *argp3 = 0 ;
31788 int res3 = 0 ;
31789 PyObject * obj0 = 0 ;
31790 PyObject * obj1 = 0 ;
31791 PyObject * obj2 = 0 ;
31792 char * kwnames[] = {
31793 (char *) "self",(char *) "dc",(char *) "region", NULL
31794 };
31795
31796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31798 if (!SWIG_IsOK(res1)) {
31799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31800 }
31801 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31802 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31803 if (!SWIG_IsOK(res2)) {
31804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31805 }
31806 arg2 = reinterpret_cast< wxDC * >(argp2);
31807 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31808 if (!SWIG_IsOK(res3)) {
31809 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31810 }
31811 if (!argp3) {
31812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31813 }
31814 arg3 = reinterpret_cast< wxRegion * >(argp3);
31815 {
31816 PyThreadState* __tstate = wxPyBeginAllowThreads();
31817 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31818 wxPyEndAllowThreads(__tstate);
31819 if (PyErr_Occurred()) SWIG_fail;
31820 }
31821 resultobj = SWIG_Py_Void();
31822 return resultobj;
31823 fail:
31824 return NULL;
31825 }
31826
31827
31828 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31829 PyObject *resultobj = 0;
31830 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31831 wxDC *arg2 = (wxDC *) 0 ;
31832 void *argp1 = 0 ;
31833 int res1 = 0 ;
31834 void *argp2 = 0 ;
31835 int res2 = 0 ;
31836 PyObject * obj0 = 0 ;
31837 PyObject * obj1 = 0 ;
31838 char * kwnames[] = {
31839 (char *) "self",(char *) "dc", NULL
31840 };
31841
31842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31844 if (!SWIG_IsOK(res1)) {
31845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31846 }
31847 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31848 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31849 if (!SWIG_IsOK(res2)) {
31850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31851 }
31852 arg2 = reinterpret_cast< wxDC * >(argp2);
31853 {
31854 PyThreadState* __tstate = wxPyBeginAllowThreads();
31855 (arg1)->DrawToDC(arg2);
31856 wxPyEndAllowThreads(__tstate);
31857 if (PyErr_Occurred()) SWIG_fail;
31858 }
31859 resultobj = SWIG_Py_Void();
31860 return resultobj;
31861 fail:
31862 return NULL;
31863 }
31864
31865
31866 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31867 PyObject *resultobj = 0;
31868 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31869 int arg2 ;
31870 int arg3 ;
31871 wxColour *arg4 = 0 ;
31872 int arg5 = (int) wxFLOOD_SURFACE ;
31873 void *argp1 = 0 ;
31874 int res1 = 0 ;
31875 int val2 ;
31876 int ecode2 = 0 ;
31877 int val3 ;
31878 int ecode3 = 0 ;
31879 wxColour temp4 ;
31880 int val5 ;
31881 int ecode5 = 0 ;
31882 PyObject * obj0 = 0 ;
31883 PyObject * obj1 = 0 ;
31884 PyObject * obj2 = 0 ;
31885 PyObject * obj3 = 0 ;
31886 PyObject * obj4 = 0 ;
31887 char * kwnames[] = {
31888 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31889 };
31890
31891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31893 if (!SWIG_IsOK(res1)) {
31894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31895 }
31896 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31897 ecode2 = SWIG_AsVal_int(obj1, &val2);
31898 if (!SWIG_IsOK(ecode2)) {
31899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31900 }
31901 arg2 = static_cast< int >(val2);
31902 ecode3 = SWIG_AsVal_int(obj2, &val3);
31903 if (!SWIG_IsOK(ecode3)) {
31904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31905 }
31906 arg3 = static_cast< int >(val3);
31907 {
31908 arg4 = &temp4;
31909 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31910 }
31911 if (obj4) {
31912 ecode5 = SWIG_AsVal_int(obj4, &val5);
31913 if (!SWIG_IsOK(ecode5)) {
31914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31915 }
31916 arg5 = static_cast< int >(val5);
31917 }
31918 {
31919 PyThreadState* __tstate = wxPyBeginAllowThreads();
31920 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31921 wxPyEndAllowThreads(__tstate);
31922 if (PyErr_Occurred()) SWIG_fail;
31923 }
31924 resultobj = SWIG_Py_Void();
31925 return resultobj;
31926 fail:
31927 return NULL;
31928 }
31929
31930
31931 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31932 PyObject *resultobj = 0;
31933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31934 wxPoint *arg2 = 0 ;
31935 wxColour *arg3 = 0 ;
31936 int arg4 = (int) wxFLOOD_SURFACE ;
31937 void *argp1 = 0 ;
31938 int res1 = 0 ;
31939 wxPoint temp2 ;
31940 wxColour temp3 ;
31941 int val4 ;
31942 int ecode4 = 0 ;
31943 PyObject * obj0 = 0 ;
31944 PyObject * obj1 = 0 ;
31945 PyObject * obj2 = 0 ;
31946 PyObject * obj3 = 0 ;
31947 char * kwnames[] = {
31948 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31949 };
31950
31951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31953 if (!SWIG_IsOK(res1)) {
31954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31955 }
31956 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31957 {
31958 arg2 = &temp2;
31959 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31960 }
31961 {
31962 arg3 = &temp3;
31963 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31964 }
31965 if (obj3) {
31966 ecode4 = SWIG_AsVal_int(obj3, &val4);
31967 if (!SWIG_IsOK(ecode4)) {
31968 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31969 }
31970 arg4 = static_cast< int >(val4);
31971 }
31972 {
31973 PyThreadState* __tstate = wxPyBeginAllowThreads();
31974 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31975 wxPyEndAllowThreads(__tstate);
31976 if (PyErr_Occurred()) SWIG_fail;
31977 }
31978 resultobj = SWIG_Py_Void();
31979 return resultobj;
31980 fail:
31981 return NULL;
31982 }
31983
31984
31985 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31986 PyObject *resultobj = 0;
31987 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31988 int arg2 ;
31989 int arg3 ;
31990 int arg4 ;
31991 int arg5 ;
31992 void *argp1 = 0 ;
31993 int res1 = 0 ;
31994 int val2 ;
31995 int ecode2 = 0 ;
31996 int val3 ;
31997 int ecode3 = 0 ;
31998 int val4 ;
31999 int ecode4 = 0 ;
32000 int val5 ;
32001 int ecode5 = 0 ;
32002 PyObject * obj0 = 0 ;
32003 PyObject * obj1 = 0 ;
32004 PyObject * obj2 = 0 ;
32005 PyObject * obj3 = 0 ;
32006 PyObject * obj4 = 0 ;
32007 char * kwnames[] = {
32008 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32009 };
32010
32011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32013 if (!SWIG_IsOK(res1)) {
32014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32015 }
32016 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32017 ecode2 = SWIG_AsVal_int(obj1, &val2);
32018 if (!SWIG_IsOK(ecode2)) {
32019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32020 }
32021 arg2 = static_cast< int >(val2);
32022 ecode3 = SWIG_AsVal_int(obj2, &val3);
32023 if (!SWIG_IsOK(ecode3)) {
32024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32025 }
32026 arg3 = static_cast< int >(val3);
32027 ecode4 = SWIG_AsVal_int(obj3, &val4);
32028 if (!SWIG_IsOK(ecode4)) {
32029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32030 }
32031 arg4 = static_cast< int >(val4);
32032 ecode5 = SWIG_AsVal_int(obj4, &val5);
32033 if (!SWIG_IsOK(ecode5)) {
32034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32035 }
32036 arg5 = static_cast< int >(val5);
32037 {
32038 PyThreadState* __tstate = wxPyBeginAllowThreads();
32039 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32040 wxPyEndAllowThreads(__tstate);
32041 if (PyErr_Occurred()) SWIG_fail;
32042 }
32043 resultobj = SWIG_Py_Void();
32044 return resultobj;
32045 fail:
32046 return NULL;
32047 }
32048
32049
32050 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32051 PyObject *resultobj = 0;
32052 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32053 wxPoint *arg2 = 0 ;
32054 wxPoint *arg3 = 0 ;
32055 void *argp1 = 0 ;
32056 int res1 = 0 ;
32057 wxPoint temp2 ;
32058 wxPoint temp3 ;
32059 PyObject * obj0 = 0 ;
32060 PyObject * obj1 = 0 ;
32061 PyObject * obj2 = 0 ;
32062 char * kwnames[] = {
32063 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32064 };
32065
32066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32068 if (!SWIG_IsOK(res1)) {
32069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32070 }
32071 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32072 {
32073 arg2 = &temp2;
32074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32075 }
32076 {
32077 arg3 = &temp3;
32078 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32079 }
32080 {
32081 PyThreadState* __tstate = wxPyBeginAllowThreads();
32082 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32083 wxPyEndAllowThreads(__tstate);
32084 if (PyErr_Occurred()) SWIG_fail;
32085 }
32086 resultobj = SWIG_Py_Void();
32087 return resultobj;
32088 fail:
32089 return NULL;
32090 }
32091
32092
32093 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32094 PyObject *resultobj = 0;
32095 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32096 int arg2 ;
32097 int arg3 ;
32098 void *argp1 = 0 ;
32099 int res1 = 0 ;
32100 int val2 ;
32101 int ecode2 = 0 ;
32102 int val3 ;
32103 int ecode3 = 0 ;
32104 PyObject * obj0 = 0 ;
32105 PyObject * obj1 = 0 ;
32106 PyObject * obj2 = 0 ;
32107 char * kwnames[] = {
32108 (char *) "self",(char *) "x",(char *) "y", NULL
32109 };
32110
32111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32113 if (!SWIG_IsOK(res1)) {
32114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32115 }
32116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32117 ecode2 = SWIG_AsVal_int(obj1, &val2);
32118 if (!SWIG_IsOK(ecode2)) {
32119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32120 }
32121 arg2 = static_cast< int >(val2);
32122 ecode3 = SWIG_AsVal_int(obj2, &val3);
32123 if (!SWIG_IsOK(ecode3)) {
32124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32125 }
32126 arg3 = static_cast< int >(val3);
32127 {
32128 PyThreadState* __tstate = wxPyBeginAllowThreads();
32129 (arg1)->CrossHair(arg2,arg3);
32130 wxPyEndAllowThreads(__tstate);
32131 if (PyErr_Occurred()) SWIG_fail;
32132 }
32133 resultobj = SWIG_Py_Void();
32134 return resultobj;
32135 fail:
32136 return NULL;
32137 }
32138
32139
32140 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32141 PyObject *resultobj = 0;
32142 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32143 wxPoint *arg2 = 0 ;
32144 void *argp1 = 0 ;
32145 int res1 = 0 ;
32146 wxPoint temp2 ;
32147 PyObject * obj0 = 0 ;
32148 PyObject * obj1 = 0 ;
32149 char * kwnames[] = {
32150 (char *) "self",(char *) "pt", NULL
32151 };
32152
32153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32155 if (!SWIG_IsOK(res1)) {
32156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32157 }
32158 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32159 {
32160 arg2 = &temp2;
32161 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32162 }
32163 {
32164 PyThreadState* __tstate = wxPyBeginAllowThreads();
32165 (arg1)->CrossHair((wxPoint const &)*arg2);
32166 wxPyEndAllowThreads(__tstate);
32167 if (PyErr_Occurred()) SWIG_fail;
32168 }
32169 resultobj = SWIG_Py_Void();
32170 return resultobj;
32171 fail:
32172 return NULL;
32173 }
32174
32175
32176 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32177 PyObject *resultobj = 0;
32178 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32179 int arg2 ;
32180 int arg3 ;
32181 int arg4 ;
32182 int arg5 ;
32183 int arg6 ;
32184 int arg7 ;
32185 void *argp1 = 0 ;
32186 int res1 = 0 ;
32187 int val2 ;
32188 int ecode2 = 0 ;
32189 int val3 ;
32190 int ecode3 = 0 ;
32191 int val4 ;
32192 int ecode4 = 0 ;
32193 int val5 ;
32194 int ecode5 = 0 ;
32195 int val6 ;
32196 int ecode6 = 0 ;
32197 int val7 ;
32198 int ecode7 = 0 ;
32199 PyObject * obj0 = 0 ;
32200 PyObject * obj1 = 0 ;
32201 PyObject * obj2 = 0 ;
32202 PyObject * obj3 = 0 ;
32203 PyObject * obj4 = 0 ;
32204 PyObject * obj5 = 0 ;
32205 PyObject * obj6 = 0 ;
32206 char * kwnames[] = {
32207 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32208 };
32209
32210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32212 if (!SWIG_IsOK(res1)) {
32213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32214 }
32215 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32216 ecode2 = SWIG_AsVal_int(obj1, &val2);
32217 if (!SWIG_IsOK(ecode2)) {
32218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32219 }
32220 arg2 = static_cast< int >(val2);
32221 ecode3 = SWIG_AsVal_int(obj2, &val3);
32222 if (!SWIG_IsOK(ecode3)) {
32223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32224 }
32225 arg3 = static_cast< int >(val3);
32226 ecode4 = SWIG_AsVal_int(obj3, &val4);
32227 if (!SWIG_IsOK(ecode4)) {
32228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32229 }
32230 arg4 = static_cast< int >(val4);
32231 ecode5 = SWIG_AsVal_int(obj4, &val5);
32232 if (!SWIG_IsOK(ecode5)) {
32233 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32234 }
32235 arg5 = static_cast< int >(val5);
32236 ecode6 = SWIG_AsVal_int(obj5, &val6);
32237 if (!SWIG_IsOK(ecode6)) {
32238 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32239 }
32240 arg6 = static_cast< int >(val6);
32241 ecode7 = SWIG_AsVal_int(obj6, &val7);
32242 if (!SWIG_IsOK(ecode7)) {
32243 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32244 }
32245 arg7 = static_cast< int >(val7);
32246 {
32247 PyThreadState* __tstate = wxPyBeginAllowThreads();
32248 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32249 wxPyEndAllowThreads(__tstate);
32250 if (PyErr_Occurred()) SWIG_fail;
32251 }
32252 resultobj = SWIG_Py_Void();
32253 return resultobj;
32254 fail:
32255 return NULL;
32256 }
32257
32258
32259 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32260 PyObject *resultobj = 0;
32261 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32262 wxPoint *arg2 = 0 ;
32263 wxPoint *arg3 = 0 ;
32264 wxPoint *arg4 = 0 ;
32265 void *argp1 = 0 ;
32266 int res1 = 0 ;
32267 wxPoint temp2 ;
32268 wxPoint temp3 ;
32269 wxPoint temp4 ;
32270 PyObject * obj0 = 0 ;
32271 PyObject * obj1 = 0 ;
32272 PyObject * obj2 = 0 ;
32273 PyObject * obj3 = 0 ;
32274 char * kwnames[] = {
32275 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32276 };
32277
32278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32282 }
32283 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32284 {
32285 arg2 = &temp2;
32286 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32287 }
32288 {
32289 arg3 = &temp3;
32290 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32291 }
32292 {
32293 arg4 = &temp4;
32294 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32295 }
32296 {
32297 PyThreadState* __tstate = wxPyBeginAllowThreads();
32298 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32299 wxPyEndAllowThreads(__tstate);
32300 if (PyErr_Occurred()) SWIG_fail;
32301 }
32302 resultobj = SWIG_Py_Void();
32303 return resultobj;
32304 fail:
32305 return NULL;
32306 }
32307
32308
32309 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32310 PyObject *resultobj = 0;
32311 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32312 int arg2 ;
32313 int arg3 ;
32314 int arg4 ;
32315 int arg5 ;
32316 void *argp1 = 0 ;
32317 int res1 = 0 ;
32318 int val2 ;
32319 int ecode2 = 0 ;
32320 int val3 ;
32321 int ecode3 = 0 ;
32322 int val4 ;
32323 int ecode4 = 0 ;
32324 int val5 ;
32325 int ecode5 = 0 ;
32326 PyObject * obj0 = 0 ;
32327 PyObject * obj1 = 0 ;
32328 PyObject * obj2 = 0 ;
32329 PyObject * obj3 = 0 ;
32330 PyObject * obj4 = 0 ;
32331 char * kwnames[] = {
32332 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32333 };
32334
32335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32337 if (!SWIG_IsOK(res1)) {
32338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32339 }
32340 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32341 ecode2 = SWIG_AsVal_int(obj1, &val2);
32342 if (!SWIG_IsOK(ecode2)) {
32343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32344 }
32345 arg2 = static_cast< int >(val2);
32346 ecode3 = SWIG_AsVal_int(obj2, &val3);
32347 if (!SWIG_IsOK(ecode3)) {
32348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32349 }
32350 arg3 = static_cast< int >(val3);
32351 ecode4 = SWIG_AsVal_int(obj3, &val4);
32352 if (!SWIG_IsOK(ecode4)) {
32353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32354 }
32355 arg4 = static_cast< int >(val4);
32356 ecode5 = SWIG_AsVal_int(obj4, &val5);
32357 if (!SWIG_IsOK(ecode5)) {
32358 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32359 }
32360 arg5 = static_cast< int >(val5);
32361 {
32362 PyThreadState* __tstate = wxPyBeginAllowThreads();
32363 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32364 wxPyEndAllowThreads(__tstate);
32365 if (PyErr_Occurred()) SWIG_fail;
32366 }
32367 resultobj = SWIG_Py_Void();
32368 return resultobj;
32369 fail:
32370 return NULL;
32371 }
32372
32373
32374 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32375 PyObject *resultobj = 0;
32376 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32377 wxRect *arg2 = 0 ;
32378 void *argp1 = 0 ;
32379 int res1 = 0 ;
32380 wxRect temp2 ;
32381 PyObject * obj0 = 0 ;
32382 PyObject * obj1 = 0 ;
32383 char * kwnames[] = {
32384 (char *) "self",(char *) "rect", NULL
32385 };
32386
32387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32389 if (!SWIG_IsOK(res1)) {
32390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32391 }
32392 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32393 {
32394 arg2 = &temp2;
32395 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32396 }
32397 {
32398 PyThreadState* __tstate = wxPyBeginAllowThreads();
32399 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32400 wxPyEndAllowThreads(__tstate);
32401 if (PyErr_Occurred()) SWIG_fail;
32402 }
32403 resultobj = SWIG_Py_Void();
32404 return resultobj;
32405 fail:
32406 return NULL;
32407 }
32408
32409
32410 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32411 PyObject *resultobj = 0;
32412 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32413 int arg2 ;
32414 int arg3 ;
32415 int arg4 ;
32416 int arg5 ;
32417 double arg6 ;
32418 double arg7 ;
32419 void *argp1 = 0 ;
32420 int res1 = 0 ;
32421 int val2 ;
32422 int ecode2 = 0 ;
32423 int val3 ;
32424 int ecode3 = 0 ;
32425 int val4 ;
32426 int ecode4 = 0 ;
32427 int val5 ;
32428 int ecode5 = 0 ;
32429 double val6 ;
32430 int ecode6 = 0 ;
32431 double val7 ;
32432 int ecode7 = 0 ;
32433 PyObject * obj0 = 0 ;
32434 PyObject * obj1 = 0 ;
32435 PyObject * obj2 = 0 ;
32436 PyObject * obj3 = 0 ;
32437 PyObject * obj4 = 0 ;
32438 PyObject * obj5 = 0 ;
32439 PyObject * obj6 = 0 ;
32440 char * kwnames[] = {
32441 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32442 };
32443
32444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32446 if (!SWIG_IsOK(res1)) {
32447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32448 }
32449 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32450 ecode2 = SWIG_AsVal_int(obj1, &val2);
32451 if (!SWIG_IsOK(ecode2)) {
32452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32453 }
32454 arg2 = static_cast< int >(val2);
32455 ecode3 = SWIG_AsVal_int(obj2, &val3);
32456 if (!SWIG_IsOK(ecode3)) {
32457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32458 }
32459 arg3 = static_cast< int >(val3);
32460 ecode4 = SWIG_AsVal_int(obj3, &val4);
32461 if (!SWIG_IsOK(ecode4)) {
32462 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32463 }
32464 arg4 = static_cast< int >(val4);
32465 ecode5 = SWIG_AsVal_int(obj4, &val5);
32466 if (!SWIG_IsOK(ecode5)) {
32467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32468 }
32469 arg5 = static_cast< int >(val5);
32470 ecode6 = SWIG_AsVal_double(obj5, &val6);
32471 if (!SWIG_IsOK(ecode6)) {
32472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32473 }
32474 arg6 = static_cast< double >(val6);
32475 ecode7 = SWIG_AsVal_double(obj6, &val7);
32476 if (!SWIG_IsOK(ecode7)) {
32477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32478 }
32479 arg7 = static_cast< double >(val7);
32480 {
32481 PyThreadState* __tstate = wxPyBeginAllowThreads();
32482 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32483 wxPyEndAllowThreads(__tstate);
32484 if (PyErr_Occurred()) SWIG_fail;
32485 }
32486 resultobj = SWIG_Py_Void();
32487 return resultobj;
32488 fail:
32489 return NULL;
32490 }
32491
32492
32493 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32494 PyObject *resultobj = 0;
32495 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32496 wxPoint *arg2 = 0 ;
32497 wxSize *arg3 = 0 ;
32498 double arg4 ;
32499 double arg5 ;
32500 void *argp1 = 0 ;
32501 int res1 = 0 ;
32502 wxPoint temp2 ;
32503 wxSize temp3 ;
32504 double val4 ;
32505 int ecode4 = 0 ;
32506 double val5 ;
32507 int ecode5 = 0 ;
32508 PyObject * obj0 = 0 ;
32509 PyObject * obj1 = 0 ;
32510 PyObject * obj2 = 0 ;
32511 PyObject * obj3 = 0 ;
32512 PyObject * obj4 = 0 ;
32513 char * kwnames[] = {
32514 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32515 };
32516
32517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32519 if (!SWIG_IsOK(res1)) {
32520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32521 }
32522 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32523 {
32524 arg2 = &temp2;
32525 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32526 }
32527 {
32528 arg3 = &temp3;
32529 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32530 }
32531 ecode4 = SWIG_AsVal_double(obj3, &val4);
32532 if (!SWIG_IsOK(ecode4)) {
32533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32534 }
32535 arg4 = static_cast< double >(val4);
32536 ecode5 = SWIG_AsVal_double(obj4, &val5);
32537 if (!SWIG_IsOK(ecode5)) {
32538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32539 }
32540 arg5 = static_cast< double >(val5);
32541 {
32542 PyThreadState* __tstate = wxPyBeginAllowThreads();
32543 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32544 wxPyEndAllowThreads(__tstate);
32545 if (PyErr_Occurred()) SWIG_fail;
32546 }
32547 resultobj = SWIG_Py_Void();
32548 return resultobj;
32549 fail:
32550 return NULL;
32551 }
32552
32553
32554 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32555 PyObject *resultobj = 0;
32556 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32557 int arg2 ;
32558 int arg3 ;
32559 void *argp1 = 0 ;
32560 int res1 = 0 ;
32561 int val2 ;
32562 int ecode2 = 0 ;
32563 int val3 ;
32564 int ecode3 = 0 ;
32565 PyObject * obj0 = 0 ;
32566 PyObject * obj1 = 0 ;
32567 PyObject * obj2 = 0 ;
32568 char * kwnames[] = {
32569 (char *) "self",(char *) "x",(char *) "y", NULL
32570 };
32571
32572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32574 if (!SWIG_IsOK(res1)) {
32575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32576 }
32577 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32578 ecode2 = SWIG_AsVal_int(obj1, &val2);
32579 if (!SWIG_IsOK(ecode2)) {
32580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32581 }
32582 arg2 = static_cast< int >(val2);
32583 ecode3 = SWIG_AsVal_int(obj2, &val3);
32584 if (!SWIG_IsOK(ecode3)) {
32585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32586 }
32587 arg3 = static_cast< int >(val3);
32588 {
32589 PyThreadState* __tstate = wxPyBeginAllowThreads();
32590 (arg1)->DrawPoint(arg2,arg3);
32591 wxPyEndAllowThreads(__tstate);
32592 if (PyErr_Occurred()) SWIG_fail;
32593 }
32594 resultobj = SWIG_Py_Void();
32595 return resultobj;
32596 fail:
32597 return NULL;
32598 }
32599
32600
32601 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32602 PyObject *resultobj = 0;
32603 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32604 wxPoint *arg2 = 0 ;
32605 void *argp1 = 0 ;
32606 int res1 = 0 ;
32607 wxPoint temp2 ;
32608 PyObject * obj0 = 0 ;
32609 PyObject * obj1 = 0 ;
32610 char * kwnames[] = {
32611 (char *) "self",(char *) "pt", NULL
32612 };
32613
32614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32616 if (!SWIG_IsOK(res1)) {
32617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32618 }
32619 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32620 {
32621 arg2 = &temp2;
32622 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32623 }
32624 {
32625 PyThreadState* __tstate = wxPyBeginAllowThreads();
32626 (arg1)->DrawPoint((wxPoint const &)*arg2);
32627 wxPyEndAllowThreads(__tstate);
32628 if (PyErr_Occurred()) SWIG_fail;
32629 }
32630 resultobj = SWIG_Py_Void();
32631 return resultobj;
32632 fail:
32633 return NULL;
32634 }
32635
32636
32637 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32638 PyObject *resultobj = 0;
32639 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32640 int arg2 ;
32641 int arg3 ;
32642 int arg4 ;
32643 int arg5 ;
32644 void *argp1 = 0 ;
32645 int res1 = 0 ;
32646 int val2 ;
32647 int ecode2 = 0 ;
32648 int val3 ;
32649 int ecode3 = 0 ;
32650 int val4 ;
32651 int ecode4 = 0 ;
32652 int val5 ;
32653 int ecode5 = 0 ;
32654 PyObject * obj0 = 0 ;
32655 PyObject * obj1 = 0 ;
32656 PyObject * obj2 = 0 ;
32657 PyObject * obj3 = 0 ;
32658 PyObject * obj4 = 0 ;
32659 char * kwnames[] = {
32660 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32661 };
32662
32663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32665 if (!SWIG_IsOK(res1)) {
32666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32667 }
32668 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32669 ecode2 = SWIG_AsVal_int(obj1, &val2);
32670 if (!SWIG_IsOK(ecode2)) {
32671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32672 }
32673 arg2 = static_cast< int >(val2);
32674 ecode3 = SWIG_AsVal_int(obj2, &val3);
32675 if (!SWIG_IsOK(ecode3)) {
32676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32677 }
32678 arg3 = static_cast< int >(val3);
32679 ecode4 = SWIG_AsVal_int(obj3, &val4);
32680 if (!SWIG_IsOK(ecode4)) {
32681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32682 }
32683 arg4 = static_cast< int >(val4);
32684 ecode5 = SWIG_AsVal_int(obj4, &val5);
32685 if (!SWIG_IsOK(ecode5)) {
32686 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32687 }
32688 arg5 = static_cast< int >(val5);
32689 {
32690 PyThreadState* __tstate = wxPyBeginAllowThreads();
32691 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32692 wxPyEndAllowThreads(__tstate);
32693 if (PyErr_Occurred()) SWIG_fail;
32694 }
32695 resultobj = SWIG_Py_Void();
32696 return resultobj;
32697 fail:
32698 return NULL;
32699 }
32700
32701
32702 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32703 PyObject *resultobj = 0;
32704 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32705 wxRect *arg2 = 0 ;
32706 void *argp1 = 0 ;
32707 int res1 = 0 ;
32708 wxRect temp2 ;
32709 PyObject * obj0 = 0 ;
32710 PyObject * obj1 = 0 ;
32711 char * kwnames[] = {
32712 (char *) "self",(char *) "rect", NULL
32713 };
32714
32715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32717 if (!SWIG_IsOK(res1)) {
32718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32719 }
32720 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32721 {
32722 arg2 = &temp2;
32723 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32724 }
32725 {
32726 PyThreadState* __tstate = wxPyBeginAllowThreads();
32727 (arg1)->DrawRectangle((wxRect const &)*arg2);
32728 wxPyEndAllowThreads(__tstate);
32729 if (PyErr_Occurred()) SWIG_fail;
32730 }
32731 resultobj = SWIG_Py_Void();
32732 return resultobj;
32733 fail:
32734 return NULL;
32735 }
32736
32737
32738 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32739 PyObject *resultobj = 0;
32740 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32741 wxPoint *arg2 = 0 ;
32742 wxSize *arg3 = 0 ;
32743 void *argp1 = 0 ;
32744 int res1 = 0 ;
32745 wxPoint temp2 ;
32746 wxSize temp3 ;
32747 PyObject * obj0 = 0 ;
32748 PyObject * obj1 = 0 ;
32749 PyObject * obj2 = 0 ;
32750 char * kwnames[] = {
32751 (char *) "self",(char *) "pt",(char *) "sz", NULL
32752 };
32753
32754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32756 if (!SWIG_IsOK(res1)) {
32757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32758 }
32759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32760 {
32761 arg2 = &temp2;
32762 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32763 }
32764 {
32765 arg3 = &temp3;
32766 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32767 }
32768 {
32769 PyThreadState* __tstate = wxPyBeginAllowThreads();
32770 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32771 wxPyEndAllowThreads(__tstate);
32772 if (PyErr_Occurred()) SWIG_fail;
32773 }
32774 resultobj = SWIG_Py_Void();
32775 return resultobj;
32776 fail:
32777 return NULL;
32778 }
32779
32780
32781 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32782 PyObject *resultobj = 0;
32783 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32784 int arg2 ;
32785 int arg3 ;
32786 int arg4 ;
32787 int arg5 ;
32788 double arg6 ;
32789 void *argp1 = 0 ;
32790 int res1 = 0 ;
32791 int val2 ;
32792 int ecode2 = 0 ;
32793 int val3 ;
32794 int ecode3 = 0 ;
32795 int val4 ;
32796 int ecode4 = 0 ;
32797 int val5 ;
32798 int ecode5 = 0 ;
32799 double val6 ;
32800 int ecode6 = 0 ;
32801 PyObject * obj0 = 0 ;
32802 PyObject * obj1 = 0 ;
32803 PyObject * obj2 = 0 ;
32804 PyObject * obj3 = 0 ;
32805 PyObject * obj4 = 0 ;
32806 PyObject * obj5 = 0 ;
32807 char * kwnames[] = {
32808 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32809 };
32810
32811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32813 if (!SWIG_IsOK(res1)) {
32814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32815 }
32816 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32817 ecode2 = SWIG_AsVal_int(obj1, &val2);
32818 if (!SWIG_IsOK(ecode2)) {
32819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32820 }
32821 arg2 = static_cast< int >(val2);
32822 ecode3 = SWIG_AsVal_int(obj2, &val3);
32823 if (!SWIG_IsOK(ecode3)) {
32824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32825 }
32826 arg3 = static_cast< int >(val3);
32827 ecode4 = SWIG_AsVal_int(obj3, &val4);
32828 if (!SWIG_IsOK(ecode4)) {
32829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32830 }
32831 arg4 = static_cast< int >(val4);
32832 ecode5 = SWIG_AsVal_int(obj4, &val5);
32833 if (!SWIG_IsOK(ecode5)) {
32834 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32835 }
32836 arg5 = static_cast< int >(val5);
32837 ecode6 = SWIG_AsVal_double(obj5, &val6);
32838 if (!SWIG_IsOK(ecode6)) {
32839 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32840 }
32841 arg6 = static_cast< double >(val6);
32842 {
32843 PyThreadState* __tstate = wxPyBeginAllowThreads();
32844 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32845 wxPyEndAllowThreads(__tstate);
32846 if (PyErr_Occurred()) SWIG_fail;
32847 }
32848 resultobj = SWIG_Py_Void();
32849 return resultobj;
32850 fail:
32851 return NULL;
32852 }
32853
32854
32855 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32856 PyObject *resultobj = 0;
32857 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32858 wxRect *arg2 = 0 ;
32859 double arg3 ;
32860 void *argp1 = 0 ;
32861 int res1 = 0 ;
32862 wxRect temp2 ;
32863 double val3 ;
32864 int ecode3 = 0 ;
32865 PyObject * obj0 = 0 ;
32866 PyObject * obj1 = 0 ;
32867 PyObject * obj2 = 0 ;
32868 char * kwnames[] = {
32869 (char *) "self",(char *) "r",(char *) "radius", NULL
32870 };
32871
32872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32874 if (!SWIG_IsOK(res1)) {
32875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32876 }
32877 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32878 {
32879 arg2 = &temp2;
32880 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32881 }
32882 ecode3 = SWIG_AsVal_double(obj2, &val3);
32883 if (!SWIG_IsOK(ecode3)) {
32884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32885 }
32886 arg3 = static_cast< double >(val3);
32887 {
32888 PyThreadState* __tstate = wxPyBeginAllowThreads();
32889 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32890 wxPyEndAllowThreads(__tstate);
32891 if (PyErr_Occurred()) SWIG_fail;
32892 }
32893 resultobj = SWIG_Py_Void();
32894 return resultobj;
32895 fail:
32896 return NULL;
32897 }
32898
32899
32900 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32901 PyObject *resultobj = 0;
32902 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32903 wxPoint *arg2 = 0 ;
32904 wxSize *arg3 = 0 ;
32905 double arg4 ;
32906 void *argp1 = 0 ;
32907 int res1 = 0 ;
32908 wxPoint temp2 ;
32909 wxSize temp3 ;
32910 double val4 ;
32911 int ecode4 = 0 ;
32912 PyObject * obj0 = 0 ;
32913 PyObject * obj1 = 0 ;
32914 PyObject * obj2 = 0 ;
32915 PyObject * obj3 = 0 ;
32916 char * kwnames[] = {
32917 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32918 };
32919
32920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32922 if (!SWIG_IsOK(res1)) {
32923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32924 }
32925 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32926 {
32927 arg2 = &temp2;
32928 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32929 }
32930 {
32931 arg3 = &temp3;
32932 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32933 }
32934 ecode4 = SWIG_AsVal_double(obj3, &val4);
32935 if (!SWIG_IsOK(ecode4)) {
32936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32937 }
32938 arg4 = static_cast< double >(val4);
32939 {
32940 PyThreadState* __tstate = wxPyBeginAllowThreads();
32941 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32942 wxPyEndAllowThreads(__tstate);
32943 if (PyErr_Occurred()) SWIG_fail;
32944 }
32945 resultobj = SWIG_Py_Void();
32946 return resultobj;
32947 fail:
32948 return NULL;
32949 }
32950
32951
32952 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32953 PyObject *resultobj = 0;
32954 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32955 int arg2 ;
32956 int arg3 ;
32957 int arg4 ;
32958 void *argp1 = 0 ;
32959 int res1 = 0 ;
32960 int val2 ;
32961 int ecode2 = 0 ;
32962 int val3 ;
32963 int ecode3 = 0 ;
32964 int val4 ;
32965 int ecode4 = 0 ;
32966 PyObject * obj0 = 0 ;
32967 PyObject * obj1 = 0 ;
32968 PyObject * obj2 = 0 ;
32969 PyObject * obj3 = 0 ;
32970 char * kwnames[] = {
32971 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32972 };
32973
32974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32976 if (!SWIG_IsOK(res1)) {
32977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32978 }
32979 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32980 ecode2 = SWIG_AsVal_int(obj1, &val2);
32981 if (!SWIG_IsOK(ecode2)) {
32982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32983 }
32984 arg2 = static_cast< int >(val2);
32985 ecode3 = SWIG_AsVal_int(obj2, &val3);
32986 if (!SWIG_IsOK(ecode3)) {
32987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32988 }
32989 arg3 = static_cast< int >(val3);
32990 ecode4 = SWIG_AsVal_int(obj3, &val4);
32991 if (!SWIG_IsOK(ecode4)) {
32992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32993 }
32994 arg4 = static_cast< int >(val4);
32995 {
32996 PyThreadState* __tstate = wxPyBeginAllowThreads();
32997 (arg1)->DrawCircle(arg2,arg3,arg4);
32998 wxPyEndAllowThreads(__tstate);
32999 if (PyErr_Occurred()) SWIG_fail;
33000 }
33001 resultobj = SWIG_Py_Void();
33002 return resultobj;
33003 fail:
33004 return NULL;
33005 }
33006
33007
33008 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33009 PyObject *resultobj = 0;
33010 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33011 wxPoint *arg2 = 0 ;
33012 int arg3 ;
33013 void *argp1 = 0 ;
33014 int res1 = 0 ;
33015 wxPoint temp2 ;
33016 int val3 ;
33017 int ecode3 = 0 ;
33018 PyObject * obj0 = 0 ;
33019 PyObject * obj1 = 0 ;
33020 PyObject * obj2 = 0 ;
33021 char * kwnames[] = {
33022 (char *) "self",(char *) "pt",(char *) "radius", NULL
33023 };
33024
33025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33027 if (!SWIG_IsOK(res1)) {
33028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33029 }
33030 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33031 {
33032 arg2 = &temp2;
33033 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33034 }
33035 ecode3 = SWIG_AsVal_int(obj2, &val3);
33036 if (!SWIG_IsOK(ecode3)) {
33037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33038 }
33039 arg3 = static_cast< int >(val3);
33040 {
33041 PyThreadState* __tstate = wxPyBeginAllowThreads();
33042 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33043 wxPyEndAllowThreads(__tstate);
33044 if (PyErr_Occurred()) SWIG_fail;
33045 }
33046 resultobj = SWIG_Py_Void();
33047 return resultobj;
33048 fail:
33049 return NULL;
33050 }
33051
33052
33053 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33054 PyObject *resultobj = 0;
33055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33056 int arg2 ;
33057 int arg3 ;
33058 int arg4 ;
33059 int arg5 ;
33060 void *argp1 = 0 ;
33061 int res1 = 0 ;
33062 int val2 ;
33063 int ecode2 = 0 ;
33064 int val3 ;
33065 int ecode3 = 0 ;
33066 int val4 ;
33067 int ecode4 = 0 ;
33068 int val5 ;
33069 int ecode5 = 0 ;
33070 PyObject * obj0 = 0 ;
33071 PyObject * obj1 = 0 ;
33072 PyObject * obj2 = 0 ;
33073 PyObject * obj3 = 0 ;
33074 PyObject * obj4 = 0 ;
33075 char * kwnames[] = {
33076 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33077 };
33078
33079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33081 if (!SWIG_IsOK(res1)) {
33082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33083 }
33084 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33085 ecode2 = SWIG_AsVal_int(obj1, &val2);
33086 if (!SWIG_IsOK(ecode2)) {
33087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33088 }
33089 arg2 = static_cast< int >(val2);
33090 ecode3 = SWIG_AsVal_int(obj2, &val3);
33091 if (!SWIG_IsOK(ecode3)) {
33092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33093 }
33094 arg3 = static_cast< int >(val3);
33095 ecode4 = SWIG_AsVal_int(obj3, &val4);
33096 if (!SWIG_IsOK(ecode4)) {
33097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33098 }
33099 arg4 = static_cast< int >(val4);
33100 ecode5 = SWIG_AsVal_int(obj4, &val5);
33101 if (!SWIG_IsOK(ecode5)) {
33102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33103 }
33104 arg5 = static_cast< int >(val5);
33105 {
33106 PyThreadState* __tstate = wxPyBeginAllowThreads();
33107 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33108 wxPyEndAllowThreads(__tstate);
33109 if (PyErr_Occurred()) SWIG_fail;
33110 }
33111 resultobj = SWIG_Py_Void();
33112 return resultobj;
33113 fail:
33114 return NULL;
33115 }
33116
33117
33118 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33119 PyObject *resultobj = 0;
33120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33121 wxRect *arg2 = 0 ;
33122 void *argp1 = 0 ;
33123 int res1 = 0 ;
33124 wxRect temp2 ;
33125 PyObject * obj0 = 0 ;
33126 PyObject * obj1 = 0 ;
33127 char * kwnames[] = {
33128 (char *) "self",(char *) "rect", NULL
33129 };
33130
33131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33133 if (!SWIG_IsOK(res1)) {
33134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33135 }
33136 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33137 {
33138 arg2 = &temp2;
33139 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33140 }
33141 {
33142 PyThreadState* __tstate = wxPyBeginAllowThreads();
33143 (arg1)->DrawEllipse((wxRect const &)*arg2);
33144 wxPyEndAllowThreads(__tstate);
33145 if (PyErr_Occurred()) SWIG_fail;
33146 }
33147 resultobj = SWIG_Py_Void();
33148 return resultobj;
33149 fail:
33150 return NULL;
33151 }
33152
33153
33154 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33155 PyObject *resultobj = 0;
33156 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33157 wxPoint *arg2 = 0 ;
33158 wxSize *arg3 = 0 ;
33159 void *argp1 = 0 ;
33160 int res1 = 0 ;
33161 wxPoint temp2 ;
33162 wxSize temp3 ;
33163 PyObject * obj0 = 0 ;
33164 PyObject * obj1 = 0 ;
33165 PyObject * obj2 = 0 ;
33166 char * kwnames[] = {
33167 (char *) "self",(char *) "pt",(char *) "sz", NULL
33168 };
33169
33170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33172 if (!SWIG_IsOK(res1)) {
33173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33174 }
33175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33176 {
33177 arg2 = &temp2;
33178 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33179 }
33180 {
33181 arg3 = &temp3;
33182 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33183 }
33184 {
33185 PyThreadState* __tstate = wxPyBeginAllowThreads();
33186 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33187 wxPyEndAllowThreads(__tstate);
33188 if (PyErr_Occurred()) SWIG_fail;
33189 }
33190 resultobj = SWIG_Py_Void();
33191 return resultobj;
33192 fail:
33193 return NULL;
33194 }
33195
33196
33197 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33198 PyObject *resultobj = 0;
33199 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33200 wxIcon *arg2 = 0 ;
33201 int arg3 ;
33202 int arg4 ;
33203 void *argp1 = 0 ;
33204 int res1 = 0 ;
33205 void *argp2 = 0 ;
33206 int res2 = 0 ;
33207 int val3 ;
33208 int ecode3 = 0 ;
33209 int val4 ;
33210 int ecode4 = 0 ;
33211 PyObject * obj0 = 0 ;
33212 PyObject * obj1 = 0 ;
33213 PyObject * obj2 = 0 ;
33214 PyObject * obj3 = 0 ;
33215 char * kwnames[] = {
33216 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33217 };
33218
33219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33221 if (!SWIG_IsOK(res1)) {
33222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33223 }
33224 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33226 if (!SWIG_IsOK(res2)) {
33227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33228 }
33229 if (!argp2) {
33230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33231 }
33232 arg2 = reinterpret_cast< wxIcon * >(argp2);
33233 ecode3 = SWIG_AsVal_int(obj2, &val3);
33234 if (!SWIG_IsOK(ecode3)) {
33235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33236 }
33237 arg3 = static_cast< int >(val3);
33238 ecode4 = SWIG_AsVal_int(obj3, &val4);
33239 if (!SWIG_IsOK(ecode4)) {
33240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33241 }
33242 arg4 = static_cast< int >(val4);
33243 {
33244 PyThreadState* __tstate = wxPyBeginAllowThreads();
33245 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33246 wxPyEndAllowThreads(__tstate);
33247 if (PyErr_Occurred()) SWIG_fail;
33248 }
33249 resultobj = SWIG_Py_Void();
33250 return resultobj;
33251 fail:
33252 return NULL;
33253 }
33254
33255
33256 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33257 PyObject *resultobj = 0;
33258 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33259 wxIcon *arg2 = 0 ;
33260 wxPoint *arg3 = 0 ;
33261 void *argp1 = 0 ;
33262 int res1 = 0 ;
33263 void *argp2 = 0 ;
33264 int res2 = 0 ;
33265 wxPoint temp3 ;
33266 PyObject * obj0 = 0 ;
33267 PyObject * obj1 = 0 ;
33268 PyObject * obj2 = 0 ;
33269 char * kwnames[] = {
33270 (char *) "self",(char *) "icon",(char *) "pt", NULL
33271 };
33272
33273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33275 if (!SWIG_IsOK(res1)) {
33276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33277 }
33278 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33280 if (!SWIG_IsOK(res2)) {
33281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33282 }
33283 if (!argp2) {
33284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33285 }
33286 arg2 = reinterpret_cast< wxIcon * >(argp2);
33287 {
33288 arg3 = &temp3;
33289 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33290 }
33291 {
33292 PyThreadState* __tstate = wxPyBeginAllowThreads();
33293 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33294 wxPyEndAllowThreads(__tstate);
33295 if (PyErr_Occurred()) SWIG_fail;
33296 }
33297 resultobj = SWIG_Py_Void();
33298 return resultobj;
33299 fail:
33300 return NULL;
33301 }
33302
33303
33304 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33305 PyObject *resultobj = 0;
33306 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33307 wxBitmap *arg2 = 0 ;
33308 int arg3 ;
33309 int arg4 ;
33310 bool arg5 = (bool) false ;
33311 void *argp1 = 0 ;
33312 int res1 = 0 ;
33313 void *argp2 = 0 ;
33314 int res2 = 0 ;
33315 int val3 ;
33316 int ecode3 = 0 ;
33317 int val4 ;
33318 int ecode4 = 0 ;
33319 bool val5 ;
33320 int ecode5 = 0 ;
33321 PyObject * obj0 = 0 ;
33322 PyObject * obj1 = 0 ;
33323 PyObject * obj2 = 0 ;
33324 PyObject * obj3 = 0 ;
33325 PyObject * obj4 = 0 ;
33326 char * kwnames[] = {
33327 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33328 };
33329
33330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33332 if (!SWIG_IsOK(res1)) {
33333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33334 }
33335 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33337 if (!SWIG_IsOK(res2)) {
33338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33339 }
33340 if (!argp2) {
33341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33342 }
33343 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33344 ecode3 = SWIG_AsVal_int(obj2, &val3);
33345 if (!SWIG_IsOK(ecode3)) {
33346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33347 }
33348 arg3 = static_cast< int >(val3);
33349 ecode4 = SWIG_AsVal_int(obj3, &val4);
33350 if (!SWIG_IsOK(ecode4)) {
33351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33352 }
33353 arg4 = static_cast< int >(val4);
33354 if (obj4) {
33355 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33356 if (!SWIG_IsOK(ecode5)) {
33357 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33358 }
33359 arg5 = static_cast< bool >(val5);
33360 }
33361 {
33362 PyThreadState* __tstate = wxPyBeginAllowThreads();
33363 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
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_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33375 PyObject *resultobj = 0;
33376 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33377 wxBitmap *arg2 = 0 ;
33378 wxPoint *arg3 = 0 ;
33379 bool arg4 = (bool) false ;
33380 void *argp1 = 0 ;
33381 int res1 = 0 ;
33382 void *argp2 = 0 ;
33383 int res2 = 0 ;
33384 wxPoint temp3 ;
33385 bool val4 ;
33386 int ecode4 = 0 ;
33387 PyObject * obj0 = 0 ;
33388 PyObject * obj1 = 0 ;
33389 PyObject * obj2 = 0 ;
33390 PyObject * obj3 = 0 ;
33391 char * kwnames[] = {
33392 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33393 };
33394
33395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33397 if (!SWIG_IsOK(res1)) {
33398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33399 }
33400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33402 if (!SWIG_IsOK(res2)) {
33403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33404 }
33405 if (!argp2) {
33406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33407 }
33408 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33409 {
33410 arg3 = &temp3;
33411 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33412 }
33413 if (obj3) {
33414 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33415 if (!SWIG_IsOK(ecode4)) {
33416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33417 }
33418 arg4 = static_cast< bool >(val4);
33419 }
33420 {
33421 PyThreadState* __tstate = wxPyBeginAllowThreads();
33422 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33423 wxPyEndAllowThreads(__tstate);
33424 if (PyErr_Occurred()) SWIG_fail;
33425 }
33426 resultobj = SWIG_Py_Void();
33427 return resultobj;
33428 fail:
33429 return NULL;
33430 }
33431
33432
33433 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33434 PyObject *resultobj = 0;
33435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33436 wxString *arg2 = 0 ;
33437 int arg3 ;
33438 int arg4 ;
33439 void *argp1 = 0 ;
33440 int res1 = 0 ;
33441 bool temp2 = false ;
33442 int val3 ;
33443 int ecode3 = 0 ;
33444 int val4 ;
33445 int ecode4 = 0 ;
33446 PyObject * obj0 = 0 ;
33447 PyObject * obj1 = 0 ;
33448 PyObject * obj2 = 0 ;
33449 PyObject * obj3 = 0 ;
33450 char * kwnames[] = {
33451 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33452 };
33453
33454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33456 if (!SWIG_IsOK(res1)) {
33457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33458 }
33459 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33460 {
33461 arg2 = wxString_in_helper(obj1);
33462 if (arg2 == NULL) SWIG_fail;
33463 temp2 = true;
33464 }
33465 ecode3 = SWIG_AsVal_int(obj2, &val3);
33466 if (!SWIG_IsOK(ecode3)) {
33467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33468 }
33469 arg3 = static_cast< int >(val3);
33470 ecode4 = SWIG_AsVal_int(obj3, &val4);
33471 if (!SWIG_IsOK(ecode4)) {
33472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33473 }
33474 arg4 = static_cast< int >(val4);
33475 {
33476 PyThreadState* __tstate = wxPyBeginAllowThreads();
33477 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33478 wxPyEndAllowThreads(__tstate);
33479 if (PyErr_Occurred()) SWIG_fail;
33480 }
33481 resultobj = SWIG_Py_Void();
33482 {
33483 if (temp2)
33484 delete arg2;
33485 }
33486 return resultobj;
33487 fail:
33488 {
33489 if (temp2)
33490 delete arg2;
33491 }
33492 return NULL;
33493 }
33494
33495
33496 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33497 PyObject *resultobj = 0;
33498 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33499 wxString *arg2 = 0 ;
33500 wxPoint *arg3 = 0 ;
33501 void *argp1 = 0 ;
33502 int res1 = 0 ;
33503 bool temp2 = false ;
33504 wxPoint temp3 ;
33505 PyObject * obj0 = 0 ;
33506 PyObject * obj1 = 0 ;
33507 PyObject * obj2 = 0 ;
33508 char * kwnames[] = {
33509 (char *) "self",(char *) "text",(char *) "pt", NULL
33510 };
33511
33512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33514 if (!SWIG_IsOK(res1)) {
33515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33516 }
33517 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33518 {
33519 arg2 = wxString_in_helper(obj1);
33520 if (arg2 == NULL) SWIG_fail;
33521 temp2 = true;
33522 }
33523 {
33524 arg3 = &temp3;
33525 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33526 }
33527 {
33528 PyThreadState* __tstate = wxPyBeginAllowThreads();
33529 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33530 wxPyEndAllowThreads(__tstate);
33531 if (PyErr_Occurred()) SWIG_fail;
33532 }
33533 resultobj = SWIG_Py_Void();
33534 {
33535 if (temp2)
33536 delete arg2;
33537 }
33538 return resultobj;
33539 fail:
33540 {
33541 if (temp2)
33542 delete arg2;
33543 }
33544 return NULL;
33545 }
33546
33547
33548 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33549 PyObject *resultobj = 0;
33550 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33551 wxString *arg2 = 0 ;
33552 int arg3 ;
33553 int arg4 ;
33554 double arg5 ;
33555 void *argp1 = 0 ;
33556 int res1 = 0 ;
33557 bool temp2 = false ;
33558 int val3 ;
33559 int ecode3 = 0 ;
33560 int val4 ;
33561 int ecode4 = 0 ;
33562 double val5 ;
33563 int ecode5 = 0 ;
33564 PyObject * obj0 = 0 ;
33565 PyObject * obj1 = 0 ;
33566 PyObject * obj2 = 0 ;
33567 PyObject * obj3 = 0 ;
33568 PyObject * obj4 = 0 ;
33569 char * kwnames[] = {
33570 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33571 };
33572
33573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33575 if (!SWIG_IsOK(res1)) {
33576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33577 }
33578 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33579 {
33580 arg2 = wxString_in_helper(obj1);
33581 if (arg2 == NULL) SWIG_fail;
33582 temp2 = true;
33583 }
33584 ecode3 = SWIG_AsVal_int(obj2, &val3);
33585 if (!SWIG_IsOK(ecode3)) {
33586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33587 }
33588 arg3 = static_cast< int >(val3);
33589 ecode4 = SWIG_AsVal_int(obj3, &val4);
33590 if (!SWIG_IsOK(ecode4)) {
33591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33592 }
33593 arg4 = static_cast< int >(val4);
33594 ecode5 = SWIG_AsVal_double(obj4, &val5);
33595 if (!SWIG_IsOK(ecode5)) {
33596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33597 }
33598 arg5 = static_cast< double >(val5);
33599 {
33600 PyThreadState* __tstate = wxPyBeginAllowThreads();
33601 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33602 wxPyEndAllowThreads(__tstate);
33603 if (PyErr_Occurred()) SWIG_fail;
33604 }
33605 resultobj = SWIG_Py_Void();
33606 {
33607 if (temp2)
33608 delete arg2;
33609 }
33610 return resultobj;
33611 fail:
33612 {
33613 if (temp2)
33614 delete arg2;
33615 }
33616 return NULL;
33617 }
33618
33619
33620 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33621 PyObject *resultobj = 0;
33622 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33623 wxString *arg2 = 0 ;
33624 wxPoint *arg3 = 0 ;
33625 double arg4 ;
33626 void *argp1 = 0 ;
33627 int res1 = 0 ;
33628 bool temp2 = false ;
33629 wxPoint temp3 ;
33630 double val4 ;
33631 int ecode4 = 0 ;
33632 PyObject * obj0 = 0 ;
33633 PyObject * obj1 = 0 ;
33634 PyObject * obj2 = 0 ;
33635 PyObject * obj3 = 0 ;
33636 char * kwnames[] = {
33637 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33638 };
33639
33640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33642 if (!SWIG_IsOK(res1)) {
33643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33644 }
33645 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33646 {
33647 arg2 = wxString_in_helper(obj1);
33648 if (arg2 == NULL) SWIG_fail;
33649 temp2 = true;
33650 }
33651 {
33652 arg3 = &temp3;
33653 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33654 }
33655 ecode4 = SWIG_AsVal_double(obj3, &val4);
33656 if (!SWIG_IsOK(ecode4)) {
33657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33658 }
33659 arg4 = static_cast< double >(val4);
33660 {
33661 PyThreadState* __tstate = wxPyBeginAllowThreads();
33662 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33663 wxPyEndAllowThreads(__tstate);
33664 if (PyErr_Occurred()) SWIG_fail;
33665 }
33666 resultobj = SWIG_Py_Void();
33667 {
33668 if (temp2)
33669 delete arg2;
33670 }
33671 return resultobj;
33672 fail:
33673 {
33674 if (temp2)
33675 delete arg2;
33676 }
33677 return NULL;
33678 }
33679
33680
33681 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33682 PyObject *resultobj = 0;
33683 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33684 int arg2 ;
33685 wxPoint *arg3 = (wxPoint *) 0 ;
33686 int arg4 = (int) 0 ;
33687 int arg5 = (int) 0 ;
33688 void *argp1 = 0 ;
33689 int res1 = 0 ;
33690 int val4 ;
33691 int ecode4 = 0 ;
33692 int val5 ;
33693 int ecode5 = 0 ;
33694 PyObject * obj0 = 0 ;
33695 PyObject * obj1 = 0 ;
33696 PyObject * obj2 = 0 ;
33697 PyObject * obj3 = 0 ;
33698 char * kwnames[] = {
33699 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33700 };
33701
33702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33704 if (!SWIG_IsOK(res1)) {
33705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33706 }
33707 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33708 {
33709 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33710 if (arg3 == NULL) SWIG_fail;
33711 }
33712 if (obj2) {
33713 ecode4 = SWIG_AsVal_int(obj2, &val4);
33714 if (!SWIG_IsOK(ecode4)) {
33715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33716 }
33717 arg4 = static_cast< int >(val4);
33718 }
33719 if (obj3) {
33720 ecode5 = SWIG_AsVal_int(obj3, &val5);
33721 if (!SWIG_IsOK(ecode5)) {
33722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33723 }
33724 arg5 = static_cast< int >(val5);
33725 }
33726 {
33727 PyThreadState* __tstate = wxPyBeginAllowThreads();
33728 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33729 wxPyEndAllowThreads(__tstate);
33730 if (PyErr_Occurred()) SWIG_fail;
33731 }
33732 resultobj = SWIG_Py_Void();
33733 {
33734 if (arg3) delete [] arg3;
33735 }
33736 return resultobj;
33737 fail:
33738 {
33739 if (arg3) delete [] arg3;
33740 }
33741 return NULL;
33742 }
33743
33744
33745 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33746 PyObject *resultobj = 0;
33747 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33748 int arg2 ;
33749 wxPoint *arg3 = (wxPoint *) 0 ;
33750 int arg4 = (int) 0 ;
33751 int arg5 = (int) 0 ;
33752 int arg6 = (int) wxODDEVEN_RULE ;
33753 void *argp1 = 0 ;
33754 int res1 = 0 ;
33755 int val4 ;
33756 int ecode4 = 0 ;
33757 int val5 ;
33758 int ecode5 = 0 ;
33759 int val6 ;
33760 int ecode6 = 0 ;
33761 PyObject * obj0 = 0 ;
33762 PyObject * obj1 = 0 ;
33763 PyObject * obj2 = 0 ;
33764 PyObject * obj3 = 0 ;
33765 PyObject * obj4 = 0 ;
33766 char * kwnames[] = {
33767 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33768 };
33769
33770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33772 if (!SWIG_IsOK(res1)) {
33773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33774 }
33775 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33776 {
33777 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33778 if (arg3 == NULL) SWIG_fail;
33779 }
33780 if (obj2) {
33781 ecode4 = SWIG_AsVal_int(obj2, &val4);
33782 if (!SWIG_IsOK(ecode4)) {
33783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33784 }
33785 arg4 = static_cast< int >(val4);
33786 }
33787 if (obj3) {
33788 ecode5 = SWIG_AsVal_int(obj3, &val5);
33789 if (!SWIG_IsOK(ecode5)) {
33790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33791 }
33792 arg5 = static_cast< int >(val5);
33793 }
33794 if (obj4) {
33795 ecode6 = SWIG_AsVal_int(obj4, &val6);
33796 if (!SWIG_IsOK(ecode6)) {
33797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33798 }
33799 arg6 = static_cast< int >(val6);
33800 }
33801 {
33802 PyThreadState* __tstate = wxPyBeginAllowThreads();
33803 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33804 wxPyEndAllowThreads(__tstate);
33805 if (PyErr_Occurred()) SWIG_fail;
33806 }
33807 resultobj = SWIG_Py_Void();
33808 {
33809 if (arg3) delete [] arg3;
33810 }
33811 return resultobj;
33812 fail:
33813 {
33814 if (arg3) delete [] arg3;
33815 }
33816 return NULL;
33817 }
33818
33819
33820 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33821 PyObject *resultobj = 0;
33822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33823 wxString *arg2 = 0 ;
33824 wxRect *arg3 = 0 ;
33825 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33826 int arg5 = (int) -1 ;
33827 void *argp1 = 0 ;
33828 int res1 = 0 ;
33829 bool temp2 = false ;
33830 wxRect temp3 ;
33831 int val4 ;
33832 int ecode4 = 0 ;
33833 int val5 ;
33834 int ecode5 = 0 ;
33835 PyObject * obj0 = 0 ;
33836 PyObject * obj1 = 0 ;
33837 PyObject * obj2 = 0 ;
33838 PyObject * obj3 = 0 ;
33839 PyObject * obj4 = 0 ;
33840 char * kwnames[] = {
33841 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33842 };
33843
33844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33846 if (!SWIG_IsOK(res1)) {
33847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33848 }
33849 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33850 {
33851 arg2 = wxString_in_helper(obj1);
33852 if (arg2 == NULL) SWIG_fail;
33853 temp2 = true;
33854 }
33855 {
33856 arg3 = &temp3;
33857 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33858 }
33859 if (obj3) {
33860 ecode4 = SWIG_AsVal_int(obj3, &val4);
33861 if (!SWIG_IsOK(ecode4)) {
33862 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33863 }
33864 arg4 = static_cast< int >(val4);
33865 }
33866 if (obj4) {
33867 ecode5 = SWIG_AsVal_int(obj4, &val5);
33868 if (!SWIG_IsOK(ecode5)) {
33869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33870 }
33871 arg5 = static_cast< int >(val5);
33872 }
33873 {
33874 PyThreadState* __tstate = wxPyBeginAllowThreads();
33875 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33876 wxPyEndAllowThreads(__tstate);
33877 if (PyErr_Occurred()) SWIG_fail;
33878 }
33879 resultobj = SWIG_Py_Void();
33880 {
33881 if (temp2)
33882 delete arg2;
33883 }
33884 return resultobj;
33885 fail:
33886 {
33887 if (temp2)
33888 delete arg2;
33889 }
33890 return NULL;
33891 }
33892
33893
33894 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33895 PyObject *resultobj = 0;
33896 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33897 wxString *arg2 = 0 ;
33898 wxBitmap *arg3 = 0 ;
33899 wxRect *arg4 = 0 ;
33900 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33901 int arg6 = (int) -1 ;
33902 void *argp1 = 0 ;
33903 int res1 = 0 ;
33904 bool temp2 = false ;
33905 void *argp3 = 0 ;
33906 int res3 = 0 ;
33907 wxRect temp4 ;
33908 int val5 ;
33909 int ecode5 = 0 ;
33910 int val6 ;
33911 int ecode6 = 0 ;
33912 PyObject * obj0 = 0 ;
33913 PyObject * obj1 = 0 ;
33914 PyObject * obj2 = 0 ;
33915 PyObject * obj3 = 0 ;
33916 PyObject * obj4 = 0 ;
33917 PyObject * obj5 = 0 ;
33918 char * kwnames[] = {
33919 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33920 };
33921
33922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33924 if (!SWIG_IsOK(res1)) {
33925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33926 }
33927 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33928 {
33929 arg2 = wxString_in_helper(obj1);
33930 if (arg2 == NULL) SWIG_fail;
33931 temp2 = true;
33932 }
33933 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33934 if (!SWIG_IsOK(res3)) {
33935 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33936 }
33937 if (!argp3) {
33938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33939 }
33940 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33941 {
33942 arg4 = &temp4;
33943 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33944 }
33945 if (obj4) {
33946 ecode5 = SWIG_AsVal_int(obj4, &val5);
33947 if (!SWIG_IsOK(ecode5)) {
33948 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33949 }
33950 arg5 = static_cast< int >(val5);
33951 }
33952 if (obj5) {
33953 ecode6 = SWIG_AsVal_int(obj5, &val6);
33954 if (!SWIG_IsOK(ecode6)) {
33955 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33956 }
33957 arg6 = static_cast< int >(val6);
33958 }
33959 {
33960 PyThreadState* __tstate = wxPyBeginAllowThreads();
33961 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33962 wxPyEndAllowThreads(__tstate);
33963 if (PyErr_Occurred()) SWIG_fail;
33964 }
33965 resultobj = SWIG_Py_Void();
33966 {
33967 if (temp2)
33968 delete arg2;
33969 }
33970 return resultobj;
33971 fail:
33972 {
33973 if (temp2)
33974 delete arg2;
33975 }
33976 return NULL;
33977 }
33978
33979
33980 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33981 PyObject *resultobj = 0;
33982 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33983 int arg2 ;
33984 wxPoint *arg3 = (wxPoint *) 0 ;
33985 void *argp1 = 0 ;
33986 int res1 = 0 ;
33987 PyObject * obj0 = 0 ;
33988 PyObject * obj1 = 0 ;
33989 char * kwnames[] = {
33990 (char *) "self",(char *) "points", NULL
33991 };
33992
33993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33995 if (!SWIG_IsOK(res1)) {
33996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33997 }
33998 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33999 {
34000 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34001 if (arg3 == NULL) SWIG_fail;
34002 }
34003 {
34004 PyThreadState* __tstate = wxPyBeginAllowThreads();
34005 (arg1)->DrawSpline(arg2,arg3);
34006 wxPyEndAllowThreads(__tstate);
34007 if (PyErr_Occurred()) SWIG_fail;
34008 }
34009 resultobj = SWIG_Py_Void();
34010 {
34011 if (arg3) delete [] arg3;
34012 }
34013 return resultobj;
34014 fail:
34015 {
34016 if (arg3) delete [] arg3;
34017 }
34018 return NULL;
34019 }
34020
34021
34022 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34023 PyObject *resultobj = 0;
34024 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34025 void *argp1 = 0 ;
34026 int res1 = 0 ;
34027 PyObject *swig_obj[1] ;
34028
34029 if (!args) SWIG_fail;
34030 swig_obj[0] = args;
34031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34032 if (!SWIG_IsOK(res1)) {
34033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34034 }
34035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34036 {
34037 PyThreadState* __tstate = wxPyBeginAllowThreads();
34038 (arg1)->Clear();
34039 wxPyEndAllowThreads(__tstate);
34040 if (PyErr_Occurred()) SWIG_fail;
34041 }
34042 resultobj = SWIG_Py_Void();
34043 return resultobj;
34044 fail:
34045 return NULL;
34046 }
34047
34048
34049 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34050 PyObject *resultobj = 0;
34051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34052 wxFont *arg2 = 0 ;
34053 void *argp1 = 0 ;
34054 int res1 = 0 ;
34055 void *argp2 = 0 ;
34056 int res2 = 0 ;
34057 PyObject * obj0 = 0 ;
34058 PyObject * obj1 = 0 ;
34059 char * kwnames[] = {
34060 (char *) "self",(char *) "font", NULL
34061 };
34062
34063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34065 if (!SWIG_IsOK(res1)) {
34066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34067 }
34068 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34070 if (!SWIG_IsOK(res2)) {
34071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34072 }
34073 if (!argp2) {
34074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34075 }
34076 arg2 = reinterpret_cast< wxFont * >(argp2);
34077 {
34078 PyThreadState* __tstate = wxPyBeginAllowThreads();
34079 (arg1)->SetFont((wxFont const &)*arg2);
34080 wxPyEndAllowThreads(__tstate);
34081 if (PyErr_Occurred()) SWIG_fail;
34082 }
34083 resultobj = SWIG_Py_Void();
34084 return resultobj;
34085 fail:
34086 return NULL;
34087 }
34088
34089
34090 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34091 PyObject *resultobj = 0;
34092 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34093 wxPen *arg2 = 0 ;
34094 void *argp1 = 0 ;
34095 int res1 = 0 ;
34096 void *argp2 = 0 ;
34097 int res2 = 0 ;
34098 PyObject * obj0 = 0 ;
34099 PyObject * obj1 = 0 ;
34100 char * kwnames[] = {
34101 (char *) "self",(char *) "pen", NULL
34102 };
34103
34104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34106 if (!SWIG_IsOK(res1)) {
34107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34108 }
34109 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34110 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34111 if (!SWIG_IsOK(res2)) {
34112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34113 }
34114 if (!argp2) {
34115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34116 }
34117 arg2 = reinterpret_cast< wxPen * >(argp2);
34118 {
34119 PyThreadState* __tstate = wxPyBeginAllowThreads();
34120 (arg1)->SetPen((wxPen const &)*arg2);
34121 wxPyEndAllowThreads(__tstate);
34122 if (PyErr_Occurred()) SWIG_fail;
34123 }
34124 resultobj = SWIG_Py_Void();
34125 return resultobj;
34126 fail:
34127 return NULL;
34128 }
34129
34130
34131 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34132 PyObject *resultobj = 0;
34133 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34134 wxBrush *arg2 = 0 ;
34135 void *argp1 = 0 ;
34136 int res1 = 0 ;
34137 void *argp2 = 0 ;
34138 int res2 = 0 ;
34139 PyObject * obj0 = 0 ;
34140 PyObject * obj1 = 0 ;
34141 char * kwnames[] = {
34142 (char *) "self",(char *) "brush", NULL
34143 };
34144
34145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34147 if (!SWIG_IsOK(res1)) {
34148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34149 }
34150 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34152 if (!SWIG_IsOK(res2)) {
34153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34154 }
34155 if (!argp2) {
34156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34157 }
34158 arg2 = reinterpret_cast< wxBrush * >(argp2);
34159 {
34160 PyThreadState* __tstate = wxPyBeginAllowThreads();
34161 (arg1)->SetBrush((wxBrush const &)*arg2);
34162 wxPyEndAllowThreads(__tstate);
34163 if (PyErr_Occurred()) SWIG_fail;
34164 }
34165 resultobj = SWIG_Py_Void();
34166 return resultobj;
34167 fail:
34168 return NULL;
34169 }
34170
34171
34172 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34173 PyObject *resultobj = 0;
34174 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34175 wxBrush *arg2 = 0 ;
34176 void *argp1 = 0 ;
34177 int res1 = 0 ;
34178 void *argp2 = 0 ;
34179 int res2 = 0 ;
34180 PyObject * obj0 = 0 ;
34181 PyObject * obj1 = 0 ;
34182 char * kwnames[] = {
34183 (char *) "self",(char *) "brush", NULL
34184 };
34185
34186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34188 if (!SWIG_IsOK(res1)) {
34189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34190 }
34191 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34193 if (!SWIG_IsOK(res2)) {
34194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34195 }
34196 if (!argp2) {
34197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34198 }
34199 arg2 = reinterpret_cast< wxBrush * >(argp2);
34200 {
34201 PyThreadState* __tstate = wxPyBeginAllowThreads();
34202 (arg1)->SetBackground((wxBrush const &)*arg2);
34203 wxPyEndAllowThreads(__tstate);
34204 if (PyErr_Occurred()) SWIG_fail;
34205 }
34206 resultobj = SWIG_Py_Void();
34207 return resultobj;
34208 fail:
34209 return NULL;
34210 }
34211
34212
34213 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34214 PyObject *resultobj = 0;
34215 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34216 int arg2 ;
34217 void *argp1 = 0 ;
34218 int res1 = 0 ;
34219 int val2 ;
34220 int ecode2 = 0 ;
34221 PyObject * obj0 = 0 ;
34222 PyObject * obj1 = 0 ;
34223 char * kwnames[] = {
34224 (char *) "self",(char *) "mode", NULL
34225 };
34226
34227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34229 if (!SWIG_IsOK(res1)) {
34230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34231 }
34232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34233 ecode2 = SWIG_AsVal_int(obj1, &val2);
34234 if (!SWIG_IsOK(ecode2)) {
34235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34236 }
34237 arg2 = static_cast< int >(val2);
34238 {
34239 PyThreadState* __tstate = wxPyBeginAllowThreads();
34240 (arg1)->SetBackgroundMode(arg2);
34241 wxPyEndAllowThreads(__tstate);
34242 if (PyErr_Occurred()) SWIG_fail;
34243 }
34244 resultobj = SWIG_Py_Void();
34245 return resultobj;
34246 fail:
34247 return NULL;
34248 }
34249
34250
34251 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34252 PyObject *resultobj = 0;
34253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34254 wxPalette *arg2 = 0 ;
34255 void *argp1 = 0 ;
34256 int res1 = 0 ;
34257 void *argp2 = 0 ;
34258 int res2 = 0 ;
34259 PyObject * obj0 = 0 ;
34260 PyObject * obj1 = 0 ;
34261 char * kwnames[] = {
34262 (char *) "self",(char *) "palette", NULL
34263 };
34264
34265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34267 if (!SWIG_IsOK(res1)) {
34268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34269 }
34270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34272 if (!SWIG_IsOK(res2)) {
34273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34274 }
34275 if (!argp2) {
34276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34277 }
34278 arg2 = reinterpret_cast< wxPalette * >(argp2);
34279 {
34280 PyThreadState* __tstate = wxPyBeginAllowThreads();
34281 (arg1)->SetPalette((wxPalette const &)*arg2);
34282 wxPyEndAllowThreads(__tstate);
34283 if (PyErr_Occurred()) SWIG_fail;
34284 }
34285 resultobj = SWIG_Py_Void();
34286 return resultobj;
34287 fail:
34288 return NULL;
34289 }
34290
34291
34292 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34293 PyObject *resultobj = 0;
34294 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34295 wxColour *arg2 = 0 ;
34296 void *argp1 = 0 ;
34297 int res1 = 0 ;
34298 wxColour temp2 ;
34299 PyObject * obj0 = 0 ;
34300 PyObject * obj1 = 0 ;
34301 char * kwnames[] = {
34302 (char *) "self",(char *) "colour", NULL
34303 };
34304
34305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34307 if (!SWIG_IsOK(res1)) {
34308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34309 }
34310 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34311 {
34312 arg2 = &temp2;
34313 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34314 }
34315 {
34316 PyThreadState* __tstate = wxPyBeginAllowThreads();
34317 (arg1)->SetTextForeground((wxColour const &)*arg2);
34318 wxPyEndAllowThreads(__tstate);
34319 if (PyErr_Occurred()) SWIG_fail;
34320 }
34321 resultobj = SWIG_Py_Void();
34322 return resultobj;
34323 fail:
34324 return NULL;
34325 }
34326
34327
34328 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34329 PyObject *resultobj = 0;
34330 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34331 wxColour *arg2 = 0 ;
34332 void *argp1 = 0 ;
34333 int res1 = 0 ;
34334 wxColour temp2 ;
34335 PyObject * obj0 = 0 ;
34336 PyObject * obj1 = 0 ;
34337 char * kwnames[] = {
34338 (char *) "self",(char *) "colour", NULL
34339 };
34340
34341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34343 if (!SWIG_IsOK(res1)) {
34344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34345 }
34346 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34347 {
34348 arg2 = &temp2;
34349 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34350 }
34351 {
34352 PyThreadState* __tstate = wxPyBeginAllowThreads();
34353 (arg1)->SetTextBackground((wxColour const &)*arg2);
34354 wxPyEndAllowThreads(__tstate);
34355 if (PyErr_Occurred()) SWIG_fail;
34356 }
34357 resultobj = SWIG_Py_Void();
34358 return resultobj;
34359 fail:
34360 return NULL;
34361 }
34362
34363
34364 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34365 PyObject *resultobj = 0;
34366 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34367 int arg2 ;
34368 void *argp1 = 0 ;
34369 int res1 = 0 ;
34370 int val2 ;
34371 int ecode2 = 0 ;
34372 PyObject * obj0 = 0 ;
34373 PyObject * obj1 = 0 ;
34374 char * kwnames[] = {
34375 (char *) "self",(char *) "function", NULL
34376 };
34377
34378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34380 if (!SWIG_IsOK(res1)) {
34381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34382 }
34383 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34384 ecode2 = SWIG_AsVal_int(obj1, &val2);
34385 if (!SWIG_IsOK(ecode2)) {
34386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34387 }
34388 arg2 = static_cast< int >(val2);
34389 {
34390 PyThreadState* __tstate = wxPyBeginAllowThreads();
34391 (arg1)->SetLogicalFunction(arg2);
34392 wxPyEndAllowThreads(__tstate);
34393 if (PyErr_Occurred()) SWIG_fail;
34394 }
34395 resultobj = SWIG_Py_Void();
34396 return resultobj;
34397 fail:
34398 return NULL;
34399 }
34400
34401
34402 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34403 PyObject *obj;
34404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34405 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34406 return SWIG_Py_Void();
34407 }
34408
34409 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34410 return SWIG_Python_InitShadowInstance(args);
34411 }
34412
34413 static PyMethodDef SwigMethods[] = {
34414 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34415 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34416 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34417 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34418 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34419 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34420 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34421 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34422 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34423 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34424 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34425 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34426 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34427 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
34428 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34429 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34430 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34431 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34432 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34433 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34434 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34435 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34436 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34437 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34438 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34439 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34440 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34441 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34444 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
34445 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34446 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34447 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34448 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34449 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34450 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34451 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34452 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34453 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34454 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
34455 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34456 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34457 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34458 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34459 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34460 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34461 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34462 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34463 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
34464 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34465 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34466 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34467 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34468 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34469 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34470 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34471 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34474 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34475 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34476 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34477 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34478 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
34479 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34480 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34481 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34482 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34483 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34484 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34486 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34487 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34488 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
34489 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34490 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34491 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34492 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34493 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34494 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34495 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34496 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34497 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34498 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34499 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34500 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34501 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34502 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34503 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34504 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34505 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34506 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34507 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34508 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34509 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34510 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34511 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34512 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34513 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34514 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34515 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34516 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34517 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34518 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34519 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34520 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34521 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34522 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34523 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34524 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34525 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34526 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34527 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34528 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34529 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34530 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34531 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34532 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34533 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34534 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34535 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34536 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34537 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34538 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34539 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34540 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34541 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34542 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34543 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34544 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34545 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34546 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34547 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34548 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34549 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34550 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34551 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34552 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34553 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34554 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34555 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34556 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34557 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34558 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34559 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34561 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34562 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34563 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34564 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34565 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34566 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34567 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34568 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34569 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34570 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
34571 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34572 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34573 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34574 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34575 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34576 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34577 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34578 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34579 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34580 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34581 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34582 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34583 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34584 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34585 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34586 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34587 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34588 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34589 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34590 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34591 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34592 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34593 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34594 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34595 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34596 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34597 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34598 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34599 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34600 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34601 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34602 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
34603 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34604 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34605 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34610 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34611 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34612 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34613 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34614 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34616 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34617 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34618 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34619 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34620 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
34621 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
34622 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34623 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34624 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34625 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34626 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34627 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34628 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34629 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34630 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34631 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34632 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34633 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34634 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34635 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34636 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34637 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34638 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34639 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34640 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34641 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34642 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34643 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34644 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34645 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34646 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34647 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34648 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34649 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34650 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34651 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34652 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34653 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34654 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34655 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34656 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34657 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34658 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34659 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34660 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34661 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34662 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34663 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34664 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34665 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34666 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34667 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34668 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34669 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34670 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34671 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34672 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34673 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34674 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34675 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34676 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34677 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34678 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34679 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34680 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34681 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34682 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34683 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34684 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34685 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34686 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34687 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34688 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34689 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34690 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34691 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34692 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34693 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34694 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34695 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34696 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34697 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34698 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34699 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34700 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34701 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34702 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34703 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34704 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34705 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34706 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34708 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34710 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34711 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34712 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34713 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
34714 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34715 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34717 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34718 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34719 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34720 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34721 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34722 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34723 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34724 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34725 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34726 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34727 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34728 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34729 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34730 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34731 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34732 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34733 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34734 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34735 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34736 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34737 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34738 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34739 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34740 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34741 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34742 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34743 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34744 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34745 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34746 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34747 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34748 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34749 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34750 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34751 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34752 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34753 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
34754 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34755 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34756 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
34757 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34758 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34759 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34760 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34761 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34762 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34763 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34764 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34765 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34766 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34767 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34768 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34769 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34770 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34771 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34772 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34773 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34774 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34775 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34776 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34777 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34778 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
34780 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34781 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34783 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34785 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34788 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34789 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
34790 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34792 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34793 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34794 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34795 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34796 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
34797 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34798 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34799 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34800 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34801 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34802 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34803 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34804 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34805 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34806 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34807 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34808 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34809 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34810 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34811 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34812 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34813 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34814 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34815 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34816 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34819 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34820 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34821 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34822 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34830 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34832 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34835 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34837 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34838 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34842 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34848 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34850 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34853 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34854 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34856 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34857 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34858 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34860 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34861 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34862 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34863 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34865 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34866 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34867 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34868 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34869 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34870 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34871 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34872 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34873 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34875 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34876 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34877 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34878 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34879 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34880 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34881 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34882 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34883 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34884 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34885 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34888 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34889 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34890 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34891 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34892 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
34893 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
34894 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34895 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34896 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34897 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34898 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34899 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34900 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34901 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34902 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34903 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34904 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34905 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34906 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34907 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34908 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34909 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34910 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34911 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34912 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34913 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34914 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34915 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34916 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34917 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34919 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34921 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34922 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34923 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34924 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34925 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34926 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34927 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34928 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
34929 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34930 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
34931 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34932 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34935 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34936 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34937 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
34938 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
34939 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34940 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34941 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34942 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34943 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34944 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34945 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34946 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34947 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34948 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
34949 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34950 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34951 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
34952 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34953 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34954 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34955 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34957 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
34958 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34959 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34960 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34961 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34962 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34963 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34964 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34965 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34966 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34967 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
34968 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
34969 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
34970 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34971 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34972 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34973 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34974 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34975 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34976 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34977 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34978 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34979 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34980 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34981 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34982 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34983 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34984 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34985 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34986 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34987 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34988 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
34989 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34990 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34992 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34993 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34994 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34995 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34996 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34997 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34998 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34999 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35001 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35002 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35003 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
35004 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35005 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35006 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35007 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35009 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
35010 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
35011 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35012 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35013 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35014 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35015 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35016 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35017 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35018 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35019 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35020 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35021 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35022 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35023 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35024 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35025 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35026 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35027 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35028 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35029 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35030 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35031 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
35032 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35033 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35034 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35035 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35036 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35037 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35038 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35039 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
35040 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
35041 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35042 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35043 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35044 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35045 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35046 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35047 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35048 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35049 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35050 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35051 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35052 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
35053 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35054 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35055 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35056 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35057 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35058 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35059 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35060 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35061 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35062 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35063 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35064 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35065 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35066 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35067 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35068 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35069 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35070 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35071 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35072 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35073 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35074 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35075 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35076 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35077 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35078 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35079 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35080 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35081 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35082 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35083 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35084 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35085 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35086 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35087 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35088 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35089 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35090 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35091 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35092 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35093 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35094 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35095 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35096 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35097 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35098 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35099 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35100 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35101 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35102 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35103 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35104 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35105 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35106 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35107 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35108 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35109 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35110 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35111 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35112 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35113 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35114 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35115 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35116 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35117 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35118 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35119 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35120 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35121 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35122 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35123 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35124 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35125 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35126 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35127 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35128 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35129 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35130 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35131 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35132 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35133 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35134 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35135 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35136 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35137 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35138 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35139 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35140 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35141 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35142 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35143 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35144 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35145 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35146 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35147 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35148 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35149 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35150 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35151 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35152 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35153 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35154 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35155 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35156 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35157 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35158 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35159 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35160 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35161 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35162 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35163 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35164 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35165 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35168 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35169 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35170 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35171 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35172 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35173 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35174 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35175 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35176 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35177 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35178 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35179 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35181 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35182 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35184 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35186 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35187 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35188 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35189 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35190 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35191 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35192 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35193 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35194 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35197 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35198 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35201 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35202 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35203 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35204 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35205 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35206 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35207 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35208 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35209 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35210 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35216 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35217 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35218 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35219 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35221 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35222 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35223 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35225 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35226 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35227 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35228 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35229 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35230 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35231 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35232 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35233 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35234 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35235 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35236 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35237 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35238 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35239 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35240 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35241 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35242 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35243 { NULL, NULL, 0, NULL }
35244 };
35245
35246
35247 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35248
35249 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35250 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35251 }
35252 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35253 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35254 }
35255 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35256 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35257 }
35258 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35259 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35260 }
35261 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35262 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35263 }
35264 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35265 return (void *)((wxLocale *) ((wxPyLocale *) x));
35266 }
35267 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35268 return (void *)((wxGDIObject *) ((wxIcon *) x));
35269 }
35270 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35271 return (void *)((wxGDIObject *) ((wxPalette *) x));
35272 }
35273 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35274 return (void *)((wxGDIObject *) ((wxPen *) x));
35275 }
35276 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35277 return (void *)((wxGDIObject *) ((wxFont *) x));
35278 }
35279 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35280 return (void *)((wxGDIObject *) ((wxCursor *) x));
35281 }
35282 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35283 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35284 }
35285 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35286 return (void *)((wxGDIObject *) ((wxRegion *) x));
35287 }
35288 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35289 return (void *)((wxGDIObject *) ((wxBrush *) x));
35290 }
35291 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35292 return (void *)((wxDC *) ((wxGCDC *) x));
35293 }
35294 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35295 return (void *)((wxDC *) ((wxScreenDC *) x));
35296 }
35297 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35298 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35299 }
35300 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35301 return (void *)((wxDC *) ((wxMirrorDC *) x));
35302 }
35303 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35304 return (void *)((wxDC *) ((wxMemoryDC *) x));
35305 }
35306 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35307 return (void *)((wxDC *) ((wxWindowDC *) x));
35308 }
35309 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35310 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35311 }
35312 static void *_p_wxClientDCTo_p_wxDC(void *x) {
35313 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
35314 }
35315 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
35316 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35317 }
35318 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35319 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35320 }
35321 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
35322 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
35323 }
35324 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35325 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35326 }
35327 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35328 return (void *)((wxDC *) ((wxPrinterDC *) x));
35329 }
35330 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35331 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35332 }
35333 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35334 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35335 }
35336 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35337 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35338 }
35339 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35340 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35341 }
35342 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35343 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35344 }
35345 static void *_p_wxPenTo_p_wxObject(void *x) {
35346 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35347 }
35348 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35349 return (void *)((wxObject *) ((wxRegionIterator *) x));
35350 }
35351 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35352 return (void *)((wxObject *) ((wxSizerItem *) x));
35353 }
35354 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35355 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35356 }
35357 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35358 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35359 }
35360 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35361 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35362 }
35363 static void *_p_wxIconTo_p_wxObject(void *x) {
35364 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35365 }
35366 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35367 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35368 }
35369 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35370 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35371 }
35372 static void *_p_wxSizerTo_p_wxObject(void *x) {
35373 return (void *)((wxObject *) ((wxSizer *) x));
35374 }
35375 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35376 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35377 }
35378 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35379 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35380 }
35381 static void *_p_wxEventTo_p_wxObject(void *x) {
35382 return (void *)((wxObject *) ((wxEvent *) x));
35383 }
35384 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35385 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35386 }
35387 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35388 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35389 }
35390 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35391 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35392 }
35393 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35394 return (void *)((wxObject *) ((wxPseudoDC *) x));
35395 }
35396 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35397 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35398 }
35399 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35400 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35401 }
35402 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35403 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35404 }
35405 static void *_p_wxDCTo_p_wxObject(void *x) {
35406 return (void *)((wxObject *) ((wxDC *) x));
35407 }
35408 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35409 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35410 }
35411 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35412 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35413 }
35414 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35415 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35416 }
35417 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35418 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35419 }
35420 static void *_p_wxControlTo_p_wxObject(void *x) {
35421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35422 }
35423 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35424 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35425 }
35426 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35427 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35428 }
35429 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35430 return (void *)((wxObject *) ((wxFSFile *) x));
35431 }
35432 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35433 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35434 }
35435 static void *_p_wxRegionTo_p_wxObject(void *x) {
35436 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35437 }
35438 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35439 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35440 }
35441 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35442 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35443 }
35444 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35445 return (void *)((wxObject *) ((wxGDIObject *) x));
35446 }
35447 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35448 return (void *)((wxObject *) ((wxEffects *) x));
35449 }
35450 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35451 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35452 }
35453 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35454 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35455 }
35456 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35457 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35458 }
35459 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35460 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35461 }
35462 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35463 return (void *)((wxObject *) ((wxMenuItem *) x));
35464 }
35465 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35466 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35467 }
35468 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35469 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35470 }
35471 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35472 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35473 }
35474 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35475 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35476 }
35477 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35478 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35479 }
35480 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35481 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35482 }
35483 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35484 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35485 }
35486 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35487 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35488 }
35489 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35490 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35491 }
35492 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35493 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35494 }
35495 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35496 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35497 }
35498 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35499 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35500 }
35501 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35502 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35503 }
35504 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35505 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35506 }
35507 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35508 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35509 }
35510 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35511 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35512 }
35513 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35514 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35515 }
35516 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35517 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35518 }
35519 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35520 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35521 }
35522 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35523 return (void *)((wxObject *) ((wxImageHandler *) x));
35524 }
35525 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35526 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35527 }
35528 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35529 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35530 }
35531 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35532 return (void *)((wxObject *) ((wxEvtHandler *) x));
35533 }
35534 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35535 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35536 }
35537 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35538 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35539 }
35540 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35541 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35542 }
35543 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
35544 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
35545 }
35546 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35547 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35548 }
35549 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35550 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35551 }
35552 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35553 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35554 }
35555 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35556 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35557 }
35558 static void *_p_wxImageTo_p_wxObject(void *x) {
35559 return (void *)((wxObject *) ((wxImage *) x));
35560 }
35561 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35562 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35563 }
35564 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35565 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35566 }
35567 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35568 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35569 }
35570 static void *_p_wxImageListTo_p_wxObject(void *x) {
35571 return (void *)((wxObject *) ((wxImageList *) x));
35572 }
35573 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35574 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35575 }
35576 static void *_p_wxCursorTo_p_wxObject(void *x) {
35577 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35578 }
35579 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35580 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35581 }
35582 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35583 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35584 }
35585 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35586 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35587 }
35588 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35589 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35590 }
35591 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35592 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35593 }
35594 static void *_p_wxWindowTo_p_wxObject(void *x) {
35595 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35596 }
35597 static void *_p_wxMenuTo_p_wxObject(void *x) {
35598 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35599 }
35600 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35601 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35602 }
35603 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35604 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35605 }
35606 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35607 return (void *)((wxObject *) ((wxFileSystem *) x));
35608 }
35609 static void *_p_wxBitmapTo_p_wxObject(void *x) {
35610 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35611 }
35612 static void *_p_wxMaskTo_p_wxObject(void *x) {
35613 return (void *)((wxObject *) ((wxMask *) x));
35614 }
35615 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35617 }
35618 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35619 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35620 }
35621 static void *_p_wxPyAppTo_p_wxObject(void *x) {
35622 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35623 }
35624 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35625 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35626 }
35627 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35628 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35629 }
35630 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35631 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35632 }
35633 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35635 }
35636 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35637 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35638 }
35639 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35640 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35641 }
35642 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35643 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35644 }
35645 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35646 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35647 }
35648 static void *_p_wxFontTo_p_wxObject(void *x) {
35649 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35650 }
35651 static void *_p_wxBrushTo_p_wxObject(void *x) {
35652 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35653 }
35654 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35655 return (void *)((wxObject *) ((wxMetaFile *) x));
35656 }
35657 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35658 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35659 }
35660 static void *_p_wxColourTo_p_wxObject(void *x) {
35661 return (void *)((wxObject *) ((wxColour *) x));
35662 }
35663 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35664 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35665 }
35666 static void *_p_wxValidatorTo_p_wxObject(void *x) {
35667 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35668 }
35669 static void *_p_wxControlTo_p_wxWindow(void *x) {
35670 return (void *)((wxWindow *) ((wxControl *) x));
35671 }
35672 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35673 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35674 }
35675 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35676 return (void *)((wxWindow *) ((wxMenuBar *) x));
35677 }
35678 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35679 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35680 }
35681 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35682 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35683 }
35684 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
35685 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
35686 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
35687 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};
35688 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35689 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35690 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35691 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
35692 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
35693 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35694 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
35695 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
35696 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35697 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35698 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35699 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35700 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
35701 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
35702 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
35703 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
35704 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35705 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35706 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35707 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35708 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
35709 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35710 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35711 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35712 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35713 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35714 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35715 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
35716 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
35717 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
35718 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
35719 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35720 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
35721 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
35722 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35723 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35724 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35725 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35726 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35727 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35728 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35729 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35730 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35731 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35732 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35733 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35734 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35735 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
35736 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35737 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
35738 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35739 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
35740 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
35741 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
35742 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35743 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35744 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35745 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35746 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35747 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35748 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35749 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35750 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35751 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35752 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35753 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
35754 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
35755 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35756 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35757 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35758 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35759 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35760 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35761 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35762 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35763 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35764 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35765 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35766 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35767 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35768 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35769 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35770 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35771 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35772 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35773 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35774 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35775 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35776 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35777 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
35778 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35779 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35780 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35781 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35782 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35783 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35784 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
35785 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35786 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
35787 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
35788 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
35789 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35790 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35791 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
35792 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
35793 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35794 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35795 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35796 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35797 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35798 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35799 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35800 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35801 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35802 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35803 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35804 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35805 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35806 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35807 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35808 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35809 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35810 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35811 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35812 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35813 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35814 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
35815 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
35816 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35817 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35818 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35819 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35820 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
35821 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
35822 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
35823 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
35824 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35825 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35826 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
35827 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
35828 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
35829 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
35830 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35831 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35832 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35833 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35834 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35835 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35836 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35837 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
35838 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
35839 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35840 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35841 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35842
35843 static swig_type_info *swig_type_initial[] = {
35844 &_swigt__p_buffer,
35845 &_swigt__p_char,
35846 &_swigt__p_double,
35847 &_swigt__p_form_ops_t,
35848 &_swigt__p_int,
35849 &_swigt__p_unsigned_char,
35850 &_swigt__p_unsigned_int,
35851 &_swigt__p_unsigned_long,
35852 &_swigt__p_void,
35853 &_swigt__p_wxANIHandler,
35854 &_swigt__p_wxAcceleratorTable,
35855 &_swigt__p_wxActivateEvent,
35856 &_swigt__p_wxAlphaPixelData,
35857 &_swigt__p_wxAlphaPixelData_Accessor,
35858 &_swigt__p_wxAutoBufferedPaintDC,
35859 &_swigt__p_wxBMPHandler,
35860 &_swigt__p_wxBitmap,
35861 &_swigt__p_wxBoxSizer,
35862 &_swigt__p_wxBrush,
35863 &_swigt__p_wxBrushList,
35864 &_swigt__p_wxBufferedDC,
35865 &_swigt__p_wxBufferedPaintDC,
35866 &_swigt__p_wxCURHandler,
35867 &_swigt__p_wxChar,
35868 &_swigt__p_wxChildFocusEvent,
35869 &_swigt__p_wxClientDC,
35870 &_swigt__p_wxClipboardTextEvent,
35871 &_swigt__p_wxCloseEvent,
35872 &_swigt__p_wxColor,
35873 &_swigt__p_wxColour,
35874 &_swigt__p_wxColourDatabase,
35875 &_swigt__p_wxCommandEvent,
35876 &_swigt__p_wxContextMenuEvent,
35877 &_swigt__p_wxControl,
35878 &_swigt__p_wxControlWithItems,
35879 &_swigt__p_wxCursor,
35880 &_swigt__p_wxDC,
35881 &_swigt__p_wxDCOverlay,
35882 &_swigt__p_wxDash,
35883 &_swigt__p_wxDateEvent,
35884 &_swigt__p_wxDisplayChangedEvent,
35885 &_swigt__p_wxDropFilesEvent,
35886 &_swigt__p_wxDuplexMode,
35887 &_swigt__p_wxEffects,
35888 &_swigt__p_wxEncodingConverter,
35889 &_swigt__p_wxEraseEvent,
35890 &_swigt__p_wxEvent,
35891 &_swigt__p_wxEvtHandler,
35892 &_swigt__p_wxFSFile,
35893 &_swigt__p_wxFileSystem,
35894 &_swigt__p_wxFlexGridSizer,
35895 &_swigt__p_wxFocusEvent,
35896 &_swigt__p_wxFont,
35897 &_swigt__p_wxFontList,
35898 &_swigt__p_wxFontMapper,
35899 &_swigt__p_wxGBSizerItem,
35900 &_swigt__p_wxGCDC,
35901 &_swigt__p_wxGDIObjListBase,
35902 &_swigt__p_wxGDIObject,
35903 &_swigt__p_wxGIFHandler,
35904 &_swigt__p_wxGraphicsContext,
35905 &_swigt__p_wxGraphicsPath,
35906 &_swigt__p_wxGridBagSizer,
35907 &_swigt__p_wxGridSizer,
35908 &_swigt__p_wxHeaderButtonParams,
35909 &_swigt__p_wxICOHandler,
35910 &_swigt__p_wxIcon,
35911 &_swigt__p_wxIconBundle,
35912 &_swigt__p_wxIconLocation,
35913 &_swigt__p_wxIconizeEvent,
35914 &_swigt__p_wxIdleEvent,
35915 &_swigt__p_wxImage,
35916 &_swigt__p_wxImageHandler,
35917 &_swigt__p_wxImageList,
35918 &_swigt__p_wxIndividualLayoutConstraint,
35919 &_swigt__p_wxInitDialogEvent,
35920 &_swigt__p_wxJPEGHandler,
35921 &_swigt__p_wxKeyEvent,
35922 &_swigt__p_wxLanguageInfo,
35923 &_swigt__p_wxLayoutConstraints,
35924 &_swigt__p_wxLocale,
35925 &_swigt__p_wxMask,
35926 &_swigt__p_wxMaximizeEvent,
35927 &_swigt__p_wxMemoryDC,
35928 &_swigt__p_wxMenu,
35929 &_swigt__p_wxMenuBar,
35930 &_swigt__p_wxMenuEvent,
35931 &_swigt__p_wxMenuItem,
35932 &_swigt__p_wxMetaFile,
35933 &_swigt__p_wxMetaFileDC,
35934 &_swigt__p_wxMirrorDC,
35935 &_swigt__p_wxMouseCaptureChangedEvent,
35936 &_swigt__p_wxMouseCaptureLostEvent,
35937 &_swigt__p_wxMouseEvent,
35938 &_swigt__p_wxMoveEvent,
35939 &_swigt__p_wxNativeEncodingInfo,
35940 &_swigt__p_wxNativeFontInfo,
35941 &_swigt__p_wxNativePixelData,
35942 &_swigt__p_wxNativePixelData_Accessor,
35943 &_swigt__p_wxNavigationKeyEvent,
35944 &_swigt__p_wxNcPaintEvent,
35945 &_swigt__p_wxNotifyEvent,
35946 &_swigt__p_wxObject,
35947 &_swigt__p_wxOverlay,
35948 &_swigt__p_wxPCXHandler,
35949 &_swigt__p_wxPNGHandler,
35950 &_swigt__p_wxPNMHandler,
35951 &_swigt__p_wxPaintDC,
35952 &_swigt__p_wxPaintEvent,
35953 &_swigt__p_wxPalette,
35954 &_swigt__p_wxPaletteChangedEvent,
35955 &_swigt__p_wxPaperSize,
35956 &_swigt__p_wxPen,
35957 &_swigt__p_wxPenList,
35958 &_swigt__p_wxPixelDataBase,
35959 &_swigt__p_wxPoint,
35960 &_swigt__p_wxPoint2D,
35961 &_swigt__p_wxPostScriptDC,
35962 &_swigt__p_wxPrintData,
35963 &_swigt__p_wxPrinterDC,
35964 &_swigt__p_wxPseudoDC,
35965 &_swigt__p_wxPyApp,
35966 &_swigt__p_wxPyCommandEvent,
35967 &_swigt__p_wxPyEvent,
35968 &_swigt__p_wxPyFontEnumerator,
35969 &_swigt__p_wxPyImageHandler,
35970 &_swigt__p_wxPyLocale,
35971 &_swigt__p_wxPySizer,
35972 &_swigt__p_wxPyValidator,
35973 &_swigt__p_wxQueryNewPaletteEvent,
35974 &_swigt__p_wxRect,
35975 &_swigt__p_wxRegion,
35976 &_swigt__p_wxRegionIterator,
35977 &_swigt__p_wxRendererNative,
35978 &_swigt__p_wxRendererVersion,
35979 &_swigt__p_wxScreenDC,
35980 &_swigt__p_wxScrollEvent,
35981 &_swigt__p_wxScrollWinEvent,
35982 &_swigt__p_wxSetCursorEvent,
35983 &_swigt__p_wxShowEvent,
35984 &_swigt__p_wxSize,
35985 &_swigt__p_wxSizeEvent,
35986 &_swigt__p_wxSizer,
35987 &_swigt__p_wxSizerItem,
35988 &_swigt__p_wxSplitterRenderParams,
35989 &_swigt__p_wxStaticBoxSizer,
35990 &_swigt__p_wxStdDialogButtonSizer,
35991 &_swigt__p_wxStockGDI,
35992 &_swigt__p_wxString,
35993 &_swigt__p_wxSysColourChangedEvent,
35994 &_swigt__p_wxTIFFHandler,
35995 &_swigt__p_wxUpdateUIEvent,
35996 &_swigt__p_wxValidator,
35997 &_swigt__p_wxWindow,
35998 &_swigt__p_wxWindowCreateEvent,
35999 &_swigt__p_wxWindowDC,
36000 &_swigt__p_wxWindowDestroyEvent,
36001 &_swigt__p_wxXPMHandler,
36002 };
36003
36004 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36005 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36006 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36007 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36008 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36009 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36010 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36011 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36012 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
36013 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36014 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36015 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36016 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36017 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36018 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36019 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}};
36020 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36021 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36022 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}};
36023 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36024 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36025 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36026 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36027 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}};
36028 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
36029 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36030 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36031 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36032 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36033 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36034 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36035 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36036 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36037 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}};
36038 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}};
36039 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36040 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36041 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36042 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36043 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36044 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36045 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36046 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36047 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36048 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}};
36049 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36050 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}};
36051 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36052 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36053 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36054 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36055 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36056 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36057 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36058 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36059 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36060 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36061 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36062 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36063 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36064 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36065 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36066 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36067 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36068 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36069 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36070 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36071 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36072 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36073 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36074 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36075 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36076 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36077 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36078 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36079 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36080 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36081 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36082 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36083 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36084 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36085 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36086 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36087 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36088 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36089 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36090 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36091 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36092 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36093 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36094 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36095 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36096 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36097 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36098 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36099 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36100 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36101 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36102 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36103 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36104 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36105 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36106 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36107 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36108 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36109 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36110 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36111 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36112 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36113 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36114 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36115 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36116 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36117 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36118 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36119 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36120 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36121 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36122 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36123 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36124 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36125 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36126 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36127 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36128 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36129 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36130 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36131 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36132 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36133 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36134 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}};
36135 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
36136 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36137 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36138 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36139 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36140 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36141 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}};
36142 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36143 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36144 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36145 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36146 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36147 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36148 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36149 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36150 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36151 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36152 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36153 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36154 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36155 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36156 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36157 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36158 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36159 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36160 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}};
36161 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}};
36162
36163 static swig_cast_info *swig_cast_initial[] = {
36164 _swigc__p_buffer,
36165 _swigc__p_char,
36166 _swigc__p_double,
36167 _swigc__p_form_ops_t,
36168 _swigc__p_int,
36169 _swigc__p_unsigned_char,
36170 _swigc__p_unsigned_int,
36171 _swigc__p_unsigned_long,
36172 _swigc__p_void,
36173 _swigc__p_wxANIHandler,
36174 _swigc__p_wxAcceleratorTable,
36175 _swigc__p_wxActivateEvent,
36176 _swigc__p_wxAlphaPixelData,
36177 _swigc__p_wxAlphaPixelData_Accessor,
36178 _swigc__p_wxAutoBufferedPaintDC,
36179 _swigc__p_wxBMPHandler,
36180 _swigc__p_wxBitmap,
36181 _swigc__p_wxBoxSizer,
36182 _swigc__p_wxBrush,
36183 _swigc__p_wxBrushList,
36184 _swigc__p_wxBufferedDC,
36185 _swigc__p_wxBufferedPaintDC,
36186 _swigc__p_wxCURHandler,
36187 _swigc__p_wxChar,
36188 _swigc__p_wxChildFocusEvent,
36189 _swigc__p_wxClientDC,
36190 _swigc__p_wxClipboardTextEvent,
36191 _swigc__p_wxCloseEvent,
36192 _swigc__p_wxColor,
36193 _swigc__p_wxColour,
36194 _swigc__p_wxColourDatabase,
36195 _swigc__p_wxCommandEvent,
36196 _swigc__p_wxContextMenuEvent,
36197 _swigc__p_wxControl,
36198 _swigc__p_wxControlWithItems,
36199 _swigc__p_wxCursor,
36200 _swigc__p_wxDC,
36201 _swigc__p_wxDCOverlay,
36202 _swigc__p_wxDash,
36203 _swigc__p_wxDateEvent,
36204 _swigc__p_wxDisplayChangedEvent,
36205 _swigc__p_wxDropFilesEvent,
36206 _swigc__p_wxDuplexMode,
36207 _swigc__p_wxEffects,
36208 _swigc__p_wxEncodingConverter,
36209 _swigc__p_wxEraseEvent,
36210 _swigc__p_wxEvent,
36211 _swigc__p_wxEvtHandler,
36212 _swigc__p_wxFSFile,
36213 _swigc__p_wxFileSystem,
36214 _swigc__p_wxFlexGridSizer,
36215 _swigc__p_wxFocusEvent,
36216 _swigc__p_wxFont,
36217 _swigc__p_wxFontList,
36218 _swigc__p_wxFontMapper,
36219 _swigc__p_wxGBSizerItem,
36220 _swigc__p_wxGCDC,
36221 _swigc__p_wxGDIObjListBase,
36222 _swigc__p_wxGDIObject,
36223 _swigc__p_wxGIFHandler,
36224 _swigc__p_wxGraphicsContext,
36225 _swigc__p_wxGraphicsPath,
36226 _swigc__p_wxGridBagSizer,
36227 _swigc__p_wxGridSizer,
36228 _swigc__p_wxHeaderButtonParams,
36229 _swigc__p_wxICOHandler,
36230 _swigc__p_wxIcon,
36231 _swigc__p_wxIconBundle,
36232 _swigc__p_wxIconLocation,
36233 _swigc__p_wxIconizeEvent,
36234 _swigc__p_wxIdleEvent,
36235 _swigc__p_wxImage,
36236 _swigc__p_wxImageHandler,
36237 _swigc__p_wxImageList,
36238 _swigc__p_wxIndividualLayoutConstraint,
36239 _swigc__p_wxInitDialogEvent,
36240 _swigc__p_wxJPEGHandler,
36241 _swigc__p_wxKeyEvent,
36242 _swigc__p_wxLanguageInfo,
36243 _swigc__p_wxLayoutConstraints,
36244 _swigc__p_wxLocale,
36245 _swigc__p_wxMask,
36246 _swigc__p_wxMaximizeEvent,
36247 _swigc__p_wxMemoryDC,
36248 _swigc__p_wxMenu,
36249 _swigc__p_wxMenuBar,
36250 _swigc__p_wxMenuEvent,
36251 _swigc__p_wxMenuItem,
36252 _swigc__p_wxMetaFile,
36253 _swigc__p_wxMetaFileDC,
36254 _swigc__p_wxMirrorDC,
36255 _swigc__p_wxMouseCaptureChangedEvent,
36256 _swigc__p_wxMouseCaptureLostEvent,
36257 _swigc__p_wxMouseEvent,
36258 _swigc__p_wxMoveEvent,
36259 _swigc__p_wxNativeEncodingInfo,
36260 _swigc__p_wxNativeFontInfo,
36261 _swigc__p_wxNativePixelData,
36262 _swigc__p_wxNativePixelData_Accessor,
36263 _swigc__p_wxNavigationKeyEvent,
36264 _swigc__p_wxNcPaintEvent,
36265 _swigc__p_wxNotifyEvent,
36266 _swigc__p_wxObject,
36267 _swigc__p_wxOverlay,
36268 _swigc__p_wxPCXHandler,
36269 _swigc__p_wxPNGHandler,
36270 _swigc__p_wxPNMHandler,
36271 _swigc__p_wxPaintDC,
36272 _swigc__p_wxPaintEvent,
36273 _swigc__p_wxPalette,
36274 _swigc__p_wxPaletteChangedEvent,
36275 _swigc__p_wxPaperSize,
36276 _swigc__p_wxPen,
36277 _swigc__p_wxPenList,
36278 _swigc__p_wxPixelDataBase,
36279 _swigc__p_wxPoint,
36280 _swigc__p_wxPoint2D,
36281 _swigc__p_wxPostScriptDC,
36282 _swigc__p_wxPrintData,
36283 _swigc__p_wxPrinterDC,
36284 _swigc__p_wxPseudoDC,
36285 _swigc__p_wxPyApp,
36286 _swigc__p_wxPyCommandEvent,
36287 _swigc__p_wxPyEvent,
36288 _swigc__p_wxPyFontEnumerator,
36289 _swigc__p_wxPyImageHandler,
36290 _swigc__p_wxPyLocale,
36291 _swigc__p_wxPySizer,
36292 _swigc__p_wxPyValidator,
36293 _swigc__p_wxQueryNewPaletteEvent,
36294 _swigc__p_wxRect,
36295 _swigc__p_wxRegion,
36296 _swigc__p_wxRegionIterator,
36297 _swigc__p_wxRendererNative,
36298 _swigc__p_wxRendererVersion,
36299 _swigc__p_wxScreenDC,
36300 _swigc__p_wxScrollEvent,
36301 _swigc__p_wxScrollWinEvent,
36302 _swigc__p_wxSetCursorEvent,
36303 _swigc__p_wxShowEvent,
36304 _swigc__p_wxSize,
36305 _swigc__p_wxSizeEvent,
36306 _swigc__p_wxSizer,
36307 _swigc__p_wxSizerItem,
36308 _swigc__p_wxSplitterRenderParams,
36309 _swigc__p_wxStaticBoxSizer,
36310 _swigc__p_wxStdDialogButtonSizer,
36311 _swigc__p_wxStockGDI,
36312 _swigc__p_wxString,
36313 _swigc__p_wxSysColourChangedEvent,
36314 _swigc__p_wxTIFFHandler,
36315 _swigc__p_wxUpdateUIEvent,
36316 _swigc__p_wxValidator,
36317 _swigc__p_wxWindow,
36318 _swigc__p_wxWindowCreateEvent,
36319 _swigc__p_wxWindowDC,
36320 _swigc__p_wxWindowDestroyEvent,
36321 _swigc__p_wxXPMHandler,
36322 };
36323
36324
36325 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36326
36327 static swig_const_info swig_const_table[] = {
36328 {0, 0, 0, 0.0, 0, 0}};
36329
36330 #ifdef __cplusplus
36331 }
36332 #endif
36333 /* -----------------------------------------------------------------------------
36334 * Type initialization:
36335 * This problem is tough by the requirement that no dynamic
36336 * memory is used. Also, since swig_type_info structures store pointers to
36337 * swig_cast_info structures and swig_cast_info structures store pointers back
36338 * to swig_type_info structures, we need some lookup code at initialization.
36339 * The idea is that swig generates all the structures that are needed.
36340 * The runtime then collects these partially filled structures.
36341 * The SWIG_InitializeModule function takes these initial arrays out of
36342 * swig_module, and does all the lookup, filling in the swig_module.types
36343 * array with the correct data and linking the correct swig_cast_info
36344 * structures together.
36345 *
36346 * The generated swig_type_info structures are assigned staticly to an initial
36347 * array. We just loop though that array, and handle each type individually.
36348 * First we lookup if this type has been already loaded, and if so, use the
36349 * loaded structure instead of the generated one. Then we have to fill in the
36350 * cast linked list. The cast data is initially stored in something like a
36351 * two-dimensional array. Each row corresponds to a type (there are the same
36352 * number of rows as there are in the swig_type_initial array). Each entry in
36353 * a column is one of the swig_cast_info structures for that type.
36354 * The cast_initial array is actually an array of arrays, because each row has
36355 * a variable number of columns. So to actually build the cast linked list,
36356 * we find the array of casts associated with the type, and loop through it
36357 * adding the casts to the list. The one last trick we need to do is making
36358 * sure the type pointer in the swig_cast_info struct is correct.
36359 *
36360 * First off, we lookup the cast->type name to see if it is already loaded.
36361 * There are three cases to handle:
36362 * 1) If the cast->type has already been loaded AND the type we are adding
36363 * casting info to has not been loaded (it is in this module), THEN we
36364 * replace the cast->type pointer with the type pointer that has already
36365 * been loaded.
36366 * 2) If BOTH types (the one we are adding casting info to, and the
36367 * cast->type) are loaded, THEN the cast info has already been loaded by
36368 * the previous module so we just ignore it.
36369 * 3) Finally, if cast->type has not already been loaded, then we add that
36370 * swig_cast_info to the linked list (because the cast->type) pointer will
36371 * be correct.
36372 * ----------------------------------------------------------------------------- */
36373
36374 #ifdef __cplusplus
36375 extern "C" {
36376 #if 0
36377 } /* c-mode */
36378 #endif
36379 #endif
36380
36381 #if 0
36382 #define SWIGRUNTIME_DEBUG
36383 #endif
36384
36385 SWIGRUNTIME void
36386 SWIG_InitializeModule(void *clientdata) {
36387 size_t i;
36388 swig_module_info *module_head;
36389 static int init_run = 0;
36390
36391 clientdata = clientdata;
36392
36393 if (init_run) return;
36394 init_run = 1;
36395
36396 /* Initialize the swig_module */
36397 swig_module.type_initial = swig_type_initial;
36398 swig_module.cast_initial = swig_cast_initial;
36399
36400 /* Try and load any already created modules */
36401 module_head = SWIG_GetModule(clientdata);
36402 if (module_head) {
36403 swig_module.next = module_head->next;
36404 module_head->next = &swig_module;
36405 } else {
36406 /* This is the first module loaded */
36407 swig_module.next = &swig_module;
36408 SWIG_SetModule(clientdata, &swig_module);
36409 }
36410
36411 /* Now work on filling in swig_module.types */
36412 #ifdef SWIGRUNTIME_DEBUG
36413 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36414 #endif
36415 for (i = 0; i < swig_module.size; ++i) {
36416 swig_type_info *type = 0;
36417 swig_type_info *ret;
36418 swig_cast_info *cast;
36419
36420 #ifdef SWIGRUNTIME_DEBUG
36421 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36422 #endif
36423
36424 /* if there is another module already loaded */
36425 if (swig_module.next != &swig_module) {
36426 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36427 }
36428 if (type) {
36429 /* Overwrite clientdata field */
36430 #ifdef SWIGRUNTIME_DEBUG
36431 printf("SWIG_InitializeModule: found type %s\n", type->name);
36432 #endif
36433 if (swig_module.type_initial[i]->clientdata) {
36434 type->clientdata = swig_module.type_initial[i]->clientdata;
36435 #ifdef SWIGRUNTIME_DEBUG
36436 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36437 #endif
36438 }
36439 } else {
36440 type = swig_module.type_initial[i];
36441 }
36442
36443 /* Insert casting types */
36444 cast = swig_module.cast_initial[i];
36445 while (cast->type) {
36446 /* Don't need to add information already in the list */
36447 ret = 0;
36448 #ifdef SWIGRUNTIME_DEBUG
36449 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36450 #endif
36451 if (swig_module.next != &swig_module) {
36452 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36453 #ifdef SWIGRUNTIME_DEBUG
36454 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36455 #endif
36456 }
36457 if (ret) {
36458 if (type == swig_module.type_initial[i]) {
36459 #ifdef SWIGRUNTIME_DEBUG
36460 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36461 #endif
36462 cast->type = ret;
36463 ret = 0;
36464 } else {
36465 /* Check for casting already in the list */
36466 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36467 #ifdef SWIGRUNTIME_DEBUG
36468 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36469 #endif
36470 if (!ocast) ret = 0;
36471 }
36472 }
36473
36474 if (!ret) {
36475 #ifdef SWIGRUNTIME_DEBUG
36476 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36477 #endif
36478 if (type->cast) {
36479 type->cast->prev = cast;
36480 cast->next = type->cast;
36481 }
36482 type->cast = cast;
36483 }
36484 cast++;
36485 }
36486 /* Set entry in modules->types array equal to the type */
36487 swig_module.types[i] = type;
36488 }
36489 swig_module.types[i] = 0;
36490
36491 #ifdef SWIGRUNTIME_DEBUG
36492 printf("**** SWIG_InitializeModule: Cast List ******\n");
36493 for (i = 0; i < swig_module.size; ++i) {
36494 int j = 0;
36495 swig_cast_info *cast = swig_module.cast_initial[i];
36496 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36497 while (cast->type) {
36498 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36499 cast++;
36500 ++j;
36501 }
36502 printf("---- Total casts: %d\n",j);
36503 }
36504 printf("**** SWIG_InitializeModule: Cast List ******\n");
36505 #endif
36506 }
36507
36508 /* This function will propagate the clientdata field of type to
36509 * any new swig_type_info structures that have been added into the list
36510 * of equivalent types. It is like calling
36511 * SWIG_TypeClientData(type, clientdata) a second time.
36512 */
36513 SWIGRUNTIME void
36514 SWIG_PropagateClientData(void) {
36515 size_t i;
36516 swig_cast_info *equiv;
36517 static int init_run = 0;
36518
36519 if (init_run) return;
36520 init_run = 1;
36521
36522 for (i = 0; i < swig_module.size; i++) {
36523 if (swig_module.types[i]->clientdata) {
36524 equiv = swig_module.types[i]->cast;
36525 while (equiv) {
36526 if (!equiv->converter) {
36527 if (equiv->type && !equiv->type->clientdata)
36528 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36529 }
36530 equiv = equiv->next;
36531 }
36532 }
36533 }
36534 }
36535
36536 #ifdef __cplusplus
36537 #if 0
36538 {
36539 /* c-mode */
36540 #endif
36541 }
36542 #endif
36543
36544
36545
36546 #ifdef __cplusplus
36547 extern "C" {
36548 #endif
36549
36550 /* Python-specific SWIG API */
36551 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36552 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36553 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36554
36555 /* -----------------------------------------------------------------------------
36556 * global variable support code.
36557 * ----------------------------------------------------------------------------- */
36558
36559 typedef struct swig_globalvar {
36560 char *name; /* Name of global variable */
36561 PyObject *(*get_attr)(void); /* Return the current value */
36562 int (*set_attr)(PyObject *); /* Set the value */
36563 struct swig_globalvar *next;
36564 } swig_globalvar;
36565
36566 typedef struct swig_varlinkobject {
36567 PyObject_HEAD
36568 swig_globalvar *vars;
36569 } swig_varlinkobject;
36570
36571 SWIGINTERN PyObject *
36572 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36573 return PyString_FromString("<Swig global variables>");
36574 }
36575
36576 SWIGINTERN PyObject *
36577 swig_varlink_str(swig_varlinkobject *v) {
36578 PyObject *str = PyString_FromString("(");
36579 swig_globalvar *var;
36580 for (var = v->vars; var; var=var->next) {
36581 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36582 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36583 }
36584 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36585 return str;
36586 }
36587
36588 SWIGINTERN int
36589 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36590 PyObject *str = swig_varlink_str(v);
36591 fprintf(fp,"Swig global variables ");
36592 fprintf(fp,"%s\n", PyString_AsString(str));
36593 Py_DECREF(str);
36594 return 0;
36595 }
36596
36597 SWIGINTERN void
36598 swig_varlink_dealloc(swig_varlinkobject *v) {
36599 swig_globalvar *var = v->vars;
36600 while (var) {
36601 swig_globalvar *n = var->next;
36602 free(var->name);
36603 free(var);
36604 var = n;
36605 }
36606 }
36607
36608 SWIGINTERN PyObject *
36609 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36610 PyObject *res = NULL;
36611 swig_globalvar *var = v->vars;
36612 while (var) {
36613 if (strcmp(var->name,n) == 0) {
36614 res = (*var->get_attr)();
36615 break;
36616 }
36617 var = var->next;
36618 }
36619 if (res == NULL && !PyErr_Occurred()) {
36620 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36621 }
36622 return res;
36623 }
36624
36625 SWIGINTERN int
36626 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36627 int res = 1;
36628 swig_globalvar *var = v->vars;
36629 while (var) {
36630 if (strcmp(var->name,n) == 0) {
36631 res = (*var->set_attr)(p);
36632 break;
36633 }
36634 var = var->next;
36635 }
36636 if (res == 1 && !PyErr_Occurred()) {
36637 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36638 }
36639 return res;
36640 }
36641
36642 SWIGINTERN PyTypeObject*
36643 swig_varlink_type(void) {
36644 static char varlink__doc__[] = "Swig var link object";
36645 static PyTypeObject varlink_type;
36646 static int type_init = 0;
36647 if (!type_init) {
36648 const PyTypeObject tmp
36649 = {
36650 PyObject_HEAD_INIT(NULL)
36651 0, /* Number of items in variable part (ob_size) */
36652 (char *)"swigvarlink", /* Type name (tp_name) */
36653 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36654 0, /* Itemsize (tp_itemsize) */
36655 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36656 (printfunc) swig_varlink_print, /* Print (tp_print) */
36657 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36658 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36659 0, /* tp_compare */
36660 (reprfunc) swig_varlink_repr, /* tp_repr */
36661 0, /* tp_as_number */
36662 0, /* tp_as_sequence */
36663 0, /* tp_as_mapping */
36664 0, /* tp_hash */
36665 0, /* tp_call */
36666 (reprfunc)swig_varlink_str, /* tp_str */
36667 0, /* tp_getattro */
36668 0, /* tp_setattro */
36669 0, /* tp_as_buffer */
36670 0, /* tp_flags */
36671 varlink__doc__, /* tp_doc */
36672 0, /* tp_traverse */
36673 0, /* tp_clear */
36674 0, /* tp_richcompare */
36675 0, /* tp_weaklistoffset */
36676 #if PY_VERSION_HEX >= 0x02020000
36677 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36678 #endif
36679 #if PY_VERSION_HEX >= 0x02030000
36680 0, /* tp_del */
36681 #endif
36682 #ifdef COUNT_ALLOCS
36683 0,0,0,0 /* tp_alloc -> tp_next */
36684 #endif
36685 };
36686 varlink_type = tmp;
36687 varlink_type.ob_type = &PyType_Type;
36688 type_init = 1;
36689 }
36690 return &varlink_type;
36691 }
36692
36693 /* Create a variable linking object for use later */
36694 SWIGINTERN PyObject *
36695 SWIG_Python_newvarlink(void) {
36696 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36697 if (result) {
36698 result->vars = 0;
36699 }
36700 return ((PyObject*) result);
36701 }
36702
36703 SWIGINTERN void
36704 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36705 swig_varlinkobject *v = (swig_varlinkobject *) p;
36706 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36707 if (gv) {
36708 size_t size = strlen(name)+1;
36709 gv->name = (char *)malloc(size);
36710 if (gv->name) {
36711 strncpy(gv->name,name,size);
36712 gv->get_attr = get_attr;
36713 gv->set_attr = set_attr;
36714 gv->next = v->vars;
36715 }
36716 }
36717 v->vars = gv;
36718 }
36719
36720 SWIGINTERN PyObject *
36721 SWIG_globals() {
36722 static PyObject *_SWIG_globals = 0;
36723 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36724 return _SWIG_globals;
36725 }
36726
36727 /* -----------------------------------------------------------------------------
36728 * constants/methods manipulation
36729 * ----------------------------------------------------------------------------- */
36730
36731 /* Install Constants */
36732 SWIGINTERN void
36733 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36734 PyObject *obj = 0;
36735 size_t i;
36736 for (i = 0; constants[i].type; ++i) {
36737 switch(constants[i].type) {
36738 case SWIG_PY_POINTER:
36739 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36740 break;
36741 case SWIG_PY_BINARY:
36742 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36743 break;
36744 default:
36745 obj = 0;
36746 break;
36747 }
36748 if (obj) {
36749 PyDict_SetItemString(d, constants[i].name, obj);
36750 Py_DECREF(obj);
36751 }
36752 }
36753 }
36754
36755 /* -----------------------------------------------------------------------------*/
36756 /* Fix SwigMethods to carry the callback ptrs when needed */
36757 /* -----------------------------------------------------------------------------*/
36758
36759 SWIGINTERN void
36760 SWIG_Python_FixMethods(PyMethodDef *methods,
36761 swig_const_info *const_table,
36762 swig_type_info **types,
36763 swig_type_info **types_initial) {
36764 size_t i;
36765 for (i = 0; methods[i].ml_name; ++i) {
36766 const char *c = methods[i].ml_doc;
36767 if (c && (c = strstr(c, "swig_ptr: "))) {
36768 int j;
36769 swig_const_info *ci = 0;
36770 const char *name = c + 10;
36771 for (j = 0; const_table[j].type; ++j) {
36772 if (strncmp(const_table[j].name, name,
36773 strlen(const_table[j].name)) == 0) {
36774 ci = &(const_table[j]);
36775 break;
36776 }
36777 }
36778 if (ci) {
36779 size_t shift = (ci->ptype) - types;
36780 swig_type_info *ty = types_initial[shift];
36781 size_t ldoc = (c - methods[i].ml_doc);
36782 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36783 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36784 if (ndoc) {
36785 char *buff = ndoc;
36786 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36787 if (ptr) {
36788 strncpy(buff, methods[i].ml_doc, ldoc);
36789 buff += ldoc;
36790 strncpy(buff, "swig_ptr: ", 10);
36791 buff += 10;
36792 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36793 methods[i].ml_doc = ndoc;
36794 }
36795 }
36796 }
36797 }
36798 }
36799 }
36800
36801 #ifdef __cplusplus
36802 }
36803 #endif
36804
36805 /* -----------------------------------------------------------------------------*
36806 * Partial Init method
36807 * -----------------------------------------------------------------------------*/
36808
36809 #ifdef __cplusplus
36810 extern "C"
36811 #endif
36812 SWIGEXPORT void SWIG_init(void) {
36813 PyObject *m, *d;
36814
36815 /* Fix SwigMethods to carry the callback ptrs when needed */
36816 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36817
36818 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36819 d = PyModule_GetDict(m);
36820
36821 SWIG_InitializeModule(0);
36822 SWIG_InstallConstants(d,swig_const_table);
36823
36824
36825 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36826 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36827 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
36828 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36829 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
36830 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36831 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36832 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36833 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36834 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36835 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36836 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36837 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36838 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36839 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36840 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36841 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36842 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36843 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36844 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36845 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36846 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36847 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36848 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36849 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36850 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36851 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36852 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36853 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36854 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36855 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36856 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36857 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36858 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36859 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36860 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36861 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36862 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36863 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36864 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36865 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36866 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36867 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36868 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36869 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36870 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36871 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36872 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36873 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36874 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36875 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36876 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36877 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36878 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36879 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36880 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36881 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36882 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36883 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36884 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36885 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36886 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36887 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36888 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36889 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36890 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36891 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36892 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36893 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36894 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36895 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36896 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36897 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36898 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36899 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36900 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36901 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36902 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36903 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36904 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36905 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36906 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36907 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36908 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36909 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36910 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36911 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36912 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36913 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36914 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36915 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36916 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36917 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36918 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36919 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36920 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36921 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36922 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36923 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36924 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36925 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36926 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36927 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36928 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36929 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36930 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36931 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36932 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36933 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36934 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36935 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36936 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36937 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36938 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36939 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36940 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36941 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36942 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36943 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36944 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36945 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36946 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36947 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36948 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36949 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36950 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36951 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36952 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36953 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36954 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36955 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36956 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36957
36958 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36959
36960 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36961 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36962 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36963 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36964 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36965 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36966 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36967 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36968 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36969 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36970 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36971 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36972 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36973 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36974 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36975 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36976 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36977 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36978 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36979 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36980 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36981 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36982 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36983 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36984 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36985 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36986 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36987 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36988 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36989 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36990 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36991 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36992 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36993 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36994 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36995 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36996 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36997 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36998 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36999 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37000 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37001 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37002 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37003 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37004 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37005 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37006 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37007 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37008 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37009 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37010 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37011 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37012 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37013 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37014 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37015 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37016 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37017 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37018 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37019 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37020 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37021 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37022 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37023 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37024 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37025 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37026 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37027 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37028 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37029 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37030 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37031 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37032 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37033 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37034 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37035 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37036 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37037 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37038 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37039 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37040 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37041 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37042 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37043 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37044 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37045 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37046 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37047 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37048 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37049 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37050 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37051 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37052 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37053 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37054 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37055 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37056 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37057 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37058 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37059 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37060 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37061 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37062 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37063 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37064 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37065 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37066 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37067 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37068 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37069 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37070 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37071 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37072 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37073 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37074 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37075 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37076 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37077 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37078 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37079 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37080 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37081 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37082 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37083 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37084 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37085 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37086 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37087 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37088 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37089 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37090 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37091 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37092 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37093 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37094 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37095 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37096 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37097 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37098 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37099 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37100 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37101 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37102 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37103 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37104 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37105 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37106 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37107 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37108 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37109 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37110 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37111 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37112 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37113 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37114 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37115 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37116 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37117 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37118 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37119 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37120 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37121 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37122 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37123 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37124 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37125 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37126 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37127 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37128 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37129 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37130 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37131 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37132 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37133 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37134 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37135 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37136 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37137 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37138 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37139 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37140 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37141 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37142 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37143 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37144 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37145 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37146 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37147 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37148 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37149 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37150 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37151 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37152 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37153 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37154 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37155 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37156 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37157 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37158 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37159 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37160 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37161 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37162 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37163 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37164 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37165 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37166 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37167 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37168 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37169 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37170 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37171 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37172 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37173 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37174 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37175 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37176 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37177 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37178 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37179 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37180 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37181 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37182 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37183 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37184 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37185 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37186 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37187 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37188 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37189 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37190 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37191 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37192 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37193 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37194 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37195 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37196 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37197 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37198 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37199 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37200 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37201 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37202 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37203 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37204 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37205 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37206 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37207 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37208 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37209 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37210 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37211 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37212 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37213 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37214 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37215 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37216 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37217 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37218 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37219 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37220 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37221 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37222 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37223 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37224 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37225 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37226 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37227 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37228 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37229 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37230 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37231 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37232 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37233 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37234 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37235 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37236 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37237 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37238 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37239 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37240 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37241 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37242 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37243 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37244 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37245 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37246 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37247 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37248 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37249 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37250 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37251 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37252 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37253 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37254 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37255 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37256 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37257 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37258 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37259 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37260 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37261 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37262 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37263 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37264 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37265 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37266 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37267 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37268 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37269 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37270 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37271 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37272 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37273 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37274 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37275 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37276 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37277 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37278 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37279
37280 // Work around a chicken/egg problem in drawlist.cpp
37281 wxPyDrawList_SetAPIPtr();
37282
37283 }
37284