]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
Add tests for wxBackingFile.
[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 static wxGraphicsContext* CreateFromNative( void * ) {
3615 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3616 PyErr_SetString(PyExc_NotImplementedError,
3617 "wxGraphicsContext is not available on this platform.");
3618 wxPyEndBlockThreads(blocked);
3619 return NULL;
3620 }
3621
3622 wxGraphicsPath * CreatePath() { return NULL; }
3623 void PushState() {}
3624 void PopState() {}
3625 void Clip( const wxRegion & ) {}
3626 void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3627 void ResetClip() {}
3628 void * GetNativeContext() { return NULL; }
3629 void Translate( wxDouble , wxDouble ) {}
3630 void Scale( wxDouble , wxDouble ) {}
3631 void Rotate( wxDouble ) {}
3632 void SetPen( const wxPen & ) {}
3633 void SetBrush( const wxBrush & ) {}
3634 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3635 const wxColour&, const wxColour&) {}
3636 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3637 const wxColour &, const wxColour &) {}
3638 void SetFont( const wxFont & ) {}
3639 void SetTextColor( const wxColour & ) {}
3640 void StrokePath( const wxGraphicsPath * ) {}
3641 void FillPath( const wxGraphicsPath *, int ) {}
3642 void DrawPath( const wxGraphicsPath *, int ) {}
3643 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3644 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3645 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3646 wxDouble *, wxDouble * ) const {}
3647 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3648 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3649 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3650 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3651 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3652 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3653 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3654 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3655 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3656 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3657 };
3658
3659
3660 class wxGCDC: public wxWindowDC
3661 {
3662 public:
3663 wxGCDC(const wxWindowDC&) {
3664 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3665 PyErr_SetString(PyExc_NotImplementedError,
3666 "wxGCDC is not available on this platform.");
3667 wxPyEndBlockThreads(blocked);
3668 }
3669
3670 wxGCDC() {
3671 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3672 PyErr_SetString(PyExc_NotImplementedError,
3673 "wxGCDC is not available on this platform.");
3674 wxPyEndBlockThreads(blocked);
3675 }
3676
3677 virtual ~wxGCDC() {}
3678
3679 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3680 void SetGraphicsContext( wxGraphicsContext* ) {}
3681 };
3682
3683 #endif
3684
3685 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3686 wxArrayDouble widths;
3687 self->GetPartialTextExtents(text, widths);
3688 return widths;
3689 }
3690 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3691 size_t c1, c2, count;
3692 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3693 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3694
3695 if ( beginP != NULL && endP != NULL )
3696 {
3697 count = wxMin(c1, c2);
3698 self->StrokeLines(count, beginP, endP);
3699 }
3700 delete [] beginP;
3701 delete [] endP;
3702 }
3703
3704 #include "wx/dcgraph.h"
3705
3706
3707
3708 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3709 self->AddColour(name, wxColour(red, green, blue));
3710 }
3711
3712 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3713 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3714 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3715 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3716
3717
3718 #include <wx/effects.h>
3719
3720
3721 #include "wx/renderer.h"
3722
3723
3724 SWIGINTERNINLINE PyObject*
3725 SWIG_From_bool (bool value)
3726 {
3727 return PyBool_FromLong(value ? 1 : 0);
3728 }
3729
3730
3731 #include "wx/wxPython/pseudodc.h"
3732
3733 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3734 wxRect rect;
3735 self->GetIdBounds(id, rect);
3736 return rect;
3737 }
3738 #ifdef __cplusplus
3739 extern "C" {
3740 #endif
3741 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3742 PyObject *resultobj = 0;
3743 wxGDIObject *result = 0 ;
3744
3745 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3746 {
3747 if (!wxPyCheckForApp()) SWIG_fail;
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 result = (wxGDIObject *)new wxGDIObject();
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3754 return resultobj;
3755 fail:
3756 return NULL;
3757 }
3758
3759
3760 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 PyObject *resultobj = 0;
3762 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3763 void *argp1 = 0 ;
3764 int res1 = 0 ;
3765 PyObject *swig_obj[1] ;
3766
3767 if (!args) SWIG_fail;
3768 swig_obj[0] = args;
3769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3770 if (!SWIG_IsOK(res1)) {
3771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3772 }
3773 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3774 {
3775 PyThreadState* __tstate = wxPyBeginAllowThreads();
3776 delete arg1;
3777
3778 wxPyEndAllowThreads(__tstate);
3779 if (PyErr_Occurred()) SWIG_fail;
3780 }
3781 resultobj = SWIG_Py_Void();
3782 return resultobj;
3783 fail:
3784 return NULL;
3785 }
3786
3787
3788 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3789 PyObject *resultobj = 0;
3790 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3791 bool result;
3792 void *argp1 = 0 ;
3793 int res1 = 0 ;
3794 PyObject *swig_obj[1] ;
3795
3796 if (!args) SWIG_fail;
3797 swig_obj[0] = args;
3798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3799 if (!SWIG_IsOK(res1)) {
3800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3801 }
3802 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3803 {
3804 PyThreadState* __tstate = wxPyBeginAllowThreads();
3805 result = (bool)(arg1)->IsNull();
3806 wxPyEndAllowThreads(__tstate);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 }
3809 {
3810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3811 }
3812 return resultobj;
3813 fail:
3814 return NULL;
3815 }
3816
3817
3818 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3819 PyObject *obj;
3820 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3821 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3822 return SWIG_Py_Void();
3823 }
3824
3825 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3826 return SWIG_Python_InitShadowInstance(args);
3827 }
3828
3829 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3830 PyObject *resultobj = 0;
3831 byte arg1 = (byte) 0 ;
3832 byte arg2 = (byte) 0 ;
3833 byte arg3 = (byte) 0 ;
3834 byte arg4 = (byte) wxALPHA_OPAQUE ;
3835 wxColour *result = 0 ;
3836 unsigned char val1 ;
3837 int ecode1 = 0 ;
3838 unsigned char val2 ;
3839 int ecode2 = 0 ;
3840 unsigned char val3 ;
3841 int ecode3 = 0 ;
3842 unsigned char val4 ;
3843 int ecode4 = 0 ;
3844 PyObject * obj0 = 0 ;
3845 PyObject * obj1 = 0 ;
3846 PyObject * obj2 = 0 ;
3847 PyObject * obj3 = 0 ;
3848 char * kwnames[] = {
3849 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3850 };
3851
3852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3853 if (obj0) {
3854 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3855 if (!SWIG_IsOK(ecode1)) {
3856 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3857 }
3858 arg1 = static_cast< byte >(val1);
3859 }
3860 if (obj1) {
3861 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3862 if (!SWIG_IsOK(ecode2)) {
3863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3864 }
3865 arg2 = static_cast< byte >(val2);
3866 }
3867 if (obj2) {
3868 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3869 if (!SWIG_IsOK(ecode3)) {
3870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3871 }
3872 arg3 = static_cast< byte >(val3);
3873 }
3874 if (obj3) {
3875 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3876 if (!SWIG_IsOK(ecode4)) {
3877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3878 }
3879 arg4 = static_cast< byte >(val4);
3880 }
3881 {
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3888 return resultobj;
3889 fail:
3890 return NULL;
3891 }
3892
3893
3894 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3895 PyObject *resultobj = 0;
3896 wxString *arg1 = 0 ;
3897 wxColour *result = 0 ;
3898 bool temp1 = false ;
3899 PyObject * obj0 = 0 ;
3900 char * kwnames[] = {
3901 (char *) "colorName", NULL
3902 };
3903
3904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3905 {
3906 arg1 = wxString_in_helper(obj0);
3907 if (arg1 == NULL) SWIG_fail;
3908 temp1 = true;
3909 }
3910 {
3911 if (!wxPyCheckForApp()) SWIG_fail;
3912 PyThreadState* __tstate = wxPyBeginAllowThreads();
3913 result = (wxColour *)new wxColour((wxString const &)*arg1);
3914 wxPyEndAllowThreads(__tstate);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 }
3917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3918 {
3919 if (temp1)
3920 delete arg1;
3921 }
3922 return resultobj;
3923 fail:
3924 {
3925 if (temp1)
3926 delete arg1;
3927 }
3928 return NULL;
3929 }
3930
3931
3932 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3933 PyObject *resultobj = 0;
3934 unsigned long arg1 ;
3935 wxColour *result = 0 ;
3936 unsigned long val1 ;
3937 int ecode1 = 0 ;
3938 PyObject * obj0 = 0 ;
3939 char * kwnames[] = {
3940 (char *) "colRGB", NULL
3941 };
3942
3943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3944 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3945 if (!SWIG_IsOK(ecode1)) {
3946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3947 }
3948 arg1 = static_cast< unsigned long >(val1);
3949 {
3950 PyThreadState* __tstate = wxPyBeginAllowThreads();
3951 result = (wxColour *)new wxColour(arg1);
3952 wxPyEndAllowThreads(__tstate);
3953 if (PyErr_Occurred()) SWIG_fail;
3954 }
3955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3956 return resultobj;
3957 fail:
3958 return NULL;
3959 }
3960
3961
3962 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3963 PyObject *resultobj = 0;
3964 wxColour *arg1 = (wxColour *) 0 ;
3965 void *argp1 = 0 ;
3966 int res1 = 0 ;
3967 PyObject *swig_obj[1] ;
3968
3969 if (!args) SWIG_fail;
3970 swig_obj[0] = args;
3971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3972 if (!SWIG_IsOK(res1)) {
3973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3974 }
3975 arg1 = reinterpret_cast< wxColour * >(argp1);
3976 {
3977 PyThreadState* __tstate = wxPyBeginAllowThreads();
3978 delete arg1;
3979
3980 wxPyEndAllowThreads(__tstate);
3981 if (PyErr_Occurred()) SWIG_fail;
3982 }
3983 resultobj = SWIG_Py_Void();
3984 return resultobj;
3985 fail:
3986 return NULL;
3987 }
3988
3989
3990 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3991 PyObject *resultobj = 0;
3992 wxColour *arg1 = (wxColour *) 0 ;
3993 byte result;
3994 void *argp1 = 0 ;
3995 int res1 = 0 ;
3996 PyObject *swig_obj[1] ;
3997
3998 if (!args) SWIG_fail;
3999 swig_obj[0] = args;
4000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4001 if (!SWIG_IsOK(res1)) {
4002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4003 }
4004 arg1 = reinterpret_cast< wxColour * >(argp1);
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = (byte)(arg1)->Red();
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4012 return resultobj;
4013 fail:
4014 return NULL;
4015 }
4016
4017
4018 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4019 PyObject *resultobj = 0;
4020 wxColour *arg1 = (wxColour *) 0 ;
4021 byte result;
4022 void *argp1 = 0 ;
4023 int res1 = 0 ;
4024 PyObject *swig_obj[1] ;
4025
4026 if (!args) SWIG_fail;
4027 swig_obj[0] = args;
4028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4029 if (!SWIG_IsOK(res1)) {
4030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4031 }
4032 arg1 = reinterpret_cast< wxColour * >(argp1);
4033 {
4034 PyThreadState* __tstate = wxPyBeginAllowThreads();
4035 result = (byte)(arg1)->Green();
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4047 PyObject *resultobj = 0;
4048 wxColour *arg1 = (wxColour *) 0 ;
4049 byte result;
4050 void *argp1 = 0 ;
4051 int res1 = 0 ;
4052 PyObject *swig_obj[1] ;
4053
4054 if (!args) SWIG_fail;
4055 swig_obj[0] = args;
4056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4057 if (!SWIG_IsOK(res1)) {
4058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4059 }
4060 arg1 = reinterpret_cast< wxColour * >(argp1);
4061 {
4062 PyThreadState* __tstate = wxPyBeginAllowThreads();
4063 result = (byte)(arg1)->Blue();
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4075 PyObject *resultobj = 0;
4076 wxColour *arg1 = (wxColour *) 0 ;
4077 byte result;
4078 void *argp1 = 0 ;
4079 int res1 = 0 ;
4080 PyObject *swig_obj[1] ;
4081
4082 if (!args) SWIG_fail;
4083 swig_obj[0] = args;
4084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4085 if (!SWIG_IsOK(res1)) {
4086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4087 }
4088 arg1 = reinterpret_cast< wxColour * >(argp1);
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 result = (byte)(arg1)->Alpha();
4092 wxPyEndAllowThreads(__tstate);
4093 if (PyErr_Occurred()) SWIG_fail;
4094 }
4095 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4096 return resultobj;
4097 fail:
4098 return NULL;
4099 }
4100
4101
4102 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4103 PyObject *resultobj = 0;
4104 wxColour *arg1 = (wxColour *) 0 ;
4105 bool result;
4106 void *argp1 = 0 ;
4107 int res1 = 0 ;
4108 PyObject *swig_obj[1] ;
4109
4110 if (!args) SWIG_fail;
4111 swig_obj[0] = args;
4112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4113 if (!SWIG_IsOK(res1)) {
4114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4115 }
4116 arg1 = reinterpret_cast< wxColour * >(argp1);
4117 {
4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
4119 result = (bool)(arg1)->IsOk();
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 {
4124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4125 }
4126 return resultobj;
4127 fail:
4128 return NULL;
4129 }
4130
4131
4132 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4133 PyObject *resultobj = 0;
4134 wxColour *arg1 = (wxColour *) 0 ;
4135 byte arg2 ;
4136 byte arg3 ;
4137 byte arg4 ;
4138 byte arg5 = (byte) wxALPHA_OPAQUE ;
4139 void *argp1 = 0 ;
4140 int res1 = 0 ;
4141 unsigned char val2 ;
4142 int ecode2 = 0 ;
4143 unsigned char val3 ;
4144 int ecode3 = 0 ;
4145 unsigned char val4 ;
4146 int ecode4 = 0 ;
4147 unsigned char val5 ;
4148 int ecode5 = 0 ;
4149 PyObject * obj0 = 0 ;
4150 PyObject * obj1 = 0 ;
4151 PyObject * obj2 = 0 ;
4152 PyObject * obj3 = 0 ;
4153 PyObject * obj4 = 0 ;
4154 char * kwnames[] = {
4155 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4156 };
4157
4158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4160 if (!SWIG_IsOK(res1)) {
4161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4162 }
4163 arg1 = reinterpret_cast< wxColour * >(argp1);
4164 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4165 if (!SWIG_IsOK(ecode2)) {
4166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4167 }
4168 arg2 = static_cast< byte >(val2);
4169 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4170 if (!SWIG_IsOK(ecode3)) {
4171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4172 }
4173 arg3 = static_cast< byte >(val3);
4174 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4175 if (!SWIG_IsOK(ecode4)) {
4176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4177 }
4178 arg4 = static_cast< byte >(val4);
4179 if (obj4) {
4180 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4181 if (!SWIG_IsOK(ecode5)) {
4182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4183 }
4184 arg5 = static_cast< byte >(val5);
4185 }
4186 {
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 (arg1)->Set(arg2,arg3,arg4,arg5);
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = SWIG_Py_Void();
4193 return resultobj;
4194 fail:
4195 return NULL;
4196 }
4197
4198
4199 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4200 PyObject *resultobj = 0;
4201 wxColour *arg1 = (wxColour *) 0 ;
4202 unsigned long arg2 ;
4203 void *argp1 = 0 ;
4204 int res1 = 0 ;
4205 unsigned long val2 ;
4206 int ecode2 = 0 ;
4207 PyObject * obj0 = 0 ;
4208 PyObject * obj1 = 0 ;
4209 char * kwnames[] = {
4210 (char *) "self",(char *) "colRGB", NULL
4211 };
4212
4213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4215 if (!SWIG_IsOK(res1)) {
4216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4217 }
4218 arg1 = reinterpret_cast< wxColour * >(argp1);
4219 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4220 if (!SWIG_IsOK(ecode2)) {
4221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4222 }
4223 arg2 = static_cast< unsigned long >(val2);
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 (arg1)->Set(arg2);
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_Py_Void();
4231 return resultobj;
4232 fail:
4233 return NULL;
4234 }
4235
4236
4237 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj = 0;
4239 wxColour *arg1 = (wxColour *) 0 ;
4240 wxString *arg2 = 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 bool temp2 = false ;
4244 PyObject * obj0 = 0 ;
4245 PyObject * obj1 = 0 ;
4246 char * kwnames[] = {
4247 (char *) "self",(char *) "colourName", NULL
4248 };
4249
4250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4254 }
4255 arg1 = reinterpret_cast< wxColour * >(argp1);
4256 {
4257 arg2 = wxString_in_helper(obj1);
4258 if (arg2 == NULL) SWIG_fail;
4259 temp2 = true;
4260 }
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 (arg1)->Set((wxString const &)*arg2);
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 resultobj = SWIG_Py_Void();
4268 {
4269 if (temp2)
4270 delete arg2;
4271 }
4272 return resultobj;
4273 fail:
4274 {
4275 if (temp2)
4276 delete arg2;
4277 }
4278 return NULL;
4279 }
4280
4281
4282 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4283 PyObject *resultobj = 0;
4284 wxColour *arg1 = (wxColour *) 0 ;
4285 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4286 wxString result;
4287 void *argp1 = 0 ;
4288 int res1 = 0 ;
4289 long val2 ;
4290 int ecode2 = 0 ;
4291 PyObject * obj0 = 0 ;
4292 PyObject * obj1 = 0 ;
4293 char * kwnames[] = {
4294 (char *) "self",(char *) "flags", NULL
4295 };
4296
4297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4299 if (!SWIG_IsOK(res1)) {
4300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4301 }
4302 arg1 = reinterpret_cast< wxColour * >(argp1);
4303 if (obj1) {
4304 ecode2 = SWIG_AsVal_long(obj1, &val2);
4305 if (!SWIG_IsOK(ecode2)) {
4306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4307 }
4308 arg2 = static_cast< long >(val2);
4309 }
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 result = ((wxColour const *)arg1)->GetAsString(arg2);
4313 wxPyEndAllowThreads(__tstate);
4314 if (PyErr_Occurred()) SWIG_fail;
4315 }
4316 {
4317 #if wxUSE_UNICODE
4318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4319 #else
4320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4321 #endif
4322 }
4323 return resultobj;
4324 fail:
4325 return NULL;
4326 }
4327
4328
4329 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4330 PyObject *resultobj = 0;
4331 wxColour *arg1 = (wxColour *) 0 ;
4332 long result;
4333 void *argp1 = 0 ;
4334 int res1 = 0 ;
4335 PyObject *swig_obj[1] ;
4336
4337 if (!args) SWIG_fail;
4338 swig_obj[0] = args;
4339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4340 if (!SWIG_IsOK(res1)) {
4341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4342 }
4343 arg1 = reinterpret_cast< wxColour * >(argp1);
4344 {
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 result = (long)((wxColour const *)arg1)->GetPixel();
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 resultobj = SWIG_From_long(static_cast< long >(result));
4351 return resultobj;
4352 fail:
4353 return NULL;
4354 }
4355
4356
4357 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4358 PyObject *resultobj = 0;
4359 wxColour *arg1 = (wxColour *) 0 ;
4360 PyObject *arg2 = (PyObject *) 0 ;
4361 bool result;
4362 void *argp1 = 0 ;
4363 int res1 = 0 ;
4364 PyObject * obj0 = 0 ;
4365 PyObject * obj1 = 0 ;
4366 char * kwnames[] = {
4367 (char *) "self",(char *) "other", NULL
4368 };
4369
4370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4372 if (!SWIG_IsOK(res1)) {
4373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4374 }
4375 arg1 = reinterpret_cast< wxColour * >(argp1);
4376 arg2 = obj1;
4377 {
4378 result = (bool)wxColour___eq__(arg1,arg2);
4379 if (PyErr_Occurred()) SWIG_fail;
4380 }
4381 {
4382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4383 }
4384 return resultobj;
4385 fail:
4386 return NULL;
4387 }
4388
4389
4390 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4391 PyObject *resultobj = 0;
4392 wxColour *arg1 = (wxColour *) 0 ;
4393 PyObject *arg2 = (PyObject *) 0 ;
4394 bool result;
4395 void *argp1 = 0 ;
4396 int res1 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 char * kwnames[] = {
4400 (char *) "self",(char *) "other", NULL
4401 };
4402
4403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4405 if (!SWIG_IsOK(res1)) {
4406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4407 }
4408 arg1 = reinterpret_cast< wxColour * >(argp1);
4409 arg2 = obj1;
4410 {
4411 result = (bool)wxColour___ne__(arg1,arg2);
4412 if (PyErr_Occurred()) SWIG_fail;
4413 }
4414 {
4415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4416 }
4417 return resultobj;
4418 fail:
4419 return NULL;
4420 }
4421
4422
4423 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4424 PyObject *resultobj = 0;
4425 wxColour *arg1 = (wxColour *) 0 ;
4426 bool arg2 = (bool) false ;
4427 PyObject *result = 0 ;
4428 void *argp1 = 0 ;
4429 int res1 = 0 ;
4430 bool val2 ;
4431 int ecode2 = 0 ;
4432 PyObject * obj0 = 0 ;
4433 PyObject * obj1 = 0 ;
4434 char * kwnames[] = {
4435 (char *) "self",(char *) "includeAlpha", NULL
4436 };
4437
4438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4442 }
4443 arg1 = reinterpret_cast< wxColour * >(argp1);
4444 if (obj1) {
4445 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4446 if (!SWIG_IsOK(ecode2)) {
4447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4448 }
4449 arg2 = static_cast< bool >(val2);
4450 }
4451 {
4452 result = (PyObject *)wxColour_Get(arg1,arg2);
4453 if (PyErr_Occurred()) SWIG_fail;
4454 }
4455 resultobj = result;
4456 return resultobj;
4457 fail:
4458 return NULL;
4459 }
4460
4461
4462 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4463 PyObject *resultobj = 0;
4464 wxColour *arg1 = (wxColour *) 0 ;
4465 unsigned long result;
4466 void *argp1 = 0 ;
4467 int res1 = 0 ;
4468 PyObject *swig_obj[1] ;
4469
4470 if (!args) SWIG_fail;
4471 swig_obj[0] = args;
4472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4473 if (!SWIG_IsOK(res1)) {
4474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4475 }
4476 arg1 = reinterpret_cast< wxColour * >(argp1);
4477 {
4478 result = (unsigned long)wxColour_GetRGB(arg1);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4482 return resultobj;
4483 fail:
4484 return NULL;
4485 }
4486
4487
4488 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4489 PyObject *obj;
4490 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4491 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4492 return SWIG_Py_Void();
4493 }
4494
4495 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4496 return SWIG_Python_InitShadowInstance(args);
4497 }
4498
4499 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj = 0;
4501 int arg1 ;
4502 unsigned char *arg2 = (unsigned char *) 0 ;
4503 unsigned char *arg3 = (unsigned char *) 0 ;
4504 unsigned char *arg4 = (unsigned char *) 0 ;
4505 wxPalette *result = 0 ;
4506 int val1 ;
4507 int ecode1 = 0 ;
4508 void *argp2 = 0 ;
4509 int res2 = 0 ;
4510 void *argp3 = 0 ;
4511 int res3 = 0 ;
4512 void *argp4 = 0 ;
4513 int res4 = 0 ;
4514 PyObject * obj0 = 0 ;
4515 PyObject * obj1 = 0 ;
4516 PyObject * obj2 = 0 ;
4517 PyObject * obj3 = 0 ;
4518 char * kwnames[] = {
4519 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4520 };
4521
4522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4523 ecode1 = SWIG_AsVal_int(obj0, &val1);
4524 if (!SWIG_IsOK(ecode1)) {
4525 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4526 }
4527 arg1 = static_cast< int >(val1);
4528 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4529 if (!SWIG_IsOK(res2)) {
4530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4531 }
4532 arg2 = reinterpret_cast< unsigned char * >(argp2);
4533 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4534 if (!SWIG_IsOK(res3)) {
4535 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4536 }
4537 arg3 = reinterpret_cast< unsigned char * >(argp3);
4538 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4539 if (!SWIG_IsOK(res4)) {
4540 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4541 }
4542 arg4 = reinterpret_cast< unsigned char * >(argp4);
4543 {
4544 if (!wxPyCheckForApp()) SWIG_fail;
4545 PyThreadState* __tstate = wxPyBeginAllowThreads();
4546 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4547 wxPyEndAllowThreads(__tstate);
4548 if (PyErr_Occurred()) SWIG_fail;
4549 }
4550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4551 return resultobj;
4552 fail:
4553 return NULL;
4554 }
4555
4556
4557 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4558 PyObject *resultobj = 0;
4559 wxPalette *arg1 = (wxPalette *) 0 ;
4560 void *argp1 = 0 ;
4561 int res1 = 0 ;
4562 PyObject *swig_obj[1] ;
4563
4564 if (!args) SWIG_fail;
4565 swig_obj[0] = args;
4566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4567 if (!SWIG_IsOK(res1)) {
4568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4569 }
4570 arg1 = reinterpret_cast< wxPalette * >(argp1);
4571 {
4572 PyThreadState* __tstate = wxPyBeginAllowThreads();
4573 delete arg1;
4574
4575 wxPyEndAllowThreads(__tstate);
4576 if (PyErr_Occurred()) SWIG_fail;
4577 }
4578 resultobj = SWIG_Py_Void();
4579 return resultobj;
4580 fail:
4581 return NULL;
4582 }
4583
4584
4585 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4586 PyObject *resultobj = 0;
4587 wxPalette *arg1 = (wxPalette *) 0 ;
4588 byte arg2 ;
4589 byte arg3 ;
4590 byte arg4 ;
4591 int result;
4592 void *argp1 = 0 ;
4593 int res1 = 0 ;
4594 unsigned char val2 ;
4595 int ecode2 = 0 ;
4596 unsigned char val3 ;
4597 int ecode3 = 0 ;
4598 unsigned char val4 ;
4599 int ecode4 = 0 ;
4600 PyObject * obj0 = 0 ;
4601 PyObject * obj1 = 0 ;
4602 PyObject * obj2 = 0 ;
4603 PyObject * obj3 = 0 ;
4604 char * kwnames[] = {
4605 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4606 };
4607
4608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4610 if (!SWIG_IsOK(res1)) {
4611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4612 }
4613 arg1 = reinterpret_cast< wxPalette * >(argp1);
4614 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4615 if (!SWIG_IsOK(ecode2)) {
4616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4617 }
4618 arg2 = static_cast< byte >(val2);
4619 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4620 if (!SWIG_IsOK(ecode3)) {
4621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4622 }
4623 arg3 = static_cast< byte >(val3);
4624 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4625 if (!SWIG_IsOK(ecode4)) {
4626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4627 }
4628 arg4 = static_cast< byte >(val4);
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_From_int(static_cast< int >(result));
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj = 0;
4644 wxPalette *arg1 = (wxPalette *) 0 ;
4645 int arg2 ;
4646 byte *arg3 = (byte *) 0 ;
4647 byte *arg4 = (byte *) 0 ;
4648 byte *arg5 = (byte *) 0 ;
4649 bool result;
4650 void *argp1 = 0 ;
4651 int res1 = 0 ;
4652 int val2 ;
4653 int ecode2 = 0 ;
4654 byte temp3 ;
4655 int res3 = SWIG_TMPOBJ ;
4656 byte temp4 ;
4657 int res4 = SWIG_TMPOBJ ;
4658 byte temp5 ;
4659 int res5 = SWIG_TMPOBJ ;
4660 PyObject * obj0 = 0 ;
4661 PyObject * obj1 = 0 ;
4662 char * kwnames[] = {
4663 (char *) "self",(char *) "pixel", NULL
4664 };
4665
4666 arg3 = &temp3;
4667 arg4 = &temp4;
4668 arg5 = &temp5;
4669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4671 if (!SWIG_IsOK(res1)) {
4672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4673 }
4674 arg1 = reinterpret_cast< wxPalette * >(argp1);
4675 ecode2 = SWIG_AsVal_int(obj1, &val2);
4676 if (!SWIG_IsOK(ecode2)) {
4677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4678 }
4679 arg2 = static_cast< int >(val2);
4680 {
4681 PyThreadState* __tstate = wxPyBeginAllowThreads();
4682 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4683 wxPyEndAllowThreads(__tstate);
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 {
4687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4688 }
4689 if (SWIG_IsTmpObj(res3)) {
4690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4691 } else {
4692 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4694 }
4695 if (SWIG_IsTmpObj(res4)) {
4696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4697 } else {
4698 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4699 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4700 }
4701 if (SWIG_IsTmpObj(res5)) {
4702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4703 } else {
4704 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4706 }
4707 return resultobj;
4708 fail:
4709 return NULL;
4710 }
4711
4712
4713 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4714 PyObject *resultobj = 0;
4715 wxPalette *arg1 = (wxPalette *) 0 ;
4716 int result;
4717 void *argp1 = 0 ;
4718 int res1 = 0 ;
4719 PyObject *swig_obj[1] ;
4720
4721 if (!args) SWIG_fail;
4722 swig_obj[0] = args;
4723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4724 if (!SWIG_IsOK(res1)) {
4725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4726 }
4727 arg1 = reinterpret_cast< wxPalette * >(argp1);
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = SWIG_From_int(static_cast< int >(result));
4735 return resultobj;
4736 fail:
4737 return NULL;
4738 }
4739
4740
4741 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4742 PyObject *resultobj = 0;
4743 wxPalette *arg1 = (wxPalette *) 0 ;
4744 bool result;
4745 void *argp1 = 0 ;
4746 int res1 = 0 ;
4747 PyObject *swig_obj[1] ;
4748
4749 if (!args) SWIG_fail;
4750 swig_obj[0] = args;
4751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4752 if (!SWIG_IsOK(res1)) {
4753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4754 }
4755 arg1 = reinterpret_cast< wxPalette * >(argp1);
4756 {
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 result = (bool)(arg1)->IsOk();
4759 wxPyEndAllowThreads(__tstate);
4760 if (PyErr_Occurred()) SWIG_fail;
4761 }
4762 {
4763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4764 }
4765 return resultobj;
4766 fail:
4767 return NULL;
4768 }
4769
4770
4771 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4772 PyObject *obj;
4773 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4774 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4775 return SWIG_Py_Void();
4776 }
4777
4778 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4779 return SWIG_Python_InitShadowInstance(args);
4780 }
4781
4782 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4783 PyObject *resultobj = 0;
4784 wxColour *arg1 = 0 ;
4785 int arg2 = (int) 1 ;
4786 int arg3 = (int) wxSOLID ;
4787 wxPen *result = 0 ;
4788 wxColour temp1 ;
4789 int val2 ;
4790 int ecode2 = 0 ;
4791 int val3 ;
4792 int ecode3 = 0 ;
4793 PyObject * obj0 = 0 ;
4794 PyObject * obj1 = 0 ;
4795 PyObject * obj2 = 0 ;
4796 char * kwnames[] = {
4797 (char *) "colour",(char *) "width",(char *) "style", NULL
4798 };
4799
4800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4801 {
4802 arg1 = &temp1;
4803 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4804 }
4805 if (obj1) {
4806 ecode2 = SWIG_AsVal_int(obj1, &val2);
4807 if (!SWIG_IsOK(ecode2)) {
4808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4809 }
4810 arg2 = static_cast< int >(val2);
4811 }
4812 if (obj2) {
4813 ecode3 = SWIG_AsVal_int(obj2, &val3);
4814 if (!SWIG_IsOK(ecode3)) {
4815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4816 }
4817 arg3 = static_cast< int >(val3);
4818 }
4819 {
4820 if (!wxPyCheckForApp()) SWIG_fail;
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4827 return resultobj;
4828 fail:
4829 return NULL;
4830 }
4831
4832
4833 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4834 PyObject *resultobj = 0;
4835 wxPen *arg1 = (wxPen *) 0 ;
4836 void *argp1 = 0 ;
4837 int res1 = 0 ;
4838 PyObject *swig_obj[1] ;
4839
4840 if (!args) SWIG_fail;
4841 swig_obj[0] = args;
4842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4843 if (!SWIG_IsOK(res1)) {
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4845 }
4846 arg1 = reinterpret_cast< wxPen * >(argp1);
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 delete arg1;
4850
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 resultobj = SWIG_Py_Void();
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4862 PyObject *resultobj = 0;
4863 wxPen *arg1 = (wxPen *) 0 ;
4864 int result;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 PyObject *swig_obj[1] ;
4868
4869 if (!args) SWIG_fail;
4870 swig_obj[0] = args;
4871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4872 if (!SWIG_IsOK(res1)) {
4873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4874 }
4875 arg1 = reinterpret_cast< wxPen * >(argp1);
4876 {
4877 PyThreadState* __tstate = wxPyBeginAllowThreads();
4878 result = (int)(arg1)->GetCap();
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) SWIG_fail;
4881 }
4882 resultobj = SWIG_From_int(static_cast< int >(result));
4883 return resultobj;
4884 fail:
4885 return NULL;
4886 }
4887
4888
4889 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4890 PyObject *resultobj = 0;
4891 wxPen *arg1 = (wxPen *) 0 ;
4892 wxColour result;
4893 void *argp1 = 0 ;
4894 int res1 = 0 ;
4895 PyObject *swig_obj[1] ;
4896
4897 if (!args) SWIG_fail;
4898 swig_obj[0] = args;
4899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4900 if (!SWIG_IsOK(res1)) {
4901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4902 }
4903 arg1 = reinterpret_cast< wxPen * >(argp1);
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 result = (arg1)->GetColour();
4907 wxPyEndAllowThreads(__tstate);
4908 if (PyErr_Occurred()) SWIG_fail;
4909 }
4910 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4911 return resultobj;
4912 fail:
4913 return NULL;
4914 }
4915
4916
4917 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4918 PyObject *resultobj = 0;
4919 wxPen *arg1 = (wxPen *) 0 ;
4920 int result;
4921 void *argp1 = 0 ;
4922 int res1 = 0 ;
4923 PyObject *swig_obj[1] ;
4924
4925 if (!args) SWIG_fail;
4926 swig_obj[0] = args;
4927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4928 if (!SWIG_IsOK(res1)) {
4929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4930 }
4931 arg1 = reinterpret_cast< wxPen * >(argp1);
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 result = (int)(arg1)->GetJoin();
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 resultobj = SWIG_From_int(static_cast< int >(result));
4939 return resultobj;
4940 fail:
4941 return NULL;
4942 }
4943
4944
4945 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4946 PyObject *resultobj = 0;
4947 wxPen *arg1 = (wxPen *) 0 ;
4948 int result;
4949 void *argp1 = 0 ;
4950 int res1 = 0 ;
4951 PyObject *swig_obj[1] ;
4952
4953 if (!args) SWIG_fail;
4954 swig_obj[0] = args;
4955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4956 if (!SWIG_IsOK(res1)) {
4957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4958 }
4959 arg1 = reinterpret_cast< wxPen * >(argp1);
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (int)(arg1)->GetStyle();
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 resultobj = SWIG_From_int(static_cast< int >(result));
4967 return resultobj;
4968 fail:
4969 return NULL;
4970 }
4971
4972
4973 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4974 PyObject *resultobj = 0;
4975 wxPen *arg1 = (wxPen *) 0 ;
4976 int result;
4977 void *argp1 = 0 ;
4978 int res1 = 0 ;
4979 PyObject *swig_obj[1] ;
4980
4981 if (!args) SWIG_fail;
4982 swig_obj[0] = args;
4983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4984 if (!SWIG_IsOK(res1)) {
4985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4986 }
4987 arg1 = reinterpret_cast< wxPen * >(argp1);
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 result = (int)(arg1)->GetWidth();
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 resultobj = SWIG_From_int(static_cast< int >(result));
4995 return resultobj;
4996 fail:
4997 return NULL;
4998 }
4999
5000
5001 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5002 PyObject *resultobj = 0;
5003 wxPen *arg1 = (wxPen *) 0 ;
5004 bool result;
5005 void *argp1 = 0 ;
5006 int res1 = 0 ;
5007 PyObject *swig_obj[1] ;
5008
5009 if (!args) SWIG_fail;
5010 swig_obj[0] = args;
5011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5012 if (!SWIG_IsOK(res1)) {
5013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5014 }
5015 arg1 = reinterpret_cast< wxPen * >(argp1);
5016 {
5017 PyThreadState* __tstate = wxPyBeginAllowThreads();
5018 result = (bool)(arg1)->IsOk();
5019 wxPyEndAllowThreads(__tstate);
5020 if (PyErr_Occurred()) SWIG_fail;
5021 }
5022 {
5023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5024 }
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5032 PyObject *resultobj = 0;
5033 wxPen *arg1 = (wxPen *) 0 ;
5034 int arg2 ;
5035 void *argp1 = 0 ;
5036 int res1 = 0 ;
5037 int val2 ;
5038 int ecode2 = 0 ;
5039 PyObject * obj0 = 0 ;
5040 PyObject * obj1 = 0 ;
5041 char * kwnames[] = {
5042 (char *) "self",(char *) "cap_style", NULL
5043 };
5044
5045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5047 if (!SWIG_IsOK(res1)) {
5048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5049 }
5050 arg1 = reinterpret_cast< wxPen * >(argp1);
5051 ecode2 = SWIG_AsVal_int(obj1, &val2);
5052 if (!SWIG_IsOK(ecode2)) {
5053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5054 }
5055 arg2 = static_cast< int >(val2);
5056 {
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 (arg1)->SetCap(arg2);
5059 wxPyEndAllowThreads(__tstate);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 }
5062 resultobj = SWIG_Py_Void();
5063 return resultobj;
5064 fail:
5065 return NULL;
5066 }
5067
5068
5069 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5070 PyObject *resultobj = 0;
5071 wxPen *arg1 = (wxPen *) 0 ;
5072 wxColour *arg2 = 0 ;
5073 void *argp1 = 0 ;
5074 int res1 = 0 ;
5075 wxColour temp2 ;
5076 PyObject * obj0 = 0 ;
5077 PyObject * obj1 = 0 ;
5078 char * kwnames[] = {
5079 (char *) "self",(char *) "colour", NULL
5080 };
5081
5082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5084 if (!SWIG_IsOK(res1)) {
5085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5086 }
5087 arg1 = reinterpret_cast< wxPen * >(argp1);
5088 {
5089 arg2 = &temp2;
5090 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5091 }
5092 {
5093 PyThreadState* __tstate = wxPyBeginAllowThreads();
5094 (arg1)->SetColour(*arg2);
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 }
5098 resultobj = SWIG_Py_Void();
5099 return resultobj;
5100 fail:
5101 return NULL;
5102 }
5103
5104
5105 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5106 PyObject *resultobj = 0;
5107 wxPen *arg1 = (wxPen *) 0 ;
5108 int arg2 ;
5109 void *argp1 = 0 ;
5110 int res1 = 0 ;
5111 int val2 ;
5112 int ecode2 = 0 ;
5113 PyObject * obj0 = 0 ;
5114 PyObject * obj1 = 0 ;
5115 char * kwnames[] = {
5116 (char *) "self",(char *) "join_style", NULL
5117 };
5118
5119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5121 if (!SWIG_IsOK(res1)) {
5122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5123 }
5124 arg1 = reinterpret_cast< wxPen * >(argp1);
5125 ecode2 = SWIG_AsVal_int(obj1, &val2);
5126 if (!SWIG_IsOK(ecode2)) {
5127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5128 }
5129 arg2 = static_cast< int >(val2);
5130 {
5131 PyThreadState* __tstate = wxPyBeginAllowThreads();
5132 (arg1)->SetJoin(arg2);
5133 wxPyEndAllowThreads(__tstate);
5134 if (PyErr_Occurred()) SWIG_fail;
5135 }
5136 resultobj = SWIG_Py_Void();
5137 return resultobj;
5138 fail:
5139 return NULL;
5140 }
5141
5142
5143 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj = 0;
5145 wxPen *arg1 = (wxPen *) 0 ;
5146 int arg2 ;
5147 void *argp1 = 0 ;
5148 int res1 = 0 ;
5149 int val2 ;
5150 int ecode2 = 0 ;
5151 PyObject * obj0 = 0 ;
5152 PyObject * obj1 = 0 ;
5153 char * kwnames[] = {
5154 (char *) "self",(char *) "style", NULL
5155 };
5156
5157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5159 if (!SWIG_IsOK(res1)) {
5160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5161 }
5162 arg1 = reinterpret_cast< wxPen * >(argp1);
5163 ecode2 = SWIG_AsVal_int(obj1, &val2);
5164 if (!SWIG_IsOK(ecode2)) {
5165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5166 }
5167 arg2 = static_cast< int >(val2);
5168 {
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 (arg1)->SetStyle(arg2);
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 resultobj = SWIG_Py_Void();
5175 return resultobj;
5176 fail:
5177 return NULL;
5178 }
5179
5180
5181 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5182 PyObject *resultobj = 0;
5183 wxPen *arg1 = (wxPen *) 0 ;
5184 int arg2 ;
5185 void *argp1 = 0 ;
5186 int res1 = 0 ;
5187 int val2 ;
5188 int ecode2 = 0 ;
5189 PyObject * obj0 = 0 ;
5190 PyObject * obj1 = 0 ;
5191 char * kwnames[] = {
5192 (char *) "self",(char *) "width", NULL
5193 };
5194
5195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5197 if (!SWIG_IsOK(res1)) {
5198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5199 }
5200 arg1 = reinterpret_cast< wxPen * >(argp1);
5201 ecode2 = SWIG_AsVal_int(obj1, &val2);
5202 if (!SWIG_IsOK(ecode2)) {
5203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5204 }
5205 arg2 = static_cast< int >(val2);
5206 {
5207 PyThreadState* __tstate = wxPyBeginAllowThreads();
5208 (arg1)->SetWidth(arg2);
5209 wxPyEndAllowThreads(__tstate);
5210 if (PyErr_Occurred()) SWIG_fail;
5211 }
5212 resultobj = SWIG_Py_Void();
5213 return resultobj;
5214 fail:
5215 return NULL;
5216 }
5217
5218
5219 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5220 PyObject *resultobj = 0;
5221 wxPen *arg1 = (wxPen *) 0 ;
5222 int arg2 ;
5223 wxDash *arg3 = (wxDash *) 0 ;
5224 void *argp1 = 0 ;
5225 int res1 = 0 ;
5226 PyObject * obj0 = 0 ;
5227 PyObject * obj1 = 0 ;
5228 char * kwnames[] = {
5229 (char *) "self",(char *) "dashes", NULL
5230 };
5231
5232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5234 if (!SWIG_IsOK(res1)) {
5235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5236 }
5237 arg1 = reinterpret_cast< wxPen * >(argp1);
5238 {
5239 arg2 = PyList_Size(obj1);
5240 arg3 = (wxDash*)byte_LIST_helper(obj1);
5241 if (arg3 == NULL) SWIG_fail;
5242 }
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 (arg1)->SetDashes(arg2,arg3);
5246 wxPyEndAllowThreads(__tstate);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 }
5249 resultobj = SWIG_Py_Void();
5250 {
5251 if (arg3) delete [] arg3;
5252 }
5253 return resultobj;
5254 fail:
5255 {
5256 if (arg3) delete [] arg3;
5257 }
5258 return NULL;
5259 }
5260
5261
5262 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5263 PyObject *resultobj = 0;
5264 wxPen *arg1 = (wxPen *) 0 ;
5265 PyObject *result = 0 ;
5266 void *argp1 = 0 ;
5267 int res1 = 0 ;
5268 PyObject *swig_obj[1] ;
5269
5270 if (!args) SWIG_fail;
5271 swig_obj[0] = args;
5272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5273 if (!SWIG_IsOK(res1)) {
5274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5275 }
5276 arg1 = reinterpret_cast< wxPen * >(argp1);
5277 {
5278 PyThreadState* __tstate = wxPyBeginAllowThreads();
5279 result = (PyObject *)wxPen_GetDashes(arg1);
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 resultobj = result;
5284 return resultobj;
5285 fail:
5286 return NULL;
5287 }
5288
5289
5290 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5291 PyObject *resultobj = 0;
5292 wxPen *arg1 = (wxPen *) 0 ;
5293 PyObject *arg2 = (PyObject *) 0 ;
5294 PyObject *arg3 = (PyObject *) 0 ;
5295 void *argp1 = 0 ;
5296 int res1 = 0 ;
5297 PyObject * obj0 = 0 ;
5298 PyObject * obj1 = 0 ;
5299 PyObject * obj2 = 0 ;
5300 char * kwnames[] = {
5301 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5302 };
5303
5304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5306 if (!SWIG_IsOK(res1)) {
5307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5308 }
5309 arg1 = reinterpret_cast< wxPen * >(argp1);
5310 arg2 = obj1;
5311 arg3 = obj2;
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 wxPen__SetDashes(arg1,arg2,arg3);
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 }
5318 resultobj = SWIG_Py_Void();
5319 return resultobj;
5320 fail:
5321 return NULL;
5322 }
5323
5324
5325 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5326 PyObject *resultobj = 0;
5327 wxPen *arg1 = (wxPen *) 0 ;
5328 int result;
5329 void *argp1 = 0 ;
5330 int res1 = 0 ;
5331 PyObject *swig_obj[1] ;
5332
5333 if (!args) SWIG_fail;
5334 swig_obj[0] = args;
5335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5336 if (!SWIG_IsOK(res1)) {
5337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5338 }
5339 arg1 = reinterpret_cast< wxPen * >(argp1);
5340 {
5341 PyThreadState* __tstate = wxPyBeginAllowThreads();
5342 result = (int)((wxPen const *)arg1)->GetDashCount();
5343 wxPyEndAllowThreads(__tstate);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 }
5346 resultobj = SWIG_From_int(static_cast< int >(result));
5347 return resultobj;
5348 fail:
5349 return NULL;
5350 }
5351
5352
5353 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj = 0;
5355 wxPen *arg1 = (wxPen *) 0 ;
5356 wxPen *arg2 = (wxPen *) 0 ;
5357 bool result;
5358 void *argp1 = 0 ;
5359 int res1 = 0 ;
5360 void *argp2 = 0 ;
5361 int res2 = 0 ;
5362 PyObject * obj0 = 0 ;
5363 PyObject * obj1 = 0 ;
5364 char * kwnames[] = {
5365 (char *) "self",(char *) "other", NULL
5366 };
5367
5368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5370 if (!SWIG_IsOK(res1)) {
5371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5372 }
5373 arg1 = reinterpret_cast< wxPen * >(argp1);
5374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5375 if (!SWIG_IsOK(res2)) {
5376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5377 }
5378 arg2 = reinterpret_cast< wxPen * >(argp2);
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 {
5386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5387 }
5388 return resultobj;
5389 fail:
5390 return NULL;
5391 }
5392
5393
5394 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5395 PyObject *resultobj = 0;
5396 wxPen *arg1 = (wxPen *) 0 ;
5397 wxPen *arg2 = (wxPen *) 0 ;
5398 bool result;
5399 void *argp1 = 0 ;
5400 int res1 = 0 ;
5401 void *argp2 = 0 ;
5402 int res2 = 0 ;
5403 PyObject * obj0 = 0 ;
5404 PyObject * obj1 = 0 ;
5405 char * kwnames[] = {
5406 (char *) "self",(char *) "other", NULL
5407 };
5408
5409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5411 if (!SWIG_IsOK(res1)) {
5412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5413 }
5414 arg1 = reinterpret_cast< wxPen * >(argp1);
5415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5416 if (!SWIG_IsOK(res2)) {
5417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5418 }
5419 arg2 = reinterpret_cast< wxPen * >(argp2);
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5423 wxPyEndAllowThreads(__tstate);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 }
5426 {
5427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5428 }
5429 return resultobj;
5430 fail:
5431 return NULL;
5432 }
5433
5434
5435 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5436 PyObject *obj;
5437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5438 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5439 return SWIG_Py_Void();
5440 }
5441
5442 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5443 return SWIG_Python_InitShadowInstance(args);
5444 }
5445
5446 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5447 PyObject *resultobj = 0;
5448 wxColour *arg1 = 0 ;
5449 int arg2 = (int) wxSOLID ;
5450 wxBrush *result = 0 ;
5451 wxColour temp1 ;
5452 int val2 ;
5453 int ecode2 = 0 ;
5454 PyObject * obj0 = 0 ;
5455 PyObject * obj1 = 0 ;
5456 char * kwnames[] = {
5457 (char *) "colour",(char *) "style", NULL
5458 };
5459
5460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5461 {
5462 arg1 = &temp1;
5463 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5464 }
5465 if (obj1) {
5466 ecode2 = SWIG_AsVal_int(obj1, &val2);
5467 if (!SWIG_IsOK(ecode2)) {
5468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5469 }
5470 arg2 = static_cast< int >(val2);
5471 }
5472 {
5473 if (!wxPyCheckForApp()) SWIG_fail;
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5476 wxPyEndAllowThreads(__tstate);
5477 if (PyErr_Occurred()) SWIG_fail;
5478 }
5479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5480 return resultobj;
5481 fail:
5482 return NULL;
5483 }
5484
5485
5486 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5487 PyObject *resultobj = 0;
5488 wxBitmap *arg1 = 0 ;
5489 wxBrush *result = 0 ;
5490 void *argp1 = 0 ;
5491 int res1 = 0 ;
5492 PyObject * obj0 = 0 ;
5493 char * kwnames[] = {
5494 (char *) "stippleBitmap", NULL
5495 };
5496
5497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5498 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5499 if (!SWIG_IsOK(res1)) {
5500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5501 }
5502 if (!argp1) {
5503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5504 }
5505 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5506 {
5507 if (!wxPyCheckForApp()) SWIG_fail;
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5514 return resultobj;
5515 fail:
5516 return NULL;
5517 }
5518
5519
5520 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5521 PyObject *resultobj = 0;
5522 wxBrush *arg1 = (wxBrush *) 0 ;
5523 void *argp1 = 0 ;
5524 int res1 = 0 ;
5525 PyObject *swig_obj[1] ;
5526
5527 if (!args) SWIG_fail;
5528 swig_obj[0] = args;
5529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5530 if (!SWIG_IsOK(res1)) {
5531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5532 }
5533 arg1 = reinterpret_cast< wxBrush * >(argp1);
5534 {
5535 PyThreadState* __tstate = wxPyBeginAllowThreads();
5536 delete arg1;
5537
5538 wxPyEndAllowThreads(__tstate);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 resultobj = SWIG_Py_Void();
5542 return resultobj;
5543 fail:
5544 return NULL;
5545 }
5546
5547
5548 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5549 PyObject *resultobj = 0;
5550 wxBrush *arg1 = (wxBrush *) 0 ;
5551 wxColour *arg2 = 0 ;
5552 void *argp1 = 0 ;
5553 int res1 = 0 ;
5554 wxColour temp2 ;
5555 PyObject * obj0 = 0 ;
5556 PyObject * obj1 = 0 ;
5557 char * kwnames[] = {
5558 (char *) "self",(char *) "col", NULL
5559 };
5560
5561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5563 if (!SWIG_IsOK(res1)) {
5564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5565 }
5566 arg1 = reinterpret_cast< wxBrush * >(argp1);
5567 {
5568 arg2 = &temp2;
5569 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5570 }
5571 {
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 (arg1)->SetColour((wxColour const &)*arg2);
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 resultobj = SWIG_Py_Void();
5578 return resultobj;
5579 fail:
5580 return NULL;
5581 }
5582
5583
5584 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5585 PyObject *resultobj = 0;
5586 wxBrush *arg1 = (wxBrush *) 0 ;
5587 int arg2 ;
5588 void *argp1 = 0 ;
5589 int res1 = 0 ;
5590 int val2 ;
5591 int ecode2 = 0 ;
5592 PyObject * obj0 = 0 ;
5593 PyObject * obj1 = 0 ;
5594 char * kwnames[] = {
5595 (char *) "self",(char *) "style", NULL
5596 };
5597
5598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5600 if (!SWIG_IsOK(res1)) {
5601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5602 }
5603 arg1 = reinterpret_cast< wxBrush * >(argp1);
5604 ecode2 = SWIG_AsVal_int(obj1, &val2);
5605 if (!SWIG_IsOK(ecode2)) {
5606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5607 }
5608 arg2 = static_cast< int >(val2);
5609 {
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 (arg1)->SetStyle(arg2);
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 resultobj = SWIG_Py_Void();
5616 return resultobj;
5617 fail:
5618 return NULL;
5619 }
5620
5621
5622 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5623 PyObject *resultobj = 0;
5624 wxBrush *arg1 = (wxBrush *) 0 ;
5625 wxBitmap *arg2 = 0 ;
5626 void *argp1 = 0 ;
5627 int res1 = 0 ;
5628 void *argp2 = 0 ;
5629 int res2 = 0 ;
5630 PyObject * obj0 = 0 ;
5631 PyObject * obj1 = 0 ;
5632 char * kwnames[] = {
5633 (char *) "self",(char *) "stipple", NULL
5634 };
5635
5636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5638 if (!SWIG_IsOK(res1)) {
5639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5640 }
5641 arg1 = reinterpret_cast< wxBrush * >(argp1);
5642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5643 if (!SWIG_IsOK(res2)) {
5644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5645 }
5646 if (!argp2) {
5647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5648 }
5649 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5650 {
5651 PyThreadState* __tstate = wxPyBeginAllowThreads();
5652 (arg1)->SetStipple((wxBitmap const &)*arg2);
5653 wxPyEndAllowThreads(__tstate);
5654 if (PyErr_Occurred()) SWIG_fail;
5655 }
5656 resultobj = SWIG_Py_Void();
5657 return resultobj;
5658 fail:
5659 return NULL;
5660 }
5661
5662
5663 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5664 PyObject *resultobj = 0;
5665 wxBrush *arg1 = (wxBrush *) 0 ;
5666 wxColour result;
5667 void *argp1 = 0 ;
5668 int res1 = 0 ;
5669 PyObject *swig_obj[1] ;
5670
5671 if (!args) SWIG_fail;
5672 swig_obj[0] = args;
5673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5674 if (!SWIG_IsOK(res1)) {
5675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5676 }
5677 arg1 = reinterpret_cast< wxBrush * >(argp1);
5678 {
5679 PyThreadState* __tstate = wxPyBeginAllowThreads();
5680 result = ((wxBrush const *)arg1)->GetColour();
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5685 return resultobj;
5686 fail:
5687 return NULL;
5688 }
5689
5690
5691 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 PyObject *resultobj = 0;
5693 wxBrush *arg1 = (wxBrush *) 0 ;
5694 int result;
5695 void *argp1 = 0 ;
5696 int res1 = 0 ;
5697 PyObject *swig_obj[1] ;
5698
5699 if (!args) SWIG_fail;
5700 swig_obj[0] = args;
5701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5702 if (!SWIG_IsOK(res1)) {
5703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5704 }
5705 arg1 = reinterpret_cast< wxBrush * >(argp1);
5706 {
5707 PyThreadState* __tstate = wxPyBeginAllowThreads();
5708 result = (int)((wxBrush const *)arg1)->GetStyle();
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 resultobj = SWIG_From_int(static_cast< int >(result));
5713 return resultobj;
5714 fail:
5715 return NULL;
5716 }
5717
5718
5719 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5720 PyObject *resultobj = 0;
5721 wxBrush *arg1 = (wxBrush *) 0 ;
5722 wxBitmap *result = 0 ;
5723 void *argp1 = 0 ;
5724 int res1 = 0 ;
5725 PyObject *swig_obj[1] ;
5726
5727 if (!args) SWIG_fail;
5728 swig_obj[0] = args;
5729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5730 if (!SWIG_IsOK(res1)) {
5731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5732 }
5733 arg1 = reinterpret_cast< wxBrush * >(argp1);
5734 {
5735 PyThreadState* __tstate = wxPyBeginAllowThreads();
5736 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5737 wxPyEndAllowThreads(__tstate);
5738 if (PyErr_Occurred()) SWIG_fail;
5739 }
5740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5741 return resultobj;
5742 fail:
5743 return NULL;
5744 }
5745
5746
5747 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5748 PyObject *resultobj = 0;
5749 wxBrush *arg1 = (wxBrush *) 0 ;
5750 bool result;
5751 void *argp1 = 0 ;
5752 int res1 = 0 ;
5753 PyObject *swig_obj[1] ;
5754
5755 if (!args) SWIG_fail;
5756 swig_obj[0] = args;
5757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5758 if (!SWIG_IsOK(res1)) {
5759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5760 }
5761 arg1 = reinterpret_cast< wxBrush * >(argp1);
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 result = (bool)((wxBrush const *)arg1)->IsHatch();
5765 wxPyEndAllowThreads(__tstate);
5766 if (PyErr_Occurred()) SWIG_fail;
5767 }
5768 {
5769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5770 }
5771 return resultobj;
5772 fail:
5773 return NULL;
5774 }
5775
5776
5777 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5778 PyObject *resultobj = 0;
5779 wxBrush *arg1 = (wxBrush *) 0 ;
5780 bool result;
5781 void *argp1 = 0 ;
5782 int res1 = 0 ;
5783 PyObject *swig_obj[1] ;
5784
5785 if (!args) SWIG_fail;
5786 swig_obj[0] = args;
5787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5788 if (!SWIG_IsOK(res1)) {
5789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5790 }
5791 arg1 = reinterpret_cast< wxBrush * >(argp1);
5792 {
5793 PyThreadState* __tstate = wxPyBeginAllowThreads();
5794 result = (bool)(arg1)->IsOk();
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 {
5799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5800 }
5801 return resultobj;
5802 fail:
5803 return NULL;
5804 }
5805
5806
5807 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5808 PyObject *obj;
5809 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5810 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5811 return SWIG_Py_Void();
5812 }
5813
5814 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5815 return SWIG_Python_InitShadowInstance(args);
5816 }
5817
5818 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5819 PyObject *resultobj = 0;
5820 wxString *arg1 = 0 ;
5821 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5822 wxBitmap *result = 0 ;
5823 bool temp1 = false ;
5824 int val2 ;
5825 int ecode2 = 0 ;
5826 PyObject * obj0 = 0 ;
5827 PyObject * obj1 = 0 ;
5828 char * kwnames[] = {
5829 (char *) "name",(char *) "type", NULL
5830 };
5831
5832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5833 {
5834 arg1 = wxString_in_helper(obj0);
5835 if (arg1 == NULL) SWIG_fail;
5836 temp1 = true;
5837 }
5838 if (obj1) {
5839 ecode2 = SWIG_AsVal_int(obj1, &val2);
5840 if (!SWIG_IsOK(ecode2)) {
5841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5842 }
5843 arg2 = static_cast< wxBitmapType >(val2);
5844 }
5845 {
5846 if (!wxPyCheckForApp()) SWIG_fail;
5847 PyThreadState* __tstate = wxPyBeginAllowThreads();
5848 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5849 wxPyEndAllowThreads(__tstate);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5853 {
5854 if (temp1)
5855 delete arg1;
5856 }
5857 return resultobj;
5858 fail:
5859 {
5860 if (temp1)
5861 delete arg1;
5862 }
5863 return NULL;
5864 }
5865
5866
5867 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5868 PyObject *resultobj = 0;
5869 wxBitmap *arg1 = (wxBitmap *) 0 ;
5870 void *argp1 = 0 ;
5871 int res1 = 0 ;
5872 PyObject *swig_obj[1] ;
5873
5874 if (!args) SWIG_fail;
5875 swig_obj[0] = args;
5876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5877 if (!SWIG_IsOK(res1)) {
5878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5879 }
5880 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5881 {
5882 delete arg1;
5883
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 resultobj = SWIG_Py_Void();
5887 return resultobj;
5888 fail:
5889 return NULL;
5890 }
5891
5892
5893 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5894 PyObject *resultobj = 0;
5895 int arg1 ;
5896 int arg2 ;
5897 int arg3 = (int) -1 ;
5898 wxBitmap *result = 0 ;
5899 int val1 ;
5900 int ecode1 = 0 ;
5901 int val2 ;
5902 int ecode2 = 0 ;
5903 int val3 ;
5904 int ecode3 = 0 ;
5905 PyObject * obj0 = 0 ;
5906 PyObject * obj1 = 0 ;
5907 PyObject * obj2 = 0 ;
5908 char * kwnames[] = {
5909 (char *) "width",(char *) "height",(char *) "depth", NULL
5910 };
5911
5912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5913 ecode1 = SWIG_AsVal_int(obj0, &val1);
5914 if (!SWIG_IsOK(ecode1)) {
5915 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5916 }
5917 arg1 = static_cast< int >(val1);
5918 ecode2 = SWIG_AsVal_int(obj1, &val2);
5919 if (!SWIG_IsOK(ecode2)) {
5920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5921 }
5922 arg2 = static_cast< int >(val2);
5923 if (obj2) {
5924 ecode3 = SWIG_AsVal_int(obj2, &val3);
5925 if (!SWIG_IsOK(ecode3)) {
5926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5927 }
5928 arg3 = static_cast< int >(val3);
5929 }
5930 {
5931 if (!wxPyCheckForApp()) SWIG_fail;
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5938 return resultobj;
5939 fail:
5940 return NULL;
5941 }
5942
5943
5944 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5945 PyObject *resultobj = 0;
5946 wxIcon *arg1 = 0 ;
5947 wxBitmap *result = 0 ;
5948 void *argp1 = 0 ;
5949 int res1 = 0 ;
5950 PyObject * obj0 = 0 ;
5951 char * kwnames[] = {
5952 (char *) "icon", NULL
5953 };
5954
5955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5956 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5957 if (!SWIG_IsOK(res1)) {
5958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5959 }
5960 if (!argp1) {
5961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5962 }
5963 arg1 = reinterpret_cast< wxIcon * >(argp1);
5964 {
5965 if (!wxPyCheckForApp()) SWIG_fail;
5966 PyThreadState* __tstate = wxPyBeginAllowThreads();
5967 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5972 return resultobj;
5973 fail:
5974 return NULL;
5975 }
5976
5977
5978 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5979 PyObject *resultobj = 0;
5980 wxImage *arg1 = 0 ;
5981 int arg2 = (int) -1 ;
5982 wxBitmap *result = 0 ;
5983 void *argp1 = 0 ;
5984 int res1 = 0 ;
5985 int val2 ;
5986 int ecode2 = 0 ;
5987 PyObject * obj0 = 0 ;
5988 PyObject * obj1 = 0 ;
5989 char * kwnames[] = {
5990 (char *) "image",(char *) "depth", NULL
5991 };
5992
5993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5994 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5995 if (!SWIG_IsOK(res1)) {
5996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5997 }
5998 if (!argp1) {
5999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6000 }
6001 arg1 = reinterpret_cast< wxImage * >(argp1);
6002 if (obj1) {
6003 ecode2 = SWIG_AsVal_int(obj1, &val2);
6004 if (!SWIG_IsOK(ecode2)) {
6005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6006 }
6007 arg2 = static_cast< int >(val2);
6008 }
6009 {
6010 if (!wxPyCheckForApp()) SWIG_fail;
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6024 PyObject *resultobj = 0;
6025 PyObject *arg1 = (PyObject *) 0 ;
6026 wxBitmap *result = 0 ;
6027 PyObject * obj0 = 0 ;
6028 char * kwnames[] = {
6029 (char *) "listOfStrings", NULL
6030 };
6031
6032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6033 arg1 = obj0;
6034 {
6035 if (!wxPyCheckForApp()) SWIG_fail;
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = (wxBitmap *)new_wxBitmap(arg1);
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6042 return resultobj;
6043 fail:
6044 return NULL;
6045 }
6046
6047
6048 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj = 0;
6050 PyObject *arg1 = (PyObject *) 0 ;
6051 int arg2 ;
6052 int arg3 ;
6053 int arg4 = (int) 1 ;
6054 wxBitmap *result = 0 ;
6055 int val2 ;
6056 int ecode2 = 0 ;
6057 int val3 ;
6058 int ecode3 = 0 ;
6059 int val4 ;
6060 int ecode4 = 0 ;
6061 PyObject * obj0 = 0 ;
6062 PyObject * obj1 = 0 ;
6063 PyObject * obj2 = 0 ;
6064 PyObject * obj3 = 0 ;
6065 char * kwnames[] = {
6066 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6067 };
6068
6069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6070 arg1 = obj0;
6071 ecode2 = SWIG_AsVal_int(obj1, &val2);
6072 if (!SWIG_IsOK(ecode2)) {
6073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6074 }
6075 arg2 = static_cast< int >(val2);
6076 ecode3 = SWIG_AsVal_int(obj2, &val3);
6077 if (!SWIG_IsOK(ecode3)) {
6078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6079 }
6080 arg3 = static_cast< int >(val3);
6081 if (obj3) {
6082 ecode4 = SWIG_AsVal_int(obj3, &val4);
6083 if (!SWIG_IsOK(ecode4)) {
6084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6085 }
6086 arg4 = static_cast< int >(val4);
6087 }
6088 {
6089 if (!wxPyCheckForApp()) SWIG_fail;
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6103 PyObject *resultobj = 0;
6104 wxBitmap *arg1 = (wxBitmap *) 0 ;
6105 bool result;
6106 void *argp1 = 0 ;
6107 int res1 = 0 ;
6108 PyObject *swig_obj[1] ;
6109
6110 if (!args) SWIG_fail;
6111 swig_obj[0] = args;
6112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6113 if (!SWIG_IsOK(res1)) {
6114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6115 }
6116 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6117 {
6118 result = (bool)(arg1)->IsOk();
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 {
6122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6123 }
6124 return resultobj;
6125 fail:
6126 return NULL;
6127 }
6128
6129
6130 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6131 PyObject *resultobj = 0;
6132 wxBitmap *arg1 = (wxBitmap *) 0 ;
6133 int result;
6134 void *argp1 = 0 ;
6135 int res1 = 0 ;
6136 PyObject *swig_obj[1] ;
6137
6138 if (!args) SWIG_fail;
6139 swig_obj[0] = args;
6140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6141 if (!SWIG_IsOK(res1)) {
6142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6143 }
6144 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6145 {
6146 result = (int)(arg1)->GetWidth();
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 resultobj = SWIG_From_int(static_cast< int >(result));
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6157 PyObject *resultobj = 0;
6158 wxBitmap *arg1 = (wxBitmap *) 0 ;
6159 int result;
6160 void *argp1 = 0 ;
6161 int res1 = 0 ;
6162 PyObject *swig_obj[1] ;
6163
6164 if (!args) SWIG_fail;
6165 swig_obj[0] = args;
6166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6167 if (!SWIG_IsOK(res1)) {
6168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6169 }
6170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6171 {
6172 result = (int)(arg1)->GetHeight();
6173 if (PyErr_Occurred()) SWIG_fail;
6174 }
6175 resultobj = SWIG_From_int(static_cast< int >(result));
6176 return resultobj;
6177 fail:
6178 return NULL;
6179 }
6180
6181
6182 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6183 PyObject *resultobj = 0;
6184 wxBitmap *arg1 = (wxBitmap *) 0 ;
6185 int result;
6186 void *argp1 = 0 ;
6187 int res1 = 0 ;
6188 PyObject *swig_obj[1] ;
6189
6190 if (!args) SWIG_fail;
6191 swig_obj[0] = args;
6192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6193 if (!SWIG_IsOK(res1)) {
6194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6195 }
6196 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6197 {
6198 result = (int)(arg1)->GetDepth();
6199 if (PyErr_Occurred()) SWIG_fail;
6200 }
6201 resultobj = SWIG_From_int(static_cast< int >(result));
6202 return resultobj;
6203 fail:
6204 return NULL;
6205 }
6206
6207
6208 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6209 PyObject *resultobj = 0;
6210 wxBitmap *arg1 = (wxBitmap *) 0 ;
6211 wxSize result;
6212 void *argp1 = 0 ;
6213 int res1 = 0 ;
6214 PyObject *swig_obj[1] ;
6215
6216 if (!args) SWIG_fail;
6217 swig_obj[0] = args;
6218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6219 if (!SWIG_IsOK(res1)) {
6220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6221 }
6222 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6223 {
6224 result = wxBitmap_GetSize(arg1);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6235 PyObject *resultobj = 0;
6236 wxBitmap *arg1 = (wxBitmap *) 0 ;
6237 SwigValueWrapper<wxImage > result;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 PyObject *swig_obj[1] ;
6241
6242 if (!args) SWIG_fail;
6243 swig_obj[0] = args;
6244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6245 if (!SWIG_IsOK(res1)) {
6246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6247 }
6248 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6249 {
6250 result = ((wxBitmap const *)arg1)->ConvertToImage();
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6261 PyObject *resultobj = 0;
6262 wxBitmap *arg1 = (wxBitmap *) 0 ;
6263 wxMask *result = 0 ;
6264 void *argp1 = 0 ;
6265 int res1 = 0 ;
6266 PyObject *swig_obj[1] ;
6267
6268 if (!args) SWIG_fail;
6269 swig_obj[0] = args;
6270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6271 if (!SWIG_IsOK(res1)) {
6272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6273 }
6274 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6275 {
6276 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6277 if (PyErr_Occurred()) SWIG_fail;
6278 }
6279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6280 return resultobj;
6281 fail:
6282 return NULL;
6283 }
6284
6285
6286 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6287 PyObject *resultobj = 0;
6288 wxBitmap *arg1 = (wxBitmap *) 0 ;
6289 wxMask *arg2 = (wxMask *) 0 ;
6290 void *argp1 = 0 ;
6291 int res1 = 0 ;
6292 int res2 = 0 ;
6293 PyObject * obj0 = 0 ;
6294 PyObject * obj1 = 0 ;
6295 char * kwnames[] = {
6296 (char *) "self",(char *) "mask", NULL
6297 };
6298
6299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6301 if (!SWIG_IsOK(res1)) {
6302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6303 }
6304 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6305 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6306 if (!SWIG_IsOK(res2)) {
6307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6308 }
6309 {
6310 (arg1)->SetMask(arg2);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 resultobj = SWIG_Py_Void();
6314 return resultobj;
6315 fail:
6316 return NULL;
6317 }
6318
6319
6320 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6321 PyObject *resultobj = 0;
6322 wxBitmap *arg1 = (wxBitmap *) 0 ;
6323 wxColour *arg2 = 0 ;
6324 void *argp1 = 0 ;
6325 int res1 = 0 ;
6326 wxColour temp2 ;
6327 PyObject * obj0 = 0 ;
6328 PyObject * obj1 = 0 ;
6329 char * kwnames[] = {
6330 (char *) "self",(char *) "colour", NULL
6331 };
6332
6333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6335 if (!SWIG_IsOK(res1)) {
6336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6337 }
6338 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6339 {
6340 arg2 = &temp2;
6341 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6342 }
6343 {
6344 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_Py_Void();
6348 return resultobj;
6349 fail:
6350 return NULL;
6351 }
6352
6353
6354 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj = 0;
6356 wxBitmap *arg1 = (wxBitmap *) 0 ;
6357 wxRect *arg2 = 0 ;
6358 SwigValueWrapper<wxBitmap > result;
6359 void *argp1 = 0 ;
6360 int res1 = 0 ;
6361 wxRect temp2 ;
6362 PyObject * obj0 = 0 ;
6363 PyObject * obj1 = 0 ;
6364 char * kwnames[] = {
6365 (char *) "self",(char *) "rect", NULL
6366 };
6367
6368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6370 if (!SWIG_IsOK(res1)) {
6371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6372 }
6373 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6374 {
6375 arg2 = &temp2;
6376 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6377 }
6378 {
6379 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6380 if (PyErr_Occurred()) SWIG_fail;
6381 }
6382 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6383 return resultobj;
6384 fail:
6385 return NULL;
6386 }
6387
6388
6389 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6390 PyObject *resultobj = 0;
6391 wxBitmap *arg1 = (wxBitmap *) 0 ;
6392 wxString *arg2 = 0 ;
6393 wxBitmapType arg3 ;
6394 wxPalette *arg4 = (wxPalette *) NULL ;
6395 bool result;
6396 void *argp1 = 0 ;
6397 int res1 = 0 ;
6398 bool temp2 = false ;
6399 int val3 ;
6400 int ecode3 = 0 ;
6401 void *argp4 = 0 ;
6402 int res4 = 0 ;
6403 PyObject * obj0 = 0 ;
6404 PyObject * obj1 = 0 ;
6405 PyObject * obj2 = 0 ;
6406 PyObject * obj3 = 0 ;
6407 char * kwnames[] = {
6408 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6409 };
6410
6411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6413 if (!SWIG_IsOK(res1)) {
6414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6415 }
6416 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6417 {
6418 arg2 = wxString_in_helper(obj1);
6419 if (arg2 == NULL) SWIG_fail;
6420 temp2 = true;
6421 }
6422 ecode3 = SWIG_AsVal_int(obj2, &val3);
6423 if (!SWIG_IsOK(ecode3)) {
6424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6425 }
6426 arg3 = static_cast< wxBitmapType >(val3);
6427 if (obj3) {
6428 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6429 if (!SWIG_IsOK(res4)) {
6430 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6431 }
6432 arg4 = reinterpret_cast< wxPalette * >(argp4);
6433 }
6434 {
6435 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6436 if (PyErr_Occurred()) SWIG_fail;
6437 }
6438 {
6439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6440 }
6441 {
6442 if (temp2)
6443 delete arg2;
6444 }
6445 return resultobj;
6446 fail:
6447 {
6448 if (temp2)
6449 delete arg2;
6450 }
6451 return NULL;
6452 }
6453
6454
6455 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj = 0;
6457 wxBitmap *arg1 = (wxBitmap *) 0 ;
6458 wxString *arg2 = 0 ;
6459 wxBitmapType arg3 ;
6460 bool result;
6461 void *argp1 = 0 ;
6462 int res1 = 0 ;
6463 bool temp2 = false ;
6464 int val3 ;
6465 int ecode3 = 0 ;
6466 PyObject * obj0 = 0 ;
6467 PyObject * obj1 = 0 ;
6468 PyObject * obj2 = 0 ;
6469 char * kwnames[] = {
6470 (char *) "self",(char *) "name",(char *) "type", NULL
6471 };
6472
6473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6475 if (!SWIG_IsOK(res1)) {
6476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6477 }
6478 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6479 {
6480 arg2 = wxString_in_helper(obj1);
6481 if (arg2 == NULL) SWIG_fail;
6482 temp2 = true;
6483 }
6484 ecode3 = SWIG_AsVal_int(obj2, &val3);
6485 if (!SWIG_IsOK(ecode3)) {
6486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6487 }
6488 arg3 = static_cast< wxBitmapType >(val3);
6489 {
6490 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 {
6494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6495 }
6496 {
6497 if (temp2)
6498 delete arg2;
6499 }
6500 return resultobj;
6501 fail:
6502 {
6503 if (temp2)
6504 delete arg2;
6505 }
6506 return NULL;
6507 }
6508
6509
6510 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511 PyObject *resultobj = 0;
6512 wxBitmap *arg1 = (wxBitmap *) 0 ;
6513 wxPalette *result = 0 ;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6523 }
6524 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6525 {
6526 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6527 if (PyErr_Occurred()) SWIG_fail;
6528 }
6529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6537 PyObject *resultobj = 0;
6538 wxBitmap *arg1 = (wxBitmap *) 0 ;
6539 wxIcon *arg2 = 0 ;
6540 bool result;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 void *argp2 = 0 ;
6544 int res2 = 0 ;
6545 PyObject * obj0 = 0 ;
6546 PyObject * obj1 = 0 ;
6547 char * kwnames[] = {
6548 (char *) "self",(char *) "icon", NULL
6549 };
6550
6551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6553 if (!SWIG_IsOK(res1)) {
6554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6555 }
6556 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6558 if (!SWIG_IsOK(res2)) {
6559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6560 }
6561 if (!argp2) {
6562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6563 }
6564 arg2 = reinterpret_cast< wxIcon * >(argp2);
6565 {
6566 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6567 if (PyErr_Occurred()) SWIG_fail;
6568 }
6569 {
6570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6571 }
6572 return resultobj;
6573 fail:
6574 return NULL;
6575 }
6576
6577
6578 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6579 PyObject *resultobj = 0;
6580 wxBitmap *arg1 = (wxBitmap *) 0 ;
6581 int arg2 ;
6582 void *argp1 = 0 ;
6583 int res1 = 0 ;
6584 int val2 ;
6585 int ecode2 = 0 ;
6586 PyObject * obj0 = 0 ;
6587 PyObject * obj1 = 0 ;
6588 char * kwnames[] = {
6589 (char *) "self",(char *) "height", NULL
6590 };
6591
6592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6594 if (!SWIG_IsOK(res1)) {
6595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6596 }
6597 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6598 ecode2 = SWIG_AsVal_int(obj1, &val2);
6599 if (!SWIG_IsOK(ecode2)) {
6600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6601 }
6602 arg2 = static_cast< int >(val2);
6603 {
6604 (arg1)->SetHeight(arg2);
6605 if (PyErr_Occurred()) SWIG_fail;
6606 }
6607 resultobj = SWIG_Py_Void();
6608 return resultobj;
6609 fail:
6610 return NULL;
6611 }
6612
6613
6614 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6615 PyObject *resultobj = 0;
6616 wxBitmap *arg1 = (wxBitmap *) 0 ;
6617 int arg2 ;
6618 void *argp1 = 0 ;
6619 int res1 = 0 ;
6620 int val2 ;
6621 int ecode2 = 0 ;
6622 PyObject * obj0 = 0 ;
6623 PyObject * obj1 = 0 ;
6624 char * kwnames[] = {
6625 (char *) "self",(char *) "width", NULL
6626 };
6627
6628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6632 }
6633 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6634 ecode2 = SWIG_AsVal_int(obj1, &val2);
6635 if (!SWIG_IsOK(ecode2)) {
6636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6637 }
6638 arg2 = static_cast< int >(val2);
6639 {
6640 (arg1)->SetWidth(arg2);
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 resultobj = SWIG_Py_Void();
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj = 0;
6652 wxBitmap *arg1 = (wxBitmap *) 0 ;
6653 int arg2 ;
6654 void *argp1 = 0 ;
6655 int res1 = 0 ;
6656 int val2 ;
6657 int ecode2 = 0 ;
6658 PyObject * obj0 = 0 ;
6659 PyObject * obj1 = 0 ;
6660 char * kwnames[] = {
6661 (char *) "self",(char *) "depth", NULL
6662 };
6663
6664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6666 if (!SWIG_IsOK(res1)) {
6667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6668 }
6669 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6670 ecode2 = SWIG_AsVal_int(obj1, &val2);
6671 if (!SWIG_IsOK(ecode2)) {
6672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6673 }
6674 arg2 = static_cast< int >(val2);
6675 {
6676 (arg1)->SetDepth(arg2);
6677 if (PyErr_Occurred()) SWIG_fail;
6678 }
6679 resultobj = SWIG_Py_Void();
6680 return resultobj;
6681 fail:
6682 return NULL;
6683 }
6684
6685
6686 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6687 PyObject *resultobj = 0;
6688 wxBitmap *arg1 = (wxBitmap *) 0 ;
6689 wxSize *arg2 = 0 ;
6690 void *argp1 = 0 ;
6691 int res1 = 0 ;
6692 wxSize temp2 ;
6693 PyObject * obj0 = 0 ;
6694 PyObject * obj1 = 0 ;
6695 char * kwnames[] = {
6696 (char *) "self",(char *) "size", NULL
6697 };
6698
6699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6701 if (!SWIG_IsOK(res1)) {
6702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6703 }
6704 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6705 {
6706 arg2 = &temp2;
6707 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6708 }
6709 {
6710 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 resultobj = SWIG_Py_Void();
6714 return resultobj;
6715 fail:
6716 return NULL;
6717 }
6718
6719
6720 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6721 PyObject *resultobj = 0;
6722 wxBitmap *arg1 = (wxBitmap *) 0 ;
6723 wxBitmap *arg2 = (wxBitmap *) 0 ;
6724 bool result;
6725 void *argp1 = 0 ;
6726 int res1 = 0 ;
6727 void *argp2 = 0 ;
6728 int res2 = 0 ;
6729 PyObject * obj0 = 0 ;
6730 PyObject * obj1 = 0 ;
6731 char * kwnames[] = {
6732 (char *) "self",(char *) "other", NULL
6733 };
6734
6735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6737 if (!SWIG_IsOK(res1)) {
6738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6739 }
6740 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6741 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6742 if (!SWIG_IsOK(res2)) {
6743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6744 }
6745 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6746 {
6747 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6748 if (PyErr_Occurred()) SWIG_fail;
6749 }
6750 {
6751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6752 }
6753 return resultobj;
6754 fail:
6755 return NULL;
6756 }
6757
6758
6759 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6760 PyObject *resultobj = 0;
6761 wxBitmap *arg1 = (wxBitmap *) 0 ;
6762 wxBitmap *arg2 = (wxBitmap *) 0 ;
6763 bool result;
6764 void *argp1 = 0 ;
6765 int res1 = 0 ;
6766 void *argp2 = 0 ;
6767 int res2 = 0 ;
6768 PyObject * obj0 = 0 ;
6769 PyObject * obj1 = 0 ;
6770 char * kwnames[] = {
6771 (char *) "self",(char *) "other", NULL
6772 };
6773
6774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6776 if (!SWIG_IsOK(res1)) {
6777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6778 }
6779 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6780 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6781 if (!SWIG_IsOK(res2)) {
6782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6783 }
6784 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6785 {
6786 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6787 if (PyErr_Occurred()) SWIG_fail;
6788 }
6789 {
6790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6791 }
6792 return resultobj;
6793 fail:
6794 return NULL;
6795 }
6796
6797
6798 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6799 PyObject *obj;
6800 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6801 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6802 return SWIG_Py_Void();
6803 }
6804
6805 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6806 return SWIG_Python_InitShadowInstance(args);
6807 }
6808
6809 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj = 0;
6811 int arg1 ;
6812 int arg2 ;
6813 buffer arg3 ;
6814 int arg4 ;
6815 buffer arg5 ;
6816 int arg6 ;
6817 wxBitmap *result = 0 ;
6818 int val1 ;
6819 int ecode1 = 0 ;
6820 int val2 ;
6821 int ecode2 = 0 ;
6822 Py_ssize_t temp3 ;
6823 Py_ssize_t temp5 ;
6824 PyObject * obj0 = 0 ;
6825 PyObject * obj1 = 0 ;
6826 PyObject * obj2 = 0 ;
6827 PyObject * obj3 = 0 ;
6828 char * kwnames[] = {
6829 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6830 };
6831
6832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6833 ecode1 = SWIG_AsVal_int(obj0, &val1);
6834 if (!SWIG_IsOK(ecode1)) {
6835 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6836 }
6837 arg1 = static_cast< int >(val1);
6838 ecode2 = SWIG_AsVal_int(obj1, &val2);
6839 if (!SWIG_IsOK(ecode2)) {
6840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6841 }
6842 arg2 = static_cast< int >(val2);
6843 {
6844 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6845 arg4 = (int)temp3;
6846 }
6847 {
6848 if (obj3 != Py_None) {
6849 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6850 arg6 = (int)temp5;
6851 }
6852 }
6853 {
6854 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6855 if (PyErr_Occurred()) SWIG_fail;
6856 }
6857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6858 return resultobj;
6859 fail:
6860 return NULL;
6861 }
6862
6863
6864 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6865 PyObject *resultobj = 0;
6866 int arg1 ;
6867 int arg2 ;
6868 buffer arg3 ;
6869 int arg4 ;
6870 wxBitmap *result = 0 ;
6871 int val1 ;
6872 int ecode1 = 0 ;
6873 int val2 ;
6874 int ecode2 = 0 ;
6875 Py_ssize_t temp3 ;
6876 PyObject * obj0 = 0 ;
6877 PyObject * obj1 = 0 ;
6878 PyObject * obj2 = 0 ;
6879 char * kwnames[] = {
6880 (char *) "width",(char *) "height",(char *) "data", NULL
6881 };
6882
6883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6884 ecode1 = SWIG_AsVal_int(obj0, &val1);
6885 if (!SWIG_IsOK(ecode1)) {
6886 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6887 }
6888 arg1 = static_cast< int >(val1);
6889 ecode2 = SWIG_AsVal_int(obj1, &val2);
6890 if (!SWIG_IsOK(ecode2)) {
6891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6892 }
6893 arg2 = static_cast< int >(val2);
6894 {
6895 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6896 arg4 = (int)temp3;
6897 }
6898 {
6899 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6903 return resultobj;
6904 fail:
6905 return NULL;
6906 }
6907
6908
6909 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6910 PyObject *resultobj = 0;
6911 int arg1 ;
6912 int arg2 ;
6913 buffer arg3 ;
6914 int arg4 ;
6915 wxBitmap *result = 0 ;
6916 int val1 ;
6917 int ecode1 = 0 ;
6918 int val2 ;
6919 int ecode2 = 0 ;
6920 Py_ssize_t temp3 ;
6921 PyObject * obj0 = 0 ;
6922 PyObject * obj1 = 0 ;
6923 PyObject * obj2 = 0 ;
6924 char * kwnames[] = {
6925 (char *) "width",(char *) "height",(char *) "data", NULL
6926 };
6927
6928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6929 ecode1 = SWIG_AsVal_int(obj0, &val1);
6930 if (!SWIG_IsOK(ecode1)) {
6931 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6932 }
6933 arg1 = static_cast< int >(val1);
6934 ecode2 = SWIG_AsVal_int(obj1, &val2);
6935 if (!SWIG_IsOK(ecode2)) {
6936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6937 }
6938 arg2 = static_cast< int >(val2);
6939 {
6940 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6941 arg4 = (int)temp3;
6942 }
6943 {
6944 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6948 return resultobj;
6949 fail:
6950 return NULL;
6951 }
6952
6953
6954 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6955 PyObject *resultobj = 0;
6956 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6957 wxPoint result;
6958 void *argp1 = 0 ;
6959 int res1 = 0 ;
6960 PyObject *swig_obj[1] ;
6961
6962 if (!args) SWIG_fail;
6963 swig_obj[0] = args;
6964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6965 if (!SWIG_IsOK(res1)) {
6966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6967 }
6968 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6969 {
6970 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6981 PyObject *resultobj = 0;
6982 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6983 int result;
6984 void *argp1 = 0 ;
6985 int res1 = 0 ;
6986 PyObject *swig_obj[1] ;
6987
6988 if (!args) SWIG_fail;
6989 swig_obj[0] = args;
6990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6991 if (!SWIG_IsOK(res1)) {
6992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6993 }
6994 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6995 {
6996 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 resultobj = SWIG_From_int(static_cast< int >(result));
7000 return resultobj;
7001 fail:
7002 return NULL;
7003 }
7004
7005
7006 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7007 PyObject *resultobj = 0;
7008 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7009 int result;
7010 void *argp1 = 0 ;
7011 int res1 = 0 ;
7012 PyObject *swig_obj[1] ;
7013
7014 if (!args) SWIG_fail;
7015 swig_obj[0] = args;
7016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7017 if (!SWIG_IsOK(res1)) {
7018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7019 }
7020 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7021 {
7022 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_From_int(static_cast< int >(result));
7026 return resultobj;
7027 fail:
7028 return NULL;
7029 }
7030
7031
7032 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7033 PyObject *resultobj = 0;
7034 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7035 wxSize result;
7036 void *argp1 = 0 ;
7037 int res1 = 0 ;
7038 PyObject *swig_obj[1] ;
7039
7040 if (!args) SWIG_fail;
7041 swig_obj[0] = args;
7042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7043 if (!SWIG_IsOK(res1)) {
7044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7045 }
7046 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7047 {
7048 result = ((wxPixelDataBase const *)arg1)->GetSize();
7049 if (PyErr_Occurred()) SWIG_fail;
7050 }
7051 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7052 return resultobj;
7053 fail:
7054 return NULL;
7055 }
7056
7057
7058 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7059 PyObject *resultobj = 0;
7060 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7061 int result;
7062 void *argp1 = 0 ;
7063 int res1 = 0 ;
7064 PyObject *swig_obj[1] ;
7065
7066 if (!args) SWIG_fail;
7067 swig_obj[0] = args;
7068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7069 if (!SWIG_IsOK(res1)) {
7070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7071 }
7072 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7073 {
7074 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7075 if (PyErr_Occurred()) SWIG_fail;
7076 }
7077 resultobj = SWIG_From_int(static_cast< int >(result));
7078 return resultobj;
7079 fail:
7080 return NULL;
7081 }
7082
7083
7084 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7085 PyObject *obj;
7086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7087 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7088 return SWIG_Py_Void();
7089 }
7090
7091 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7092 PyObject *resultobj = 0;
7093 wxBitmap *arg1 = 0 ;
7094 wxNativePixelData *result = 0 ;
7095 void *argp1 = 0 ;
7096 int res1 = 0 ;
7097
7098 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7100 if (!SWIG_IsOK(res1)) {
7101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7102 }
7103 if (!argp1) {
7104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7105 }
7106 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7107 {
7108 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7109 if (PyErr_Occurred()) SWIG_fail;
7110 }
7111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7112 return resultobj;
7113 fail:
7114 return NULL;
7115 }
7116
7117
7118 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7119 PyObject *resultobj = 0;
7120 wxBitmap *arg1 = 0 ;
7121 wxRect *arg2 = 0 ;
7122 wxNativePixelData *result = 0 ;
7123 void *argp1 = 0 ;
7124 int res1 = 0 ;
7125 wxRect temp2 ;
7126
7127 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7129 if (!SWIG_IsOK(res1)) {
7130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7131 }
7132 if (!argp1) {
7133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7134 }
7135 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7136 {
7137 arg2 = &temp2;
7138 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7139 }
7140 {
7141 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7145 return resultobj;
7146 fail:
7147 return NULL;
7148 }
7149
7150
7151 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7152 PyObject *resultobj = 0;
7153 wxBitmap *arg1 = 0 ;
7154 wxPoint *arg2 = 0 ;
7155 wxSize *arg3 = 0 ;
7156 wxNativePixelData *result = 0 ;
7157 void *argp1 = 0 ;
7158 int res1 = 0 ;
7159 wxPoint temp2 ;
7160 wxSize temp3 ;
7161
7162 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7164 if (!SWIG_IsOK(res1)) {
7165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7166 }
7167 if (!argp1) {
7168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7169 }
7170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7171 {
7172 arg2 = &temp2;
7173 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7174 }
7175 {
7176 arg3 = &temp3;
7177 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7178 }
7179 {
7180 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7191 int argc;
7192 PyObject *argv[4];
7193
7194 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7195 --argc;
7196 if (argc == 1) {
7197 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7198 }
7199 if (argc == 2) {
7200 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7201 }
7202 if (argc == 3) {
7203 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7204 }
7205
7206 fail:
7207 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7208 return NULL;
7209 }
7210
7211
7212 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7213 PyObject *resultobj = 0;
7214 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7215 void *argp1 = 0 ;
7216 int res1 = 0 ;
7217 PyObject *swig_obj[1] ;
7218
7219 if (!args) SWIG_fail;
7220 swig_obj[0] = args;
7221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7222 if (!SWIG_IsOK(res1)) {
7223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7224 }
7225 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7226 {
7227 delete arg1;
7228
7229 if (PyErr_Occurred()) SWIG_fail;
7230 }
7231 resultobj = SWIG_Py_Void();
7232 return resultobj;
7233 fail:
7234 return NULL;
7235 }
7236
7237
7238 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7239 PyObject *resultobj = 0;
7240 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7241 wxNativePixelData_Accessor result;
7242 void *argp1 = 0 ;
7243 int res1 = 0 ;
7244 PyObject *swig_obj[1] ;
7245
7246 if (!args) SWIG_fail;
7247 swig_obj[0] = args;
7248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7249 if (!SWIG_IsOK(res1)) {
7250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7251 }
7252 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7253 {
7254 result = ((wxNativePixelData const *)arg1)->GetPixels();
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7258 return resultobj;
7259 fail:
7260 return NULL;
7261 }
7262
7263
7264 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7265 PyObject *resultobj = 0;
7266 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7267 void *argp1 = 0 ;
7268 int res1 = 0 ;
7269 PyObject *swig_obj[1] ;
7270
7271 if (!args) SWIG_fail;
7272 swig_obj[0] = args;
7273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7276 }
7277 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7278 {
7279 (arg1)->UseAlpha();
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 resultobj = SWIG_Py_Void();
7283 return resultobj;
7284 fail:
7285 return NULL;
7286 }
7287
7288
7289 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7290 PyObject *resultobj = 0;
7291 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7292 bool result;
7293 void *argp1 = 0 ;
7294 int res1 = 0 ;
7295 PyObject *swig_obj[1] ;
7296
7297 if (!args) SWIG_fail;
7298 swig_obj[0] = args;
7299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7300 if (!SWIG_IsOK(res1)) {
7301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7302 }
7303 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7304 {
7305 result = (bool)wxNativePixelData___nonzero__(arg1);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 {
7309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7310 }
7311 return resultobj;
7312 fail:
7313 return NULL;
7314 }
7315
7316
7317 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7318 PyObject *obj;
7319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7320 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7321 return SWIG_Py_Void();
7322 }
7323
7324 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7325 return SWIG_Python_InitShadowInstance(args);
7326 }
7327
7328 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7329 PyObject *resultobj = 0;
7330 wxNativePixelData *arg1 = 0 ;
7331 wxNativePixelData_Accessor *result = 0 ;
7332 void *argp1 = 0 ;
7333 int res1 = 0 ;
7334
7335 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7337 if (!SWIG_IsOK(res1)) {
7338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7339 }
7340 if (!argp1) {
7341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7342 }
7343 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7344 {
7345 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7346 if (PyErr_Occurred()) SWIG_fail;
7347 }
7348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7349 return resultobj;
7350 fail:
7351 return NULL;
7352 }
7353
7354
7355 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7356 PyObject *resultobj = 0;
7357 wxBitmap *arg1 = 0 ;
7358 wxNativePixelData *arg2 = 0 ;
7359 wxNativePixelData_Accessor *result = 0 ;
7360 void *argp1 = 0 ;
7361 int res1 = 0 ;
7362 void *argp2 = 0 ;
7363 int res2 = 0 ;
7364
7365 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7367 if (!SWIG_IsOK(res1)) {
7368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7369 }
7370 if (!argp1) {
7371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7372 }
7373 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7374 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7375 if (!SWIG_IsOK(res2)) {
7376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7377 }
7378 if (!argp2) {
7379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7380 }
7381 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7382 {
7383 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7384 if (PyErr_Occurred()) SWIG_fail;
7385 }
7386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7387 return resultobj;
7388 fail:
7389 return NULL;
7390 }
7391
7392
7393 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7394 PyObject *resultobj = 0;
7395 wxNativePixelData_Accessor *result = 0 ;
7396
7397 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7398 {
7399 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7400 if (PyErr_Occurred()) SWIG_fail;
7401 }
7402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7403 return resultobj;
7404 fail:
7405 return NULL;
7406 }
7407
7408
7409 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7410 int argc;
7411 PyObject *argv[3];
7412
7413 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7414 --argc;
7415 if (argc == 0) {
7416 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7417 }
7418 if (argc == 1) {
7419 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7420 }
7421 if (argc == 2) {
7422 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7423 }
7424
7425 fail:
7426 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7427 return NULL;
7428 }
7429
7430
7431 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7432 PyObject *resultobj = 0;
7433 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7434 void *argp1 = 0 ;
7435 int res1 = 0 ;
7436 PyObject *swig_obj[1] ;
7437
7438 if (!args) SWIG_fail;
7439 swig_obj[0] = args;
7440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7441 if (!SWIG_IsOK(res1)) {
7442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7443 }
7444 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7445 {
7446 delete arg1;
7447
7448 if (PyErr_Occurred()) SWIG_fail;
7449 }
7450 resultobj = SWIG_Py_Void();
7451 return resultobj;
7452 fail:
7453 return NULL;
7454 }
7455
7456
7457 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7458 PyObject *resultobj = 0;
7459 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7460 wxNativePixelData *arg2 = 0 ;
7461 void *argp1 = 0 ;
7462 int res1 = 0 ;
7463 void *argp2 = 0 ;
7464 int res2 = 0 ;
7465 PyObject * obj0 = 0 ;
7466 PyObject * obj1 = 0 ;
7467 char * kwnames[] = {
7468 (char *) "self",(char *) "data", NULL
7469 };
7470
7471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7473 if (!SWIG_IsOK(res1)) {
7474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7475 }
7476 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7478 if (!SWIG_IsOK(res2)) {
7479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7480 }
7481 if (!argp2) {
7482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7483 }
7484 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7485 {
7486 (arg1)->Reset((wxNativePixelData const &)*arg2);
7487 if (PyErr_Occurred()) SWIG_fail;
7488 }
7489 resultobj = SWIG_Py_Void();
7490 return resultobj;
7491 fail:
7492 return NULL;
7493 }
7494
7495
7496 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7497 PyObject *resultobj = 0;
7498 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7499 bool result;
7500 void *argp1 = 0 ;
7501 int res1 = 0 ;
7502 PyObject *swig_obj[1] ;
7503
7504 if (!args) SWIG_fail;
7505 swig_obj[0] = args;
7506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7507 if (!SWIG_IsOK(res1)) {
7508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7509 }
7510 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7511 {
7512 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 {
7516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7517 }
7518 return resultobj;
7519 fail:
7520 return NULL;
7521 }
7522
7523
7524 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7525 PyObject *resultobj = 0;
7526 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7527 void *argp1 = 0 ;
7528 int res1 = 0 ;
7529 PyObject *swig_obj[1] ;
7530
7531 if (!args) SWIG_fail;
7532 swig_obj[0] = args;
7533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7534 if (!SWIG_IsOK(res1)) {
7535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7536 }
7537 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7538 {
7539 wxNativePixelData_Accessor_nextPixel(arg1);
7540 if (PyErr_Occurred()) SWIG_fail;
7541 }
7542 resultobj = SWIG_Py_Void();
7543 return resultobj;
7544 fail:
7545 return NULL;
7546 }
7547
7548
7549 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7550 PyObject *resultobj = 0;
7551 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7552 wxNativePixelData *arg2 = 0 ;
7553 int arg3 ;
7554 int arg4 ;
7555 void *argp1 = 0 ;
7556 int res1 = 0 ;
7557 void *argp2 = 0 ;
7558 int res2 = 0 ;
7559 int val3 ;
7560 int ecode3 = 0 ;
7561 int val4 ;
7562 int ecode4 = 0 ;
7563 PyObject * obj0 = 0 ;
7564 PyObject * obj1 = 0 ;
7565 PyObject * obj2 = 0 ;
7566 PyObject * obj3 = 0 ;
7567 char * kwnames[] = {
7568 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7569 };
7570
7571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7573 if (!SWIG_IsOK(res1)) {
7574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7575 }
7576 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7578 if (!SWIG_IsOK(res2)) {
7579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7580 }
7581 if (!argp2) {
7582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7583 }
7584 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7585 ecode3 = SWIG_AsVal_int(obj2, &val3);
7586 if (!SWIG_IsOK(ecode3)) {
7587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7588 }
7589 arg3 = static_cast< int >(val3);
7590 ecode4 = SWIG_AsVal_int(obj3, &val4);
7591 if (!SWIG_IsOK(ecode4)) {
7592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7593 }
7594 arg4 = static_cast< int >(val4);
7595 {
7596 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 resultobj = SWIG_Py_Void();
7600 return resultobj;
7601 fail:
7602 return NULL;
7603 }
7604
7605
7606 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7607 PyObject *resultobj = 0;
7608 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7609 wxNativePixelData *arg2 = 0 ;
7610 int arg3 ;
7611 void *argp1 = 0 ;
7612 int res1 = 0 ;
7613 void *argp2 = 0 ;
7614 int res2 = 0 ;
7615 int val3 ;
7616 int ecode3 = 0 ;
7617 PyObject * obj0 = 0 ;
7618 PyObject * obj1 = 0 ;
7619 PyObject * obj2 = 0 ;
7620 char * kwnames[] = {
7621 (char *) "self",(char *) "data",(char *) "x", NULL
7622 };
7623
7624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7626 if (!SWIG_IsOK(res1)) {
7627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7628 }
7629 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7631 if (!SWIG_IsOK(res2)) {
7632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7633 }
7634 if (!argp2) {
7635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7636 }
7637 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7638 ecode3 = SWIG_AsVal_int(obj2, &val3);
7639 if (!SWIG_IsOK(ecode3)) {
7640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7641 }
7642 arg3 = static_cast< int >(val3);
7643 {
7644 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 resultobj = SWIG_Py_Void();
7648 return resultobj;
7649 fail:
7650 return NULL;
7651 }
7652
7653
7654 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7655 PyObject *resultobj = 0;
7656 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7657 wxNativePixelData *arg2 = 0 ;
7658 int arg3 ;
7659 void *argp1 = 0 ;
7660 int res1 = 0 ;
7661 void *argp2 = 0 ;
7662 int res2 = 0 ;
7663 int val3 ;
7664 int ecode3 = 0 ;
7665 PyObject * obj0 = 0 ;
7666 PyObject * obj1 = 0 ;
7667 PyObject * obj2 = 0 ;
7668 char * kwnames[] = {
7669 (char *) "self",(char *) "data",(char *) "y", NULL
7670 };
7671
7672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7674 if (!SWIG_IsOK(res1)) {
7675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7676 }
7677 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7679 if (!SWIG_IsOK(res2)) {
7680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7681 }
7682 if (!argp2) {
7683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7684 }
7685 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7686 ecode3 = SWIG_AsVal_int(obj2, &val3);
7687 if (!SWIG_IsOK(ecode3)) {
7688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7689 }
7690 arg3 = static_cast< int >(val3);
7691 {
7692 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 resultobj = SWIG_Py_Void();
7696 return resultobj;
7697 fail:
7698 return NULL;
7699 }
7700
7701
7702 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7703 PyObject *resultobj = 0;
7704 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7705 wxNativePixelData *arg2 = 0 ;
7706 int arg3 ;
7707 int arg4 ;
7708 void *argp1 = 0 ;
7709 int res1 = 0 ;
7710 void *argp2 = 0 ;
7711 int res2 = 0 ;
7712 int val3 ;
7713 int ecode3 = 0 ;
7714 int val4 ;
7715 int ecode4 = 0 ;
7716 PyObject * obj0 = 0 ;
7717 PyObject * obj1 = 0 ;
7718 PyObject * obj2 = 0 ;
7719 PyObject * obj3 = 0 ;
7720 char * kwnames[] = {
7721 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7722 };
7723
7724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7726 if (!SWIG_IsOK(res1)) {
7727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7728 }
7729 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7731 if (!SWIG_IsOK(res2)) {
7732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7733 }
7734 if (!argp2) {
7735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7736 }
7737 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7738 ecode3 = SWIG_AsVal_int(obj2, &val3);
7739 if (!SWIG_IsOK(ecode3)) {
7740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7741 }
7742 arg3 = static_cast< int >(val3);
7743 ecode4 = SWIG_AsVal_int(obj3, &val4);
7744 if (!SWIG_IsOK(ecode4)) {
7745 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7746 }
7747 arg4 = static_cast< int >(val4);
7748 {
7749 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7750 if (PyErr_Occurred()) SWIG_fail;
7751 }
7752 resultobj = SWIG_Py_Void();
7753 return resultobj;
7754 fail:
7755 return NULL;
7756 }
7757
7758
7759 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7760 PyObject *resultobj = 0;
7761 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7762 byte arg2 ;
7763 byte arg3 ;
7764 byte arg4 ;
7765 void *argp1 = 0 ;
7766 int res1 = 0 ;
7767 unsigned char val2 ;
7768 int ecode2 = 0 ;
7769 unsigned char val3 ;
7770 int ecode3 = 0 ;
7771 unsigned char val4 ;
7772 int ecode4 = 0 ;
7773 PyObject * obj0 = 0 ;
7774 PyObject * obj1 = 0 ;
7775 PyObject * obj2 = 0 ;
7776 PyObject * obj3 = 0 ;
7777 char * kwnames[] = {
7778 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7779 };
7780
7781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7783 if (!SWIG_IsOK(res1)) {
7784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7785 }
7786 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7787 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7788 if (!SWIG_IsOK(ecode2)) {
7789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7790 }
7791 arg2 = static_cast< byte >(val2);
7792 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7793 if (!SWIG_IsOK(ecode3)) {
7794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7795 }
7796 arg3 = static_cast< byte >(val3);
7797 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7798 if (!SWIG_IsOK(ecode4)) {
7799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7800 }
7801 arg4 = static_cast< byte >(val4);
7802 {
7803 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7804 if (PyErr_Occurred()) SWIG_fail;
7805 }
7806 resultobj = SWIG_Py_Void();
7807 return resultobj;
7808 fail:
7809 return NULL;
7810 }
7811
7812
7813 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7814 PyObject *resultobj = 0;
7815 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7816 PyObject *result = 0 ;
7817 void *argp1 = 0 ;
7818 int res1 = 0 ;
7819 PyObject *swig_obj[1] ;
7820
7821 if (!args) SWIG_fail;
7822 swig_obj[0] = args;
7823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7824 if (!SWIG_IsOK(res1)) {
7825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7826 }
7827 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7828 {
7829 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 resultobj = result;
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7840 PyObject *obj;
7841 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7842 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7843 return SWIG_Py_Void();
7844 }
7845
7846 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7847 return SWIG_Python_InitShadowInstance(args);
7848 }
7849
7850 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7851 PyObject *resultobj = 0;
7852 wxBitmap *arg1 = 0 ;
7853 wxAlphaPixelData *result = 0 ;
7854 void *argp1 = 0 ;
7855 int res1 = 0 ;
7856
7857 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7859 if (!SWIG_IsOK(res1)) {
7860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7861 }
7862 if (!argp1) {
7863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7864 }
7865 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7866 {
7867 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7871 return resultobj;
7872 fail:
7873 return NULL;
7874 }
7875
7876
7877 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7878 PyObject *resultobj = 0;
7879 wxBitmap *arg1 = 0 ;
7880 wxRect *arg2 = 0 ;
7881 wxAlphaPixelData *result = 0 ;
7882 void *argp1 = 0 ;
7883 int res1 = 0 ;
7884 wxRect temp2 ;
7885
7886 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7888 if (!SWIG_IsOK(res1)) {
7889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7890 }
7891 if (!argp1) {
7892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7893 }
7894 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7895 {
7896 arg2 = &temp2;
7897 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7898 }
7899 {
7900 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7904 return resultobj;
7905 fail:
7906 return NULL;
7907 }
7908
7909
7910 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7911 PyObject *resultobj = 0;
7912 wxBitmap *arg1 = 0 ;
7913 wxPoint *arg2 = 0 ;
7914 wxSize *arg3 = 0 ;
7915 wxAlphaPixelData *result = 0 ;
7916 void *argp1 = 0 ;
7917 int res1 = 0 ;
7918 wxPoint temp2 ;
7919 wxSize temp3 ;
7920
7921 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7923 if (!SWIG_IsOK(res1)) {
7924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7925 }
7926 if (!argp1) {
7927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7928 }
7929 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7930 {
7931 arg2 = &temp2;
7932 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7933 }
7934 {
7935 arg3 = &temp3;
7936 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7937 }
7938 {
7939 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7940 if (PyErr_Occurred()) SWIG_fail;
7941 }
7942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7943 return resultobj;
7944 fail:
7945 return NULL;
7946 }
7947
7948
7949 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7950 int argc;
7951 PyObject *argv[4];
7952
7953 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7954 --argc;
7955 if (argc == 1) {
7956 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7957 }
7958 if (argc == 2) {
7959 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7960 }
7961 if (argc == 3) {
7962 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7963 }
7964
7965 fail:
7966 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7967 return NULL;
7968 }
7969
7970
7971 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7972 PyObject *resultobj = 0;
7973 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7974 void *argp1 = 0 ;
7975 int res1 = 0 ;
7976 PyObject *swig_obj[1] ;
7977
7978 if (!args) SWIG_fail;
7979 swig_obj[0] = args;
7980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7981 if (!SWIG_IsOK(res1)) {
7982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7983 }
7984 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7985 {
7986 delete arg1;
7987
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 resultobj = SWIG_Py_Void();
7991 return resultobj;
7992 fail:
7993 return NULL;
7994 }
7995
7996
7997 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7998 PyObject *resultobj = 0;
7999 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8000 wxAlphaPixelData_Accessor result;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 PyObject *swig_obj[1] ;
8004
8005 if (!args) SWIG_fail;
8006 swig_obj[0] = args;
8007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8008 if (!SWIG_IsOK(res1)) {
8009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8010 }
8011 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8012 {
8013 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8017 return resultobj;
8018 fail:
8019 return NULL;
8020 }
8021
8022
8023 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8024 PyObject *resultobj = 0;
8025 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8026 void *argp1 = 0 ;
8027 int res1 = 0 ;
8028 PyObject *swig_obj[1] ;
8029
8030 if (!args) SWIG_fail;
8031 swig_obj[0] = args;
8032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8035 }
8036 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8037 {
8038 (arg1)->UseAlpha();
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_Py_Void();
8042 return resultobj;
8043 fail:
8044 return NULL;
8045 }
8046
8047
8048 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8049 PyObject *resultobj = 0;
8050 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8051 bool result;
8052 void *argp1 = 0 ;
8053 int res1 = 0 ;
8054 PyObject *swig_obj[1] ;
8055
8056 if (!args) SWIG_fail;
8057 swig_obj[0] = args;
8058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8059 if (!SWIG_IsOK(res1)) {
8060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8061 }
8062 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8063 {
8064 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8065 if (PyErr_Occurred()) SWIG_fail;
8066 }
8067 {
8068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8069 }
8070 return resultobj;
8071 fail:
8072 return NULL;
8073 }
8074
8075
8076 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8077 PyObject *obj;
8078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8079 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8080 return SWIG_Py_Void();
8081 }
8082
8083 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8084 return SWIG_Python_InitShadowInstance(args);
8085 }
8086
8087 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8088 PyObject *resultobj = 0;
8089 wxAlphaPixelData *arg1 = 0 ;
8090 wxAlphaPixelData_Accessor *result = 0 ;
8091 void *argp1 = 0 ;
8092 int res1 = 0 ;
8093
8094 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8096 if (!SWIG_IsOK(res1)) {
8097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8098 }
8099 if (!argp1) {
8100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8101 }
8102 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8103 {
8104 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8108 return resultobj;
8109 fail:
8110 return NULL;
8111 }
8112
8113
8114 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8115 PyObject *resultobj = 0;
8116 wxBitmap *arg1 = 0 ;
8117 wxAlphaPixelData *arg2 = 0 ;
8118 wxAlphaPixelData_Accessor *result = 0 ;
8119 void *argp1 = 0 ;
8120 int res1 = 0 ;
8121 void *argp2 = 0 ;
8122 int res2 = 0 ;
8123
8124 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8126 if (!SWIG_IsOK(res1)) {
8127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8128 }
8129 if (!argp1) {
8130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8131 }
8132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8133 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8134 if (!SWIG_IsOK(res2)) {
8135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8136 }
8137 if (!argp2) {
8138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8139 }
8140 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8141 {
8142 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8143 if (PyErr_Occurred()) SWIG_fail;
8144 }
8145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8146 return resultobj;
8147 fail:
8148 return NULL;
8149 }
8150
8151
8152 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8153 PyObject *resultobj = 0;
8154 wxAlphaPixelData_Accessor *result = 0 ;
8155
8156 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8157 {
8158 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8159 if (PyErr_Occurred()) SWIG_fail;
8160 }
8161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8162 return resultobj;
8163 fail:
8164 return NULL;
8165 }
8166
8167
8168 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8169 int argc;
8170 PyObject *argv[3];
8171
8172 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8173 --argc;
8174 if (argc == 0) {
8175 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8176 }
8177 if (argc == 1) {
8178 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8179 }
8180 if (argc == 2) {
8181 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8182 }
8183
8184 fail:
8185 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8186 return NULL;
8187 }
8188
8189
8190 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8191 PyObject *resultobj = 0;
8192 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8193 void *argp1 = 0 ;
8194 int res1 = 0 ;
8195 PyObject *swig_obj[1] ;
8196
8197 if (!args) SWIG_fail;
8198 swig_obj[0] = args;
8199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8200 if (!SWIG_IsOK(res1)) {
8201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8202 }
8203 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8204 {
8205 delete arg1;
8206
8207 if (PyErr_Occurred()) SWIG_fail;
8208 }
8209 resultobj = SWIG_Py_Void();
8210 return resultobj;
8211 fail:
8212 return NULL;
8213 }
8214
8215
8216 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8217 PyObject *resultobj = 0;
8218 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8219 wxAlphaPixelData *arg2 = 0 ;
8220 void *argp1 = 0 ;
8221 int res1 = 0 ;
8222 void *argp2 = 0 ;
8223 int res2 = 0 ;
8224 PyObject * obj0 = 0 ;
8225 PyObject * obj1 = 0 ;
8226 char * kwnames[] = {
8227 (char *) "self",(char *) "data", NULL
8228 };
8229
8230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8232 if (!SWIG_IsOK(res1)) {
8233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8234 }
8235 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8236 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8237 if (!SWIG_IsOK(res2)) {
8238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8239 }
8240 if (!argp2) {
8241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8242 }
8243 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8244 {
8245 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 resultobj = SWIG_Py_Void();
8249 return resultobj;
8250 fail:
8251 return NULL;
8252 }
8253
8254
8255 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8256 PyObject *resultobj = 0;
8257 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8258 bool result;
8259 void *argp1 = 0 ;
8260 int res1 = 0 ;
8261 PyObject *swig_obj[1] ;
8262
8263 if (!args) SWIG_fail;
8264 swig_obj[0] = args;
8265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8266 if (!SWIG_IsOK(res1)) {
8267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8268 }
8269 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8270 {
8271 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8272 if (PyErr_Occurred()) SWIG_fail;
8273 }
8274 {
8275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8276 }
8277 return resultobj;
8278 fail:
8279 return NULL;
8280 }
8281
8282
8283 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8284 PyObject *resultobj = 0;
8285 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8286 void *argp1 = 0 ;
8287 int res1 = 0 ;
8288 PyObject *swig_obj[1] ;
8289
8290 if (!args) SWIG_fail;
8291 swig_obj[0] = args;
8292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8293 if (!SWIG_IsOK(res1)) {
8294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8295 }
8296 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8297 {
8298 wxAlphaPixelData_Accessor_nextPixel(arg1);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 resultobj = SWIG_Py_Void();
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8309 PyObject *resultobj = 0;
8310 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8311 wxAlphaPixelData *arg2 = 0 ;
8312 int arg3 ;
8313 int arg4 ;
8314 void *argp1 = 0 ;
8315 int res1 = 0 ;
8316 void *argp2 = 0 ;
8317 int res2 = 0 ;
8318 int val3 ;
8319 int ecode3 = 0 ;
8320 int val4 ;
8321 int ecode4 = 0 ;
8322 PyObject * obj0 = 0 ;
8323 PyObject * obj1 = 0 ;
8324 PyObject * obj2 = 0 ;
8325 PyObject * obj3 = 0 ;
8326 char * kwnames[] = {
8327 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8328 };
8329
8330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8332 if (!SWIG_IsOK(res1)) {
8333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8334 }
8335 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8337 if (!SWIG_IsOK(res2)) {
8338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8339 }
8340 if (!argp2) {
8341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8342 }
8343 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8344 ecode3 = SWIG_AsVal_int(obj2, &val3);
8345 if (!SWIG_IsOK(ecode3)) {
8346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8347 }
8348 arg3 = static_cast< int >(val3);
8349 ecode4 = SWIG_AsVal_int(obj3, &val4);
8350 if (!SWIG_IsOK(ecode4)) {
8351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8352 }
8353 arg4 = static_cast< int >(val4);
8354 {
8355 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 resultobj = SWIG_Py_Void();
8359 return resultobj;
8360 fail:
8361 return NULL;
8362 }
8363
8364
8365 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8366 PyObject *resultobj = 0;
8367 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8368 wxAlphaPixelData *arg2 = 0 ;
8369 int arg3 ;
8370 void *argp1 = 0 ;
8371 int res1 = 0 ;
8372 void *argp2 = 0 ;
8373 int res2 = 0 ;
8374 int val3 ;
8375 int ecode3 = 0 ;
8376 PyObject * obj0 = 0 ;
8377 PyObject * obj1 = 0 ;
8378 PyObject * obj2 = 0 ;
8379 char * kwnames[] = {
8380 (char *) "self",(char *) "data",(char *) "x", NULL
8381 };
8382
8383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8385 if (!SWIG_IsOK(res1)) {
8386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8387 }
8388 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8389 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8390 if (!SWIG_IsOK(res2)) {
8391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8392 }
8393 if (!argp2) {
8394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8395 }
8396 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8397 ecode3 = SWIG_AsVal_int(obj2, &val3);
8398 if (!SWIG_IsOK(ecode3)) {
8399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8400 }
8401 arg3 = static_cast< int >(val3);
8402 {
8403 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8404 if (PyErr_Occurred()) SWIG_fail;
8405 }
8406 resultobj = SWIG_Py_Void();
8407 return resultobj;
8408 fail:
8409 return NULL;
8410 }
8411
8412
8413 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8414 PyObject *resultobj = 0;
8415 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8416 wxAlphaPixelData *arg2 = 0 ;
8417 int arg3 ;
8418 void *argp1 = 0 ;
8419 int res1 = 0 ;
8420 void *argp2 = 0 ;
8421 int res2 = 0 ;
8422 int val3 ;
8423 int ecode3 = 0 ;
8424 PyObject * obj0 = 0 ;
8425 PyObject * obj1 = 0 ;
8426 PyObject * obj2 = 0 ;
8427 char * kwnames[] = {
8428 (char *) "self",(char *) "data",(char *) "y", NULL
8429 };
8430
8431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8433 if (!SWIG_IsOK(res1)) {
8434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8435 }
8436 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8437 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8438 if (!SWIG_IsOK(res2)) {
8439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8440 }
8441 if (!argp2) {
8442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8443 }
8444 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8445 ecode3 = SWIG_AsVal_int(obj2, &val3);
8446 if (!SWIG_IsOK(ecode3)) {
8447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8448 }
8449 arg3 = static_cast< int >(val3);
8450 {
8451 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 resultobj = SWIG_Py_Void();
8455 return resultobj;
8456 fail:
8457 return NULL;
8458 }
8459
8460
8461 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8462 PyObject *resultobj = 0;
8463 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8464 wxAlphaPixelData *arg2 = 0 ;
8465 int arg3 ;
8466 int arg4 ;
8467 void *argp1 = 0 ;
8468 int res1 = 0 ;
8469 void *argp2 = 0 ;
8470 int res2 = 0 ;
8471 int val3 ;
8472 int ecode3 = 0 ;
8473 int val4 ;
8474 int ecode4 = 0 ;
8475 PyObject * obj0 = 0 ;
8476 PyObject * obj1 = 0 ;
8477 PyObject * obj2 = 0 ;
8478 PyObject * obj3 = 0 ;
8479 char * kwnames[] = {
8480 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8481 };
8482
8483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8485 if (!SWIG_IsOK(res1)) {
8486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8487 }
8488 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8490 if (!SWIG_IsOK(res2)) {
8491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8492 }
8493 if (!argp2) {
8494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8495 }
8496 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8497 ecode3 = SWIG_AsVal_int(obj2, &val3);
8498 if (!SWIG_IsOK(ecode3)) {
8499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8500 }
8501 arg3 = static_cast< int >(val3);
8502 ecode4 = SWIG_AsVal_int(obj3, &val4);
8503 if (!SWIG_IsOK(ecode4)) {
8504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8505 }
8506 arg4 = static_cast< int >(val4);
8507 {
8508 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8509 if (PyErr_Occurred()) SWIG_fail;
8510 }
8511 resultobj = SWIG_Py_Void();
8512 return resultobj;
8513 fail:
8514 return NULL;
8515 }
8516
8517
8518 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8519 PyObject *resultobj = 0;
8520 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8521 byte arg2 ;
8522 byte arg3 ;
8523 byte arg4 ;
8524 byte arg5 ;
8525 void *argp1 = 0 ;
8526 int res1 = 0 ;
8527 unsigned char val2 ;
8528 int ecode2 = 0 ;
8529 unsigned char val3 ;
8530 int ecode3 = 0 ;
8531 unsigned char val4 ;
8532 int ecode4 = 0 ;
8533 unsigned char val5 ;
8534 int ecode5 = 0 ;
8535 PyObject * obj0 = 0 ;
8536 PyObject * obj1 = 0 ;
8537 PyObject * obj2 = 0 ;
8538 PyObject * obj3 = 0 ;
8539 PyObject * obj4 = 0 ;
8540 char * kwnames[] = {
8541 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8542 };
8543
8544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8546 if (!SWIG_IsOK(res1)) {
8547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8548 }
8549 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8550 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8551 if (!SWIG_IsOK(ecode2)) {
8552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8553 }
8554 arg2 = static_cast< byte >(val2);
8555 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8556 if (!SWIG_IsOK(ecode3)) {
8557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8558 }
8559 arg3 = static_cast< byte >(val3);
8560 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8561 if (!SWIG_IsOK(ecode4)) {
8562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8563 }
8564 arg4 = static_cast< byte >(val4);
8565 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8566 if (!SWIG_IsOK(ecode5)) {
8567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8568 }
8569 arg5 = static_cast< byte >(val5);
8570 {
8571 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 }
8574 resultobj = SWIG_Py_Void();
8575 return resultobj;
8576 fail:
8577 return NULL;
8578 }
8579
8580
8581 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8582 PyObject *resultobj = 0;
8583 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8584 PyObject *result = 0 ;
8585 void *argp1 = 0 ;
8586 int res1 = 0 ;
8587 PyObject *swig_obj[1] ;
8588
8589 if (!args) SWIG_fail;
8590 swig_obj[0] = args;
8591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8592 if (!SWIG_IsOK(res1)) {
8593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8594 }
8595 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8596 {
8597 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8598 if (PyErr_Occurred()) SWIG_fail;
8599 }
8600 resultobj = result;
8601 return resultobj;
8602 fail:
8603 return NULL;
8604 }
8605
8606
8607 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8608 PyObject *obj;
8609 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8610 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8611 return SWIG_Py_Void();
8612 }
8613
8614 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8615 return SWIG_Python_InitShadowInstance(args);
8616 }
8617
8618 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8619 PyObject *resultobj = 0;
8620 wxBitmap *arg1 = 0 ;
8621 wxColour const &arg2_defvalue = wxNullColour ;
8622 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8623 wxMask *result = 0 ;
8624 void *argp1 = 0 ;
8625 int res1 = 0 ;
8626 wxColour temp2 ;
8627 PyObject * obj0 = 0 ;
8628 PyObject * obj1 = 0 ;
8629 char * kwnames[] = {
8630 (char *) "bitmap",(char *) "colour", NULL
8631 };
8632
8633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8634 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8635 if (!SWIG_IsOK(res1)) {
8636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8637 }
8638 if (!argp1) {
8639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8640 }
8641 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8642 if (obj1) {
8643 {
8644 arg2 = &temp2;
8645 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8646 }
8647 }
8648 {
8649 if (!wxPyCheckForApp()) SWIG_fail;
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8652 wxPyEndAllowThreads(__tstate);
8653 if (PyErr_Occurred()) SWIG_fail;
8654 }
8655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8656 return resultobj;
8657 fail:
8658 return NULL;
8659 }
8660
8661
8662 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8663 PyObject *resultobj = 0;
8664 wxMask *arg1 = (wxMask *) 0 ;
8665 void *argp1 = 0 ;
8666 int res1 = 0 ;
8667 PyObject *swig_obj[1] ;
8668
8669 if (!args) SWIG_fail;
8670 swig_obj[0] = args;
8671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8672 if (!SWIG_IsOK(res1)) {
8673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8674 }
8675 arg1 = reinterpret_cast< wxMask * >(argp1);
8676 {
8677 delete arg1;
8678
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 resultobj = SWIG_Py_Void();
8682 return resultobj;
8683 fail:
8684 return NULL;
8685 }
8686
8687
8688 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8689 PyObject *obj;
8690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8691 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8692 return SWIG_Py_Void();
8693 }
8694
8695 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8696 return SWIG_Python_InitShadowInstance(args);
8697 }
8698
8699 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8700 PyObject *resultobj = 0;
8701 wxString *arg1 = 0 ;
8702 wxBitmapType arg2 ;
8703 int arg3 = (int) -1 ;
8704 int arg4 = (int) -1 ;
8705 wxIcon *result = 0 ;
8706 bool temp1 = false ;
8707 int val2 ;
8708 int ecode2 = 0 ;
8709 int val3 ;
8710 int ecode3 = 0 ;
8711 int val4 ;
8712 int ecode4 = 0 ;
8713 PyObject * obj0 = 0 ;
8714 PyObject * obj1 = 0 ;
8715 PyObject * obj2 = 0 ;
8716 PyObject * obj3 = 0 ;
8717 char * kwnames[] = {
8718 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8719 };
8720
8721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8722 {
8723 arg1 = wxString_in_helper(obj0);
8724 if (arg1 == NULL) SWIG_fail;
8725 temp1 = true;
8726 }
8727 ecode2 = SWIG_AsVal_int(obj1, &val2);
8728 if (!SWIG_IsOK(ecode2)) {
8729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8730 }
8731 arg2 = static_cast< wxBitmapType >(val2);
8732 if (obj2) {
8733 ecode3 = SWIG_AsVal_int(obj2, &val3);
8734 if (!SWIG_IsOK(ecode3)) {
8735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8736 }
8737 arg3 = static_cast< int >(val3);
8738 }
8739 if (obj3) {
8740 ecode4 = SWIG_AsVal_int(obj3, &val4);
8741 if (!SWIG_IsOK(ecode4)) {
8742 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8743 }
8744 arg4 = static_cast< int >(val4);
8745 }
8746 {
8747 if (!wxPyCheckForApp()) SWIG_fail;
8748 PyThreadState* __tstate = wxPyBeginAllowThreads();
8749 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8750 wxPyEndAllowThreads(__tstate);
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8754 {
8755 if (temp1)
8756 delete arg1;
8757 }
8758 return resultobj;
8759 fail:
8760 {
8761 if (temp1)
8762 delete arg1;
8763 }
8764 return NULL;
8765 }
8766
8767
8768 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8769 PyObject *resultobj = 0;
8770 wxIcon *arg1 = (wxIcon *) 0 ;
8771 void *argp1 = 0 ;
8772 int res1 = 0 ;
8773 PyObject *swig_obj[1] ;
8774
8775 if (!args) SWIG_fail;
8776 swig_obj[0] = args;
8777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8778 if (!SWIG_IsOK(res1)) {
8779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8780 }
8781 arg1 = reinterpret_cast< wxIcon * >(argp1);
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 delete arg1;
8785
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 resultobj = SWIG_Py_Void();
8790 return resultobj;
8791 fail:
8792 return NULL;
8793 }
8794
8795
8796 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8797 PyObject *resultobj = 0;
8798 wxIcon *result = 0 ;
8799
8800 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8801 {
8802 if (!wxPyCheckForApp()) SWIG_fail;
8803 PyThreadState* __tstate = wxPyBeginAllowThreads();
8804 result = (wxIcon *)new wxIcon();
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8809 return resultobj;
8810 fail:
8811 return NULL;
8812 }
8813
8814
8815 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj = 0;
8817 wxIconLocation *arg1 = 0 ;
8818 wxIcon *result = 0 ;
8819 void *argp1 = 0 ;
8820 int res1 = 0 ;
8821 PyObject * obj0 = 0 ;
8822 char * kwnames[] = {
8823 (char *) "loc", NULL
8824 };
8825
8826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8827 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8828 if (!SWIG_IsOK(res1)) {
8829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8830 }
8831 if (!argp1) {
8832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8833 }
8834 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8835 {
8836 if (!wxPyCheckForApp()) SWIG_fail;
8837 PyThreadState* __tstate = wxPyBeginAllowThreads();
8838 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8839 wxPyEndAllowThreads(__tstate);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8843 return resultobj;
8844 fail:
8845 return NULL;
8846 }
8847
8848
8849 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8850 PyObject *resultobj = 0;
8851 wxBitmap *arg1 = 0 ;
8852 wxIcon *result = 0 ;
8853 void *argp1 = 0 ;
8854 int res1 = 0 ;
8855 PyObject * obj0 = 0 ;
8856 char * kwnames[] = {
8857 (char *) "bmp", NULL
8858 };
8859
8860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8861 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8862 if (!SWIG_IsOK(res1)) {
8863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8864 }
8865 if (!argp1) {
8866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8867 }
8868 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8869 {
8870 if (!wxPyCheckForApp()) SWIG_fail;
8871 PyThreadState* __tstate = wxPyBeginAllowThreads();
8872 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8877 return resultobj;
8878 fail:
8879 return NULL;
8880 }
8881
8882
8883 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8884 PyObject *resultobj = 0;
8885 PyObject *arg1 = (PyObject *) 0 ;
8886 wxIcon *result = 0 ;
8887 PyObject * obj0 = 0 ;
8888 char * kwnames[] = {
8889 (char *) "listOfStrings", NULL
8890 };
8891
8892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8893 arg1 = obj0;
8894 {
8895 if (!wxPyCheckForApp()) SWIG_fail;
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (wxIcon *)new_wxIcon(arg1);
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8902 return resultobj;
8903 fail:
8904 return NULL;
8905 }
8906
8907
8908 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj = 0;
8910 wxIcon *arg1 = (wxIcon *) 0 ;
8911 wxString *arg2 = 0 ;
8912 wxBitmapType arg3 ;
8913 bool result;
8914 void *argp1 = 0 ;
8915 int res1 = 0 ;
8916 bool temp2 = false ;
8917 int val3 ;
8918 int ecode3 = 0 ;
8919 PyObject * obj0 = 0 ;
8920 PyObject * obj1 = 0 ;
8921 PyObject * obj2 = 0 ;
8922 char * kwnames[] = {
8923 (char *) "self",(char *) "name",(char *) "type", NULL
8924 };
8925
8926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8928 if (!SWIG_IsOK(res1)) {
8929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8930 }
8931 arg1 = reinterpret_cast< wxIcon * >(argp1);
8932 {
8933 arg2 = wxString_in_helper(obj1);
8934 if (arg2 == NULL) SWIG_fail;
8935 temp2 = true;
8936 }
8937 ecode3 = SWIG_AsVal_int(obj2, &val3);
8938 if (!SWIG_IsOK(ecode3)) {
8939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8940 }
8941 arg3 = static_cast< wxBitmapType >(val3);
8942 {
8943 PyThreadState* __tstate = wxPyBeginAllowThreads();
8944 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8945 wxPyEndAllowThreads(__tstate);
8946 if (PyErr_Occurred()) SWIG_fail;
8947 }
8948 {
8949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8950 }
8951 {
8952 if (temp2)
8953 delete arg2;
8954 }
8955 return resultobj;
8956 fail:
8957 {
8958 if (temp2)
8959 delete arg2;
8960 }
8961 return NULL;
8962 }
8963
8964
8965 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8966 PyObject *resultobj = 0;
8967 wxIcon *arg1 = (wxIcon *) 0 ;
8968 bool result;
8969 void *argp1 = 0 ;
8970 int res1 = 0 ;
8971 PyObject *swig_obj[1] ;
8972
8973 if (!args) SWIG_fail;
8974 swig_obj[0] = args;
8975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8976 if (!SWIG_IsOK(res1)) {
8977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
8978 }
8979 arg1 = reinterpret_cast< wxIcon * >(argp1);
8980 {
8981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8982 result = (bool)(arg1)->IsOk();
8983 wxPyEndAllowThreads(__tstate);
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
8986 {
8987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8988 }
8989 return resultobj;
8990 fail:
8991 return NULL;
8992 }
8993
8994
8995 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8996 PyObject *resultobj = 0;
8997 wxIcon *arg1 = (wxIcon *) 0 ;
8998 int result;
8999 void *argp1 = 0 ;
9000 int res1 = 0 ;
9001 PyObject *swig_obj[1] ;
9002
9003 if (!args) SWIG_fail;
9004 swig_obj[0] = args;
9005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9006 if (!SWIG_IsOK(res1)) {
9007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9008 }
9009 arg1 = reinterpret_cast< wxIcon * >(argp1);
9010 {
9011 PyThreadState* __tstate = wxPyBeginAllowThreads();
9012 result = (int)(arg1)->GetWidth();
9013 wxPyEndAllowThreads(__tstate);
9014 if (PyErr_Occurred()) SWIG_fail;
9015 }
9016 resultobj = SWIG_From_int(static_cast< int >(result));
9017 return resultobj;
9018 fail:
9019 return NULL;
9020 }
9021
9022
9023 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9024 PyObject *resultobj = 0;
9025 wxIcon *arg1 = (wxIcon *) 0 ;
9026 int result;
9027 void *argp1 = 0 ;
9028 int res1 = 0 ;
9029 PyObject *swig_obj[1] ;
9030
9031 if (!args) SWIG_fail;
9032 swig_obj[0] = args;
9033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9034 if (!SWIG_IsOK(res1)) {
9035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9036 }
9037 arg1 = reinterpret_cast< wxIcon * >(argp1);
9038 {
9039 PyThreadState* __tstate = wxPyBeginAllowThreads();
9040 result = (int)(arg1)->GetHeight();
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 resultobj = SWIG_From_int(static_cast< int >(result));
9045 return resultobj;
9046 fail:
9047 return NULL;
9048 }
9049
9050
9051 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9052 PyObject *resultobj = 0;
9053 wxIcon *arg1 = (wxIcon *) 0 ;
9054 int result;
9055 void *argp1 = 0 ;
9056 int res1 = 0 ;
9057 PyObject *swig_obj[1] ;
9058
9059 if (!args) SWIG_fail;
9060 swig_obj[0] = args;
9061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9062 if (!SWIG_IsOK(res1)) {
9063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9064 }
9065 arg1 = reinterpret_cast< wxIcon * >(argp1);
9066 {
9067 PyThreadState* __tstate = wxPyBeginAllowThreads();
9068 result = (int)(arg1)->GetDepth();
9069 wxPyEndAllowThreads(__tstate);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 resultobj = SWIG_From_int(static_cast< int >(result));
9073 return resultobj;
9074 fail:
9075 return NULL;
9076 }
9077
9078
9079 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9080 PyObject *resultobj = 0;
9081 wxIcon *arg1 = (wxIcon *) 0 ;
9082 int arg2 ;
9083 void *argp1 = 0 ;
9084 int res1 = 0 ;
9085 int val2 ;
9086 int ecode2 = 0 ;
9087 PyObject * obj0 = 0 ;
9088 PyObject * obj1 = 0 ;
9089 char * kwnames[] = {
9090 (char *) "self",(char *) "w", NULL
9091 };
9092
9093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9095 if (!SWIG_IsOK(res1)) {
9096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9097 }
9098 arg1 = reinterpret_cast< wxIcon * >(argp1);
9099 ecode2 = SWIG_AsVal_int(obj1, &val2);
9100 if (!SWIG_IsOK(ecode2)) {
9101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9102 }
9103 arg2 = static_cast< int >(val2);
9104 {
9105 PyThreadState* __tstate = wxPyBeginAllowThreads();
9106 (arg1)->SetWidth(arg2);
9107 wxPyEndAllowThreads(__tstate);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 resultobj = SWIG_Py_Void();
9111 return resultobj;
9112 fail:
9113 return NULL;
9114 }
9115
9116
9117 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9118 PyObject *resultobj = 0;
9119 wxIcon *arg1 = (wxIcon *) 0 ;
9120 int arg2 ;
9121 void *argp1 = 0 ;
9122 int res1 = 0 ;
9123 int val2 ;
9124 int ecode2 = 0 ;
9125 PyObject * obj0 = 0 ;
9126 PyObject * obj1 = 0 ;
9127 char * kwnames[] = {
9128 (char *) "self",(char *) "h", NULL
9129 };
9130
9131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9133 if (!SWIG_IsOK(res1)) {
9134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9135 }
9136 arg1 = reinterpret_cast< wxIcon * >(argp1);
9137 ecode2 = SWIG_AsVal_int(obj1, &val2);
9138 if (!SWIG_IsOK(ecode2)) {
9139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9140 }
9141 arg2 = static_cast< int >(val2);
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 (arg1)->SetHeight(arg2);
9145 wxPyEndAllowThreads(__tstate);
9146 if (PyErr_Occurred()) SWIG_fail;
9147 }
9148 resultobj = SWIG_Py_Void();
9149 return resultobj;
9150 fail:
9151 return NULL;
9152 }
9153
9154
9155 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9156 PyObject *resultobj = 0;
9157 wxIcon *arg1 = (wxIcon *) 0 ;
9158 int arg2 ;
9159 void *argp1 = 0 ;
9160 int res1 = 0 ;
9161 int val2 ;
9162 int ecode2 = 0 ;
9163 PyObject * obj0 = 0 ;
9164 PyObject * obj1 = 0 ;
9165 char * kwnames[] = {
9166 (char *) "self",(char *) "d", NULL
9167 };
9168
9169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9173 }
9174 arg1 = reinterpret_cast< wxIcon * >(argp1);
9175 ecode2 = SWIG_AsVal_int(obj1, &val2);
9176 if (!SWIG_IsOK(ecode2)) {
9177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9178 }
9179 arg2 = static_cast< int >(val2);
9180 {
9181 PyThreadState* __tstate = wxPyBeginAllowThreads();
9182 (arg1)->SetDepth(arg2);
9183 wxPyEndAllowThreads(__tstate);
9184 if (PyErr_Occurred()) SWIG_fail;
9185 }
9186 resultobj = SWIG_Py_Void();
9187 return resultobj;
9188 fail:
9189 return NULL;
9190 }
9191
9192
9193 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9194 PyObject *resultobj = 0;
9195 wxIcon *arg1 = (wxIcon *) 0 ;
9196 wxBitmap *arg2 = 0 ;
9197 void *argp1 = 0 ;
9198 int res1 = 0 ;
9199 void *argp2 = 0 ;
9200 int res2 = 0 ;
9201 PyObject * obj0 = 0 ;
9202 PyObject * obj1 = 0 ;
9203 char * kwnames[] = {
9204 (char *) "self",(char *) "bmp", NULL
9205 };
9206
9207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9209 if (!SWIG_IsOK(res1)) {
9210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9211 }
9212 arg1 = reinterpret_cast< wxIcon * >(argp1);
9213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9214 if (!SWIG_IsOK(res2)) {
9215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9216 }
9217 if (!argp2) {
9218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9219 }
9220 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9221 {
9222 PyThreadState* __tstate = wxPyBeginAllowThreads();
9223 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9224 wxPyEndAllowThreads(__tstate);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 }
9227 resultobj = SWIG_Py_Void();
9228 return resultobj;
9229 fail:
9230 return NULL;
9231 }
9232
9233
9234 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9235 PyObject *obj;
9236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9237 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9238 return SWIG_Py_Void();
9239 }
9240
9241 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9242 return SWIG_Python_InitShadowInstance(args);
9243 }
9244
9245 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9246 PyObject *resultobj = 0;
9247 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9248 int arg2 = (int) 0 ;
9249 wxIconLocation *result = 0 ;
9250 bool temp1 = false ;
9251 int val2 ;
9252 int ecode2 = 0 ;
9253 PyObject * obj0 = 0 ;
9254 PyObject * obj1 = 0 ;
9255 char * kwnames[] = {
9256 (char *) "filename",(char *) "num", NULL
9257 };
9258
9259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9260 if (obj0) {
9261 {
9262 arg1 = wxString_in_helper(obj0);
9263 if (arg1 == NULL) SWIG_fail;
9264 temp1 = true;
9265 }
9266 }
9267 if (obj1) {
9268 ecode2 = SWIG_AsVal_int(obj1, &val2);
9269 if (!SWIG_IsOK(ecode2)) {
9270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9271 }
9272 arg2 = static_cast< int >(val2);
9273 }
9274 {
9275 PyThreadState* __tstate = wxPyBeginAllowThreads();
9276 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9277 wxPyEndAllowThreads(__tstate);
9278 if (PyErr_Occurred()) SWIG_fail;
9279 }
9280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9281 {
9282 if (temp1)
9283 delete arg1;
9284 }
9285 return resultobj;
9286 fail:
9287 {
9288 if (temp1)
9289 delete arg1;
9290 }
9291 return NULL;
9292 }
9293
9294
9295 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9296 PyObject *resultobj = 0;
9297 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9298 void *argp1 = 0 ;
9299 int res1 = 0 ;
9300 PyObject *swig_obj[1] ;
9301
9302 if (!args) SWIG_fail;
9303 swig_obj[0] = args;
9304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9305 if (!SWIG_IsOK(res1)) {
9306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9307 }
9308 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 delete arg1;
9312
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 resultobj = SWIG_Py_Void();
9317 return resultobj;
9318 fail:
9319 return NULL;
9320 }
9321
9322
9323 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9324 PyObject *resultobj = 0;
9325 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9326 bool result;
9327 void *argp1 = 0 ;
9328 int res1 = 0 ;
9329 PyObject *swig_obj[1] ;
9330
9331 if (!args) SWIG_fail;
9332 swig_obj[0] = args;
9333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9334 if (!SWIG_IsOK(res1)) {
9335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9336 }
9337 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 {
9345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9346 }
9347 return resultobj;
9348 fail:
9349 return NULL;
9350 }
9351
9352
9353 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj = 0;
9355 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9356 wxString *arg2 = 0 ;
9357 void *argp1 = 0 ;
9358 int res1 = 0 ;
9359 bool temp2 = false ;
9360 PyObject * obj0 = 0 ;
9361 PyObject * obj1 = 0 ;
9362 char * kwnames[] = {
9363 (char *) "self",(char *) "filename", NULL
9364 };
9365
9366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9368 if (!SWIG_IsOK(res1)) {
9369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9370 }
9371 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9372 {
9373 arg2 = wxString_in_helper(obj1);
9374 if (arg2 == NULL) SWIG_fail;
9375 temp2 = true;
9376 }
9377 {
9378 PyThreadState* __tstate = wxPyBeginAllowThreads();
9379 (arg1)->SetFileName((wxString const &)*arg2);
9380 wxPyEndAllowThreads(__tstate);
9381 if (PyErr_Occurred()) SWIG_fail;
9382 }
9383 resultobj = SWIG_Py_Void();
9384 {
9385 if (temp2)
9386 delete arg2;
9387 }
9388 return resultobj;
9389 fail:
9390 {
9391 if (temp2)
9392 delete arg2;
9393 }
9394 return NULL;
9395 }
9396
9397
9398 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9399 PyObject *resultobj = 0;
9400 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9401 wxString *result = 0 ;
9402 void *argp1 = 0 ;
9403 int res1 = 0 ;
9404 PyObject *swig_obj[1] ;
9405
9406 if (!args) SWIG_fail;
9407 swig_obj[0] = args;
9408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9409 if (!SWIG_IsOK(res1)) {
9410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9411 }
9412 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 {
9416 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9417 result = (wxString *) &_result_ref;
9418 }
9419 wxPyEndAllowThreads(__tstate);
9420 if (PyErr_Occurred()) SWIG_fail;
9421 }
9422 {
9423 #if wxUSE_UNICODE
9424 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9425 #else
9426 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9427 #endif
9428 }
9429 return resultobj;
9430 fail:
9431 return NULL;
9432 }
9433
9434
9435 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9436 PyObject *resultobj = 0;
9437 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9438 int arg2 ;
9439 void *argp1 = 0 ;
9440 int res1 = 0 ;
9441 int val2 ;
9442 int ecode2 = 0 ;
9443 PyObject * obj0 = 0 ;
9444 PyObject * obj1 = 0 ;
9445 char * kwnames[] = {
9446 (char *) "self",(char *) "num", NULL
9447 };
9448
9449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9451 if (!SWIG_IsOK(res1)) {
9452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9453 }
9454 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9455 ecode2 = SWIG_AsVal_int(obj1, &val2);
9456 if (!SWIG_IsOK(ecode2)) {
9457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9458 }
9459 arg2 = static_cast< int >(val2);
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 wxIconLocation_SetIndex(arg1,arg2);
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
9466 resultobj = SWIG_Py_Void();
9467 return resultobj;
9468 fail:
9469 return NULL;
9470 }
9471
9472
9473 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9474 PyObject *resultobj = 0;
9475 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9476 int result;
9477 void *argp1 = 0 ;
9478 int res1 = 0 ;
9479 PyObject *swig_obj[1] ;
9480
9481 if (!args) SWIG_fail;
9482 swig_obj[0] = args;
9483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9484 if (!SWIG_IsOK(res1)) {
9485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9486 }
9487 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9488 {
9489 PyThreadState* __tstate = wxPyBeginAllowThreads();
9490 result = (int)wxIconLocation_GetIndex(arg1);
9491 wxPyEndAllowThreads(__tstate);
9492 if (PyErr_Occurred()) SWIG_fail;
9493 }
9494 resultobj = SWIG_From_int(static_cast< int >(result));
9495 return resultobj;
9496 fail:
9497 return NULL;
9498 }
9499
9500
9501 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9502 PyObject *obj;
9503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9504 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9505 return SWIG_Py_Void();
9506 }
9507
9508 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9509 return SWIG_Python_InitShadowInstance(args);
9510 }
9511
9512 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9513 PyObject *resultobj = 0;
9514 wxIconBundle *result = 0 ;
9515
9516 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9517 {
9518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9519 result = (wxIconBundle *)new wxIconBundle();
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) SWIG_fail;
9522 }
9523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9524 return resultobj;
9525 fail:
9526 return NULL;
9527 }
9528
9529
9530 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9531 PyObject *resultobj = 0;
9532 wxString *arg1 = 0 ;
9533 long arg2 ;
9534 wxIconBundle *result = 0 ;
9535 bool temp1 = false ;
9536 long val2 ;
9537 int ecode2 = 0 ;
9538 PyObject * obj0 = 0 ;
9539 PyObject * obj1 = 0 ;
9540 char * kwnames[] = {
9541 (char *) "file",(char *) "type", NULL
9542 };
9543
9544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9545 {
9546 arg1 = wxString_in_helper(obj0);
9547 if (arg1 == NULL) SWIG_fail;
9548 temp1 = true;
9549 }
9550 ecode2 = SWIG_AsVal_long(obj1, &val2);
9551 if (!SWIG_IsOK(ecode2)) {
9552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9553 }
9554 arg2 = static_cast< long >(val2);
9555 {
9556 PyThreadState* __tstate = wxPyBeginAllowThreads();
9557 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9562 {
9563 if (temp1)
9564 delete arg1;
9565 }
9566 return resultobj;
9567 fail:
9568 {
9569 if (temp1)
9570 delete arg1;
9571 }
9572 return NULL;
9573 }
9574
9575
9576 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9577 PyObject *resultobj = 0;
9578 wxIcon *arg1 = 0 ;
9579 wxIconBundle *result = 0 ;
9580 void *argp1 = 0 ;
9581 int res1 = 0 ;
9582 PyObject * obj0 = 0 ;
9583 char * kwnames[] = {
9584 (char *) "icon", NULL
9585 };
9586
9587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9588 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9591 }
9592 if (!argp1) {
9593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9594 }
9595 arg1 = reinterpret_cast< wxIcon * >(argp1);
9596 {
9597 PyThreadState* __tstate = wxPyBeginAllowThreads();
9598 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9599 wxPyEndAllowThreads(__tstate);
9600 if (PyErr_Occurred()) SWIG_fail;
9601 }
9602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9603 return resultobj;
9604 fail:
9605 return NULL;
9606 }
9607
9608
9609 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9610 PyObject *resultobj = 0;
9611 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9612 void *argp1 = 0 ;
9613 int res1 = 0 ;
9614 PyObject *swig_obj[1] ;
9615
9616 if (!args) SWIG_fail;
9617 swig_obj[0] = args;
9618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9619 if (!SWIG_IsOK(res1)) {
9620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9621 }
9622 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 delete arg1;
9626
9627 wxPyEndAllowThreads(__tstate);
9628 if (PyErr_Occurred()) SWIG_fail;
9629 }
9630 resultobj = SWIG_Py_Void();
9631 return resultobj;
9632 fail:
9633 return NULL;
9634 }
9635
9636
9637 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9638 PyObject *resultobj = 0;
9639 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9640 wxIcon *arg2 = 0 ;
9641 void *argp1 = 0 ;
9642 int res1 = 0 ;
9643 void *argp2 = 0 ;
9644 int res2 = 0 ;
9645 PyObject * obj0 = 0 ;
9646 PyObject * obj1 = 0 ;
9647 char * kwnames[] = {
9648 (char *) "self",(char *) "icon", NULL
9649 };
9650
9651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9653 if (!SWIG_IsOK(res1)) {
9654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9655 }
9656 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9658 if (!SWIG_IsOK(res2)) {
9659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9660 }
9661 if (!argp2) {
9662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9663 }
9664 arg2 = reinterpret_cast< wxIcon * >(argp2);
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 (arg1)->AddIcon((wxIcon const &)*arg2);
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_Py_Void();
9672 return resultobj;
9673 fail:
9674 return NULL;
9675 }
9676
9677
9678 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9679 PyObject *resultobj = 0;
9680 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9681 wxString *arg2 = 0 ;
9682 long arg3 ;
9683 void *argp1 = 0 ;
9684 int res1 = 0 ;
9685 bool temp2 = false ;
9686 long val3 ;
9687 int ecode3 = 0 ;
9688 PyObject * obj0 = 0 ;
9689 PyObject * obj1 = 0 ;
9690 PyObject * obj2 = 0 ;
9691 char * kwnames[] = {
9692 (char *) "self",(char *) "file",(char *) "type", NULL
9693 };
9694
9695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9697 if (!SWIG_IsOK(res1)) {
9698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9699 }
9700 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9701 {
9702 arg2 = wxString_in_helper(obj1);
9703 if (arg2 == NULL) SWIG_fail;
9704 temp2 = true;
9705 }
9706 ecode3 = SWIG_AsVal_long(obj2, &val3);
9707 if (!SWIG_IsOK(ecode3)) {
9708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9709 }
9710 arg3 = static_cast< long >(val3);
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9714 wxPyEndAllowThreads(__tstate);
9715 if (PyErr_Occurred()) SWIG_fail;
9716 }
9717 resultobj = SWIG_Py_Void();
9718 {
9719 if (temp2)
9720 delete arg2;
9721 }
9722 return resultobj;
9723 fail:
9724 {
9725 if (temp2)
9726 delete arg2;
9727 }
9728 return NULL;
9729 }
9730
9731
9732 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj = 0;
9734 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9735 wxSize *arg2 = 0 ;
9736 wxIcon *result = 0 ;
9737 void *argp1 = 0 ;
9738 int res1 = 0 ;
9739 wxSize temp2 ;
9740 PyObject * obj0 = 0 ;
9741 PyObject * obj1 = 0 ;
9742 char * kwnames[] = {
9743 (char *) "self",(char *) "size", NULL
9744 };
9745
9746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9748 if (!SWIG_IsOK(res1)) {
9749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9750 }
9751 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9752 {
9753 arg2 = &temp2;
9754 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9755 }
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 {
9759 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9760 result = (wxIcon *) &_result_ref;
9761 }
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 {
9766 wxIcon* resultptr = new wxIcon(*result);
9767 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9768 }
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9776 PyObject *obj;
9777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9778 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9779 return SWIG_Py_Void();
9780 }
9781
9782 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9783 return SWIG_Python_InitShadowInstance(args);
9784 }
9785
9786 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9787 PyObject *resultobj = 0;
9788 wxString *arg1 = 0 ;
9789 long arg2 ;
9790 int arg3 = (int) 0 ;
9791 int arg4 = (int) 0 ;
9792 wxCursor *result = 0 ;
9793 bool temp1 = false ;
9794 long val2 ;
9795 int ecode2 = 0 ;
9796 int val3 ;
9797 int ecode3 = 0 ;
9798 int val4 ;
9799 int ecode4 = 0 ;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 PyObject * obj2 = 0 ;
9803 PyObject * obj3 = 0 ;
9804 char * kwnames[] = {
9805 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9806 };
9807
9808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9809 {
9810 arg1 = wxString_in_helper(obj0);
9811 if (arg1 == NULL) SWIG_fail;
9812 temp1 = true;
9813 }
9814 ecode2 = SWIG_AsVal_long(obj1, &val2);
9815 if (!SWIG_IsOK(ecode2)) {
9816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9817 }
9818 arg2 = static_cast< long >(val2);
9819 if (obj2) {
9820 ecode3 = SWIG_AsVal_int(obj2, &val3);
9821 if (!SWIG_IsOK(ecode3)) {
9822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9823 }
9824 arg3 = static_cast< int >(val3);
9825 }
9826 if (obj3) {
9827 ecode4 = SWIG_AsVal_int(obj3, &val4);
9828 if (!SWIG_IsOK(ecode4)) {
9829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9830 }
9831 arg4 = static_cast< int >(val4);
9832 }
9833 {
9834 if (!wxPyCheckForApp()) SWIG_fail;
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9841 {
9842 if (temp1)
9843 delete arg1;
9844 }
9845 return resultobj;
9846 fail:
9847 {
9848 if (temp1)
9849 delete arg1;
9850 }
9851 return NULL;
9852 }
9853
9854
9855 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9856 PyObject *resultobj = 0;
9857 wxCursor *arg1 = (wxCursor *) 0 ;
9858 void *argp1 = 0 ;
9859 int res1 = 0 ;
9860 PyObject *swig_obj[1] ;
9861
9862 if (!args) SWIG_fail;
9863 swig_obj[0] = args;
9864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9865 if (!SWIG_IsOK(res1)) {
9866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9867 }
9868 arg1 = reinterpret_cast< wxCursor * >(argp1);
9869 {
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 delete arg1;
9872
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 resultobj = SWIG_Py_Void();
9877 return resultobj;
9878 fail:
9879 return NULL;
9880 }
9881
9882
9883 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9884 PyObject *resultobj = 0;
9885 int arg1 ;
9886 wxCursor *result = 0 ;
9887 int val1 ;
9888 int ecode1 = 0 ;
9889 PyObject * obj0 = 0 ;
9890 char * kwnames[] = {
9891 (char *) "id", NULL
9892 };
9893
9894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9895 ecode1 = SWIG_AsVal_int(obj0, &val1);
9896 if (!SWIG_IsOK(ecode1)) {
9897 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9898 }
9899 arg1 = static_cast< int >(val1);
9900 {
9901 if (!wxPyCheckForApp()) SWIG_fail;
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (wxCursor *)new wxCursor(arg1);
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9908 return resultobj;
9909 fail:
9910 return NULL;
9911 }
9912
9913
9914 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9915 PyObject *resultobj = 0;
9916 wxImage *arg1 = 0 ;
9917 wxCursor *result = 0 ;
9918 void *argp1 = 0 ;
9919 int res1 = 0 ;
9920 PyObject * obj0 = 0 ;
9921 char * kwnames[] = {
9922 (char *) "image", NULL
9923 };
9924
9925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9926 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9927 if (!SWIG_IsOK(res1)) {
9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9929 }
9930 if (!argp1) {
9931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9932 }
9933 arg1 = reinterpret_cast< wxImage * >(argp1);
9934 {
9935 if (!wxPyCheckForApp()) SWIG_fail;
9936 PyThreadState* __tstate = wxPyBeginAllowThreads();
9937 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9938 wxPyEndAllowThreads(__tstate);
9939 if (PyErr_Occurred()) SWIG_fail;
9940 }
9941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9942 return resultobj;
9943 fail:
9944 return NULL;
9945 }
9946
9947
9948 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9949 PyObject *resultobj = 0;
9950 wxCursor *arg1 = (wxCursor *) 0 ;
9951 bool result;
9952 void *argp1 = 0 ;
9953 int res1 = 0 ;
9954 PyObject *swig_obj[1] ;
9955
9956 if (!args) SWIG_fail;
9957 swig_obj[0] = args;
9958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9959 if (!SWIG_IsOK(res1)) {
9960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
9961 }
9962 arg1 = reinterpret_cast< wxCursor * >(argp1);
9963 {
9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
9965 result = (bool)(arg1)->IsOk();
9966 wxPyEndAllowThreads(__tstate);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 {
9970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9971 }
9972 return resultobj;
9973 fail:
9974 return NULL;
9975 }
9976
9977
9978 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9979 PyObject *obj;
9980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9981 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9982 return SWIG_Py_Void();
9983 }
9984
9985 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9986 return SWIG_Python_InitShadowInstance(args);
9987 }
9988
9989 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9990 PyObject *resultobj = 0;
9991 int arg1 = (int) 0 ;
9992 int arg2 = (int) 0 ;
9993 int arg3 = (int) 0 ;
9994 int arg4 = (int) 0 ;
9995 wxRegion *result = 0 ;
9996 int val1 ;
9997 int ecode1 = 0 ;
9998 int val2 ;
9999 int ecode2 = 0 ;
10000 int val3 ;
10001 int ecode3 = 0 ;
10002 int val4 ;
10003 int ecode4 = 0 ;
10004 PyObject * obj0 = 0 ;
10005 PyObject * obj1 = 0 ;
10006 PyObject * obj2 = 0 ;
10007 PyObject * obj3 = 0 ;
10008 char * kwnames[] = {
10009 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10010 };
10011
10012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10013 if (obj0) {
10014 ecode1 = SWIG_AsVal_int(obj0, &val1);
10015 if (!SWIG_IsOK(ecode1)) {
10016 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10017 }
10018 arg1 = static_cast< int >(val1);
10019 }
10020 if (obj1) {
10021 ecode2 = SWIG_AsVal_int(obj1, &val2);
10022 if (!SWIG_IsOK(ecode2)) {
10023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10024 }
10025 arg2 = static_cast< int >(val2);
10026 }
10027 if (obj2) {
10028 ecode3 = SWIG_AsVal_int(obj2, &val3);
10029 if (!SWIG_IsOK(ecode3)) {
10030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10031 }
10032 arg3 = static_cast< int >(val3);
10033 }
10034 if (obj3) {
10035 ecode4 = SWIG_AsVal_int(obj3, &val4);
10036 if (!SWIG_IsOK(ecode4)) {
10037 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10038 }
10039 arg4 = static_cast< int >(val4);
10040 }
10041 {
10042 if (!wxPyCheckForApp()) SWIG_fail;
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10045 wxPyEndAllowThreads(__tstate);
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
10048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10049 return resultobj;
10050 fail:
10051 return NULL;
10052 }
10053
10054
10055 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10056 PyObject *resultobj = 0;
10057 wxBitmap *arg1 = 0 ;
10058 wxRegion *result = 0 ;
10059 void *argp1 = 0 ;
10060 int res1 = 0 ;
10061 PyObject * obj0 = 0 ;
10062 char * kwnames[] = {
10063 (char *) "bmp", NULL
10064 };
10065
10066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10067 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10068 if (!SWIG_IsOK(res1)) {
10069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10070 }
10071 if (!argp1) {
10072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10073 }
10074 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10075 {
10076 if (!wxPyCheckForApp()) SWIG_fail;
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj = 0;
10091 wxBitmap *arg1 = 0 ;
10092 wxColour *arg2 = 0 ;
10093 int arg3 = (int) 0 ;
10094 wxRegion *result = 0 ;
10095 void *argp1 = 0 ;
10096 int res1 = 0 ;
10097 wxColour temp2 ;
10098 int val3 ;
10099 int ecode3 = 0 ;
10100 PyObject * obj0 = 0 ;
10101 PyObject * obj1 = 0 ;
10102 PyObject * obj2 = 0 ;
10103 char * kwnames[] = {
10104 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10105 };
10106
10107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10108 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10109 if (!SWIG_IsOK(res1)) {
10110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10111 }
10112 if (!argp1) {
10113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10114 }
10115 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10116 {
10117 arg2 = &temp2;
10118 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10119 }
10120 if (obj2) {
10121 ecode3 = SWIG_AsVal_int(obj2, &val3);
10122 if (!SWIG_IsOK(ecode3)) {
10123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10124 }
10125 arg3 = static_cast< int >(val3);
10126 }
10127 {
10128 if (!wxPyCheckForApp()) SWIG_fail;
10129 PyThreadState* __tstate = wxPyBeginAllowThreads();
10130 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10131 wxPyEndAllowThreads(__tstate);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10135 return resultobj;
10136 fail:
10137 return NULL;
10138 }
10139
10140
10141 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10142 PyObject *resultobj = 0;
10143 int arg1 ;
10144 wxPoint *arg2 = (wxPoint *) 0 ;
10145 int arg3 = (int) wxWINDING_RULE ;
10146 wxRegion *result = 0 ;
10147 int val3 ;
10148 int ecode3 = 0 ;
10149 PyObject * obj0 = 0 ;
10150 PyObject * obj1 = 0 ;
10151 char * kwnames[] = {
10152 (char *) "points",(char *) "fillStyle", NULL
10153 };
10154
10155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10156 {
10157 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10158 if (arg2 == NULL) SWIG_fail;
10159 }
10160 if (obj1) {
10161 ecode3 = SWIG_AsVal_int(obj1, &val3);
10162 if (!SWIG_IsOK(ecode3)) {
10163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10164 }
10165 arg3 = static_cast< int >(val3);
10166 }
10167 {
10168 if (!wxPyCheckForApp()) SWIG_fail;
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10171 wxPyEndAllowThreads(__tstate);
10172 if (PyErr_Occurred()) SWIG_fail;
10173 }
10174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10175 {
10176 if (arg2) delete [] arg2;
10177 }
10178 return resultobj;
10179 fail:
10180 {
10181 if (arg2) delete [] arg2;
10182 }
10183 return NULL;
10184 }
10185
10186
10187 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10188 PyObject *resultobj = 0;
10189 wxRegion *arg1 = (wxRegion *) 0 ;
10190 void *argp1 = 0 ;
10191 int res1 = 0 ;
10192 PyObject *swig_obj[1] ;
10193
10194 if (!args) SWIG_fail;
10195 swig_obj[0] = args;
10196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10197 if (!SWIG_IsOK(res1)) {
10198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10199 }
10200 arg1 = reinterpret_cast< wxRegion * >(argp1);
10201 {
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 delete arg1;
10204
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 resultobj = SWIG_Py_Void();
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10216 PyObject *resultobj = 0;
10217 wxRegion *arg1 = (wxRegion *) 0 ;
10218 void *argp1 = 0 ;
10219 int res1 = 0 ;
10220 PyObject *swig_obj[1] ;
10221
10222 if (!args) SWIG_fail;
10223 swig_obj[0] = args;
10224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10225 if (!SWIG_IsOK(res1)) {
10226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10227 }
10228 arg1 = reinterpret_cast< wxRegion * >(argp1);
10229 {
10230 PyThreadState* __tstate = wxPyBeginAllowThreads();
10231 (arg1)->Clear();
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 resultobj = SWIG_Py_Void();
10236 return resultobj;
10237 fail:
10238 return NULL;
10239 }
10240
10241
10242 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10243 PyObject *resultobj = 0;
10244 wxRegion *arg1 = (wxRegion *) 0 ;
10245 int arg2 ;
10246 int arg3 ;
10247 bool result;
10248 void *argp1 = 0 ;
10249 int res1 = 0 ;
10250 int val2 ;
10251 int ecode2 = 0 ;
10252 int val3 ;
10253 int ecode3 = 0 ;
10254 PyObject * obj0 = 0 ;
10255 PyObject * obj1 = 0 ;
10256 PyObject * obj2 = 0 ;
10257 char * kwnames[] = {
10258 (char *) "self",(char *) "x",(char *) "y", NULL
10259 };
10260
10261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10263 if (!SWIG_IsOK(res1)) {
10264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10265 }
10266 arg1 = reinterpret_cast< wxRegion * >(argp1);
10267 ecode2 = SWIG_AsVal_int(obj1, &val2);
10268 if (!SWIG_IsOK(ecode2)) {
10269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10270 }
10271 arg2 = static_cast< int >(val2);
10272 ecode3 = SWIG_AsVal_int(obj2, &val3);
10273 if (!SWIG_IsOK(ecode3)) {
10274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10275 }
10276 arg3 = static_cast< int >(val3);
10277 {
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 result = (bool)(arg1)->Offset(arg2,arg3);
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 {
10284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10285 }
10286 return resultobj;
10287 fail:
10288 return NULL;
10289 }
10290
10291
10292 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10293 PyObject *resultobj = 0;
10294 wxRegion *arg1 = (wxRegion *) 0 ;
10295 int arg2 ;
10296 int arg3 ;
10297 wxRegionContain result;
10298 void *argp1 = 0 ;
10299 int res1 = 0 ;
10300 int val2 ;
10301 int ecode2 = 0 ;
10302 int val3 ;
10303 int ecode3 = 0 ;
10304 PyObject * obj0 = 0 ;
10305 PyObject * obj1 = 0 ;
10306 PyObject * obj2 = 0 ;
10307 char * kwnames[] = {
10308 (char *) "self",(char *) "x",(char *) "y", NULL
10309 };
10310
10311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10313 if (!SWIG_IsOK(res1)) {
10314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10315 }
10316 arg1 = reinterpret_cast< wxRegion * >(argp1);
10317 ecode2 = SWIG_AsVal_int(obj1, &val2);
10318 if (!SWIG_IsOK(ecode2)) {
10319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10320 }
10321 arg2 = static_cast< int >(val2);
10322 ecode3 = SWIG_AsVal_int(obj2, &val3);
10323 if (!SWIG_IsOK(ecode3)) {
10324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10325 }
10326 arg3 = static_cast< int >(val3);
10327 {
10328 PyThreadState* __tstate = wxPyBeginAllowThreads();
10329 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10330 wxPyEndAllowThreads(__tstate);
10331 if (PyErr_Occurred()) SWIG_fail;
10332 }
10333 resultobj = SWIG_From_int(static_cast< int >(result));
10334 return resultobj;
10335 fail:
10336 return NULL;
10337 }
10338
10339
10340 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10341 PyObject *resultobj = 0;
10342 wxRegion *arg1 = (wxRegion *) 0 ;
10343 wxPoint *arg2 = 0 ;
10344 wxRegionContain result;
10345 void *argp1 = 0 ;
10346 int res1 = 0 ;
10347 wxPoint temp2 ;
10348 PyObject * obj0 = 0 ;
10349 PyObject * obj1 = 0 ;
10350 char * kwnames[] = {
10351 (char *) "self",(char *) "pt", NULL
10352 };
10353
10354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10356 if (!SWIG_IsOK(res1)) {
10357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10358 }
10359 arg1 = reinterpret_cast< wxRegion * >(argp1);
10360 {
10361 arg2 = &temp2;
10362 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10363 }
10364 {
10365 PyThreadState* __tstate = wxPyBeginAllowThreads();
10366 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10367 wxPyEndAllowThreads(__tstate);
10368 if (PyErr_Occurred()) SWIG_fail;
10369 }
10370 resultobj = SWIG_From_int(static_cast< int >(result));
10371 return resultobj;
10372 fail:
10373 return NULL;
10374 }
10375
10376
10377 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10378 PyObject *resultobj = 0;
10379 wxRegion *arg1 = (wxRegion *) 0 ;
10380 wxRect *arg2 = 0 ;
10381 wxRegionContain result;
10382 void *argp1 = 0 ;
10383 int res1 = 0 ;
10384 wxRect temp2 ;
10385 PyObject * obj0 = 0 ;
10386 PyObject * obj1 = 0 ;
10387 char * kwnames[] = {
10388 (char *) "self",(char *) "rect", NULL
10389 };
10390
10391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10393 if (!SWIG_IsOK(res1)) {
10394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10395 }
10396 arg1 = reinterpret_cast< wxRegion * >(argp1);
10397 {
10398 arg2 = &temp2;
10399 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10400 }
10401 {
10402 PyThreadState* __tstate = wxPyBeginAllowThreads();
10403 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10404 wxPyEndAllowThreads(__tstate);
10405 if (PyErr_Occurred()) SWIG_fail;
10406 }
10407 resultobj = SWIG_From_int(static_cast< int >(result));
10408 return resultobj;
10409 fail:
10410 return NULL;
10411 }
10412
10413
10414 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10415 PyObject *resultobj = 0;
10416 wxRegion *arg1 = (wxRegion *) 0 ;
10417 int arg2 ;
10418 int arg3 ;
10419 int arg4 ;
10420 int arg5 ;
10421 wxRegionContain result;
10422 void *argp1 = 0 ;
10423 int res1 = 0 ;
10424 int val2 ;
10425 int ecode2 = 0 ;
10426 int val3 ;
10427 int ecode3 = 0 ;
10428 int val4 ;
10429 int ecode4 = 0 ;
10430 int val5 ;
10431 int ecode5 = 0 ;
10432 PyObject * obj0 = 0 ;
10433 PyObject * obj1 = 0 ;
10434 PyObject * obj2 = 0 ;
10435 PyObject * obj3 = 0 ;
10436 PyObject * obj4 = 0 ;
10437 char * kwnames[] = {
10438 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10439 };
10440
10441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10443 if (!SWIG_IsOK(res1)) {
10444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10445 }
10446 arg1 = reinterpret_cast< wxRegion * >(argp1);
10447 ecode2 = SWIG_AsVal_int(obj1, &val2);
10448 if (!SWIG_IsOK(ecode2)) {
10449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10450 }
10451 arg2 = static_cast< int >(val2);
10452 ecode3 = SWIG_AsVal_int(obj2, &val3);
10453 if (!SWIG_IsOK(ecode3)) {
10454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10455 }
10456 arg3 = static_cast< int >(val3);
10457 ecode4 = SWIG_AsVal_int(obj3, &val4);
10458 if (!SWIG_IsOK(ecode4)) {
10459 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10460 }
10461 arg4 = static_cast< int >(val4);
10462 ecode5 = SWIG_AsVal_int(obj4, &val5);
10463 if (!SWIG_IsOK(ecode5)) {
10464 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10465 }
10466 arg5 = static_cast< int >(val5);
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 resultobj = SWIG_From_int(static_cast< int >(result));
10474 return resultobj;
10475 fail:
10476 return NULL;
10477 }
10478
10479
10480 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10481 PyObject *resultobj = 0;
10482 wxRegion *arg1 = (wxRegion *) 0 ;
10483 wxRect result;
10484 void *argp1 = 0 ;
10485 int res1 = 0 ;
10486 PyObject *swig_obj[1] ;
10487
10488 if (!args) SWIG_fail;
10489 swig_obj[0] = args;
10490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10491 if (!SWIG_IsOK(res1)) {
10492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10493 }
10494 arg1 = reinterpret_cast< wxRegion * >(argp1);
10495 {
10496 PyThreadState* __tstate = wxPyBeginAllowThreads();
10497 result = (arg1)->GetBox();
10498 wxPyEndAllowThreads(__tstate);
10499 if (PyErr_Occurred()) SWIG_fail;
10500 }
10501 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10502 return resultobj;
10503 fail:
10504 return NULL;
10505 }
10506
10507
10508 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10509 PyObject *resultobj = 0;
10510 wxRegion *arg1 = (wxRegion *) 0 ;
10511 int arg2 ;
10512 int arg3 ;
10513 int arg4 ;
10514 int arg5 ;
10515 bool result;
10516 void *argp1 = 0 ;
10517 int res1 = 0 ;
10518 int val2 ;
10519 int ecode2 = 0 ;
10520 int val3 ;
10521 int ecode3 = 0 ;
10522 int val4 ;
10523 int ecode4 = 0 ;
10524 int val5 ;
10525 int ecode5 = 0 ;
10526 PyObject * obj0 = 0 ;
10527 PyObject * obj1 = 0 ;
10528 PyObject * obj2 = 0 ;
10529 PyObject * obj3 = 0 ;
10530 PyObject * obj4 = 0 ;
10531 char * kwnames[] = {
10532 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10533 };
10534
10535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10537 if (!SWIG_IsOK(res1)) {
10538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10539 }
10540 arg1 = reinterpret_cast< wxRegion * >(argp1);
10541 ecode2 = SWIG_AsVal_int(obj1, &val2);
10542 if (!SWIG_IsOK(ecode2)) {
10543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10544 }
10545 arg2 = static_cast< int >(val2);
10546 ecode3 = SWIG_AsVal_int(obj2, &val3);
10547 if (!SWIG_IsOK(ecode3)) {
10548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10549 }
10550 arg3 = static_cast< int >(val3);
10551 ecode4 = SWIG_AsVal_int(obj3, &val4);
10552 if (!SWIG_IsOK(ecode4)) {
10553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10554 }
10555 arg4 = static_cast< int >(val4);
10556 ecode5 = SWIG_AsVal_int(obj4, &val5);
10557 if (!SWIG_IsOK(ecode5)) {
10558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10559 }
10560 arg5 = static_cast< int >(val5);
10561 {
10562 PyThreadState* __tstate = wxPyBeginAllowThreads();
10563 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10564 wxPyEndAllowThreads(__tstate);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
10567 {
10568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10569 }
10570 return resultobj;
10571 fail:
10572 return NULL;
10573 }
10574
10575
10576 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10577 PyObject *resultobj = 0;
10578 wxRegion *arg1 = (wxRegion *) 0 ;
10579 wxRect *arg2 = 0 ;
10580 bool result;
10581 void *argp1 = 0 ;
10582 int res1 = 0 ;
10583 wxRect temp2 ;
10584 PyObject * obj0 = 0 ;
10585 PyObject * obj1 = 0 ;
10586 char * kwnames[] = {
10587 (char *) "self",(char *) "rect", NULL
10588 };
10589
10590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10592 if (!SWIG_IsOK(res1)) {
10593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10594 }
10595 arg1 = reinterpret_cast< wxRegion * >(argp1);
10596 {
10597 arg2 = &temp2;
10598 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10599 }
10600 {
10601 PyThreadState* __tstate = wxPyBeginAllowThreads();
10602 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10603 wxPyEndAllowThreads(__tstate);
10604 if (PyErr_Occurred()) SWIG_fail;
10605 }
10606 {
10607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10608 }
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj = 0;
10617 wxRegion *arg1 = (wxRegion *) 0 ;
10618 wxRegion *arg2 = 0 ;
10619 bool result;
10620 void *argp1 = 0 ;
10621 int res1 = 0 ;
10622 void *argp2 = 0 ;
10623 int res2 = 0 ;
10624 PyObject * obj0 = 0 ;
10625 PyObject * obj1 = 0 ;
10626 char * kwnames[] = {
10627 (char *) "self",(char *) "region", NULL
10628 };
10629
10630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10632 if (!SWIG_IsOK(res1)) {
10633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10634 }
10635 arg1 = reinterpret_cast< wxRegion * >(argp1);
10636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10637 if (!SWIG_IsOK(res2)) {
10638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10639 }
10640 if (!argp2) {
10641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10642 }
10643 arg2 = reinterpret_cast< wxRegion * >(argp2);
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10647 wxPyEndAllowThreads(__tstate);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 }
10650 {
10651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10652 }
10653 return resultobj;
10654 fail:
10655 return NULL;
10656 }
10657
10658
10659 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10660 PyObject *resultobj = 0;
10661 wxRegion *arg1 = (wxRegion *) 0 ;
10662 bool result;
10663 void *argp1 = 0 ;
10664 int res1 = 0 ;
10665 PyObject *swig_obj[1] ;
10666
10667 if (!args) SWIG_fail;
10668 swig_obj[0] = args;
10669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10670 if (!SWIG_IsOK(res1)) {
10671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10672 }
10673 arg1 = reinterpret_cast< wxRegion * >(argp1);
10674 {
10675 PyThreadState* __tstate = wxPyBeginAllowThreads();
10676 result = (bool)(arg1)->IsEmpty();
10677 wxPyEndAllowThreads(__tstate);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 }
10680 {
10681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10682 }
10683 return resultobj;
10684 fail:
10685 return NULL;
10686 }
10687
10688
10689 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj = 0;
10691 wxRegion *arg1 = (wxRegion *) 0 ;
10692 wxRegion *arg2 = 0 ;
10693 bool result;
10694 void *argp1 = 0 ;
10695 int res1 = 0 ;
10696 void *argp2 = 0 ;
10697 int res2 = 0 ;
10698 PyObject * obj0 = 0 ;
10699 PyObject * obj1 = 0 ;
10700 char * kwnames[] = {
10701 (char *) "self",(char *) "region", NULL
10702 };
10703
10704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10706 if (!SWIG_IsOK(res1)) {
10707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10708 }
10709 arg1 = reinterpret_cast< wxRegion * >(argp1);
10710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10711 if (!SWIG_IsOK(res2)) {
10712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10713 }
10714 if (!argp2) {
10715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10716 }
10717 arg2 = reinterpret_cast< wxRegion * >(argp2);
10718 {
10719 PyThreadState* __tstate = wxPyBeginAllowThreads();
10720 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10721 wxPyEndAllowThreads(__tstate);
10722 if (PyErr_Occurred()) SWIG_fail;
10723 }
10724 {
10725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10726 }
10727 return resultobj;
10728 fail:
10729 return NULL;
10730 }
10731
10732
10733 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj = 0;
10735 wxRegion *arg1 = (wxRegion *) 0 ;
10736 int arg2 ;
10737 int arg3 ;
10738 int arg4 ;
10739 int arg5 ;
10740 bool result;
10741 void *argp1 = 0 ;
10742 int res1 = 0 ;
10743 int val2 ;
10744 int ecode2 = 0 ;
10745 int val3 ;
10746 int ecode3 = 0 ;
10747 int val4 ;
10748 int ecode4 = 0 ;
10749 int val5 ;
10750 int ecode5 = 0 ;
10751 PyObject * obj0 = 0 ;
10752 PyObject * obj1 = 0 ;
10753 PyObject * obj2 = 0 ;
10754 PyObject * obj3 = 0 ;
10755 PyObject * obj4 = 0 ;
10756 char * kwnames[] = {
10757 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10758 };
10759
10760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10762 if (!SWIG_IsOK(res1)) {
10763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10764 }
10765 arg1 = reinterpret_cast< wxRegion * >(argp1);
10766 ecode2 = SWIG_AsVal_int(obj1, &val2);
10767 if (!SWIG_IsOK(ecode2)) {
10768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10769 }
10770 arg2 = static_cast< int >(val2);
10771 ecode3 = SWIG_AsVal_int(obj2, &val3);
10772 if (!SWIG_IsOK(ecode3)) {
10773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10774 }
10775 arg3 = static_cast< int >(val3);
10776 ecode4 = SWIG_AsVal_int(obj3, &val4);
10777 if (!SWIG_IsOK(ecode4)) {
10778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10779 }
10780 arg4 = static_cast< int >(val4);
10781 ecode5 = SWIG_AsVal_int(obj4, &val5);
10782 if (!SWIG_IsOK(ecode5)) {
10783 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10784 }
10785 arg5 = static_cast< int >(val5);
10786 {
10787 PyThreadState* __tstate = wxPyBeginAllowThreads();
10788 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 {
10793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10794 }
10795 return resultobj;
10796 fail:
10797 return NULL;
10798 }
10799
10800
10801 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10802 PyObject *resultobj = 0;
10803 wxRegion *arg1 = (wxRegion *) 0 ;
10804 wxRect *arg2 = 0 ;
10805 bool result;
10806 void *argp1 = 0 ;
10807 int res1 = 0 ;
10808 wxRect temp2 ;
10809 PyObject * obj0 = 0 ;
10810 PyObject * obj1 = 0 ;
10811 char * kwnames[] = {
10812 (char *) "self",(char *) "rect", NULL
10813 };
10814
10815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10817 if (!SWIG_IsOK(res1)) {
10818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10819 }
10820 arg1 = reinterpret_cast< wxRegion * >(argp1);
10821 {
10822 arg2 = &temp2;
10823 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10824 }
10825 {
10826 PyThreadState* __tstate = wxPyBeginAllowThreads();
10827 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10828 wxPyEndAllowThreads(__tstate);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
10831 {
10832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10833 }
10834 return resultobj;
10835 fail:
10836 return NULL;
10837 }
10838
10839
10840 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10841 PyObject *resultobj = 0;
10842 wxRegion *arg1 = (wxRegion *) 0 ;
10843 wxRegion *arg2 = 0 ;
10844 bool result;
10845 void *argp1 = 0 ;
10846 int res1 = 0 ;
10847 void *argp2 = 0 ;
10848 int res2 = 0 ;
10849 PyObject * obj0 = 0 ;
10850 PyObject * obj1 = 0 ;
10851 char * kwnames[] = {
10852 (char *) "self",(char *) "region", NULL
10853 };
10854
10855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10857 if (!SWIG_IsOK(res1)) {
10858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10859 }
10860 arg1 = reinterpret_cast< wxRegion * >(argp1);
10861 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10862 if (!SWIG_IsOK(res2)) {
10863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10864 }
10865 if (!argp2) {
10866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10867 }
10868 arg2 = reinterpret_cast< wxRegion * >(argp2);
10869 {
10870 PyThreadState* __tstate = wxPyBeginAllowThreads();
10871 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 {
10876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10877 }
10878 return resultobj;
10879 fail:
10880 return NULL;
10881 }
10882
10883
10884 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10885 PyObject *resultobj = 0;
10886 wxRegion *arg1 = (wxRegion *) 0 ;
10887 int arg2 ;
10888 int arg3 ;
10889 int arg4 ;
10890 int arg5 ;
10891 bool result;
10892 void *argp1 = 0 ;
10893 int res1 = 0 ;
10894 int val2 ;
10895 int ecode2 = 0 ;
10896 int val3 ;
10897 int ecode3 = 0 ;
10898 int val4 ;
10899 int ecode4 = 0 ;
10900 int val5 ;
10901 int ecode5 = 0 ;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 PyObject * obj2 = 0 ;
10905 PyObject * obj3 = 0 ;
10906 PyObject * obj4 = 0 ;
10907 char * kwnames[] = {
10908 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10909 };
10910
10911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10913 if (!SWIG_IsOK(res1)) {
10914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10915 }
10916 arg1 = reinterpret_cast< wxRegion * >(argp1);
10917 ecode2 = SWIG_AsVal_int(obj1, &val2);
10918 if (!SWIG_IsOK(ecode2)) {
10919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10920 }
10921 arg2 = static_cast< int >(val2);
10922 ecode3 = SWIG_AsVal_int(obj2, &val3);
10923 if (!SWIG_IsOK(ecode3)) {
10924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10925 }
10926 arg3 = static_cast< int >(val3);
10927 ecode4 = SWIG_AsVal_int(obj3, &val4);
10928 if (!SWIG_IsOK(ecode4)) {
10929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10930 }
10931 arg4 = static_cast< int >(val4);
10932 ecode5 = SWIG_AsVal_int(obj4, &val5);
10933 if (!SWIG_IsOK(ecode5)) {
10934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10935 }
10936 arg5 = static_cast< int >(val5);
10937 {
10938 PyThreadState* __tstate = wxPyBeginAllowThreads();
10939 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10940 wxPyEndAllowThreads(__tstate);
10941 if (PyErr_Occurred()) SWIG_fail;
10942 }
10943 {
10944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10945 }
10946 return resultobj;
10947 fail:
10948 return NULL;
10949 }
10950
10951
10952 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10953 PyObject *resultobj = 0;
10954 wxRegion *arg1 = (wxRegion *) 0 ;
10955 wxRect *arg2 = 0 ;
10956 bool result;
10957 void *argp1 = 0 ;
10958 int res1 = 0 ;
10959 wxRect temp2 ;
10960 PyObject * obj0 = 0 ;
10961 PyObject * obj1 = 0 ;
10962 char * kwnames[] = {
10963 (char *) "self",(char *) "rect", NULL
10964 };
10965
10966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10968 if (!SWIG_IsOK(res1)) {
10969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10970 }
10971 arg1 = reinterpret_cast< wxRegion * >(argp1);
10972 {
10973 arg2 = &temp2;
10974 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10975 }
10976 {
10977 PyThreadState* __tstate = wxPyBeginAllowThreads();
10978 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10979 wxPyEndAllowThreads(__tstate);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 }
10982 {
10983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10984 }
10985 return resultobj;
10986 fail:
10987 return NULL;
10988 }
10989
10990
10991 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj = 0;
10993 wxRegion *arg1 = (wxRegion *) 0 ;
10994 wxRegion *arg2 = 0 ;
10995 bool result;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 void *argp2 = 0 ;
10999 int res2 = 0 ;
11000 PyObject * obj0 = 0 ;
11001 PyObject * obj1 = 0 ;
11002 char * kwnames[] = {
11003 (char *) "self",(char *) "region", NULL
11004 };
11005
11006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11008 if (!SWIG_IsOK(res1)) {
11009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11010 }
11011 arg1 = reinterpret_cast< wxRegion * >(argp1);
11012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11013 if (!SWIG_IsOK(res2)) {
11014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11015 }
11016 if (!argp2) {
11017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11018 }
11019 arg2 = reinterpret_cast< wxRegion * >(argp2);
11020 {
11021 PyThreadState* __tstate = wxPyBeginAllowThreads();
11022 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11023 wxPyEndAllowThreads(__tstate);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 {
11027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11028 }
11029 return resultobj;
11030 fail:
11031 return NULL;
11032 }
11033
11034
11035 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11036 PyObject *resultobj = 0;
11037 wxRegion *arg1 = (wxRegion *) 0 ;
11038 int arg2 ;
11039 int arg3 ;
11040 int arg4 ;
11041 int arg5 ;
11042 bool result;
11043 void *argp1 = 0 ;
11044 int res1 = 0 ;
11045 int val2 ;
11046 int ecode2 = 0 ;
11047 int val3 ;
11048 int ecode3 = 0 ;
11049 int val4 ;
11050 int ecode4 = 0 ;
11051 int val5 ;
11052 int ecode5 = 0 ;
11053 PyObject * obj0 = 0 ;
11054 PyObject * obj1 = 0 ;
11055 PyObject * obj2 = 0 ;
11056 PyObject * obj3 = 0 ;
11057 PyObject * obj4 = 0 ;
11058 char * kwnames[] = {
11059 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11060 };
11061
11062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11066 }
11067 arg1 = reinterpret_cast< wxRegion * >(argp1);
11068 ecode2 = SWIG_AsVal_int(obj1, &val2);
11069 if (!SWIG_IsOK(ecode2)) {
11070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11071 }
11072 arg2 = static_cast< int >(val2);
11073 ecode3 = SWIG_AsVal_int(obj2, &val3);
11074 if (!SWIG_IsOK(ecode3)) {
11075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11076 }
11077 arg3 = static_cast< int >(val3);
11078 ecode4 = SWIG_AsVal_int(obj3, &val4);
11079 if (!SWIG_IsOK(ecode4)) {
11080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11081 }
11082 arg4 = static_cast< int >(val4);
11083 ecode5 = SWIG_AsVal_int(obj4, &val5);
11084 if (!SWIG_IsOK(ecode5)) {
11085 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11086 }
11087 arg5 = static_cast< int >(val5);
11088 {
11089 PyThreadState* __tstate = wxPyBeginAllowThreads();
11090 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11091 wxPyEndAllowThreads(__tstate);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 {
11095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11096 }
11097 return resultobj;
11098 fail:
11099 return NULL;
11100 }
11101
11102
11103 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj = 0;
11105 wxRegion *arg1 = (wxRegion *) 0 ;
11106 wxRect *arg2 = 0 ;
11107 bool result;
11108 void *argp1 = 0 ;
11109 int res1 = 0 ;
11110 wxRect temp2 ;
11111 PyObject * obj0 = 0 ;
11112 PyObject * obj1 = 0 ;
11113 char * kwnames[] = {
11114 (char *) "self",(char *) "rect", NULL
11115 };
11116
11117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11119 if (!SWIG_IsOK(res1)) {
11120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11121 }
11122 arg1 = reinterpret_cast< wxRegion * >(argp1);
11123 {
11124 arg2 = &temp2;
11125 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11126 }
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 }
11133 {
11134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11135 }
11136 return resultobj;
11137 fail:
11138 return NULL;
11139 }
11140
11141
11142 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj = 0;
11144 wxRegion *arg1 = (wxRegion *) 0 ;
11145 wxRegion *arg2 = 0 ;
11146 bool result;
11147 void *argp1 = 0 ;
11148 int res1 = 0 ;
11149 void *argp2 = 0 ;
11150 int res2 = 0 ;
11151 PyObject * obj0 = 0 ;
11152 PyObject * obj1 = 0 ;
11153 char * kwnames[] = {
11154 (char *) "self",(char *) "region", NULL
11155 };
11156
11157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11159 if (!SWIG_IsOK(res1)) {
11160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11161 }
11162 arg1 = reinterpret_cast< wxRegion * >(argp1);
11163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11164 if (!SWIG_IsOK(res2)) {
11165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11166 }
11167 if (!argp2) {
11168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11169 }
11170 arg2 = reinterpret_cast< wxRegion * >(argp2);
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11179 }
11180 return resultobj;
11181 fail:
11182 return NULL;
11183 }
11184
11185
11186 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11187 PyObject *resultobj = 0;
11188 wxRegion *arg1 = (wxRegion *) 0 ;
11189 SwigValueWrapper<wxBitmap > result;
11190 void *argp1 = 0 ;
11191 int res1 = 0 ;
11192 PyObject *swig_obj[1] ;
11193
11194 if (!args) SWIG_fail;
11195 swig_obj[0] = args;
11196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11197 if (!SWIG_IsOK(res1)) {
11198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11199 }
11200 arg1 = reinterpret_cast< wxRegion * >(argp1);
11201 {
11202 PyThreadState* __tstate = wxPyBeginAllowThreads();
11203 result = (arg1)->ConvertToBitmap();
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11208 return resultobj;
11209 fail:
11210 return NULL;
11211 }
11212
11213
11214 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11215 PyObject *resultobj = 0;
11216 wxRegion *arg1 = (wxRegion *) 0 ;
11217 wxBitmap *arg2 = 0 ;
11218 bool result;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 void *argp2 = 0 ;
11222 int res2 = 0 ;
11223 PyObject * obj0 = 0 ;
11224 PyObject * obj1 = 0 ;
11225 char * kwnames[] = {
11226 (char *) "self",(char *) "bmp", NULL
11227 };
11228
11229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11231 if (!SWIG_IsOK(res1)) {
11232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11233 }
11234 arg1 = reinterpret_cast< wxRegion * >(argp1);
11235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11236 if (!SWIG_IsOK(res2)) {
11237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11238 }
11239 if (!argp2) {
11240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11241 }
11242 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11243 {
11244 PyThreadState* __tstate = wxPyBeginAllowThreads();
11245 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11246 wxPyEndAllowThreads(__tstate);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 }
11249 {
11250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11251 }
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11259 PyObject *resultobj = 0;
11260 wxRegion *arg1 = (wxRegion *) 0 ;
11261 wxBitmap *arg2 = 0 ;
11262 wxColour *arg3 = 0 ;
11263 int arg4 = (int) 0 ;
11264 bool result;
11265 void *argp1 = 0 ;
11266 int res1 = 0 ;
11267 void *argp2 = 0 ;
11268 int res2 = 0 ;
11269 wxColour temp3 ;
11270 int val4 ;
11271 int ecode4 = 0 ;
11272 PyObject * obj0 = 0 ;
11273 PyObject * obj1 = 0 ;
11274 PyObject * obj2 = 0 ;
11275 PyObject * obj3 = 0 ;
11276 char * kwnames[] = {
11277 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11278 };
11279
11280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11282 if (!SWIG_IsOK(res1)) {
11283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11284 }
11285 arg1 = reinterpret_cast< wxRegion * >(argp1);
11286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11287 if (!SWIG_IsOK(res2)) {
11288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11289 }
11290 if (!argp2) {
11291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11292 }
11293 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11294 {
11295 arg3 = &temp3;
11296 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11297 }
11298 if (obj3) {
11299 ecode4 = SWIG_AsVal_int(obj3, &val4);
11300 if (!SWIG_IsOK(ecode4)) {
11301 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11302 }
11303 arg4 = static_cast< int >(val4);
11304 }
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
11307 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 {
11312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11313 }
11314 return resultobj;
11315 fail:
11316 return NULL;
11317 }
11318
11319
11320 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11321 PyObject *obj;
11322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11323 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11324 return SWIG_Py_Void();
11325 }
11326
11327 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11328 return SWIG_Python_InitShadowInstance(args);
11329 }
11330
11331 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11332 PyObject *resultobj = 0;
11333 wxRegion *arg1 = 0 ;
11334 wxRegionIterator *result = 0 ;
11335 void *argp1 = 0 ;
11336 int res1 = 0 ;
11337 PyObject * obj0 = 0 ;
11338 char * kwnames[] = {
11339 (char *) "region", NULL
11340 };
11341
11342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11343 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11346 }
11347 if (!argp1) {
11348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11349 }
11350 arg1 = reinterpret_cast< wxRegion * >(argp1);
11351 {
11352 if (!wxPyCheckForApp()) SWIG_fail;
11353 PyThreadState* __tstate = wxPyBeginAllowThreads();
11354 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11359 return resultobj;
11360 fail:
11361 return NULL;
11362 }
11363
11364
11365 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11366 PyObject *resultobj = 0;
11367 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11368 void *argp1 = 0 ;
11369 int res1 = 0 ;
11370 PyObject *swig_obj[1] ;
11371
11372 if (!args) SWIG_fail;
11373 swig_obj[0] = args;
11374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11375 if (!SWIG_IsOK(res1)) {
11376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11377 }
11378 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11379 {
11380 PyThreadState* __tstate = wxPyBeginAllowThreads();
11381 delete arg1;
11382
11383 wxPyEndAllowThreads(__tstate);
11384 if (PyErr_Occurred()) SWIG_fail;
11385 }
11386 resultobj = SWIG_Py_Void();
11387 return resultobj;
11388 fail:
11389 return NULL;
11390 }
11391
11392
11393 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11394 PyObject *resultobj = 0;
11395 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11396 int result;
11397 void *argp1 = 0 ;
11398 int res1 = 0 ;
11399 PyObject *swig_obj[1] ;
11400
11401 if (!args) SWIG_fail;
11402 swig_obj[0] = args;
11403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11404 if (!SWIG_IsOK(res1)) {
11405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11406 }
11407 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11408 {
11409 PyThreadState* __tstate = wxPyBeginAllowThreads();
11410 result = (int)(arg1)->GetX();
11411 wxPyEndAllowThreads(__tstate);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 }
11414 resultobj = SWIG_From_int(static_cast< int >(result));
11415 return resultobj;
11416 fail:
11417 return NULL;
11418 }
11419
11420
11421 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11422 PyObject *resultobj = 0;
11423 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11424 int result;
11425 void *argp1 = 0 ;
11426 int res1 = 0 ;
11427 PyObject *swig_obj[1] ;
11428
11429 if (!args) SWIG_fail;
11430 swig_obj[0] = args;
11431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11432 if (!SWIG_IsOK(res1)) {
11433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11434 }
11435 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 result = (int)(arg1)->GetY();
11439 wxPyEndAllowThreads(__tstate);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 }
11442 resultobj = SWIG_From_int(static_cast< int >(result));
11443 return resultobj;
11444 fail:
11445 return NULL;
11446 }
11447
11448
11449 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11450 PyObject *resultobj = 0;
11451 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11452 int result;
11453 void *argp1 = 0 ;
11454 int res1 = 0 ;
11455 PyObject *swig_obj[1] ;
11456
11457 if (!args) SWIG_fail;
11458 swig_obj[0] = args;
11459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11460 if (!SWIG_IsOK(res1)) {
11461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11462 }
11463 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11464 {
11465 PyThreadState* __tstate = wxPyBeginAllowThreads();
11466 result = (int)(arg1)->GetW();
11467 wxPyEndAllowThreads(__tstate);
11468 if (PyErr_Occurred()) SWIG_fail;
11469 }
11470 resultobj = SWIG_From_int(static_cast< int >(result));
11471 return resultobj;
11472 fail:
11473 return NULL;
11474 }
11475
11476
11477 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11478 PyObject *resultobj = 0;
11479 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11480 int result;
11481 void *argp1 = 0 ;
11482 int res1 = 0 ;
11483 PyObject *swig_obj[1] ;
11484
11485 if (!args) SWIG_fail;
11486 swig_obj[0] = args;
11487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11488 if (!SWIG_IsOK(res1)) {
11489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11490 }
11491 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11492 {
11493 PyThreadState* __tstate = wxPyBeginAllowThreads();
11494 result = (int)(arg1)->GetWidth();
11495 wxPyEndAllowThreads(__tstate);
11496 if (PyErr_Occurred()) SWIG_fail;
11497 }
11498 resultobj = SWIG_From_int(static_cast< int >(result));
11499 return resultobj;
11500 fail:
11501 return NULL;
11502 }
11503
11504
11505 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11506 PyObject *resultobj = 0;
11507 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11508 int result;
11509 void *argp1 = 0 ;
11510 int res1 = 0 ;
11511 PyObject *swig_obj[1] ;
11512
11513 if (!args) SWIG_fail;
11514 swig_obj[0] = args;
11515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11516 if (!SWIG_IsOK(res1)) {
11517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11518 }
11519 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11520 {
11521 PyThreadState* __tstate = wxPyBeginAllowThreads();
11522 result = (int)(arg1)->GetH();
11523 wxPyEndAllowThreads(__tstate);
11524 if (PyErr_Occurred()) SWIG_fail;
11525 }
11526 resultobj = SWIG_From_int(static_cast< int >(result));
11527 return resultobj;
11528 fail:
11529 return NULL;
11530 }
11531
11532
11533 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11534 PyObject *resultobj = 0;
11535 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11536 int result;
11537 void *argp1 = 0 ;
11538 int res1 = 0 ;
11539 PyObject *swig_obj[1] ;
11540
11541 if (!args) SWIG_fail;
11542 swig_obj[0] = args;
11543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11544 if (!SWIG_IsOK(res1)) {
11545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11546 }
11547 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 result = (int)(arg1)->GetHeight();
11551 wxPyEndAllowThreads(__tstate);
11552 if (PyErr_Occurred()) SWIG_fail;
11553 }
11554 resultobj = SWIG_From_int(static_cast< int >(result));
11555 return resultobj;
11556 fail:
11557 return NULL;
11558 }
11559
11560
11561 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11562 PyObject *resultobj = 0;
11563 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11564 wxRect result;
11565 void *argp1 = 0 ;
11566 int res1 = 0 ;
11567 PyObject *swig_obj[1] ;
11568
11569 if (!args) SWIG_fail;
11570 swig_obj[0] = args;
11571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11572 if (!SWIG_IsOK(res1)) {
11573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11574 }
11575 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11576 {
11577 PyThreadState* __tstate = wxPyBeginAllowThreads();
11578 result = (arg1)->GetRect();
11579 wxPyEndAllowThreads(__tstate);
11580 if (PyErr_Occurred()) SWIG_fail;
11581 }
11582 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11583 return resultobj;
11584 fail:
11585 return NULL;
11586 }
11587
11588
11589 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11590 PyObject *resultobj = 0;
11591 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11592 bool result;
11593 void *argp1 = 0 ;
11594 int res1 = 0 ;
11595 PyObject *swig_obj[1] ;
11596
11597 if (!args) SWIG_fail;
11598 swig_obj[0] = args;
11599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11600 if (!SWIG_IsOK(res1)) {
11601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11602 }
11603 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11604 {
11605 PyThreadState* __tstate = wxPyBeginAllowThreads();
11606 result = (bool)(arg1)->HaveRects();
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 {
11611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11612 }
11613 return resultobj;
11614 fail:
11615 return NULL;
11616 }
11617
11618
11619 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11620 PyObject *resultobj = 0;
11621 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11622 void *argp1 = 0 ;
11623 int res1 = 0 ;
11624 PyObject *swig_obj[1] ;
11625
11626 if (!args) SWIG_fail;
11627 swig_obj[0] = args;
11628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11629 if (!SWIG_IsOK(res1)) {
11630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11631 }
11632 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 (arg1)->Reset();
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 resultobj = SWIG_Py_Void();
11640 return resultobj;
11641 fail:
11642 return NULL;
11643 }
11644
11645
11646 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11647 PyObject *resultobj = 0;
11648 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11649 void *argp1 = 0 ;
11650 int res1 = 0 ;
11651 PyObject *swig_obj[1] ;
11652
11653 if (!args) SWIG_fail;
11654 swig_obj[0] = args;
11655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11656 if (!SWIG_IsOK(res1)) {
11657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11658 }
11659 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11660 {
11661 PyThreadState* __tstate = wxPyBeginAllowThreads();
11662 wxRegionIterator_Next(arg1);
11663 wxPyEndAllowThreads(__tstate);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 resultobj = SWIG_Py_Void();
11667 return resultobj;
11668 fail:
11669 return NULL;
11670 }
11671
11672
11673 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11674 PyObject *resultobj = 0;
11675 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11676 bool result;
11677 void *argp1 = 0 ;
11678 int res1 = 0 ;
11679 PyObject *swig_obj[1] ;
11680
11681 if (!args) SWIG_fail;
11682 swig_obj[0] = args;
11683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11684 if (!SWIG_IsOK(res1)) {
11685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11686 }
11687 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 result = (bool)wxRegionIterator___nonzero__(arg1);
11691 wxPyEndAllowThreads(__tstate);
11692 if (PyErr_Occurred()) SWIG_fail;
11693 }
11694 {
11695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11696 }
11697 return resultobj;
11698 fail:
11699 return NULL;
11700 }
11701
11702
11703 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11704 PyObject *obj;
11705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11706 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11707 return SWIG_Py_Void();
11708 }
11709
11710 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11711 return SWIG_Python_InitShadowInstance(args);
11712 }
11713
11714 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11715 PyObject *resultobj = 0;
11716 wxNativeFontInfo *result = 0 ;
11717
11718 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11719 {
11720 PyThreadState* __tstate = wxPyBeginAllowThreads();
11721 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11722 wxPyEndAllowThreads(__tstate);
11723 if (PyErr_Occurred()) SWIG_fail;
11724 }
11725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11726 return resultobj;
11727 fail:
11728 return NULL;
11729 }
11730
11731
11732 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11733 PyObject *resultobj = 0;
11734 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11735 void *argp1 = 0 ;
11736 int res1 = 0 ;
11737 PyObject *swig_obj[1] ;
11738
11739 if (!args) SWIG_fail;
11740 swig_obj[0] = args;
11741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11742 if (!SWIG_IsOK(res1)) {
11743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11744 }
11745 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11746 {
11747 PyThreadState* __tstate = wxPyBeginAllowThreads();
11748 delete arg1;
11749
11750 wxPyEndAllowThreads(__tstate);
11751 if (PyErr_Occurred()) SWIG_fail;
11752 }
11753 resultobj = SWIG_Py_Void();
11754 return resultobj;
11755 fail:
11756 return NULL;
11757 }
11758
11759
11760 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11761 PyObject *resultobj = 0;
11762 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11763 void *argp1 = 0 ;
11764 int res1 = 0 ;
11765 PyObject *swig_obj[1] ;
11766
11767 if (!args) SWIG_fail;
11768 swig_obj[0] = args;
11769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11770 if (!SWIG_IsOK(res1)) {
11771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11772 }
11773 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 (arg1)->Init();
11777 wxPyEndAllowThreads(__tstate);
11778 if (PyErr_Occurred()) SWIG_fail;
11779 }
11780 resultobj = SWIG_Py_Void();
11781 return resultobj;
11782 fail:
11783 return NULL;
11784 }
11785
11786
11787 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11788 PyObject *resultobj = 0;
11789 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11790 wxFont *arg2 = 0 ;
11791 void *argp1 = 0 ;
11792 int res1 = 0 ;
11793 void *argp2 = 0 ;
11794 int res2 = 0 ;
11795 PyObject * obj0 = 0 ;
11796 PyObject * obj1 = 0 ;
11797 char * kwnames[] = {
11798 (char *) "self",(char *) "font", NULL
11799 };
11800
11801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11803 if (!SWIG_IsOK(res1)) {
11804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11805 }
11806 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11808 if (!SWIG_IsOK(res2)) {
11809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11810 }
11811 if (!argp2) {
11812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11813 }
11814 arg2 = reinterpret_cast< wxFont * >(argp2);
11815 {
11816 PyThreadState* __tstate = wxPyBeginAllowThreads();
11817 (arg1)->InitFromFont((wxFont const &)*arg2);
11818 wxPyEndAllowThreads(__tstate);
11819 if (PyErr_Occurred()) SWIG_fail;
11820 }
11821 resultobj = SWIG_Py_Void();
11822 return resultobj;
11823 fail:
11824 return NULL;
11825 }
11826
11827
11828 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11829 PyObject *resultobj = 0;
11830 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11831 int result;
11832 void *argp1 = 0 ;
11833 int res1 = 0 ;
11834 PyObject *swig_obj[1] ;
11835
11836 if (!args) SWIG_fail;
11837 swig_obj[0] = args;
11838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11839 if (!SWIG_IsOK(res1)) {
11840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11841 }
11842 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11846 wxPyEndAllowThreads(__tstate);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 }
11849 resultobj = SWIG_From_int(static_cast< int >(result));
11850 return resultobj;
11851 fail:
11852 return NULL;
11853 }
11854
11855
11856 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11857 PyObject *resultobj = 0;
11858 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11859 wxFontStyle result;
11860 void *argp1 = 0 ;
11861 int res1 = 0 ;
11862 PyObject *swig_obj[1] ;
11863
11864 if (!args) SWIG_fail;
11865 swig_obj[0] = args;
11866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11867 if (!SWIG_IsOK(res1)) {
11868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11869 }
11870 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 resultobj = SWIG_From_int(static_cast< int >(result));
11878 return resultobj;
11879 fail:
11880 return NULL;
11881 }
11882
11883
11884 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11885 PyObject *resultobj = 0;
11886 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11887 wxFontWeight result;
11888 void *argp1 = 0 ;
11889 int res1 = 0 ;
11890 PyObject *swig_obj[1] ;
11891
11892 if (!args) SWIG_fail;
11893 swig_obj[0] = args;
11894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11895 if (!SWIG_IsOK(res1)) {
11896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11897 }
11898 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 resultobj = SWIG_From_int(static_cast< int >(result));
11906 return resultobj;
11907 fail:
11908 return NULL;
11909 }
11910
11911
11912 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11913 PyObject *resultobj = 0;
11914 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11915 bool result;
11916 void *argp1 = 0 ;
11917 int res1 = 0 ;
11918 PyObject *swig_obj[1] ;
11919
11920 if (!args) SWIG_fail;
11921 swig_obj[0] = args;
11922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11923 if (!SWIG_IsOK(res1)) {
11924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11925 }
11926 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11927 {
11928 PyThreadState* __tstate = wxPyBeginAllowThreads();
11929 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 {
11934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11935 }
11936 return resultobj;
11937 fail:
11938 return NULL;
11939 }
11940
11941
11942 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11943 PyObject *resultobj = 0;
11944 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11945 wxString result;
11946 void *argp1 = 0 ;
11947 int res1 = 0 ;
11948 PyObject *swig_obj[1] ;
11949
11950 if (!args) SWIG_fail;
11951 swig_obj[0] = args;
11952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11953 if (!SWIG_IsOK(res1)) {
11954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11955 }
11956 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11957 {
11958 PyThreadState* __tstate = wxPyBeginAllowThreads();
11959 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11960 wxPyEndAllowThreads(__tstate);
11961 if (PyErr_Occurred()) SWIG_fail;
11962 }
11963 {
11964 #if wxUSE_UNICODE
11965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11966 #else
11967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11968 #endif
11969 }
11970 return resultobj;
11971 fail:
11972 return NULL;
11973 }
11974
11975
11976 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11977 PyObject *resultobj = 0;
11978 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11979 wxFontFamily result;
11980 void *argp1 = 0 ;
11981 int res1 = 0 ;
11982 PyObject *swig_obj[1] ;
11983
11984 if (!args) SWIG_fail;
11985 swig_obj[0] = args;
11986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11987 if (!SWIG_IsOK(res1)) {
11988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11989 }
11990 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 resultobj = SWIG_From_int(static_cast< int >(result));
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12005 PyObject *resultobj = 0;
12006 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12007 wxFontEncoding result;
12008 void *argp1 = 0 ;
12009 int res1 = 0 ;
12010 PyObject *swig_obj[1] ;
12011
12012 if (!args) SWIG_fail;
12013 swig_obj[0] = args;
12014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12015 if (!SWIG_IsOK(res1)) {
12016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12017 }
12018 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12019 {
12020 PyThreadState* __tstate = wxPyBeginAllowThreads();
12021 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 resultobj = SWIG_From_int(static_cast< int >(result));
12026 return resultobj;
12027 fail:
12028 return NULL;
12029 }
12030
12031
12032 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12033 PyObject *resultobj = 0;
12034 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12035 int arg2 ;
12036 void *argp1 = 0 ;
12037 int res1 = 0 ;
12038 int val2 ;
12039 int ecode2 = 0 ;
12040 PyObject * obj0 = 0 ;
12041 PyObject * obj1 = 0 ;
12042 char * kwnames[] = {
12043 (char *) "self",(char *) "pointsize", NULL
12044 };
12045
12046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12048 if (!SWIG_IsOK(res1)) {
12049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12050 }
12051 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12052 ecode2 = SWIG_AsVal_int(obj1, &val2);
12053 if (!SWIG_IsOK(ecode2)) {
12054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12055 }
12056 arg2 = static_cast< int >(val2);
12057 {
12058 PyThreadState* __tstate = wxPyBeginAllowThreads();
12059 (arg1)->SetPointSize(arg2);
12060 wxPyEndAllowThreads(__tstate);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 resultobj = SWIG_Py_Void();
12064 return resultobj;
12065 fail:
12066 return NULL;
12067 }
12068
12069
12070 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12071 PyObject *resultobj = 0;
12072 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12073 wxFontStyle arg2 ;
12074 void *argp1 = 0 ;
12075 int res1 = 0 ;
12076 int val2 ;
12077 int ecode2 = 0 ;
12078 PyObject * obj0 = 0 ;
12079 PyObject * obj1 = 0 ;
12080 char * kwnames[] = {
12081 (char *) "self",(char *) "style", NULL
12082 };
12083
12084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12086 if (!SWIG_IsOK(res1)) {
12087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12088 }
12089 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12090 ecode2 = SWIG_AsVal_int(obj1, &val2);
12091 if (!SWIG_IsOK(ecode2)) {
12092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12093 }
12094 arg2 = static_cast< wxFontStyle >(val2);
12095 {
12096 PyThreadState* __tstate = wxPyBeginAllowThreads();
12097 (arg1)->SetStyle(arg2);
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 resultobj = SWIG_Py_Void();
12102 return resultobj;
12103 fail:
12104 return NULL;
12105 }
12106
12107
12108 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12109 PyObject *resultobj = 0;
12110 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12111 wxFontWeight arg2 ;
12112 void *argp1 = 0 ;
12113 int res1 = 0 ;
12114 int val2 ;
12115 int ecode2 = 0 ;
12116 PyObject * obj0 = 0 ;
12117 PyObject * obj1 = 0 ;
12118 char * kwnames[] = {
12119 (char *) "self",(char *) "weight", NULL
12120 };
12121
12122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12124 if (!SWIG_IsOK(res1)) {
12125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12126 }
12127 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12128 ecode2 = SWIG_AsVal_int(obj1, &val2);
12129 if (!SWIG_IsOK(ecode2)) {
12130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12131 }
12132 arg2 = static_cast< wxFontWeight >(val2);
12133 {
12134 PyThreadState* __tstate = wxPyBeginAllowThreads();
12135 (arg1)->SetWeight(arg2);
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 resultobj = SWIG_Py_Void();
12140 return resultobj;
12141 fail:
12142 return NULL;
12143 }
12144
12145
12146 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12147 PyObject *resultobj = 0;
12148 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12149 bool arg2 ;
12150 void *argp1 = 0 ;
12151 int res1 = 0 ;
12152 bool val2 ;
12153 int ecode2 = 0 ;
12154 PyObject * obj0 = 0 ;
12155 PyObject * obj1 = 0 ;
12156 char * kwnames[] = {
12157 (char *) "self",(char *) "underlined", NULL
12158 };
12159
12160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12162 if (!SWIG_IsOK(res1)) {
12163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12164 }
12165 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12166 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12167 if (!SWIG_IsOK(ecode2)) {
12168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12169 }
12170 arg2 = static_cast< bool >(val2);
12171 {
12172 PyThreadState* __tstate = wxPyBeginAllowThreads();
12173 (arg1)->SetUnderlined(arg2);
12174 wxPyEndAllowThreads(__tstate);
12175 if (PyErr_Occurred()) SWIG_fail;
12176 }
12177 resultobj = SWIG_Py_Void();
12178 return resultobj;
12179 fail:
12180 return NULL;
12181 }
12182
12183
12184 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12185 PyObject *resultobj = 0;
12186 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12187 wxString arg2 ;
12188 bool result;
12189 void *argp1 = 0 ;
12190 int res1 = 0 ;
12191 PyObject * obj0 = 0 ;
12192 PyObject * obj1 = 0 ;
12193 char * kwnames[] = {
12194 (char *) "self",(char *) "facename", NULL
12195 };
12196
12197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12199 if (!SWIG_IsOK(res1)) {
12200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12201 }
12202 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12203 {
12204 wxString* sptr = wxString_in_helper(obj1);
12205 if (sptr == NULL) SWIG_fail;
12206 arg2 = *sptr;
12207 delete sptr;
12208 }
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 result = (bool)(arg1)->SetFaceName(arg2);
12212 wxPyEndAllowThreads(__tstate);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 }
12215 {
12216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12217 }
12218 return resultobj;
12219 fail:
12220 return NULL;
12221 }
12222
12223
12224 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12225 PyObject *resultobj = 0;
12226 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12227 wxFontFamily arg2 ;
12228 void *argp1 = 0 ;
12229 int res1 = 0 ;
12230 int val2 ;
12231 int ecode2 = 0 ;
12232 PyObject * obj0 = 0 ;
12233 PyObject * obj1 = 0 ;
12234 char * kwnames[] = {
12235 (char *) "self",(char *) "family", NULL
12236 };
12237
12238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12240 if (!SWIG_IsOK(res1)) {
12241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12242 }
12243 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12244 ecode2 = SWIG_AsVal_int(obj1, &val2);
12245 if (!SWIG_IsOK(ecode2)) {
12246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12247 }
12248 arg2 = static_cast< wxFontFamily >(val2);
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 (arg1)->SetFamily(arg2);
12252 wxPyEndAllowThreads(__tstate);
12253 if (PyErr_Occurred()) SWIG_fail;
12254 }
12255 resultobj = SWIG_Py_Void();
12256 return resultobj;
12257 fail:
12258 return NULL;
12259 }
12260
12261
12262 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12263 PyObject *resultobj = 0;
12264 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12265 wxFontEncoding arg2 ;
12266 void *argp1 = 0 ;
12267 int res1 = 0 ;
12268 int val2 ;
12269 int ecode2 = 0 ;
12270 PyObject * obj0 = 0 ;
12271 PyObject * obj1 = 0 ;
12272 char * kwnames[] = {
12273 (char *) "self",(char *) "encoding", NULL
12274 };
12275
12276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12278 if (!SWIG_IsOK(res1)) {
12279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12280 }
12281 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12282 ecode2 = SWIG_AsVal_int(obj1, &val2);
12283 if (!SWIG_IsOK(ecode2)) {
12284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12285 }
12286 arg2 = static_cast< wxFontEncoding >(val2);
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 (arg1)->SetEncoding(arg2);
12290 wxPyEndAllowThreads(__tstate);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 resultobj = SWIG_Py_Void();
12294 return resultobj;
12295 fail:
12296 return NULL;
12297 }
12298
12299
12300 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12301 PyObject *resultobj = 0;
12302 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12303 wxString *arg2 = 0 ;
12304 bool result;
12305 void *argp1 = 0 ;
12306 int res1 = 0 ;
12307 bool temp2 = false ;
12308 PyObject * obj0 = 0 ;
12309 PyObject * obj1 = 0 ;
12310 char * kwnames[] = {
12311 (char *) "self",(char *) "s", NULL
12312 };
12313
12314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12316 if (!SWIG_IsOK(res1)) {
12317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12318 }
12319 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12320 {
12321 arg2 = wxString_in_helper(obj1);
12322 if (arg2 == NULL) SWIG_fail;
12323 temp2 = true;
12324 }
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12328 wxPyEndAllowThreads(__tstate);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 }
12331 {
12332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12333 }
12334 {
12335 if (temp2)
12336 delete arg2;
12337 }
12338 return resultobj;
12339 fail:
12340 {
12341 if (temp2)
12342 delete arg2;
12343 }
12344 return NULL;
12345 }
12346
12347
12348 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12349 PyObject *resultobj = 0;
12350 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12351 wxString result;
12352 void *argp1 = 0 ;
12353 int res1 = 0 ;
12354 PyObject *swig_obj[1] ;
12355
12356 if (!args) SWIG_fail;
12357 swig_obj[0] = args;
12358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12359 if (!SWIG_IsOK(res1)) {
12360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12361 }
12362 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12363 {
12364 PyThreadState* __tstate = wxPyBeginAllowThreads();
12365 result = ((wxNativeFontInfo const *)arg1)->ToString();
12366 wxPyEndAllowThreads(__tstate);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 }
12369 {
12370 #if wxUSE_UNICODE
12371 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12372 #else
12373 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12374 #endif
12375 }
12376 return resultobj;
12377 fail:
12378 return NULL;
12379 }
12380
12381
12382 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12383 PyObject *resultobj = 0;
12384 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12385 wxString result;
12386 void *argp1 = 0 ;
12387 int res1 = 0 ;
12388 PyObject *swig_obj[1] ;
12389
12390 if (!args) SWIG_fail;
12391 swig_obj[0] = args;
12392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12393 if (!SWIG_IsOK(res1)) {
12394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12395 }
12396 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12397 {
12398 PyThreadState* __tstate = wxPyBeginAllowThreads();
12399 result = wxNativeFontInfo___str__(arg1);
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 {
12404 #if wxUSE_UNICODE
12405 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12406 #else
12407 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12408 #endif
12409 }
12410 return resultobj;
12411 fail:
12412 return NULL;
12413 }
12414
12415
12416 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj = 0;
12418 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12419 wxString *arg2 = 0 ;
12420 bool result;
12421 void *argp1 = 0 ;
12422 int res1 = 0 ;
12423 bool temp2 = false ;
12424 PyObject * obj0 = 0 ;
12425 PyObject * obj1 = 0 ;
12426 char * kwnames[] = {
12427 (char *) "self",(char *) "s", NULL
12428 };
12429
12430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12432 if (!SWIG_IsOK(res1)) {
12433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12434 }
12435 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12436 {
12437 arg2 = wxString_in_helper(obj1);
12438 if (arg2 == NULL) SWIG_fail;
12439 temp2 = true;
12440 }
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 {
12448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12449 }
12450 {
12451 if (temp2)
12452 delete arg2;
12453 }
12454 return resultobj;
12455 fail:
12456 {
12457 if (temp2)
12458 delete arg2;
12459 }
12460 return NULL;
12461 }
12462
12463
12464 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12465 PyObject *resultobj = 0;
12466 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12467 wxString result;
12468 void *argp1 = 0 ;
12469 int res1 = 0 ;
12470 PyObject *swig_obj[1] ;
12471
12472 if (!args) SWIG_fail;
12473 swig_obj[0] = args;
12474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12475 if (!SWIG_IsOK(res1)) {
12476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12477 }
12478 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 {
12486 #if wxUSE_UNICODE
12487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12488 #else
12489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12490 #endif
12491 }
12492 return resultobj;
12493 fail:
12494 return NULL;
12495 }
12496
12497
12498 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12499 PyObject *obj;
12500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12501 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12502 return SWIG_Py_Void();
12503 }
12504
12505 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12506 return SWIG_Python_InitShadowInstance(args);
12507 }
12508
12509 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12510 PyObject *resultobj = 0;
12511 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12512 wxString *arg2 = (wxString *) 0 ;
12513 void *argp1 = 0 ;
12514 int res1 = 0 ;
12515 bool temp2 = false ;
12516 PyObject *swig_obj[2] ;
12517
12518 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12522 }
12523 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12524 {
12525 arg2 = wxString_in_helper(swig_obj[1]);
12526 if (arg2 == NULL) SWIG_fail;
12527 temp2 = true;
12528 }
12529 if (arg1) (arg1)->facename = *arg2;
12530
12531 resultobj = SWIG_Py_Void();
12532 {
12533 if (temp2)
12534 delete arg2;
12535 }
12536 return resultobj;
12537 fail:
12538 {
12539 if (temp2)
12540 delete arg2;
12541 }
12542 return NULL;
12543 }
12544
12545
12546 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12547 PyObject *resultobj = 0;
12548 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12549 wxString *result = 0 ;
12550 void *argp1 = 0 ;
12551 int res1 = 0 ;
12552 PyObject *swig_obj[1] ;
12553
12554 if (!args) SWIG_fail;
12555 swig_obj[0] = args;
12556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12557 if (!SWIG_IsOK(res1)) {
12558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12559 }
12560 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12561 result = (wxString *)& ((arg1)->facename);
12562 {
12563 #if wxUSE_UNICODE
12564 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12565 #else
12566 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12567 #endif
12568 }
12569 return resultobj;
12570 fail:
12571 return NULL;
12572 }
12573
12574
12575 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12576 PyObject *resultobj = 0;
12577 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12578 wxFontEncoding arg2 ;
12579 void *argp1 = 0 ;
12580 int res1 = 0 ;
12581 int val2 ;
12582 int ecode2 = 0 ;
12583 PyObject *swig_obj[2] ;
12584
12585 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12587 if (!SWIG_IsOK(res1)) {
12588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12589 }
12590 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12591 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12592 if (!SWIG_IsOK(ecode2)) {
12593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12594 }
12595 arg2 = static_cast< wxFontEncoding >(val2);
12596 if (arg1) (arg1)->encoding = arg2;
12597
12598 resultobj = SWIG_Py_Void();
12599 return resultobj;
12600 fail:
12601 return NULL;
12602 }
12603
12604
12605 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12606 PyObject *resultobj = 0;
12607 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12608 wxFontEncoding result;
12609 void *argp1 = 0 ;
12610 int res1 = 0 ;
12611 PyObject *swig_obj[1] ;
12612
12613 if (!args) SWIG_fail;
12614 swig_obj[0] = args;
12615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12616 if (!SWIG_IsOK(res1)) {
12617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12618 }
12619 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12620 result = (wxFontEncoding) ((arg1)->encoding);
12621 resultobj = SWIG_From_int(static_cast< int >(result));
12622 return resultobj;
12623 fail:
12624 return NULL;
12625 }
12626
12627
12628 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12629 PyObject *resultobj = 0;
12630 wxNativeEncodingInfo *result = 0 ;
12631
12632 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12636 wxPyEndAllowThreads(__tstate);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 }
12639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12640 return resultobj;
12641 fail:
12642 return NULL;
12643 }
12644
12645
12646 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12647 PyObject *resultobj = 0;
12648 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12649 void *argp1 = 0 ;
12650 int res1 = 0 ;
12651 PyObject *swig_obj[1] ;
12652
12653 if (!args) SWIG_fail;
12654 swig_obj[0] = args;
12655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12656 if (!SWIG_IsOK(res1)) {
12657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12658 }
12659 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12660 {
12661 PyThreadState* __tstate = wxPyBeginAllowThreads();
12662 delete arg1;
12663
12664 wxPyEndAllowThreads(__tstate);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 }
12667 resultobj = SWIG_Py_Void();
12668 return resultobj;
12669 fail:
12670 return NULL;
12671 }
12672
12673
12674 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12675 PyObject *resultobj = 0;
12676 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12677 wxString *arg2 = 0 ;
12678 bool result;
12679 void *argp1 = 0 ;
12680 int res1 = 0 ;
12681 bool temp2 = false ;
12682 PyObject * obj0 = 0 ;
12683 PyObject * obj1 = 0 ;
12684 char * kwnames[] = {
12685 (char *) "self",(char *) "s", NULL
12686 };
12687
12688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12690 if (!SWIG_IsOK(res1)) {
12691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12692 }
12693 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12694 {
12695 arg2 = wxString_in_helper(obj1);
12696 if (arg2 == NULL) SWIG_fail;
12697 temp2 = true;
12698 }
12699 {
12700 PyThreadState* __tstate = wxPyBeginAllowThreads();
12701 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12702 wxPyEndAllowThreads(__tstate);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 {
12706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12707 }
12708 {
12709 if (temp2)
12710 delete arg2;
12711 }
12712 return resultobj;
12713 fail:
12714 {
12715 if (temp2)
12716 delete arg2;
12717 }
12718 return NULL;
12719 }
12720
12721
12722 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12723 PyObject *resultobj = 0;
12724 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12725 wxString result;
12726 void *argp1 = 0 ;
12727 int res1 = 0 ;
12728 PyObject *swig_obj[1] ;
12729
12730 if (!args) SWIG_fail;
12731 swig_obj[0] = args;
12732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12733 if (!SWIG_IsOK(res1)) {
12734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12735 }
12736 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12737 {
12738 PyThreadState* __tstate = wxPyBeginAllowThreads();
12739 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12740 wxPyEndAllowThreads(__tstate);
12741 if (PyErr_Occurred()) SWIG_fail;
12742 }
12743 {
12744 #if wxUSE_UNICODE
12745 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12746 #else
12747 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12748 #endif
12749 }
12750 return resultobj;
12751 fail:
12752 return NULL;
12753 }
12754
12755
12756 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12757 PyObject *obj;
12758 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12759 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12760 return SWIG_Py_Void();
12761 }
12762
12763 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12764 return SWIG_Python_InitShadowInstance(args);
12765 }
12766
12767 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12768 PyObject *resultobj = 0;
12769 wxFontEncoding arg1 ;
12770 wxNativeEncodingInfo *result = 0 ;
12771 int val1 ;
12772 int ecode1 = 0 ;
12773 PyObject * obj0 = 0 ;
12774 char * kwnames[] = {
12775 (char *) "encoding", NULL
12776 };
12777
12778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12779 ecode1 = SWIG_AsVal_int(obj0, &val1);
12780 if (!SWIG_IsOK(ecode1)) {
12781 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12782 }
12783 arg1 = static_cast< wxFontEncoding >(val1);
12784 {
12785 PyThreadState* __tstate = wxPyBeginAllowThreads();
12786 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12787 wxPyEndAllowThreads(__tstate);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 }
12790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12791 return resultobj;
12792 fail:
12793 return NULL;
12794 }
12795
12796
12797 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12798 PyObject *resultobj = 0;
12799 wxNativeEncodingInfo *arg1 = 0 ;
12800 bool result;
12801 void *argp1 = 0 ;
12802 int res1 = 0 ;
12803 PyObject * obj0 = 0 ;
12804 char * kwnames[] = {
12805 (char *) "info", NULL
12806 };
12807
12808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12809 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12810 if (!SWIG_IsOK(res1)) {
12811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12812 }
12813 if (!argp1) {
12814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12815 }
12816 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12817 {
12818 PyThreadState* __tstate = wxPyBeginAllowThreads();
12819 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12820 wxPyEndAllowThreads(__tstate);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 }
12823 {
12824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12825 }
12826 return resultobj;
12827 fail:
12828 return NULL;
12829 }
12830
12831
12832 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12833 PyObject *resultobj = 0;
12834 wxFontMapper *result = 0 ;
12835
12836 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = (wxFontMapper *)new wxFontMapper();
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12844 return resultobj;
12845 fail:
12846 return NULL;
12847 }
12848
12849
12850 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12851 PyObject *resultobj = 0;
12852 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12853 void *argp1 = 0 ;
12854 int res1 = 0 ;
12855 PyObject *swig_obj[1] ;
12856
12857 if (!args) SWIG_fail;
12858 swig_obj[0] = args;
12859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12860 if (!SWIG_IsOK(res1)) {
12861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12862 }
12863 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12864 {
12865 PyThreadState* __tstate = wxPyBeginAllowThreads();
12866 delete arg1;
12867
12868 wxPyEndAllowThreads(__tstate);
12869 if (PyErr_Occurred()) SWIG_fail;
12870 }
12871 resultobj = SWIG_Py_Void();
12872 return resultobj;
12873 fail:
12874 return NULL;
12875 }
12876
12877
12878 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12879 PyObject *resultobj = 0;
12880 wxFontMapper *result = 0 ;
12881
12882 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 result = (wxFontMapper *)wxFontMapper::Get();
12886 wxPyEndAllowThreads(__tstate);
12887 if (PyErr_Occurred()) SWIG_fail;
12888 }
12889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12890 return resultobj;
12891 fail:
12892 return NULL;
12893 }
12894
12895
12896 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj = 0;
12898 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12899 wxFontMapper *result = 0 ;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 PyObject * obj0 = 0 ;
12903 char * kwnames[] = {
12904 (char *) "mapper", NULL
12905 };
12906
12907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12909 if (!SWIG_IsOK(res1)) {
12910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12911 }
12912 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12913 {
12914 PyThreadState* __tstate = wxPyBeginAllowThreads();
12915 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12916 wxPyEndAllowThreads(__tstate);
12917 if (PyErr_Occurred()) SWIG_fail;
12918 }
12919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12920 return resultobj;
12921 fail:
12922 return NULL;
12923 }
12924
12925
12926 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12927 PyObject *resultobj = 0;
12928 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12929 wxString *arg2 = 0 ;
12930 bool arg3 = (bool) true ;
12931 wxFontEncoding result;
12932 void *argp1 = 0 ;
12933 int res1 = 0 ;
12934 bool temp2 = false ;
12935 bool val3 ;
12936 int ecode3 = 0 ;
12937 PyObject * obj0 = 0 ;
12938 PyObject * obj1 = 0 ;
12939 PyObject * obj2 = 0 ;
12940 char * kwnames[] = {
12941 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12942 };
12943
12944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12946 if (!SWIG_IsOK(res1)) {
12947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12948 }
12949 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12950 {
12951 arg2 = wxString_in_helper(obj1);
12952 if (arg2 == NULL) SWIG_fail;
12953 temp2 = true;
12954 }
12955 if (obj2) {
12956 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12957 if (!SWIG_IsOK(ecode3)) {
12958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12959 }
12960 arg3 = static_cast< bool >(val3);
12961 }
12962 {
12963 PyThreadState* __tstate = wxPyBeginAllowThreads();
12964 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12965 wxPyEndAllowThreads(__tstate);
12966 if (PyErr_Occurred()) SWIG_fail;
12967 }
12968 resultobj = SWIG_From_int(static_cast< int >(result));
12969 {
12970 if (temp2)
12971 delete arg2;
12972 }
12973 return resultobj;
12974 fail:
12975 {
12976 if (temp2)
12977 delete arg2;
12978 }
12979 return NULL;
12980 }
12981
12982
12983 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12984 PyObject *resultobj = 0;
12985 size_t result;
12986
12987 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12988 {
12989 PyThreadState* __tstate = wxPyBeginAllowThreads();
12990 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12995 return resultobj;
12996 fail:
12997 return NULL;
12998 }
12999
13000
13001 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13002 PyObject *resultobj = 0;
13003 size_t arg1 ;
13004 wxFontEncoding result;
13005 size_t val1 ;
13006 int ecode1 = 0 ;
13007 PyObject * obj0 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "n", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13013 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13014 if (!SWIG_IsOK(ecode1)) {
13015 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13016 }
13017 arg1 = static_cast< size_t >(val1);
13018 {
13019 PyThreadState* __tstate = wxPyBeginAllowThreads();
13020 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13021 wxPyEndAllowThreads(__tstate);
13022 if (PyErr_Occurred()) SWIG_fail;
13023 }
13024 resultobj = SWIG_From_int(static_cast< int >(result));
13025 return resultobj;
13026 fail:
13027 return NULL;
13028 }
13029
13030
13031 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13032 PyObject *resultobj = 0;
13033 wxFontEncoding arg1 ;
13034 wxString result;
13035 int val1 ;
13036 int ecode1 = 0 ;
13037 PyObject * obj0 = 0 ;
13038 char * kwnames[] = {
13039 (char *) "encoding", NULL
13040 };
13041
13042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13043 ecode1 = SWIG_AsVal_int(obj0, &val1);
13044 if (!SWIG_IsOK(ecode1)) {
13045 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13046 }
13047 arg1 = static_cast< wxFontEncoding >(val1);
13048 {
13049 PyThreadState* __tstate = wxPyBeginAllowThreads();
13050 result = wxFontMapper::GetEncodingName(arg1);
13051 wxPyEndAllowThreads(__tstate);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 }
13054 {
13055 #if wxUSE_UNICODE
13056 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13057 #else
13058 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13059 #endif
13060 }
13061 return resultobj;
13062 fail:
13063 return NULL;
13064 }
13065
13066
13067 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj = 0;
13069 wxFontEncoding arg1 ;
13070 wxString result;
13071 int val1 ;
13072 int ecode1 = 0 ;
13073 PyObject * obj0 = 0 ;
13074 char * kwnames[] = {
13075 (char *) "encoding", NULL
13076 };
13077
13078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13079 ecode1 = SWIG_AsVal_int(obj0, &val1);
13080 if (!SWIG_IsOK(ecode1)) {
13081 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13082 }
13083 arg1 = static_cast< wxFontEncoding >(val1);
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 result = wxFontMapper::GetEncodingDescription(arg1);
13087 wxPyEndAllowThreads(__tstate);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 }
13090 {
13091 #if wxUSE_UNICODE
13092 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13093 #else
13094 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13095 #endif
13096 }
13097 return resultobj;
13098 fail:
13099 return NULL;
13100 }
13101
13102
13103 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13104 PyObject *resultobj = 0;
13105 wxString *arg1 = 0 ;
13106 wxFontEncoding result;
13107 bool temp1 = false ;
13108 PyObject * obj0 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "name", NULL
13111 };
13112
13113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13114 {
13115 arg1 = wxString_in_helper(obj0);
13116 if (arg1 == NULL) SWIG_fail;
13117 temp1 = true;
13118 }
13119 {
13120 PyThreadState* __tstate = wxPyBeginAllowThreads();
13121 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13122 wxPyEndAllowThreads(__tstate);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 resultobj = SWIG_From_int(static_cast< int >(result));
13126 {
13127 if (temp1)
13128 delete arg1;
13129 }
13130 return resultobj;
13131 fail:
13132 {
13133 if (temp1)
13134 delete arg1;
13135 }
13136 return NULL;
13137 }
13138
13139
13140 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13141 PyObject *resultobj = 0;
13142 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13143 wxString *arg2 = 0 ;
13144 void *argp1 = 0 ;
13145 int res1 = 0 ;
13146 bool temp2 = false ;
13147 PyObject * obj0 = 0 ;
13148 PyObject * obj1 = 0 ;
13149 char * kwnames[] = {
13150 (char *) "self",(char *) "prefix", NULL
13151 };
13152
13153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13155 if (!SWIG_IsOK(res1)) {
13156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13157 }
13158 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13159 {
13160 arg2 = wxString_in_helper(obj1);
13161 if (arg2 == NULL) SWIG_fail;
13162 temp2 = true;
13163 }
13164 {
13165 PyThreadState* __tstate = wxPyBeginAllowThreads();
13166 (arg1)->SetConfigPath((wxString const &)*arg2);
13167 wxPyEndAllowThreads(__tstate);
13168 if (PyErr_Occurred()) SWIG_fail;
13169 }
13170 resultobj = SWIG_Py_Void();
13171 {
13172 if (temp2)
13173 delete arg2;
13174 }
13175 return resultobj;
13176 fail:
13177 {
13178 if (temp2)
13179 delete arg2;
13180 }
13181 return NULL;
13182 }
13183
13184
13185 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13186 PyObject *resultobj = 0;
13187 wxString result;
13188
13189 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13190 {
13191 PyThreadState* __tstate = wxPyBeginAllowThreads();
13192 result = wxFontMapper::GetDefaultConfigPath();
13193 wxPyEndAllowThreads(__tstate);
13194 if (PyErr_Occurred()) SWIG_fail;
13195 }
13196 {
13197 #if wxUSE_UNICODE
13198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13199 #else
13200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13201 #endif
13202 }
13203 return resultobj;
13204 fail:
13205 return NULL;
13206 }
13207
13208
13209 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13210 PyObject *resultobj = 0;
13211 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13212 wxFontEncoding arg2 ;
13213 wxString const &arg3_defvalue = wxPyEmptyString ;
13214 wxString *arg3 = (wxString *) &arg3_defvalue ;
13215 bool arg4 = (bool) true ;
13216 PyObject *result = 0 ;
13217 void *argp1 = 0 ;
13218 int res1 = 0 ;
13219 int val2 ;
13220 int ecode2 = 0 ;
13221 bool temp3 = false ;
13222 bool val4 ;
13223 int ecode4 = 0 ;
13224 PyObject * obj0 = 0 ;
13225 PyObject * obj1 = 0 ;
13226 PyObject * obj2 = 0 ;
13227 PyObject * obj3 = 0 ;
13228 char * kwnames[] = {
13229 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13230 };
13231
13232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13234 if (!SWIG_IsOK(res1)) {
13235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13236 }
13237 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13238 ecode2 = SWIG_AsVal_int(obj1, &val2);
13239 if (!SWIG_IsOK(ecode2)) {
13240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13241 }
13242 arg2 = static_cast< wxFontEncoding >(val2);
13243 if (obj2) {
13244 {
13245 arg3 = wxString_in_helper(obj2);
13246 if (arg3 == NULL) SWIG_fail;
13247 temp3 = true;
13248 }
13249 }
13250 if (obj3) {
13251 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13252 if (!SWIG_IsOK(ecode4)) {
13253 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13254 }
13255 arg4 = static_cast< bool >(val4);
13256 }
13257 {
13258 PyThreadState* __tstate = wxPyBeginAllowThreads();
13259 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 resultobj = result;
13264 {
13265 if (temp3)
13266 delete arg3;
13267 }
13268 return resultobj;
13269 fail:
13270 {
13271 if (temp3)
13272 delete arg3;
13273 }
13274 return NULL;
13275 }
13276
13277
13278 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13279 PyObject *resultobj = 0;
13280 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13281 wxFontEncoding arg2 ;
13282 wxString const &arg3_defvalue = wxPyEmptyString ;
13283 wxString *arg3 = (wxString *) &arg3_defvalue ;
13284 bool result;
13285 void *argp1 = 0 ;
13286 int res1 = 0 ;
13287 int val2 ;
13288 int ecode2 = 0 ;
13289 bool temp3 = false ;
13290 PyObject * obj0 = 0 ;
13291 PyObject * obj1 = 0 ;
13292 PyObject * obj2 = 0 ;
13293 char * kwnames[] = {
13294 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13295 };
13296
13297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13299 if (!SWIG_IsOK(res1)) {
13300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13301 }
13302 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13303 ecode2 = SWIG_AsVal_int(obj1, &val2);
13304 if (!SWIG_IsOK(ecode2)) {
13305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13306 }
13307 arg2 = static_cast< wxFontEncoding >(val2);
13308 if (obj2) {
13309 {
13310 arg3 = wxString_in_helper(obj2);
13311 if (arg3 == NULL) SWIG_fail;
13312 temp3 = true;
13313 }
13314 }
13315 {
13316 PyThreadState* __tstate = wxPyBeginAllowThreads();
13317 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 {
13322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13323 }
13324 {
13325 if (temp3)
13326 delete arg3;
13327 }
13328 return resultobj;
13329 fail:
13330 {
13331 if (temp3)
13332 delete arg3;
13333 }
13334 return NULL;
13335 }
13336
13337
13338 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13339 PyObject *resultobj = 0;
13340 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13341 wxWindow *arg2 = (wxWindow *) 0 ;
13342 void *argp1 = 0 ;
13343 int res1 = 0 ;
13344 void *argp2 = 0 ;
13345 int res2 = 0 ;
13346 PyObject * obj0 = 0 ;
13347 PyObject * obj1 = 0 ;
13348 char * kwnames[] = {
13349 (char *) "self",(char *) "parent", NULL
13350 };
13351
13352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13354 if (!SWIG_IsOK(res1)) {
13355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13356 }
13357 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13358 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13359 if (!SWIG_IsOK(res2)) {
13360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13361 }
13362 arg2 = reinterpret_cast< wxWindow * >(argp2);
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 (arg1)->SetDialogParent(arg2);
13366 wxPyEndAllowThreads(__tstate);
13367 if (PyErr_Occurred()) SWIG_fail;
13368 }
13369 resultobj = SWIG_Py_Void();
13370 return resultobj;
13371 fail:
13372 return NULL;
13373 }
13374
13375
13376 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13377 PyObject *resultobj = 0;
13378 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13379 wxString *arg2 = 0 ;
13380 void *argp1 = 0 ;
13381 int res1 = 0 ;
13382 bool temp2 = false ;
13383 PyObject * obj0 = 0 ;
13384 PyObject * obj1 = 0 ;
13385 char * kwnames[] = {
13386 (char *) "self",(char *) "title", NULL
13387 };
13388
13389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13391 if (!SWIG_IsOK(res1)) {
13392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13393 }
13394 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13395 {
13396 arg2 = wxString_in_helper(obj1);
13397 if (arg2 == NULL) SWIG_fail;
13398 temp2 = true;
13399 }
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
13402 (arg1)->SetDialogTitle((wxString const &)*arg2);
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 resultobj = SWIG_Py_Void();
13407 {
13408 if (temp2)
13409 delete arg2;
13410 }
13411 return resultobj;
13412 fail:
13413 {
13414 if (temp2)
13415 delete arg2;
13416 }
13417 return NULL;
13418 }
13419
13420
13421 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13422 PyObject *obj;
13423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13424 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13425 return SWIG_Py_Void();
13426 }
13427
13428 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13429 return SWIG_Python_InitShadowInstance(args);
13430 }
13431
13432 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13433 PyObject *resultobj = 0;
13434 int arg1 ;
13435 int arg2 ;
13436 int arg3 ;
13437 int arg4 ;
13438 bool arg5 = (bool) false ;
13439 wxString const &arg6_defvalue = wxPyEmptyString ;
13440 wxString *arg6 = (wxString *) &arg6_defvalue ;
13441 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13442 wxFont *result = 0 ;
13443 int val1 ;
13444 int ecode1 = 0 ;
13445 int val2 ;
13446 int ecode2 = 0 ;
13447 int val3 ;
13448 int ecode3 = 0 ;
13449 int val4 ;
13450 int ecode4 = 0 ;
13451 bool val5 ;
13452 int ecode5 = 0 ;
13453 bool temp6 = false ;
13454 int val7 ;
13455 int ecode7 = 0 ;
13456 PyObject * obj0 = 0 ;
13457 PyObject * obj1 = 0 ;
13458 PyObject * obj2 = 0 ;
13459 PyObject * obj3 = 0 ;
13460 PyObject * obj4 = 0 ;
13461 PyObject * obj5 = 0 ;
13462 PyObject * obj6 = 0 ;
13463 char * kwnames[] = {
13464 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13465 };
13466
13467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13468 ecode1 = SWIG_AsVal_int(obj0, &val1);
13469 if (!SWIG_IsOK(ecode1)) {
13470 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13471 }
13472 arg1 = static_cast< int >(val1);
13473 ecode2 = SWIG_AsVal_int(obj1, &val2);
13474 if (!SWIG_IsOK(ecode2)) {
13475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13476 }
13477 arg2 = static_cast< int >(val2);
13478 ecode3 = SWIG_AsVal_int(obj2, &val3);
13479 if (!SWIG_IsOK(ecode3)) {
13480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13481 }
13482 arg3 = static_cast< int >(val3);
13483 ecode4 = SWIG_AsVal_int(obj3, &val4);
13484 if (!SWIG_IsOK(ecode4)) {
13485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13486 }
13487 arg4 = static_cast< int >(val4);
13488 if (obj4) {
13489 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13490 if (!SWIG_IsOK(ecode5)) {
13491 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13492 }
13493 arg5 = static_cast< bool >(val5);
13494 }
13495 if (obj5) {
13496 {
13497 arg6 = wxString_in_helper(obj5);
13498 if (arg6 == NULL) SWIG_fail;
13499 temp6 = true;
13500 }
13501 }
13502 if (obj6) {
13503 ecode7 = SWIG_AsVal_int(obj6, &val7);
13504 if (!SWIG_IsOK(ecode7)) {
13505 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13506 }
13507 arg7 = static_cast< wxFontEncoding >(val7);
13508 }
13509 {
13510 if (!wxPyCheckForApp()) SWIG_fail;
13511 PyThreadState* __tstate = wxPyBeginAllowThreads();
13512 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13513 wxPyEndAllowThreads(__tstate);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13517 {
13518 if (temp6)
13519 delete arg6;
13520 }
13521 return resultobj;
13522 fail:
13523 {
13524 if (temp6)
13525 delete arg6;
13526 }
13527 return NULL;
13528 }
13529
13530
13531 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13532 PyObject *resultobj = 0;
13533 wxFont *arg1 = (wxFont *) 0 ;
13534 void *argp1 = 0 ;
13535 int res1 = 0 ;
13536 PyObject *swig_obj[1] ;
13537
13538 if (!args) SWIG_fail;
13539 swig_obj[0] = args;
13540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13541 if (!SWIG_IsOK(res1)) {
13542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13543 }
13544 arg1 = reinterpret_cast< wxFont * >(argp1);
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 delete arg1;
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = SWIG_Py_Void();
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13560 PyObject *resultobj = 0;
13561 wxNativeFontInfo *arg1 = 0 ;
13562 wxFont *result = 0 ;
13563 void *argp1 = 0 ;
13564 int res1 = 0 ;
13565 PyObject * obj0 = 0 ;
13566 char * kwnames[] = {
13567 (char *) "info", NULL
13568 };
13569
13570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13571 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13572 if (!SWIG_IsOK(res1)) {
13573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13574 }
13575 if (!argp1) {
13576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13577 }
13578 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13579 {
13580 if (!wxPyCheckForApp()) SWIG_fail;
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj = 0;
13595 wxString *arg1 = 0 ;
13596 wxFont *result = 0 ;
13597 bool temp1 = false ;
13598 PyObject * obj0 = 0 ;
13599 char * kwnames[] = {
13600 (char *) "info", NULL
13601 };
13602
13603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13604 {
13605 arg1 = wxString_in_helper(obj0);
13606 if (arg1 == NULL) SWIG_fail;
13607 temp1 = true;
13608 }
13609 {
13610 if (!wxPyCheckForApp()) SWIG_fail;
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13617 {
13618 if (temp1)
13619 delete arg1;
13620 }
13621 return resultobj;
13622 fail:
13623 {
13624 if (temp1)
13625 delete arg1;
13626 }
13627 return NULL;
13628 }
13629
13630
13631 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13632 PyObject *resultobj = 0;
13633 int arg1 ;
13634 wxFontFamily arg2 ;
13635 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13636 wxString const &arg4_defvalue = wxPyEmptyString ;
13637 wxString *arg4 = (wxString *) &arg4_defvalue ;
13638 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13639 wxFont *result = 0 ;
13640 int val1 ;
13641 int ecode1 = 0 ;
13642 int val2 ;
13643 int ecode2 = 0 ;
13644 int val3 ;
13645 int ecode3 = 0 ;
13646 bool temp4 = false ;
13647 int val5 ;
13648 int ecode5 = 0 ;
13649 PyObject * obj0 = 0 ;
13650 PyObject * obj1 = 0 ;
13651 PyObject * obj2 = 0 ;
13652 PyObject * obj3 = 0 ;
13653 PyObject * obj4 = 0 ;
13654 char * kwnames[] = {
13655 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13656 };
13657
13658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13659 ecode1 = SWIG_AsVal_int(obj0, &val1);
13660 if (!SWIG_IsOK(ecode1)) {
13661 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13662 }
13663 arg1 = static_cast< int >(val1);
13664 ecode2 = SWIG_AsVal_int(obj1, &val2);
13665 if (!SWIG_IsOK(ecode2)) {
13666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13667 }
13668 arg2 = static_cast< wxFontFamily >(val2);
13669 if (obj2) {
13670 ecode3 = SWIG_AsVal_int(obj2, &val3);
13671 if (!SWIG_IsOK(ecode3)) {
13672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13673 }
13674 arg3 = static_cast< int >(val3);
13675 }
13676 if (obj3) {
13677 {
13678 arg4 = wxString_in_helper(obj3);
13679 if (arg4 == NULL) SWIG_fail;
13680 temp4 = true;
13681 }
13682 }
13683 if (obj4) {
13684 ecode5 = SWIG_AsVal_int(obj4, &val5);
13685 if (!SWIG_IsOK(ecode5)) {
13686 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13687 }
13688 arg5 = static_cast< wxFontEncoding >(val5);
13689 }
13690 {
13691 if (!wxPyCheckForApp()) SWIG_fail;
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13698 {
13699 if (temp4)
13700 delete arg4;
13701 }
13702 return resultobj;
13703 fail:
13704 {
13705 if (temp4)
13706 delete arg4;
13707 }
13708 return NULL;
13709 }
13710
13711
13712 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj = 0;
13714 wxSize *arg1 = 0 ;
13715 int arg2 ;
13716 int arg3 ;
13717 int arg4 ;
13718 bool arg5 = (bool) false ;
13719 wxString const &arg6_defvalue = wxEmptyString ;
13720 wxString *arg6 = (wxString *) &arg6_defvalue ;
13721 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13722 wxFont *result = 0 ;
13723 wxSize temp1 ;
13724 int val2 ;
13725 int ecode2 = 0 ;
13726 int val3 ;
13727 int ecode3 = 0 ;
13728 int val4 ;
13729 int ecode4 = 0 ;
13730 bool val5 ;
13731 int ecode5 = 0 ;
13732 bool temp6 = false ;
13733 int val7 ;
13734 int ecode7 = 0 ;
13735 PyObject * obj0 = 0 ;
13736 PyObject * obj1 = 0 ;
13737 PyObject * obj2 = 0 ;
13738 PyObject * obj3 = 0 ;
13739 PyObject * obj4 = 0 ;
13740 PyObject * obj5 = 0 ;
13741 PyObject * obj6 = 0 ;
13742 char * kwnames[] = {
13743 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13744 };
13745
13746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13747 {
13748 arg1 = &temp1;
13749 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13750 }
13751 ecode2 = SWIG_AsVal_int(obj1, &val2);
13752 if (!SWIG_IsOK(ecode2)) {
13753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13754 }
13755 arg2 = static_cast< int >(val2);
13756 ecode3 = SWIG_AsVal_int(obj2, &val3);
13757 if (!SWIG_IsOK(ecode3)) {
13758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13759 }
13760 arg3 = static_cast< int >(val3);
13761 ecode4 = SWIG_AsVal_int(obj3, &val4);
13762 if (!SWIG_IsOK(ecode4)) {
13763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13764 }
13765 arg4 = static_cast< int >(val4);
13766 if (obj4) {
13767 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13768 if (!SWIG_IsOK(ecode5)) {
13769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13770 }
13771 arg5 = static_cast< bool >(val5);
13772 }
13773 if (obj5) {
13774 {
13775 arg6 = wxString_in_helper(obj5);
13776 if (arg6 == NULL) SWIG_fail;
13777 temp6 = true;
13778 }
13779 }
13780 if (obj6) {
13781 ecode7 = SWIG_AsVal_int(obj6, &val7);
13782 if (!SWIG_IsOK(ecode7)) {
13783 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13784 }
13785 arg7 = static_cast< wxFontEncoding >(val7);
13786 }
13787 {
13788 if (!wxPyCheckForApp()) SWIG_fail;
13789 PyThreadState* __tstate = wxPyBeginAllowThreads();
13790 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13791 wxPyEndAllowThreads(__tstate);
13792 if (PyErr_Occurred()) SWIG_fail;
13793 }
13794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13795 {
13796 if (temp6)
13797 delete arg6;
13798 }
13799 return resultobj;
13800 fail:
13801 {
13802 if (temp6)
13803 delete arg6;
13804 }
13805 return NULL;
13806 }
13807
13808
13809 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13810 PyObject *resultobj = 0;
13811 wxSize *arg1 = 0 ;
13812 wxFontFamily arg2 ;
13813 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13814 wxString const &arg4_defvalue = wxEmptyString ;
13815 wxString *arg4 = (wxString *) &arg4_defvalue ;
13816 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13817 wxFont *result = 0 ;
13818 wxSize temp1 ;
13819 int val2 ;
13820 int ecode2 = 0 ;
13821 int val3 ;
13822 int ecode3 = 0 ;
13823 bool temp4 = false ;
13824 int val5 ;
13825 int ecode5 = 0 ;
13826 PyObject * obj0 = 0 ;
13827 PyObject * obj1 = 0 ;
13828 PyObject * obj2 = 0 ;
13829 PyObject * obj3 = 0 ;
13830 PyObject * obj4 = 0 ;
13831 char * kwnames[] = {
13832 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13833 };
13834
13835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13836 {
13837 arg1 = &temp1;
13838 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13839 }
13840 ecode2 = SWIG_AsVal_int(obj1, &val2);
13841 if (!SWIG_IsOK(ecode2)) {
13842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13843 }
13844 arg2 = static_cast< wxFontFamily >(val2);
13845 if (obj2) {
13846 ecode3 = SWIG_AsVal_int(obj2, &val3);
13847 if (!SWIG_IsOK(ecode3)) {
13848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13849 }
13850 arg3 = static_cast< int >(val3);
13851 }
13852 if (obj3) {
13853 {
13854 arg4 = wxString_in_helper(obj3);
13855 if (arg4 == NULL) SWIG_fail;
13856 temp4 = true;
13857 }
13858 }
13859 if (obj4) {
13860 ecode5 = SWIG_AsVal_int(obj4, &val5);
13861 if (!SWIG_IsOK(ecode5)) {
13862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13863 }
13864 arg5 = static_cast< wxFontEncoding >(val5);
13865 }
13866 {
13867 if (!wxPyCheckForApp()) SWIG_fail;
13868 PyThreadState* __tstate = wxPyBeginAllowThreads();
13869 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13874 {
13875 if (temp4)
13876 delete arg4;
13877 }
13878 return resultobj;
13879 fail:
13880 {
13881 if (temp4)
13882 delete arg4;
13883 }
13884 return NULL;
13885 }
13886
13887
13888 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13889 PyObject *resultobj = 0;
13890 wxFont *arg1 = (wxFont *) 0 ;
13891 bool result;
13892 void *argp1 = 0 ;
13893 int res1 = 0 ;
13894 PyObject *swig_obj[1] ;
13895
13896 if (!args) SWIG_fail;
13897 swig_obj[0] = args;
13898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13899 if (!SWIG_IsOK(res1)) {
13900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
13901 }
13902 arg1 = reinterpret_cast< wxFont * >(argp1);
13903 {
13904 PyThreadState* __tstate = wxPyBeginAllowThreads();
13905 result = (bool)((wxFont const *)arg1)->IsOk();
13906 wxPyEndAllowThreads(__tstate);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 }
13909 {
13910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13911 }
13912 return resultobj;
13913 fail:
13914 return NULL;
13915 }
13916
13917
13918 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13919 PyObject *resultobj = 0;
13920 wxFont *arg1 = (wxFont *) 0 ;
13921 wxFont *arg2 = (wxFont *) 0 ;
13922 bool result;
13923 void *argp1 = 0 ;
13924 int res1 = 0 ;
13925 void *argp2 = 0 ;
13926 int res2 = 0 ;
13927 PyObject * obj0 = 0 ;
13928 PyObject * obj1 = 0 ;
13929 char * kwnames[] = {
13930 (char *) "self",(char *) "other", NULL
13931 };
13932
13933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13935 if (!SWIG_IsOK(res1)) {
13936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13937 }
13938 arg1 = reinterpret_cast< wxFont * >(argp1);
13939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13940 if (!SWIG_IsOK(res2)) {
13941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13942 }
13943 arg2 = reinterpret_cast< wxFont * >(argp2);
13944 {
13945 PyThreadState* __tstate = wxPyBeginAllowThreads();
13946 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13947 wxPyEndAllowThreads(__tstate);
13948 if (PyErr_Occurred()) SWIG_fail;
13949 }
13950 {
13951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13952 }
13953 return resultobj;
13954 fail:
13955 return NULL;
13956 }
13957
13958
13959 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13960 PyObject *resultobj = 0;
13961 wxFont *arg1 = (wxFont *) 0 ;
13962 wxFont *arg2 = (wxFont *) 0 ;
13963 bool result;
13964 void *argp1 = 0 ;
13965 int res1 = 0 ;
13966 void *argp2 = 0 ;
13967 int res2 = 0 ;
13968 PyObject * obj0 = 0 ;
13969 PyObject * obj1 = 0 ;
13970 char * kwnames[] = {
13971 (char *) "self",(char *) "other", NULL
13972 };
13973
13974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13976 if (!SWIG_IsOK(res1)) {
13977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13978 }
13979 arg1 = reinterpret_cast< wxFont * >(argp1);
13980 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13981 if (!SWIG_IsOK(res2)) {
13982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13983 }
13984 arg2 = reinterpret_cast< wxFont * >(argp2);
13985 {
13986 PyThreadState* __tstate = wxPyBeginAllowThreads();
13987 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 {
13992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13993 }
13994 return resultobj;
13995 fail:
13996 return NULL;
13997 }
13998
13999
14000 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14001 PyObject *resultobj = 0;
14002 wxFont *arg1 = (wxFont *) 0 ;
14003 int result;
14004 void *argp1 = 0 ;
14005 int res1 = 0 ;
14006 PyObject *swig_obj[1] ;
14007
14008 if (!args) SWIG_fail;
14009 swig_obj[0] = args;
14010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14011 if (!SWIG_IsOK(res1)) {
14012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14013 }
14014 arg1 = reinterpret_cast< wxFont * >(argp1);
14015 {
14016 PyThreadState* __tstate = wxPyBeginAllowThreads();
14017 result = (int)((wxFont const *)arg1)->GetPointSize();
14018 wxPyEndAllowThreads(__tstate);
14019 if (PyErr_Occurred()) SWIG_fail;
14020 }
14021 resultobj = SWIG_From_int(static_cast< int >(result));
14022 return resultobj;
14023 fail:
14024 return NULL;
14025 }
14026
14027
14028 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14029 PyObject *resultobj = 0;
14030 wxFont *arg1 = (wxFont *) 0 ;
14031 wxSize result;
14032 void *argp1 = 0 ;
14033 int res1 = 0 ;
14034 PyObject *swig_obj[1] ;
14035
14036 if (!args) SWIG_fail;
14037 swig_obj[0] = args;
14038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14039 if (!SWIG_IsOK(res1)) {
14040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14041 }
14042 arg1 = reinterpret_cast< wxFont * >(argp1);
14043 {
14044 PyThreadState* __tstate = wxPyBeginAllowThreads();
14045 result = ((wxFont const *)arg1)->GetPixelSize();
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14050 return resultobj;
14051 fail:
14052 return NULL;
14053 }
14054
14055
14056 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14057 PyObject *resultobj = 0;
14058 wxFont *arg1 = (wxFont *) 0 ;
14059 bool result;
14060 void *argp1 = 0 ;
14061 int res1 = 0 ;
14062 PyObject *swig_obj[1] ;
14063
14064 if (!args) SWIG_fail;
14065 swig_obj[0] = args;
14066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14067 if (!SWIG_IsOK(res1)) {
14068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14069 }
14070 arg1 = reinterpret_cast< wxFont * >(argp1);
14071 {
14072 PyThreadState* __tstate = wxPyBeginAllowThreads();
14073 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 {
14078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14079 }
14080 return resultobj;
14081 fail:
14082 return NULL;
14083 }
14084
14085
14086 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14087 PyObject *resultobj = 0;
14088 wxFont *arg1 = (wxFont *) 0 ;
14089 int result;
14090 void *argp1 = 0 ;
14091 int res1 = 0 ;
14092 PyObject *swig_obj[1] ;
14093
14094 if (!args) SWIG_fail;
14095 swig_obj[0] = args;
14096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14097 if (!SWIG_IsOK(res1)) {
14098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14099 }
14100 arg1 = reinterpret_cast< wxFont * >(argp1);
14101 {
14102 PyThreadState* __tstate = wxPyBeginAllowThreads();
14103 result = (int)((wxFont const *)arg1)->GetFamily();
14104 wxPyEndAllowThreads(__tstate);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 resultobj = SWIG_From_int(static_cast< int >(result));
14108 return resultobj;
14109 fail:
14110 return NULL;
14111 }
14112
14113
14114 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14115 PyObject *resultobj = 0;
14116 wxFont *arg1 = (wxFont *) 0 ;
14117 int result;
14118 void *argp1 = 0 ;
14119 int res1 = 0 ;
14120 PyObject *swig_obj[1] ;
14121
14122 if (!args) SWIG_fail;
14123 swig_obj[0] = args;
14124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14125 if (!SWIG_IsOK(res1)) {
14126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14127 }
14128 arg1 = reinterpret_cast< wxFont * >(argp1);
14129 {
14130 PyThreadState* __tstate = wxPyBeginAllowThreads();
14131 result = (int)((wxFont const *)arg1)->GetStyle();
14132 wxPyEndAllowThreads(__tstate);
14133 if (PyErr_Occurred()) SWIG_fail;
14134 }
14135 resultobj = SWIG_From_int(static_cast< int >(result));
14136 return resultobj;
14137 fail:
14138 return NULL;
14139 }
14140
14141
14142 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14143 PyObject *resultobj = 0;
14144 wxFont *arg1 = (wxFont *) 0 ;
14145 int result;
14146 void *argp1 = 0 ;
14147 int res1 = 0 ;
14148 PyObject *swig_obj[1] ;
14149
14150 if (!args) SWIG_fail;
14151 swig_obj[0] = args;
14152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14153 if (!SWIG_IsOK(res1)) {
14154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14155 }
14156 arg1 = reinterpret_cast< wxFont * >(argp1);
14157 {
14158 PyThreadState* __tstate = wxPyBeginAllowThreads();
14159 result = (int)((wxFont const *)arg1)->GetWeight();
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 resultobj = SWIG_From_int(static_cast< int >(result));
14164 return resultobj;
14165 fail:
14166 return NULL;
14167 }
14168
14169
14170 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14171 PyObject *resultobj = 0;
14172 wxFont *arg1 = (wxFont *) 0 ;
14173 bool result;
14174 void *argp1 = 0 ;
14175 int res1 = 0 ;
14176 PyObject *swig_obj[1] ;
14177
14178 if (!args) SWIG_fail;
14179 swig_obj[0] = args;
14180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14181 if (!SWIG_IsOK(res1)) {
14182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14183 }
14184 arg1 = reinterpret_cast< wxFont * >(argp1);
14185 {
14186 PyThreadState* __tstate = wxPyBeginAllowThreads();
14187 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 {
14192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14193 }
14194 return resultobj;
14195 fail:
14196 return NULL;
14197 }
14198
14199
14200 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14201 PyObject *resultobj = 0;
14202 wxFont *arg1 = (wxFont *) 0 ;
14203 wxString result;
14204 void *argp1 = 0 ;
14205 int res1 = 0 ;
14206 PyObject *swig_obj[1] ;
14207
14208 if (!args) SWIG_fail;
14209 swig_obj[0] = args;
14210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14211 if (!SWIG_IsOK(res1)) {
14212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14213 }
14214 arg1 = reinterpret_cast< wxFont * >(argp1);
14215 {
14216 PyThreadState* __tstate = wxPyBeginAllowThreads();
14217 result = ((wxFont const *)arg1)->GetFaceName();
14218 wxPyEndAllowThreads(__tstate);
14219 if (PyErr_Occurred()) SWIG_fail;
14220 }
14221 {
14222 #if wxUSE_UNICODE
14223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14224 #else
14225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14226 #endif
14227 }
14228 return resultobj;
14229 fail:
14230 return NULL;
14231 }
14232
14233
14234 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14235 PyObject *resultobj = 0;
14236 wxFont *arg1 = (wxFont *) 0 ;
14237 wxFontEncoding result;
14238 void *argp1 = 0 ;
14239 int res1 = 0 ;
14240 PyObject *swig_obj[1] ;
14241
14242 if (!args) SWIG_fail;
14243 swig_obj[0] = args;
14244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14245 if (!SWIG_IsOK(res1)) {
14246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14247 }
14248 arg1 = reinterpret_cast< wxFont * >(argp1);
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 resultobj = SWIG_From_int(static_cast< int >(result));
14256 return resultobj;
14257 fail:
14258 return NULL;
14259 }
14260
14261
14262 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14263 PyObject *resultobj = 0;
14264 wxFont *arg1 = (wxFont *) 0 ;
14265 wxNativeFontInfo *result = 0 ;
14266 void *argp1 = 0 ;
14267 int res1 = 0 ;
14268 PyObject *swig_obj[1] ;
14269
14270 if (!args) SWIG_fail;
14271 swig_obj[0] = args;
14272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14273 if (!SWIG_IsOK(res1)) {
14274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14275 }
14276 arg1 = reinterpret_cast< wxFont * >(argp1);
14277 {
14278 PyThreadState* __tstate = wxPyBeginAllowThreads();
14279 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
14283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14284 return resultobj;
14285 fail:
14286 return NULL;
14287 }
14288
14289
14290 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14291 PyObject *resultobj = 0;
14292 wxFont *arg1 = (wxFont *) 0 ;
14293 bool result;
14294 void *argp1 = 0 ;
14295 int res1 = 0 ;
14296 PyObject *swig_obj[1] ;
14297
14298 if (!args) SWIG_fail;
14299 swig_obj[0] = args;
14300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14301 if (!SWIG_IsOK(res1)) {
14302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14303 }
14304 arg1 = reinterpret_cast< wxFont * >(argp1);
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 {
14312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14313 }
14314 return resultobj;
14315 fail:
14316 return NULL;
14317 }
14318
14319
14320 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14321 PyObject *resultobj = 0;
14322 wxFont *arg1 = (wxFont *) 0 ;
14323 wxString result;
14324 void *argp1 = 0 ;
14325 int res1 = 0 ;
14326 PyObject *swig_obj[1] ;
14327
14328 if (!args) SWIG_fail;
14329 swig_obj[0] = args;
14330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14331 if (!SWIG_IsOK(res1)) {
14332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14333 }
14334 arg1 = reinterpret_cast< wxFont * >(argp1);
14335 {
14336 PyThreadState* __tstate = wxPyBeginAllowThreads();
14337 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14338 wxPyEndAllowThreads(__tstate);
14339 if (PyErr_Occurred()) SWIG_fail;
14340 }
14341 {
14342 #if wxUSE_UNICODE
14343 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14344 #else
14345 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14346 #endif
14347 }
14348 return resultobj;
14349 fail:
14350 return NULL;
14351 }
14352
14353
14354 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14355 PyObject *resultobj = 0;
14356 wxFont *arg1 = (wxFont *) 0 ;
14357 wxString result;
14358 void *argp1 = 0 ;
14359 int res1 = 0 ;
14360 PyObject *swig_obj[1] ;
14361
14362 if (!args) SWIG_fail;
14363 swig_obj[0] = args;
14364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14365 if (!SWIG_IsOK(res1)) {
14366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14367 }
14368 arg1 = reinterpret_cast< wxFont * >(argp1);
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 {
14376 #if wxUSE_UNICODE
14377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14378 #else
14379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14380 #endif
14381 }
14382 return resultobj;
14383 fail:
14384 return NULL;
14385 }
14386
14387
14388 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14389 PyObject *resultobj = 0;
14390 wxFont *arg1 = (wxFont *) 0 ;
14391 int arg2 ;
14392 void *argp1 = 0 ;
14393 int res1 = 0 ;
14394 int val2 ;
14395 int ecode2 = 0 ;
14396 PyObject * obj0 = 0 ;
14397 PyObject * obj1 = 0 ;
14398 char * kwnames[] = {
14399 (char *) "self",(char *) "pointSize", NULL
14400 };
14401
14402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14404 if (!SWIG_IsOK(res1)) {
14405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14406 }
14407 arg1 = reinterpret_cast< wxFont * >(argp1);
14408 ecode2 = SWIG_AsVal_int(obj1, &val2);
14409 if (!SWIG_IsOK(ecode2)) {
14410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14411 }
14412 arg2 = static_cast< int >(val2);
14413 {
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 (arg1)->SetPointSize(arg2);
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 resultobj = SWIG_Py_Void();
14420 return resultobj;
14421 fail:
14422 return NULL;
14423 }
14424
14425
14426 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14427 PyObject *resultobj = 0;
14428 wxFont *arg1 = (wxFont *) 0 ;
14429 wxSize *arg2 = 0 ;
14430 void *argp1 = 0 ;
14431 int res1 = 0 ;
14432 wxSize temp2 ;
14433 PyObject * obj0 = 0 ;
14434 PyObject * obj1 = 0 ;
14435 char * kwnames[] = {
14436 (char *) "self",(char *) "pixelSize", NULL
14437 };
14438
14439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14441 if (!SWIG_IsOK(res1)) {
14442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14443 }
14444 arg1 = reinterpret_cast< wxFont * >(argp1);
14445 {
14446 arg2 = &temp2;
14447 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14448 }
14449 {
14450 PyThreadState* __tstate = wxPyBeginAllowThreads();
14451 (arg1)->SetPixelSize((wxSize const &)*arg2);
14452 wxPyEndAllowThreads(__tstate);
14453 if (PyErr_Occurred()) SWIG_fail;
14454 }
14455 resultobj = SWIG_Py_Void();
14456 return resultobj;
14457 fail:
14458 return NULL;
14459 }
14460
14461
14462 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14463 PyObject *resultobj = 0;
14464 wxFont *arg1 = (wxFont *) 0 ;
14465 int arg2 ;
14466 void *argp1 = 0 ;
14467 int res1 = 0 ;
14468 int val2 ;
14469 int ecode2 = 0 ;
14470 PyObject * obj0 = 0 ;
14471 PyObject * obj1 = 0 ;
14472 char * kwnames[] = {
14473 (char *) "self",(char *) "family", NULL
14474 };
14475
14476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14478 if (!SWIG_IsOK(res1)) {
14479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14480 }
14481 arg1 = reinterpret_cast< wxFont * >(argp1);
14482 ecode2 = SWIG_AsVal_int(obj1, &val2);
14483 if (!SWIG_IsOK(ecode2)) {
14484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14485 }
14486 arg2 = static_cast< int >(val2);
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 (arg1)->SetFamily(arg2);
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 resultobj = SWIG_Py_Void();
14494 return resultobj;
14495 fail:
14496 return NULL;
14497 }
14498
14499
14500 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14501 PyObject *resultobj = 0;
14502 wxFont *arg1 = (wxFont *) 0 ;
14503 int arg2 ;
14504 void *argp1 = 0 ;
14505 int res1 = 0 ;
14506 int val2 ;
14507 int ecode2 = 0 ;
14508 PyObject * obj0 = 0 ;
14509 PyObject * obj1 = 0 ;
14510 char * kwnames[] = {
14511 (char *) "self",(char *) "style", NULL
14512 };
14513
14514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14516 if (!SWIG_IsOK(res1)) {
14517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14518 }
14519 arg1 = reinterpret_cast< wxFont * >(argp1);
14520 ecode2 = SWIG_AsVal_int(obj1, &val2);
14521 if (!SWIG_IsOK(ecode2)) {
14522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14523 }
14524 arg2 = static_cast< int >(val2);
14525 {
14526 PyThreadState* __tstate = wxPyBeginAllowThreads();
14527 (arg1)->SetStyle(arg2);
14528 wxPyEndAllowThreads(__tstate);
14529 if (PyErr_Occurred()) SWIG_fail;
14530 }
14531 resultobj = SWIG_Py_Void();
14532 return resultobj;
14533 fail:
14534 return NULL;
14535 }
14536
14537
14538 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14539 PyObject *resultobj = 0;
14540 wxFont *arg1 = (wxFont *) 0 ;
14541 int arg2 ;
14542 void *argp1 = 0 ;
14543 int res1 = 0 ;
14544 int val2 ;
14545 int ecode2 = 0 ;
14546 PyObject * obj0 = 0 ;
14547 PyObject * obj1 = 0 ;
14548 char * kwnames[] = {
14549 (char *) "self",(char *) "weight", NULL
14550 };
14551
14552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14554 if (!SWIG_IsOK(res1)) {
14555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14556 }
14557 arg1 = reinterpret_cast< wxFont * >(argp1);
14558 ecode2 = SWIG_AsVal_int(obj1, &val2);
14559 if (!SWIG_IsOK(ecode2)) {
14560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14561 }
14562 arg2 = static_cast< int >(val2);
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 (arg1)->SetWeight(arg2);
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 resultobj = SWIG_Py_Void();
14570 return resultobj;
14571 fail:
14572 return NULL;
14573 }
14574
14575
14576 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14577 PyObject *resultobj = 0;
14578 wxFont *arg1 = (wxFont *) 0 ;
14579 wxString *arg2 = 0 ;
14580 bool result;
14581 void *argp1 = 0 ;
14582 int res1 = 0 ;
14583 bool temp2 = false ;
14584 PyObject * obj0 = 0 ;
14585 PyObject * obj1 = 0 ;
14586 char * kwnames[] = {
14587 (char *) "self",(char *) "faceName", NULL
14588 };
14589
14590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14592 if (!SWIG_IsOK(res1)) {
14593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14594 }
14595 arg1 = reinterpret_cast< wxFont * >(argp1);
14596 {
14597 arg2 = wxString_in_helper(obj1);
14598 if (arg2 == NULL) SWIG_fail;
14599 temp2 = true;
14600 }
14601 {
14602 PyThreadState* __tstate = wxPyBeginAllowThreads();
14603 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 {
14608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14609 }
14610 {
14611 if (temp2)
14612 delete arg2;
14613 }
14614 return resultobj;
14615 fail:
14616 {
14617 if (temp2)
14618 delete arg2;
14619 }
14620 return NULL;
14621 }
14622
14623
14624 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14625 PyObject *resultobj = 0;
14626 wxFont *arg1 = (wxFont *) 0 ;
14627 bool arg2 ;
14628 void *argp1 = 0 ;
14629 int res1 = 0 ;
14630 bool val2 ;
14631 int ecode2 = 0 ;
14632 PyObject * obj0 = 0 ;
14633 PyObject * obj1 = 0 ;
14634 char * kwnames[] = {
14635 (char *) "self",(char *) "underlined", NULL
14636 };
14637
14638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14640 if (!SWIG_IsOK(res1)) {
14641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14642 }
14643 arg1 = reinterpret_cast< wxFont * >(argp1);
14644 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14645 if (!SWIG_IsOK(ecode2)) {
14646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14647 }
14648 arg2 = static_cast< bool >(val2);
14649 {
14650 PyThreadState* __tstate = wxPyBeginAllowThreads();
14651 (arg1)->SetUnderlined(arg2);
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 resultobj = SWIG_Py_Void();
14656 return resultobj;
14657 fail:
14658 return NULL;
14659 }
14660
14661
14662 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14663 PyObject *resultobj = 0;
14664 wxFont *arg1 = (wxFont *) 0 ;
14665 wxFontEncoding arg2 ;
14666 void *argp1 = 0 ;
14667 int res1 = 0 ;
14668 int val2 ;
14669 int ecode2 = 0 ;
14670 PyObject * obj0 = 0 ;
14671 PyObject * obj1 = 0 ;
14672 char * kwnames[] = {
14673 (char *) "self",(char *) "encoding", NULL
14674 };
14675
14676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14678 if (!SWIG_IsOK(res1)) {
14679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14680 }
14681 arg1 = reinterpret_cast< wxFont * >(argp1);
14682 ecode2 = SWIG_AsVal_int(obj1, &val2);
14683 if (!SWIG_IsOK(ecode2)) {
14684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14685 }
14686 arg2 = static_cast< wxFontEncoding >(val2);
14687 {
14688 PyThreadState* __tstate = wxPyBeginAllowThreads();
14689 (arg1)->SetEncoding(arg2);
14690 wxPyEndAllowThreads(__tstate);
14691 if (PyErr_Occurred()) SWIG_fail;
14692 }
14693 resultobj = SWIG_Py_Void();
14694 return resultobj;
14695 fail:
14696 return NULL;
14697 }
14698
14699
14700 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14701 PyObject *resultobj = 0;
14702 wxFont *arg1 = (wxFont *) 0 ;
14703 wxNativeFontInfo *arg2 = 0 ;
14704 void *argp1 = 0 ;
14705 int res1 = 0 ;
14706 void *argp2 = 0 ;
14707 int res2 = 0 ;
14708 PyObject * obj0 = 0 ;
14709 PyObject * obj1 = 0 ;
14710 char * kwnames[] = {
14711 (char *) "self",(char *) "info", NULL
14712 };
14713
14714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14716 if (!SWIG_IsOK(res1)) {
14717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14718 }
14719 arg1 = reinterpret_cast< wxFont * >(argp1);
14720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14721 if (!SWIG_IsOK(res2)) {
14722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14723 }
14724 if (!argp2) {
14725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14726 }
14727 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14728 {
14729 PyThreadState* __tstate = wxPyBeginAllowThreads();
14730 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14731 wxPyEndAllowThreads(__tstate);
14732 if (PyErr_Occurred()) SWIG_fail;
14733 }
14734 resultobj = SWIG_Py_Void();
14735 return resultobj;
14736 fail:
14737 return NULL;
14738 }
14739
14740
14741 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14742 PyObject *resultobj = 0;
14743 wxFont *arg1 = (wxFont *) 0 ;
14744 wxString *arg2 = 0 ;
14745 bool result;
14746 void *argp1 = 0 ;
14747 int res1 = 0 ;
14748 bool temp2 = false ;
14749 PyObject * obj0 = 0 ;
14750 PyObject * obj1 = 0 ;
14751 char * kwnames[] = {
14752 (char *) "self",(char *) "info", NULL
14753 };
14754
14755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14757 if (!SWIG_IsOK(res1)) {
14758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14759 }
14760 arg1 = reinterpret_cast< wxFont * >(argp1);
14761 {
14762 arg2 = wxString_in_helper(obj1);
14763 if (arg2 == NULL) SWIG_fail;
14764 temp2 = true;
14765 }
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14769 wxPyEndAllowThreads(__tstate);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 {
14773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14774 }
14775 {
14776 if (temp2)
14777 delete arg2;
14778 }
14779 return resultobj;
14780 fail:
14781 {
14782 if (temp2)
14783 delete arg2;
14784 }
14785 return NULL;
14786 }
14787
14788
14789 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj = 0;
14791 wxFont *arg1 = (wxFont *) 0 ;
14792 wxString *arg2 = 0 ;
14793 bool result;
14794 void *argp1 = 0 ;
14795 int res1 = 0 ;
14796 bool temp2 = false ;
14797 PyObject * obj0 = 0 ;
14798 PyObject * obj1 = 0 ;
14799 char * kwnames[] = {
14800 (char *) "self",(char *) "info", NULL
14801 };
14802
14803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14805 if (!SWIG_IsOK(res1)) {
14806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14807 }
14808 arg1 = reinterpret_cast< wxFont * >(argp1);
14809 {
14810 arg2 = wxString_in_helper(obj1);
14811 if (arg2 == NULL) SWIG_fail;
14812 temp2 = true;
14813 }
14814 {
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14817 wxPyEndAllowThreads(__tstate);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 {
14821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14822 }
14823 {
14824 if (temp2)
14825 delete arg2;
14826 }
14827 return resultobj;
14828 fail:
14829 {
14830 if (temp2)
14831 delete arg2;
14832 }
14833 return NULL;
14834 }
14835
14836
14837 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14838 PyObject *resultobj = 0;
14839 wxFont *arg1 = (wxFont *) 0 ;
14840 wxString result;
14841 void *argp1 = 0 ;
14842 int res1 = 0 ;
14843 PyObject *swig_obj[1] ;
14844
14845 if (!args) SWIG_fail;
14846 swig_obj[0] = args;
14847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14848 if (!SWIG_IsOK(res1)) {
14849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14850 }
14851 arg1 = reinterpret_cast< wxFont * >(argp1);
14852 {
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 result = ((wxFont const *)arg1)->GetFamilyString();
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 {
14859 #if wxUSE_UNICODE
14860 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14861 #else
14862 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14863 #endif
14864 }
14865 return resultobj;
14866 fail:
14867 return NULL;
14868 }
14869
14870
14871 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14872 PyObject *resultobj = 0;
14873 wxFont *arg1 = (wxFont *) 0 ;
14874 wxString result;
14875 void *argp1 = 0 ;
14876 int res1 = 0 ;
14877 PyObject *swig_obj[1] ;
14878
14879 if (!args) SWIG_fail;
14880 swig_obj[0] = args;
14881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14882 if (!SWIG_IsOK(res1)) {
14883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14884 }
14885 arg1 = reinterpret_cast< wxFont * >(argp1);
14886 {
14887 PyThreadState* __tstate = wxPyBeginAllowThreads();
14888 result = ((wxFont const *)arg1)->GetStyleString();
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 {
14893 #if wxUSE_UNICODE
14894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14895 #else
14896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14897 #endif
14898 }
14899 return resultobj;
14900 fail:
14901 return NULL;
14902 }
14903
14904
14905 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14906 PyObject *resultobj = 0;
14907 wxFont *arg1 = (wxFont *) 0 ;
14908 wxString result;
14909 void *argp1 = 0 ;
14910 int res1 = 0 ;
14911 PyObject *swig_obj[1] ;
14912
14913 if (!args) SWIG_fail;
14914 swig_obj[0] = args;
14915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14918 }
14919 arg1 = reinterpret_cast< wxFont * >(argp1);
14920 {
14921 PyThreadState* __tstate = wxPyBeginAllowThreads();
14922 result = ((wxFont const *)arg1)->GetWeightString();
14923 wxPyEndAllowThreads(__tstate);
14924 if (PyErr_Occurred()) SWIG_fail;
14925 }
14926 {
14927 #if wxUSE_UNICODE
14928 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14929 #else
14930 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14931 #endif
14932 }
14933 return resultobj;
14934 fail:
14935 return NULL;
14936 }
14937
14938
14939 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14940 PyObject *resultobj = 0;
14941 wxFont *arg1 = (wxFont *) 0 ;
14942 bool arg2 = (bool) true ;
14943 void *argp1 = 0 ;
14944 int res1 = 0 ;
14945 bool val2 ;
14946 int ecode2 = 0 ;
14947 PyObject * obj0 = 0 ;
14948 PyObject * obj1 = 0 ;
14949 char * kwnames[] = {
14950 (char *) "self",(char *) "no", NULL
14951 };
14952
14953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14955 if (!SWIG_IsOK(res1)) {
14956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14957 }
14958 arg1 = reinterpret_cast< wxFont * >(argp1);
14959 if (obj1) {
14960 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14961 if (!SWIG_IsOK(ecode2)) {
14962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14963 }
14964 arg2 = static_cast< bool >(val2);
14965 }
14966 {
14967 PyThreadState* __tstate = wxPyBeginAllowThreads();
14968 (arg1)->SetNoAntiAliasing(arg2);
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 resultobj = SWIG_Py_Void();
14973 return resultobj;
14974 fail:
14975 return NULL;
14976 }
14977
14978
14979 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14980 PyObject *resultobj = 0;
14981 wxFont *arg1 = (wxFont *) 0 ;
14982 bool result;
14983 void *argp1 = 0 ;
14984 int res1 = 0 ;
14985 PyObject *swig_obj[1] ;
14986
14987 if (!args) SWIG_fail;
14988 swig_obj[0] = args;
14989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14990 if (!SWIG_IsOK(res1)) {
14991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14992 }
14993 arg1 = reinterpret_cast< wxFont * >(argp1);
14994 {
14995 PyThreadState* __tstate = wxPyBeginAllowThreads();
14996 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14997 wxPyEndAllowThreads(__tstate);
14998 if (PyErr_Occurred()) SWIG_fail;
14999 }
15000 {
15001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15002 }
15003 return resultobj;
15004 fail:
15005 return NULL;
15006 }
15007
15008
15009 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15010 PyObject *resultobj = 0;
15011 wxFontEncoding result;
15012
15013 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15014 {
15015 if (!wxPyCheckForApp()) SWIG_fail;
15016 PyThreadState* __tstate = wxPyBeginAllowThreads();
15017 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15018 wxPyEndAllowThreads(__tstate);
15019 if (PyErr_Occurred()) SWIG_fail;
15020 }
15021 resultobj = SWIG_From_int(static_cast< int >(result));
15022 return resultobj;
15023 fail:
15024 return NULL;
15025 }
15026
15027
15028 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15029 PyObject *resultobj = 0;
15030 wxFontEncoding arg1 ;
15031 int val1 ;
15032 int ecode1 = 0 ;
15033 PyObject * obj0 = 0 ;
15034 char * kwnames[] = {
15035 (char *) "encoding", NULL
15036 };
15037
15038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15039 ecode1 = SWIG_AsVal_int(obj0, &val1);
15040 if (!SWIG_IsOK(ecode1)) {
15041 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15042 }
15043 arg1 = static_cast< wxFontEncoding >(val1);
15044 {
15045 if (!wxPyCheckForApp()) SWIG_fail;
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 wxFont::SetDefaultEncoding(arg1);
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 resultobj = SWIG_Py_Void();
15052 return resultobj;
15053 fail:
15054 return NULL;
15055 }
15056
15057
15058 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15059 PyObject *obj;
15060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15061 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15062 return SWIG_Py_Void();
15063 }
15064
15065 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15066 return SWIG_Python_InitShadowInstance(args);
15067 }
15068
15069 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15070 PyObject *resultobj = 0;
15071 wxPyFontEnumerator *result = 0 ;
15072
15073 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15074 {
15075 if (!wxPyCheckForApp()) SWIG_fail;
15076 PyThreadState* __tstate = wxPyBeginAllowThreads();
15077 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15078 wxPyEndAllowThreads(__tstate);
15079 if (PyErr_Occurred()) SWIG_fail;
15080 }
15081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15089 PyObject *resultobj = 0;
15090 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15091 void *argp1 = 0 ;
15092 int res1 = 0 ;
15093 PyObject *swig_obj[1] ;
15094
15095 if (!args) SWIG_fail;
15096 swig_obj[0] = args;
15097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15098 if (!SWIG_IsOK(res1)) {
15099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15100 }
15101 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15102 {
15103 PyThreadState* __tstate = wxPyBeginAllowThreads();
15104 delete arg1;
15105
15106 wxPyEndAllowThreads(__tstate);
15107 if (PyErr_Occurred()) SWIG_fail;
15108 }
15109 resultobj = SWIG_Py_Void();
15110 return resultobj;
15111 fail:
15112 return NULL;
15113 }
15114
15115
15116 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15117 PyObject *resultobj = 0;
15118 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15119 PyObject *arg2 = (PyObject *) 0 ;
15120 PyObject *arg3 = (PyObject *) 0 ;
15121 bool arg4 ;
15122 void *argp1 = 0 ;
15123 int res1 = 0 ;
15124 bool val4 ;
15125 int ecode4 = 0 ;
15126 PyObject * obj0 = 0 ;
15127 PyObject * obj1 = 0 ;
15128 PyObject * obj2 = 0 ;
15129 PyObject * obj3 = 0 ;
15130 char * kwnames[] = {
15131 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15132 };
15133
15134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15136 if (!SWIG_IsOK(res1)) {
15137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15138 }
15139 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15140 arg2 = obj1;
15141 arg3 = obj2;
15142 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15143 if (!SWIG_IsOK(ecode4)) {
15144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15145 }
15146 arg4 = static_cast< bool >(val4);
15147 {
15148 PyThreadState* __tstate = wxPyBeginAllowThreads();
15149 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15150 wxPyEndAllowThreads(__tstate);
15151 if (PyErr_Occurred()) SWIG_fail;
15152 }
15153 resultobj = SWIG_Py_Void();
15154 return resultobj;
15155 fail:
15156 return NULL;
15157 }
15158
15159
15160 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15161 PyObject *resultobj = 0;
15162 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15163 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15164 bool arg3 = (bool) false ;
15165 bool result;
15166 void *argp1 = 0 ;
15167 int res1 = 0 ;
15168 int val2 ;
15169 int ecode2 = 0 ;
15170 bool val3 ;
15171 int ecode3 = 0 ;
15172 PyObject * obj0 = 0 ;
15173 PyObject * obj1 = 0 ;
15174 PyObject * obj2 = 0 ;
15175 char * kwnames[] = {
15176 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15177 };
15178
15179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15181 if (!SWIG_IsOK(res1)) {
15182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15183 }
15184 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15185 if (obj1) {
15186 ecode2 = SWIG_AsVal_int(obj1, &val2);
15187 if (!SWIG_IsOK(ecode2)) {
15188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15189 }
15190 arg2 = static_cast< wxFontEncoding >(val2);
15191 }
15192 if (obj2) {
15193 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15194 if (!SWIG_IsOK(ecode3)) {
15195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15196 }
15197 arg3 = static_cast< bool >(val3);
15198 }
15199 {
15200 PyThreadState* __tstate = wxPyBeginAllowThreads();
15201 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 {
15206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15207 }
15208 return resultobj;
15209 fail:
15210 return NULL;
15211 }
15212
15213
15214 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15215 PyObject *resultobj = 0;
15216 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15217 wxString const &arg2_defvalue = wxPyEmptyString ;
15218 wxString *arg2 = (wxString *) &arg2_defvalue ;
15219 bool result;
15220 void *argp1 = 0 ;
15221 int res1 = 0 ;
15222 bool temp2 = false ;
15223 PyObject * obj0 = 0 ;
15224 PyObject * obj1 = 0 ;
15225 char * kwnames[] = {
15226 (char *) "self",(char *) "facename", NULL
15227 };
15228
15229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15231 if (!SWIG_IsOK(res1)) {
15232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15233 }
15234 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15235 if (obj1) {
15236 {
15237 arg2 = wxString_in_helper(obj1);
15238 if (arg2 == NULL) SWIG_fail;
15239 temp2 = true;
15240 }
15241 }
15242 {
15243 PyThreadState* __tstate = wxPyBeginAllowThreads();
15244 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15245 wxPyEndAllowThreads(__tstate);
15246 if (PyErr_Occurred()) SWIG_fail;
15247 }
15248 {
15249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15250 }
15251 {
15252 if (temp2)
15253 delete arg2;
15254 }
15255 return resultobj;
15256 fail:
15257 {
15258 if (temp2)
15259 delete arg2;
15260 }
15261 return NULL;
15262 }
15263
15264
15265 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15266 PyObject *resultobj = 0;
15267 PyObject *result = 0 ;
15268
15269 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15270 {
15271 PyThreadState* __tstate = wxPyBeginAllowThreads();
15272 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15273 wxPyEndAllowThreads(__tstate);
15274 if (PyErr_Occurred()) SWIG_fail;
15275 }
15276 resultobj = result;
15277 return resultobj;
15278 fail:
15279 return NULL;
15280 }
15281
15282
15283 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15284 PyObject *resultobj = 0;
15285 PyObject *result = 0 ;
15286
15287 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15288 {
15289 PyThreadState* __tstate = wxPyBeginAllowThreads();
15290 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15291 wxPyEndAllowThreads(__tstate);
15292 if (PyErr_Occurred()) SWIG_fail;
15293 }
15294 resultobj = result;
15295 return resultobj;
15296 fail:
15297 return NULL;
15298 }
15299
15300
15301 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15302 PyObject *resultobj = 0;
15303 wxString *arg1 = 0 ;
15304 bool result;
15305 bool temp1 = false ;
15306 PyObject * obj0 = 0 ;
15307 char * kwnames[] = {
15308 (char *) "str", NULL
15309 };
15310
15311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15312 {
15313 arg1 = wxString_in_helper(obj0);
15314 if (arg1 == NULL) SWIG_fail;
15315 temp1 = true;
15316 }
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
15323 {
15324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15325 }
15326 {
15327 if (temp1)
15328 delete arg1;
15329 }
15330 return resultobj;
15331 fail:
15332 {
15333 if (temp1)
15334 delete arg1;
15335 }
15336 return NULL;
15337 }
15338
15339
15340 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15341 PyObject *obj;
15342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15343 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15344 return SWIG_Py_Void();
15345 }
15346
15347 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15348 return SWIG_Python_InitShadowInstance(args);
15349 }
15350
15351 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15352 PyObject *resultobj = 0;
15353 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15354 int arg2 ;
15355 void *argp1 = 0 ;
15356 int res1 = 0 ;
15357 int val2 ;
15358 int ecode2 = 0 ;
15359 PyObject *swig_obj[2] ;
15360
15361 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15363 if (!SWIG_IsOK(res1)) {
15364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15365 }
15366 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15367 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15368 if (!SWIG_IsOK(ecode2)) {
15369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15370 }
15371 arg2 = static_cast< int >(val2);
15372 if (arg1) (arg1)->Language = arg2;
15373
15374 resultobj = SWIG_Py_Void();
15375 return resultobj;
15376 fail:
15377 return NULL;
15378 }
15379
15380
15381 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15382 PyObject *resultobj = 0;
15383 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15384 int result;
15385 void *argp1 = 0 ;
15386 int res1 = 0 ;
15387 PyObject *swig_obj[1] ;
15388
15389 if (!args) SWIG_fail;
15390 swig_obj[0] = args;
15391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15392 if (!SWIG_IsOK(res1)) {
15393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15394 }
15395 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15396 result = (int) ((arg1)->Language);
15397 resultobj = SWIG_From_int(static_cast< int >(result));
15398 return resultobj;
15399 fail:
15400 return NULL;
15401 }
15402
15403
15404 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15405 PyObject *resultobj = 0;
15406 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15407 wxString *arg2 = (wxString *) 0 ;
15408 void *argp1 = 0 ;
15409 int res1 = 0 ;
15410 bool temp2 = false ;
15411 PyObject *swig_obj[2] ;
15412
15413 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15415 if (!SWIG_IsOK(res1)) {
15416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15417 }
15418 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15419 {
15420 arg2 = wxString_in_helper(swig_obj[1]);
15421 if (arg2 == NULL) SWIG_fail;
15422 temp2 = true;
15423 }
15424 if (arg1) (arg1)->CanonicalName = *arg2;
15425
15426 resultobj = SWIG_Py_Void();
15427 {
15428 if (temp2)
15429 delete arg2;
15430 }
15431 return resultobj;
15432 fail:
15433 {
15434 if (temp2)
15435 delete arg2;
15436 }
15437 return NULL;
15438 }
15439
15440
15441 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15442 PyObject *resultobj = 0;
15443 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15444 wxString *result = 0 ;
15445 void *argp1 = 0 ;
15446 int res1 = 0 ;
15447 PyObject *swig_obj[1] ;
15448
15449 if (!args) SWIG_fail;
15450 swig_obj[0] = args;
15451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15452 if (!SWIG_IsOK(res1)) {
15453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15454 }
15455 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15456 result = (wxString *)& ((arg1)->CanonicalName);
15457 {
15458 #if wxUSE_UNICODE
15459 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15460 #else
15461 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15462 #endif
15463 }
15464 return resultobj;
15465 fail:
15466 return NULL;
15467 }
15468
15469
15470 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15471 PyObject *resultobj = 0;
15472 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15473 wxString *arg2 = (wxString *) 0 ;
15474 void *argp1 = 0 ;
15475 int res1 = 0 ;
15476 bool temp2 = false ;
15477 PyObject *swig_obj[2] ;
15478
15479 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15481 if (!SWIG_IsOK(res1)) {
15482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15483 }
15484 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15485 {
15486 arg2 = wxString_in_helper(swig_obj[1]);
15487 if (arg2 == NULL) SWIG_fail;
15488 temp2 = true;
15489 }
15490 if (arg1) (arg1)->Description = *arg2;
15491
15492 resultobj = SWIG_Py_Void();
15493 {
15494 if (temp2)
15495 delete arg2;
15496 }
15497 return resultobj;
15498 fail:
15499 {
15500 if (temp2)
15501 delete arg2;
15502 }
15503 return NULL;
15504 }
15505
15506
15507 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15508 PyObject *resultobj = 0;
15509 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15510 wxString *result = 0 ;
15511 void *argp1 = 0 ;
15512 int res1 = 0 ;
15513 PyObject *swig_obj[1] ;
15514
15515 if (!args) SWIG_fail;
15516 swig_obj[0] = args;
15517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15518 if (!SWIG_IsOK(res1)) {
15519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15520 }
15521 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15522 result = (wxString *)& ((arg1)->Description);
15523 {
15524 #if wxUSE_UNICODE
15525 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15526 #else
15527 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15528 #endif
15529 }
15530 return resultobj;
15531 fail:
15532 return NULL;
15533 }
15534
15535
15536 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15537 PyObject *obj;
15538 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15539 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15540 return SWIG_Py_Void();
15541 }
15542
15543 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15544 PyObject *resultobj = 0;
15545 int arg1 = (int) -1 ;
15546 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15547 wxLocale *result = 0 ;
15548 int val1 ;
15549 int ecode1 = 0 ;
15550 int val2 ;
15551 int ecode2 = 0 ;
15552 PyObject * obj0 = 0 ;
15553 PyObject * obj1 = 0 ;
15554 char * kwnames[] = {
15555 (char *) "language",(char *) "flags", NULL
15556 };
15557
15558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15559 if (obj0) {
15560 ecode1 = SWIG_AsVal_int(obj0, &val1);
15561 if (!SWIG_IsOK(ecode1)) {
15562 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15563 }
15564 arg1 = static_cast< int >(val1);
15565 }
15566 if (obj1) {
15567 ecode2 = SWIG_AsVal_int(obj1, &val2);
15568 if (!SWIG_IsOK(ecode2)) {
15569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15570 }
15571 arg2 = static_cast< int >(val2);
15572 }
15573 {
15574 PyThreadState* __tstate = wxPyBeginAllowThreads();
15575 result = (wxLocale *)new_wxLocale(arg1,arg2);
15576 wxPyEndAllowThreads(__tstate);
15577 if (PyErr_Occurred()) SWIG_fail;
15578 }
15579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15580 return resultobj;
15581 fail:
15582 return NULL;
15583 }
15584
15585
15586 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15587 PyObject *resultobj = 0;
15588 wxLocale *arg1 = (wxLocale *) 0 ;
15589 void *argp1 = 0 ;
15590 int res1 = 0 ;
15591 PyObject *swig_obj[1] ;
15592
15593 if (!args) SWIG_fail;
15594 swig_obj[0] = args;
15595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15596 if (!SWIG_IsOK(res1)) {
15597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15598 }
15599 arg1 = reinterpret_cast< wxLocale * >(argp1);
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 delete arg1;
15603
15604 wxPyEndAllowThreads(__tstate);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 }
15607 resultobj = SWIG_Py_Void();
15608 return resultobj;
15609 fail:
15610 return NULL;
15611 }
15612
15613
15614 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15615 PyObject *resultobj = 0;
15616 wxLocale *arg1 = (wxLocale *) 0 ;
15617 wxString *arg2 = 0 ;
15618 wxString const &arg3_defvalue = wxPyEmptyString ;
15619 wxString *arg3 = (wxString *) &arg3_defvalue ;
15620 wxString const &arg4_defvalue = wxPyEmptyString ;
15621 wxString *arg4 = (wxString *) &arg4_defvalue ;
15622 bool arg5 = (bool) true ;
15623 bool arg6 = (bool) false ;
15624 bool result;
15625 void *argp1 = 0 ;
15626 int res1 = 0 ;
15627 bool temp2 = false ;
15628 bool temp3 = false ;
15629 bool temp4 = false ;
15630 bool val5 ;
15631 int ecode5 = 0 ;
15632 bool val6 ;
15633 int ecode6 = 0 ;
15634 PyObject * obj0 = 0 ;
15635 PyObject * obj1 = 0 ;
15636 PyObject * obj2 = 0 ;
15637 PyObject * obj3 = 0 ;
15638 PyObject * obj4 = 0 ;
15639 PyObject * obj5 = 0 ;
15640 char * kwnames[] = {
15641 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15642 };
15643
15644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15646 if (!SWIG_IsOK(res1)) {
15647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15648 }
15649 arg1 = reinterpret_cast< wxLocale * >(argp1);
15650 {
15651 arg2 = wxString_in_helper(obj1);
15652 if (arg2 == NULL) SWIG_fail;
15653 temp2 = true;
15654 }
15655 if (obj2) {
15656 {
15657 arg3 = wxString_in_helper(obj2);
15658 if (arg3 == NULL) SWIG_fail;
15659 temp3 = true;
15660 }
15661 }
15662 if (obj3) {
15663 {
15664 arg4 = wxString_in_helper(obj3);
15665 if (arg4 == NULL) SWIG_fail;
15666 temp4 = true;
15667 }
15668 }
15669 if (obj4) {
15670 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15671 if (!SWIG_IsOK(ecode5)) {
15672 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15673 }
15674 arg5 = static_cast< bool >(val5);
15675 }
15676 if (obj5) {
15677 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15678 if (!SWIG_IsOK(ecode6)) {
15679 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15680 }
15681 arg6 = static_cast< bool >(val6);
15682 }
15683 {
15684 PyThreadState* __tstate = wxPyBeginAllowThreads();
15685 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15686 wxPyEndAllowThreads(__tstate);
15687 if (PyErr_Occurred()) SWIG_fail;
15688 }
15689 {
15690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15691 }
15692 {
15693 if (temp2)
15694 delete arg2;
15695 }
15696 {
15697 if (temp3)
15698 delete arg3;
15699 }
15700 {
15701 if (temp4)
15702 delete arg4;
15703 }
15704 return resultobj;
15705 fail:
15706 {
15707 if (temp2)
15708 delete arg2;
15709 }
15710 {
15711 if (temp3)
15712 delete arg3;
15713 }
15714 {
15715 if (temp4)
15716 delete arg4;
15717 }
15718 return NULL;
15719 }
15720
15721
15722 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15723 PyObject *resultobj = 0;
15724 wxLocale *arg1 = (wxLocale *) 0 ;
15725 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15726 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15727 bool result;
15728 void *argp1 = 0 ;
15729 int res1 = 0 ;
15730 int val2 ;
15731 int ecode2 = 0 ;
15732 int val3 ;
15733 int ecode3 = 0 ;
15734 PyObject * obj0 = 0 ;
15735 PyObject * obj1 = 0 ;
15736 PyObject * obj2 = 0 ;
15737 char * kwnames[] = {
15738 (char *) "self",(char *) "language",(char *) "flags", NULL
15739 };
15740
15741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15743 if (!SWIG_IsOK(res1)) {
15744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15745 }
15746 arg1 = reinterpret_cast< wxLocale * >(argp1);
15747 if (obj1) {
15748 ecode2 = SWIG_AsVal_int(obj1, &val2);
15749 if (!SWIG_IsOK(ecode2)) {
15750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15751 }
15752 arg2 = static_cast< int >(val2);
15753 }
15754 if (obj2) {
15755 ecode3 = SWIG_AsVal_int(obj2, &val3);
15756 if (!SWIG_IsOK(ecode3)) {
15757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15758 }
15759 arg3 = static_cast< int >(val3);
15760 }
15761 {
15762 PyThreadState* __tstate = wxPyBeginAllowThreads();
15763 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15764 wxPyEndAllowThreads(__tstate);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 {
15768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15769 }
15770 return resultobj;
15771 fail:
15772 return NULL;
15773 }
15774
15775
15776 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15777 PyObject *resultobj = 0;
15778 int result;
15779
15780 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15781 {
15782 PyThreadState* __tstate = wxPyBeginAllowThreads();
15783 result = (int)wxLocale::GetSystemLanguage();
15784 wxPyEndAllowThreads(__tstate);
15785 if (PyErr_Occurred()) SWIG_fail;
15786 }
15787 resultobj = SWIG_From_int(static_cast< int >(result));
15788 return resultobj;
15789 fail:
15790 return NULL;
15791 }
15792
15793
15794 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15795 PyObject *resultobj = 0;
15796 wxFontEncoding result;
15797
15798 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15799 {
15800 PyThreadState* __tstate = wxPyBeginAllowThreads();
15801 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15802 wxPyEndAllowThreads(__tstate);
15803 if (PyErr_Occurred()) SWIG_fail;
15804 }
15805 resultobj = SWIG_From_int(static_cast< int >(result));
15806 return resultobj;
15807 fail:
15808 return NULL;
15809 }
15810
15811
15812 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15813 PyObject *resultobj = 0;
15814 wxString result;
15815
15816 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = wxLocale::GetSystemEncodingName();
15820 wxPyEndAllowThreads(__tstate);
15821 if (PyErr_Occurred()) SWIG_fail;
15822 }
15823 {
15824 #if wxUSE_UNICODE
15825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15826 #else
15827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15828 #endif
15829 }
15830 return resultobj;
15831 fail:
15832 return NULL;
15833 }
15834
15835
15836 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15837 PyObject *resultobj = 0;
15838 wxLocale *arg1 = (wxLocale *) 0 ;
15839 bool result;
15840 void *argp1 = 0 ;
15841 int res1 = 0 ;
15842 PyObject *swig_obj[1] ;
15843
15844 if (!args) SWIG_fail;
15845 swig_obj[0] = args;
15846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15849 }
15850 arg1 = reinterpret_cast< wxLocale * >(argp1);
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = (bool)((wxLocale const *)arg1)->IsOk();
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 {
15858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15859 }
15860 return resultobj;
15861 fail:
15862 return NULL;
15863 }
15864
15865
15866 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15867 PyObject *resultobj = 0;
15868 wxLocale *arg1 = (wxLocale *) 0 ;
15869 wxString result;
15870 void *argp1 = 0 ;
15871 int res1 = 0 ;
15872 PyObject *swig_obj[1] ;
15873
15874 if (!args) SWIG_fail;
15875 swig_obj[0] = args;
15876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15877 if (!SWIG_IsOK(res1)) {
15878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15879 }
15880 arg1 = reinterpret_cast< wxLocale * >(argp1);
15881 {
15882 PyThreadState* __tstate = wxPyBeginAllowThreads();
15883 result = ((wxLocale const *)arg1)->GetLocale();
15884 wxPyEndAllowThreads(__tstate);
15885 if (PyErr_Occurred()) SWIG_fail;
15886 }
15887 {
15888 #if wxUSE_UNICODE
15889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15890 #else
15891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15892 #endif
15893 }
15894 return resultobj;
15895 fail:
15896 return NULL;
15897 }
15898
15899
15900 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15901 PyObject *resultobj = 0;
15902 wxLocale *arg1 = (wxLocale *) 0 ;
15903 int result;
15904 void *argp1 = 0 ;
15905 int res1 = 0 ;
15906 PyObject *swig_obj[1] ;
15907
15908 if (!args) SWIG_fail;
15909 swig_obj[0] = args;
15910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15911 if (!SWIG_IsOK(res1)) {
15912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15913 }
15914 arg1 = reinterpret_cast< wxLocale * >(argp1);
15915 {
15916 PyThreadState* __tstate = wxPyBeginAllowThreads();
15917 result = (int)((wxLocale const *)arg1)->GetLanguage();
15918 wxPyEndAllowThreads(__tstate);
15919 if (PyErr_Occurred()) SWIG_fail;
15920 }
15921 resultobj = SWIG_From_int(static_cast< int >(result));
15922 return resultobj;
15923 fail:
15924 return NULL;
15925 }
15926
15927
15928 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15929 PyObject *resultobj = 0;
15930 wxLocale *arg1 = (wxLocale *) 0 ;
15931 wxString result;
15932 void *argp1 = 0 ;
15933 int res1 = 0 ;
15934 PyObject *swig_obj[1] ;
15935
15936 if (!args) SWIG_fail;
15937 swig_obj[0] = args;
15938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15939 if (!SWIG_IsOK(res1)) {
15940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15941 }
15942 arg1 = reinterpret_cast< wxLocale * >(argp1);
15943 {
15944 PyThreadState* __tstate = wxPyBeginAllowThreads();
15945 result = ((wxLocale const *)arg1)->GetSysName();
15946 wxPyEndAllowThreads(__tstate);
15947 if (PyErr_Occurred()) SWIG_fail;
15948 }
15949 {
15950 #if wxUSE_UNICODE
15951 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15952 #else
15953 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15954 #endif
15955 }
15956 return resultobj;
15957 fail:
15958 return NULL;
15959 }
15960
15961
15962 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15963 PyObject *resultobj = 0;
15964 wxLocale *arg1 = (wxLocale *) 0 ;
15965 wxString result;
15966 void *argp1 = 0 ;
15967 int res1 = 0 ;
15968 PyObject *swig_obj[1] ;
15969
15970 if (!args) SWIG_fail;
15971 swig_obj[0] = args;
15972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15973 if (!SWIG_IsOK(res1)) {
15974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15975 }
15976 arg1 = reinterpret_cast< wxLocale * >(argp1);
15977 {
15978 PyThreadState* __tstate = wxPyBeginAllowThreads();
15979 result = ((wxLocale const *)arg1)->GetCanonicalName();
15980 wxPyEndAllowThreads(__tstate);
15981 if (PyErr_Occurred()) SWIG_fail;
15982 }
15983 {
15984 #if wxUSE_UNICODE
15985 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15986 #else
15987 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15988 #endif
15989 }
15990 return resultobj;
15991 fail:
15992 return NULL;
15993 }
15994
15995
15996 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15997 PyObject *resultobj = 0;
15998 wxString *arg1 = 0 ;
15999 bool temp1 = false ;
16000 PyObject * obj0 = 0 ;
16001 char * kwnames[] = {
16002 (char *) "prefix", NULL
16003 };
16004
16005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16006 {
16007 arg1 = wxString_in_helper(obj0);
16008 if (arg1 == NULL) SWIG_fail;
16009 temp1 = true;
16010 }
16011 {
16012 PyThreadState* __tstate = wxPyBeginAllowThreads();
16013 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16014 wxPyEndAllowThreads(__tstate);
16015 if (PyErr_Occurred()) SWIG_fail;
16016 }
16017 resultobj = SWIG_Py_Void();
16018 {
16019 if (temp1)
16020 delete arg1;
16021 }
16022 return resultobj;
16023 fail:
16024 {
16025 if (temp1)
16026 delete arg1;
16027 }
16028 return NULL;
16029 }
16030
16031
16032 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16033 PyObject *resultobj = 0;
16034 wxLocale *arg1 = (wxLocale *) 0 ;
16035 wxString *arg2 = 0 ;
16036 bool result;
16037 void *argp1 = 0 ;
16038 int res1 = 0 ;
16039 bool temp2 = false ;
16040 PyObject * obj0 = 0 ;
16041 PyObject * obj1 = 0 ;
16042 char * kwnames[] = {
16043 (char *) "self",(char *) "szDomain", NULL
16044 };
16045
16046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16048 if (!SWIG_IsOK(res1)) {
16049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16050 }
16051 arg1 = reinterpret_cast< wxLocale * >(argp1);
16052 {
16053 arg2 = wxString_in_helper(obj1);
16054 if (arg2 == NULL) SWIG_fail;
16055 temp2 = true;
16056 }
16057 {
16058 PyThreadState* __tstate = wxPyBeginAllowThreads();
16059 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16060 wxPyEndAllowThreads(__tstate);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 {
16064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16065 }
16066 {
16067 if (temp2)
16068 delete arg2;
16069 }
16070 return resultobj;
16071 fail:
16072 {
16073 if (temp2)
16074 delete arg2;
16075 }
16076 return NULL;
16077 }
16078
16079
16080 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj = 0;
16082 int arg1 ;
16083 bool result;
16084 int val1 ;
16085 int ecode1 = 0 ;
16086 PyObject * obj0 = 0 ;
16087 char * kwnames[] = {
16088 (char *) "lang", NULL
16089 };
16090
16091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16092 ecode1 = SWIG_AsVal_int(obj0, &val1);
16093 if (!SWIG_IsOK(ecode1)) {
16094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16095 }
16096 arg1 = static_cast< int >(val1);
16097 {
16098 PyThreadState* __tstate = wxPyBeginAllowThreads();
16099 result = (bool)wxLocale::IsAvailable(arg1);
16100 wxPyEndAllowThreads(__tstate);
16101 if (PyErr_Occurred()) SWIG_fail;
16102 }
16103 {
16104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16105 }
16106 return resultobj;
16107 fail:
16108 return NULL;
16109 }
16110
16111
16112 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj = 0;
16114 wxLocale *arg1 = (wxLocale *) 0 ;
16115 wxString *arg2 = 0 ;
16116 bool result;
16117 void *argp1 = 0 ;
16118 int res1 = 0 ;
16119 bool temp2 = false ;
16120 PyObject * obj0 = 0 ;
16121 PyObject * obj1 = 0 ;
16122 char * kwnames[] = {
16123 (char *) "self",(char *) "szDomain", NULL
16124 };
16125
16126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16128 if (!SWIG_IsOK(res1)) {
16129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16130 }
16131 arg1 = reinterpret_cast< wxLocale * >(argp1);
16132 {
16133 arg2 = wxString_in_helper(obj1);
16134 if (arg2 == NULL) SWIG_fail;
16135 temp2 = true;
16136 }
16137 {
16138 PyThreadState* __tstate = wxPyBeginAllowThreads();
16139 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16140 wxPyEndAllowThreads(__tstate);
16141 if (PyErr_Occurred()) SWIG_fail;
16142 }
16143 {
16144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16145 }
16146 {
16147 if (temp2)
16148 delete arg2;
16149 }
16150 return resultobj;
16151 fail:
16152 {
16153 if (temp2)
16154 delete arg2;
16155 }
16156 return NULL;
16157 }
16158
16159
16160 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16161 PyObject *resultobj = 0;
16162 int arg1 ;
16163 wxLanguageInfo *result = 0 ;
16164 int val1 ;
16165 int ecode1 = 0 ;
16166 PyObject * obj0 = 0 ;
16167 char * kwnames[] = {
16168 (char *) "lang", NULL
16169 };
16170
16171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16172 ecode1 = SWIG_AsVal_int(obj0, &val1);
16173 if (!SWIG_IsOK(ecode1)) {
16174 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16175 }
16176 arg1 = static_cast< int >(val1);
16177 {
16178 PyThreadState* __tstate = wxPyBeginAllowThreads();
16179 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16180 wxPyEndAllowThreads(__tstate);
16181 if (PyErr_Occurred()) SWIG_fail;
16182 }
16183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16184 return resultobj;
16185 fail:
16186 return NULL;
16187 }
16188
16189
16190 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16191 PyObject *resultobj = 0;
16192 int arg1 ;
16193 wxString result;
16194 int val1 ;
16195 int ecode1 = 0 ;
16196 PyObject * obj0 = 0 ;
16197 char * kwnames[] = {
16198 (char *) "lang", NULL
16199 };
16200
16201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16202 ecode1 = SWIG_AsVal_int(obj0, &val1);
16203 if (!SWIG_IsOK(ecode1)) {
16204 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16205 }
16206 arg1 = static_cast< int >(val1);
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = wxLocale::GetLanguageName(arg1);
16210 wxPyEndAllowThreads(__tstate);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 {
16214 #if wxUSE_UNICODE
16215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16216 #else
16217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16218 #endif
16219 }
16220 return resultobj;
16221 fail:
16222 return NULL;
16223 }
16224
16225
16226 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16227 PyObject *resultobj = 0;
16228 wxString *arg1 = 0 ;
16229 wxLanguageInfo *result = 0 ;
16230 bool temp1 = false ;
16231 PyObject * obj0 = 0 ;
16232 char * kwnames[] = {
16233 (char *) "locale", NULL
16234 };
16235
16236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16237 {
16238 arg1 = wxString_in_helper(obj0);
16239 if (arg1 == NULL) SWIG_fail;
16240 temp1 = true;
16241 }
16242 {
16243 PyThreadState* __tstate = wxPyBeginAllowThreads();
16244 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16245 wxPyEndAllowThreads(__tstate);
16246 if (PyErr_Occurred()) SWIG_fail;
16247 }
16248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16249 {
16250 if (temp1)
16251 delete arg1;
16252 }
16253 return resultobj;
16254 fail:
16255 {
16256 if (temp1)
16257 delete arg1;
16258 }
16259 return NULL;
16260 }
16261
16262
16263 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16264 PyObject *resultobj = 0;
16265 wxLanguageInfo *arg1 = 0 ;
16266 void *argp1 = 0 ;
16267 int res1 = 0 ;
16268 PyObject * obj0 = 0 ;
16269 char * kwnames[] = {
16270 (char *) "info", NULL
16271 };
16272
16273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16274 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16275 if (!SWIG_IsOK(res1)) {
16276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16277 }
16278 if (!argp1) {
16279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16280 }
16281 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 resultobj = SWIG_Py_Void();
16289 return resultobj;
16290 fail:
16291 return NULL;
16292 }
16293
16294
16295 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16296 PyObject *resultobj = 0;
16297 wxLocale *arg1 = (wxLocale *) 0 ;
16298 wxString *arg2 = 0 ;
16299 wxString const &arg3_defvalue = wxPyEmptyString ;
16300 wxString *arg3 = (wxString *) &arg3_defvalue ;
16301 wxString result;
16302 void *argp1 = 0 ;
16303 int res1 = 0 ;
16304 bool temp2 = false ;
16305 bool temp3 = false ;
16306 PyObject * obj0 = 0 ;
16307 PyObject * obj1 = 0 ;
16308 PyObject * obj2 = 0 ;
16309 char * kwnames[] = {
16310 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16311 };
16312
16313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16315 if (!SWIG_IsOK(res1)) {
16316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16317 }
16318 arg1 = reinterpret_cast< wxLocale * >(argp1);
16319 {
16320 arg2 = wxString_in_helper(obj1);
16321 if (arg2 == NULL) SWIG_fail;
16322 temp2 = true;
16323 }
16324 if (obj2) {
16325 {
16326 arg3 = wxString_in_helper(obj2);
16327 if (arg3 == NULL) SWIG_fail;
16328 temp3 = true;
16329 }
16330 }
16331 {
16332 PyThreadState* __tstate = wxPyBeginAllowThreads();
16333 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16334 wxPyEndAllowThreads(__tstate);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 {
16338 #if wxUSE_UNICODE
16339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16340 #else
16341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16342 #endif
16343 }
16344 {
16345 if (temp2)
16346 delete arg2;
16347 }
16348 {
16349 if (temp3)
16350 delete arg3;
16351 }
16352 return resultobj;
16353 fail:
16354 {
16355 if (temp2)
16356 delete arg2;
16357 }
16358 {
16359 if (temp3)
16360 delete arg3;
16361 }
16362 return NULL;
16363 }
16364
16365
16366 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16367 PyObject *resultobj = 0;
16368 wxLocale *arg1 = (wxLocale *) 0 ;
16369 wxString *result = 0 ;
16370 void *argp1 = 0 ;
16371 int res1 = 0 ;
16372 PyObject *swig_obj[1] ;
16373
16374 if (!args) SWIG_fail;
16375 swig_obj[0] = args;
16376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16377 if (!SWIG_IsOK(res1)) {
16378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16379 }
16380 arg1 = reinterpret_cast< wxLocale * >(argp1);
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 {
16384 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16385 result = (wxString *) &_result_ref;
16386 }
16387 wxPyEndAllowThreads(__tstate);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 }
16390 {
16391 #if wxUSE_UNICODE
16392 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16393 #else
16394 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16395 #endif
16396 }
16397 return resultobj;
16398 fail:
16399 return NULL;
16400 }
16401
16402
16403 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16404 PyObject *obj;
16405 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16406 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16407 return SWIG_Py_Void();
16408 }
16409
16410 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16411 return SWIG_Python_InitShadowInstance(args);
16412 }
16413
16414 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16415 PyObject *resultobj = 0;
16416 int arg1 = (int) -1 ;
16417 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16418 wxPyLocale *result = 0 ;
16419 int val1 ;
16420 int ecode1 = 0 ;
16421 int val2 ;
16422 int ecode2 = 0 ;
16423 PyObject * obj0 = 0 ;
16424 PyObject * obj1 = 0 ;
16425 char * kwnames[] = {
16426 (char *) "language",(char *) "flags", NULL
16427 };
16428
16429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16430 if (obj0) {
16431 ecode1 = SWIG_AsVal_int(obj0, &val1);
16432 if (!SWIG_IsOK(ecode1)) {
16433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16434 }
16435 arg1 = static_cast< int >(val1);
16436 }
16437 if (obj1) {
16438 ecode2 = SWIG_AsVal_int(obj1, &val2);
16439 if (!SWIG_IsOK(ecode2)) {
16440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16441 }
16442 arg2 = static_cast< int >(val2);
16443 }
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16447 wxPyEndAllowThreads(__tstate);
16448 if (PyErr_Occurred()) SWIG_fail;
16449 }
16450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16451 return resultobj;
16452 fail:
16453 return NULL;
16454 }
16455
16456
16457 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16458 PyObject *resultobj = 0;
16459 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16460 void *argp1 = 0 ;
16461 int res1 = 0 ;
16462 PyObject *swig_obj[1] ;
16463
16464 if (!args) SWIG_fail;
16465 swig_obj[0] = args;
16466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16467 if (!SWIG_IsOK(res1)) {
16468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16469 }
16470 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16471 {
16472 PyThreadState* __tstate = wxPyBeginAllowThreads();
16473 delete arg1;
16474
16475 wxPyEndAllowThreads(__tstate);
16476 if (PyErr_Occurred()) SWIG_fail;
16477 }
16478 resultobj = SWIG_Py_Void();
16479 return resultobj;
16480 fail:
16481 return NULL;
16482 }
16483
16484
16485 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16486 PyObject *resultobj = 0;
16487 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16488 PyObject *arg2 = (PyObject *) 0 ;
16489 PyObject *arg3 = (PyObject *) 0 ;
16490 void *argp1 = 0 ;
16491 int res1 = 0 ;
16492 PyObject * obj0 = 0 ;
16493 PyObject * obj1 = 0 ;
16494 PyObject * obj2 = 0 ;
16495 char * kwnames[] = {
16496 (char *) "self",(char *) "self",(char *) "_class", NULL
16497 };
16498
16499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16501 if (!SWIG_IsOK(res1)) {
16502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16503 }
16504 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16505 arg2 = obj1;
16506 arg3 = obj2;
16507 {
16508 PyThreadState* __tstate = wxPyBeginAllowThreads();
16509 (arg1)->_setCallbackInfo(arg2,arg3);
16510 wxPyEndAllowThreads(__tstate);
16511 if (PyErr_Occurred()) SWIG_fail;
16512 }
16513 resultobj = SWIG_Py_Void();
16514 return resultobj;
16515 fail:
16516 return NULL;
16517 }
16518
16519
16520 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16521 PyObject *resultobj = 0;
16522 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16523 wxChar *arg2 = (wxChar *) 0 ;
16524 wxChar *arg3 = (wxChar *) NULL ;
16525 wxChar *result = 0 ;
16526 void *argp1 = 0 ;
16527 int res1 = 0 ;
16528 void *argp2 = 0 ;
16529 int res2 = 0 ;
16530 void *argp3 = 0 ;
16531 int res3 = 0 ;
16532 PyObject * obj0 = 0 ;
16533 PyObject * obj1 = 0 ;
16534 PyObject * obj2 = 0 ;
16535 char * kwnames[] = {
16536 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16537 };
16538
16539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16541 if (!SWIG_IsOK(res1)) {
16542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16543 }
16544 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16545 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16546 if (!SWIG_IsOK(res2)) {
16547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16548 }
16549 arg2 = reinterpret_cast< wxChar * >(argp2);
16550 if (obj2) {
16551 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16552 if (!SWIG_IsOK(res3)) {
16553 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16554 }
16555 arg3 = reinterpret_cast< wxChar * >(argp3);
16556 }
16557 {
16558 PyThreadState* __tstate = wxPyBeginAllowThreads();
16559 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16560 wxPyEndAllowThreads(__tstate);
16561 if (PyErr_Occurred()) SWIG_fail;
16562 }
16563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16564 return resultobj;
16565 fail:
16566 return NULL;
16567 }
16568
16569
16570 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16571 PyObject *resultobj = 0;
16572 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16573 wxChar *arg2 = (wxChar *) 0 ;
16574 wxChar *arg3 = (wxChar *) 0 ;
16575 size_t arg4 ;
16576 wxChar *arg5 = (wxChar *) NULL ;
16577 wxChar *result = 0 ;
16578 void *argp1 = 0 ;
16579 int res1 = 0 ;
16580 void *argp2 = 0 ;
16581 int res2 = 0 ;
16582 void *argp3 = 0 ;
16583 int res3 = 0 ;
16584 size_t val4 ;
16585 int ecode4 = 0 ;
16586 void *argp5 = 0 ;
16587 int res5 = 0 ;
16588 PyObject * obj0 = 0 ;
16589 PyObject * obj1 = 0 ;
16590 PyObject * obj2 = 0 ;
16591 PyObject * obj3 = 0 ;
16592 PyObject * obj4 = 0 ;
16593 char * kwnames[] = {
16594 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16595 };
16596
16597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16599 if (!SWIG_IsOK(res1)) {
16600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16601 }
16602 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16603 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16604 if (!SWIG_IsOK(res2)) {
16605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16606 }
16607 arg2 = reinterpret_cast< wxChar * >(argp2);
16608 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16609 if (!SWIG_IsOK(res3)) {
16610 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16611 }
16612 arg3 = reinterpret_cast< wxChar * >(argp3);
16613 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16614 if (!SWIG_IsOK(ecode4)) {
16615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16616 }
16617 arg4 = static_cast< size_t >(val4);
16618 if (obj4) {
16619 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16620 if (!SWIG_IsOK(res5)) {
16621 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16622 }
16623 arg5 = reinterpret_cast< wxChar * >(argp5);
16624 }
16625 {
16626 PyThreadState* __tstate = wxPyBeginAllowThreads();
16627 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16628 wxPyEndAllowThreads(__tstate);
16629 if (PyErr_Occurred()) SWIG_fail;
16630 }
16631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16632 return resultobj;
16633 fail:
16634 return NULL;
16635 }
16636
16637
16638 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16639 PyObject *obj;
16640 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16641 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16642 return SWIG_Py_Void();
16643 }
16644
16645 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16646 return SWIG_Python_InitShadowInstance(args);
16647 }
16648
16649 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16650 PyObject *resultobj = 0;
16651 wxLocale *result = 0 ;
16652
16653 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16654 {
16655 PyThreadState* __tstate = wxPyBeginAllowThreads();
16656 result = (wxLocale *)wxGetLocale();
16657 wxPyEndAllowThreads(__tstate);
16658 if (PyErr_Occurred()) SWIG_fail;
16659 }
16660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16661 return resultobj;
16662 fail:
16663 return NULL;
16664 }
16665
16666
16667 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16668 PyObject *resultobj = 0;
16669 wxString *arg1 = 0 ;
16670 wxString result;
16671 bool temp1 = false ;
16672
16673 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16674 {
16675 arg1 = wxString_in_helper(swig_obj[0]);
16676 if (arg1 == NULL) SWIG_fail;
16677 temp1 = true;
16678 }
16679 {
16680 PyThreadState* __tstate = wxPyBeginAllowThreads();
16681 result = wxGetTranslation((wxString const &)*arg1);
16682 wxPyEndAllowThreads(__tstate);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 {
16686 #if wxUSE_UNICODE
16687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16688 #else
16689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16690 #endif
16691 }
16692 {
16693 if (temp1)
16694 delete arg1;
16695 }
16696 return resultobj;
16697 fail:
16698 {
16699 if (temp1)
16700 delete arg1;
16701 }
16702 return NULL;
16703 }
16704
16705
16706 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16707 PyObject *resultobj = 0;
16708 wxString *arg1 = 0 ;
16709 wxString *arg2 = 0 ;
16710 wxString result;
16711 bool temp1 = false ;
16712 bool temp2 = false ;
16713
16714 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16715 {
16716 arg1 = wxString_in_helper(swig_obj[0]);
16717 if (arg1 == NULL) SWIG_fail;
16718 temp1 = true;
16719 }
16720 {
16721 arg2 = wxString_in_helper(swig_obj[1]);
16722 if (arg2 == NULL) SWIG_fail;
16723 temp2 = true;
16724 }
16725 {
16726 PyThreadState* __tstate = wxPyBeginAllowThreads();
16727 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16728 wxPyEndAllowThreads(__tstate);
16729 if (PyErr_Occurred()) SWIG_fail;
16730 }
16731 {
16732 #if wxUSE_UNICODE
16733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16734 #else
16735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16736 #endif
16737 }
16738 {
16739 if (temp1)
16740 delete arg1;
16741 }
16742 {
16743 if (temp2)
16744 delete arg2;
16745 }
16746 return resultobj;
16747 fail:
16748 {
16749 if (temp1)
16750 delete arg1;
16751 }
16752 {
16753 if (temp2)
16754 delete arg2;
16755 }
16756 return NULL;
16757 }
16758
16759
16760 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16761 PyObject *resultobj = 0;
16762 wxString *arg1 = 0 ;
16763 wxString *arg2 = 0 ;
16764 size_t arg3 ;
16765 wxString result;
16766 bool temp1 = false ;
16767 bool temp2 = false ;
16768 size_t val3 ;
16769 int ecode3 = 0 ;
16770
16771 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16772 {
16773 arg1 = wxString_in_helper(swig_obj[0]);
16774 if (arg1 == NULL) SWIG_fail;
16775 temp1 = true;
16776 }
16777 {
16778 arg2 = wxString_in_helper(swig_obj[1]);
16779 if (arg2 == NULL) SWIG_fail;
16780 temp2 = true;
16781 }
16782 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16783 if (!SWIG_IsOK(ecode3)) {
16784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16785 }
16786 arg3 = static_cast< size_t >(val3);
16787 {
16788 PyThreadState* __tstate = wxPyBeginAllowThreads();
16789 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 {
16794 #if wxUSE_UNICODE
16795 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16796 #else
16797 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16798 #endif
16799 }
16800 {
16801 if (temp1)
16802 delete arg1;
16803 }
16804 {
16805 if (temp2)
16806 delete arg2;
16807 }
16808 return resultobj;
16809 fail:
16810 {
16811 if (temp1)
16812 delete arg1;
16813 }
16814 {
16815 if (temp2)
16816 delete arg2;
16817 }
16818 return NULL;
16819 }
16820
16821
16822 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16823 PyObject *resultobj = 0;
16824 wxString *arg1 = 0 ;
16825 wxString *arg2 = 0 ;
16826 size_t arg3 ;
16827 wxString *arg4 = 0 ;
16828 wxString result;
16829 bool temp1 = false ;
16830 bool temp2 = false ;
16831 size_t val3 ;
16832 int ecode3 = 0 ;
16833 bool temp4 = false ;
16834
16835 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16836 {
16837 arg1 = wxString_in_helper(swig_obj[0]);
16838 if (arg1 == NULL) SWIG_fail;
16839 temp1 = true;
16840 }
16841 {
16842 arg2 = wxString_in_helper(swig_obj[1]);
16843 if (arg2 == NULL) SWIG_fail;
16844 temp2 = true;
16845 }
16846 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16847 if (!SWIG_IsOK(ecode3)) {
16848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16849 }
16850 arg3 = static_cast< size_t >(val3);
16851 {
16852 arg4 = wxString_in_helper(swig_obj[3]);
16853 if (arg4 == NULL) SWIG_fail;
16854 temp4 = true;
16855 }
16856 {
16857 PyThreadState* __tstate = wxPyBeginAllowThreads();
16858 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16859 wxPyEndAllowThreads(__tstate);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 }
16862 {
16863 #if wxUSE_UNICODE
16864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16865 #else
16866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16867 #endif
16868 }
16869 {
16870 if (temp1)
16871 delete arg1;
16872 }
16873 {
16874 if (temp2)
16875 delete arg2;
16876 }
16877 {
16878 if (temp4)
16879 delete arg4;
16880 }
16881 return resultobj;
16882 fail:
16883 {
16884 if (temp1)
16885 delete arg1;
16886 }
16887 {
16888 if (temp2)
16889 delete arg2;
16890 }
16891 {
16892 if (temp4)
16893 delete arg4;
16894 }
16895 return NULL;
16896 }
16897
16898
16899 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16900 int argc;
16901 PyObject *argv[5];
16902
16903 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16904 --argc;
16905 if (argc == 1) {
16906 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16907 }
16908 if (argc == 2) {
16909 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16910 }
16911 if (argc == 3) {
16912 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16913 }
16914 if (argc == 4) {
16915 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16916 }
16917
16918 fail:
16919 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16920 return NULL;
16921 }
16922
16923
16924 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16925 PyObject *resultobj = 0;
16926 wxEncodingConverter *result = 0 ;
16927
16928 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16929 {
16930 PyThreadState* __tstate = wxPyBeginAllowThreads();
16931 result = (wxEncodingConverter *)new wxEncodingConverter();
16932 wxPyEndAllowThreads(__tstate);
16933 if (PyErr_Occurred()) SWIG_fail;
16934 }
16935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16936 return resultobj;
16937 fail:
16938 return NULL;
16939 }
16940
16941
16942 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16943 PyObject *resultobj = 0;
16944 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16945 void *argp1 = 0 ;
16946 int res1 = 0 ;
16947 PyObject *swig_obj[1] ;
16948
16949 if (!args) SWIG_fail;
16950 swig_obj[0] = args;
16951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16952 if (!SWIG_IsOK(res1)) {
16953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16954 }
16955 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 delete arg1;
16959
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 resultobj = SWIG_Py_Void();
16964 return resultobj;
16965 fail:
16966 return NULL;
16967 }
16968
16969
16970 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16971 PyObject *resultobj = 0;
16972 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16973 wxFontEncoding arg2 ;
16974 wxFontEncoding arg3 ;
16975 int arg4 = (int) wxCONVERT_STRICT ;
16976 bool result;
16977 void *argp1 = 0 ;
16978 int res1 = 0 ;
16979 int val2 ;
16980 int ecode2 = 0 ;
16981 int val3 ;
16982 int ecode3 = 0 ;
16983 int val4 ;
16984 int ecode4 = 0 ;
16985 PyObject * obj0 = 0 ;
16986 PyObject * obj1 = 0 ;
16987 PyObject * obj2 = 0 ;
16988 PyObject * obj3 = 0 ;
16989 char * kwnames[] = {
16990 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16991 };
16992
16993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16995 if (!SWIG_IsOK(res1)) {
16996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16997 }
16998 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16999 ecode2 = SWIG_AsVal_int(obj1, &val2);
17000 if (!SWIG_IsOK(ecode2)) {
17001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17002 }
17003 arg2 = static_cast< wxFontEncoding >(val2);
17004 ecode3 = SWIG_AsVal_int(obj2, &val3);
17005 if (!SWIG_IsOK(ecode3)) {
17006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17007 }
17008 arg3 = static_cast< wxFontEncoding >(val3);
17009 if (obj3) {
17010 ecode4 = SWIG_AsVal_int(obj3, &val4);
17011 if (!SWIG_IsOK(ecode4)) {
17012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17013 }
17014 arg4 = static_cast< int >(val4);
17015 }
17016 {
17017 PyThreadState* __tstate = wxPyBeginAllowThreads();
17018 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17019 wxPyEndAllowThreads(__tstate);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 }
17022 {
17023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17024 }
17025 return resultobj;
17026 fail:
17027 return NULL;
17028 }
17029
17030
17031 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17032 PyObject *resultobj = 0;
17033 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17034 wxString *arg2 = 0 ;
17035 wxString result;
17036 void *argp1 = 0 ;
17037 int res1 = 0 ;
17038 bool temp2 = false ;
17039 PyObject * obj0 = 0 ;
17040 PyObject * obj1 = 0 ;
17041 char * kwnames[] = {
17042 (char *) "self",(char *) "input", NULL
17043 };
17044
17045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17047 if (!SWIG_IsOK(res1)) {
17048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17049 }
17050 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17051 {
17052 arg2 = wxString_in_helper(obj1);
17053 if (arg2 == NULL) SWIG_fail;
17054 temp2 = true;
17055 }
17056 {
17057 PyThreadState* __tstate = wxPyBeginAllowThreads();
17058 result = (arg1)->Convert((wxString const &)*arg2);
17059 wxPyEndAllowThreads(__tstate);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 {
17063 #if wxUSE_UNICODE
17064 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17065 #else
17066 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17067 #endif
17068 }
17069 {
17070 if (temp2)
17071 delete arg2;
17072 }
17073 return resultobj;
17074 fail:
17075 {
17076 if (temp2)
17077 delete arg2;
17078 }
17079 return NULL;
17080 }
17081
17082
17083 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17084 PyObject *resultobj = 0;
17085 wxFontEncoding arg1 ;
17086 int arg2 = (int) wxPLATFORM_CURRENT ;
17087 wxFontEncodingArray result;
17088 int val1 ;
17089 int ecode1 = 0 ;
17090 int val2 ;
17091 int ecode2 = 0 ;
17092 PyObject * obj0 = 0 ;
17093 PyObject * obj1 = 0 ;
17094 char * kwnames[] = {
17095 (char *) "enc",(char *) "platform", NULL
17096 };
17097
17098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17099 ecode1 = SWIG_AsVal_int(obj0, &val1);
17100 if (!SWIG_IsOK(ecode1)) {
17101 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17102 }
17103 arg1 = static_cast< wxFontEncoding >(val1);
17104 if (obj1) {
17105 ecode2 = SWIG_AsVal_int(obj1, &val2);
17106 if (!SWIG_IsOK(ecode2)) {
17107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17108 }
17109 arg2 = static_cast< int >(val2);
17110 }
17111 {
17112 PyThreadState* __tstate = wxPyBeginAllowThreads();
17113 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17114 wxPyEndAllowThreads(__tstate);
17115 if (PyErr_Occurred()) SWIG_fail;
17116 }
17117 {
17118 resultobj = PyList_New(0);
17119 for (size_t i=0; i < (&result)->GetCount(); i++) {
17120 PyObject* number = PyInt_FromLong((&result)->Item(i));
17121 PyList_Append(resultobj, number);
17122 Py_DECREF(number);
17123 }
17124 }
17125 return resultobj;
17126 fail:
17127 return NULL;
17128 }
17129
17130
17131 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17132 PyObject *resultobj = 0;
17133 wxFontEncoding arg1 ;
17134 wxFontEncodingArray result;
17135 int val1 ;
17136 int ecode1 = 0 ;
17137 PyObject * obj0 = 0 ;
17138 char * kwnames[] = {
17139 (char *) "enc", NULL
17140 };
17141
17142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17143 ecode1 = SWIG_AsVal_int(obj0, &val1);
17144 if (!SWIG_IsOK(ecode1)) {
17145 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17146 }
17147 arg1 = static_cast< wxFontEncoding >(val1);
17148 {
17149 PyThreadState* __tstate = wxPyBeginAllowThreads();
17150 result = wxEncodingConverter::GetAllEquivalents(arg1);
17151 wxPyEndAllowThreads(__tstate);
17152 if (PyErr_Occurred()) SWIG_fail;
17153 }
17154 {
17155 resultobj = PyList_New(0);
17156 for (size_t i=0; i < (&result)->GetCount(); i++) {
17157 PyObject* number = PyInt_FromLong((&result)->Item(i));
17158 PyList_Append(resultobj, number);
17159 Py_DECREF(number);
17160 }
17161 }
17162 return resultobj;
17163 fail:
17164 return NULL;
17165 }
17166
17167
17168 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17169 PyObject *resultobj = 0;
17170 wxFontEncoding arg1 ;
17171 wxFontEncoding arg2 ;
17172 bool result;
17173 int val1 ;
17174 int ecode1 = 0 ;
17175 int val2 ;
17176 int ecode2 = 0 ;
17177 PyObject * obj0 = 0 ;
17178 PyObject * obj1 = 0 ;
17179 char * kwnames[] = {
17180 (char *) "encIn",(char *) "encOut", NULL
17181 };
17182
17183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17184 ecode1 = SWIG_AsVal_int(obj0, &val1);
17185 if (!SWIG_IsOK(ecode1)) {
17186 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17187 }
17188 arg1 = static_cast< wxFontEncoding >(val1);
17189 ecode2 = SWIG_AsVal_int(obj1, &val2);
17190 if (!SWIG_IsOK(ecode2)) {
17191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17192 }
17193 arg2 = static_cast< wxFontEncoding >(val2);
17194 {
17195 PyThreadState* __tstate = wxPyBeginAllowThreads();
17196 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17197 wxPyEndAllowThreads(__tstate);
17198 if (PyErr_Occurred()) SWIG_fail;
17199 }
17200 {
17201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17202 }
17203 return resultobj;
17204 fail:
17205 return NULL;
17206 }
17207
17208
17209 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17210 PyObject *obj;
17211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17212 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17213 return SWIG_Py_Void();
17214 }
17215
17216 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17217 return SWIG_Python_InitShadowInstance(args);
17218 }
17219
17220 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17221 PyObject *resultobj = 0;
17222 wxDC *arg1 = (wxDC *) 0 ;
17223 void *argp1 = 0 ;
17224 int res1 = 0 ;
17225 PyObject *swig_obj[1] ;
17226
17227 if (!args) SWIG_fail;
17228 swig_obj[0] = args;
17229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17230 if (!SWIG_IsOK(res1)) {
17231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17232 }
17233 arg1 = reinterpret_cast< wxDC * >(argp1);
17234 {
17235 PyThreadState* __tstate = wxPyBeginAllowThreads();
17236 delete arg1;
17237
17238 wxPyEndAllowThreads(__tstate);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 resultobj = SWIG_Py_Void();
17242 return resultobj;
17243 fail:
17244 return NULL;
17245 }
17246
17247
17248 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17249 PyObject *resultobj = 0;
17250 wxDC *arg1 = (wxDC *) 0 ;
17251 int arg2 ;
17252 int arg3 ;
17253 wxColour *arg4 = 0 ;
17254 int arg5 = (int) wxFLOOD_SURFACE ;
17255 bool result;
17256 void *argp1 = 0 ;
17257 int res1 = 0 ;
17258 int val2 ;
17259 int ecode2 = 0 ;
17260 int val3 ;
17261 int ecode3 = 0 ;
17262 wxColour temp4 ;
17263 int val5 ;
17264 int ecode5 = 0 ;
17265 PyObject * obj0 = 0 ;
17266 PyObject * obj1 = 0 ;
17267 PyObject * obj2 = 0 ;
17268 PyObject * obj3 = 0 ;
17269 PyObject * obj4 = 0 ;
17270 char * kwnames[] = {
17271 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17272 };
17273
17274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17276 if (!SWIG_IsOK(res1)) {
17277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17278 }
17279 arg1 = reinterpret_cast< wxDC * >(argp1);
17280 ecode2 = SWIG_AsVal_int(obj1, &val2);
17281 if (!SWIG_IsOK(ecode2)) {
17282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17283 }
17284 arg2 = static_cast< int >(val2);
17285 ecode3 = SWIG_AsVal_int(obj2, &val3);
17286 if (!SWIG_IsOK(ecode3)) {
17287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17288 }
17289 arg3 = static_cast< int >(val3);
17290 {
17291 arg4 = &temp4;
17292 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17293 }
17294 if (obj4) {
17295 ecode5 = SWIG_AsVal_int(obj4, &val5);
17296 if (!SWIG_IsOK(ecode5)) {
17297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17298 }
17299 arg5 = static_cast< int >(val5);
17300 }
17301 {
17302 PyThreadState* __tstate = wxPyBeginAllowThreads();
17303 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17304 wxPyEndAllowThreads(__tstate);
17305 if (PyErr_Occurred()) SWIG_fail;
17306 }
17307 {
17308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17309 }
17310 return resultobj;
17311 fail:
17312 return NULL;
17313 }
17314
17315
17316 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17317 PyObject *resultobj = 0;
17318 wxDC *arg1 = (wxDC *) 0 ;
17319 wxPoint *arg2 = 0 ;
17320 wxColour *arg3 = 0 ;
17321 int arg4 = (int) wxFLOOD_SURFACE ;
17322 bool result;
17323 void *argp1 = 0 ;
17324 int res1 = 0 ;
17325 wxPoint temp2 ;
17326 wxColour temp3 ;
17327 int val4 ;
17328 int ecode4 = 0 ;
17329 PyObject * obj0 = 0 ;
17330 PyObject * obj1 = 0 ;
17331 PyObject * obj2 = 0 ;
17332 PyObject * obj3 = 0 ;
17333 char * kwnames[] = {
17334 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17335 };
17336
17337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17339 if (!SWIG_IsOK(res1)) {
17340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17341 }
17342 arg1 = reinterpret_cast< wxDC * >(argp1);
17343 {
17344 arg2 = &temp2;
17345 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17346 }
17347 {
17348 arg3 = &temp3;
17349 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17350 }
17351 if (obj3) {
17352 ecode4 = SWIG_AsVal_int(obj3, &val4);
17353 if (!SWIG_IsOK(ecode4)) {
17354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17355 }
17356 arg4 = static_cast< int >(val4);
17357 }
17358 {
17359 PyThreadState* __tstate = wxPyBeginAllowThreads();
17360 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17361 wxPyEndAllowThreads(__tstate);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 {
17365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17366 }
17367 return resultobj;
17368 fail:
17369 return NULL;
17370 }
17371
17372
17373 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj = 0;
17375 wxDC *arg1 = (wxDC *) 0 ;
17376 wxRect *arg2 = 0 ;
17377 wxColour *arg3 = 0 ;
17378 wxColour *arg4 = 0 ;
17379 wxPoint *arg5 = 0 ;
17380 void *argp1 = 0 ;
17381 int res1 = 0 ;
17382 wxRect temp2 ;
17383 wxColour temp3 ;
17384 wxColour temp4 ;
17385 wxPoint temp5 ;
17386 PyObject * obj0 = 0 ;
17387 PyObject * obj1 = 0 ;
17388 PyObject * obj2 = 0 ;
17389 PyObject * obj3 = 0 ;
17390 PyObject * obj4 = 0 ;
17391 char * kwnames[] = {
17392 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17393 };
17394
17395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17397 if (!SWIG_IsOK(res1)) {
17398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17399 }
17400 arg1 = reinterpret_cast< wxDC * >(argp1);
17401 {
17402 arg2 = &temp2;
17403 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17404 }
17405 {
17406 arg3 = &temp3;
17407 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17408 }
17409 {
17410 arg4 = &temp4;
17411 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17412 }
17413 {
17414 arg5 = &temp5;
17415 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17416 }
17417 {
17418 PyThreadState* __tstate = wxPyBeginAllowThreads();
17419 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17420 wxPyEndAllowThreads(__tstate);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 }
17423 resultobj = SWIG_Py_Void();
17424 return resultobj;
17425 fail:
17426 return NULL;
17427 }
17428
17429
17430 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17431 PyObject *resultobj = 0;
17432 wxDC *arg1 = (wxDC *) 0 ;
17433 wxRect *arg2 = 0 ;
17434 wxColour *arg3 = 0 ;
17435 wxColour *arg4 = 0 ;
17436 wxDirection arg5 = (wxDirection) wxEAST ;
17437 void *argp1 = 0 ;
17438 int res1 = 0 ;
17439 wxRect temp2 ;
17440 wxColour temp3 ;
17441 wxColour temp4 ;
17442 int val5 ;
17443 int ecode5 = 0 ;
17444 PyObject * obj0 = 0 ;
17445 PyObject * obj1 = 0 ;
17446 PyObject * obj2 = 0 ;
17447 PyObject * obj3 = 0 ;
17448 PyObject * obj4 = 0 ;
17449 char * kwnames[] = {
17450 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17451 };
17452
17453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17455 if (!SWIG_IsOK(res1)) {
17456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17457 }
17458 arg1 = reinterpret_cast< wxDC * >(argp1);
17459 {
17460 arg2 = &temp2;
17461 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17462 }
17463 {
17464 arg3 = &temp3;
17465 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17466 }
17467 {
17468 arg4 = &temp4;
17469 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17470 }
17471 if (obj4) {
17472 ecode5 = SWIG_AsVal_int(obj4, &val5);
17473 if (!SWIG_IsOK(ecode5)) {
17474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17475 }
17476 arg5 = static_cast< wxDirection >(val5);
17477 }
17478 {
17479 PyThreadState* __tstate = wxPyBeginAllowThreads();
17480 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17481 wxPyEndAllowThreads(__tstate);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 }
17484 resultobj = SWIG_Py_Void();
17485 return resultobj;
17486 fail:
17487 return NULL;
17488 }
17489
17490
17491 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17492 PyObject *resultobj = 0;
17493 wxDC *arg1 = (wxDC *) 0 ;
17494 int arg2 ;
17495 int arg3 ;
17496 wxColour result;
17497 void *argp1 = 0 ;
17498 int res1 = 0 ;
17499 int val2 ;
17500 int ecode2 = 0 ;
17501 int val3 ;
17502 int ecode3 = 0 ;
17503 PyObject * obj0 = 0 ;
17504 PyObject * obj1 = 0 ;
17505 PyObject * obj2 = 0 ;
17506 char * kwnames[] = {
17507 (char *) "self",(char *) "x",(char *) "y", NULL
17508 };
17509
17510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17512 if (!SWIG_IsOK(res1)) {
17513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17514 }
17515 arg1 = reinterpret_cast< wxDC * >(argp1);
17516 ecode2 = SWIG_AsVal_int(obj1, &val2);
17517 if (!SWIG_IsOK(ecode2)) {
17518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17519 }
17520 arg2 = static_cast< int >(val2);
17521 ecode3 = SWIG_AsVal_int(obj2, &val3);
17522 if (!SWIG_IsOK(ecode3)) {
17523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17524 }
17525 arg3 = static_cast< int >(val3);
17526 {
17527 PyThreadState* __tstate = wxPyBeginAllowThreads();
17528 result = wxDC_GetPixel(arg1,arg2,arg3);
17529 wxPyEndAllowThreads(__tstate);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 }
17532 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17533 return resultobj;
17534 fail:
17535 return NULL;
17536 }
17537
17538
17539 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17540 PyObject *resultobj = 0;
17541 wxDC *arg1 = (wxDC *) 0 ;
17542 wxPoint *arg2 = 0 ;
17543 wxColour result;
17544 void *argp1 = 0 ;
17545 int res1 = 0 ;
17546 wxPoint temp2 ;
17547 PyObject * obj0 = 0 ;
17548 PyObject * obj1 = 0 ;
17549 char * kwnames[] = {
17550 (char *) "self",(char *) "pt", NULL
17551 };
17552
17553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17555 if (!SWIG_IsOK(res1)) {
17556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17557 }
17558 arg1 = reinterpret_cast< wxDC * >(argp1);
17559 {
17560 arg2 = &temp2;
17561 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17562 }
17563 {
17564 PyThreadState* __tstate = wxPyBeginAllowThreads();
17565 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17566 wxPyEndAllowThreads(__tstate);
17567 if (PyErr_Occurred()) SWIG_fail;
17568 }
17569 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17570 return resultobj;
17571 fail:
17572 return NULL;
17573 }
17574
17575
17576 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17577 PyObject *resultobj = 0;
17578 wxDC *arg1 = (wxDC *) 0 ;
17579 int arg2 ;
17580 int arg3 ;
17581 int arg4 ;
17582 int arg5 ;
17583 void *argp1 = 0 ;
17584 int res1 = 0 ;
17585 int val2 ;
17586 int ecode2 = 0 ;
17587 int val3 ;
17588 int ecode3 = 0 ;
17589 int val4 ;
17590 int ecode4 = 0 ;
17591 int val5 ;
17592 int ecode5 = 0 ;
17593 PyObject * obj0 = 0 ;
17594 PyObject * obj1 = 0 ;
17595 PyObject * obj2 = 0 ;
17596 PyObject * obj3 = 0 ;
17597 PyObject * obj4 = 0 ;
17598 char * kwnames[] = {
17599 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17600 };
17601
17602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17604 if (!SWIG_IsOK(res1)) {
17605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17606 }
17607 arg1 = reinterpret_cast< wxDC * >(argp1);
17608 ecode2 = SWIG_AsVal_int(obj1, &val2);
17609 if (!SWIG_IsOK(ecode2)) {
17610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17611 }
17612 arg2 = static_cast< int >(val2);
17613 ecode3 = SWIG_AsVal_int(obj2, &val3);
17614 if (!SWIG_IsOK(ecode3)) {
17615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17616 }
17617 arg3 = static_cast< int >(val3);
17618 ecode4 = SWIG_AsVal_int(obj3, &val4);
17619 if (!SWIG_IsOK(ecode4)) {
17620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17621 }
17622 arg4 = static_cast< int >(val4);
17623 ecode5 = SWIG_AsVal_int(obj4, &val5);
17624 if (!SWIG_IsOK(ecode5)) {
17625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17626 }
17627 arg5 = static_cast< int >(val5);
17628 {
17629 PyThreadState* __tstate = wxPyBeginAllowThreads();
17630 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17631 wxPyEndAllowThreads(__tstate);
17632 if (PyErr_Occurred()) SWIG_fail;
17633 }
17634 resultobj = SWIG_Py_Void();
17635 return resultobj;
17636 fail:
17637 return NULL;
17638 }
17639
17640
17641 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17642 PyObject *resultobj = 0;
17643 wxDC *arg1 = (wxDC *) 0 ;
17644 wxPoint *arg2 = 0 ;
17645 wxPoint *arg3 = 0 ;
17646 void *argp1 = 0 ;
17647 int res1 = 0 ;
17648 wxPoint temp2 ;
17649 wxPoint temp3 ;
17650 PyObject * obj0 = 0 ;
17651 PyObject * obj1 = 0 ;
17652 PyObject * obj2 = 0 ;
17653 char * kwnames[] = {
17654 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17655 };
17656
17657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17659 if (!SWIG_IsOK(res1)) {
17660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17661 }
17662 arg1 = reinterpret_cast< wxDC * >(argp1);
17663 {
17664 arg2 = &temp2;
17665 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17666 }
17667 {
17668 arg3 = &temp3;
17669 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17670 }
17671 {
17672 PyThreadState* __tstate = wxPyBeginAllowThreads();
17673 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17674 wxPyEndAllowThreads(__tstate);
17675 if (PyErr_Occurred()) SWIG_fail;
17676 }
17677 resultobj = SWIG_Py_Void();
17678 return resultobj;
17679 fail:
17680 return NULL;
17681 }
17682
17683
17684 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17685 PyObject *resultobj = 0;
17686 wxDC *arg1 = (wxDC *) 0 ;
17687 int arg2 ;
17688 int arg3 ;
17689 void *argp1 = 0 ;
17690 int res1 = 0 ;
17691 int val2 ;
17692 int ecode2 = 0 ;
17693 int val3 ;
17694 int ecode3 = 0 ;
17695 PyObject * obj0 = 0 ;
17696 PyObject * obj1 = 0 ;
17697 PyObject * obj2 = 0 ;
17698 char * kwnames[] = {
17699 (char *) "self",(char *) "x",(char *) "y", NULL
17700 };
17701
17702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17704 if (!SWIG_IsOK(res1)) {
17705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17706 }
17707 arg1 = reinterpret_cast< wxDC * >(argp1);
17708 ecode2 = SWIG_AsVal_int(obj1, &val2);
17709 if (!SWIG_IsOK(ecode2)) {
17710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17711 }
17712 arg2 = static_cast< int >(val2);
17713 ecode3 = SWIG_AsVal_int(obj2, &val3);
17714 if (!SWIG_IsOK(ecode3)) {
17715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17716 }
17717 arg3 = static_cast< int >(val3);
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 (arg1)->CrossHair(arg2,arg3);
17721 wxPyEndAllowThreads(__tstate);
17722 if (PyErr_Occurred()) SWIG_fail;
17723 }
17724 resultobj = SWIG_Py_Void();
17725 return resultobj;
17726 fail:
17727 return NULL;
17728 }
17729
17730
17731 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17732 PyObject *resultobj = 0;
17733 wxDC *arg1 = (wxDC *) 0 ;
17734 wxPoint *arg2 = 0 ;
17735 void *argp1 = 0 ;
17736 int res1 = 0 ;
17737 wxPoint temp2 ;
17738 PyObject * obj0 = 0 ;
17739 PyObject * obj1 = 0 ;
17740 char * kwnames[] = {
17741 (char *) "self",(char *) "pt", NULL
17742 };
17743
17744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17746 if (!SWIG_IsOK(res1)) {
17747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17748 }
17749 arg1 = reinterpret_cast< wxDC * >(argp1);
17750 {
17751 arg2 = &temp2;
17752 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17753 }
17754 {
17755 PyThreadState* __tstate = wxPyBeginAllowThreads();
17756 (arg1)->CrossHair((wxPoint const &)*arg2);
17757 wxPyEndAllowThreads(__tstate);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 resultobj = SWIG_Py_Void();
17761 return resultobj;
17762 fail:
17763 return NULL;
17764 }
17765
17766
17767 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17768 PyObject *resultobj = 0;
17769 wxDC *arg1 = (wxDC *) 0 ;
17770 int arg2 ;
17771 int arg3 ;
17772 int arg4 ;
17773 int arg5 ;
17774 int arg6 ;
17775 int arg7 ;
17776 void *argp1 = 0 ;
17777 int res1 = 0 ;
17778 int val2 ;
17779 int ecode2 = 0 ;
17780 int val3 ;
17781 int ecode3 = 0 ;
17782 int val4 ;
17783 int ecode4 = 0 ;
17784 int val5 ;
17785 int ecode5 = 0 ;
17786 int val6 ;
17787 int ecode6 = 0 ;
17788 int val7 ;
17789 int ecode7 = 0 ;
17790 PyObject * obj0 = 0 ;
17791 PyObject * obj1 = 0 ;
17792 PyObject * obj2 = 0 ;
17793 PyObject * obj3 = 0 ;
17794 PyObject * obj4 = 0 ;
17795 PyObject * obj5 = 0 ;
17796 PyObject * obj6 = 0 ;
17797 char * kwnames[] = {
17798 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17799 };
17800
17801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17803 if (!SWIG_IsOK(res1)) {
17804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17805 }
17806 arg1 = reinterpret_cast< wxDC * >(argp1);
17807 ecode2 = SWIG_AsVal_int(obj1, &val2);
17808 if (!SWIG_IsOK(ecode2)) {
17809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17810 }
17811 arg2 = static_cast< int >(val2);
17812 ecode3 = SWIG_AsVal_int(obj2, &val3);
17813 if (!SWIG_IsOK(ecode3)) {
17814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17815 }
17816 arg3 = static_cast< int >(val3);
17817 ecode4 = SWIG_AsVal_int(obj3, &val4);
17818 if (!SWIG_IsOK(ecode4)) {
17819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17820 }
17821 arg4 = static_cast< int >(val4);
17822 ecode5 = SWIG_AsVal_int(obj4, &val5);
17823 if (!SWIG_IsOK(ecode5)) {
17824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17825 }
17826 arg5 = static_cast< int >(val5);
17827 ecode6 = SWIG_AsVal_int(obj5, &val6);
17828 if (!SWIG_IsOK(ecode6)) {
17829 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17830 }
17831 arg6 = static_cast< int >(val6);
17832 ecode7 = SWIG_AsVal_int(obj6, &val7);
17833 if (!SWIG_IsOK(ecode7)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17835 }
17836 arg7 = static_cast< int >(val7);
17837 {
17838 PyThreadState* __tstate = wxPyBeginAllowThreads();
17839 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17840 wxPyEndAllowThreads(__tstate);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 resultobj = SWIG_Py_Void();
17844 return resultobj;
17845 fail:
17846 return NULL;
17847 }
17848
17849
17850 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17851 PyObject *resultobj = 0;
17852 wxDC *arg1 = (wxDC *) 0 ;
17853 wxPoint *arg2 = 0 ;
17854 wxPoint *arg3 = 0 ;
17855 wxPoint *arg4 = 0 ;
17856 void *argp1 = 0 ;
17857 int res1 = 0 ;
17858 wxPoint temp2 ;
17859 wxPoint temp3 ;
17860 wxPoint temp4 ;
17861 PyObject * obj0 = 0 ;
17862 PyObject * obj1 = 0 ;
17863 PyObject * obj2 = 0 ;
17864 PyObject * obj3 = 0 ;
17865 char * kwnames[] = {
17866 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17867 };
17868
17869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17871 if (!SWIG_IsOK(res1)) {
17872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17873 }
17874 arg1 = reinterpret_cast< wxDC * >(argp1);
17875 {
17876 arg2 = &temp2;
17877 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17878 }
17879 {
17880 arg3 = &temp3;
17881 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17882 }
17883 {
17884 arg4 = &temp4;
17885 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17886 }
17887 {
17888 PyThreadState* __tstate = wxPyBeginAllowThreads();
17889 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17890 wxPyEndAllowThreads(__tstate);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 }
17893 resultobj = SWIG_Py_Void();
17894 return resultobj;
17895 fail:
17896 return NULL;
17897 }
17898
17899
17900 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17901 PyObject *resultobj = 0;
17902 wxDC *arg1 = (wxDC *) 0 ;
17903 int arg2 ;
17904 int arg3 ;
17905 int arg4 ;
17906 int arg5 ;
17907 void *argp1 = 0 ;
17908 int res1 = 0 ;
17909 int val2 ;
17910 int ecode2 = 0 ;
17911 int val3 ;
17912 int ecode3 = 0 ;
17913 int val4 ;
17914 int ecode4 = 0 ;
17915 int val5 ;
17916 int ecode5 = 0 ;
17917 PyObject * obj0 = 0 ;
17918 PyObject * obj1 = 0 ;
17919 PyObject * obj2 = 0 ;
17920 PyObject * obj3 = 0 ;
17921 PyObject * obj4 = 0 ;
17922 char * kwnames[] = {
17923 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17924 };
17925
17926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17928 if (!SWIG_IsOK(res1)) {
17929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17930 }
17931 arg1 = reinterpret_cast< wxDC * >(argp1);
17932 ecode2 = SWIG_AsVal_int(obj1, &val2);
17933 if (!SWIG_IsOK(ecode2)) {
17934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17935 }
17936 arg2 = static_cast< int >(val2);
17937 ecode3 = SWIG_AsVal_int(obj2, &val3);
17938 if (!SWIG_IsOK(ecode3)) {
17939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17940 }
17941 arg3 = static_cast< int >(val3);
17942 ecode4 = SWIG_AsVal_int(obj3, &val4);
17943 if (!SWIG_IsOK(ecode4)) {
17944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17945 }
17946 arg4 = static_cast< int >(val4);
17947 ecode5 = SWIG_AsVal_int(obj4, &val5);
17948 if (!SWIG_IsOK(ecode5)) {
17949 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17950 }
17951 arg5 = static_cast< int >(val5);
17952 {
17953 PyThreadState* __tstate = wxPyBeginAllowThreads();
17954 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17955 wxPyEndAllowThreads(__tstate);
17956 if (PyErr_Occurred()) SWIG_fail;
17957 }
17958 resultobj = SWIG_Py_Void();
17959 return resultobj;
17960 fail:
17961 return NULL;
17962 }
17963
17964
17965 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17966 PyObject *resultobj = 0;
17967 wxDC *arg1 = (wxDC *) 0 ;
17968 wxRect *arg2 = 0 ;
17969 void *argp1 = 0 ;
17970 int res1 = 0 ;
17971 wxRect temp2 ;
17972 PyObject * obj0 = 0 ;
17973 PyObject * obj1 = 0 ;
17974 char * kwnames[] = {
17975 (char *) "self",(char *) "rect", NULL
17976 };
17977
17978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17980 if (!SWIG_IsOK(res1)) {
17981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17982 }
17983 arg1 = reinterpret_cast< wxDC * >(argp1);
17984 {
17985 arg2 = &temp2;
17986 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17987 }
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17991 wxPyEndAllowThreads(__tstate);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 }
17994 resultobj = SWIG_Py_Void();
17995 return resultobj;
17996 fail:
17997 return NULL;
17998 }
17999
18000
18001 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18002 PyObject *resultobj = 0;
18003 wxDC *arg1 = (wxDC *) 0 ;
18004 int arg2 ;
18005 int arg3 ;
18006 int arg4 ;
18007 int arg5 ;
18008 double arg6 ;
18009 double arg7 ;
18010 void *argp1 = 0 ;
18011 int res1 = 0 ;
18012 int val2 ;
18013 int ecode2 = 0 ;
18014 int val3 ;
18015 int ecode3 = 0 ;
18016 int val4 ;
18017 int ecode4 = 0 ;
18018 int val5 ;
18019 int ecode5 = 0 ;
18020 double val6 ;
18021 int ecode6 = 0 ;
18022 double val7 ;
18023 int ecode7 = 0 ;
18024 PyObject * obj0 = 0 ;
18025 PyObject * obj1 = 0 ;
18026 PyObject * obj2 = 0 ;
18027 PyObject * obj3 = 0 ;
18028 PyObject * obj4 = 0 ;
18029 PyObject * obj5 = 0 ;
18030 PyObject * obj6 = 0 ;
18031 char * kwnames[] = {
18032 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18033 };
18034
18035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18037 if (!SWIG_IsOK(res1)) {
18038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18039 }
18040 arg1 = reinterpret_cast< wxDC * >(argp1);
18041 ecode2 = SWIG_AsVal_int(obj1, &val2);
18042 if (!SWIG_IsOK(ecode2)) {
18043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18044 }
18045 arg2 = static_cast< int >(val2);
18046 ecode3 = SWIG_AsVal_int(obj2, &val3);
18047 if (!SWIG_IsOK(ecode3)) {
18048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18049 }
18050 arg3 = static_cast< int >(val3);
18051 ecode4 = SWIG_AsVal_int(obj3, &val4);
18052 if (!SWIG_IsOK(ecode4)) {
18053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18054 }
18055 arg4 = static_cast< int >(val4);
18056 ecode5 = SWIG_AsVal_int(obj4, &val5);
18057 if (!SWIG_IsOK(ecode5)) {
18058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18059 }
18060 arg5 = static_cast< int >(val5);
18061 ecode6 = SWIG_AsVal_double(obj5, &val6);
18062 if (!SWIG_IsOK(ecode6)) {
18063 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18064 }
18065 arg6 = static_cast< double >(val6);
18066 ecode7 = SWIG_AsVal_double(obj6, &val7);
18067 if (!SWIG_IsOK(ecode7)) {
18068 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18069 }
18070 arg7 = static_cast< double >(val7);
18071 {
18072 PyThreadState* __tstate = wxPyBeginAllowThreads();
18073 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18074 wxPyEndAllowThreads(__tstate);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 resultobj = SWIG_Py_Void();
18078 return resultobj;
18079 fail:
18080 return NULL;
18081 }
18082
18083
18084 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18085 PyObject *resultobj = 0;
18086 wxDC *arg1 = (wxDC *) 0 ;
18087 wxPoint *arg2 = 0 ;
18088 wxSize *arg3 = 0 ;
18089 double arg4 ;
18090 double arg5 ;
18091 void *argp1 = 0 ;
18092 int res1 = 0 ;
18093 wxPoint temp2 ;
18094 wxSize temp3 ;
18095 double val4 ;
18096 int ecode4 = 0 ;
18097 double val5 ;
18098 int ecode5 = 0 ;
18099 PyObject * obj0 = 0 ;
18100 PyObject * obj1 = 0 ;
18101 PyObject * obj2 = 0 ;
18102 PyObject * obj3 = 0 ;
18103 PyObject * obj4 = 0 ;
18104 char * kwnames[] = {
18105 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18106 };
18107
18108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18110 if (!SWIG_IsOK(res1)) {
18111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18112 }
18113 arg1 = reinterpret_cast< wxDC * >(argp1);
18114 {
18115 arg2 = &temp2;
18116 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18117 }
18118 {
18119 arg3 = &temp3;
18120 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18121 }
18122 ecode4 = SWIG_AsVal_double(obj3, &val4);
18123 if (!SWIG_IsOK(ecode4)) {
18124 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18125 }
18126 arg4 = static_cast< double >(val4);
18127 ecode5 = SWIG_AsVal_double(obj4, &val5);
18128 if (!SWIG_IsOK(ecode5)) {
18129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18130 }
18131 arg5 = static_cast< double >(val5);
18132 {
18133 PyThreadState* __tstate = wxPyBeginAllowThreads();
18134 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 resultobj = SWIG_Py_Void();
18139 return resultobj;
18140 fail:
18141 return NULL;
18142 }
18143
18144
18145 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18146 PyObject *resultobj = 0;
18147 wxDC *arg1 = (wxDC *) 0 ;
18148 int arg2 ;
18149 int arg3 ;
18150 void *argp1 = 0 ;
18151 int res1 = 0 ;
18152 int val2 ;
18153 int ecode2 = 0 ;
18154 int val3 ;
18155 int ecode3 = 0 ;
18156 PyObject * obj0 = 0 ;
18157 PyObject * obj1 = 0 ;
18158 PyObject * obj2 = 0 ;
18159 char * kwnames[] = {
18160 (char *) "self",(char *) "x",(char *) "y", NULL
18161 };
18162
18163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18165 if (!SWIG_IsOK(res1)) {
18166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18167 }
18168 arg1 = reinterpret_cast< wxDC * >(argp1);
18169 ecode2 = SWIG_AsVal_int(obj1, &val2);
18170 if (!SWIG_IsOK(ecode2)) {
18171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18172 }
18173 arg2 = static_cast< int >(val2);
18174 ecode3 = SWIG_AsVal_int(obj2, &val3);
18175 if (!SWIG_IsOK(ecode3)) {
18176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18177 }
18178 arg3 = static_cast< int >(val3);
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 (arg1)->DrawPoint(arg2,arg3);
18182 wxPyEndAllowThreads(__tstate);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 }
18185 resultobj = SWIG_Py_Void();
18186 return resultobj;
18187 fail:
18188 return NULL;
18189 }
18190
18191
18192 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18193 PyObject *resultobj = 0;
18194 wxDC *arg1 = (wxDC *) 0 ;
18195 wxPoint *arg2 = 0 ;
18196 void *argp1 = 0 ;
18197 int res1 = 0 ;
18198 wxPoint temp2 ;
18199 PyObject * obj0 = 0 ;
18200 PyObject * obj1 = 0 ;
18201 char * kwnames[] = {
18202 (char *) "self",(char *) "pt", NULL
18203 };
18204
18205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18207 if (!SWIG_IsOK(res1)) {
18208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18209 }
18210 arg1 = reinterpret_cast< wxDC * >(argp1);
18211 {
18212 arg2 = &temp2;
18213 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18214 }
18215 {
18216 PyThreadState* __tstate = wxPyBeginAllowThreads();
18217 (arg1)->DrawPoint((wxPoint const &)*arg2);
18218 wxPyEndAllowThreads(__tstate);
18219 if (PyErr_Occurred()) SWIG_fail;
18220 }
18221 resultobj = SWIG_Py_Void();
18222 return resultobj;
18223 fail:
18224 return NULL;
18225 }
18226
18227
18228 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18229 PyObject *resultobj = 0;
18230 wxDC *arg1 = (wxDC *) 0 ;
18231 int arg2 ;
18232 int arg3 ;
18233 int arg4 ;
18234 int arg5 ;
18235 void *argp1 = 0 ;
18236 int res1 = 0 ;
18237 int val2 ;
18238 int ecode2 = 0 ;
18239 int val3 ;
18240 int ecode3 = 0 ;
18241 int val4 ;
18242 int ecode4 = 0 ;
18243 int val5 ;
18244 int ecode5 = 0 ;
18245 PyObject * obj0 = 0 ;
18246 PyObject * obj1 = 0 ;
18247 PyObject * obj2 = 0 ;
18248 PyObject * obj3 = 0 ;
18249 PyObject * obj4 = 0 ;
18250 char * kwnames[] = {
18251 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18252 };
18253
18254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18256 if (!SWIG_IsOK(res1)) {
18257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18258 }
18259 arg1 = reinterpret_cast< wxDC * >(argp1);
18260 ecode2 = SWIG_AsVal_int(obj1, &val2);
18261 if (!SWIG_IsOK(ecode2)) {
18262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18263 }
18264 arg2 = static_cast< int >(val2);
18265 ecode3 = SWIG_AsVal_int(obj2, &val3);
18266 if (!SWIG_IsOK(ecode3)) {
18267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18268 }
18269 arg3 = static_cast< int >(val3);
18270 ecode4 = SWIG_AsVal_int(obj3, &val4);
18271 if (!SWIG_IsOK(ecode4)) {
18272 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18273 }
18274 arg4 = static_cast< int >(val4);
18275 ecode5 = SWIG_AsVal_int(obj4, &val5);
18276 if (!SWIG_IsOK(ecode5)) {
18277 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18278 }
18279 arg5 = static_cast< int >(val5);
18280 {
18281 PyThreadState* __tstate = wxPyBeginAllowThreads();
18282 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18283 wxPyEndAllowThreads(__tstate);
18284 if (PyErr_Occurred()) SWIG_fail;
18285 }
18286 resultobj = SWIG_Py_Void();
18287 return resultobj;
18288 fail:
18289 return NULL;
18290 }
18291
18292
18293 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18294 PyObject *resultobj = 0;
18295 wxDC *arg1 = (wxDC *) 0 ;
18296 wxRect *arg2 = 0 ;
18297 void *argp1 = 0 ;
18298 int res1 = 0 ;
18299 wxRect temp2 ;
18300 PyObject * obj0 = 0 ;
18301 PyObject * obj1 = 0 ;
18302 char * kwnames[] = {
18303 (char *) "self",(char *) "rect", NULL
18304 };
18305
18306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18308 if (!SWIG_IsOK(res1)) {
18309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18310 }
18311 arg1 = reinterpret_cast< wxDC * >(argp1);
18312 {
18313 arg2 = &temp2;
18314 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18315 }
18316 {
18317 PyThreadState* __tstate = wxPyBeginAllowThreads();
18318 (arg1)->DrawRectangle((wxRect const &)*arg2);
18319 wxPyEndAllowThreads(__tstate);
18320 if (PyErr_Occurred()) SWIG_fail;
18321 }
18322 resultobj = SWIG_Py_Void();
18323 return resultobj;
18324 fail:
18325 return NULL;
18326 }
18327
18328
18329 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18330 PyObject *resultobj = 0;
18331 wxDC *arg1 = (wxDC *) 0 ;
18332 wxPoint *arg2 = 0 ;
18333 wxSize *arg3 = 0 ;
18334 void *argp1 = 0 ;
18335 int res1 = 0 ;
18336 wxPoint temp2 ;
18337 wxSize temp3 ;
18338 PyObject * obj0 = 0 ;
18339 PyObject * obj1 = 0 ;
18340 PyObject * obj2 = 0 ;
18341 char * kwnames[] = {
18342 (char *) "self",(char *) "pt",(char *) "sz", NULL
18343 };
18344
18345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18347 if (!SWIG_IsOK(res1)) {
18348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18349 }
18350 arg1 = reinterpret_cast< wxDC * >(argp1);
18351 {
18352 arg2 = &temp2;
18353 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18354 }
18355 {
18356 arg3 = &temp3;
18357 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18358 }
18359 {
18360 PyThreadState* __tstate = wxPyBeginAllowThreads();
18361 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18362 wxPyEndAllowThreads(__tstate);
18363 if (PyErr_Occurred()) SWIG_fail;
18364 }
18365 resultobj = SWIG_Py_Void();
18366 return resultobj;
18367 fail:
18368 return NULL;
18369 }
18370
18371
18372 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18373 PyObject *resultobj = 0;
18374 wxDC *arg1 = (wxDC *) 0 ;
18375 int arg2 ;
18376 int arg3 ;
18377 int arg4 ;
18378 int arg5 ;
18379 double arg6 ;
18380 void *argp1 = 0 ;
18381 int res1 = 0 ;
18382 int val2 ;
18383 int ecode2 = 0 ;
18384 int val3 ;
18385 int ecode3 = 0 ;
18386 int val4 ;
18387 int ecode4 = 0 ;
18388 int val5 ;
18389 int ecode5 = 0 ;
18390 double val6 ;
18391 int ecode6 = 0 ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 PyObject * obj2 = 0 ;
18395 PyObject * obj3 = 0 ;
18396 PyObject * obj4 = 0 ;
18397 PyObject * obj5 = 0 ;
18398 char * kwnames[] = {
18399 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18400 };
18401
18402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18404 if (!SWIG_IsOK(res1)) {
18405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18406 }
18407 arg1 = reinterpret_cast< wxDC * >(argp1);
18408 ecode2 = SWIG_AsVal_int(obj1, &val2);
18409 if (!SWIG_IsOK(ecode2)) {
18410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18411 }
18412 arg2 = static_cast< int >(val2);
18413 ecode3 = SWIG_AsVal_int(obj2, &val3);
18414 if (!SWIG_IsOK(ecode3)) {
18415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18416 }
18417 arg3 = static_cast< int >(val3);
18418 ecode4 = SWIG_AsVal_int(obj3, &val4);
18419 if (!SWIG_IsOK(ecode4)) {
18420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18421 }
18422 arg4 = static_cast< int >(val4);
18423 ecode5 = SWIG_AsVal_int(obj4, &val5);
18424 if (!SWIG_IsOK(ecode5)) {
18425 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18426 }
18427 arg5 = static_cast< int >(val5);
18428 ecode6 = SWIG_AsVal_double(obj5, &val6);
18429 if (!SWIG_IsOK(ecode6)) {
18430 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18431 }
18432 arg6 = static_cast< double >(val6);
18433 {
18434 PyThreadState* __tstate = wxPyBeginAllowThreads();
18435 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18436 wxPyEndAllowThreads(__tstate);
18437 if (PyErr_Occurred()) SWIG_fail;
18438 }
18439 resultobj = SWIG_Py_Void();
18440 return resultobj;
18441 fail:
18442 return NULL;
18443 }
18444
18445
18446 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18447 PyObject *resultobj = 0;
18448 wxDC *arg1 = (wxDC *) 0 ;
18449 wxRect *arg2 = 0 ;
18450 double arg3 ;
18451 void *argp1 = 0 ;
18452 int res1 = 0 ;
18453 wxRect temp2 ;
18454 double val3 ;
18455 int ecode3 = 0 ;
18456 PyObject * obj0 = 0 ;
18457 PyObject * obj1 = 0 ;
18458 PyObject * obj2 = 0 ;
18459 char * kwnames[] = {
18460 (char *) "self",(char *) "r",(char *) "radius", NULL
18461 };
18462
18463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18465 if (!SWIG_IsOK(res1)) {
18466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18467 }
18468 arg1 = reinterpret_cast< wxDC * >(argp1);
18469 {
18470 arg2 = &temp2;
18471 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18472 }
18473 ecode3 = SWIG_AsVal_double(obj2, &val3);
18474 if (!SWIG_IsOK(ecode3)) {
18475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18476 }
18477 arg3 = static_cast< double >(val3);
18478 {
18479 PyThreadState* __tstate = wxPyBeginAllowThreads();
18480 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18481 wxPyEndAllowThreads(__tstate);
18482 if (PyErr_Occurred()) SWIG_fail;
18483 }
18484 resultobj = SWIG_Py_Void();
18485 return resultobj;
18486 fail:
18487 return NULL;
18488 }
18489
18490
18491 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18492 PyObject *resultobj = 0;
18493 wxDC *arg1 = (wxDC *) 0 ;
18494 wxPoint *arg2 = 0 ;
18495 wxSize *arg3 = 0 ;
18496 double arg4 ;
18497 void *argp1 = 0 ;
18498 int res1 = 0 ;
18499 wxPoint temp2 ;
18500 wxSize temp3 ;
18501 double val4 ;
18502 int ecode4 = 0 ;
18503 PyObject * obj0 = 0 ;
18504 PyObject * obj1 = 0 ;
18505 PyObject * obj2 = 0 ;
18506 PyObject * obj3 = 0 ;
18507 char * kwnames[] = {
18508 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18509 };
18510
18511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18513 if (!SWIG_IsOK(res1)) {
18514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18515 }
18516 arg1 = reinterpret_cast< wxDC * >(argp1);
18517 {
18518 arg2 = &temp2;
18519 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18520 }
18521 {
18522 arg3 = &temp3;
18523 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18524 }
18525 ecode4 = SWIG_AsVal_double(obj3, &val4);
18526 if (!SWIG_IsOK(ecode4)) {
18527 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18528 }
18529 arg4 = static_cast< double >(val4);
18530 {
18531 PyThreadState* __tstate = wxPyBeginAllowThreads();
18532 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 resultobj = SWIG_Py_Void();
18537 return resultobj;
18538 fail:
18539 return NULL;
18540 }
18541
18542
18543 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj = 0;
18545 wxDC *arg1 = (wxDC *) 0 ;
18546 int arg2 ;
18547 int arg3 ;
18548 int arg4 ;
18549 void *argp1 = 0 ;
18550 int res1 = 0 ;
18551 int val2 ;
18552 int ecode2 = 0 ;
18553 int val3 ;
18554 int ecode3 = 0 ;
18555 int val4 ;
18556 int ecode4 = 0 ;
18557 PyObject * obj0 = 0 ;
18558 PyObject * obj1 = 0 ;
18559 PyObject * obj2 = 0 ;
18560 PyObject * obj3 = 0 ;
18561 char * kwnames[] = {
18562 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18563 };
18564
18565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18567 if (!SWIG_IsOK(res1)) {
18568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18569 }
18570 arg1 = reinterpret_cast< wxDC * >(argp1);
18571 ecode2 = SWIG_AsVal_int(obj1, &val2);
18572 if (!SWIG_IsOK(ecode2)) {
18573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18574 }
18575 arg2 = static_cast< int >(val2);
18576 ecode3 = SWIG_AsVal_int(obj2, &val3);
18577 if (!SWIG_IsOK(ecode3)) {
18578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18579 }
18580 arg3 = static_cast< int >(val3);
18581 ecode4 = SWIG_AsVal_int(obj3, &val4);
18582 if (!SWIG_IsOK(ecode4)) {
18583 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18584 }
18585 arg4 = static_cast< int >(val4);
18586 {
18587 PyThreadState* __tstate = wxPyBeginAllowThreads();
18588 (arg1)->DrawCircle(arg2,arg3,arg4);
18589 wxPyEndAllowThreads(__tstate);
18590 if (PyErr_Occurred()) SWIG_fail;
18591 }
18592 resultobj = SWIG_Py_Void();
18593 return resultobj;
18594 fail:
18595 return NULL;
18596 }
18597
18598
18599 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18600 PyObject *resultobj = 0;
18601 wxDC *arg1 = (wxDC *) 0 ;
18602 wxPoint *arg2 = 0 ;
18603 int arg3 ;
18604 void *argp1 = 0 ;
18605 int res1 = 0 ;
18606 wxPoint temp2 ;
18607 int val3 ;
18608 int ecode3 = 0 ;
18609 PyObject * obj0 = 0 ;
18610 PyObject * obj1 = 0 ;
18611 PyObject * obj2 = 0 ;
18612 char * kwnames[] = {
18613 (char *) "self",(char *) "pt",(char *) "radius", NULL
18614 };
18615
18616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18618 if (!SWIG_IsOK(res1)) {
18619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18620 }
18621 arg1 = reinterpret_cast< wxDC * >(argp1);
18622 {
18623 arg2 = &temp2;
18624 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18625 }
18626 ecode3 = SWIG_AsVal_int(obj2, &val3);
18627 if (!SWIG_IsOK(ecode3)) {
18628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18629 }
18630 arg3 = static_cast< int >(val3);
18631 {
18632 PyThreadState* __tstate = wxPyBeginAllowThreads();
18633 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18634 wxPyEndAllowThreads(__tstate);
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 resultobj = SWIG_Py_Void();
18638 return resultobj;
18639 fail:
18640 return NULL;
18641 }
18642
18643
18644 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18645 PyObject *resultobj = 0;
18646 wxDC *arg1 = (wxDC *) 0 ;
18647 int arg2 ;
18648 int arg3 ;
18649 int arg4 ;
18650 int arg5 ;
18651 void *argp1 = 0 ;
18652 int res1 = 0 ;
18653 int val2 ;
18654 int ecode2 = 0 ;
18655 int val3 ;
18656 int ecode3 = 0 ;
18657 int val4 ;
18658 int ecode4 = 0 ;
18659 int val5 ;
18660 int ecode5 = 0 ;
18661 PyObject * obj0 = 0 ;
18662 PyObject * obj1 = 0 ;
18663 PyObject * obj2 = 0 ;
18664 PyObject * obj3 = 0 ;
18665 PyObject * obj4 = 0 ;
18666 char * kwnames[] = {
18667 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18668 };
18669
18670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18672 if (!SWIG_IsOK(res1)) {
18673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18674 }
18675 arg1 = reinterpret_cast< wxDC * >(argp1);
18676 ecode2 = SWIG_AsVal_int(obj1, &val2);
18677 if (!SWIG_IsOK(ecode2)) {
18678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18679 }
18680 arg2 = static_cast< int >(val2);
18681 ecode3 = SWIG_AsVal_int(obj2, &val3);
18682 if (!SWIG_IsOK(ecode3)) {
18683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18684 }
18685 arg3 = static_cast< int >(val3);
18686 ecode4 = SWIG_AsVal_int(obj3, &val4);
18687 if (!SWIG_IsOK(ecode4)) {
18688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18689 }
18690 arg4 = static_cast< int >(val4);
18691 ecode5 = SWIG_AsVal_int(obj4, &val5);
18692 if (!SWIG_IsOK(ecode5)) {
18693 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18694 }
18695 arg5 = static_cast< int >(val5);
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18699 wxPyEndAllowThreads(__tstate);
18700 if (PyErr_Occurred()) SWIG_fail;
18701 }
18702 resultobj = SWIG_Py_Void();
18703 return resultobj;
18704 fail:
18705 return NULL;
18706 }
18707
18708
18709 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18710 PyObject *resultobj = 0;
18711 wxDC *arg1 = (wxDC *) 0 ;
18712 wxRect *arg2 = 0 ;
18713 void *argp1 = 0 ;
18714 int res1 = 0 ;
18715 wxRect temp2 ;
18716 PyObject * obj0 = 0 ;
18717 PyObject * obj1 = 0 ;
18718 char * kwnames[] = {
18719 (char *) "self",(char *) "rect", NULL
18720 };
18721
18722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18724 if (!SWIG_IsOK(res1)) {
18725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18726 }
18727 arg1 = reinterpret_cast< wxDC * >(argp1);
18728 {
18729 arg2 = &temp2;
18730 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18731 }
18732 {
18733 PyThreadState* __tstate = wxPyBeginAllowThreads();
18734 (arg1)->DrawEllipse((wxRect const &)*arg2);
18735 wxPyEndAllowThreads(__tstate);
18736 if (PyErr_Occurred()) SWIG_fail;
18737 }
18738 resultobj = SWIG_Py_Void();
18739 return resultobj;
18740 fail:
18741 return NULL;
18742 }
18743
18744
18745 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18746 PyObject *resultobj = 0;
18747 wxDC *arg1 = (wxDC *) 0 ;
18748 wxPoint *arg2 = 0 ;
18749 wxSize *arg3 = 0 ;
18750 void *argp1 = 0 ;
18751 int res1 = 0 ;
18752 wxPoint temp2 ;
18753 wxSize temp3 ;
18754 PyObject * obj0 = 0 ;
18755 PyObject * obj1 = 0 ;
18756 PyObject * obj2 = 0 ;
18757 char * kwnames[] = {
18758 (char *) "self",(char *) "pt",(char *) "sz", NULL
18759 };
18760
18761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18763 if (!SWIG_IsOK(res1)) {
18764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18765 }
18766 arg1 = reinterpret_cast< wxDC * >(argp1);
18767 {
18768 arg2 = &temp2;
18769 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18770 }
18771 {
18772 arg3 = &temp3;
18773 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18774 }
18775 {
18776 PyThreadState* __tstate = wxPyBeginAllowThreads();
18777 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18778 wxPyEndAllowThreads(__tstate);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 resultobj = SWIG_Py_Void();
18782 return resultobj;
18783 fail:
18784 return NULL;
18785 }
18786
18787
18788 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj = 0;
18790 wxDC *arg1 = (wxDC *) 0 ;
18791 wxIcon *arg2 = 0 ;
18792 int arg3 ;
18793 int arg4 ;
18794 void *argp1 = 0 ;
18795 int res1 = 0 ;
18796 void *argp2 = 0 ;
18797 int res2 = 0 ;
18798 int val3 ;
18799 int ecode3 = 0 ;
18800 int val4 ;
18801 int ecode4 = 0 ;
18802 PyObject * obj0 = 0 ;
18803 PyObject * obj1 = 0 ;
18804 PyObject * obj2 = 0 ;
18805 PyObject * obj3 = 0 ;
18806 char * kwnames[] = {
18807 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18808 };
18809
18810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18812 if (!SWIG_IsOK(res1)) {
18813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18814 }
18815 arg1 = reinterpret_cast< wxDC * >(argp1);
18816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18817 if (!SWIG_IsOK(res2)) {
18818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18819 }
18820 if (!argp2) {
18821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18822 }
18823 arg2 = reinterpret_cast< wxIcon * >(argp2);
18824 ecode3 = SWIG_AsVal_int(obj2, &val3);
18825 if (!SWIG_IsOK(ecode3)) {
18826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18827 }
18828 arg3 = static_cast< int >(val3);
18829 ecode4 = SWIG_AsVal_int(obj3, &val4);
18830 if (!SWIG_IsOK(ecode4)) {
18831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18832 }
18833 arg4 = static_cast< int >(val4);
18834 {
18835 PyThreadState* __tstate = wxPyBeginAllowThreads();
18836 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18837 wxPyEndAllowThreads(__tstate);
18838 if (PyErr_Occurred()) SWIG_fail;
18839 }
18840 resultobj = SWIG_Py_Void();
18841 return resultobj;
18842 fail:
18843 return NULL;
18844 }
18845
18846
18847 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18848 PyObject *resultobj = 0;
18849 wxDC *arg1 = (wxDC *) 0 ;
18850 wxIcon *arg2 = 0 ;
18851 wxPoint *arg3 = 0 ;
18852 void *argp1 = 0 ;
18853 int res1 = 0 ;
18854 void *argp2 = 0 ;
18855 int res2 = 0 ;
18856 wxPoint temp3 ;
18857 PyObject * obj0 = 0 ;
18858 PyObject * obj1 = 0 ;
18859 PyObject * obj2 = 0 ;
18860 char * kwnames[] = {
18861 (char *) "self",(char *) "icon",(char *) "pt", NULL
18862 };
18863
18864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18866 if (!SWIG_IsOK(res1)) {
18867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18868 }
18869 arg1 = reinterpret_cast< wxDC * >(argp1);
18870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18871 if (!SWIG_IsOK(res2)) {
18872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18873 }
18874 if (!argp2) {
18875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18876 }
18877 arg2 = reinterpret_cast< wxIcon * >(argp2);
18878 {
18879 arg3 = &temp3;
18880 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18881 }
18882 {
18883 PyThreadState* __tstate = wxPyBeginAllowThreads();
18884 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18885 wxPyEndAllowThreads(__tstate);
18886 if (PyErr_Occurred()) SWIG_fail;
18887 }
18888 resultobj = SWIG_Py_Void();
18889 return resultobj;
18890 fail:
18891 return NULL;
18892 }
18893
18894
18895 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18896 PyObject *resultobj = 0;
18897 wxDC *arg1 = (wxDC *) 0 ;
18898 wxBitmap *arg2 = 0 ;
18899 int arg3 ;
18900 int arg4 ;
18901 bool arg5 = (bool) false ;
18902 void *argp1 = 0 ;
18903 int res1 = 0 ;
18904 void *argp2 = 0 ;
18905 int res2 = 0 ;
18906 int val3 ;
18907 int ecode3 = 0 ;
18908 int val4 ;
18909 int ecode4 = 0 ;
18910 bool val5 ;
18911 int ecode5 = 0 ;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 PyObject * obj2 = 0 ;
18915 PyObject * obj3 = 0 ;
18916 PyObject * obj4 = 0 ;
18917 char * kwnames[] = {
18918 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18919 };
18920
18921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18923 if (!SWIG_IsOK(res1)) {
18924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18925 }
18926 arg1 = reinterpret_cast< wxDC * >(argp1);
18927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18928 if (!SWIG_IsOK(res2)) {
18929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18930 }
18931 if (!argp2) {
18932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18933 }
18934 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18935 ecode3 = SWIG_AsVal_int(obj2, &val3);
18936 if (!SWIG_IsOK(ecode3)) {
18937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18938 }
18939 arg3 = static_cast< int >(val3);
18940 ecode4 = SWIG_AsVal_int(obj3, &val4);
18941 if (!SWIG_IsOK(ecode4)) {
18942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18943 }
18944 arg4 = static_cast< int >(val4);
18945 if (obj4) {
18946 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18947 if (!SWIG_IsOK(ecode5)) {
18948 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18949 }
18950 arg5 = static_cast< bool >(val5);
18951 }
18952 {
18953 PyThreadState* __tstate = wxPyBeginAllowThreads();
18954 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 resultobj = SWIG_Py_Void();
18959 return resultobj;
18960 fail:
18961 return NULL;
18962 }
18963
18964
18965 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18966 PyObject *resultobj = 0;
18967 wxDC *arg1 = (wxDC *) 0 ;
18968 wxBitmap *arg2 = 0 ;
18969 wxPoint *arg3 = 0 ;
18970 bool arg4 = (bool) false ;
18971 void *argp1 = 0 ;
18972 int res1 = 0 ;
18973 void *argp2 = 0 ;
18974 int res2 = 0 ;
18975 wxPoint temp3 ;
18976 bool val4 ;
18977 int ecode4 = 0 ;
18978 PyObject * obj0 = 0 ;
18979 PyObject * obj1 = 0 ;
18980 PyObject * obj2 = 0 ;
18981 PyObject * obj3 = 0 ;
18982 char * kwnames[] = {
18983 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18984 };
18985
18986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18988 if (!SWIG_IsOK(res1)) {
18989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18990 }
18991 arg1 = reinterpret_cast< wxDC * >(argp1);
18992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18993 if (!SWIG_IsOK(res2)) {
18994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18995 }
18996 if (!argp2) {
18997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18998 }
18999 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19000 {
19001 arg3 = &temp3;
19002 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19003 }
19004 if (obj3) {
19005 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19006 if (!SWIG_IsOK(ecode4)) {
19007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19008 }
19009 arg4 = static_cast< bool >(val4);
19010 }
19011 {
19012 PyThreadState* __tstate = wxPyBeginAllowThreads();
19013 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19014 wxPyEndAllowThreads(__tstate);
19015 if (PyErr_Occurred()) SWIG_fail;
19016 }
19017 resultobj = SWIG_Py_Void();
19018 return resultobj;
19019 fail:
19020 return NULL;
19021 }
19022
19023
19024 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19025 PyObject *resultobj = 0;
19026 wxDC *arg1 = (wxDC *) 0 ;
19027 wxString *arg2 = 0 ;
19028 int arg3 ;
19029 int arg4 ;
19030 void *argp1 = 0 ;
19031 int res1 = 0 ;
19032 bool temp2 = false ;
19033 int val3 ;
19034 int ecode3 = 0 ;
19035 int val4 ;
19036 int ecode4 = 0 ;
19037 PyObject * obj0 = 0 ;
19038 PyObject * obj1 = 0 ;
19039 PyObject * obj2 = 0 ;
19040 PyObject * obj3 = 0 ;
19041 char * kwnames[] = {
19042 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19043 };
19044
19045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19047 if (!SWIG_IsOK(res1)) {
19048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19049 }
19050 arg1 = reinterpret_cast< wxDC * >(argp1);
19051 {
19052 arg2 = wxString_in_helper(obj1);
19053 if (arg2 == NULL) SWIG_fail;
19054 temp2 = true;
19055 }
19056 ecode3 = SWIG_AsVal_int(obj2, &val3);
19057 if (!SWIG_IsOK(ecode3)) {
19058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19059 }
19060 arg3 = static_cast< int >(val3);
19061 ecode4 = SWIG_AsVal_int(obj3, &val4);
19062 if (!SWIG_IsOK(ecode4)) {
19063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19064 }
19065 arg4 = static_cast< int >(val4);
19066 {
19067 PyThreadState* __tstate = wxPyBeginAllowThreads();
19068 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19069 wxPyEndAllowThreads(__tstate);
19070 if (PyErr_Occurred()) SWIG_fail;
19071 }
19072 resultobj = SWIG_Py_Void();
19073 {
19074 if (temp2)
19075 delete arg2;
19076 }
19077 return resultobj;
19078 fail:
19079 {
19080 if (temp2)
19081 delete arg2;
19082 }
19083 return NULL;
19084 }
19085
19086
19087 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19088 PyObject *resultobj = 0;
19089 wxDC *arg1 = (wxDC *) 0 ;
19090 wxString *arg2 = 0 ;
19091 wxPoint *arg3 = 0 ;
19092 void *argp1 = 0 ;
19093 int res1 = 0 ;
19094 bool temp2 = false ;
19095 wxPoint temp3 ;
19096 PyObject * obj0 = 0 ;
19097 PyObject * obj1 = 0 ;
19098 PyObject * obj2 = 0 ;
19099 char * kwnames[] = {
19100 (char *) "self",(char *) "text",(char *) "pt", NULL
19101 };
19102
19103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19105 if (!SWIG_IsOK(res1)) {
19106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19107 }
19108 arg1 = reinterpret_cast< wxDC * >(argp1);
19109 {
19110 arg2 = wxString_in_helper(obj1);
19111 if (arg2 == NULL) SWIG_fail;
19112 temp2 = true;
19113 }
19114 {
19115 arg3 = &temp3;
19116 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19117 }
19118 {
19119 PyThreadState* __tstate = wxPyBeginAllowThreads();
19120 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19121 wxPyEndAllowThreads(__tstate);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 }
19124 resultobj = SWIG_Py_Void();
19125 {
19126 if (temp2)
19127 delete arg2;
19128 }
19129 return resultobj;
19130 fail:
19131 {
19132 if (temp2)
19133 delete arg2;
19134 }
19135 return NULL;
19136 }
19137
19138
19139 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19140 PyObject *resultobj = 0;
19141 wxDC *arg1 = (wxDC *) 0 ;
19142 wxString *arg2 = 0 ;
19143 int arg3 ;
19144 int arg4 ;
19145 double arg5 ;
19146 void *argp1 = 0 ;
19147 int res1 = 0 ;
19148 bool temp2 = false ;
19149 int val3 ;
19150 int ecode3 = 0 ;
19151 int val4 ;
19152 int ecode4 = 0 ;
19153 double val5 ;
19154 int ecode5 = 0 ;
19155 PyObject * obj0 = 0 ;
19156 PyObject * obj1 = 0 ;
19157 PyObject * obj2 = 0 ;
19158 PyObject * obj3 = 0 ;
19159 PyObject * obj4 = 0 ;
19160 char * kwnames[] = {
19161 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19162 };
19163
19164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19166 if (!SWIG_IsOK(res1)) {
19167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19168 }
19169 arg1 = reinterpret_cast< wxDC * >(argp1);
19170 {
19171 arg2 = wxString_in_helper(obj1);
19172 if (arg2 == NULL) SWIG_fail;
19173 temp2 = true;
19174 }
19175 ecode3 = SWIG_AsVal_int(obj2, &val3);
19176 if (!SWIG_IsOK(ecode3)) {
19177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19178 }
19179 arg3 = static_cast< int >(val3);
19180 ecode4 = SWIG_AsVal_int(obj3, &val4);
19181 if (!SWIG_IsOK(ecode4)) {
19182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19183 }
19184 arg4 = static_cast< int >(val4);
19185 ecode5 = SWIG_AsVal_double(obj4, &val5);
19186 if (!SWIG_IsOK(ecode5)) {
19187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19188 }
19189 arg5 = static_cast< double >(val5);
19190 {
19191 PyThreadState* __tstate = wxPyBeginAllowThreads();
19192 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19193 wxPyEndAllowThreads(__tstate);
19194 if (PyErr_Occurred()) SWIG_fail;
19195 }
19196 resultobj = SWIG_Py_Void();
19197 {
19198 if (temp2)
19199 delete arg2;
19200 }
19201 return resultobj;
19202 fail:
19203 {
19204 if (temp2)
19205 delete arg2;
19206 }
19207 return NULL;
19208 }
19209
19210
19211 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19212 PyObject *resultobj = 0;
19213 wxDC *arg1 = (wxDC *) 0 ;
19214 wxString *arg2 = 0 ;
19215 wxPoint *arg3 = 0 ;
19216 double arg4 ;
19217 void *argp1 = 0 ;
19218 int res1 = 0 ;
19219 bool temp2 = false ;
19220 wxPoint temp3 ;
19221 double val4 ;
19222 int ecode4 = 0 ;
19223 PyObject * obj0 = 0 ;
19224 PyObject * obj1 = 0 ;
19225 PyObject * obj2 = 0 ;
19226 PyObject * obj3 = 0 ;
19227 char * kwnames[] = {
19228 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19229 };
19230
19231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19233 if (!SWIG_IsOK(res1)) {
19234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19235 }
19236 arg1 = reinterpret_cast< wxDC * >(argp1);
19237 {
19238 arg2 = wxString_in_helper(obj1);
19239 if (arg2 == NULL) SWIG_fail;
19240 temp2 = true;
19241 }
19242 {
19243 arg3 = &temp3;
19244 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19245 }
19246 ecode4 = SWIG_AsVal_double(obj3, &val4);
19247 if (!SWIG_IsOK(ecode4)) {
19248 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19249 }
19250 arg4 = static_cast< double >(val4);
19251 {
19252 PyThreadState* __tstate = wxPyBeginAllowThreads();
19253 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19254 wxPyEndAllowThreads(__tstate);
19255 if (PyErr_Occurred()) SWIG_fail;
19256 }
19257 resultobj = SWIG_Py_Void();
19258 {
19259 if (temp2)
19260 delete arg2;
19261 }
19262 return resultobj;
19263 fail:
19264 {
19265 if (temp2)
19266 delete arg2;
19267 }
19268 return NULL;
19269 }
19270
19271
19272 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19273 PyObject *resultobj = 0;
19274 wxDC *arg1 = (wxDC *) 0 ;
19275 int arg2 ;
19276 int arg3 ;
19277 int arg4 ;
19278 int arg5 ;
19279 wxDC *arg6 = (wxDC *) 0 ;
19280 int arg7 ;
19281 int arg8 ;
19282 int arg9 = (int) wxCOPY ;
19283 bool arg10 = (bool) false ;
19284 int arg11 = (int) -1 ;
19285 int arg12 = (int) -1 ;
19286 bool result;
19287 void *argp1 = 0 ;
19288 int res1 = 0 ;
19289 int val2 ;
19290 int ecode2 = 0 ;
19291 int val3 ;
19292 int ecode3 = 0 ;
19293 int val4 ;
19294 int ecode4 = 0 ;
19295 int val5 ;
19296 int ecode5 = 0 ;
19297 void *argp6 = 0 ;
19298 int res6 = 0 ;
19299 int val7 ;
19300 int ecode7 = 0 ;
19301 int val8 ;
19302 int ecode8 = 0 ;
19303 int val9 ;
19304 int ecode9 = 0 ;
19305 bool val10 ;
19306 int ecode10 = 0 ;
19307 int val11 ;
19308 int ecode11 = 0 ;
19309 int val12 ;
19310 int ecode12 = 0 ;
19311 PyObject * obj0 = 0 ;
19312 PyObject * obj1 = 0 ;
19313 PyObject * obj2 = 0 ;
19314 PyObject * obj3 = 0 ;
19315 PyObject * obj4 = 0 ;
19316 PyObject * obj5 = 0 ;
19317 PyObject * obj6 = 0 ;
19318 PyObject * obj7 = 0 ;
19319 PyObject * obj8 = 0 ;
19320 PyObject * obj9 = 0 ;
19321 PyObject * obj10 = 0 ;
19322 PyObject * obj11 = 0 ;
19323 char * kwnames[] = {
19324 (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
19325 };
19326
19327 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;
19328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19329 if (!SWIG_IsOK(res1)) {
19330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19331 }
19332 arg1 = reinterpret_cast< wxDC * >(argp1);
19333 ecode2 = SWIG_AsVal_int(obj1, &val2);
19334 if (!SWIG_IsOK(ecode2)) {
19335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19336 }
19337 arg2 = static_cast< int >(val2);
19338 ecode3 = SWIG_AsVal_int(obj2, &val3);
19339 if (!SWIG_IsOK(ecode3)) {
19340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19341 }
19342 arg3 = static_cast< int >(val3);
19343 ecode4 = SWIG_AsVal_int(obj3, &val4);
19344 if (!SWIG_IsOK(ecode4)) {
19345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19346 }
19347 arg4 = static_cast< int >(val4);
19348 ecode5 = SWIG_AsVal_int(obj4, &val5);
19349 if (!SWIG_IsOK(ecode5)) {
19350 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19351 }
19352 arg5 = static_cast< int >(val5);
19353 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19354 if (!SWIG_IsOK(res6)) {
19355 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19356 }
19357 arg6 = reinterpret_cast< wxDC * >(argp6);
19358 ecode7 = SWIG_AsVal_int(obj6, &val7);
19359 if (!SWIG_IsOK(ecode7)) {
19360 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19361 }
19362 arg7 = static_cast< int >(val7);
19363 ecode8 = SWIG_AsVal_int(obj7, &val8);
19364 if (!SWIG_IsOK(ecode8)) {
19365 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19366 }
19367 arg8 = static_cast< int >(val8);
19368 if (obj8) {
19369 ecode9 = SWIG_AsVal_int(obj8, &val9);
19370 if (!SWIG_IsOK(ecode9)) {
19371 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19372 }
19373 arg9 = static_cast< int >(val9);
19374 }
19375 if (obj9) {
19376 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19377 if (!SWIG_IsOK(ecode10)) {
19378 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19379 }
19380 arg10 = static_cast< bool >(val10);
19381 }
19382 if (obj10) {
19383 ecode11 = SWIG_AsVal_int(obj10, &val11);
19384 if (!SWIG_IsOK(ecode11)) {
19385 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19386 }
19387 arg11 = static_cast< int >(val11);
19388 }
19389 if (obj11) {
19390 ecode12 = SWIG_AsVal_int(obj11, &val12);
19391 if (!SWIG_IsOK(ecode12)) {
19392 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19393 }
19394 arg12 = static_cast< int >(val12);
19395 }
19396 {
19397 PyThreadState* __tstate = wxPyBeginAllowThreads();
19398 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 {
19403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19404 }
19405 return resultobj;
19406 fail:
19407 return NULL;
19408 }
19409
19410
19411 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19412 PyObject *resultobj = 0;
19413 wxDC *arg1 = (wxDC *) 0 ;
19414 wxPoint *arg2 = 0 ;
19415 wxSize *arg3 = 0 ;
19416 wxDC *arg4 = (wxDC *) 0 ;
19417 wxPoint *arg5 = 0 ;
19418 int arg6 = (int) wxCOPY ;
19419 bool arg7 = (bool) false ;
19420 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19421 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19422 bool result;
19423 void *argp1 = 0 ;
19424 int res1 = 0 ;
19425 wxPoint temp2 ;
19426 wxSize temp3 ;
19427 void *argp4 = 0 ;
19428 int res4 = 0 ;
19429 wxPoint temp5 ;
19430 int val6 ;
19431 int ecode6 = 0 ;
19432 bool val7 ;
19433 int ecode7 = 0 ;
19434 wxPoint temp8 ;
19435 PyObject * obj0 = 0 ;
19436 PyObject * obj1 = 0 ;
19437 PyObject * obj2 = 0 ;
19438 PyObject * obj3 = 0 ;
19439 PyObject * obj4 = 0 ;
19440 PyObject * obj5 = 0 ;
19441 PyObject * obj6 = 0 ;
19442 PyObject * obj7 = 0 ;
19443 char * kwnames[] = {
19444 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19445 };
19446
19447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19449 if (!SWIG_IsOK(res1)) {
19450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19451 }
19452 arg1 = reinterpret_cast< wxDC * >(argp1);
19453 {
19454 arg2 = &temp2;
19455 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19456 }
19457 {
19458 arg3 = &temp3;
19459 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19460 }
19461 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19462 if (!SWIG_IsOK(res4)) {
19463 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19464 }
19465 arg4 = reinterpret_cast< wxDC * >(argp4);
19466 {
19467 arg5 = &temp5;
19468 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19469 }
19470 if (obj5) {
19471 ecode6 = SWIG_AsVal_int(obj5, &val6);
19472 if (!SWIG_IsOK(ecode6)) {
19473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19474 }
19475 arg6 = static_cast< int >(val6);
19476 }
19477 if (obj6) {
19478 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19479 if (!SWIG_IsOK(ecode7)) {
19480 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19481 }
19482 arg7 = static_cast< bool >(val7);
19483 }
19484 if (obj7) {
19485 {
19486 arg8 = &temp8;
19487 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19488 }
19489 }
19490 {
19491 PyThreadState* __tstate = wxPyBeginAllowThreads();
19492 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19493 wxPyEndAllowThreads(__tstate);
19494 if (PyErr_Occurred()) SWIG_fail;
19495 }
19496 {
19497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19498 }
19499 return resultobj;
19500 fail:
19501 return NULL;
19502 }
19503
19504
19505 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19506 PyObject *resultobj = 0;
19507 wxDC *arg1 = (wxDC *) 0 ;
19508 int arg2 ;
19509 int arg3 ;
19510 int arg4 ;
19511 int arg5 ;
19512 void *argp1 = 0 ;
19513 int res1 = 0 ;
19514 int val2 ;
19515 int ecode2 = 0 ;
19516 int val3 ;
19517 int ecode3 = 0 ;
19518 int val4 ;
19519 int ecode4 = 0 ;
19520 int val5 ;
19521 int ecode5 = 0 ;
19522 PyObject * obj0 = 0 ;
19523 PyObject * obj1 = 0 ;
19524 PyObject * obj2 = 0 ;
19525 PyObject * obj3 = 0 ;
19526 PyObject * obj4 = 0 ;
19527 char * kwnames[] = {
19528 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19529 };
19530
19531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19533 if (!SWIG_IsOK(res1)) {
19534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19535 }
19536 arg1 = reinterpret_cast< wxDC * >(argp1);
19537 ecode2 = SWIG_AsVal_int(obj1, &val2);
19538 if (!SWIG_IsOK(ecode2)) {
19539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19540 }
19541 arg2 = static_cast< int >(val2);
19542 ecode3 = SWIG_AsVal_int(obj2, &val3);
19543 if (!SWIG_IsOK(ecode3)) {
19544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19545 }
19546 arg3 = static_cast< int >(val3);
19547 ecode4 = SWIG_AsVal_int(obj3, &val4);
19548 if (!SWIG_IsOK(ecode4)) {
19549 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19550 }
19551 arg4 = static_cast< int >(val4);
19552 ecode5 = SWIG_AsVal_int(obj4, &val5);
19553 if (!SWIG_IsOK(ecode5)) {
19554 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19555 }
19556 arg5 = static_cast< int >(val5);
19557 {
19558 PyThreadState* __tstate = wxPyBeginAllowThreads();
19559 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19560 wxPyEndAllowThreads(__tstate);
19561 if (PyErr_Occurred()) SWIG_fail;
19562 }
19563 resultobj = SWIG_Py_Void();
19564 return resultobj;
19565 fail:
19566 return NULL;
19567 }
19568
19569
19570 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19571 PyObject *resultobj = 0;
19572 wxDC *arg1 = (wxDC *) 0 ;
19573 wxPoint *arg2 = 0 ;
19574 wxSize *arg3 = 0 ;
19575 void *argp1 = 0 ;
19576 int res1 = 0 ;
19577 wxPoint temp2 ;
19578 wxSize temp3 ;
19579 PyObject * obj0 = 0 ;
19580 PyObject * obj1 = 0 ;
19581 PyObject * obj2 = 0 ;
19582 char * kwnames[] = {
19583 (char *) "self",(char *) "pt",(char *) "sz", NULL
19584 };
19585
19586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19588 if (!SWIG_IsOK(res1)) {
19589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19590 }
19591 arg1 = reinterpret_cast< wxDC * >(argp1);
19592 {
19593 arg2 = &temp2;
19594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19595 }
19596 {
19597 arg3 = &temp3;
19598 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19599 }
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19603 wxPyEndAllowThreads(__tstate);
19604 if (PyErr_Occurred()) SWIG_fail;
19605 }
19606 resultobj = SWIG_Py_Void();
19607 return resultobj;
19608 fail:
19609 return NULL;
19610 }
19611
19612
19613 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19614 PyObject *resultobj = 0;
19615 wxDC *arg1 = (wxDC *) 0 ;
19616 wxRegion *arg2 = 0 ;
19617 void *argp1 = 0 ;
19618 int res1 = 0 ;
19619 void *argp2 = 0 ;
19620 int res2 = 0 ;
19621 PyObject * obj0 = 0 ;
19622 PyObject * obj1 = 0 ;
19623 char * kwnames[] = {
19624 (char *) "self",(char *) "region", NULL
19625 };
19626
19627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19629 if (!SWIG_IsOK(res1)) {
19630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19631 }
19632 arg1 = reinterpret_cast< wxDC * >(argp1);
19633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19634 if (!SWIG_IsOK(res2)) {
19635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19636 }
19637 if (!argp2) {
19638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19639 }
19640 arg2 = reinterpret_cast< wxRegion * >(argp2);
19641 {
19642 PyThreadState* __tstate = wxPyBeginAllowThreads();
19643 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19644 wxPyEndAllowThreads(__tstate);
19645 if (PyErr_Occurred()) SWIG_fail;
19646 }
19647 resultobj = SWIG_Py_Void();
19648 return resultobj;
19649 fail:
19650 return NULL;
19651 }
19652
19653
19654 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19655 PyObject *resultobj = 0;
19656 wxDC *arg1 = (wxDC *) 0 ;
19657 wxRect *arg2 = 0 ;
19658 void *argp1 = 0 ;
19659 int res1 = 0 ;
19660 wxRect temp2 ;
19661 PyObject * obj0 = 0 ;
19662 PyObject * obj1 = 0 ;
19663 char * kwnames[] = {
19664 (char *) "self",(char *) "rect", NULL
19665 };
19666
19667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19669 if (!SWIG_IsOK(res1)) {
19670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19671 }
19672 arg1 = reinterpret_cast< wxDC * >(argp1);
19673 {
19674 arg2 = &temp2;
19675 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19676 }
19677 {
19678 PyThreadState* __tstate = wxPyBeginAllowThreads();
19679 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19680 wxPyEndAllowThreads(__tstate);
19681 if (PyErr_Occurred()) SWIG_fail;
19682 }
19683 resultobj = SWIG_Py_Void();
19684 return resultobj;
19685 fail:
19686 return NULL;
19687 }
19688
19689
19690 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19691 PyObject *resultobj = 0;
19692 wxDC *arg1 = (wxDC *) 0 ;
19693 int arg2 ;
19694 wxPoint *arg3 = (wxPoint *) 0 ;
19695 int arg4 = (int) 0 ;
19696 int arg5 = (int) 0 ;
19697 void *argp1 = 0 ;
19698 int res1 = 0 ;
19699 int val4 ;
19700 int ecode4 = 0 ;
19701 int val5 ;
19702 int ecode5 = 0 ;
19703 PyObject * obj0 = 0 ;
19704 PyObject * obj1 = 0 ;
19705 PyObject * obj2 = 0 ;
19706 PyObject * obj3 = 0 ;
19707 char * kwnames[] = {
19708 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19709 };
19710
19711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19713 if (!SWIG_IsOK(res1)) {
19714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19715 }
19716 arg1 = reinterpret_cast< wxDC * >(argp1);
19717 {
19718 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19719 if (arg3 == NULL) SWIG_fail;
19720 }
19721 if (obj2) {
19722 ecode4 = SWIG_AsVal_int(obj2, &val4);
19723 if (!SWIG_IsOK(ecode4)) {
19724 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19725 }
19726 arg4 = static_cast< int >(val4);
19727 }
19728 if (obj3) {
19729 ecode5 = SWIG_AsVal_int(obj3, &val5);
19730 if (!SWIG_IsOK(ecode5)) {
19731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19732 }
19733 arg5 = static_cast< int >(val5);
19734 }
19735 {
19736 PyThreadState* __tstate = wxPyBeginAllowThreads();
19737 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19738 wxPyEndAllowThreads(__tstate);
19739 if (PyErr_Occurred()) SWIG_fail;
19740 }
19741 resultobj = SWIG_Py_Void();
19742 {
19743 if (arg3) delete [] arg3;
19744 }
19745 return resultobj;
19746 fail:
19747 {
19748 if (arg3) delete [] arg3;
19749 }
19750 return NULL;
19751 }
19752
19753
19754 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19755 PyObject *resultobj = 0;
19756 wxDC *arg1 = (wxDC *) 0 ;
19757 int arg2 ;
19758 wxPoint *arg3 = (wxPoint *) 0 ;
19759 int arg4 = (int) 0 ;
19760 int arg5 = (int) 0 ;
19761 int arg6 = (int) wxODDEVEN_RULE ;
19762 void *argp1 = 0 ;
19763 int res1 = 0 ;
19764 int val4 ;
19765 int ecode4 = 0 ;
19766 int val5 ;
19767 int ecode5 = 0 ;
19768 int val6 ;
19769 int ecode6 = 0 ;
19770 PyObject * obj0 = 0 ;
19771 PyObject * obj1 = 0 ;
19772 PyObject * obj2 = 0 ;
19773 PyObject * obj3 = 0 ;
19774 PyObject * obj4 = 0 ;
19775 char * kwnames[] = {
19776 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19777 };
19778
19779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19781 if (!SWIG_IsOK(res1)) {
19782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19783 }
19784 arg1 = reinterpret_cast< wxDC * >(argp1);
19785 {
19786 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19787 if (arg3 == NULL) SWIG_fail;
19788 }
19789 if (obj2) {
19790 ecode4 = SWIG_AsVal_int(obj2, &val4);
19791 if (!SWIG_IsOK(ecode4)) {
19792 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19793 }
19794 arg4 = static_cast< int >(val4);
19795 }
19796 if (obj3) {
19797 ecode5 = SWIG_AsVal_int(obj3, &val5);
19798 if (!SWIG_IsOK(ecode5)) {
19799 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19800 }
19801 arg5 = static_cast< int >(val5);
19802 }
19803 if (obj4) {
19804 ecode6 = SWIG_AsVal_int(obj4, &val6);
19805 if (!SWIG_IsOK(ecode6)) {
19806 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19807 }
19808 arg6 = static_cast< int >(val6);
19809 }
19810 {
19811 PyThreadState* __tstate = wxPyBeginAllowThreads();
19812 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19813 wxPyEndAllowThreads(__tstate);
19814 if (PyErr_Occurred()) SWIG_fail;
19815 }
19816 resultobj = SWIG_Py_Void();
19817 {
19818 if (arg3) delete [] arg3;
19819 }
19820 return resultobj;
19821 fail:
19822 {
19823 if (arg3) delete [] arg3;
19824 }
19825 return NULL;
19826 }
19827
19828
19829 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19830 PyObject *resultobj = 0;
19831 wxDC *arg1 = (wxDC *) 0 ;
19832 wxString *arg2 = 0 ;
19833 wxRect *arg3 = 0 ;
19834 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19835 int arg5 = (int) -1 ;
19836 void *argp1 = 0 ;
19837 int res1 = 0 ;
19838 bool temp2 = false ;
19839 wxRect temp3 ;
19840 int val4 ;
19841 int ecode4 = 0 ;
19842 int val5 ;
19843 int ecode5 = 0 ;
19844 PyObject * obj0 = 0 ;
19845 PyObject * obj1 = 0 ;
19846 PyObject * obj2 = 0 ;
19847 PyObject * obj3 = 0 ;
19848 PyObject * obj4 = 0 ;
19849 char * kwnames[] = {
19850 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19851 };
19852
19853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19855 if (!SWIG_IsOK(res1)) {
19856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19857 }
19858 arg1 = reinterpret_cast< wxDC * >(argp1);
19859 {
19860 arg2 = wxString_in_helper(obj1);
19861 if (arg2 == NULL) SWIG_fail;
19862 temp2 = true;
19863 }
19864 {
19865 arg3 = &temp3;
19866 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19867 }
19868 if (obj3) {
19869 ecode4 = SWIG_AsVal_int(obj3, &val4);
19870 if (!SWIG_IsOK(ecode4)) {
19871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19872 }
19873 arg4 = static_cast< int >(val4);
19874 }
19875 if (obj4) {
19876 ecode5 = SWIG_AsVal_int(obj4, &val5);
19877 if (!SWIG_IsOK(ecode5)) {
19878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19879 }
19880 arg5 = static_cast< int >(val5);
19881 }
19882 {
19883 PyThreadState* __tstate = wxPyBeginAllowThreads();
19884 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19885 wxPyEndAllowThreads(__tstate);
19886 if (PyErr_Occurred()) SWIG_fail;
19887 }
19888 resultobj = SWIG_Py_Void();
19889 {
19890 if (temp2)
19891 delete arg2;
19892 }
19893 return resultobj;
19894 fail:
19895 {
19896 if (temp2)
19897 delete arg2;
19898 }
19899 return NULL;
19900 }
19901
19902
19903 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19904 PyObject *resultobj = 0;
19905 wxDC *arg1 = (wxDC *) 0 ;
19906 wxString *arg2 = 0 ;
19907 wxBitmap *arg3 = 0 ;
19908 wxRect *arg4 = 0 ;
19909 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19910 int arg6 = (int) -1 ;
19911 wxRect result;
19912 void *argp1 = 0 ;
19913 int res1 = 0 ;
19914 bool temp2 = false ;
19915 void *argp3 = 0 ;
19916 int res3 = 0 ;
19917 wxRect temp4 ;
19918 int val5 ;
19919 int ecode5 = 0 ;
19920 int val6 ;
19921 int ecode6 = 0 ;
19922 PyObject * obj0 = 0 ;
19923 PyObject * obj1 = 0 ;
19924 PyObject * obj2 = 0 ;
19925 PyObject * obj3 = 0 ;
19926 PyObject * obj4 = 0 ;
19927 PyObject * obj5 = 0 ;
19928 char * kwnames[] = {
19929 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19930 };
19931
19932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19936 }
19937 arg1 = reinterpret_cast< wxDC * >(argp1);
19938 {
19939 arg2 = wxString_in_helper(obj1);
19940 if (arg2 == NULL) SWIG_fail;
19941 temp2 = true;
19942 }
19943 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19944 if (!SWIG_IsOK(res3)) {
19945 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19946 }
19947 if (!argp3) {
19948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19949 }
19950 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19951 {
19952 arg4 = &temp4;
19953 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19954 }
19955 if (obj4) {
19956 ecode5 = SWIG_AsVal_int(obj4, &val5);
19957 if (!SWIG_IsOK(ecode5)) {
19958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19959 }
19960 arg5 = static_cast< int >(val5);
19961 }
19962 if (obj5) {
19963 ecode6 = SWIG_AsVal_int(obj5, &val6);
19964 if (!SWIG_IsOK(ecode6)) {
19965 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19966 }
19967 arg6 = static_cast< int >(val6);
19968 }
19969 {
19970 PyThreadState* __tstate = wxPyBeginAllowThreads();
19971 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19972 wxPyEndAllowThreads(__tstate);
19973 if (PyErr_Occurred()) SWIG_fail;
19974 }
19975 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19976 {
19977 if (temp2)
19978 delete arg2;
19979 }
19980 return resultobj;
19981 fail:
19982 {
19983 if (temp2)
19984 delete arg2;
19985 }
19986 return NULL;
19987 }
19988
19989
19990 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19991 PyObject *resultobj = 0;
19992 wxDC *arg1 = (wxDC *) 0 ;
19993 int arg2 ;
19994 wxPoint *arg3 = (wxPoint *) 0 ;
19995 void *argp1 = 0 ;
19996 int res1 = 0 ;
19997 PyObject * obj0 = 0 ;
19998 PyObject * obj1 = 0 ;
19999 char * kwnames[] = {
20000 (char *) "self",(char *) "points", NULL
20001 };
20002
20003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20005 if (!SWIG_IsOK(res1)) {
20006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20007 }
20008 arg1 = reinterpret_cast< wxDC * >(argp1);
20009 {
20010 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20011 if (arg3 == NULL) SWIG_fail;
20012 }
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 (arg1)->DrawSpline(arg2,arg3);
20016 wxPyEndAllowThreads(__tstate);
20017 if (PyErr_Occurred()) SWIG_fail;
20018 }
20019 resultobj = SWIG_Py_Void();
20020 {
20021 if (arg3) delete [] arg3;
20022 }
20023 return resultobj;
20024 fail:
20025 {
20026 if (arg3) delete [] arg3;
20027 }
20028 return NULL;
20029 }
20030
20031
20032 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20033 PyObject *resultobj = 0;
20034 wxDC *arg1 = (wxDC *) 0 ;
20035 void *argp1 = 0 ;
20036 int res1 = 0 ;
20037 PyObject *swig_obj[1] ;
20038
20039 if (!args) SWIG_fail;
20040 swig_obj[0] = args;
20041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20042 if (!SWIG_IsOK(res1)) {
20043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20044 }
20045 arg1 = reinterpret_cast< wxDC * >(argp1);
20046 {
20047 PyThreadState* __tstate = wxPyBeginAllowThreads();
20048 (arg1)->Clear();
20049 wxPyEndAllowThreads(__tstate);
20050 if (PyErr_Occurred()) SWIG_fail;
20051 }
20052 resultobj = SWIG_Py_Void();
20053 return resultobj;
20054 fail:
20055 return NULL;
20056 }
20057
20058
20059 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20060 PyObject *resultobj = 0;
20061 wxDC *arg1 = (wxDC *) 0 ;
20062 wxString *arg2 = 0 ;
20063 bool result;
20064 void *argp1 = 0 ;
20065 int res1 = 0 ;
20066 bool temp2 = false ;
20067 PyObject * obj0 = 0 ;
20068 PyObject * obj1 = 0 ;
20069 char * kwnames[] = {
20070 (char *) "self",(char *) "message", NULL
20071 };
20072
20073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20075 if (!SWIG_IsOK(res1)) {
20076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20077 }
20078 arg1 = reinterpret_cast< wxDC * >(argp1);
20079 {
20080 arg2 = wxString_in_helper(obj1);
20081 if (arg2 == NULL) SWIG_fail;
20082 temp2 = true;
20083 }
20084 {
20085 PyThreadState* __tstate = wxPyBeginAllowThreads();
20086 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20087 wxPyEndAllowThreads(__tstate);
20088 if (PyErr_Occurred()) SWIG_fail;
20089 }
20090 {
20091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20092 }
20093 {
20094 if (temp2)
20095 delete arg2;
20096 }
20097 return resultobj;
20098 fail:
20099 {
20100 if (temp2)
20101 delete arg2;
20102 }
20103 return NULL;
20104 }
20105
20106
20107 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20108 PyObject *resultobj = 0;
20109 wxDC *arg1 = (wxDC *) 0 ;
20110 void *argp1 = 0 ;
20111 int res1 = 0 ;
20112 PyObject *swig_obj[1] ;
20113
20114 if (!args) SWIG_fail;
20115 swig_obj[0] = args;
20116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20117 if (!SWIG_IsOK(res1)) {
20118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20119 }
20120 arg1 = reinterpret_cast< wxDC * >(argp1);
20121 {
20122 PyThreadState* __tstate = wxPyBeginAllowThreads();
20123 (arg1)->EndDoc();
20124 wxPyEndAllowThreads(__tstate);
20125 if (PyErr_Occurred()) SWIG_fail;
20126 }
20127 resultobj = SWIG_Py_Void();
20128 return resultobj;
20129 fail:
20130 return NULL;
20131 }
20132
20133
20134 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20135 PyObject *resultobj = 0;
20136 wxDC *arg1 = (wxDC *) 0 ;
20137 void *argp1 = 0 ;
20138 int res1 = 0 ;
20139 PyObject *swig_obj[1] ;
20140
20141 if (!args) SWIG_fail;
20142 swig_obj[0] = args;
20143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20144 if (!SWIG_IsOK(res1)) {
20145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20146 }
20147 arg1 = reinterpret_cast< wxDC * >(argp1);
20148 {
20149 PyThreadState* __tstate = wxPyBeginAllowThreads();
20150 (arg1)->StartPage();
20151 wxPyEndAllowThreads(__tstate);
20152 if (PyErr_Occurred()) SWIG_fail;
20153 }
20154 resultobj = SWIG_Py_Void();
20155 return resultobj;
20156 fail:
20157 return NULL;
20158 }
20159
20160
20161 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20162 PyObject *resultobj = 0;
20163 wxDC *arg1 = (wxDC *) 0 ;
20164 void *argp1 = 0 ;
20165 int res1 = 0 ;
20166 PyObject *swig_obj[1] ;
20167
20168 if (!args) SWIG_fail;
20169 swig_obj[0] = args;
20170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20171 if (!SWIG_IsOK(res1)) {
20172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20173 }
20174 arg1 = reinterpret_cast< wxDC * >(argp1);
20175 {
20176 PyThreadState* __tstate = wxPyBeginAllowThreads();
20177 (arg1)->EndPage();
20178 wxPyEndAllowThreads(__tstate);
20179 if (PyErr_Occurred()) SWIG_fail;
20180 }
20181 resultobj = SWIG_Py_Void();
20182 return resultobj;
20183 fail:
20184 return NULL;
20185 }
20186
20187
20188 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20189 PyObject *resultobj = 0;
20190 wxDC *arg1 = (wxDC *) 0 ;
20191 wxFont *arg2 = 0 ;
20192 void *argp1 = 0 ;
20193 int res1 = 0 ;
20194 void *argp2 = 0 ;
20195 int res2 = 0 ;
20196 PyObject * obj0 = 0 ;
20197 PyObject * obj1 = 0 ;
20198 char * kwnames[] = {
20199 (char *) "self",(char *) "font", NULL
20200 };
20201
20202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20204 if (!SWIG_IsOK(res1)) {
20205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20206 }
20207 arg1 = reinterpret_cast< wxDC * >(argp1);
20208 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20209 if (!SWIG_IsOK(res2)) {
20210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20211 }
20212 if (!argp2) {
20213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20214 }
20215 arg2 = reinterpret_cast< wxFont * >(argp2);
20216 {
20217 PyThreadState* __tstate = wxPyBeginAllowThreads();
20218 (arg1)->SetFont((wxFont const &)*arg2);
20219 wxPyEndAllowThreads(__tstate);
20220 if (PyErr_Occurred()) SWIG_fail;
20221 }
20222 resultobj = SWIG_Py_Void();
20223 return resultobj;
20224 fail:
20225 return NULL;
20226 }
20227
20228
20229 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20230 PyObject *resultobj = 0;
20231 wxDC *arg1 = (wxDC *) 0 ;
20232 wxPen *arg2 = 0 ;
20233 void *argp1 = 0 ;
20234 int res1 = 0 ;
20235 void *argp2 = 0 ;
20236 int res2 = 0 ;
20237 PyObject * obj0 = 0 ;
20238 PyObject * obj1 = 0 ;
20239 char * kwnames[] = {
20240 (char *) "self",(char *) "pen", NULL
20241 };
20242
20243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20245 if (!SWIG_IsOK(res1)) {
20246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20247 }
20248 arg1 = reinterpret_cast< wxDC * >(argp1);
20249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20250 if (!SWIG_IsOK(res2)) {
20251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20252 }
20253 if (!argp2) {
20254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20255 }
20256 arg2 = reinterpret_cast< wxPen * >(argp2);
20257 {
20258 PyThreadState* __tstate = wxPyBeginAllowThreads();
20259 (arg1)->SetPen((wxPen const &)*arg2);
20260 wxPyEndAllowThreads(__tstate);
20261 if (PyErr_Occurred()) SWIG_fail;
20262 }
20263 resultobj = SWIG_Py_Void();
20264 return resultobj;
20265 fail:
20266 return NULL;
20267 }
20268
20269
20270 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20271 PyObject *resultobj = 0;
20272 wxDC *arg1 = (wxDC *) 0 ;
20273 wxBrush *arg2 = 0 ;
20274 void *argp1 = 0 ;
20275 int res1 = 0 ;
20276 void *argp2 = 0 ;
20277 int res2 = 0 ;
20278 PyObject * obj0 = 0 ;
20279 PyObject * obj1 = 0 ;
20280 char * kwnames[] = {
20281 (char *) "self",(char *) "brush", NULL
20282 };
20283
20284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20286 if (!SWIG_IsOK(res1)) {
20287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20288 }
20289 arg1 = reinterpret_cast< wxDC * >(argp1);
20290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20291 if (!SWIG_IsOK(res2)) {
20292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20293 }
20294 if (!argp2) {
20295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20296 }
20297 arg2 = reinterpret_cast< wxBrush * >(argp2);
20298 {
20299 PyThreadState* __tstate = wxPyBeginAllowThreads();
20300 (arg1)->SetBrush((wxBrush const &)*arg2);
20301 wxPyEndAllowThreads(__tstate);
20302 if (PyErr_Occurred()) SWIG_fail;
20303 }
20304 resultobj = SWIG_Py_Void();
20305 return resultobj;
20306 fail:
20307 return NULL;
20308 }
20309
20310
20311 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20312 PyObject *resultobj = 0;
20313 wxDC *arg1 = (wxDC *) 0 ;
20314 wxBrush *arg2 = 0 ;
20315 void *argp1 = 0 ;
20316 int res1 = 0 ;
20317 void *argp2 = 0 ;
20318 int res2 = 0 ;
20319 PyObject * obj0 = 0 ;
20320 PyObject * obj1 = 0 ;
20321 char * kwnames[] = {
20322 (char *) "self",(char *) "brush", NULL
20323 };
20324
20325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20327 if (!SWIG_IsOK(res1)) {
20328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20329 }
20330 arg1 = reinterpret_cast< wxDC * >(argp1);
20331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20332 if (!SWIG_IsOK(res2)) {
20333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20334 }
20335 if (!argp2) {
20336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20337 }
20338 arg2 = reinterpret_cast< wxBrush * >(argp2);
20339 {
20340 PyThreadState* __tstate = wxPyBeginAllowThreads();
20341 (arg1)->SetBackground((wxBrush const &)*arg2);
20342 wxPyEndAllowThreads(__tstate);
20343 if (PyErr_Occurred()) SWIG_fail;
20344 }
20345 resultobj = SWIG_Py_Void();
20346 return resultobj;
20347 fail:
20348 return NULL;
20349 }
20350
20351
20352 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20353 PyObject *resultobj = 0;
20354 wxDC *arg1 = (wxDC *) 0 ;
20355 int arg2 ;
20356 void *argp1 = 0 ;
20357 int res1 = 0 ;
20358 int val2 ;
20359 int ecode2 = 0 ;
20360 PyObject * obj0 = 0 ;
20361 PyObject * obj1 = 0 ;
20362 char * kwnames[] = {
20363 (char *) "self",(char *) "mode", NULL
20364 };
20365
20366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20368 if (!SWIG_IsOK(res1)) {
20369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20370 }
20371 arg1 = reinterpret_cast< wxDC * >(argp1);
20372 ecode2 = SWIG_AsVal_int(obj1, &val2);
20373 if (!SWIG_IsOK(ecode2)) {
20374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20375 }
20376 arg2 = static_cast< int >(val2);
20377 {
20378 PyThreadState* __tstate = wxPyBeginAllowThreads();
20379 (arg1)->SetBackgroundMode(arg2);
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 resultobj = SWIG_Py_Void();
20384 return resultobj;
20385 fail:
20386 return NULL;
20387 }
20388
20389
20390 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20391 PyObject *resultobj = 0;
20392 wxDC *arg1 = (wxDC *) 0 ;
20393 wxPalette *arg2 = 0 ;
20394 void *argp1 = 0 ;
20395 int res1 = 0 ;
20396 void *argp2 = 0 ;
20397 int res2 = 0 ;
20398 PyObject * obj0 = 0 ;
20399 PyObject * obj1 = 0 ;
20400 char * kwnames[] = {
20401 (char *) "self",(char *) "palette", NULL
20402 };
20403
20404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20406 if (!SWIG_IsOK(res1)) {
20407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20408 }
20409 arg1 = reinterpret_cast< wxDC * >(argp1);
20410 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20411 if (!SWIG_IsOK(res2)) {
20412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20413 }
20414 if (!argp2) {
20415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20416 }
20417 arg2 = reinterpret_cast< wxPalette * >(argp2);
20418 {
20419 PyThreadState* __tstate = wxPyBeginAllowThreads();
20420 (arg1)->SetPalette((wxPalette const &)*arg2);
20421 wxPyEndAllowThreads(__tstate);
20422 if (PyErr_Occurred()) SWIG_fail;
20423 }
20424 resultobj = SWIG_Py_Void();
20425 return resultobj;
20426 fail:
20427 return NULL;
20428 }
20429
20430
20431 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20432 PyObject *resultobj = 0;
20433 wxDC *arg1 = (wxDC *) 0 ;
20434 void *argp1 = 0 ;
20435 int res1 = 0 ;
20436 PyObject *swig_obj[1] ;
20437
20438 if (!args) SWIG_fail;
20439 swig_obj[0] = args;
20440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20441 if (!SWIG_IsOK(res1)) {
20442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20443 }
20444 arg1 = reinterpret_cast< wxDC * >(argp1);
20445 {
20446 PyThreadState* __tstate = wxPyBeginAllowThreads();
20447 (arg1)->DestroyClippingRegion();
20448 wxPyEndAllowThreads(__tstate);
20449 if (PyErr_Occurred()) SWIG_fail;
20450 }
20451 resultobj = SWIG_Py_Void();
20452 return resultobj;
20453 fail:
20454 return NULL;
20455 }
20456
20457
20458 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20459 PyObject *resultobj = 0;
20460 wxDC *arg1 = (wxDC *) 0 ;
20461 int *arg2 = (int *) 0 ;
20462 int *arg3 = (int *) 0 ;
20463 int *arg4 = (int *) 0 ;
20464 int *arg5 = (int *) 0 ;
20465 void *argp1 = 0 ;
20466 int res1 = 0 ;
20467 int temp2 ;
20468 int res2 = SWIG_TMPOBJ ;
20469 int temp3 ;
20470 int res3 = SWIG_TMPOBJ ;
20471 int temp4 ;
20472 int res4 = SWIG_TMPOBJ ;
20473 int temp5 ;
20474 int res5 = SWIG_TMPOBJ ;
20475 PyObject *swig_obj[1] ;
20476
20477 arg2 = &temp2;
20478 arg3 = &temp3;
20479 arg4 = &temp4;
20480 arg5 = &temp5;
20481 if (!args) SWIG_fail;
20482 swig_obj[0] = args;
20483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20484 if (!SWIG_IsOK(res1)) {
20485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20486 }
20487 arg1 = reinterpret_cast< wxDC * >(argp1);
20488 {
20489 PyThreadState* __tstate = wxPyBeginAllowThreads();
20490 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20491 wxPyEndAllowThreads(__tstate);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 }
20494 resultobj = SWIG_Py_Void();
20495 if (SWIG_IsTmpObj(res2)) {
20496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20497 } else {
20498 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20500 }
20501 if (SWIG_IsTmpObj(res3)) {
20502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20503 } else {
20504 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20506 }
20507 if (SWIG_IsTmpObj(res4)) {
20508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20509 } else {
20510 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20512 }
20513 if (SWIG_IsTmpObj(res5)) {
20514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20515 } else {
20516 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20518 }
20519 return resultobj;
20520 fail:
20521 return NULL;
20522 }
20523
20524
20525 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20526 PyObject *resultobj = 0;
20527 wxDC *arg1 = (wxDC *) 0 ;
20528 wxRect result;
20529 void *argp1 = 0 ;
20530 int res1 = 0 ;
20531 PyObject *swig_obj[1] ;
20532
20533 if (!args) SWIG_fail;
20534 swig_obj[0] = args;
20535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20536 if (!SWIG_IsOK(res1)) {
20537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20538 }
20539 arg1 = reinterpret_cast< wxDC * >(argp1);
20540 {
20541 PyThreadState* __tstate = wxPyBeginAllowThreads();
20542 result = wxDC_GetClippingRect(arg1);
20543 wxPyEndAllowThreads(__tstate);
20544 if (PyErr_Occurred()) SWIG_fail;
20545 }
20546 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20547 return resultobj;
20548 fail:
20549 return NULL;
20550 }
20551
20552
20553 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20554 PyObject *resultobj = 0;
20555 wxDC *arg1 = (wxDC *) 0 ;
20556 int result;
20557 void *argp1 = 0 ;
20558 int res1 = 0 ;
20559 PyObject *swig_obj[1] ;
20560
20561 if (!args) SWIG_fail;
20562 swig_obj[0] = args;
20563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20564 if (!SWIG_IsOK(res1)) {
20565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20566 }
20567 arg1 = reinterpret_cast< wxDC * >(argp1);
20568 {
20569 PyThreadState* __tstate = wxPyBeginAllowThreads();
20570 result = (int)((wxDC const *)arg1)->GetCharHeight();
20571 wxPyEndAllowThreads(__tstate);
20572 if (PyErr_Occurred()) SWIG_fail;
20573 }
20574 resultobj = SWIG_From_int(static_cast< int >(result));
20575 return resultobj;
20576 fail:
20577 return NULL;
20578 }
20579
20580
20581 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20582 PyObject *resultobj = 0;
20583 wxDC *arg1 = (wxDC *) 0 ;
20584 int result;
20585 void *argp1 = 0 ;
20586 int res1 = 0 ;
20587 PyObject *swig_obj[1] ;
20588
20589 if (!args) SWIG_fail;
20590 swig_obj[0] = args;
20591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20592 if (!SWIG_IsOK(res1)) {
20593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20594 }
20595 arg1 = reinterpret_cast< wxDC * >(argp1);
20596 {
20597 PyThreadState* __tstate = wxPyBeginAllowThreads();
20598 result = (int)((wxDC const *)arg1)->GetCharWidth();
20599 wxPyEndAllowThreads(__tstate);
20600 if (PyErr_Occurred()) SWIG_fail;
20601 }
20602 resultobj = SWIG_From_int(static_cast< int >(result));
20603 return resultobj;
20604 fail:
20605 return NULL;
20606 }
20607
20608
20609 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20610 PyObject *resultobj = 0;
20611 wxDC *arg1 = (wxDC *) 0 ;
20612 wxString *arg2 = 0 ;
20613 int *arg3 = (int *) 0 ;
20614 int *arg4 = (int *) 0 ;
20615 void *argp1 = 0 ;
20616 int res1 = 0 ;
20617 bool temp2 = false ;
20618 int temp3 ;
20619 int res3 = SWIG_TMPOBJ ;
20620 int temp4 ;
20621 int res4 = SWIG_TMPOBJ ;
20622 PyObject * obj0 = 0 ;
20623 PyObject * obj1 = 0 ;
20624 char * kwnames[] = {
20625 (char *) "self",(char *) "string", NULL
20626 };
20627
20628 arg3 = &temp3;
20629 arg4 = &temp4;
20630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20632 if (!SWIG_IsOK(res1)) {
20633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20634 }
20635 arg1 = reinterpret_cast< wxDC * >(argp1);
20636 {
20637 arg2 = wxString_in_helper(obj1);
20638 if (arg2 == NULL) SWIG_fail;
20639 temp2 = true;
20640 }
20641 {
20642 PyThreadState* __tstate = wxPyBeginAllowThreads();
20643 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20644 wxPyEndAllowThreads(__tstate);
20645 if (PyErr_Occurred()) SWIG_fail;
20646 }
20647 resultobj = SWIG_Py_Void();
20648 if (SWIG_IsTmpObj(res3)) {
20649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20650 } else {
20651 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20653 }
20654 if (SWIG_IsTmpObj(res4)) {
20655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20656 } else {
20657 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20659 }
20660 {
20661 if (temp2)
20662 delete arg2;
20663 }
20664 return resultobj;
20665 fail:
20666 {
20667 if (temp2)
20668 delete arg2;
20669 }
20670 return NULL;
20671 }
20672
20673
20674 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20675 PyObject *resultobj = 0;
20676 wxDC *arg1 = (wxDC *) 0 ;
20677 wxString *arg2 = 0 ;
20678 int *arg3 = (int *) 0 ;
20679 int *arg4 = (int *) 0 ;
20680 int *arg5 = (int *) 0 ;
20681 int *arg6 = (int *) 0 ;
20682 wxFont *arg7 = (wxFont *) NULL ;
20683 void *argp1 = 0 ;
20684 int res1 = 0 ;
20685 bool temp2 = false ;
20686 int temp3 ;
20687 int res3 = SWIG_TMPOBJ ;
20688 int temp4 ;
20689 int res4 = SWIG_TMPOBJ ;
20690 int temp5 ;
20691 int res5 = SWIG_TMPOBJ ;
20692 int temp6 ;
20693 int res6 = SWIG_TMPOBJ ;
20694 void *argp7 = 0 ;
20695 int res7 = 0 ;
20696 PyObject * obj0 = 0 ;
20697 PyObject * obj1 = 0 ;
20698 PyObject * obj2 = 0 ;
20699 char * kwnames[] = {
20700 (char *) "self",(char *) "string",(char *) "font", NULL
20701 };
20702
20703 arg3 = &temp3;
20704 arg4 = &temp4;
20705 arg5 = &temp5;
20706 arg6 = &temp6;
20707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20709 if (!SWIG_IsOK(res1)) {
20710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20711 }
20712 arg1 = reinterpret_cast< wxDC * >(argp1);
20713 {
20714 arg2 = wxString_in_helper(obj1);
20715 if (arg2 == NULL) SWIG_fail;
20716 temp2 = true;
20717 }
20718 if (obj2) {
20719 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20720 if (!SWIG_IsOK(res7)) {
20721 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20722 }
20723 arg7 = reinterpret_cast< wxFont * >(argp7);
20724 }
20725 {
20726 PyThreadState* __tstate = wxPyBeginAllowThreads();
20727 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20728 wxPyEndAllowThreads(__tstate);
20729 if (PyErr_Occurred()) SWIG_fail;
20730 }
20731 resultobj = SWIG_Py_Void();
20732 if (SWIG_IsTmpObj(res3)) {
20733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20734 } else {
20735 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20737 }
20738 if (SWIG_IsTmpObj(res4)) {
20739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20740 } else {
20741 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20743 }
20744 if (SWIG_IsTmpObj(res5)) {
20745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20746 } else {
20747 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20749 }
20750 if (SWIG_IsTmpObj(res6)) {
20751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20752 } else {
20753 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20755 }
20756 {
20757 if (temp2)
20758 delete arg2;
20759 }
20760 return resultobj;
20761 fail:
20762 {
20763 if (temp2)
20764 delete arg2;
20765 }
20766 return NULL;
20767 }
20768
20769
20770 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20771 PyObject *resultobj = 0;
20772 wxDC *arg1 = (wxDC *) 0 ;
20773 wxString *arg2 = 0 ;
20774 int *arg3 = (int *) 0 ;
20775 int *arg4 = (int *) 0 ;
20776 int *arg5 = (int *) 0 ;
20777 wxFont *arg6 = (wxFont *) NULL ;
20778 void *argp1 = 0 ;
20779 int res1 = 0 ;
20780 bool temp2 = false ;
20781 int temp3 ;
20782 int res3 = SWIG_TMPOBJ ;
20783 int temp4 ;
20784 int res4 = SWIG_TMPOBJ ;
20785 int temp5 ;
20786 int res5 = SWIG_TMPOBJ ;
20787 void *argp6 = 0 ;
20788 int res6 = 0 ;
20789 PyObject * obj0 = 0 ;
20790 PyObject * obj1 = 0 ;
20791 PyObject * obj2 = 0 ;
20792 char * kwnames[] = {
20793 (char *) "self",(char *) "text",(char *) "font", NULL
20794 };
20795
20796 arg3 = &temp3;
20797 arg4 = &temp4;
20798 arg5 = &temp5;
20799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20801 if (!SWIG_IsOK(res1)) {
20802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20803 }
20804 arg1 = reinterpret_cast< wxDC * >(argp1);
20805 {
20806 arg2 = wxString_in_helper(obj1);
20807 if (arg2 == NULL) SWIG_fail;
20808 temp2 = true;
20809 }
20810 if (obj2) {
20811 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20812 if (!SWIG_IsOK(res6)) {
20813 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20814 }
20815 arg6 = reinterpret_cast< wxFont * >(argp6);
20816 }
20817 {
20818 PyThreadState* __tstate = wxPyBeginAllowThreads();
20819 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20820 wxPyEndAllowThreads(__tstate);
20821 if (PyErr_Occurred()) SWIG_fail;
20822 }
20823 resultobj = SWIG_Py_Void();
20824 if (SWIG_IsTmpObj(res3)) {
20825 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20826 } else {
20827 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20829 }
20830 if (SWIG_IsTmpObj(res4)) {
20831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20832 } else {
20833 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20835 }
20836 if (SWIG_IsTmpObj(res5)) {
20837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20838 } else {
20839 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20840 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20841 }
20842 {
20843 if (temp2)
20844 delete arg2;
20845 }
20846 return resultobj;
20847 fail:
20848 {
20849 if (temp2)
20850 delete arg2;
20851 }
20852 return NULL;
20853 }
20854
20855
20856 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20857 PyObject *resultobj = 0;
20858 wxDC *arg1 = (wxDC *) 0 ;
20859 wxString *arg2 = 0 ;
20860 wxArrayInt result;
20861 void *argp1 = 0 ;
20862 int res1 = 0 ;
20863 bool temp2 = false ;
20864 PyObject * obj0 = 0 ;
20865 PyObject * obj1 = 0 ;
20866 char * kwnames[] = {
20867 (char *) "self",(char *) "text", NULL
20868 };
20869
20870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20872 if (!SWIG_IsOK(res1)) {
20873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20874 }
20875 arg1 = reinterpret_cast< wxDC * >(argp1);
20876 {
20877 arg2 = wxString_in_helper(obj1);
20878 if (arg2 == NULL) SWIG_fail;
20879 temp2 = true;
20880 }
20881 {
20882 PyThreadState* __tstate = wxPyBeginAllowThreads();
20883 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20884 wxPyEndAllowThreads(__tstate);
20885 if (PyErr_Occurred()) SWIG_fail;
20886 }
20887 {
20888 resultobj = wxArrayInt2PyList_helper(result);
20889 }
20890 {
20891 if (temp2)
20892 delete arg2;
20893 }
20894 return resultobj;
20895 fail:
20896 {
20897 if (temp2)
20898 delete arg2;
20899 }
20900 return NULL;
20901 }
20902
20903
20904 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20905 PyObject *resultobj = 0;
20906 wxDC *arg1 = (wxDC *) 0 ;
20907 wxSize result;
20908 void *argp1 = 0 ;
20909 int res1 = 0 ;
20910 PyObject *swig_obj[1] ;
20911
20912 if (!args) SWIG_fail;
20913 swig_obj[0] = args;
20914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20915 if (!SWIG_IsOK(res1)) {
20916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20917 }
20918 arg1 = reinterpret_cast< wxDC * >(argp1);
20919 {
20920 PyThreadState* __tstate = wxPyBeginAllowThreads();
20921 result = (arg1)->GetSize();
20922 wxPyEndAllowThreads(__tstate);
20923 if (PyErr_Occurred()) SWIG_fail;
20924 }
20925 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20926 return resultobj;
20927 fail:
20928 return NULL;
20929 }
20930
20931
20932 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20933 PyObject *resultobj = 0;
20934 wxDC *arg1 = (wxDC *) 0 ;
20935 int *arg2 = (int *) 0 ;
20936 int *arg3 = (int *) 0 ;
20937 void *argp1 = 0 ;
20938 int res1 = 0 ;
20939 int temp2 ;
20940 int res2 = SWIG_TMPOBJ ;
20941 int temp3 ;
20942 int res3 = SWIG_TMPOBJ ;
20943 PyObject *swig_obj[1] ;
20944
20945 arg2 = &temp2;
20946 arg3 = &temp3;
20947 if (!args) SWIG_fail;
20948 swig_obj[0] = args;
20949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20950 if (!SWIG_IsOK(res1)) {
20951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20952 }
20953 arg1 = reinterpret_cast< wxDC * >(argp1);
20954 {
20955 PyThreadState* __tstate = wxPyBeginAllowThreads();
20956 (arg1)->GetSize(arg2,arg3);
20957 wxPyEndAllowThreads(__tstate);
20958 if (PyErr_Occurred()) SWIG_fail;
20959 }
20960 resultobj = SWIG_Py_Void();
20961 if (SWIG_IsTmpObj(res2)) {
20962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20963 } else {
20964 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20966 }
20967 if (SWIG_IsTmpObj(res3)) {
20968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20969 } else {
20970 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20972 }
20973 return resultobj;
20974 fail:
20975 return NULL;
20976 }
20977
20978
20979 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20980 PyObject *resultobj = 0;
20981 wxDC *arg1 = (wxDC *) 0 ;
20982 wxSize result;
20983 void *argp1 = 0 ;
20984 int res1 = 0 ;
20985 PyObject *swig_obj[1] ;
20986
20987 if (!args) SWIG_fail;
20988 swig_obj[0] = args;
20989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20990 if (!SWIG_IsOK(res1)) {
20991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20992 }
20993 arg1 = reinterpret_cast< wxDC * >(argp1);
20994 {
20995 PyThreadState* __tstate = wxPyBeginAllowThreads();
20996 result = ((wxDC const *)arg1)->GetSizeMM();
20997 wxPyEndAllowThreads(__tstate);
20998 if (PyErr_Occurred()) SWIG_fail;
20999 }
21000 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21001 return resultobj;
21002 fail:
21003 return NULL;
21004 }
21005
21006
21007 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21008 PyObject *resultobj = 0;
21009 wxDC *arg1 = (wxDC *) 0 ;
21010 int *arg2 = (int *) 0 ;
21011 int *arg3 = (int *) 0 ;
21012 void *argp1 = 0 ;
21013 int res1 = 0 ;
21014 int temp2 ;
21015 int res2 = SWIG_TMPOBJ ;
21016 int temp3 ;
21017 int res3 = SWIG_TMPOBJ ;
21018 PyObject *swig_obj[1] ;
21019
21020 arg2 = &temp2;
21021 arg3 = &temp3;
21022 if (!args) SWIG_fail;
21023 swig_obj[0] = args;
21024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21025 if (!SWIG_IsOK(res1)) {
21026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21027 }
21028 arg1 = reinterpret_cast< wxDC * >(argp1);
21029 {
21030 PyThreadState* __tstate = wxPyBeginAllowThreads();
21031 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21032 wxPyEndAllowThreads(__tstate);
21033 if (PyErr_Occurred()) SWIG_fail;
21034 }
21035 resultobj = SWIG_Py_Void();
21036 if (SWIG_IsTmpObj(res2)) {
21037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21038 } else {
21039 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21041 }
21042 if (SWIG_IsTmpObj(res3)) {
21043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21044 } else {
21045 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21047 }
21048 return resultobj;
21049 fail:
21050 return NULL;
21051 }
21052
21053
21054 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21055 PyObject *resultobj = 0;
21056 wxDC *arg1 = (wxDC *) 0 ;
21057 int arg2 ;
21058 int result;
21059 void *argp1 = 0 ;
21060 int res1 = 0 ;
21061 int val2 ;
21062 int ecode2 = 0 ;
21063 PyObject * obj0 = 0 ;
21064 PyObject * obj1 = 0 ;
21065 char * kwnames[] = {
21066 (char *) "self",(char *) "x", NULL
21067 };
21068
21069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21071 if (!SWIG_IsOK(res1)) {
21072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21073 }
21074 arg1 = reinterpret_cast< wxDC * >(argp1);
21075 ecode2 = SWIG_AsVal_int(obj1, &val2);
21076 if (!SWIG_IsOK(ecode2)) {
21077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21078 }
21079 arg2 = static_cast< int >(val2);
21080 {
21081 PyThreadState* __tstate = wxPyBeginAllowThreads();
21082 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21083 wxPyEndAllowThreads(__tstate);
21084 if (PyErr_Occurred()) SWIG_fail;
21085 }
21086 resultobj = SWIG_From_int(static_cast< int >(result));
21087 return resultobj;
21088 fail:
21089 return NULL;
21090 }
21091
21092
21093 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21094 PyObject *resultobj = 0;
21095 wxDC *arg1 = (wxDC *) 0 ;
21096 int arg2 ;
21097 int result;
21098 void *argp1 = 0 ;
21099 int res1 = 0 ;
21100 int val2 ;
21101 int ecode2 = 0 ;
21102 PyObject * obj0 = 0 ;
21103 PyObject * obj1 = 0 ;
21104 char * kwnames[] = {
21105 (char *) "self",(char *) "y", NULL
21106 };
21107
21108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21110 if (!SWIG_IsOK(res1)) {
21111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21112 }
21113 arg1 = reinterpret_cast< wxDC * >(argp1);
21114 ecode2 = SWIG_AsVal_int(obj1, &val2);
21115 if (!SWIG_IsOK(ecode2)) {
21116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21117 }
21118 arg2 = static_cast< int >(val2);
21119 {
21120 PyThreadState* __tstate = wxPyBeginAllowThreads();
21121 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21122 wxPyEndAllowThreads(__tstate);
21123 if (PyErr_Occurred()) SWIG_fail;
21124 }
21125 resultobj = SWIG_From_int(static_cast< int >(result));
21126 return resultobj;
21127 fail:
21128 return NULL;
21129 }
21130
21131
21132 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21133 PyObject *resultobj = 0;
21134 wxDC *arg1 = (wxDC *) 0 ;
21135 int arg2 ;
21136 int result;
21137 void *argp1 = 0 ;
21138 int res1 = 0 ;
21139 int val2 ;
21140 int ecode2 = 0 ;
21141 PyObject * obj0 = 0 ;
21142 PyObject * obj1 = 0 ;
21143 char * kwnames[] = {
21144 (char *) "self",(char *) "x", NULL
21145 };
21146
21147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21149 if (!SWIG_IsOK(res1)) {
21150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21151 }
21152 arg1 = reinterpret_cast< wxDC * >(argp1);
21153 ecode2 = SWIG_AsVal_int(obj1, &val2);
21154 if (!SWIG_IsOK(ecode2)) {
21155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21156 }
21157 arg2 = static_cast< int >(val2);
21158 {
21159 PyThreadState* __tstate = wxPyBeginAllowThreads();
21160 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21161 wxPyEndAllowThreads(__tstate);
21162 if (PyErr_Occurred()) SWIG_fail;
21163 }
21164 resultobj = SWIG_From_int(static_cast< int >(result));
21165 return resultobj;
21166 fail:
21167 return NULL;
21168 }
21169
21170
21171 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21172 PyObject *resultobj = 0;
21173 wxDC *arg1 = (wxDC *) 0 ;
21174 int arg2 ;
21175 int result;
21176 void *argp1 = 0 ;
21177 int res1 = 0 ;
21178 int val2 ;
21179 int ecode2 = 0 ;
21180 PyObject * obj0 = 0 ;
21181 PyObject * obj1 = 0 ;
21182 char * kwnames[] = {
21183 (char *) "self",(char *) "y", NULL
21184 };
21185
21186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21188 if (!SWIG_IsOK(res1)) {
21189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21190 }
21191 arg1 = reinterpret_cast< wxDC * >(argp1);
21192 ecode2 = SWIG_AsVal_int(obj1, &val2);
21193 if (!SWIG_IsOK(ecode2)) {
21194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21195 }
21196 arg2 = static_cast< int >(val2);
21197 {
21198 PyThreadState* __tstate = wxPyBeginAllowThreads();
21199 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21200 wxPyEndAllowThreads(__tstate);
21201 if (PyErr_Occurred()) SWIG_fail;
21202 }
21203 resultobj = SWIG_From_int(static_cast< int >(result));
21204 return resultobj;
21205 fail:
21206 return NULL;
21207 }
21208
21209
21210 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21211 PyObject *resultobj = 0;
21212 wxDC *arg1 = (wxDC *) 0 ;
21213 int arg2 ;
21214 int result;
21215 void *argp1 = 0 ;
21216 int res1 = 0 ;
21217 int val2 ;
21218 int ecode2 = 0 ;
21219 PyObject * obj0 = 0 ;
21220 PyObject * obj1 = 0 ;
21221 char * kwnames[] = {
21222 (char *) "self",(char *) "x", NULL
21223 };
21224
21225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21227 if (!SWIG_IsOK(res1)) {
21228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21229 }
21230 arg1 = reinterpret_cast< wxDC * >(argp1);
21231 ecode2 = SWIG_AsVal_int(obj1, &val2);
21232 if (!SWIG_IsOK(ecode2)) {
21233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21234 }
21235 arg2 = static_cast< int >(val2);
21236 {
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21239 wxPyEndAllowThreads(__tstate);
21240 if (PyErr_Occurred()) SWIG_fail;
21241 }
21242 resultobj = SWIG_From_int(static_cast< int >(result));
21243 return resultobj;
21244 fail:
21245 return NULL;
21246 }
21247
21248
21249 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21250 PyObject *resultobj = 0;
21251 wxDC *arg1 = (wxDC *) 0 ;
21252 int arg2 ;
21253 int result;
21254 void *argp1 = 0 ;
21255 int res1 = 0 ;
21256 int val2 ;
21257 int ecode2 = 0 ;
21258 PyObject * obj0 = 0 ;
21259 PyObject * obj1 = 0 ;
21260 char * kwnames[] = {
21261 (char *) "self",(char *) "y", NULL
21262 };
21263
21264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21266 if (!SWIG_IsOK(res1)) {
21267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21268 }
21269 arg1 = reinterpret_cast< wxDC * >(argp1);
21270 ecode2 = SWIG_AsVal_int(obj1, &val2);
21271 if (!SWIG_IsOK(ecode2)) {
21272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21273 }
21274 arg2 = static_cast< int >(val2);
21275 {
21276 PyThreadState* __tstate = wxPyBeginAllowThreads();
21277 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21278 wxPyEndAllowThreads(__tstate);
21279 if (PyErr_Occurred()) SWIG_fail;
21280 }
21281 resultobj = SWIG_From_int(static_cast< int >(result));
21282 return resultobj;
21283 fail:
21284 return NULL;
21285 }
21286
21287
21288 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21289 PyObject *resultobj = 0;
21290 wxDC *arg1 = (wxDC *) 0 ;
21291 int arg2 ;
21292 int result;
21293 void *argp1 = 0 ;
21294 int res1 = 0 ;
21295 int val2 ;
21296 int ecode2 = 0 ;
21297 PyObject * obj0 = 0 ;
21298 PyObject * obj1 = 0 ;
21299 char * kwnames[] = {
21300 (char *) "self",(char *) "x", NULL
21301 };
21302
21303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21305 if (!SWIG_IsOK(res1)) {
21306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21307 }
21308 arg1 = reinterpret_cast< wxDC * >(argp1);
21309 ecode2 = SWIG_AsVal_int(obj1, &val2);
21310 if (!SWIG_IsOK(ecode2)) {
21311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21312 }
21313 arg2 = static_cast< int >(val2);
21314 {
21315 PyThreadState* __tstate = wxPyBeginAllowThreads();
21316 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21317 wxPyEndAllowThreads(__tstate);
21318 if (PyErr_Occurred()) SWIG_fail;
21319 }
21320 resultobj = SWIG_From_int(static_cast< int >(result));
21321 return resultobj;
21322 fail:
21323 return NULL;
21324 }
21325
21326
21327 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21328 PyObject *resultobj = 0;
21329 wxDC *arg1 = (wxDC *) 0 ;
21330 int arg2 ;
21331 int result;
21332 void *argp1 = 0 ;
21333 int res1 = 0 ;
21334 int val2 ;
21335 int ecode2 = 0 ;
21336 PyObject * obj0 = 0 ;
21337 PyObject * obj1 = 0 ;
21338 char * kwnames[] = {
21339 (char *) "self",(char *) "y", NULL
21340 };
21341
21342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21344 if (!SWIG_IsOK(res1)) {
21345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21346 }
21347 arg1 = reinterpret_cast< wxDC * >(argp1);
21348 ecode2 = SWIG_AsVal_int(obj1, &val2);
21349 if (!SWIG_IsOK(ecode2)) {
21350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21351 }
21352 arg2 = static_cast< int >(val2);
21353 {
21354 PyThreadState* __tstate = wxPyBeginAllowThreads();
21355 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21356 wxPyEndAllowThreads(__tstate);
21357 if (PyErr_Occurred()) SWIG_fail;
21358 }
21359 resultobj = SWIG_From_int(static_cast< int >(result));
21360 return resultobj;
21361 fail:
21362 return NULL;
21363 }
21364
21365
21366 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21367 PyObject *resultobj = 0;
21368 wxDC *arg1 = (wxDC *) 0 ;
21369 bool result;
21370 void *argp1 = 0 ;
21371 int res1 = 0 ;
21372 PyObject *swig_obj[1] ;
21373
21374 if (!args) SWIG_fail;
21375 swig_obj[0] = args;
21376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21377 if (!SWIG_IsOK(res1)) {
21378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21379 }
21380 arg1 = reinterpret_cast< wxDC * >(argp1);
21381 {
21382 PyThreadState* __tstate = wxPyBeginAllowThreads();
21383 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21384 wxPyEndAllowThreads(__tstate);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 }
21387 {
21388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21389 }
21390 return resultobj;
21391 fail:
21392 return NULL;
21393 }
21394
21395
21396 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21397 PyObject *resultobj = 0;
21398 wxDC *arg1 = (wxDC *) 0 ;
21399 bool result;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 PyObject *swig_obj[1] ;
21403
21404 if (!args) SWIG_fail;
21405 swig_obj[0] = args;
21406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21407 if (!SWIG_IsOK(res1)) {
21408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21409 }
21410 arg1 = reinterpret_cast< wxDC * >(argp1);
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 {
21418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21419 }
21420 return resultobj;
21421 fail:
21422 return NULL;
21423 }
21424
21425
21426 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21427 PyObject *resultobj = 0;
21428 wxDC *arg1 = (wxDC *) 0 ;
21429 int result;
21430 void *argp1 = 0 ;
21431 int res1 = 0 ;
21432 PyObject *swig_obj[1] ;
21433
21434 if (!args) SWIG_fail;
21435 swig_obj[0] = args;
21436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21437 if (!SWIG_IsOK(res1)) {
21438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21439 }
21440 arg1 = reinterpret_cast< wxDC * >(argp1);
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 result = (int)((wxDC const *)arg1)->GetDepth();
21444 wxPyEndAllowThreads(__tstate);
21445 if (PyErr_Occurred()) SWIG_fail;
21446 }
21447 resultobj = SWIG_From_int(static_cast< int >(result));
21448 return resultobj;
21449 fail:
21450 return NULL;
21451 }
21452
21453
21454 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21455 PyObject *resultobj = 0;
21456 wxDC *arg1 = (wxDC *) 0 ;
21457 wxSize result;
21458 void *argp1 = 0 ;
21459 int res1 = 0 ;
21460 PyObject *swig_obj[1] ;
21461
21462 if (!args) SWIG_fail;
21463 swig_obj[0] = args;
21464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21465 if (!SWIG_IsOK(res1)) {
21466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21467 }
21468 arg1 = reinterpret_cast< wxDC * >(argp1);
21469 {
21470 PyThreadState* __tstate = wxPyBeginAllowThreads();
21471 result = ((wxDC const *)arg1)->GetPPI();
21472 wxPyEndAllowThreads(__tstate);
21473 if (PyErr_Occurred()) SWIG_fail;
21474 }
21475 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21476 return resultobj;
21477 fail:
21478 return NULL;
21479 }
21480
21481
21482 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21483 PyObject *resultobj = 0;
21484 wxDC *arg1 = (wxDC *) 0 ;
21485 bool result;
21486 void *argp1 = 0 ;
21487 int res1 = 0 ;
21488 PyObject *swig_obj[1] ;
21489
21490 if (!args) SWIG_fail;
21491 swig_obj[0] = args;
21492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21493 if (!SWIG_IsOK(res1)) {
21494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21495 }
21496 arg1 = reinterpret_cast< wxDC * >(argp1);
21497 {
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 result = (bool)((wxDC const *)arg1)->IsOk();
21500 wxPyEndAllowThreads(__tstate);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 {
21504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21505 }
21506 return resultobj;
21507 fail:
21508 return NULL;
21509 }
21510
21511
21512 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21513 PyObject *resultobj = 0;
21514 wxDC *arg1 = (wxDC *) 0 ;
21515 int result;
21516 void *argp1 = 0 ;
21517 int res1 = 0 ;
21518 PyObject *swig_obj[1] ;
21519
21520 if (!args) SWIG_fail;
21521 swig_obj[0] = args;
21522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21523 if (!SWIG_IsOK(res1)) {
21524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21525 }
21526 arg1 = reinterpret_cast< wxDC * >(argp1);
21527 {
21528 PyThreadState* __tstate = wxPyBeginAllowThreads();
21529 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21530 wxPyEndAllowThreads(__tstate);
21531 if (PyErr_Occurred()) SWIG_fail;
21532 }
21533 resultobj = SWIG_From_int(static_cast< int >(result));
21534 return resultobj;
21535 fail:
21536 return NULL;
21537 }
21538
21539
21540 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21541 PyObject *resultobj = 0;
21542 wxDC *arg1 = (wxDC *) 0 ;
21543 wxBrush *result = 0 ;
21544 void *argp1 = 0 ;
21545 int res1 = 0 ;
21546 PyObject *swig_obj[1] ;
21547
21548 if (!args) SWIG_fail;
21549 swig_obj[0] = args;
21550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21551 if (!SWIG_IsOK(res1)) {
21552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21553 }
21554 arg1 = reinterpret_cast< wxDC * >(argp1);
21555 {
21556 PyThreadState* __tstate = wxPyBeginAllowThreads();
21557 {
21558 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21559 result = (wxBrush *) &_result_ref;
21560 }
21561 wxPyEndAllowThreads(__tstate);
21562 if (PyErr_Occurred()) SWIG_fail;
21563 }
21564 {
21565 wxBrush* resultptr = new wxBrush(*result);
21566 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21567 }
21568 return resultobj;
21569 fail:
21570 return NULL;
21571 }
21572
21573
21574 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21575 PyObject *resultobj = 0;
21576 wxDC *arg1 = (wxDC *) 0 ;
21577 wxBrush *result = 0 ;
21578 void *argp1 = 0 ;
21579 int res1 = 0 ;
21580 PyObject *swig_obj[1] ;
21581
21582 if (!args) SWIG_fail;
21583 swig_obj[0] = args;
21584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21585 if (!SWIG_IsOK(res1)) {
21586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21587 }
21588 arg1 = reinterpret_cast< wxDC * >(argp1);
21589 {
21590 PyThreadState* __tstate = wxPyBeginAllowThreads();
21591 {
21592 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21593 result = (wxBrush *) &_result_ref;
21594 }
21595 wxPyEndAllowThreads(__tstate);
21596 if (PyErr_Occurred()) SWIG_fail;
21597 }
21598 {
21599 wxBrush* resultptr = new wxBrush(*result);
21600 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21601 }
21602 return resultobj;
21603 fail:
21604 return NULL;
21605 }
21606
21607
21608 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21609 PyObject *resultobj = 0;
21610 wxDC *arg1 = (wxDC *) 0 ;
21611 wxFont *result = 0 ;
21612 void *argp1 = 0 ;
21613 int res1 = 0 ;
21614 PyObject *swig_obj[1] ;
21615
21616 if (!args) SWIG_fail;
21617 swig_obj[0] = args;
21618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21619 if (!SWIG_IsOK(res1)) {
21620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21621 }
21622 arg1 = reinterpret_cast< wxDC * >(argp1);
21623 {
21624 PyThreadState* __tstate = wxPyBeginAllowThreads();
21625 {
21626 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21627 result = (wxFont *) &_result_ref;
21628 }
21629 wxPyEndAllowThreads(__tstate);
21630 if (PyErr_Occurred()) SWIG_fail;
21631 }
21632 {
21633 wxFont* resultptr = new wxFont(*result);
21634 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21635 }
21636 return resultobj;
21637 fail:
21638 return NULL;
21639 }
21640
21641
21642 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21643 PyObject *resultobj = 0;
21644 wxDC *arg1 = (wxDC *) 0 ;
21645 wxPen *result = 0 ;
21646 void *argp1 = 0 ;
21647 int res1 = 0 ;
21648 PyObject *swig_obj[1] ;
21649
21650 if (!args) SWIG_fail;
21651 swig_obj[0] = args;
21652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21653 if (!SWIG_IsOK(res1)) {
21654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21655 }
21656 arg1 = reinterpret_cast< wxDC * >(argp1);
21657 {
21658 PyThreadState* __tstate = wxPyBeginAllowThreads();
21659 {
21660 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21661 result = (wxPen *) &_result_ref;
21662 }
21663 wxPyEndAllowThreads(__tstate);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
21666 {
21667 wxPen* resultptr = new wxPen(*result);
21668 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21669 }
21670 return resultobj;
21671 fail:
21672 return NULL;
21673 }
21674
21675
21676 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21677 PyObject *resultobj = 0;
21678 wxDC *arg1 = (wxDC *) 0 ;
21679 wxColour *result = 0 ;
21680 void *argp1 = 0 ;
21681 int res1 = 0 ;
21682 PyObject *swig_obj[1] ;
21683
21684 if (!args) SWIG_fail;
21685 swig_obj[0] = args;
21686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21687 if (!SWIG_IsOK(res1)) {
21688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21689 }
21690 arg1 = reinterpret_cast< wxDC * >(argp1);
21691 {
21692 PyThreadState* __tstate = wxPyBeginAllowThreads();
21693 {
21694 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21695 result = (wxColour *) &_result_ref;
21696 }
21697 wxPyEndAllowThreads(__tstate);
21698 if (PyErr_Occurred()) SWIG_fail;
21699 }
21700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21701 return resultobj;
21702 fail:
21703 return NULL;
21704 }
21705
21706
21707 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21708 PyObject *resultobj = 0;
21709 wxDC *arg1 = (wxDC *) 0 ;
21710 wxColour *result = 0 ;
21711 void *argp1 = 0 ;
21712 int res1 = 0 ;
21713 PyObject *swig_obj[1] ;
21714
21715 if (!args) SWIG_fail;
21716 swig_obj[0] = args;
21717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21718 if (!SWIG_IsOK(res1)) {
21719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21720 }
21721 arg1 = reinterpret_cast< wxDC * >(argp1);
21722 {
21723 PyThreadState* __tstate = wxPyBeginAllowThreads();
21724 {
21725 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21726 result = (wxColour *) &_result_ref;
21727 }
21728 wxPyEndAllowThreads(__tstate);
21729 if (PyErr_Occurred()) SWIG_fail;
21730 }
21731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21732 return resultobj;
21733 fail:
21734 return NULL;
21735 }
21736
21737
21738 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21739 PyObject *resultobj = 0;
21740 wxDC *arg1 = (wxDC *) 0 ;
21741 wxColour *arg2 = 0 ;
21742 void *argp1 = 0 ;
21743 int res1 = 0 ;
21744 wxColour temp2 ;
21745 PyObject * obj0 = 0 ;
21746 PyObject * obj1 = 0 ;
21747 char * kwnames[] = {
21748 (char *) "self",(char *) "colour", NULL
21749 };
21750
21751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21753 if (!SWIG_IsOK(res1)) {
21754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21755 }
21756 arg1 = reinterpret_cast< wxDC * >(argp1);
21757 {
21758 arg2 = &temp2;
21759 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21760 }
21761 {
21762 PyThreadState* __tstate = wxPyBeginAllowThreads();
21763 (arg1)->SetTextForeground((wxColour const &)*arg2);
21764 wxPyEndAllowThreads(__tstate);
21765 if (PyErr_Occurred()) SWIG_fail;
21766 }
21767 resultobj = SWIG_Py_Void();
21768 return resultobj;
21769 fail:
21770 return NULL;
21771 }
21772
21773
21774 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21775 PyObject *resultobj = 0;
21776 wxDC *arg1 = (wxDC *) 0 ;
21777 wxColour *arg2 = 0 ;
21778 void *argp1 = 0 ;
21779 int res1 = 0 ;
21780 wxColour temp2 ;
21781 PyObject * obj0 = 0 ;
21782 PyObject * obj1 = 0 ;
21783 char * kwnames[] = {
21784 (char *) "self",(char *) "colour", NULL
21785 };
21786
21787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21789 if (!SWIG_IsOK(res1)) {
21790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21791 }
21792 arg1 = reinterpret_cast< wxDC * >(argp1);
21793 {
21794 arg2 = &temp2;
21795 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21796 }
21797 {
21798 PyThreadState* __tstate = wxPyBeginAllowThreads();
21799 (arg1)->SetTextBackground((wxColour const &)*arg2);
21800 wxPyEndAllowThreads(__tstate);
21801 if (PyErr_Occurred()) SWIG_fail;
21802 }
21803 resultobj = SWIG_Py_Void();
21804 return resultobj;
21805 fail:
21806 return NULL;
21807 }
21808
21809
21810 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21811 PyObject *resultobj = 0;
21812 wxDC *arg1 = (wxDC *) 0 ;
21813 int result;
21814 void *argp1 = 0 ;
21815 int res1 = 0 ;
21816 PyObject *swig_obj[1] ;
21817
21818 if (!args) SWIG_fail;
21819 swig_obj[0] = args;
21820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21821 if (!SWIG_IsOK(res1)) {
21822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21823 }
21824 arg1 = reinterpret_cast< wxDC * >(argp1);
21825 {
21826 PyThreadState* __tstate = wxPyBeginAllowThreads();
21827 result = (int)((wxDC const *)arg1)->GetMapMode();
21828 wxPyEndAllowThreads(__tstate);
21829 if (PyErr_Occurred()) SWIG_fail;
21830 }
21831 resultobj = SWIG_From_int(static_cast< int >(result));
21832 return resultobj;
21833 fail:
21834 return NULL;
21835 }
21836
21837
21838 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21839 PyObject *resultobj = 0;
21840 wxDC *arg1 = (wxDC *) 0 ;
21841 int arg2 ;
21842 void *argp1 = 0 ;
21843 int res1 = 0 ;
21844 int val2 ;
21845 int ecode2 = 0 ;
21846 PyObject * obj0 = 0 ;
21847 PyObject * obj1 = 0 ;
21848 char * kwnames[] = {
21849 (char *) "self",(char *) "mode", NULL
21850 };
21851
21852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21854 if (!SWIG_IsOK(res1)) {
21855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21856 }
21857 arg1 = reinterpret_cast< wxDC * >(argp1);
21858 ecode2 = SWIG_AsVal_int(obj1, &val2);
21859 if (!SWIG_IsOK(ecode2)) {
21860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21861 }
21862 arg2 = static_cast< int >(val2);
21863 {
21864 PyThreadState* __tstate = wxPyBeginAllowThreads();
21865 (arg1)->SetMapMode(arg2);
21866 wxPyEndAllowThreads(__tstate);
21867 if (PyErr_Occurred()) SWIG_fail;
21868 }
21869 resultobj = SWIG_Py_Void();
21870 return resultobj;
21871 fail:
21872 return NULL;
21873 }
21874
21875
21876 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21877 PyObject *resultobj = 0;
21878 wxDC *arg1 = (wxDC *) 0 ;
21879 double *arg2 = (double *) 0 ;
21880 double *arg3 = (double *) 0 ;
21881 void *argp1 = 0 ;
21882 int res1 = 0 ;
21883 double temp2 ;
21884 int res2 = SWIG_TMPOBJ ;
21885 double temp3 ;
21886 int res3 = SWIG_TMPOBJ ;
21887 PyObject *swig_obj[1] ;
21888
21889 arg2 = &temp2;
21890 arg3 = &temp3;
21891 if (!args) SWIG_fail;
21892 swig_obj[0] = args;
21893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21894 if (!SWIG_IsOK(res1)) {
21895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21896 }
21897 arg1 = reinterpret_cast< wxDC * >(argp1);
21898 {
21899 PyThreadState* __tstate = wxPyBeginAllowThreads();
21900 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21901 wxPyEndAllowThreads(__tstate);
21902 if (PyErr_Occurred()) SWIG_fail;
21903 }
21904 resultobj = SWIG_Py_Void();
21905 if (SWIG_IsTmpObj(res2)) {
21906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21907 } else {
21908 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21909 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21910 }
21911 if (SWIG_IsTmpObj(res3)) {
21912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21913 } else {
21914 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21916 }
21917 return resultobj;
21918 fail:
21919 return NULL;
21920 }
21921
21922
21923 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21924 PyObject *resultobj = 0;
21925 wxDC *arg1 = (wxDC *) 0 ;
21926 double arg2 ;
21927 double arg3 ;
21928 void *argp1 = 0 ;
21929 int res1 = 0 ;
21930 double val2 ;
21931 int ecode2 = 0 ;
21932 double val3 ;
21933 int ecode3 = 0 ;
21934 PyObject * obj0 = 0 ;
21935 PyObject * obj1 = 0 ;
21936 PyObject * obj2 = 0 ;
21937 char * kwnames[] = {
21938 (char *) "self",(char *) "x",(char *) "y", NULL
21939 };
21940
21941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21943 if (!SWIG_IsOK(res1)) {
21944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21945 }
21946 arg1 = reinterpret_cast< wxDC * >(argp1);
21947 ecode2 = SWIG_AsVal_double(obj1, &val2);
21948 if (!SWIG_IsOK(ecode2)) {
21949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21950 }
21951 arg2 = static_cast< double >(val2);
21952 ecode3 = SWIG_AsVal_double(obj2, &val3);
21953 if (!SWIG_IsOK(ecode3)) {
21954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21955 }
21956 arg3 = static_cast< double >(val3);
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 (arg1)->SetUserScale(arg2,arg3);
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 resultobj = SWIG_Py_Void();
21964 return resultobj;
21965 fail:
21966 return NULL;
21967 }
21968
21969
21970 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21971 PyObject *resultobj = 0;
21972 wxDC *arg1 = (wxDC *) 0 ;
21973 double *arg2 = (double *) 0 ;
21974 double *arg3 = (double *) 0 ;
21975 void *argp1 = 0 ;
21976 int res1 = 0 ;
21977 double temp2 ;
21978 int res2 = SWIG_TMPOBJ ;
21979 double temp3 ;
21980 int res3 = SWIG_TMPOBJ ;
21981 PyObject *swig_obj[1] ;
21982
21983 arg2 = &temp2;
21984 arg3 = &temp3;
21985 if (!args) SWIG_fail;
21986 swig_obj[0] = args;
21987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21988 if (!SWIG_IsOK(res1)) {
21989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21990 }
21991 arg1 = reinterpret_cast< wxDC * >(argp1);
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 (arg1)->GetLogicalScale(arg2,arg3);
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 resultobj = SWIG_Py_Void();
21999 if (SWIG_IsTmpObj(res2)) {
22000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22001 } else {
22002 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22003 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22004 }
22005 if (SWIG_IsTmpObj(res3)) {
22006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22007 } else {
22008 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22010 }
22011 return resultobj;
22012 fail:
22013 return NULL;
22014 }
22015
22016
22017 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22018 PyObject *resultobj = 0;
22019 wxDC *arg1 = (wxDC *) 0 ;
22020 double arg2 ;
22021 double arg3 ;
22022 void *argp1 = 0 ;
22023 int res1 = 0 ;
22024 double val2 ;
22025 int ecode2 = 0 ;
22026 double val3 ;
22027 int ecode3 = 0 ;
22028 PyObject * obj0 = 0 ;
22029 PyObject * obj1 = 0 ;
22030 PyObject * obj2 = 0 ;
22031 char * kwnames[] = {
22032 (char *) "self",(char *) "x",(char *) "y", NULL
22033 };
22034
22035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22037 if (!SWIG_IsOK(res1)) {
22038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22039 }
22040 arg1 = reinterpret_cast< wxDC * >(argp1);
22041 ecode2 = SWIG_AsVal_double(obj1, &val2);
22042 if (!SWIG_IsOK(ecode2)) {
22043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22044 }
22045 arg2 = static_cast< double >(val2);
22046 ecode3 = SWIG_AsVal_double(obj2, &val3);
22047 if (!SWIG_IsOK(ecode3)) {
22048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22049 }
22050 arg3 = static_cast< double >(val3);
22051 {
22052 PyThreadState* __tstate = wxPyBeginAllowThreads();
22053 (arg1)->SetLogicalScale(arg2,arg3);
22054 wxPyEndAllowThreads(__tstate);
22055 if (PyErr_Occurred()) SWIG_fail;
22056 }
22057 resultobj = SWIG_Py_Void();
22058 return resultobj;
22059 fail:
22060 return NULL;
22061 }
22062
22063
22064 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22065 PyObject *resultobj = 0;
22066 wxDC *arg1 = (wxDC *) 0 ;
22067 wxPoint result;
22068 void *argp1 = 0 ;
22069 int res1 = 0 ;
22070 PyObject *swig_obj[1] ;
22071
22072 if (!args) SWIG_fail;
22073 swig_obj[0] = args;
22074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22075 if (!SWIG_IsOK(res1)) {
22076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22077 }
22078 arg1 = reinterpret_cast< wxDC * >(argp1);
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22082 wxPyEndAllowThreads(__tstate);
22083 if (PyErr_Occurred()) SWIG_fail;
22084 }
22085 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22086 return resultobj;
22087 fail:
22088 return NULL;
22089 }
22090
22091
22092 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22093 PyObject *resultobj = 0;
22094 wxDC *arg1 = (wxDC *) 0 ;
22095 int *arg2 = (int *) 0 ;
22096 int *arg3 = (int *) 0 ;
22097 void *argp1 = 0 ;
22098 int res1 = 0 ;
22099 int temp2 ;
22100 int res2 = SWIG_TMPOBJ ;
22101 int temp3 ;
22102 int res3 = SWIG_TMPOBJ ;
22103 PyObject *swig_obj[1] ;
22104
22105 arg2 = &temp2;
22106 arg3 = &temp3;
22107 if (!args) SWIG_fail;
22108 swig_obj[0] = args;
22109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22110 if (!SWIG_IsOK(res1)) {
22111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22112 }
22113 arg1 = reinterpret_cast< wxDC * >(argp1);
22114 {
22115 PyThreadState* __tstate = wxPyBeginAllowThreads();
22116 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22117 wxPyEndAllowThreads(__tstate);
22118 if (PyErr_Occurred()) SWIG_fail;
22119 }
22120 resultobj = SWIG_Py_Void();
22121 if (SWIG_IsTmpObj(res2)) {
22122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22123 } else {
22124 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22126 }
22127 if (SWIG_IsTmpObj(res3)) {
22128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22129 } else {
22130 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22132 }
22133 return resultobj;
22134 fail:
22135 return NULL;
22136 }
22137
22138
22139 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22140 PyObject *resultobj = 0;
22141 wxDC *arg1 = (wxDC *) 0 ;
22142 int arg2 ;
22143 int arg3 ;
22144 void *argp1 = 0 ;
22145 int res1 = 0 ;
22146 int val2 ;
22147 int ecode2 = 0 ;
22148 int val3 ;
22149 int ecode3 = 0 ;
22150 PyObject * obj0 = 0 ;
22151 PyObject * obj1 = 0 ;
22152 PyObject * obj2 = 0 ;
22153 char * kwnames[] = {
22154 (char *) "self",(char *) "x",(char *) "y", NULL
22155 };
22156
22157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22159 if (!SWIG_IsOK(res1)) {
22160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22161 }
22162 arg1 = reinterpret_cast< wxDC * >(argp1);
22163 ecode2 = SWIG_AsVal_int(obj1, &val2);
22164 if (!SWIG_IsOK(ecode2)) {
22165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22166 }
22167 arg2 = static_cast< int >(val2);
22168 ecode3 = SWIG_AsVal_int(obj2, &val3);
22169 if (!SWIG_IsOK(ecode3)) {
22170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22171 }
22172 arg3 = static_cast< int >(val3);
22173 {
22174 PyThreadState* __tstate = wxPyBeginAllowThreads();
22175 (arg1)->SetLogicalOrigin(arg2,arg3);
22176 wxPyEndAllowThreads(__tstate);
22177 if (PyErr_Occurred()) SWIG_fail;
22178 }
22179 resultobj = SWIG_Py_Void();
22180 return resultobj;
22181 fail:
22182 return NULL;
22183 }
22184
22185
22186 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22187 PyObject *resultobj = 0;
22188 wxDC *arg1 = (wxDC *) 0 ;
22189 wxPoint *arg2 = 0 ;
22190 void *argp1 = 0 ;
22191 int res1 = 0 ;
22192 wxPoint temp2 ;
22193 PyObject * obj0 = 0 ;
22194 PyObject * obj1 = 0 ;
22195 char * kwnames[] = {
22196 (char *) "self",(char *) "point", NULL
22197 };
22198
22199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22201 if (!SWIG_IsOK(res1)) {
22202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22203 }
22204 arg1 = reinterpret_cast< wxDC * >(argp1);
22205 {
22206 arg2 = &temp2;
22207 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22208 }
22209 {
22210 PyThreadState* __tstate = wxPyBeginAllowThreads();
22211 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22212 wxPyEndAllowThreads(__tstate);
22213 if (PyErr_Occurred()) SWIG_fail;
22214 }
22215 resultobj = SWIG_Py_Void();
22216 return resultobj;
22217 fail:
22218 return NULL;
22219 }
22220
22221
22222 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxDC *arg1 = (wxDC *) 0 ;
22225 wxPoint result;
22226 void *argp1 = 0 ;
22227 int res1 = 0 ;
22228 PyObject *swig_obj[1] ;
22229
22230 if (!args) SWIG_fail;
22231 swig_obj[0] = args;
22232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22233 if (!SWIG_IsOK(res1)) {
22234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22235 }
22236 arg1 = reinterpret_cast< wxDC * >(argp1);
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
22239 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22240 wxPyEndAllowThreads(__tstate);
22241 if (PyErr_Occurred()) SWIG_fail;
22242 }
22243 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22244 return resultobj;
22245 fail:
22246 return NULL;
22247 }
22248
22249
22250 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22251 PyObject *resultobj = 0;
22252 wxDC *arg1 = (wxDC *) 0 ;
22253 int *arg2 = (int *) 0 ;
22254 int *arg3 = (int *) 0 ;
22255 void *argp1 = 0 ;
22256 int res1 = 0 ;
22257 int temp2 ;
22258 int res2 = SWIG_TMPOBJ ;
22259 int temp3 ;
22260 int res3 = SWIG_TMPOBJ ;
22261 PyObject *swig_obj[1] ;
22262
22263 arg2 = &temp2;
22264 arg3 = &temp3;
22265 if (!args) SWIG_fail;
22266 swig_obj[0] = args;
22267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22268 if (!SWIG_IsOK(res1)) {
22269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22270 }
22271 arg1 = reinterpret_cast< wxDC * >(argp1);
22272 {
22273 PyThreadState* __tstate = wxPyBeginAllowThreads();
22274 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22275 wxPyEndAllowThreads(__tstate);
22276 if (PyErr_Occurred()) SWIG_fail;
22277 }
22278 resultobj = SWIG_Py_Void();
22279 if (SWIG_IsTmpObj(res2)) {
22280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22281 } else {
22282 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22284 }
22285 if (SWIG_IsTmpObj(res3)) {
22286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22287 } else {
22288 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22290 }
22291 return resultobj;
22292 fail:
22293 return NULL;
22294 }
22295
22296
22297 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22298 PyObject *resultobj = 0;
22299 wxDC *arg1 = (wxDC *) 0 ;
22300 int arg2 ;
22301 int arg3 ;
22302 void *argp1 = 0 ;
22303 int res1 = 0 ;
22304 int val2 ;
22305 int ecode2 = 0 ;
22306 int val3 ;
22307 int ecode3 = 0 ;
22308 PyObject * obj0 = 0 ;
22309 PyObject * obj1 = 0 ;
22310 PyObject * obj2 = 0 ;
22311 char * kwnames[] = {
22312 (char *) "self",(char *) "x",(char *) "y", NULL
22313 };
22314
22315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22317 if (!SWIG_IsOK(res1)) {
22318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22319 }
22320 arg1 = reinterpret_cast< wxDC * >(argp1);
22321 ecode2 = SWIG_AsVal_int(obj1, &val2);
22322 if (!SWIG_IsOK(ecode2)) {
22323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22324 }
22325 arg2 = static_cast< int >(val2);
22326 ecode3 = SWIG_AsVal_int(obj2, &val3);
22327 if (!SWIG_IsOK(ecode3)) {
22328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22329 }
22330 arg3 = static_cast< int >(val3);
22331 {
22332 PyThreadState* __tstate = wxPyBeginAllowThreads();
22333 (arg1)->SetDeviceOrigin(arg2,arg3);
22334 wxPyEndAllowThreads(__tstate);
22335 if (PyErr_Occurred()) SWIG_fail;
22336 }
22337 resultobj = SWIG_Py_Void();
22338 return resultobj;
22339 fail:
22340 return NULL;
22341 }
22342
22343
22344 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22345 PyObject *resultobj = 0;
22346 wxDC *arg1 = (wxDC *) 0 ;
22347 wxPoint *arg2 = 0 ;
22348 void *argp1 = 0 ;
22349 int res1 = 0 ;
22350 wxPoint temp2 ;
22351 PyObject * obj0 = 0 ;
22352 PyObject * obj1 = 0 ;
22353 char * kwnames[] = {
22354 (char *) "self",(char *) "point", NULL
22355 };
22356
22357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22359 if (!SWIG_IsOK(res1)) {
22360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22361 }
22362 arg1 = reinterpret_cast< wxDC * >(argp1);
22363 {
22364 arg2 = &temp2;
22365 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22366 }
22367 {
22368 PyThreadState* __tstate = wxPyBeginAllowThreads();
22369 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22370 wxPyEndAllowThreads(__tstate);
22371 if (PyErr_Occurred()) SWIG_fail;
22372 }
22373 resultobj = SWIG_Py_Void();
22374 return resultobj;
22375 fail:
22376 return NULL;
22377 }
22378
22379
22380 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22381 PyObject *resultobj = 0;
22382 wxDC *arg1 = (wxDC *) 0 ;
22383 bool arg2 ;
22384 bool arg3 ;
22385 void *argp1 = 0 ;
22386 int res1 = 0 ;
22387 bool val2 ;
22388 int ecode2 = 0 ;
22389 bool val3 ;
22390 int ecode3 = 0 ;
22391 PyObject * obj0 = 0 ;
22392 PyObject * obj1 = 0 ;
22393 PyObject * obj2 = 0 ;
22394 char * kwnames[] = {
22395 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22396 };
22397
22398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22400 if (!SWIG_IsOK(res1)) {
22401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22402 }
22403 arg1 = reinterpret_cast< wxDC * >(argp1);
22404 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22405 if (!SWIG_IsOK(ecode2)) {
22406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22407 }
22408 arg2 = static_cast< bool >(val2);
22409 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22410 if (!SWIG_IsOK(ecode3)) {
22411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22412 }
22413 arg3 = static_cast< bool >(val3);
22414 {
22415 PyThreadState* __tstate = wxPyBeginAllowThreads();
22416 (arg1)->SetAxisOrientation(arg2,arg3);
22417 wxPyEndAllowThreads(__tstate);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 resultobj = SWIG_Py_Void();
22421 return resultobj;
22422 fail:
22423 return NULL;
22424 }
22425
22426
22427 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22428 PyObject *resultobj = 0;
22429 wxDC *arg1 = (wxDC *) 0 ;
22430 int result;
22431 void *argp1 = 0 ;
22432 int res1 = 0 ;
22433 PyObject *swig_obj[1] ;
22434
22435 if (!args) SWIG_fail;
22436 swig_obj[0] = args;
22437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22438 if (!SWIG_IsOK(res1)) {
22439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22440 }
22441 arg1 = reinterpret_cast< wxDC * >(argp1);
22442 {
22443 PyThreadState* __tstate = wxPyBeginAllowThreads();
22444 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22445 wxPyEndAllowThreads(__tstate);
22446 if (PyErr_Occurred()) SWIG_fail;
22447 }
22448 resultobj = SWIG_From_int(static_cast< int >(result));
22449 return resultobj;
22450 fail:
22451 return NULL;
22452 }
22453
22454
22455 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22456 PyObject *resultobj = 0;
22457 wxDC *arg1 = (wxDC *) 0 ;
22458 int arg2 ;
22459 void *argp1 = 0 ;
22460 int res1 = 0 ;
22461 int val2 ;
22462 int ecode2 = 0 ;
22463 PyObject * obj0 = 0 ;
22464 PyObject * obj1 = 0 ;
22465 char * kwnames[] = {
22466 (char *) "self",(char *) "function", NULL
22467 };
22468
22469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22471 if (!SWIG_IsOK(res1)) {
22472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22473 }
22474 arg1 = reinterpret_cast< wxDC * >(argp1);
22475 ecode2 = SWIG_AsVal_int(obj1, &val2);
22476 if (!SWIG_IsOK(ecode2)) {
22477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22478 }
22479 arg2 = static_cast< int >(val2);
22480 {
22481 PyThreadState* __tstate = wxPyBeginAllowThreads();
22482 (arg1)->SetLogicalFunction(arg2);
22483 wxPyEndAllowThreads(__tstate);
22484 if (PyErr_Occurred()) SWIG_fail;
22485 }
22486 resultobj = SWIG_Py_Void();
22487 return resultobj;
22488 fail:
22489 return NULL;
22490 }
22491
22492
22493 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22494 PyObject *resultobj = 0;
22495 wxDC *arg1 = (wxDC *) 0 ;
22496 void *argp1 = 0 ;
22497 int res1 = 0 ;
22498 PyObject *swig_obj[1] ;
22499
22500 if (!args) SWIG_fail;
22501 swig_obj[0] = args;
22502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22503 if (!SWIG_IsOK(res1)) {
22504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22505 }
22506 arg1 = reinterpret_cast< wxDC * >(argp1);
22507 {
22508 PyThreadState* __tstate = wxPyBeginAllowThreads();
22509 (arg1)->ComputeScaleAndOrigin();
22510 wxPyEndAllowThreads(__tstate);
22511 if (PyErr_Occurred()) SWIG_fail;
22512 }
22513 resultobj = SWIG_Py_Void();
22514 return resultobj;
22515 fail:
22516 return NULL;
22517 }
22518
22519
22520 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22521 PyObject *resultobj = 0;
22522 wxDC *arg1 = (wxDC *) 0 ;
22523 int arg2 ;
22524 int arg3 ;
22525 void *argp1 = 0 ;
22526 int res1 = 0 ;
22527 int val2 ;
22528 int ecode2 = 0 ;
22529 int val3 ;
22530 int ecode3 = 0 ;
22531 PyObject * obj0 = 0 ;
22532 PyObject * obj1 = 0 ;
22533 PyObject * obj2 = 0 ;
22534 char * kwnames[] = {
22535 (char *) "self",(char *) "x",(char *) "y", NULL
22536 };
22537
22538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22540 if (!SWIG_IsOK(res1)) {
22541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22542 }
22543 arg1 = reinterpret_cast< wxDC * >(argp1);
22544 ecode2 = SWIG_AsVal_int(obj1, &val2);
22545 if (!SWIG_IsOK(ecode2)) {
22546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22547 }
22548 arg2 = static_cast< int >(val2);
22549 ecode3 = SWIG_AsVal_int(obj2, &val3);
22550 if (!SWIG_IsOK(ecode3)) {
22551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22552 }
22553 arg3 = static_cast< int >(val3);
22554 {
22555 PyThreadState* __tstate = wxPyBeginAllowThreads();
22556 (arg1)->CalcBoundingBox(arg2,arg3);
22557 wxPyEndAllowThreads(__tstate);
22558 if (PyErr_Occurred()) SWIG_fail;
22559 }
22560 resultobj = SWIG_Py_Void();
22561 return resultobj;
22562 fail:
22563 return NULL;
22564 }
22565
22566
22567 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22568 PyObject *resultobj = 0;
22569 wxDC *arg1 = (wxDC *) 0 ;
22570 wxPoint *arg2 = 0 ;
22571 void *argp1 = 0 ;
22572 int res1 = 0 ;
22573 wxPoint temp2 ;
22574 PyObject * obj0 = 0 ;
22575 PyObject * obj1 = 0 ;
22576 char * kwnames[] = {
22577 (char *) "self",(char *) "point", NULL
22578 };
22579
22580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22582 if (!SWIG_IsOK(res1)) {
22583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22584 }
22585 arg1 = reinterpret_cast< wxDC * >(argp1);
22586 {
22587 arg2 = &temp2;
22588 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22589 }
22590 {
22591 PyThreadState* __tstate = wxPyBeginAllowThreads();
22592 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22593 wxPyEndAllowThreads(__tstate);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 }
22596 resultobj = SWIG_Py_Void();
22597 return resultobj;
22598 fail:
22599 return NULL;
22600 }
22601
22602
22603 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22604 PyObject *resultobj = 0;
22605 wxDC *arg1 = (wxDC *) 0 ;
22606 void *argp1 = 0 ;
22607 int res1 = 0 ;
22608 PyObject *swig_obj[1] ;
22609
22610 if (!args) SWIG_fail;
22611 swig_obj[0] = args;
22612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22613 if (!SWIG_IsOK(res1)) {
22614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22615 }
22616 arg1 = reinterpret_cast< wxDC * >(argp1);
22617 {
22618 PyThreadState* __tstate = wxPyBeginAllowThreads();
22619 (arg1)->ResetBoundingBox();
22620 wxPyEndAllowThreads(__tstate);
22621 if (PyErr_Occurred()) SWIG_fail;
22622 }
22623 resultobj = SWIG_Py_Void();
22624 return resultobj;
22625 fail:
22626 return NULL;
22627 }
22628
22629
22630 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22631 PyObject *resultobj = 0;
22632 wxDC *arg1 = (wxDC *) 0 ;
22633 int result;
22634 void *argp1 = 0 ;
22635 int res1 = 0 ;
22636 PyObject *swig_obj[1] ;
22637
22638 if (!args) SWIG_fail;
22639 swig_obj[0] = args;
22640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22641 if (!SWIG_IsOK(res1)) {
22642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22643 }
22644 arg1 = reinterpret_cast< wxDC * >(argp1);
22645 {
22646 PyThreadState* __tstate = wxPyBeginAllowThreads();
22647 result = (int)((wxDC const *)arg1)->MinX();
22648 wxPyEndAllowThreads(__tstate);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 resultobj = SWIG_From_int(static_cast< int >(result));
22652 return resultobj;
22653 fail:
22654 return NULL;
22655 }
22656
22657
22658 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22659 PyObject *resultobj = 0;
22660 wxDC *arg1 = (wxDC *) 0 ;
22661 int result;
22662 void *argp1 = 0 ;
22663 int res1 = 0 ;
22664 PyObject *swig_obj[1] ;
22665
22666 if (!args) SWIG_fail;
22667 swig_obj[0] = args;
22668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22669 if (!SWIG_IsOK(res1)) {
22670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22671 }
22672 arg1 = reinterpret_cast< wxDC * >(argp1);
22673 {
22674 PyThreadState* __tstate = wxPyBeginAllowThreads();
22675 result = (int)((wxDC const *)arg1)->MaxX();
22676 wxPyEndAllowThreads(__tstate);
22677 if (PyErr_Occurred()) SWIG_fail;
22678 }
22679 resultobj = SWIG_From_int(static_cast< int >(result));
22680 return resultobj;
22681 fail:
22682 return NULL;
22683 }
22684
22685
22686 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22687 PyObject *resultobj = 0;
22688 wxDC *arg1 = (wxDC *) 0 ;
22689 int result;
22690 void *argp1 = 0 ;
22691 int res1 = 0 ;
22692 PyObject *swig_obj[1] ;
22693
22694 if (!args) SWIG_fail;
22695 swig_obj[0] = args;
22696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22697 if (!SWIG_IsOK(res1)) {
22698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22699 }
22700 arg1 = reinterpret_cast< wxDC * >(argp1);
22701 {
22702 PyThreadState* __tstate = wxPyBeginAllowThreads();
22703 result = (int)((wxDC const *)arg1)->MinY();
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 resultobj = SWIG_From_int(static_cast< int >(result));
22708 return resultobj;
22709 fail:
22710 return NULL;
22711 }
22712
22713
22714 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22715 PyObject *resultobj = 0;
22716 wxDC *arg1 = (wxDC *) 0 ;
22717 int result;
22718 void *argp1 = 0 ;
22719 int res1 = 0 ;
22720 PyObject *swig_obj[1] ;
22721
22722 if (!args) SWIG_fail;
22723 swig_obj[0] = args;
22724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22725 if (!SWIG_IsOK(res1)) {
22726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22727 }
22728 arg1 = reinterpret_cast< wxDC * >(argp1);
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 result = (int)((wxDC const *)arg1)->MaxY();
22732 wxPyEndAllowThreads(__tstate);
22733 if (PyErr_Occurred()) SWIG_fail;
22734 }
22735 resultobj = SWIG_From_int(static_cast< int >(result));
22736 return resultobj;
22737 fail:
22738 return NULL;
22739 }
22740
22741
22742 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22743 PyObject *resultobj = 0;
22744 wxDC *arg1 = (wxDC *) 0 ;
22745 int *arg2 = (int *) 0 ;
22746 int *arg3 = (int *) 0 ;
22747 int *arg4 = (int *) 0 ;
22748 int *arg5 = (int *) 0 ;
22749 void *argp1 = 0 ;
22750 int res1 = 0 ;
22751 int temp2 ;
22752 int res2 = SWIG_TMPOBJ ;
22753 int temp3 ;
22754 int res3 = SWIG_TMPOBJ ;
22755 int temp4 ;
22756 int res4 = SWIG_TMPOBJ ;
22757 int temp5 ;
22758 int res5 = SWIG_TMPOBJ ;
22759 PyObject *swig_obj[1] ;
22760
22761 arg2 = &temp2;
22762 arg3 = &temp3;
22763 arg4 = &temp4;
22764 arg5 = &temp5;
22765 if (!args) SWIG_fail;
22766 swig_obj[0] = args;
22767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22768 if (!SWIG_IsOK(res1)) {
22769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22770 }
22771 arg1 = reinterpret_cast< wxDC * >(argp1);
22772 {
22773 PyThreadState* __tstate = wxPyBeginAllowThreads();
22774 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22775 wxPyEndAllowThreads(__tstate);
22776 if (PyErr_Occurred()) SWIG_fail;
22777 }
22778 resultobj = SWIG_Py_Void();
22779 if (SWIG_IsTmpObj(res2)) {
22780 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22781 } else {
22782 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22783 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22784 }
22785 if (SWIG_IsTmpObj(res3)) {
22786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22787 } else {
22788 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22790 }
22791 if (SWIG_IsTmpObj(res4)) {
22792 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22793 } else {
22794 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22796 }
22797 if (SWIG_IsTmpObj(res5)) {
22798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22799 } else {
22800 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22802 }
22803 return resultobj;
22804 fail:
22805 return NULL;
22806 }
22807
22808
22809 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22810 PyObject *resultobj = 0;
22811 wxDC *arg1 = (wxDC *) 0 ;
22812 wxLayoutDirection result;
22813 void *argp1 = 0 ;
22814 int res1 = 0 ;
22815 PyObject *swig_obj[1] ;
22816
22817 if (!args) SWIG_fail;
22818 swig_obj[0] = args;
22819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22820 if (!SWIG_IsOK(res1)) {
22821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22822 }
22823 arg1 = reinterpret_cast< wxDC * >(argp1);
22824 {
22825 PyThreadState* __tstate = wxPyBeginAllowThreads();
22826 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22827 wxPyEndAllowThreads(__tstate);
22828 if (PyErr_Occurred()) SWIG_fail;
22829 }
22830 resultobj = SWIG_From_int(static_cast< int >(result));
22831 return resultobj;
22832 fail:
22833 return NULL;
22834 }
22835
22836
22837 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22838 PyObject *resultobj = 0;
22839 wxDC *arg1 = (wxDC *) 0 ;
22840 wxLayoutDirection arg2 ;
22841 void *argp1 = 0 ;
22842 int res1 = 0 ;
22843 int val2 ;
22844 int ecode2 = 0 ;
22845 PyObject * obj0 = 0 ;
22846 PyObject * obj1 = 0 ;
22847 char * kwnames[] = {
22848 (char *) "self",(char *) "dir", NULL
22849 };
22850
22851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22853 if (!SWIG_IsOK(res1)) {
22854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22855 }
22856 arg1 = reinterpret_cast< wxDC * >(argp1);
22857 ecode2 = SWIG_AsVal_int(obj1, &val2);
22858 if (!SWIG_IsOK(ecode2)) {
22859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22860 }
22861 arg2 = static_cast< wxLayoutDirection >(val2);
22862 {
22863 PyThreadState* __tstate = wxPyBeginAllowThreads();
22864 (arg1)->SetLayoutDirection(arg2);
22865 wxPyEndAllowThreads(__tstate);
22866 if (PyErr_Occurred()) SWIG_fail;
22867 }
22868 resultobj = SWIG_Py_Void();
22869 return resultobj;
22870 fail:
22871 return NULL;
22872 }
22873
22874
22875 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22876 PyObject *resultobj = 0;
22877 wxDC *arg1 = (wxDC *) 0 ;
22878 PyObject *arg2 = (PyObject *) 0 ;
22879 PyObject *arg3 = (PyObject *) 0 ;
22880 PyObject *arg4 = (PyObject *) 0 ;
22881 PyObject *result = 0 ;
22882 void *argp1 = 0 ;
22883 int res1 = 0 ;
22884 PyObject * obj0 = 0 ;
22885 PyObject * obj1 = 0 ;
22886 PyObject * obj2 = 0 ;
22887 PyObject * obj3 = 0 ;
22888 char * kwnames[] = {
22889 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22890 };
22891
22892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22894 if (!SWIG_IsOK(res1)) {
22895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22896 }
22897 arg1 = reinterpret_cast< wxDC * >(argp1);
22898 arg2 = obj1;
22899 arg3 = obj2;
22900 arg4 = obj3;
22901 {
22902 PyThreadState* __tstate = wxPyBeginAllowThreads();
22903 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22904 wxPyEndAllowThreads(__tstate);
22905 if (PyErr_Occurred()) SWIG_fail;
22906 }
22907 resultobj = result;
22908 return resultobj;
22909 fail:
22910 return NULL;
22911 }
22912
22913
22914 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22915 PyObject *resultobj = 0;
22916 wxDC *arg1 = (wxDC *) 0 ;
22917 PyObject *arg2 = (PyObject *) 0 ;
22918 PyObject *arg3 = (PyObject *) 0 ;
22919 PyObject *arg4 = (PyObject *) 0 ;
22920 PyObject *result = 0 ;
22921 void *argp1 = 0 ;
22922 int res1 = 0 ;
22923 PyObject * obj0 = 0 ;
22924 PyObject * obj1 = 0 ;
22925 PyObject * obj2 = 0 ;
22926 PyObject * obj3 = 0 ;
22927 char * kwnames[] = {
22928 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22929 };
22930
22931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22933 if (!SWIG_IsOK(res1)) {
22934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22935 }
22936 arg1 = reinterpret_cast< wxDC * >(argp1);
22937 arg2 = obj1;
22938 arg3 = obj2;
22939 arg4 = obj3;
22940 {
22941 PyThreadState* __tstate = wxPyBeginAllowThreads();
22942 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22943 wxPyEndAllowThreads(__tstate);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 }
22946 resultobj = result;
22947 return resultobj;
22948 fail:
22949 return NULL;
22950 }
22951
22952
22953 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22954 PyObject *resultobj = 0;
22955 wxDC *arg1 = (wxDC *) 0 ;
22956 PyObject *arg2 = (PyObject *) 0 ;
22957 PyObject *arg3 = (PyObject *) 0 ;
22958 PyObject *arg4 = (PyObject *) 0 ;
22959 PyObject *result = 0 ;
22960 void *argp1 = 0 ;
22961 int res1 = 0 ;
22962 PyObject * obj0 = 0 ;
22963 PyObject * obj1 = 0 ;
22964 PyObject * obj2 = 0 ;
22965 PyObject * obj3 = 0 ;
22966 char * kwnames[] = {
22967 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22968 };
22969
22970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22972 if (!SWIG_IsOK(res1)) {
22973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22974 }
22975 arg1 = reinterpret_cast< wxDC * >(argp1);
22976 arg2 = obj1;
22977 arg3 = obj2;
22978 arg4 = obj3;
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = result;
22986 return resultobj;
22987 fail:
22988 return NULL;
22989 }
22990
22991
22992 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22993 PyObject *resultobj = 0;
22994 wxDC *arg1 = (wxDC *) 0 ;
22995 PyObject *arg2 = (PyObject *) 0 ;
22996 PyObject *arg3 = (PyObject *) 0 ;
22997 PyObject *arg4 = (PyObject *) 0 ;
22998 PyObject *result = 0 ;
22999 void *argp1 = 0 ;
23000 int res1 = 0 ;
23001 PyObject * obj0 = 0 ;
23002 PyObject * obj1 = 0 ;
23003 PyObject * obj2 = 0 ;
23004 PyObject * obj3 = 0 ;
23005 char * kwnames[] = {
23006 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23007 };
23008
23009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23011 if (!SWIG_IsOK(res1)) {
23012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23013 }
23014 arg1 = reinterpret_cast< wxDC * >(argp1);
23015 arg2 = obj1;
23016 arg3 = obj2;
23017 arg4 = obj3;
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23021 wxPyEndAllowThreads(__tstate);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 }
23024 resultobj = result;
23025 return resultobj;
23026 fail:
23027 return NULL;
23028 }
23029
23030
23031 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23032 PyObject *resultobj = 0;
23033 wxDC *arg1 = (wxDC *) 0 ;
23034 PyObject *arg2 = (PyObject *) 0 ;
23035 PyObject *arg3 = (PyObject *) 0 ;
23036 PyObject *arg4 = (PyObject *) 0 ;
23037 PyObject *result = 0 ;
23038 void *argp1 = 0 ;
23039 int res1 = 0 ;
23040 PyObject * obj0 = 0 ;
23041 PyObject * obj1 = 0 ;
23042 PyObject * obj2 = 0 ;
23043 PyObject * obj3 = 0 ;
23044 char * kwnames[] = {
23045 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23046 };
23047
23048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23050 if (!SWIG_IsOK(res1)) {
23051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23052 }
23053 arg1 = reinterpret_cast< wxDC * >(argp1);
23054 arg2 = obj1;
23055 arg3 = obj2;
23056 arg4 = obj3;
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = result;
23064 return resultobj;
23065 fail:
23066 return NULL;
23067 }
23068
23069
23070 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23071 PyObject *resultobj = 0;
23072 wxDC *arg1 = (wxDC *) 0 ;
23073 PyObject *arg2 = (PyObject *) 0 ;
23074 PyObject *arg3 = (PyObject *) 0 ;
23075 PyObject *arg4 = (PyObject *) 0 ;
23076 PyObject *arg5 = (PyObject *) 0 ;
23077 PyObject *result = 0 ;
23078 void *argp1 = 0 ;
23079 int res1 = 0 ;
23080 PyObject * obj0 = 0 ;
23081 PyObject * obj1 = 0 ;
23082 PyObject * obj2 = 0 ;
23083 PyObject * obj3 = 0 ;
23084 PyObject * obj4 = 0 ;
23085 char * kwnames[] = {
23086 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23087 };
23088
23089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23091 if (!SWIG_IsOK(res1)) {
23092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23093 }
23094 arg1 = reinterpret_cast< wxDC * >(argp1);
23095 arg2 = obj1;
23096 arg3 = obj2;
23097 arg4 = obj3;
23098 arg5 = obj4;
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 resultobj = result;
23106 return resultobj;
23107 fail:
23108 return NULL;
23109 }
23110
23111
23112 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23113 PyObject *obj;
23114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23115 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23116 return SWIG_Py_Void();
23117 }
23118
23119 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23120 PyObject *resultobj = 0;
23121 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23122 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23123 wxMemoryDC *result = 0 ;
23124 void *argp1 = 0 ;
23125 int res1 = 0 ;
23126 PyObject * obj0 = 0 ;
23127 char * kwnames[] = {
23128 (char *) "bitmap", NULL
23129 };
23130
23131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23132 if (obj0) {
23133 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23134 if (!SWIG_IsOK(res1)) {
23135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23136 }
23137 if (!argp1) {
23138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23139 }
23140 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23141 }
23142 {
23143 if (!wxPyCheckForApp()) SWIG_fail;
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23150 return resultobj;
23151 fail:
23152 return NULL;
23153 }
23154
23155
23156 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23157 PyObject *resultobj = 0;
23158 wxDC *arg1 = (wxDC *) 0 ;
23159 wxMemoryDC *result = 0 ;
23160 void *argp1 = 0 ;
23161 int res1 = 0 ;
23162 PyObject * obj0 = 0 ;
23163 char * kwnames[] = {
23164 (char *) "oldDC", NULL
23165 };
23166
23167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23169 if (!SWIG_IsOK(res1)) {
23170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23171 }
23172 arg1 = reinterpret_cast< wxDC * >(argp1);
23173 {
23174 if (!wxPyCheckForApp()) SWIG_fail;
23175 PyThreadState* __tstate = wxPyBeginAllowThreads();
23176 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23177 wxPyEndAllowThreads(__tstate);
23178 if (PyErr_Occurred()) SWIG_fail;
23179 }
23180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23181 return resultobj;
23182 fail:
23183 return NULL;
23184 }
23185
23186
23187 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23188 PyObject *resultobj = 0;
23189 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23190 wxBitmap *arg2 = 0 ;
23191 void *argp1 = 0 ;
23192 int res1 = 0 ;
23193 void *argp2 = 0 ;
23194 int res2 = 0 ;
23195 PyObject * obj0 = 0 ;
23196 PyObject * obj1 = 0 ;
23197 char * kwnames[] = {
23198 (char *) "self",(char *) "bitmap", NULL
23199 };
23200
23201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23203 if (!SWIG_IsOK(res1)) {
23204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23205 }
23206 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23208 if (!SWIG_IsOK(res2)) {
23209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23210 }
23211 if (!argp2) {
23212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23213 }
23214 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23215 {
23216 PyThreadState* __tstate = wxPyBeginAllowThreads();
23217 (arg1)->SelectObject((wxBitmap const &)*arg2);
23218 wxPyEndAllowThreads(__tstate);
23219 if (PyErr_Occurred()) SWIG_fail;
23220 }
23221 resultobj = SWIG_Py_Void();
23222 return resultobj;
23223 fail:
23224 return NULL;
23225 }
23226
23227
23228 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23229 PyObject *obj;
23230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23231 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23232 return SWIG_Py_Void();
23233 }
23234
23235 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23236 return SWIG_Python_InitShadowInstance(args);
23237 }
23238
23239 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23240 PyObject *resultobj = 0;
23241 wxScreenDC *result = 0 ;
23242
23243 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23244 {
23245 if (!wxPyCheckForApp()) SWIG_fail;
23246 PyThreadState* __tstate = wxPyBeginAllowThreads();
23247 result = (wxScreenDC *)new wxScreenDC();
23248 wxPyEndAllowThreads(__tstate);
23249 if (PyErr_Occurred()) SWIG_fail;
23250 }
23251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23252 return resultobj;
23253 fail:
23254 return NULL;
23255 }
23256
23257
23258 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23259 PyObject *resultobj = 0;
23260 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23261 wxWindow *arg2 = (wxWindow *) 0 ;
23262 bool result;
23263 void *argp1 = 0 ;
23264 int res1 = 0 ;
23265 void *argp2 = 0 ;
23266 int res2 = 0 ;
23267 PyObject * obj0 = 0 ;
23268 PyObject * obj1 = 0 ;
23269 char * kwnames[] = {
23270 (char *) "self",(char *) "window", NULL
23271 };
23272
23273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23275 if (!SWIG_IsOK(res1)) {
23276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23277 }
23278 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23280 if (!SWIG_IsOK(res2)) {
23281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23282 }
23283 arg2 = reinterpret_cast< wxWindow * >(argp2);
23284 {
23285 PyThreadState* __tstate = wxPyBeginAllowThreads();
23286 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23287 wxPyEndAllowThreads(__tstate);
23288 if (PyErr_Occurred()) SWIG_fail;
23289 }
23290 {
23291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23292 }
23293 return resultobj;
23294 fail:
23295 return NULL;
23296 }
23297
23298
23299 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23300 PyObject *resultobj = 0;
23301 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23302 wxRect *arg2 = (wxRect *) NULL ;
23303 bool result;
23304 void *argp1 = 0 ;
23305 int res1 = 0 ;
23306 void *argp2 = 0 ;
23307 int res2 = 0 ;
23308 PyObject * obj0 = 0 ;
23309 PyObject * obj1 = 0 ;
23310 char * kwnames[] = {
23311 (char *) "self",(char *) "rect", NULL
23312 };
23313
23314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23316 if (!SWIG_IsOK(res1)) {
23317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23318 }
23319 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23320 if (obj1) {
23321 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23322 if (!SWIG_IsOK(res2)) {
23323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23324 }
23325 arg2 = reinterpret_cast< wxRect * >(argp2);
23326 }
23327 {
23328 PyThreadState* __tstate = wxPyBeginAllowThreads();
23329 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23330 wxPyEndAllowThreads(__tstate);
23331 if (PyErr_Occurred()) SWIG_fail;
23332 }
23333 {
23334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23335 }
23336 return resultobj;
23337 fail:
23338 return NULL;
23339 }
23340
23341
23342 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23343 PyObject *resultobj = 0;
23344 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23345 bool result;
23346 void *argp1 = 0 ;
23347 int res1 = 0 ;
23348 PyObject *swig_obj[1] ;
23349
23350 if (!args) SWIG_fail;
23351 swig_obj[0] = args;
23352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23353 if (!SWIG_IsOK(res1)) {
23354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23355 }
23356 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23357 {
23358 PyThreadState* __tstate = wxPyBeginAllowThreads();
23359 result = (bool)(arg1)->EndDrawingOnTop();
23360 wxPyEndAllowThreads(__tstate);
23361 if (PyErr_Occurred()) SWIG_fail;
23362 }
23363 {
23364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23365 }
23366 return resultobj;
23367 fail:
23368 return NULL;
23369 }
23370
23371
23372 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23373 PyObject *obj;
23374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23375 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23376 return SWIG_Py_Void();
23377 }
23378
23379 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23380 return SWIG_Python_InitShadowInstance(args);
23381 }
23382
23383 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23384 PyObject *resultobj = 0;
23385 wxWindow *arg1 = (wxWindow *) 0 ;
23386 wxWindowDC *result = 0 ;
23387 void *argp1 = 0 ;
23388 int res1 = 0 ;
23389 PyObject * obj0 = 0 ;
23390 char * kwnames[] = {
23391 (char *) "win", NULL
23392 };
23393
23394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23396 if (!SWIG_IsOK(res1)) {
23397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23398 }
23399 arg1 = reinterpret_cast< wxWindow * >(argp1);
23400 {
23401 if (!wxPyCheckForApp()) SWIG_fail;
23402 PyThreadState* __tstate = wxPyBeginAllowThreads();
23403 result = (wxWindowDC *)new wxWindowDC(arg1);
23404 wxPyEndAllowThreads(__tstate);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23408 return resultobj;
23409 fail:
23410 return NULL;
23411 }
23412
23413
23414 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23415 PyObject *obj;
23416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23417 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23418 return SWIG_Py_Void();
23419 }
23420
23421 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23422 return SWIG_Python_InitShadowInstance(args);
23423 }
23424
23425 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23426 PyObject *resultobj = 0;
23427 wxWindow *arg1 = (wxWindow *) 0 ;
23428 wxClientDC *result = 0 ;
23429 void *argp1 = 0 ;
23430 int res1 = 0 ;
23431 PyObject * obj0 = 0 ;
23432 char * kwnames[] = {
23433 (char *) "win", NULL
23434 };
23435
23436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23438 if (!SWIG_IsOK(res1)) {
23439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23440 }
23441 arg1 = reinterpret_cast< wxWindow * >(argp1);
23442 {
23443 if (!wxPyCheckForApp()) SWIG_fail;
23444 PyThreadState* __tstate = wxPyBeginAllowThreads();
23445 result = (wxClientDC *)new wxClientDC(arg1);
23446 wxPyEndAllowThreads(__tstate);
23447 if (PyErr_Occurred()) SWIG_fail;
23448 }
23449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23450 return resultobj;
23451 fail:
23452 return NULL;
23453 }
23454
23455
23456 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23457 PyObject *obj;
23458 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23459 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23460 return SWIG_Py_Void();
23461 }
23462
23463 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23464 return SWIG_Python_InitShadowInstance(args);
23465 }
23466
23467 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23468 PyObject *resultobj = 0;
23469 wxWindow *arg1 = (wxWindow *) 0 ;
23470 wxPaintDC *result = 0 ;
23471 void *argp1 = 0 ;
23472 int res1 = 0 ;
23473 PyObject * obj0 = 0 ;
23474 char * kwnames[] = {
23475 (char *) "win", NULL
23476 };
23477
23478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23480 if (!SWIG_IsOK(res1)) {
23481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23482 }
23483 arg1 = reinterpret_cast< wxWindow * >(argp1);
23484 {
23485 if (!wxPyCheckForApp()) SWIG_fail;
23486 PyThreadState* __tstate = wxPyBeginAllowThreads();
23487 result = (wxPaintDC *)new wxPaintDC(arg1);
23488 wxPyEndAllowThreads(__tstate);
23489 if (PyErr_Occurred()) SWIG_fail;
23490 }
23491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23492 return resultobj;
23493 fail:
23494 return NULL;
23495 }
23496
23497
23498 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23499 PyObject *obj;
23500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23501 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23502 return SWIG_Py_Void();
23503 }
23504
23505 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23506 return SWIG_Python_InitShadowInstance(args);
23507 }
23508
23509 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23510 PyObject *resultobj = 0;
23511 wxDC *arg1 = (wxDC *) 0 ;
23512 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23513 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23514 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23515 wxBufferedDC *result = 0 ;
23516 void *argp1 = 0 ;
23517 int res1 = 0 ;
23518 void *argp2 = 0 ;
23519 int res2 = 0 ;
23520 int val3 ;
23521 int ecode3 = 0 ;
23522
23523 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23525 if (!SWIG_IsOK(res1)) {
23526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23527 }
23528 arg1 = reinterpret_cast< wxDC * >(argp1);
23529 if (swig_obj[1]) {
23530 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23531 if (!SWIG_IsOK(res2)) {
23532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23533 }
23534 if (!argp2) {
23535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23536 }
23537 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23538 }
23539 if (swig_obj[2]) {
23540 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23541 if (!SWIG_IsOK(ecode3)) {
23542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23543 }
23544 arg3 = static_cast< int >(val3);
23545 }
23546 {
23547 if (!wxPyCheckForApp()) SWIG_fail;
23548 PyThreadState* __tstate = wxPyBeginAllowThreads();
23549 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23550 wxPyEndAllowThreads(__tstate);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 }
23553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23554 return resultobj;
23555 fail:
23556 return NULL;
23557 }
23558
23559
23560 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23561 PyObject *resultobj = 0;
23562 wxDC *arg1 = (wxDC *) 0 ;
23563 wxSize *arg2 = 0 ;
23564 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23565 wxBufferedDC *result = 0 ;
23566 void *argp1 = 0 ;
23567 int res1 = 0 ;
23568 wxSize temp2 ;
23569 int val3 ;
23570 int ecode3 = 0 ;
23571
23572 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23574 if (!SWIG_IsOK(res1)) {
23575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23576 }
23577 arg1 = reinterpret_cast< wxDC * >(argp1);
23578 {
23579 arg2 = &temp2;
23580 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23581 }
23582 if (swig_obj[2]) {
23583 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23584 if (!SWIG_IsOK(ecode3)) {
23585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23586 }
23587 arg3 = static_cast< int >(val3);
23588 }
23589 {
23590 if (!wxPyCheckForApp()) SWIG_fail;
23591 PyThreadState* __tstate = wxPyBeginAllowThreads();
23592 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23593 wxPyEndAllowThreads(__tstate);
23594 if (PyErr_Occurred()) SWIG_fail;
23595 }
23596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23597 return resultobj;
23598 fail:
23599 return NULL;
23600 }
23601
23602
23603 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23604 int argc;
23605 PyObject *argv[4];
23606
23607 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23608 --argc;
23609 if ((argc >= 1) && (argc <= 3)) {
23610 int _v = 0;
23611 if (argc > 1) {
23612 {
23613 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23614 _v = SWIG_CheckState(res);
23615 }
23616 if (!_v) goto check_1;
23617 }
23618 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23619 }
23620 check_1:
23621
23622 if ((argc >= 2) && (argc <= 3)) {
23623 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23624 }
23625
23626 fail:
23627 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23628 return NULL;
23629 }
23630
23631
23632 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23633 PyObject *resultobj = 0;
23634 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23635 void *argp1 = 0 ;
23636 int res1 = 0 ;
23637 PyObject *swig_obj[1] ;
23638
23639 if (!args) SWIG_fail;
23640 swig_obj[0] = args;
23641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23642 if (!SWIG_IsOK(res1)) {
23643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23644 }
23645 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23646 {
23647 PyThreadState* __tstate = wxPyBeginAllowThreads();
23648 delete arg1;
23649
23650 wxPyEndAllowThreads(__tstate);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 }
23653 resultobj = SWIG_Py_Void();
23654 return resultobj;
23655 fail:
23656 return NULL;
23657 }
23658
23659
23660 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23661 PyObject *resultobj = 0;
23662 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23663 void *argp1 = 0 ;
23664 int res1 = 0 ;
23665 PyObject *swig_obj[1] ;
23666
23667 if (!args) SWIG_fail;
23668 swig_obj[0] = args;
23669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23670 if (!SWIG_IsOK(res1)) {
23671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23672 }
23673 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23674 {
23675 PyThreadState* __tstate = wxPyBeginAllowThreads();
23676 (arg1)->UnMask();
23677 wxPyEndAllowThreads(__tstate);
23678 if (PyErr_Occurred()) SWIG_fail;
23679 }
23680 resultobj = SWIG_Py_Void();
23681 return resultobj;
23682 fail:
23683 return NULL;
23684 }
23685
23686
23687 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23688 PyObject *obj;
23689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23690 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23691 return SWIG_Py_Void();
23692 }
23693
23694 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23695 return SWIG_Python_InitShadowInstance(args);
23696 }
23697
23698 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23699 PyObject *resultobj = 0;
23700 wxWindow *arg1 = (wxWindow *) 0 ;
23701 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23702 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23703 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23704 wxBufferedPaintDC *result = 0 ;
23705 void *argp1 = 0 ;
23706 int res1 = 0 ;
23707 void *argp2 = 0 ;
23708 int res2 = 0 ;
23709 int val3 ;
23710 int ecode3 = 0 ;
23711 PyObject * obj0 = 0 ;
23712 PyObject * obj1 = 0 ;
23713 PyObject * obj2 = 0 ;
23714 char * kwnames[] = {
23715 (char *) "window",(char *) "buffer",(char *) "style", NULL
23716 };
23717
23718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23720 if (!SWIG_IsOK(res1)) {
23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23722 }
23723 arg1 = reinterpret_cast< wxWindow * >(argp1);
23724 if (obj1) {
23725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23726 if (!SWIG_IsOK(res2)) {
23727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23728 }
23729 if (!argp2) {
23730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23731 }
23732 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23733 }
23734 if (obj2) {
23735 ecode3 = SWIG_AsVal_int(obj2, &val3);
23736 if (!SWIG_IsOK(ecode3)) {
23737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23738 }
23739 arg3 = static_cast< int >(val3);
23740 }
23741 {
23742 if (!wxPyCheckForApp()) SWIG_fail;
23743 PyThreadState* __tstate = wxPyBeginAllowThreads();
23744 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23745 wxPyEndAllowThreads(__tstate);
23746 if (PyErr_Occurred()) SWIG_fail;
23747 }
23748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23749 return resultobj;
23750 fail:
23751 return NULL;
23752 }
23753
23754
23755 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23756 PyObject *obj;
23757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23758 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23759 return SWIG_Py_Void();
23760 }
23761
23762 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23763 return SWIG_Python_InitShadowInstance(args);
23764 }
23765
23766 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23767 PyObject *resultobj = 0;
23768 wxWindow *arg1 = (wxWindow *) 0 ;
23769 wxAutoBufferedPaintDC *result = 0 ;
23770 void *argp1 = 0 ;
23771 int res1 = 0 ;
23772 PyObject * obj0 = 0 ;
23773 char * kwnames[] = {
23774 (char *) "win", NULL
23775 };
23776
23777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
23778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23779 if (!SWIG_IsOK(res1)) {
23780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23781 }
23782 arg1 = reinterpret_cast< wxWindow * >(argp1);
23783 {
23784 PyThreadState* __tstate = wxPyBeginAllowThreads();
23785 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
23786 wxPyEndAllowThreads(__tstate);
23787 if (PyErr_Occurred()) SWIG_fail;
23788 }
23789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23790 return resultobj;
23791 fail:
23792 return NULL;
23793 }
23794
23795
23796 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23797 PyObject *obj;
23798 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23799 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
23800 return SWIG_Py_Void();
23801 }
23802
23803 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23804 return SWIG_Python_InitShadowInstance(args);
23805 }
23806
23807 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23808 PyObject *resultobj = 0;
23809 wxWindow *arg1 = (wxWindow *) 0 ;
23810 wxDC *result = 0 ;
23811 void *argp1 = 0 ;
23812 int res1 = 0 ;
23813 PyObject * obj0 = 0 ;
23814 char * kwnames[] = {
23815 (char *) "window", NULL
23816 };
23817
23818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23820 if (!SWIG_IsOK(res1)) {
23821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23822 }
23823 arg1 = reinterpret_cast< wxWindow * >(argp1);
23824 {
23825 PyThreadState* __tstate = wxPyBeginAllowThreads();
23826 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23827 wxPyEndAllowThreads(__tstate);
23828 if (PyErr_Occurred()) SWIG_fail;
23829 }
23830 {
23831 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23832 }
23833 return resultobj;
23834 fail:
23835 return NULL;
23836 }
23837
23838
23839 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23840 PyObject *resultobj = 0;
23841 wxDC *arg1 = 0 ;
23842 bool arg2 ;
23843 wxMirrorDC *result = 0 ;
23844 void *argp1 = 0 ;
23845 int res1 = 0 ;
23846 bool val2 ;
23847 int ecode2 = 0 ;
23848 PyObject * obj0 = 0 ;
23849 PyObject * obj1 = 0 ;
23850 char * kwnames[] = {
23851 (char *) "dc",(char *) "mirror", NULL
23852 };
23853
23854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23855 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23856 if (!SWIG_IsOK(res1)) {
23857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23858 }
23859 if (!argp1) {
23860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23861 }
23862 arg1 = reinterpret_cast< wxDC * >(argp1);
23863 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23864 if (!SWIG_IsOK(ecode2)) {
23865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23866 }
23867 arg2 = static_cast< bool >(val2);
23868 {
23869 if (!wxPyCheckForApp()) SWIG_fail;
23870 PyThreadState* __tstate = wxPyBeginAllowThreads();
23871 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23872 wxPyEndAllowThreads(__tstate);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23876 return resultobj;
23877 fail:
23878 return NULL;
23879 }
23880
23881
23882 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23883 PyObject *obj;
23884 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23885 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23886 return SWIG_Py_Void();
23887 }
23888
23889 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23890 return SWIG_Python_InitShadowInstance(args);
23891 }
23892
23893 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23894 PyObject *resultobj = 0;
23895 wxPrintData *arg1 = 0 ;
23896 wxPostScriptDC *result = 0 ;
23897 void *argp1 = 0 ;
23898 int res1 = 0 ;
23899 PyObject * obj0 = 0 ;
23900 char * kwnames[] = {
23901 (char *) "printData", NULL
23902 };
23903
23904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23905 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23906 if (!SWIG_IsOK(res1)) {
23907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23908 }
23909 if (!argp1) {
23910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23911 }
23912 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23913 {
23914 if (!wxPyCheckForApp()) SWIG_fail;
23915 PyThreadState* __tstate = wxPyBeginAllowThreads();
23916 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23917 wxPyEndAllowThreads(__tstate);
23918 if (PyErr_Occurred()) SWIG_fail;
23919 }
23920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23921 return resultobj;
23922 fail:
23923 return NULL;
23924 }
23925
23926
23927 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23928 PyObject *resultobj = 0;
23929 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23930 wxPrintData *result = 0 ;
23931 void *argp1 = 0 ;
23932 int res1 = 0 ;
23933 PyObject *swig_obj[1] ;
23934
23935 if (!args) SWIG_fail;
23936 swig_obj[0] = args;
23937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23938 if (!SWIG_IsOK(res1)) {
23939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23940 }
23941 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23942 {
23943 PyThreadState* __tstate = wxPyBeginAllowThreads();
23944 {
23945 wxPrintData &_result_ref = (arg1)->GetPrintData();
23946 result = (wxPrintData *) &_result_ref;
23947 }
23948 wxPyEndAllowThreads(__tstate);
23949 if (PyErr_Occurred()) SWIG_fail;
23950 }
23951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23952 return resultobj;
23953 fail:
23954 return NULL;
23955 }
23956
23957
23958 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23959 PyObject *resultobj = 0;
23960 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23961 wxPrintData *arg2 = 0 ;
23962 void *argp1 = 0 ;
23963 int res1 = 0 ;
23964 void *argp2 = 0 ;
23965 int res2 = 0 ;
23966 PyObject * obj0 = 0 ;
23967 PyObject * obj1 = 0 ;
23968 char * kwnames[] = {
23969 (char *) "self",(char *) "data", NULL
23970 };
23971
23972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23974 if (!SWIG_IsOK(res1)) {
23975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23976 }
23977 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23978 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23979 if (!SWIG_IsOK(res2)) {
23980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23981 }
23982 if (!argp2) {
23983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23984 }
23985 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23986 {
23987 PyThreadState* __tstate = wxPyBeginAllowThreads();
23988 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23989 wxPyEndAllowThreads(__tstate);
23990 if (PyErr_Occurred()) SWIG_fail;
23991 }
23992 resultobj = SWIG_Py_Void();
23993 return resultobj;
23994 fail:
23995 return NULL;
23996 }
23997
23998
23999 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24000 PyObject *resultobj = 0;
24001 int arg1 ;
24002 int val1 ;
24003 int ecode1 = 0 ;
24004 PyObject * obj0 = 0 ;
24005 char * kwnames[] = {
24006 (char *) "ppi", NULL
24007 };
24008
24009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24010 ecode1 = SWIG_AsVal_int(obj0, &val1);
24011 if (!SWIG_IsOK(ecode1)) {
24012 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24013 }
24014 arg1 = static_cast< int >(val1);
24015 {
24016 PyThreadState* __tstate = wxPyBeginAllowThreads();
24017 wxPostScriptDC::SetResolution(arg1);
24018 wxPyEndAllowThreads(__tstate);
24019 if (PyErr_Occurred()) SWIG_fail;
24020 }
24021 resultobj = SWIG_Py_Void();
24022 return resultobj;
24023 fail:
24024 return NULL;
24025 }
24026
24027
24028 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24029 PyObject *resultobj = 0;
24030 int result;
24031
24032 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 result = (int)wxPostScriptDC::GetResolution();
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 resultobj = SWIG_From_int(static_cast< int >(result));
24040 return resultobj;
24041 fail:
24042 return NULL;
24043 }
24044
24045
24046 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24047 PyObject *obj;
24048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24049 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24050 return SWIG_Py_Void();
24051 }
24052
24053 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24054 return SWIG_Python_InitShadowInstance(args);
24055 }
24056
24057 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24058 PyObject *resultobj = 0;
24059 wxString const &arg1_defvalue = wxPyEmptyString ;
24060 wxString *arg1 = (wxString *) &arg1_defvalue ;
24061 wxMetaFile *result = 0 ;
24062 bool temp1 = false ;
24063 PyObject * obj0 = 0 ;
24064 char * kwnames[] = {
24065 (char *) "filename", NULL
24066 };
24067
24068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24069 if (obj0) {
24070 {
24071 arg1 = wxString_in_helper(obj0);
24072 if (arg1 == NULL) SWIG_fail;
24073 temp1 = true;
24074 }
24075 }
24076 {
24077 if (!wxPyCheckForApp()) SWIG_fail;
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24084 {
24085 if (temp1)
24086 delete arg1;
24087 }
24088 return resultobj;
24089 fail:
24090 {
24091 if (temp1)
24092 delete arg1;
24093 }
24094 return NULL;
24095 }
24096
24097
24098 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24099 PyObject *obj;
24100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24101 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24102 return SWIG_Py_Void();
24103 }
24104
24105 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24106 return SWIG_Python_InitShadowInstance(args);
24107 }
24108
24109 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24110 PyObject *resultobj = 0;
24111 wxString const &arg1_defvalue = wxPyEmptyString ;
24112 wxString *arg1 = (wxString *) &arg1_defvalue ;
24113 int arg2 = (int) 0 ;
24114 int arg3 = (int) 0 ;
24115 wxString const &arg4_defvalue = wxPyEmptyString ;
24116 wxString *arg4 = (wxString *) &arg4_defvalue ;
24117 wxMetaFileDC *result = 0 ;
24118 bool temp1 = false ;
24119 int val2 ;
24120 int ecode2 = 0 ;
24121 int val3 ;
24122 int ecode3 = 0 ;
24123 bool temp4 = false ;
24124 PyObject * obj0 = 0 ;
24125 PyObject * obj1 = 0 ;
24126 PyObject * obj2 = 0 ;
24127 PyObject * obj3 = 0 ;
24128 char * kwnames[] = {
24129 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24130 };
24131
24132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24133 if (obj0) {
24134 {
24135 arg1 = wxString_in_helper(obj0);
24136 if (arg1 == NULL) SWIG_fail;
24137 temp1 = true;
24138 }
24139 }
24140 if (obj1) {
24141 ecode2 = SWIG_AsVal_int(obj1, &val2);
24142 if (!SWIG_IsOK(ecode2)) {
24143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24144 }
24145 arg2 = static_cast< int >(val2);
24146 }
24147 if (obj2) {
24148 ecode3 = SWIG_AsVal_int(obj2, &val3);
24149 if (!SWIG_IsOK(ecode3)) {
24150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24151 }
24152 arg3 = static_cast< int >(val3);
24153 }
24154 if (obj3) {
24155 {
24156 arg4 = wxString_in_helper(obj3);
24157 if (arg4 == NULL) SWIG_fail;
24158 temp4 = true;
24159 }
24160 }
24161 {
24162 if (!wxPyCheckForApp()) SWIG_fail;
24163 PyThreadState* __tstate = wxPyBeginAllowThreads();
24164 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24165 wxPyEndAllowThreads(__tstate);
24166 if (PyErr_Occurred()) SWIG_fail;
24167 }
24168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24169 {
24170 if (temp1)
24171 delete arg1;
24172 }
24173 {
24174 if (temp4)
24175 delete arg4;
24176 }
24177 return resultobj;
24178 fail:
24179 {
24180 if (temp1)
24181 delete arg1;
24182 }
24183 {
24184 if (temp4)
24185 delete arg4;
24186 }
24187 return NULL;
24188 }
24189
24190
24191 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24192 PyObject *obj;
24193 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24194 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24195 return SWIG_Py_Void();
24196 }
24197
24198 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24199 return SWIG_Python_InitShadowInstance(args);
24200 }
24201
24202 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24203 PyObject *resultobj = 0;
24204 wxPrintData *arg1 = 0 ;
24205 wxPrinterDC *result = 0 ;
24206 void *argp1 = 0 ;
24207 int res1 = 0 ;
24208 PyObject * obj0 = 0 ;
24209 char * kwnames[] = {
24210 (char *) "printData", NULL
24211 };
24212
24213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24214 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24215 if (!SWIG_IsOK(res1)) {
24216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24217 }
24218 if (!argp1) {
24219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24220 }
24221 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24222 {
24223 if (!wxPyCheckForApp()) SWIG_fail;
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24230 return resultobj;
24231 fail:
24232 return NULL;
24233 }
24234
24235
24236 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24237 PyObject *obj;
24238 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24239 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24240 return SWIG_Py_Void();
24241 }
24242
24243 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24244 return SWIG_Python_InitShadowInstance(args);
24245 }
24246
24247 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24248 PyObject *resultobj = 0;
24249 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24250 void *argp1 = 0 ;
24251 int res1 = 0 ;
24252 PyObject *swig_obj[1] ;
24253
24254 if (!args) SWIG_fail;
24255 swig_obj[0] = args;
24256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
24257 if (!SWIG_IsOK(res1)) {
24258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24259 }
24260 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24261 {
24262 delete arg1;
24263
24264 if (PyErr_Occurred()) SWIG_fail;
24265 }
24266 resultobj = SWIG_Py_Void();
24267 return resultobj;
24268 fail:
24269 return NULL;
24270 }
24271
24272
24273 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24274 PyObject *resultobj = 0;
24275 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24276 wxDouble arg2 ;
24277 wxDouble arg3 ;
24278 void *argp1 = 0 ;
24279 int res1 = 0 ;
24280 double val2 ;
24281 int ecode2 = 0 ;
24282 double val3 ;
24283 int ecode3 = 0 ;
24284 PyObject * obj0 = 0 ;
24285 PyObject * obj1 = 0 ;
24286 PyObject * obj2 = 0 ;
24287 char * kwnames[] = {
24288 (char *) "self",(char *) "x",(char *) "y", NULL
24289 };
24290
24291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24293 if (!SWIG_IsOK(res1)) {
24294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24295 }
24296 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24297 ecode2 = SWIG_AsVal_double(obj1, &val2);
24298 if (!SWIG_IsOK(ecode2)) {
24299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24300 }
24301 arg2 = static_cast< wxDouble >(val2);
24302 ecode3 = SWIG_AsVal_double(obj2, &val3);
24303 if (!SWIG_IsOK(ecode3)) {
24304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24305 }
24306 arg3 = static_cast< wxDouble >(val3);
24307 {
24308 (arg1)->MoveToPoint(arg2,arg3);
24309 if (PyErr_Occurred()) SWIG_fail;
24310 }
24311 resultobj = SWIG_Py_Void();
24312 return resultobj;
24313 fail:
24314 return NULL;
24315 }
24316
24317
24318 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24319 PyObject *resultobj = 0;
24320 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24321 wxDouble arg2 ;
24322 wxDouble arg3 ;
24323 void *argp1 = 0 ;
24324 int res1 = 0 ;
24325 double val2 ;
24326 int ecode2 = 0 ;
24327 double val3 ;
24328 int ecode3 = 0 ;
24329 PyObject * obj0 = 0 ;
24330 PyObject * obj1 = 0 ;
24331 PyObject * obj2 = 0 ;
24332 char * kwnames[] = {
24333 (char *) "self",(char *) "x",(char *) "y", NULL
24334 };
24335
24336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24338 if (!SWIG_IsOK(res1)) {
24339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24340 }
24341 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24342 ecode2 = SWIG_AsVal_double(obj1, &val2);
24343 if (!SWIG_IsOK(ecode2)) {
24344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24345 }
24346 arg2 = static_cast< wxDouble >(val2);
24347 ecode3 = SWIG_AsVal_double(obj2, &val3);
24348 if (!SWIG_IsOK(ecode3)) {
24349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24350 }
24351 arg3 = static_cast< wxDouble >(val3);
24352 {
24353 (arg1)->AddLineToPoint(arg2,arg3);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 resultobj = SWIG_Py_Void();
24357 return resultobj;
24358 fail:
24359 return NULL;
24360 }
24361
24362
24363 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24364 PyObject *resultobj = 0;
24365 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24366 wxDouble arg2 ;
24367 wxDouble arg3 ;
24368 wxDouble arg4 ;
24369 wxDouble arg5 ;
24370 wxDouble arg6 ;
24371 wxDouble arg7 ;
24372 void *argp1 = 0 ;
24373 int res1 = 0 ;
24374 double val2 ;
24375 int ecode2 = 0 ;
24376 double val3 ;
24377 int ecode3 = 0 ;
24378 double val4 ;
24379 int ecode4 = 0 ;
24380 double val5 ;
24381 int ecode5 = 0 ;
24382 double val6 ;
24383 int ecode6 = 0 ;
24384 double val7 ;
24385 int ecode7 = 0 ;
24386 PyObject * obj0 = 0 ;
24387 PyObject * obj1 = 0 ;
24388 PyObject * obj2 = 0 ;
24389 PyObject * obj3 = 0 ;
24390 PyObject * obj4 = 0 ;
24391 PyObject * obj5 = 0 ;
24392 PyObject * obj6 = 0 ;
24393 char * kwnames[] = {
24394 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24395 };
24396
24397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24399 if (!SWIG_IsOK(res1)) {
24400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24401 }
24402 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24403 ecode2 = SWIG_AsVal_double(obj1, &val2);
24404 if (!SWIG_IsOK(ecode2)) {
24405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24406 }
24407 arg2 = static_cast< wxDouble >(val2);
24408 ecode3 = SWIG_AsVal_double(obj2, &val3);
24409 if (!SWIG_IsOK(ecode3)) {
24410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24411 }
24412 arg3 = static_cast< wxDouble >(val3);
24413 ecode4 = SWIG_AsVal_double(obj3, &val4);
24414 if (!SWIG_IsOK(ecode4)) {
24415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24416 }
24417 arg4 = static_cast< wxDouble >(val4);
24418 ecode5 = SWIG_AsVal_double(obj4, &val5);
24419 if (!SWIG_IsOK(ecode5)) {
24420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24421 }
24422 arg5 = static_cast< wxDouble >(val5);
24423 ecode6 = SWIG_AsVal_double(obj5, &val6);
24424 if (!SWIG_IsOK(ecode6)) {
24425 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24426 }
24427 arg6 = static_cast< wxDouble >(val6);
24428 ecode7 = SWIG_AsVal_double(obj6, &val7);
24429 if (!SWIG_IsOK(ecode7)) {
24430 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24431 }
24432 arg7 = static_cast< wxDouble >(val7);
24433 {
24434 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24435 if (PyErr_Occurred()) SWIG_fail;
24436 }
24437 resultobj = SWIG_Py_Void();
24438 return resultobj;
24439 fail:
24440 return NULL;
24441 }
24442
24443
24444 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24445 PyObject *resultobj = 0;
24446 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24447 void *argp1 = 0 ;
24448 int res1 = 0 ;
24449 PyObject *swig_obj[1] ;
24450
24451 if (!args) SWIG_fail;
24452 swig_obj[0] = args;
24453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24454 if (!SWIG_IsOK(res1)) {
24455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24456 }
24457 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24458 {
24459 (arg1)->CloseSubpath();
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 resultobj = SWIG_Py_Void();
24463 return resultobj;
24464 fail:
24465 return NULL;
24466 }
24467
24468
24469 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24470 PyObject *resultobj = 0;
24471 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24472 wxPoint2D result;
24473 void *argp1 = 0 ;
24474 int res1 = 0 ;
24475 PyObject *swig_obj[1] ;
24476
24477 if (!args) SWIG_fail;
24478 swig_obj[0] = args;
24479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24480 if (!SWIG_IsOK(res1)) {
24481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24482 }
24483 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24484 {
24485 result = (arg1)->GetCurrentPoint();
24486 if (PyErr_Occurred()) SWIG_fail;
24487 }
24488 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24489 return resultobj;
24490 fail:
24491 return NULL;
24492 }
24493
24494
24495 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24496 PyObject *resultobj = 0;
24497 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24498 wxDouble arg2 ;
24499 wxDouble arg3 ;
24500 wxDouble arg4 ;
24501 wxDouble arg5 ;
24502 wxDouble arg6 ;
24503 bool arg7 ;
24504 void *argp1 = 0 ;
24505 int res1 = 0 ;
24506 double val2 ;
24507 int ecode2 = 0 ;
24508 double val3 ;
24509 int ecode3 = 0 ;
24510 double val4 ;
24511 int ecode4 = 0 ;
24512 double val5 ;
24513 int ecode5 = 0 ;
24514 double val6 ;
24515 int ecode6 = 0 ;
24516 bool val7 ;
24517 int ecode7 = 0 ;
24518 PyObject * obj0 = 0 ;
24519 PyObject * obj1 = 0 ;
24520 PyObject * obj2 = 0 ;
24521 PyObject * obj3 = 0 ;
24522 PyObject * obj4 = 0 ;
24523 PyObject * obj5 = 0 ;
24524 PyObject * obj6 = 0 ;
24525 char * kwnames[] = {
24526 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24527 };
24528
24529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24531 if (!SWIG_IsOK(res1)) {
24532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24533 }
24534 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24535 ecode2 = SWIG_AsVal_double(obj1, &val2);
24536 if (!SWIG_IsOK(ecode2)) {
24537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24538 }
24539 arg2 = static_cast< wxDouble >(val2);
24540 ecode3 = SWIG_AsVal_double(obj2, &val3);
24541 if (!SWIG_IsOK(ecode3)) {
24542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24543 }
24544 arg3 = static_cast< wxDouble >(val3);
24545 ecode4 = SWIG_AsVal_double(obj3, &val4);
24546 if (!SWIG_IsOK(ecode4)) {
24547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24548 }
24549 arg4 = static_cast< wxDouble >(val4);
24550 ecode5 = SWIG_AsVal_double(obj4, &val5);
24551 if (!SWIG_IsOK(ecode5)) {
24552 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24553 }
24554 arg5 = static_cast< wxDouble >(val5);
24555 ecode6 = SWIG_AsVal_double(obj5, &val6);
24556 if (!SWIG_IsOK(ecode6)) {
24557 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24558 }
24559 arg6 = static_cast< wxDouble >(val6);
24560 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24561 if (!SWIG_IsOK(ecode7)) {
24562 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24563 }
24564 arg7 = static_cast< bool >(val7);
24565 {
24566 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24567 if (PyErr_Occurred()) SWIG_fail;
24568 }
24569 resultobj = SWIG_Py_Void();
24570 return resultobj;
24571 fail:
24572 return NULL;
24573 }
24574
24575
24576 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24577 PyObject *resultobj = 0;
24578 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24579 wxDouble arg2 ;
24580 wxDouble arg3 ;
24581 wxDouble arg4 ;
24582 wxDouble arg5 ;
24583 void *argp1 = 0 ;
24584 int res1 = 0 ;
24585 double val2 ;
24586 int ecode2 = 0 ;
24587 double val3 ;
24588 int ecode3 = 0 ;
24589 double val4 ;
24590 int ecode4 = 0 ;
24591 double val5 ;
24592 int ecode5 = 0 ;
24593 PyObject * obj0 = 0 ;
24594 PyObject * obj1 = 0 ;
24595 PyObject * obj2 = 0 ;
24596 PyObject * obj3 = 0 ;
24597 PyObject * obj4 = 0 ;
24598 char * kwnames[] = {
24599 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24600 };
24601
24602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24604 if (!SWIG_IsOK(res1)) {
24605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24606 }
24607 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24608 ecode2 = SWIG_AsVal_double(obj1, &val2);
24609 if (!SWIG_IsOK(ecode2)) {
24610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24611 }
24612 arg2 = static_cast< wxDouble >(val2);
24613 ecode3 = SWIG_AsVal_double(obj2, &val3);
24614 if (!SWIG_IsOK(ecode3)) {
24615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24616 }
24617 arg3 = static_cast< wxDouble >(val3);
24618 ecode4 = SWIG_AsVal_double(obj3, &val4);
24619 if (!SWIG_IsOK(ecode4)) {
24620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24621 }
24622 arg4 = static_cast< wxDouble >(val4);
24623 ecode5 = SWIG_AsVal_double(obj4, &val5);
24624 if (!SWIG_IsOK(ecode5)) {
24625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24626 }
24627 arg5 = static_cast< wxDouble >(val5);
24628 {
24629 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24630 if (PyErr_Occurred()) SWIG_fail;
24631 }
24632 resultobj = SWIG_Py_Void();
24633 return resultobj;
24634 fail:
24635 return NULL;
24636 }
24637
24638
24639 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24640 PyObject *resultobj = 0;
24641 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24642 wxDouble arg2 ;
24643 wxDouble arg3 ;
24644 wxDouble arg4 ;
24645 wxDouble arg5 ;
24646 void *argp1 = 0 ;
24647 int res1 = 0 ;
24648 double val2 ;
24649 int ecode2 = 0 ;
24650 double val3 ;
24651 int ecode3 = 0 ;
24652 double val4 ;
24653 int ecode4 = 0 ;
24654 double val5 ;
24655 int ecode5 = 0 ;
24656 PyObject * obj0 = 0 ;
24657 PyObject * obj1 = 0 ;
24658 PyObject * obj2 = 0 ;
24659 PyObject * obj3 = 0 ;
24660 PyObject * obj4 = 0 ;
24661 char * kwnames[] = {
24662 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24663 };
24664
24665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24667 if (!SWIG_IsOK(res1)) {
24668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24669 }
24670 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24671 ecode2 = SWIG_AsVal_double(obj1, &val2);
24672 if (!SWIG_IsOK(ecode2)) {
24673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24674 }
24675 arg2 = static_cast< wxDouble >(val2);
24676 ecode3 = SWIG_AsVal_double(obj2, &val3);
24677 if (!SWIG_IsOK(ecode3)) {
24678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24679 }
24680 arg3 = static_cast< wxDouble >(val3);
24681 ecode4 = SWIG_AsVal_double(obj3, &val4);
24682 if (!SWIG_IsOK(ecode4)) {
24683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24684 }
24685 arg4 = static_cast< wxDouble >(val4);
24686 ecode5 = SWIG_AsVal_double(obj4, &val5);
24687 if (!SWIG_IsOK(ecode5)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24689 }
24690 arg5 = static_cast< wxDouble >(val5);
24691 {
24692 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
24693 if (PyErr_Occurred()) SWIG_fail;
24694 }
24695 resultobj = SWIG_Py_Void();
24696 return resultobj;
24697 fail:
24698 return NULL;
24699 }
24700
24701
24702 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24703 PyObject *resultobj = 0;
24704 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24705 wxDouble arg2 ;
24706 wxDouble arg3 ;
24707 wxDouble arg4 ;
24708 void *argp1 = 0 ;
24709 int res1 = 0 ;
24710 double val2 ;
24711 int ecode2 = 0 ;
24712 double val3 ;
24713 int ecode3 = 0 ;
24714 double val4 ;
24715 int ecode4 = 0 ;
24716 PyObject * obj0 = 0 ;
24717 PyObject * obj1 = 0 ;
24718 PyObject * obj2 = 0 ;
24719 PyObject * obj3 = 0 ;
24720 char * kwnames[] = {
24721 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24722 };
24723
24724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24726 if (!SWIG_IsOK(res1)) {
24727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24728 }
24729 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24730 ecode2 = SWIG_AsVal_double(obj1, &val2);
24731 if (!SWIG_IsOK(ecode2)) {
24732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24733 }
24734 arg2 = static_cast< wxDouble >(val2);
24735 ecode3 = SWIG_AsVal_double(obj2, &val3);
24736 if (!SWIG_IsOK(ecode3)) {
24737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24738 }
24739 arg3 = static_cast< wxDouble >(val3);
24740 ecode4 = SWIG_AsVal_double(obj3, &val4);
24741 if (!SWIG_IsOK(ecode4)) {
24742 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24743 }
24744 arg4 = static_cast< wxDouble >(val4);
24745 {
24746 (arg1)->AddCircle(arg2,arg3,arg4);
24747 if (PyErr_Occurred()) SWIG_fail;
24748 }
24749 resultobj = SWIG_Py_Void();
24750 return resultobj;
24751 fail:
24752 return NULL;
24753 }
24754
24755
24756 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24757 PyObject *resultobj = 0;
24758 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24759 wxDouble arg2 ;
24760 wxDouble arg3 ;
24761 wxDouble arg4 ;
24762 wxDouble arg5 ;
24763 wxDouble arg6 ;
24764 void *argp1 = 0 ;
24765 int res1 = 0 ;
24766 double val2 ;
24767 int ecode2 = 0 ;
24768 double val3 ;
24769 int ecode3 = 0 ;
24770 double val4 ;
24771 int ecode4 = 0 ;
24772 double val5 ;
24773 int ecode5 = 0 ;
24774 double val6 ;
24775 int ecode6 = 0 ;
24776 PyObject * obj0 = 0 ;
24777 PyObject * obj1 = 0 ;
24778 PyObject * obj2 = 0 ;
24779 PyObject * obj3 = 0 ;
24780 PyObject * obj4 = 0 ;
24781 PyObject * obj5 = 0 ;
24782 char * kwnames[] = {
24783 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24784 };
24785
24786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24788 if (!SWIG_IsOK(res1)) {
24789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24790 }
24791 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24792 ecode2 = SWIG_AsVal_double(obj1, &val2);
24793 if (!SWIG_IsOK(ecode2)) {
24794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24795 }
24796 arg2 = static_cast< wxDouble >(val2);
24797 ecode3 = SWIG_AsVal_double(obj2, &val3);
24798 if (!SWIG_IsOK(ecode3)) {
24799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24800 }
24801 arg3 = static_cast< wxDouble >(val3);
24802 ecode4 = SWIG_AsVal_double(obj3, &val4);
24803 if (!SWIG_IsOK(ecode4)) {
24804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24805 }
24806 arg4 = static_cast< wxDouble >(val4);
24807 ecode5 = SWIG_AsVal_double(obj4, &val5);
24808 if (!SWIG_IsOK(ecode5)) {
24809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24810 }
24811 arg5 = static_cast< wxDouble >(val5);
24812 ecode6 = SWIG_AsVal_double(obj5, &val6);
24813 if (!SWIG_IsOK(ecode6)) {
24814 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24815 }
24816 arg6 = static_cast< wxDouble >(val6);
24817 {
24818 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
24819 if (PyErr_Occurred()) SWIG_fail;
24820 }
24821 resultobj = SWIG_Py_Void();
24822 return resultobj;
24823 fail:
24824 return NULL;
24825 }
24826
24827
24828 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24829 PyObject *obj;
24830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24831 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24832 return SWIG_Py_Void();
24833 }
24834
24835 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24836 PyObject *resultobj = 0;
24837 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24838 void *argp1 = 0 ;
24839 int res1 = 0 ;
24840 PyObject *swig_obj[1] ;
24841
24842 if (!args) SWIG_fail;
24843 swig_obj[0] = args;
24844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24845 if (!SWIG_IsOK(res1)) {
24846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24847 }
24848 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24849 {
24850 delete arg1;
24851
24852 if (PyErr_Occurred()) SWIG_fail;
24853 }
24854 resultobj = SWIG_Py_Void();
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24862 PyObject *resultobj = 0;
24863 wxWindowDC *arg1 = 0 ;
24864 wxGraphicsContext *result = 0 ;
24865 void *argp1 = 0 ;
24866 int res1 = 0 ;
24867
24868 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
24870 if (!SWIG_IsOK(res1)) {
24871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24872 }
24873 if (!argp1) {
24874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24875 }
24876 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
24877 {
24878 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
24879 if (PyErr_Occurred()) SWIG_fail;
24880 }
24881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24882 return resultobj;
24883 fail:
24884 return NULL;
24885 }
24886
24887
24888 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24889 PyObject *resultobj = 0;
24890 wxWindow *arg1 = (wxWindow *) 0 ;
24891 wxGraphicsContext *result = 0 ;
24892 void *argp1 = 0 ;
24893 int res1 = 0 ;
24894
24895 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24897 if (!SWIG_IsOK(res1)) {
24898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
24899 }
24900 arg1 = reinterpret_cast< wxWindow * >(argp1);
24901 {
24902 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
24903 if (PyErr_Occurred()) SWIG_fail;
24904 }
24905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24906 return resultobj;
24907 fail:
24908 return NULL;
24909 }
24910
24911
24912 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
24913 int argc;
24914 PyObject *argv[2];
24915
24916 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
24917 --argc;
24918 if (argc == 1) {
24919 int _v = 0;
24920 {
24921 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
24922 _v = SWIG_CheckState(res);
24923 }
24924 if (!_v) goto check_1;
24925 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
24926 }
24927 check_1:
24928
24929 if (argc == 1) {
24930 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
24931 }
24932
24933 fail:
24934 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
24935 return NULL;
24936 }
24937
24938
24939 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24940 PyObject *resultobj = 0;
24941 void *arg1 = (void *) 0 ;
24942 wxGraphicsContext *result = 0 ;
24943 int res1 ;
24944 PyObject * obj0 = 0 ;
24945 char * kwnames[] = {
24946 (char *) "context", NULL
24947 };
24948
24949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
24950 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
24951 if (!SWIG_IsOK(res1)) {
24952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
24953 }
24954 {
24955 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
24956 if (PyErr_Occurred()) SWIG_fail;
24957 }
24958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24959 return resultobj;
24960 fail:
24961 return NULL;
24962 }
24963
24964
24965 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24966 PyObject *resultobj = 0;
24967 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24968 wxGraphicsPath *result = 0 ;
24969 void *argp1 = 0 ;
24970 int res1 = 0 ;
24971 PyObject *swig_obj[1] ;
24972
24973 if (!args) SWIG_fail;
24974 swig_obj[0] = args;
24975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24976 if (!SWIG_IsOK(res1)) {
24977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24978 }
24979 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24980 {
24981 result = (wxGraphicsPath *)(arg1)->CreatePath();
24982 if (PyErr_Occurred()) SWIG_fail;
24983 }
24984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24985 return resultobj;
24986 fail:
24987 return NULL;
24988 }
24989
24990
24991 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24992 PyObject *resultobj = 0;
24993 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24994 void *argp1 = 0 ;
24995 int res1 = 0 ;
24996 PyObject *swig_obj[1] ;
24997
24998 if (!args) SWIG_fail;
24999 swig_obj[0] = args;
25000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25001 if (!SWIG_IsOK(res1)) {
25002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25003 }
25004 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25005 {
25006 (arg1)->PushState();
25007 if (PyErr_Occurred()) SWIG_fail;
25008 }
25009 resultobj = SWIG_Py_Void();
25010 return resultobj;
25011 fail:
25012 return NULL;
25013 }
25014
25015
25016 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25017 PyObject *resultobj = 0;
25018 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25019 void *argp1 = 0 ;
25020 int res1 = 0 ;
25021 PyObject *swig_obj[1] ;
25022
25023 if (!args) SWIG_fail;
25024 swig_obj[0] = args;
25025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25026 if (!SWIG_IsOK(res1)) {
25027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25028 }
25029 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25030 {
25031 (arg1)->PopState();
25032 if (PyErr_Occurred()) SWIG_fail;
25033 }
25034 resultobj = SWIG_Py_Void();
25035 return resultobj;
25036 fail:
25037 return NULL;
25038 }
25039
25040
25041 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25042 PyObject *resultobj = 0;
25043 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25044 wxRegion *arg2 = 0 ;
25045 void *argp1 = 0 ;
25046 int res1 = 0 ;
25047 void *argp2 = 0 ;
25048 int res2 = 0 ;
25049 PyObject * obj0 = 0 ;
25050 PyObject * obj1 = 0 ;
25051 char * kwnames[] = {
25052 (char *) "self",(char *) "region", NULL
25053 };
25054
25055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
25056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25057 if (!SWIG_IsOK(res1)) {
25058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25059 }
25060 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25062 if (!SWIG_IsOK(res2)) {
25063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
25064 }
25065 if (!argp2) {
25066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
25067 }
25068 arg2 = reinterpret_cast< wxRegion * >(argp2);
25069 {
25070 (arg1)->Clip((wxRegion const &)*arg2);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 resultobj = SWIG_Py_Void();
25074 return resultobj;
25075 fail:
25076 return NULL;
25077 }
25078
25079
25080 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25081 PyObject *resultobj = 0;
25082 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25083 wxDouble arg2 ;
25084 wxDouble arg3 ;
25085 wxDouble arg4 ;
25086 wxDouble arg5 ;
25087 void *argp1 = 0 ;
25088 int res1 = 0 ;
25089 double val2 ;
25090 int ecode2 = 0 ;
25091 double val3 ;
25092 int ecode3 = 0 ;
25093 double val4 ;
25094 int ecode4 = 0 ;
25095 double val5 ;
25096 int ecode5 = 0 ;
25097 PyObject * obj0 = 0 ;
25098 PyObject * obj1 = 0 ;
25099 PyObject * obj2 = 0 ;
25100 PyObject * obj3 = 0 ;
25101 PyObject * obj4 = 0 ;
25102 char * kwnames[] = {
25103 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25104 };
25105
25106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25108 if (!SWIG_IsOK(res1)) {
25109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25110 }
25111 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25112 ecode2 = SWIG_AsVal_double(obj1, &val2);
25113 if (!SWIG_IsOK(ecode2)) {
25114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
25115 }
25116 arg2 = static_cast< wxDouble >(val2);
25117 ecode3 = SWIG_AsVal_double(obj2, &val3);
25118 if (!SWIG_IsOK(ecode3)) {
25119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
25120 }
25121 arg3 = static_cast< wxDouble >(val3);
25122 ecode4 = SWIG_AsVal_double(obj3, &val4);
25123 if (!SWIG_IsOK(ecode4)) {
25124 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
25125 }
25126 arg4 = static_cast< wxDouble >(val4);
25127 ecode5 = SWIG_AsVal_double(obj4, &val5);
25128 if (!SWIG_IsOK(ecode5)) {
25129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
25130 }
25131 arg5 = static_cast< wxDouble >(val5);
25132 {
25133 (arg1)->Clip(arg2,arg3,arg4,arg5);
25134 if (PyErr_Occurred()) SWIG_fail;
25135 }
25136 resultobj = SWIG_Py_Void();
25137 return resultobj;
25138 fail:
25139 return NULL;
25140 }
25141
25142
25143 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25144 PyObject *resultobj = 0;
25145 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25146 void *argp1 = 0 ;
25147 int res1 = 0 ;
25148 PyObject *swig_obj[1] ;
25149
25150 if (!args) SWIG_fail;
25151 swig_obj[0] = args;
25152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25153 if (!SWIG_IsOK(res1)) {
25154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25155 }
25156 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25157 {
25158 (arg1)->ResetClip();
25159 if (PyErr_Occurred()) SWIG_fail;
25160 }
25161 resultobj = SWIG_Py_Void();
25162 return resultobj;
25163 fail:
25164 return NULL;
25165 }
25166
25167
25168 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25169 PyObject *resultobj = 0;
25170 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25171 void *result = 0 ;
25172 void *argp1 = 0 ;
25173 int res1 = 0 ;
25174 PyObject *swig_obj[1] ;
25175
25176 if (!args) SWIG_fail;
25177 swig_obj[0] = args;
25178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25179 if (!SWIG_IsOK(res1)) {
25180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25181 }
25182 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25183 {
25184 result = (void *)(arg1)->GetNativeContext();
25185 if (PyErr_Occurred()) SWIG_fail;
25186 }
25187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25188 return resultobj;
25189 fail:
25190 return NULL;
25191 }
25192
25193
25194 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25195 PyObject *resultobj = 0;
25196 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25197 wxDouble arg2 ;
25198 wxDouble arg3 ;
25199 void *argp1 = 0 ;
25200 int res1 = 0 ;
25201 double val2 ;
25202 int ecode2 = 0 ;
25203 double val3 ;
25204 int ecode3 = 0 ;
25205 PyObject * obj0 = 0 ;
25206 PyObject * obj1 = 0 ;
25207 PyObject * obj2 = 0 ;
25208 char * kwnames[] = {
25209 (char *) "self",(char *) "dx",(char *) "dy", NULL
25210 };
25211
25212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25214 if (!SWIG_IsOK(res1)) {
25215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25216 }
25217 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25218 ecode2 = SWIG_AsVal_double(obj1, &val2);
25219 if (!SWIG_IsOK(ecode2)) {
25220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25221 }
25222 arg2 = static_cast< wxDouble >(val2);
25223 ecode3 = SWIG_AsVal_double(obj2, &val3);
25224 if (!SWIG_IsOK(ecode3)) {
25225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25226 }
25227 arg3 = static_cast< wxDouble >(val3);
25228 {
25229 (arg1)->Translate(arg2,arg3);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 resultobj = SWIG_Py_Void();
25233 return resultobj;
25234 fail:
25235 return NULL;
25236 }
25237
25238
25239 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25240 PyObject *resultobj = 0;
25241 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25242 wxDouble arg2 ;
25243 wxDouble arg3 ;
25244 void *argp1 = 0 ;
25245 int res1 = 0 ;
25246 double val2 ;
25247 int ecode2 = 0 ;
25248 double val3 ;
25249 int ecode3 = 0 ;
25250 PyObject * obj0 = 0 ;
25251 PyObject * obj1 = 0 ;
25252 PyObject * obj2 = 0 ;
25253 char * kwnames[] = {
25254 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25255 };
25256
25257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25259 if (!SWIG_IsOK(res1)) {
25260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25261 }
25262 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25263 ecode2 = SWIG_AsVal_double(obj1, &val2);
25264 if (!SWIG_IsOK(ecode2)) {
25265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25266 }
25267 arg2 = static_cast< wxDouble >(val2);
25268 ecode3 = SWIG_AsVal_double(obj2, &val3);
25269 if (!SWIG_IsOK(ecode3)) {
25270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25271 }
25272 arg3 = static_cast< wxDouble >(val3);
25273 {
25274 (arg1)->Scale(arg2,arg3);
25275 if (PyErr_Occurred()) SWIG_fail;
25276 }
25277 resultobj = SWIG_Py_Void();
25278 return resultobj;
25279 fail:
25280 return NULL;
25281 }
25282
25283
25284 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25285 PyObject *resultobj = 0;
25286 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25287 wxDouble arg2 ;
25288 void *argp1 = 0 ;
25289 int res1 = 0 ;
25290 double val2 ;
25291 int ecode2 = 0 ;
25292 PyObject * obj0 = 0 ;
25293 PyObject * obj1 = 0 ;
25294 char * kwnames[] = {
25295 (char *) "self",(char *) "angle", NULL
25296 };
25297
25298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25300 if (!SWIG_IsOK(res1)) {
25301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25302 }
25303 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25304 ecode2 = SWIG_AsVal_double(obj1, &val2);
25305 if (!SWIG_IsOK(ecode2)) {
25306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25307 }
25308 arg2 = static_cast< wxDouble >(val2);
25309 {
25310 (arg1)->Rotate(arg2);
25311 if (PyErr_Occurred()) SWIG_fail;
25312 }
25313 resultobj = SWIG_Py_Void();
25314 return resultobj;
25315 fail:
25316 return NULL;
25317 }
25318
25319
25320 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25321 PyObject *resultobj = 0;
25322 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25323 wxPen *arg2 = 0 ;
25324 void *argp1 = 0 ;
25325 int res1 = 0 ;
25326 void *argp2 = 0 ;
25327 int res2 = 0 ;
25328 PyObject * obj0 = 0 ;
25329 PyObject * obj1 = 0 ;
25330 char * kwnames[] = {
25331 (char *) "self",(char *) "pen", NULL
25332 };
25333
25334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25336 if (!SWIG_IsOK(res1)) {
25337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25338 }
25339 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25341 if (!SWIG_IsOK(res2)) {
25342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25343 }
25344 if (!argp2) {
25345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25346 }
25347 arg2 = reinterpret_cast< wxPen * >(argp2);
25348 {
25349 (arg1)->SetPen((wxPen const &)*arg2);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 resultobj = SWIG_Py_Void();
25353 return resultobj;
25354 fail:
25355 return NULL;
25356 }
25357
25358
25359 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25360 PyObject *resultobj = 0;
25361 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25362 wxBrush *arg2 = 0 ;
25363 void *argp1 = 0 ;
25364 int res1 = 0 ;
25365 void *argp2 = 0 ;
25366 int res2 = 0 ;
25367 PyObject * obj0 = 0 ;
25368 PyObject * obj1 = 0 ;
25369 char * kwnames[] = {
25370 (char *) "self",(char *) "brush", NULL
25371 };
25372
25373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25375 if (!SWIG_IsOK(res1)) {
25376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25377 }
25378 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25379 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25380 if (!SWIG_IsOK(res2)) {
25381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25382 }
25383 if (!argp2) {
25384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25385 }
25386 arg2 = reinterpret_cast< wxBrush * >(argp2);
25387 {
25388 (arg1)->SetBrush((wxBrush const &)*arg2);
25389 if (PyErr_Occurred()) SWIG_fail;
25390 }
25391 resultobj = SWIG_Py_Void();
25392 return resultobj;
25393 fail:
25394 return NULL;
25395 }
25396
25397
25398 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25399 PyObject *resultobj = 0;
25400 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25401 wxDouble arg2 ;
25402 wxDouble arg3 ;
25403 wxDouble arg4 ;
25404 wxDouble arg5 ;
25405 wxColour *arg6 = 0 ;
25406 wxColour *arg7 = 0 ;
25407 void *argp1 = 0 ;
25408 int res1 = 0 ;
25409 double val2 ;
25410 int ecode2 = 0 ;
25411 double val3 ;
25412 int ecode3 = 0 ;
25413 double val4 ;
25414 int ecode4 = 0 ;
25415 double val5 ;
25416 int ecode5 = 0 ;
25417 wxColour temp6 ;
25418 wxColour temp7 ;
25419 PyObject * obj0 = 0 ;
25420 PyObject * obj1 = 0 ;
25421 PyObject * obj2 = 0 ;
25422 PyObject * obj3 = 0 ;
25423 PyObject * obj4 = 0 ;
25424 PyObject * obj5 = 0 ;
25425 PyObject * obj6 = 0 ;
25426 char * kwnames[] = {
25427 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25428 };
25429
25430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25432 if (!SWIG_IsOK(res1)) {
25433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25434 }
25435 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25436 ecode2 = SWIG_AsVal_double(obj1, &val2);
25437 if (!SWIG_IsOK(ecode2)) {
25438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25439 }
25440 arg2 = static_cast< wxDouble >(val2);
25441 ecode3 = SWIG_AsVal_double(obj2, &val3);
25442 if (!SWIG_IsOK(ecode3)) {
25443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25444 }
25445 arg3 = static_cast< wxDouble >(val3);
25446 ecode4 = SWIG_AsVal_double(obj3, &val4);
25447 if (!SWIG_IsOK(ecode4)) {
25448 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25449 }
25450 arg4 = static_cast< wxDouble >(val4);
25451 ecode5 = SWIG_AsVal_double(obj4, &val5);
25452 if (!SWIG_IsOK(ecode5)) {
25453 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25454 }
25455 arg5 = static_cast< wxDouble >(val5);
25456 {
25457 arg6 = &temp6;
25458 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25459 }
25460 {
25461 arg7 = &temp7;
25462 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25463 }
25464 {
25465 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25466 if (PyErr_Occurred()) SWIG_fail;
25467 }
25468 resultobj = SWIG_Py_Void();
25469 return resultobj;
25470 fail:
25471 return NULL;
25472 }
25473
25474
25475 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25476 PyObject *resultobj = 0;
25477 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25478 wxDouble arg2 ;
25479 wxDouble arg3 ;
25480 wxDouble arg4 ;
25481 wxDouble arg5 ;
25482 wxDouble arg6 ;
25483 wxColour *arg7 = 0 ;
25484 wxColour *arg8 = 0 ;
25485 void *argp1 = 0 ;
25486 int res1 = 0 ;
25487 double val2 ;
25488 int ecode2 = 0 ;
25489 double val3 ;
25490 int ecode3 = 0 ;
25491 double val4 ;
25492 int ecode4 = 0 ;
25493 double val5 ;
25494 int ecode5 = 0 ;
25495 double val6 ;
25496 int ecode6 = 0 ;
25497 wxColour temp7 ;
25498 wxColour temp8 ;
25499 PyObject * obj0 = 0 ;
25500 PyObject * obj1 = 0 ;
25501 PyObject * obj2 = 0 ;
25502 PyObject * obj3 = 0 ;
25503 PyObject * obj4 = 0 ;
25504 PyObject * obj5 = 0 ;
25505 PyObject * obj6 = 0 ;
25506 PyObject * obj7 = 0 ;
25507 char * kwnames[] = {
25508 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25509 };
25510
25511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25513 if (!SWIG_IsOK(res1)) {
25514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25515 }
25516 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25517 ecode2 = SWIG_AsVal_double(obj1, &val2);
25518 if (!SWIG_IsOK(ecode2)) {
25519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25520 }
25521 arg2 = static_cast< wxDouble >(val2);
25522 ecode3 = SWIG_AsVal_double(obj2, &val3);
25523 if (!SWIG_IsOK(ecode3)) {
25524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25525 }
25526 arg3 = static_cast< wxDouble >(val3);
25527 ecode4 = SWIG_AsVal_double(obj3, &val4);
25528 if (!SWIG_IsOK(ecode4)) {
25529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25530 }
25531 arg4 = static_cast< wxDouble >(val4);
25532 ecode5 = SWIG_AsVal_double(obj4, &val5);
25533 if (!SWIG_IsOK(ecode5)) {
25534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25535 }
25536 arg5 = static_cast< wxDouble >(val5);
25537 ecode6 = SWIG_AsVal_double(obj5, &val6);
25538 if (!SWIG_IsOK(ecode6)) {
25539 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25540 }
25541 arg6 = static_cast< wxDouble >(val6);
25542 {
25543 arg7 = &temp7;
25544 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25545 }
25546 {
25547 arg8 = &temp8;
25548 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25549 }
25550 {
25551 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25552 if (PyErr_Occurred()) SWIG_fail;
25553 }
25554 resultobj = SWIG_Py_Void();
25555 return resultobj;
25556 fail:
25557 return NULL;
25558 }
25559
25560
25561 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25562 PyObject *resultobj = 0;
25563 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25564 wxFont *arg2 = 0 ;
25565 void *argp1 = 0 ;
25566 int res1 = 0 ;
25567 void *argp2 = 0 ;
25568 int res2 = 0 ;
25569 PyObject * obj0 = 0 ;
25570 PyObject * obj1 = 0 ;
25571 char * kwnames[] = {
25572 (char *) "self",(char *) "font", NULL
25573 };
25574
25575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25577 if (!SWIG_IsOK(res1)) {
25578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25579 }
25580 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25582 if (!SWIG_IsOK(res2)) {
25583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25584 }
25585 if (!argp2) {
25586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25587 }
25588 arg2 = reinterpret_cast< wxFont * >(argp2);
25589 {
25590 (arg1)->SetFont((wxFont const &)*arg2);
25591 if (PyErr_Occurred()) SWIG_fail;
25592 }
25593 resultobj = SWIG_Py_Void();
25594 return resultobj;
25595 fail:
25596 return NULL;
25597 }
25598
25599
25600 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25601 PyObject *resultobj = 0;
25602 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25603 wxColour *arg2 = 0 ;
25604 void *argp1 = 0 ;
25605 int res1 = 0 ;
25606 wxColour temp2 ;
25607 PyObject * obj0 = 0 ;
25608 PyObject * obj1 = 0 ;
25609 char * kwnames[] = {
25610 (char *) "self",(char *) "col", NULL
25611 };
25612
25613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25615 if (!SWIG_IsOK(res1)) {
25616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25617 }
25618 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25619 {
25620 arg2 = &temp2;
25621 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25622 }
25623 {
25624 (arg1)->SetTextColor((wxColour const &)*arg2);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 resultobj = SWIG_Py_Void();
25628 return resultobj;
25629 fail:
25630 return NULL;
25631 }
25632
25633
25634 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25635 PyObject *resultobj = 0;
25636 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25637 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25638 void *argp1 = 0 ;
25639 int res1 = 0 ;
25640 void *argp2 = 0 ;
25641 int res2 = 0 ;
25642 PyObject * obj0 = 0 ;
25643 PyObject * obj1 = 0 ;
25644 char * kwnames[] = {
25645 (char *) "self",(char *) "path", NULL
25646 };
25647
25648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25650 if (!SWIG_IsOK(res1)) {
25651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25652 }
25653 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25654 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25655 if (!SWIG_IsOK(res2)) {
25656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25657 }
25658 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25659 {
25660 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25661 if (PyErr_Occurred()) SWIG_fail;
25662 }
25663 resultobj = SWIG_Py_Void();
25664 return resultobj;
25665 fail:
25666 return NULL;
25667 }
25668
25669
25670 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25671 PyObject *resultobj = 0;
25672 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25673 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25674 int arg3 = (int) wxWINDING_RULE ;
25675 void *argp1 = 0 ;
25676 int res1 = 0 ;
25677 void *argp2 = 0 ;
25678 int res2 = 0 ;
25679 int val3 ;
25680 int ecode3 = 0 ;
25681 PyObject * obj0 = 0 ;
25682 PyObject * obj1 = 0 ;
25683 PyObject * obj2 = 0 ;
25684 char * kwnames[] = {
25685 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25686 };
25687
25688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25690 if (!SWIG_IsOK(res1)) {
25691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25692 }
25693 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25695 if (!SWIG_IsOK(res2)) {
25696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25697 }
25698 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25699 if (obj2) {
25700 ecode3 = SWIG_AsVal_int(obj2, &val3);
25701 if (!SWIG_IsOK(ecode3)) {
25702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25703 }
25704 arg3 = static_cast< int >(val3);
25705 }
25706 {
25707 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25708 if (PyErr_Occurred()) SWIG_fail;
25709 }
25710 resultobj = SWIG_Py_Void();
25711 return resultobj;
25712 fail:
25713 return NULL;
25714 }
25715
25716
25717 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25718 PyObject *resultobj = 0;
25719 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25720 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25721 int arg3 = (int) wxWINDING_RULE ;
25722 void *argp1 = 0 ;
25723 int res1 = 0 ;
25724 void *argp2 = 0 ;
25725 int res2 = 0 ;
25726 int val3 ;
25727 int ecode3 = 0 ;
25728 PyObject * obj0 = 0 ;
25729 PyObject * obj1 = 0 ;
25730 PyObject * obj2 = 0 ;
25731 char * kwnames[] = {
25732 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25733 };
25734
25735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25737 if (!SWIG_IsOK(res1)) {
25738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25739 }
25740 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25741 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25742 if (!SWIG_IsOK(res2)) {
25743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25744 }
25745 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25746 if (obj2) {
25747 ecode3 = SWIG_AsVal_int(obj2, &val3);
25748 if (!SWIG_IsOK(ecode3)) {
25749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25750 }
25751 arg3 = static_cast< int >(val3);
25752 }
25753 {
25754 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
25755 if (PyErr_Occurred()) SWIG_fail;
25756 }
25757 resultobj = SWIG_Py_Void();
25758 return resultobj;
25759 fail:
25760 return NULL;
25761 }
25762
25763
25764 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25765 PyObject *resultobj = 0;
25766 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25767 wxString *arg2 = 0 ;
25768 wxDouble arg3 ;
25769 wxDouble arg4 ;
25770 void *argp1 = 0 ;
25771 int res1 = 0 ;
25772 bool temp2 = false ;
25773 double val3 ;
25774 int ecode3 = 0 ;
25775 double val4 ;
25776 int ecode4 = 0 ;
25777 PyObject * obj0 = 0 ;
25778 PyObject * obj1 = 0 ;
25779 PyObject * obj2 = 0 ;
25780 PyObject * obj3 = 0 ;
25781 char * kwnames[] = {
25782 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25783 };
25784
25785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25787 if (!SWIG_IsOK(res1)) {
25788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25789 }
25790 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25791 {
25792 arg2 = wxString_in_helper(obj1);
25793 if (arg2 == NULL) SWIG_fail;
25794 temp2 = true;
25795 }
25796 ecode3 = SWIG_AsVal_double(obj2, &val3);
25797 if (!SWIG_IsOK(ecode3)) {
25798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25799 }
25800 arg3 = static_cast< wxDouble >(val3);
25801 ecode4 = SWIG_AsVal_double(obj3, &val4);
25802 if (!SWIG_IsOK(ecode4)) {
25803 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25804 }
25805 arg4 = static_cast< wxDouble >(val4);
25806 {
25807 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
25808 if (PyErr_Occurred()) SWIG_fail;
25809 }
25810 resultobj = SWIG_Py_Void();
25811 {
25812 if (temp2)
25813 delete arg2;
25814 }
25815 return resultobj;
25816 fail:
25817 {
25818 if (temp2)
25819 delete arg2;
25820 }
25821 return NULL;
25822 }
25823
25824
25825 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25826 PyObject *resultobj = 0;
25827 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25828 wxString *arg2 = 0 ;
25829 wxDouble arg3 ;
25830 wxDouble arg4 ;
25831 wxDouble arg5 ;
25832 void *argp1 = 0 ;
25833 int res1 = 0 ;
25834 bool temp2 = false ;
25835 double val3 ;
25836 int ecode3 = 0 ;
25837 double val4 ;
25838 int ecode4 = 0 ;
25839 double val5 ;
25840 int ecode5 = 0 ;
25841 PyObject * obj0 = 0 ;
25842 PyObject * obj1 = 0 ;
25843 PyObject * obj2 = 0 ;
25844 PyObject * obj3 = 0 ;
25845 PyObject * obj4 = 0 ;
25846 char * kwnames[] = {
25847 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25848 };
25849
25850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25852 if (!SWIG_IsOK(res1)) {
25853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25854 }
25855 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25856 {
25857 arg2 = wxString_in_helper(obj1);
25858 if (arg2 == NULL) SWIG_fail;
25859 temp2 = true;
25860 }
25861 ecode3 = SWIG_AsVal_double(obj2, &val3);
25862 if (!SWIG_IsOK(ecode3)) {
25863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
25864 }
25865 arg3 = static_cast< wxDouble >(val3);
25866 ecode4 = SWIG_AsVal_double(obj3, &val4);
25867 if (!SWIG_IsOK(ecode4)) {
25868 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
25869 }
25870 arg4 = static_cast< wxDouble >(val4);
25871 ecode5 = SWIG_AsVal_double(obj4, &val5);
25872 if (!SWIG_IsOK(ecode5)) {
25873 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
25874 }
25875 arg5 = static_cast< wxDouble >(val5);
25876 {
25877 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
25878 if (PyErr_Occurred()) SWIG_fail;
25879 }
25880 resultobj = SWIG_Py_Void();
25881 {
25882 if (temp2)
25883 delete arg2;
25884 }
25885 return resultobj;
25886 fail:
25887 {
25888 if (temp2)
25889 delete arg2;
25890 }
25891 return NULL;
25892 }
25893
25894
25895 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25896 PyObject *resultobj = 0;
25897 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25898 wxString *arg2 = 0 ;
25899 wxDouble *arg3 = (wxDouble *) 0 ;
25900 wxDouble *arg4 = (wxDouble *) 0 ;
25901 wxDouble *arg5 = (wxDouble *) 0 ;
25902 wxDouble *arg6 = (wxDouble *) 0 ;
25903 void *argp1 = 0 ;
25904 int res1 = 0 ;
25905 bool temp2 = false ;
25906 wxDouble temp3 ;
25907 int res3 = SWIG_TMPOBJ ;
25908 wxDouble temp4 ;
25909 int res4 = SWIG_TMPOBJ ;
25910 wxDouble temp5 ;
25911 int res5 = SWIG_TMPOBJ ;
25912 wxDouble temp6 ;
25913 int res6 = SWIG_TMPOBJ ;
25914 PyObject * obj0 = 0 ;
25915 PyObject * obj1 = 0 ;
25916 char * kwnames[] = {
25917 (char *) "self",(char *) "text", NULL
25918 };
25919
25920 arg3 = &temp3;
25921 arg4 = &temp4;
25922 arg5 = &temp5;
25923 arg6 = &temp6;
25924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25926 if (!SWIG_IsOK(res1)) {
25927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25928 }
25929 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25930 {
25931 arg2 = wxString_in_helper(obj1);
25932 if (arg2 == NULL) SWIG_fail;
25933 temp2 = true;
25934 }
25935 {
25936 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
25937 if (PyErr_Occurred()) SWIG_fail;
25938 }
25939 resultobj = SWIG_Py_Void();
25940 if (SWIG_IsTmpObj(res3)) {
25941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25942 } else {
25943 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25945 }
25946 if (SWIG_IsTmpObj(res4)) {
25947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25948 } else {
25949 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25951 }
25952 if (SWIG_IsTmpObj(res5)) {
25953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25954 } else {
25955 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25957 }
25958 if (SWIG_IsTmpObj(res6)) {
25959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25960 } else {
25961 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25963 }
25964 {
25965 if (temp2)
25966 delete arg2;
25967 }
25968 return resultobj;
25969 fail:
25970 {
25971 if (temp2)
25972 delete arg2;
25973 }
25974 return NULL;
25975 }
25976
25977
25978 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25979 PyObject *resultobj = 0;
25980 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25981 wxString *arg2 = 0 ;
25982 wxArrayDouble result;
25983 void *argp1 = 0 ;
25984 int res1 = 0 ;
25985 bool temp2 = false ;
25986 PyObject * obj0 = 0 ;
25987 PyObject * obj1 = 0 ;
25988 char * kwnames[] = {
25989 (char *) "self",(char *) "text", NULL
25990 };
25991
25992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
25993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25994 if (!SWIG_IsOK(res1)) {
25995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25996 }
25997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25998 {
25999 arg2 = wxString_in_helper(obj1);
26000 if (arg2 == NULL) SWIG_fail;
26001 temp2 = true;
26002 }
26003 {
26004 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 {
26008 resultobj = wxArrayDouble2PyList_helper(result);
26009 }
26010 {
26011 if (temp2)
26012 delete arg2;
26013 }
26014 return resultobj;
26015 fail:
26016 {
26017 if (temp2)
26018 delete arg2;
26019 }
26020 return NULL;
26021 }
26022
26023
26024 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26025 PyObject *resultobj = 0;
26026 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26027 wxBitmap *arg2 = 0 ;
26028 wxDouble arg3 ;
26029 wxDouble arg4 ;
26030 wxDouble arg5 ;
26031 wxDouble arg6 ;
26032 void *argp1 = 0 ;
26033 int res1 = 0 ;
26034 void *argp2 = 0 ;
26035 int res2 = 0 ;
26036 double val3 ;
26037 int ecode3 = 0 ;
26038 double val4 ;
26039 int ecode4 = 0 ;
26040 double val5 ;
26041 int ecode5 = 0 ;
26042 double val6 ;
26043 int ecode6 = 0 ;
26044 PyObject * obj0 = 0 ;
26045 PyObject * obj1 = 0 ;
26046 PyObject * obj2 = 0 ;
26047 PyObject * obj3 = 0 ;
26048 PyObject * obj4 = 0 ;
26049 PyObject * obj5 = 0 ;
26050 char * kwnames[] = {
26051 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26052 };
26053
26054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26056 if (!SWIG_IsOK(res1)) {
26057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26058 }
26059 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26061 if (!SWIG_IsOK(res2)) {
26062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26063 }
26064 if (!argp2) {
26065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26066 }
26067 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26068 ecode3 = SWIG_AsVal_double(obj2, &val3);
26069 if (!SWIG_IsOK(ecode3)) {
26070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26071 }
26072 arg3 = static_cast< wxDouble >(val3);
26073 ecode4 = SWIG_AsVal_double(obj3, &val4);
26074 if (!SWIG_IsOK(ecode4)) {
26075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26076 }
26077 arg4 = static_cast< wxDouble >(val4);
26078 ecode5 = SWIG_AsVal_double(obj4, &val5);
26079 if (!SWIG_IsOK(ecode5)) {
26080 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26081 }
26082 arg5 = static_cast< wxDouble >(val5);
26083 ecode6 = SWIG_AsVal_double(obj5, &val6);
26084 if (!SWIG_IsOK(ecode6)) {
26085 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26086 }
26087 arg6 = static_cast< wxDouble >(val6);
26088 {
26089 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26090 if (PyErr_Occurred()) SWIG_fail;
26091 }
26092 resultobj = SWIG_Py_Void();
26093 return resultobj;
26094 fail:
26095 return NULL;
26096 }
26097
26098
26099 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26100 PyObject *resultobj = 0;
26101 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26102 wxIcon *arg2 = 0 ;
26103 wxDouble arg3 ;
26104 wxDouble arg4 ;
26105 wxDouble arg5 ;
26106 wxDouble arg6 ;
26107 void *argp1 = 0 ;
26108 int res1 = 0 ;
26109 void *argp2 = 0 ;
26110 int res2 = 0 ;
26111 double val3 ;
26112 int ecode3 = 0 ;
26113 double val4 ;
26114 int ecode4 = 0 ;
26115 double val5 ;
26116 int ecode5 = 0 ;
26117 double val6 ;
26118 int ecode6 = 0 ;
26119 PyObject * obj0 = 0 ;
26120 PyObject * obj1 = 0 ;
26121 PyObject * obj2 = 0 ;
26122 PyObject * obj3 = 0 ;
26123 PyObject * obj4 = 0 ;
26124 PyObject * obj5 = 0 ;
26125 char * kwnames[] = {
26126 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26127 };
26128
26129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26131 if (!SWIG_IsOK(res1)) {
26132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26133 }
26134 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26136 if (!SWIG_IsOK(res2)) {
26137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26138 }
26139 if (!argp2) {
26140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26141 }
26142 arg2 = reinterpret_cast< wxIcon * >(argp2);
26143 ecode3 = SWIG_AsVal_double(obj2, &val3);
26144 if (!SWIG_IsOK(ecode3)) {
26145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26146 }
26147 arg3 = static_cast< wxDouble >(val3);
26148 ecode4 = SWIG_AsVal_double(obj3, &val4);
26149 if (!SWIG_IsOK(ecode4)) {
26150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26151 }
26152 arg4 = static_cast< wxDouble >(val4);
26153 ecode5 = SWIG_AsVal_double(obj4, &val5);
26154 if (!SWIG_IsOK(ecode5)) {
26155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26156 }
26157 arg5 = static_cast< wxDouble >(val5);
26158 ecode6 = SWIG_AsVal_double(obj5, &val6);
26159 if (!SWIG_IsOK(ecode6)) {
26160 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26161 }
26162 arg6 = static_cast< wxDouble >(val6);
26163 {
26164 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26165 if (PyErr_Occurred()) SWIG_fail;
26166 }
26167 resultobj = SWIG_Py_Void();
26168 return resultobj;
26169 fail:
26170 return NULL;
26171 }
26172
26173
26174 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26175 PyObject *resultobj = 0;
26176 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26177 wxDouble arg2 ;
26178 wxDouble arg3 ;
26179 wxDouble arg4 ;
26180 wxDouble arg5 ;
26181 void *argp1 = 0 ;
26182 int res1 = 0 ;
26183 double val2 ;
26184 int ecode2 = 0 ;
26185 double val3 ;
26186 int ecode3 = 0 ;
26187 double val4 ;
26188 int ecode4 = 0 ;
26189 double val5 ;
26190 int ecode5 = 0 ;
26191 PyObject * obj0 = 0 ;
26192 PyObject * obj1 = 0 ;
26193 PyObject * obj2 = 0 ;
26194 PyObject * obj3 = 0 ;
26195 PyObject * obj4 = 0 ;
26196 char * kwnames[] = {
26197 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26198 };
26199
26200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26202 if (!SWIG_IsOK(res1)) {
26203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26204 }
26205 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26206 ecode2 = SWIG_AsVal_double(obj1, &val2);
26207 if (!SWIG_IsOK(ecode2)) {
26208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26209 }
26210 arg2 = static_cast< wxDouble >(val2);
26211 ecode3 = SWIG_AsVal_double(obj2, &val3);
26212 if (!SWIG_IsOK(ecode3)) {
26213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26214 }
26215 arg3 = static_cast< wxDouble >(val3);
26216 ecode4 = SWIG_AsVal_double(obj3, &val4);
26217 if (!SWIG_IsOK(ecode4)) {
26218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26219 }
26220 arg4 = static_cast< wxDouble >(val4);
26221 ecode5 = SWIG_AsVal_double(obj4, &val5);
26222 if (!SWIG_IsOK(ecode5)) {
26223 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26224 }
26225 arg5 = static_cast< wxDouble >(val5);
26226 {
26227 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 }
26230 resultobj = SWIG_Py_Void();
26231 return resultobj;
26232 fail:
26233 return NULL;
26234 }
26235
26236
26237 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26238 PyObject *resultobj = 0;
26239 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26240 size_t arg2 ;
26241 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26242 void *argp1 = 0 ;
26243 int res1 = 0 ;
26244 PyObject * obj0 = 0 ;
26245 PyObject * obj1 = 0 ;
26246 char * kwnames[] = {
26247 (char *) "self",(char *) "points", NULL
26248 };
26249
26250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26252 if (!SWIG_IsOK(res1)) {
26253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26254 }
26255 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26256 {
26257 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26258 if (arg3 == NULL) SWIG_fail;
26259 }
26260 {
26261 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 resultobj = SWIG_Py_Void();
26265 {
26266 if (arg3) delete [] arg3;
26267 }
26268 return resultobj;
26269 fail:
26270 {
26271 if (arg3) delete [] arg3;
26272 }
26273 return NULL;
26274 }
26275
26276
26277 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26278 PyObject *resultobj = 0;
26279 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26280 PyObject *arg2 = (PyObject *) 0 ;
26281 PyObject *arg3 = (PyObject *) 0 ;
26282 void *argp1 = 0 ;
26283 int res1 = 0 ;
26284 PyObject * obj0 = 0 ;
26285 PyObject * obj1 = 0 ;
26286 PyObject * obj2 = 0 ;
26287 char * kwnames[] = {
26288 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26289 };
26290
26291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26293 if (!SWIG_IsOK(res1)) {
26294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26295 }
26296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26297 arg2 = obj1;
26298 arg3 = obj2;
26299 {
26300 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
26301 if (PyErr_Occurred()) SWIG_fail;
26302 }
26303 resultobj = SWIG_Py_Void();
26304 return resultobj;
26305 fail:
26306 return NULL;
26307 }
26308
26309
26310 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26311 PyObject *resultobj = 0;
26312 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26313 size_t arg2 ;
26314 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26315 int arg4 = (int) wxWINDING_RULE ;
26316 void *argp1 = 0 ;
26317 int res1 = 0 ;
26318 int val4 ;
26319 int ecode4 = 0 ;
26320 PyObject * obj0 = 0 ;
26321 PyObject * obj1 = 0 ;
26322 PyObject * obj2 = 0 ;
26323 char * kwnames[] = {
26324 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
26325 };
26326
26327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26329 if (!SWIG_IsOK(res1)) {
26330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26331 }
26332 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26333 {
26334 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26335 if (arg3 == NULL) SWIG_fail;
26336 }
26337 if (obj2) {
26338 ecode4 = SWIG_AsVal_int(obj2, &val4);
26339 if (!SWIG_IsOK(ecode4)) {
26340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26341 }
26342 arg4 = static_cast< int >(val4);
26343 }
26344 {
26345 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26346 if (PyErr_Occurred()) SWIG_fail;
26347 }
26348 resultobj = SWIG_Py_Void();
26349 {
26350 if (arg3) delete [] arg3;
26351 }
26352 return resultobj;
26353 fail:
26354 {
26355 if (arg3) delete [] arg3;
26356 }
26357 return NULL;
26358 }
26359
26360
26361 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26362 PyObject *resultobj = 0;
26363 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26364 wxDouble arg2 ;
26365 wxDouble arg3 ;
26366 wxDouble arg4 ;
26367 wxDouble arg5 ;
26368 void *argp1 = 0 ;
26369 int res1 = 0 ;
26370 double val2 ;
26371 int ecode2 = 0 ;
26372 double val3 ;
26373 int ecode3 = 0 ;
26374 double val4 ;
26375 int ecode4 = 0 ;
26376 double val5 ;
26377 int ecode5 = 0 ;
26378 PyObject * obj0 = 0 ;
26379 PyObject * obj1 = 0 ;
26380 PyObject * obj2 = 0 ;
26381 PyObject * obj3 = 0 ;
26382 PyObject * obj4 = 0 ;
26383 char * kwnames[] = {
26384 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26385 };
26386
26387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26389 if (!SWIG_IsOK(res1)) {
26390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26391 }
26392 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26393 ecode2 = SWIG_AsVal_double(obj1, &val2);
26394 if (!SWIG_IsOK(ecode2)) {
26395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26396 }
26397 arg2 = static_cast< wxDouble >(val2);
26398 ecode3 = SWIG_AsVal_double(obj2, &val3);
26399 if (!SWIG_IsOK(ecode3)) {
26400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26401 }
26402 arg3 = static_cast< wxDouble >(val3);
26403 ecode4 = SWIG_AsVal_double(obj3, &val4);
26404 if (!SWIG_IsOK(ecode4)) {
26405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26406 }
26407 arg4 = static_cast< wxDouble >(val4);
26408 ecode5 = SWIG_AsVal_double(obj4, &val5);
26409 if (!SWIG_IsOK(ecode5)) {
26410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26411 }
26412 arg5 = static_cast< wxDouble >(val5);
26413 {
26414 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = SWIG_Py_Void();
26418 return resultobj;
26419 fail:
26420 return NULL;
26421 }
26422
26423
26424 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26425 PyObject *resultobj = 0;
26426 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26427 wxDouble arg2 ;
26428 wxDouble arg3 ;
26429 wxDouble arg4 ;
26430 wxDouble arg5 ;
26431 void *argp1 = 0 ;
26432 int res1 = 0 ;
26433 double val2 ;
26434 int ecode2 = 0 ;
26435 double val3 ;
26436 int ecode3 = 0 ;
26437 double val4 ;
26438 int ecode4 = 0 ;
26439 double val5 ;
26440 int ecode5 = 0 ;
26441 PyObject * obj0 = 0 ;
26442 PyObject * obj1 = 0 ;
26443 PyObject * obj2 = 0 ;
26444 PyObject * obj3 = 0 ;
26445 PyObject * obj4 = 0 ;
26446 char * kwnames[] = {
26447 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26448 };
26449
26450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26452 if (!SWIG_IsOK(res1)) {
26453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26454 }
26455 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26456 ecode2 = SWIG_AsVal_double(obj1, &val2);
26457 if (!SWIG_IsOK(ecode2)) {
26458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26459 }
26460 arg2 = static_cast< wxDouble >(val2);
26461 ecode3 = SWIG_AsVal_double(obj2, &val3);
26462 if (!SWIG_IsOK(ecode3)) {
26463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26464 }
26465 arg3 = static_cast< wxDouble >(val3);
26466 ecode4 = SWIG_AsVal_double(obj3, &val4);
26467 if (!SWIG_IsOK(ecode4)) {
26468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26469 }
26470 arg4 = static_cast< wxDouble >(val4);
26471 ecode5 = SWIG_AsVal_double(obj4, &val5);
26472 if (!SWIG_IsOK(ecode5)) {
26473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26474 }
26475 arg5 = static_cast< wxDouble >(val5);
26476 {
26477 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26478 if (PyErr_Occurred()) SWIG_fail;
26479 }
26480 resultobj = SWIG_Py_Void();
26481 return resultobj;
26482 fail:
26483 return NULL;
26484 }
26485
26486
26487 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26488 PyObject *resultobj = 0;
26489 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26490 wxDouble arg2 ;
26491 wxDouble arg3 ;
26492 wxDouble arg4 ;
26493 wxDouble arg5 ;
26494 wxDouble arg6 ;
26495 void *argp1 = 0 ;
26496 int res1 = 0 ;
26497 double val2 ;
26498 int ecode2 = 0 ;
26499 double val3 ;
26500 int ecode3 = 0 ;
26501 double val4 ;
26502 int ecode4 = 0 ;
26503 double val5 ;
26504 int ecode5 = 0 ;
26505 double val6 ;
26506 int ecode6 = 0 ;
26507 PyObject * obj0 = 0 ;
26508 PyObject * obj1 = 0 ;
26509 PyObject * obj2 = 0 ;
26510 PyObject * obj3 = 0 ;
26511 PyObject * obj4 = 0 ;
26512 PyObject * obj5 = 0 ;
26513 char * kwnames[] = {
26514 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26515 };
26516
26517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26519 if (!SWIG_IsOK(res1)) {
26520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26521 }
26522 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26523 ecode2 = SWIG_AsVal_double(obj1, &val2);
26524 if (!SWIG_IsOK(ecode2)) {
26525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26526 }
26527 arg2 = static_cast< wxDouble >(val2);
26528 ecode3 = SWIG_AsVal_double(obj2, &val3);
26529 if (!SWIG_IsOK(ecode3)) {
26530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26531 }
26532 arg3 = static_cast< wxDouble >(val3);
26533 ecode4 = SWIG_AsVal_double(obj3, &val4);
26534 if (!SWIG_IsOK(ecode4)) {
26535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26536 }
26537 arg4 = static_cast< wxDouble >(val4);
26538 ecode5 = SWIG_AsVal_double(obj4, &val5);
26539 if (!SWIG_IsOK(ecode5)) {
26540 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26541 }
26542 arg5 = static_cast< wxDouble >(val5);
26543 ecode6 = SWIG_AsVal_double(obj5, &val6);
26544 if (!SWIG_IsOK(ecode6)) {
26545 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26546 }
26547 arg6 = static_cast< wxDouble >(val6);
26548 {
26549 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26550 if (PyErr_Occurred()) SWIG_fail;
26551 }
26552 resultobj = SWIG_Py_Void();
26553 return resultobj;
26554 fail:
26555 return NULL;
26556 }
26557
26558
26559 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26560 PyObject *obj;
26561 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26562 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26563 return SWIG_Py_Void();
26564 }
26565
26566 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26567 PyObject *resultobj = 0;
26568 wxWindowDC *arg1 = 0 ;
26569 wxGCDC *result = 0 ;
26570 void *argp1 = 0 ;
26571 int res1 = 0 ;
26572 PyObject * obj0 = 0 ;
26573 char * kwnames[] = {
26574 (char *) "dc", NULL
26575 };
26576
26577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26578 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26579 if (!SWIG_IsOK(res1)) {
26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26581 }
26582 if (!argp1) {
26583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26584 }
26585 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26586 {
26587 if (!wxPyCheckForApp()) SWIG_fail;
26588 PyThreadState* __tstate = wxPyBeginAllowThreads();
26589 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26590 wxPyEndAllowThreads(__tstate);
26591 if (PyErr_Occurred()) SWIG_fail;
26592 }
26593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26594 return resultobj;
26595 fail:
26596 return NULL;
26597 }
26598
26599
26600 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26601 PyObject *resultobj = 0;
26602 wxGCDC *arg1 = (wxGCDC *) 0 ;
26603 void *argp1 = 0 ;
26604 int res1 = 0 ;
26605 PyObject *swig_obj[1] ;
26606
26607 if (!args) SWIG_fail;
26608 swig_obj[0] = args;
26609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26610 if (!SWIG_IsOK(res1)) {
26611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26612 }
26613 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26614 {
26615 delete arg1;
26616
26617 if (PyErr_Occurred()) SWIG_fail;
26618 }
26619 resultobj = SWIG_Py_Void();
26620 return resultobj;
26621 fail:
26622 return NULL;
26623 }
26624
26625
26626 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26627 PyObject *resultobj = 0;
26628 wxGCDC *arg1 = (wxGCDC *) 0 ;
26629 wxGraphicsContext *result = 0 ;
26630 void *argp1 = 0 ;
26631 int res1 = 0 ;
26632 PyObject *swig_obj[1] ;
26633
26634 if (!args) SWIG_fail;
26635 swig_obj[0] = args;
26636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26637 if (!SWIG_IsOK(res1)) {
26638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26639 }
26640 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26641 {
26642 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
26643 if (PyErr_Occurred()) SWIG_fail;
26644 }
26645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26646 return resultobj;
26647 fail:
26648 return NULL;
26649 }
26650
26651
26652 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26653 PyObject *resultobj = 0;
26654 wxGCDC *arg1 = (wxGCDC *) 0 ;
26655 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
26656 void *argp1 = 0 ;
26657 int res1 = 0 ;
26658 void *argp2 = 0 ;
26659 int res2 = 0 ;
26660 PyObject * obj0 = 0 ;
26661 PyObject * obj1 = 0 ;
26662 char * kwnames[] = {
26663 (char *) "self",(char *) "ctx", NULL
26664 };
26665
26666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
26667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26668 if (!SWIG_IsOK(res1)) {
26669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26670 }
26671 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26673 if (!SWIG_IsOK(res2)) {
26674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
26675 }
26676 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
26677 {
26678 (arg1)->SetGraphicsContext(arg2);
26679 if (PyErr_Occurred()) SWIG_fail;
26680 }
26681 resultobj = SWIG_Py_Void();
26682 return resultobj;
26683 fail:
26684 return NULL;
26685 }
26686
26687
26688 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26689 PyObject *obj;
26690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26691 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26692 return SWIG_Py_Void();
26693 }
26694
26695 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26696 return SWIG_Python_InitShadowInstance(args);
26697 }
26698
26699 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26700 PyObject *resultobj = 0;
26701 wxOverlay *result = 0 ;
26702
26703 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26704 {
26705 PyThreadState* __tstate = wxPyBeginAllowThreads();
26706 result = (wxOverlay *)new wxOverlay();
26707 wxPyEndAllowThreads(__tstate);
26708 if (PyErr_Occurred()) SWIG_fail;
26709 }
26710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26711 return resultobj;
26712 fail:
26713 return NULL;
26714 }
26715
26716
26717 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26718 PyObject *resultobj = 0;
26719 wxOverlay *arg1 = (wxOverlay *) 0 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 PyObject *swig_obj[1] ;
26723
26724 if (!args) SWIG_fail;
26725 swig_obj[0] = args;
26726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26727 if (!SWIG_IsOK(res1)) {
26728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26729 }
26730 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26731 {
26732 PyThreadState* __tstate = wxPyBeginAllowThreads();
26733 delete arg1;
26734
26735 wxPyEndAllowThreads(__tstate);
26736 if (PyErr_Occurred()) SWIG_fail;
26737 }
26738 resultobj = SWIG_Py_Void();
26739 return resultobj;
26740 fail:
26741 return NULL;
26742 }
26743
26744
26745 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26746 PyObject *resultobj = 0;
26747 wxOverlay *arg1 = (wxOverlay *) 0 ;
26748 void *argp1 = 0 ;
26749 int res1 = 0 ;
26750 PyObject *swig_obj[1] ;
26751
26752 if (!args) SWIG_fail;
26753 swig_obj[0] = args;
26754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26755 if (!SWIG_IsOK(res1)) {
26756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26757 }
26758 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26759 {
26760 PyThreadState* __tstate = wxPyBeginAllowThreads();
26761 (arg1)->Reset();
26762 wxPyEndAllowThreads(__tstate);
26763 if (PyErr_Occurred()) SWIG_fail;
26764 }
26765 resultobj = SWIG_Py_Void();
26766 return resultobj;
26767 fail:
26768 return NULL;
26769 }
26770
26771
26772 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26773 PyObject *obj;
26774 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26775 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26776 return SWIG_Py_Void();
26777 }
26778
26779 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26780 return SWIG_Python_InitShadowInstance(args);
26781 }
26782
26783 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26784 PyObject *resultobj = 0;
26785 wxOverlay *arg1 = 0 ;
26786 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26787 int arg3 ;
26788 int arg4 ;
26789 int arg5 ;
26790 int arg6 ;
26791 wxDCOverlay *result = 0 ;
26792 void *argp1 = 0 ;
26793 int res1 = 0 ;
26794 void *argp2 = 0 ;
26795 int res2 = 0 ;
26796 int val3 ;
26797 int ecode3 = 0 ;
26798 int val4 ;
26799 int ecode4 = 0 ;
26800 int val5 ;
26801 int ecode5 = 0 ;
26802 int val6 ;
26803 int ecode6 = 0 ;
26804
26805 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26807 if (!SWIG_IsOK(res1)) {
26808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26809 }
26810 if (!argp1) {
26811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26812 }
26813 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26814 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26815 if (!SWIG_IsOK(res2)) {
26816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26817 }
26818 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26819 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26820 if (!SWIG_IsOK(ecode3)) {
26821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26822 }
26823 arg3 = static_cast< int >(val3);
26824 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26825 if (!SWIG_IsOK(ecode4)) {
26826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26827 }
26828 arg4 = static_cast< int >(val4);
26829 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26830 if (!SWIG_IsOK(ecode5)) {
26831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26832 }
26833 arg5 = static_cast< int >(val5);
26834 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26835 if (!SWIG_IsOK(ecode6)) {
26836 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26837 }
26838 arg6 = static_cast< int >(val6);
26839 {
26840 PyThreadState* __tstate = wxPyBeginAllowThreads();
26841 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26842 wxPyEndAllowThreads(__tstate);
26843 if (PyErr_Occurred()) SWIG_fail;
26844 }
26845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26846 return resultobj;
26847 fail:
26848 return NULL;
26849 }
26850
26851
26852 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26853 PyObject *resultobj = 0;
26854 wxOverlay *arg1 = 0 ;
26855 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26856 wxDCOverlay *result = 0 ;
26857 void *argp1 = 0 ;
26858 int res1 = 0 ;
26859 void *argp2 = 0 ;
26860 int res2 = 0 ;
26861
26862 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26864 if (!SWIG_IsOK(res1)) {
26865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26866 }
26867 if (!argp1) {
26868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26869 }
26870 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26871 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26872 if (!SWIG_IsOK(res2)) {
26873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26874 }
26875 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26876 {
26877 PyThreadState* __tstate = wxPyBeginAllowThreads();
26878 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26879 wxPyEndAllowThreads(__tstate);
26880 if (PyErr_Occurred()) SWIG_fail;
26881 }
26882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26883 return resultobj;
26884 fail:
26885 return NULL;
26886 }
26887
26888
26889 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26890 int argc;
26891 PyObject *argv[7];
26892
26893 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26894 --argc;
26895 if (argc == 2) {
26896 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26897 }
26898 if (argc == 6) {
26899 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26900 }
26901
26902 fail:
26903 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26904 return NULL;
26905 }
26906
26907
26908 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26909 PyObject *resultobj = 0;
26910 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26911 void *argp1 = 0 ;
26912 int res1 = 0 ;
26913 PyObject *swig_obj[1] ;
26914
26915 if (!args) SWIG_fail;
26916 swig_obj[0] = args;
26917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26918 if (!SWIG_IsOK(res1)) {
26919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26920 }
26921 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26922 {
26923 PyThreadState* __tstate = wxPyBeginAllowThreads();
26924 delete arg1;
26925
26926 wxPyEndAllowThreads(__tstate);
26927 if (PyErr_Occurred()) SWIG_fail;
26928 }
26929 resultobj = SWIG_Py_Void();
26930 return resultobj;
26931 fail:
26932 return NULL;
26933 }
26934
26935
26936 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26937 PyObject *resultobj = 0;
26938 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26939 void *argp1 = 0 ;
26940 int res1 = 0 ;
26941 PyObject *swig_obj[1] ;
26942
26943 if (!args) SWIG_fail;
26944 swig_obj[0] = args;
26945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26946 if (!SWIG_IsOK(res1)) {
26947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26948 }
26949 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26950 {
26951 PyThreadState* __tstate = wxPyBeginAllowThreads();
26952 (arg1)->Clear();
26953 wxPyEndAllowThreads(__tstate);
26954 if (PyErr_Occurred()) SWIG_fail;
26955 }
26956 resultobj = SWIG_Py_Void();
26957 return resultobj;
26958 fail:
26959 return NULL;
26960 }
26961
26962
26963 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26964 PyObject *obj;
26965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26966 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26967 return SWIG_Py_Void();
26968 }
26969
26970 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26971 return SWIG_Python_InitShadowInstance(args);
26972 }
26973
26974 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26975 PyObject *resultobj = 0;
26976 int arg1 ;
26977 int arg2 ;
26978 int arg3 = (int) true ;
26979 int arg4 = (int) 1 ;
26980 wxImageList *result = 0 ;
26981 int val1 ;
26982 int ecode1 = 0 ;
26983 int val2 ;
26984 int ecode2 = 0 ;
26985 int val3 ;
26986 int ecode3 = 0 ;
26987 int val4 ;
26988 int ecode4 = 0 ;
26989 PyObject * obj0 = 0 ;
26990 PyObject * obj1 = 0 ;
26991 PyObject * obj2 = 0 ;
26992 PyObject * obj3 = 0 ;
26993 char * kwnames[] = {
26994 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26995 };
26996
26997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26998 ecode1 = SWIG_AsVal_int(obj0, &val1);
26999 if (!SWIG_IsOK(ecode1)) {
27000 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27001 }
27002 arg1 = static_cast< int >(val1);
27003 ecode2 = SWIG_AsVal_int(obj1, &val2);
27004 if (!SWIG_IsOK(ecode2)) {
27005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27006 }
27007 arg2 = static_cast< int >(val2);
27008 if (obj2) {
27009 ecode3 = SWIG_AsVal_int(obj2, &val3);
27010 if (!SWIG_IsOK(ecode3)) {
27011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27012 }
27013 arg3 = static_cast< int >(val3);
27014 }
27015 if (obj3) {
27016 ecode4 = SWIG_AsVal_int(obj3, &val4);
27017 if (!SWIG_IsOK(ecode4)) {
27018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27019 }
27020 arg4 = static_cast< int >(val4);
27021 }
27022 {
27023 if (!wxPyCheckForApp()) SWIG_fail;
27024 PyThreadState* __tstate = wxPyBeginAllowThreads();
27025 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27026 wxPyEndAllowThreads(__tstate);
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27037 PyObject *resultobj = 0;
27038 wxImageList *arg1 = (wxImageList *) 0 ;
27039 void *argp1 = 0 ;
27040 int res1 = 0 ;
27041 PyObject *swig_obj[1] ;
27042
27043 if (!args) SWIG_fail;
27044 swig_obj[0] = args;
27045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27046 if (!SWIG_IsOK(res1)) {
27047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27048 }
27049 arg1 = reinterpret_cast< wxImageList * >(argp1);
27050 {
27051 PyThreadState* __tstate = wxPyBeginAllowThreads();
27052 delete arg1;
27053
27054 wxPyEndAllowThreads(__tstate);
27055 if (PyErr_Occurred()) SWIG_fail;
27056 }
27057 resultobj = SWIG_Py_Void();
27058 return resultobj;
27059 fail:
27060 return NULL;
27061 }
27062
27063
27064 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27065 PyObject *resultobj = 0;
27066 wxImageList *arg1 = (wxImageList *) 0 ;
27067 wxBitmap *arg2 = 0 ;
27068 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27069 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27070 int result;
27071 void *argp1 = 0 ;
27072 int res1 = 0 ;
27073 void *argp2 = 0 ;
27074 int res2 = 0 ;
27075 void *argp3 = 0 ;
27076 int res3 = 0 ;
27077 PyObject * obj0 = 0 ;
27078 PyObject * obj1 = 0 ;
27079 PyObject * obj2 = 0 ;
27080 char * kwnames[] = {
27081 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27082 };
27083
27084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27086 if (!SWIG_IsOK(res1)) {
27087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27088 }
27089 arg1 = reinterpret_cast< wxImageList * >(argp1);
27090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27091 if (!SWIG_IsOK(res2)) {
27092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27093 }
27094 if (!argp2) {
27095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27096 }
27097 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27098 if (obj2) {
27099 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27100 if (!SWIG_IsOK(res3)) {
27101 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27102 }
27103 if (!argp3) {
27104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27105 }
27106 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27107 }
27108 {
27109 PyThreadState* __tstate = wxPyBeginAllowThreads();
27110 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27111 wxPyEndAllowThreads(__tstate);
27112 if (PyErr_Occurred()) SWIG_fail;
27113 }
27114 resultobj = SWIG_From_int(static_cast< int >(result));
27115 return resultobj;
27116 fail:
27117 return NULL;
27118 }
27119
27120
27121 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27122 PyObject *resultobj = 0;
27123 wxImageList *arg1 = (wxImageList *) 0 ;
27124 wxBitmap *arg2 = 0 ;
27125 wxColour *arg3 = 0 ;
27126 int result;
27127 void *argp1 = 0 ;
27128 int res1 = 0 ;
27129 void *argp2 = 0 ;
27130 int res2 = 0 ;
27131 wxColour temp3 ;
27132 PyObject * obj0 = 0 ;
27133 PyObject * obj1 = 0 ;
27134 PyObject * obj2 = 0 ;
27135 char * kwnames[] = {
27136 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27137 };
27138
27139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27141 if (!SWIG_IsOK(res1)) {
27142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27143 }
27144 arg1 = reinterpret_cast< wxImageList * >(argp1);
27145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27146 if (!SWIG_IsOK(res2)) {
27147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27148 }
27149 if (!argp2) {
27150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27151 }
27152 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27153 {
27154 arg3 = &temp3;
27155 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27156 }
27157 {
27158 PyThreadState* __tstate = wxPyBeginAllowThreads();
27159 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27160 wxPyEndAllowThreads(__tstate);
27161 if (PyErr_Occurred()) SWIG_fail;
27162 }
27163 resultobj = SWIG_From_int(static_cast< int >(result));
27164 return resultobj;
27165 fail:
27166 return NULL;
27167 }
27168
27169
27170 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27171 PyObject *resultobj = 0;
27172 wxImageList *arg1 = (wxImageList *) 0 ;
27173 wxIcon *arg2 = 0 ;
27174 int result;
27175 void *argp1 = 0 ;
27176 int res1 = 0 ;
27177 void *argp2 = 0 ;
27178 int res2 = 0 ;
27179 PyObject * obj0 = 0 ;
27180 PyObject * obj1 = 0 ;
27181 char * kwnames[] = {
27182 (char *) "self",(char *) "icon", NULL
27183 };
27184
27185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27187 if (!SWIG_IsOK(res1)) {
27188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27189 }
27190 arg1 = reinterpret_cast< wxImageList * >(argp1);
27191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27192 if (!SWIG_IsOK(res2)) {
27193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27194 }
27195 if (!argp2) {
27196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27197 }
27198 arg2 = reinterpret_cast< wxIcon * >(argp2);
27199 {
27200 PyThreadState* __tstate = wxPyBeginAllowThreads();
27201 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 resultobj = SWIG_From_int(static_cast< int >(result));
27206 return resultobj;
27207 fail:
27208 return NULL;
27209 }
27210
27211
27212 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27213 PyObject *resultobj = 0;
27214 wxImageList *arg1 = (wxImageList *) 0 ;
27215 int arg2 ;
27216 SwigValueWrapper<wxBitmap > result;
27217 void *argp1 = 0 ;
27218 int res1 = 0 ;
27219 int val2 ;
27220 int ecode2 = 0 ;
27221 PyObject * obj0 = 0 ;
27222 PyObject * obj1 = 0 ;
27223 char * kwnames[] = {
27224 (char *) "self",(char *) "index", NULL
27225 };
27226
27227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27229 if (!SWIG_IsOK(res1)) {
27230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27231 }
27232 arg1 = reinterpret_cast< wxImageList * >(argp1);
27233 ecode2 = SWIG_AsVal_int(obj1, &val2);
27234 if (!SWIG_IsOK(ecode2)) {
27235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27236 }
27237 arg2 = static_cast< int >(val2);
27238 {
27239 PyThreadState* __tstate = wxPyBeginAllowThreads();
27240 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27241 wxPyEndAllowThreads(__tstate);
27242 if (PyErr_Occurred()) SWIG_fail;
27243 }
27244 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27245 return resultobj;
27246 fail:
27247 return NULL;
27248 }
27249
27250
27251 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27252 PyObject *resultobj = 0;
27253 wxImageList *arg1 = (wxImageList *) 0 ;
27254 int arg2 ;
27255 wxIcon result;
27256 void *argp1 = 0 ;
27257 int res1 = 0 ;
27258 int val2 ;
27259 int ecode2 = 0 ;
27260 PyObject * obj0 = 0 ;
27261 PyObject * obj1 = 0 ;
27262 char * kwnames[] = {
27263 (char *) "self",(char *) "index", NULL
27264 };
27265
27266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27268 if (!SWIG_IsOK(res1)) {
27269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27270 }
27271 arg1 = reinterpret_cast< wxImageList * >(argp1);
27272 ecode2 = SWIG_AsVal_int(obj1, &val2);
27273 if (!SWIG_IsOK(ecode2)) {
27274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27275 }
27276 arg2 = static_cast< int >(val2);
27277 {
27278 PyThreadState* __tstate = wxPyBeginAllowThreads();
27279 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27280 wxPyEndAllowThreads(__tstate);
27281 if (PyErr_Occurred()) SWIG_fail;
27282 }
27283 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27284 return resultobj;
27285 fail:
27286 return NULL;
27287 }
27288
27289
27290 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27291 PyObject *resultobj = 0;
27292 wxImageList *arg1 = (wxImageList *) 0 ;
27293 int arg2 ;
27294 wxBitmap *arg3 = 0 ;
27295 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27296 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27297 bool result;
27298 void *argp1 = 0 ;
27299 int res1 = 0 ;
27300 int val2 ;
27301 int ecode2 = 0 ;
27302 void *argp3 = 0 ;
27303 int res3 = 0 ;
27304 void *argp4 = 0 ;
27305 int res4 = 0 ;
27306 PyObject * obj0 = 0 ;
27307 PyObject * obj1 = 0 ;
27308 PyObject * obj2 = 0 ;
27309 PyObject * obj3 = 0 ;
27310 char * kwnames[] = {
27311 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27312 };
27313
27314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27316 if (!SWIG_IsOK(res1)) {
27317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27318 }
27319 arg1 = reinterpret_cast< wxImageList * >(argp1);
27320 ecode2 = SWIG_AsVal_int(obj1, &val2);
27321 if (!SWIG_IsOK(ecode2)) {
27322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27323 }
27324 arg2 = static_cast< int >(val2);
27325 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27326 if (!SWIG_IsOK(res3)) {
27327 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27328 }
27329 if (!argp3) {
27330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27331 }
27332 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27333 if (obj3) {
27334 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27335 if (!SWIG_IsOK(res4)) {
27336 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27337 }
27338 if (!argp4) {
27339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27340 }
27341 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27342 }
27343 {
27344 PyThreadState* __tstate = wxPyBeginAllowThreads();
27345 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27346 wxPyEndAllowThreads(__tstate);
27347 if (PyErr_Occurred()) SWIG_fail;
27348 }
27349 {
27350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27351 }
27352 return resultobj;
27353 fail:
27354 return NULL;
27355 }
27356
27357
27358 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27359 PyObject *resultobj = 0;
27360 wxImageList *arg1 = (wxImageList *) 0 ;
27361 int arg2 ;
27362 wxDC *arg3 = 0 ;
27363 int arg4 ;
27364 int arg5 ;
27365 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27366 bool arg7 = (bool) (bool)false ;
27367 bool result;
27368 void *argp1 = 0 ;
27369 int res1 = 0 ;
27370 int val2 ;
27371 int ecode2 = 0 ;
27372 void *argp3 = 0 ;
27373 int res3 = 0 ;
27374 int val4 ;
27375 int ecode4 = 0 ;
27376 int val5 ;
27377 int ecode5 = 0 ;
27378 int val6 ;
27379 int ecode6 = 0 ;
27380 bool val7 ;
27381 int ecode7 = 0 ;
27382 PyObject * obj0 = 0 ;
27383 PyObject * obj1 = 0 ;
27384 PyObject * obj2 = 0 ;
27385 PyObject * obj3 = 0 ;
27386 PyObject * obj4 = 0 ;
27387 PyObject * obj5 = 0 ;
27388 PyObject * obj6 = 0 ;
27389 char * kwnames[] = {
27390 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27391 };
27392
27393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27395 if (!SWIG_IsOK(res1)) {
27396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27397 }
27398 arg1 = reinterpret_cast< wxImageList * >(argp1);
27399 ecode2 = SWIG_AsVal_int(obj1, &val2);
27400 if (!SWIG_IsOK(ecode2)) {
27401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27402 }
27403 arg2 = static_cast< int >(val2);
27404 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27405 if (!SWIG_IsOK(res3)) {
27406 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27407 }
27408 if (!argp3) {
27409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27410 }
27411 arg3 = reinterpret_cast< wxDC * >(argp3);
27412 ecode4 = SWIG_AsVal_int(obj3, &val4);
27413 if (!SWIG_IsOK(ecode4)) {
27414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27415 }
27416 arg4 = static_cast< int >(val4);
27417 ecode5 = SWIG_AsVal_int(obj4, &val5);
27418 if (!SWIG_IsOK(ecode5)) {
27419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27420 }
27421 arg5 = static_cast< int >(val5);
27422 if (obj5) {
27423 ecode6 = SWIG_AsVal_int(obj5, &val6);
27424 if (!SWIG_IsOK(ecode6)) {
27425 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27426 }
27427 arg6 = static_cast< int >(val6);
27428 }
27429 if (obj6) {
27430 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27431 if (!SWIG_IsOK(ecode7)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27433 }
27434 arg7 = static_cast< bool >(val7);
27435 }
27436 {
27437 PyThreadState* __tstate = wxPyBeginAllowThreads();
27438 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27439 wxPyEndAllowThreads(__tstate);
27440 if (PyErr_Occurred()) SWIG_fail;
27441 }
27442 {
27443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27444 }
27445 return resultobj;
27446 fail:
27447 return NULL;
27448 }
27449
27450
27451 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27452 PyObject *resultobj = 0;
27453 wxImageList *arg1 = (wxImageList *) 0 ;
27454 int result;
27455 void *argp1 = 0 ;
27456 int res1 = 0 ;
27457 PyObject *swig_obj[1] ;
27458
27459 if (!args) SWIG_fail;
27460 swig_obj[0] = args;
27461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27462 if (!SWIG_IsOK(res1)) {
27463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27464 }
27465 arg1 = reinterpret_cast< wxImageList * >(argp1);
27466 {
27467 PyThreadState* __tstate = wxPyBeginAllowThreads();
27468 result = (int)(arg1)->GetImageCount();
27469 wxPyEndAllowThreads(__tstate);
27470 if (PyErr_Occurred()) SWIG_fail;
27471 }
27472 resultobj = SWIG_From_int(static_cast< int >(result));
27473 return resultobj;
27474 fail:
27475 return NULL;
27476 }
27477
27478
27479 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27480 PyObject *resultobj = 0;
27481 wxImageList *arg1 = (wxImageList *) 0 ;
27482 int arg2 ;
27483 bool result;
27484 void *argp1 = 0 ;
27485 int res1 = 0 ;
27486 int val2 ;
27487 int ecode2 = 0 ;
27488 PyObject * obj0 = 0 ;
27489 PyObject * obj1 = 0 ;
27490 char * kwnames[] = {
27491 (char *) "self",(char *) "index", NULL
27492 };
27493
27494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27496 if (!SWIG_IsOK(res1)) {
27497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27498 }
27499 arg1 = reinterpret_cast< wxImageList * >(argp1);
27500 ecode2 = SWIG_AsVal_int(obj1, &val2);
27501 if (!SWIG_IsOK(ecode2)) {
27502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27503 }
27504 arg2 = static_cast< int >(val2);
27505 {
27506 PyThreadState* __tstate = wxPyBeginAllowThreads();
27507 result = (bool)(arg1)->Remove(arg2);
27508 wxPyEndAllowThreads(__tstate);
27509 if (PyErr_Occurred()) SWIG_fail;
27510 }
27511 {
27512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27513 }
27514 return resultobj;
27515 fail:
27516 return NULL;
27517 }
27518
27519
27520 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27521 PyObject *resultobj = 0;
27522 wxImageList *arg1 = (wxImageList *) 0 ;
27523 bool result;
27524 void *argp1 = 0 ;
27525 int res1 = 0 ;
27526 PyObject *swig_obj[1] ;
27527
27528 if (!args) SWIG_fail;
27529 swig_obj[0] = args;
27530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27531 if (!SWIG_IsOK(res1)) {
27532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27533 }
27534 arg1 = reinterpret_cast< wxImageList * >(argp1);
27535 {
27536 PyThreadState* __tstate = wxPyBeginAllowThreads();
27537 result = (bool)(arg1)->RemoveAll();
27538 wxPyEndAllowThreads(__tstate);
27539 if (PyErr_Occurred()) SWIG_fail;
27540 }
27541 {
27542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27543 }
27544 return resultobj;
27545 fail:
27546 return NULL;
27547 }
27548
27549
27550 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27551 PyObject *resultobj = 0;
27552 wxImageList *arg1 = (wxImageList *) 0 ;
27553 int arg2 ;
27554 int *arg3 = 0 ;
27555 int *arg4 = 0 ;
27556 void *argp1 = 0 ;
27557 int res1 = 0 ;
27558 int val2 ;
27559 int ecode2 = 0 ;
27560 int temp3 ;
27561 int res3 = SWIG_TMPOBJ ;
27562 int temp4 ;
27563 int res4 = SWIG_TMPOBJ ;
27564 PyObject * obj0 = 0 ;
27565 PyObject * obj1 = 0 ;
27566 char * kwnames[] = {
27567 (char *) "self",(char *) "index", NULL
27568 };
27569
27570 arg3 = &temp3;
27571 arg4 = &temp4;
27572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27574 if (!SWIG_IsOK(res1)) {
27575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27576 }
27577 arg1 = reinterpret_cast< wxImageList * >(argp1);
27578 ecode2 = SWIG_AsVal_int(obj1, &val2);
27579 if (!SWIG_IsOK(ecode2)) {
27580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27581 }
27582 arg2 = static_cast< int >(val2);
27583 {
27584 PyThreadState* __tstate = wxPyBeginAllowThreads();
27585 (arg1)->GetSize(arg2,*arg3,*arg4);
27586 wxPyEndAllowThreads(__tstate);
27587 if (PyErr_Occurred()) SWIG_fail;
27588 }
27589 resultobj = SWIG_Py_Void();
27590 if (SWIG_IsTmpObj(res3)) {
27591 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27592 } else {
27593 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27594 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27595 }
27596 if (SWIG_IsTmpObj(res4)) {
27597 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27598 } else {
27599 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27600 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27601 }
27602 return resultobj;
27603 fail:
27604 return NULL;
27605 }
27606
27607
27608 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27609 PyObject *obj;
27610 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27611 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27612 return SWIG_Py_Void();
27613 }
27614
27615 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27616 return SWIG_Python_InitShadowInstance(args);
27617 }
27618
27619 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27620 PyObject *resultobj = 0;
27621 wxStockGDI *result = 0 ;
27622
27623 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27624 {
27625 PyThreadState* __tstate = wxPyBeginAllowThreads();
27626 result = (wxStockGDI *)new wxStockGDI();
27627 wxPyEndAllowThreads(__tstate);
27628 if (PyErr_Occurred()) SWIG_fail;
27629 }
27630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27631 return resultobj;
27632 fail:
27633 return NULL;
27634 }
27635
27636
27637 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27638 PyObject *resultobj = 0;
27639 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27640 void *argp1 = 0 ;
27641 int res1 = 0 ;
27642 PyObject *swig_obj[1] ;
27643
27644 if (!args) SWIG_fail;
27645 swig_obj[0] = args;
27646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27647 if (!SWIG_IsOK(res1)) {
27648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27649 }
27650 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27651 {
27652 PyThreadState* __tstate = wxPyBeginAllowThreads();
27653 delete arg1;
27654
27655 wxPyEndAllowThreads(__tstate);
27656 if (PyErr_Occurred()) SWIG_fail;
27657 }
27658 resultobj = SWIG_Py_Void();
27659 return resultobj;
27660 fail:
27661 return NULL;
27662 }
27663
27664
27665 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27666 PyObject *resultobj = 0;
27667
27668 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27669 {
27670 PyThreadState* __tstate = wxPyBeginAllowThreads();
27671 wxStockGDI::DeleteAll();
27672 wxPyEndAllowThreads(__tstate);
27673 if (PyErr_Occurred()) SWIG_fail;
27674 }
27675 resultobj = SWIG_Py_Void();
27676 return resultobj;
27677 fail:
27678 return NULL;
27679 }
27680
27681
27682 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27683 PyObject *resultobj = 0;
27684 wxStockGDI *result = 0 ;
27685
27686 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27687 {
27688 PyThreadState* __tstate = wxPyBeginAllowThreads();
27689 {
27690 wxStockGDI &_result_ref = wxStockGDI::instance();
27691 result = (wxStockGDI *) &_result_ref;
27692 }
27693 wxPyEndAllowThreads(__tstate);
27694 if (PyErr_Occurred()) SWIG_fail;
27695 }
27696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27697 return resultobj;
27698 fail:
27699 return NULL;
27700 }
27701
27702
27703 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27704 PyObject *resultobj = 0;
27705 wxStockGDI::Item arg1 ;
27706 wxBrush *result = 0 ;
27707 int val1 ;
27708 int ecode1 = 0 ;
27709 PyObject * obj0 = 0 ;
27710 char * kwnames[] = {
27711 (char *) "item", NULL
27712 };
27713
27714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27715 ecode1 = SWIG_AsVal_int(obj0, &val1);
27716 if (!SWIG_IsOK(ecode1)) {
27717 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27718 }
27719 arg1 = static_cast< wxStockGDI::Item >(val1);
27720 {
27721 PyThreadState* __tstate = wxPyBeginAllowThreads();
27722 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27723 wxPyEndAllowThreads(__tstate);
27724 if (PyErr_Occurred()) SWIG_fail;
27725 }
27726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27727 return resultobj;
27728 fail:
27729 return NULL;
27730 }
27731
27732
27733 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27734 PyObject *resultobj = 0;
27735 wxStockGDI::Item arg1 ;
27736 wxColour *result = 0 ;
27737 int val1 ;
27738 int ecode1 = 0 ;
27739 PyObject * obj0 = 0 ;
27740 char * kwnames[] = {
27741 (char *) "item", NULL
27742 };
27743
27744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27745 ecode1 = SWIG_AsVal_int(obj0, &val1);
27746 if (!SWIG_IsOK(ecode1)) {
27747 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27748 }
27749 arg1 = static_cast< wxStockGDI::Item >(val1);
27750 {
27751 PyThreadState* __tstate = wxPyBeginAllowThreads();
27752 result = (wxColour *)wxStockGDI::GetColour(arg1);
27753 wxPyEndAllowThreads(__tstate);
27754 if (PyErr_Occurred()) SWIG_fail;
27755 }
27756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27757 return resultobj;
27758 fail:
27759 return NULL;
27760 }
27761
27762
27763 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27764 PyObject *resultobj = 0;
27765 wxStockGDI::Item arg1 ;
27766 wxCursor *result = 0 ;
27767 int val1 ;
27768 int ecode1 = 0 ;
27769 PyObject * obj0 = 0 ;
27770 char * kwnames[] = {
27771 (char *) "item", NULL
27772 };
27773
27774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27775 ecode1 = SWIG_AsVal_int(obj0, &val1);
27776 if (!SWIG_IsOK(ecode1)) {
27777 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27778 }
27779 arg1 = static_cast< wxStockGDI::Item >(val1);
27780 {
27781 PyThreadState* __tstate = wxPyBeginAllowThreads();
27782 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27783 wxPyEndAllowThreads(__tstate);
27784 if (PyErr_Occurred()) SWIG_fail;
27785 }
27786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27787 return resultobj;
27788 fail:
27789 return NULL;
27790 }
27791
27792
27793 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27794 PyObject *resultobj = 0;
27795 wxStockGDI::Item arg1 ;
27796 wxPen *result = 0 ;
27797 int val1 ;
27798 int ecode1 = 0 ;
27799 PyObject * obj0 = 0 ;
27800 char * kwnames[] = {
27801 (char *) "item", NULL
27802 };
27803
27804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27805 ecode1 = SWIG_AsVal_int(obj0, &val1);
27806 if (!SWIG_IsOK(ecode1)) {
27807 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27808 }
27809 arg1 = static_cast< wxStockGDI::Item >(val1);
27810 {
27811 PyThreadState* __tstate = wxPyBeginAllowThreads();
27812 result = (wxPen *)wxStockGDI::GetPen(arg1);
27813 wxPyEndAllowThreads(__tstate);
27814 if (PyErr_Occurred()) SWIG_fail;
27815 }
27816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27817 return resultobj;
27818 fail:
27819 return NULL;
27820 }
27821
27822
27823 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27824 PyObject *resultobj = 0;
27825 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27826 wxStockGDI::Item arg2 ;
27827 wxFont *result = 0 ;
27828 void *argp1 = 0 ;
27829 int res1 = 0 ;
27830 int val2 ;
27831 int ecode2 = 0 ;
27832 PyObject * obj0 = 0 ;
27833 PyObject * obj1 = 0 ;
27834 char * kwnames[] = {
27835 (char *) "self",(char *) "item", NULL
27836 };
27837
27838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27840 if (!SWIG_IsOK(res1)) {
27841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27842 }
27843 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27844 ecode2 = SWIG_AsVal_int(obj1, &val2);
27845 if (!SWIG_IsOK(ecode2)) {
27846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27847 }
27848 arg2 = static_cast< wxStockGDI::Item >(val2);
27849 {
27850 PyThreadState* __tstate = wxPyBeginAllowThreads();
27851 result = (wxFont *)(arg1)->GetFont(arg2);
27852 wxPyEndAllowThreads(__tstate);
27853 if (PyErr_Occurred()) SWIG_fail;
27854 }
27855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27863 PyObject *obj;
27864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27865 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27866 return SWIG_Py_Void();
27867 }
27868
27869 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27870 return SWIG_Python_InitShadowInstance(args);
27871 }
27872
27873 SWIGINTERN int NullBitmap_set(PyObject *) {
27874 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27875 return 1;
27876 }
27877
27878
27879 SWIGINTERN PyObject *NullBitmap_get(void) {
27880 PyObject *pyobj = 0;
27881
27882 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27883 return pyobj;
27884 }
27885
27886
27887 SWIGINTERN int NullIcon_set(PyObject *) {
27888 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27889 return 1;
27890 }
27891
27892
27893 SWIGINTERN PyObject *NullIcon_get(void) {
27894 PyObject *pyobj = 0;
27895
27896 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27897 return pyobj;
27898 }
27899
27900
27901 SWIGINTERN int NullCursor_set(PyObject *) {
27902 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27903 return 1;
27904 }
27905
27906
27907 SWIGINTERN PyObject *NullCursor_get(void) {
27908 PyObject *pyobj = 0;
27909
27910 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27911 return pyobj;
27912 }
27913
27914
27915 SWIGINTERN int NullPen_set(PyObject *) {
27916 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27917 return 1;
27918 }
27919
27920
27921 SWIGINTERN PyObject *NullPen_get(void) {
27922 PyObject *pyobj = 0;
27923
27924 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27925 return pyobj;
27926 }
27927
27928
27929 SWIGINTERN int NullBrush_set(PyObject *) {
27930 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27931 return 1;
27932 }
27933
27934
27935 SWIGINTERN PyObject *NullBrush_get(void) {
27936 PyObject *pyobj = 0;
27937
27938 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27939 return pyobj;
27940 }
27941
27942
27943 SWIGINTERN int NullPalette_set(PyObject *) {
27944 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27945 return 1;
27946 }
27947
27948
27949 SWIGINTERN PyObject *NullPalette_get(void) {
27950 PyObject *pyobj = 0;
27951
27952 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27953 return pyobj;
27954 }
27955
27956
27957 SWIGINTERN int NullFont_set(PyObject *) {
27958 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27959 return 1;
27960 }
27961
27962
27963 SWIGINTERN PyObject *NullFont_get(void) {
27964 PyObject *pyobj = 0;
27965
27966 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27967 return pyobj;
27968 }
27969
27970
27971 SWIGINTERN int NullColour_set(PyObject *) {
27972 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27973 return 1;
27974 }
27975
27976
27977 SWIGINTERN PyObject *NullColour_get(void) {
27978 PyObject *pyobj = 0;
27979
27980 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27981 return pyobj;
27982 }
27983
27984
27985 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27986 PyObject *resultobj = 0;
27987 wxGDIObjListBase *result = 0 ;
27988
27989 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27990 {
27991 PyThreadState* __tstate = wxPyBeginAllowThreads();
27992 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27997 return resultobj;
27998 fail:
27999 return NULL;
28000 }
28001
28002
28003 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28004 PyObject *resultobj = 0;
28005 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28006 void *argp1 = 0 ;
28007 int res1 = 0 ;
28008 PyObject *swig_obj[1] ;
28009
28010 if (!args) SWIG_fail;
28011 swig_obj[0] = args;
28012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28013 if (!SWIG_IsOK(res1)) {
28014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28015 }
28016 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28017 {
28018 PyThreadState* __tstate = wxPyBeginAllowThreads();
28019 delete arg1;
28020
28021 wxPyEndAllowThreads(__tstate);
28022 if (PyErr_Occurred()) SWIG_fail;
28023 }
28024 resultobj = SWIG_Py_Void();
28025 return resultobj;
28026 fail:
28027 return NULL;
28028 }
28029
28030
28031 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28032 PyObject *obj;
28033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28034 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28035 return SWIG_Py_Void();
28036 }
28037
28038 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28039 return SWIG_Python_InitShadowInstance(args);
28040 }
28041
28042 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28043 PyObject *resultobj = 0;
28044 wxPenList *arg1 = (wxPenList *) 0 ;
28045 wxColour *arg2 = 0 ;
28046 int arg3 ;
28047 int arg4 ;
28048 wxPen *result = 0 ;
28049 void *argp1 = 0 ;
28050 int res1 = 0 ;
28051 wxColour temp2 ;
28052 int val3 ;
28053 int ecode3 = 0 ;
28054 int val4 ;
28055 int ecode4 = 0 ;
28056 PyObject * obj0 = 0 ;
28057 PyObject * obj1 = 0 ;
28058 PyObject * obj2 = 0 ;
28059 PyObject * obj3 = 0 ;
28060 char * kwnames[] = {
28061 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28062 };
28063
28064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28066 if (!SWIG_IsOK(res1)) {
28067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28068 }
28069 arg1 = reinterpret_cast< wxPenList * >(argp1);
28070 {
28071 arg2 = &temp2;
28072 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28073 }
28074 ecode3 = SWIG_AsVal_int(obj2, &val3);
28075 if (!SWIG_IsOK(ecode3)) {
28076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28077 }
28078 arg3 = static_cast< int >(val3);
28079 ecode4 = SWIG_AsVal_int(obj3, &val4);
28080 if (!SWIG_IsOK(ecode4)) {
28081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28082 }
28083 arg4 = static_cast< int >(val4);
28084 {
28085 PyThreadState* __tstate = wxPyBeginAllowThreads();
28086 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28087 wxPyEndAllowThreads(__tstate);
28088 if (PyErr_Occurred()) SWIG_fail;
28089 }
28090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28091 return resultobj;
28092 fail:
28093 return NULL;
28094 }
28095
28096
28097 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28098 PyObject *resultobj = 0;
28099 wxPenList *arg1 = (wxPenList *) 0 ;
28100 wxPen *arg2 = (wxPen *) 0 ;
28101 void *argp1 = 0 ;
28102 int res1 = 0 ;
28103 void *argp2 = 0 ;
28104 int res2 = 0 ;
28105 PyObject * obj0 = 0 ;
28106 PyObject * obj1 = 0 ;
28107 char * kwnames[] = {
28108 (char *) "self",(char *) "pen", NULL
28109 };
28110
28111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28113 if (!SWIG_IsOK(res1)) {
28114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28115 }
28116 arg1 = reinterpret_cast< wxPenList * >(argp1);
28117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28118 if (!SWIG_IsOK(res2)) {
28119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28120 }
28121 arg2 = reinterpret_cast< wxPen * >(argp2);
28122 {
28123 PyThreadState* __tstate = wxPyBeginAllowThreads();
28124 (arg1)->AddPen(arg2);
28125 wxPyEndAllowThreads(__tstate);
28126 if (PyErr_Occurred()) SWIG_fail;
28127 }
28128 resultobj = SWIG_Py_Void();
28129 return resultobj;
28130 fail:
28131 return NULL;
28132 }
28133
28134
28135 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28136 PyObject *resultobj = 0;
28137 wxPenList *arg1 = (wxPenList *) 0 ;
28138 wxPen *arg2 = (wxPen *) 0 ;
28139 void *argp1 = 0 ;
28140 int res1 = 0 ;
28141 void *argp2 = 0 ;
28142 int res2 = 0 ;
28143 PyObject * obj0 = 0 ;
28144 PyObject * obj1 = 0 ;
28145 char * kwnames[] = {
28146 (char *) "self",(char *) "pen", NULL
28147 };
28148
28149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28151 if (!SWIG_IsOK(res1)) {
28152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28153 }
28154 arg1 = reinterpret_cast< wxPenList * >(argp1);
28155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28156 if (!SWIG_IsOK(res2)) {
28157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28158 }
28159 arg2 = reinterpret_cast< wxPen * >(argp2);
28160 {
28161 PyThreadState* __tstate = wxPyBeginAllowThreads();
28162 (arg1)->RemovePen(arg2);
28163 wxPyEndAllowThreads(__tstate);
28164 if (PyErr_Occurred()) SWIG_fail;
28165 }
28166 resultobj = SWIG_Py_Void();
28167 return resultobj;
28168 fail:
28169 return NULL;
28170 }
28171
28172
28173 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28174 PyObject *obj;
28175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28176 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28177 return SWIG_Py_Void();
28178 }
28179
28180 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28181 PyObject *resultobj = 0;
28182 wxBrushList *arg1 = (wxBrushList *) 0 ;
28183 wxColour *arg2 = 0 ;
28184 int arg3 = (int) wxSOLID ;
28185 wxBrush *result = 0 ;
28186 void *argp1 = 0 ;
28187 int res1 = 0 ;
28188 wxColour temp2 ;
28189 int val3 ;
28190 int ecode3 = 0 ;
28191 PyObject * obj0 = 0 ;
28192 PyObject * obj1 = 0 ;
28193 PyObject * obj2 = 0 ;
28194 char * kwnames[] = {
28195 (char *) "self",(char *) "colour",(char *) "style", NULL
28196 };
28197
28198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28200 if (!SWIG_IsOK(res1)) {
28201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28202 }
28203 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28204 {
28205 arg2 = &temp2;
28206 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28207 }
28208 if (obj2) {
28209 ecode3 = SWIG_AsVal_int(obj2, &val3);
28210 if (!SWIG_IsOK(ecode3)) {
28211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28212 }
28213 arg3 = static_cast< int >(val3);
28214 }
28215 {
28216 PyThreadState* __tstate = wxPyBeginAllowThreads();
28217 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28218 wxPyEndAllowThreads(__tstate);
28219 if (PyErr_Occurred()) SWIG_fail;
28220 }
28221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28222 return resultobj;
28223 fail:
28224 return NULL;
28225 }
28226
28227
28228 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28229 PyObject *resultobj = 0;
28230 wxBrushList *arg1 = (wxBrushList *) 0 ;
28231 wxBrush *arg2 = (wxBrush *) 0 ;
28232 void *argp1 = 0 ;
28233 int res1 = 0 ;
28234 void *argp2 = 0 ;
28235 int res2 = 0 ;
28236 PyObject * obj0 = 0 ;
28237 PyObject * obj1 = 0 ;
28238 char * kwnames[] = {
28239 (char *) "self",(char *) "brush", NULL
28240 };
28241
28242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28244 if (!SWIG_IsOK(res1)) {
28245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28246 }
28247 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28249 if (!SWIG_IsOK(res2)) {
28250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28251 }
28252 arg2 = reinterpret_cast< wxBrush * >(argp2);
28253 {
28254 PyThreadState* __tstate = wxPyBeginAllowThreads();
28255 (arg1)->AddBrush(arg2);
28256 wxPyEndAllowThreads(__tstate);
28257 if (PyErr_Occurred()) SWIG_fail;
28258 }
28259 resultobj = SWIG_Py_Void();
28260 return resultobj;
28261 fail:
28262 return NULL;
28263 }
28264
28265
28266 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28267 PyObject *resultobj = 0;
28268 wxBrushList *arg1 = (wxBrushList *) 0 ;
28269 wxBrush *arg2 = (wxBrush *) 0 ;
28270 void *argp1 = 0 ;
28271 int res1 = 0 ;
28272 void *argp2 = 0 ;
28273 int res2 = 0 ;
28274 PyObject * obj0 = 0 ;
28275 PyObject * obj1 = 0 ;
28276 char * kwnames[] = {
28277 (char *) "self",(char *) "brush", NULL
28278 };
28279
28280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28282 if (!SWIG_IsOK(res1)) {
28283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28284 }
28285 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28287 if (!SWIG_IsOK(res2)) {
28288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28289 }
28290 arg2 = reinterpret_cast< wxBrush * >(argp2);
28291 {
28292 PyThreadState* __tstate = wxPyBeginAllowThreads();
28293 (arg1)->RemoveBrush(arg2);
28294 wxPyEndAllowThreads(__tstate);
28295 if (PyErr_Occurred()) SWIG_fail;
28296 }
28297 resultobj = SWIG_Py_Void();
28298 return resultobj;
28299 fail:
28300 return NULL;
28301 }
28302
28303
28304 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28305 PyObject *obj;
28306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28307 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28308 return SWIG_Py_Void();
28309 }
28310
28311 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28312 PyObject *resultobj = 0;
28313 wxFontList *arg1 = (wxFontList *) 0 ;
28314 int arg2 ;
28315 int arg3 ;
28316 int arg4 ;
28317 int arg5 ;
28318 bool arg6 = (bool) false ;
28319 wxString const &arg7_defvalue = wxPyEmptyString ;
28320 wxString *arg7 = (wxString *) &arg7_defvalue ;
28321 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28322 wxFont *result = 0 ;
28323 void *argp1 = 0 ;
28324 int res1 = 0 ;
28325 int val2 ;
28326 int ecode2 = 0 ;
28327 int val3 ;
28328 int ecode3 = 0 ;
28329 int val4 ;
28330 int ecode4 = 0 ;
28331 int val5 ;
28332 int ecode5 = 0 ;
28333 bool val6 ;
28334 int ecode6 = 0 ;
28335 bool temp7 = false ;
28336 int val8 ;
28337 int ecode8 = 0 ;
28338 PyObject * obj0 = 0 ;
28339 PyObject * obj1 = 0 ;
28340 PyObject * obj2 = 0 ;
28341 PyObject * obj3 = 0 ;
28342 PyObject * obj4 = 0 ;
28343 PyObject * obj5 = 0 ;
28344 PyObject * obj6 = 0 ;
28345 PyObject * obj7 = 0 ;
28346 char * kwnames[] = {
28347 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28348 };
28349
28350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28352 if (!SWIG_IsOK(res1)) {
28353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28354 }
28355 arg1 = reinterpret_cast< wxFontList * >(argp1);
28356 ecode2 = SWIG_AsVal_int(obj1, &val2);
28357 if (!SWIG_IsOK(ecode2)) {
28358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28359 }
28360 arg2 = static_cast< int >(val2);
28361 ecode3 = SWIG_AsVal_int(obj2, &val3);
28362 if (!SWIG_IsOK(ecode3)) {
28363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28364 }
28365 arg3 = static_cast< int >(val3);
28366 ecode4 = SWIG_AsVal_int(obj3, &val4);
28367 if (!SWIG_IsOK(ecode4)) {
28368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28369 }
28370 arg4 = static_cast< int >(val4);
28371 ecode5 = SWIG_AsVal_int(obj4, &val5);
28372 if (!SWIG_IsOK(ecode5)) {
28373 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28374 }
28375 arg5 = static_cast< int >(val5);
28376 if (obj5) {
28377 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28378 if (!SWIG_IsOK(ecode6)) {
28379 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28380 }
28381 arg6 = static_cast< bool >(val6);
28382 }
28383 if (obj6) {
28384 {
28385 arg7 = wxString_in_helper(obj6);
28386 if (arg7 == NULL) SWIG_fail;
28387 temp7 = true;
28388 }
28389 }
28390 if (obj7) {
28391 ecode8 = SWIG_AsVal_int(obj7, &val8);
28392 if (!SWIG_IsOK(ecode8)) {
28393 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28394 }
28395 arg8 = static_cast< wxFontEncoding >(val8);
28396 }
28397 {
28398 PyThreadState* __tstate = wxPyBeginAllowThreads();
28399 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28400 wxPyEndAllowThreads(__tstate);
28401 if (PyErr_Occurred()) SWIG_fail;
28402 }
28403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28404 {
28405 if (temp7)
28406 delete arg7;
28407 }
28408 return resultobj;
28409 fail:
28410 {
28411 if (temp7)
28412 delete arg7;
28413 }
28414 return NULL;
28415 }
28416
28417
28418 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28419 PyObject *resultobj = 0;
28420 wxFontList *arg1 = (wxFontList *) 0 ;
28421 wxFont *arg2 = (wxFont *) 0 ;
28422 void *argp1 = 0 ;
28423 int res1 = 0 ;
28424 void *argp2 = 0 ;
28425 int res2 = 0 ;
28426 PyObject * obj0 = 0 ;
28427 PyObject * obj1 = 0 ;
28428 char * kwnames[] = {
28429 (char *) "self",(char *) "font", NULL
28430 };
28431
28432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28434 if (!SWIG_IsOK(res1)) {
28435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28436 }
28437 arg1 = reinterpret_cast< wxFontList * >(argp1);
28438 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28439 if (!SWIG_IsOK(res2)) {
28440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28441 }
28442 arg2 = reinterpret_cast< wxFont * >(argp2);
28443 {
28444 PyThreadState* __tstate = wxPyBeginAllowThreads();
28445 (arg1)->AddFont(arg2);
28446 wxPyEndAllowThreads(__tstate);
28447 if (PyErr_Occurred()) SWIG_fail;
28448 }
28449 resultobj = SWIG_Py_Void();
28450 return resultobj;
28451 fail:
28452 return NULL;
28453 }
28454
28455
28456 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28457 PyObject *resultobj = 0;
28458 wxFontList *arg1 = (wxFontList *) 0 ;
28459 wxFont *arg2 = (wxFont *) 0 ;
28460 void *argp1 = 0 ;
28461 int res1 = 0 ;
28462 void *argp2 = 0 ;
28463 int res2 = 0 ;
28464 PyObject * obj0 = 0 ;
28465 PyObject * obj1 = 0 ;
28466 char * kwnames[] = {
28467 (char *) "self",(char *) "font", NULL
28468 };
28469
28470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28472 if (!SWIG_IsOK(res1)) {
28473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28474 }
28475 arg1 = reinterpret_cast< wxFontList * >(argp1);
28476 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28477 if (!SWIG_IsOK(res2)) {
28478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28479 }
28480 arg2 = reinterpret_cast< wxFont * >(argp2);
28481 {
28482 PyThreadState* __tstate = wxPyBeginAllowThreads();
28483 (arg1)->RemoveFont(arg2);
28484 wxPyEndAllowThreads(__tstate);
28485 if (PyErr_Occurred()) SWIG_fail;
28486 }
28487 resultobj = SWIG_Py_Void();
28488 return resultobj;
28489 fail:
28490 return NULL;
28491 }
28492
28493
28494 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28495 PyObject *obj;
28496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28497 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28498 return SWIG_Py_Void();
28499 }
28500
28501 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28502 PyObject *resultobj = 0;
28503 wxColourDatabase *result = 0 ;
28504
28505 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28506 {
28507 if (!wxPyCheckForApp()) SWIG_fail;
28508 PyThreadState* __tstate = wxPyBeginAllowThreads();
28509 result = (wxColourDatabase *)new wxColourDatabase();
28510 wxPyEndAllowThreads(__tstate);
28511 if (PyErr_Occurred()) SWIG_fail;
28512 }
28513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28514 return resultobj;
28515 fail:
28516 return NULL;
28517 }
28518
28519
28520 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28521 PyObject *resultobj = 0;
28522 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28523 void *argp1 = 0 ;
28524 int res1 = 0 ;
28525 PyObject *swig_obj[1] ;
28526
28527 if (!args) SWIG_fail;
28528 swig_obj[0] = args;
28529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28530 if (!SWIG_IsOK(res1)) {
28531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28532 }
28533 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28534 {
28535 PyThreadState* __tstate = wxPyBeginAllowThreads();
28536 delete arg1;
28537
28538 wxPyEndAllowThreads(__tstate);
28539 if (PyErr_Occurred()) SWIG_fail;
28540 }
28541 resultobj = SWIG_Py_Void();
28542 return resultobj;
28543 fail:
28544 return NULL;
28545 }
28546
28547
28548 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28549 PyObject *resultobj = 0;
28550 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28551 wxString *arg2 = 0 ;
28552 wxColour result;
28553 void *argp1 = 0 ;
28554 int res1 = 0 ;
28555 bool temp2 = false ;
28556 PyObject * obj0 = 0 ;
28557 PyObject * obj1 = 0 ;
28558 char * kwnames[] = {
28559 (char *) "self",(char *) "name", NULL
28560 };
28561
28562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28564 if (!SWIG_IsOK(res1)) {
28565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28566 }
28567 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28568 {
28569 arg2 = wxString_in_helper(obj1);
28570 if (arg2 == NULL) SWIG_fail;
28571 temp2 = true;
28572 }
28573 {
28574 PyThreadState* __tstate = wxPyBeginAllowThreads();
28575 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28576 wxPyEndAllowThreads(__tstate);
28577 if (PyErr_Occurred()) SWIG_fail;
28578 }
28579 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28580 {
28581 if (temp2)
28582 delete arg2;
28583 }
28584 return resultobj;
28585 fail:
28586 {
28587 if (temp2)
28588 delete arg2;
28589 }
28590 return NULL;
28591 }
28592
28593
28594 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28595 PyObject *resultobj = 0;
28596 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28597 wxColour *arg2 = 0 ;
28598 wxString result;
28599 void *argp1 = 0 ;
28600 int res1 = 0 ;
28601 wxColour temp2 ;
28602 PyObject * obj0 = 0 ;
28603 PyObject * obj1 = 0 ;
28604 char * kwnames[] = {
28605 (char *) "self",(char *) "colour", NULL
28606 };
28607
28608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28610 if (!SWIG_IsOK(res1)) {
28611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28612 }
28613 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28614 {
28615 arg2 = &temp2;
28616 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28617 }
28618 {
28619 PyThreadState* __tstate = wxPyBeginAllowThreads();
28620 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28621 wxPyEndAllowThreads(__tstate);
28622 if (PyErr_Occurred()) SWIG_fail;
28623 }
28624 {
28625 #if wxUSE_UNICODE
28626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28627 #else
28628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28629 #endif
28630 }
28631 return resultobj;
28632 fail:
28633 return NULL;
28634 }
28635
28636
28637 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28638 PyObject *resultobj = 0;
28639 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28640 wxString *arg2 = 0 ;
28641 wxColour *arg3 = 0 ;
28642 void *argp1 = 0 ;
28643 int res1 = 0 ;
28644 bool temp2 = false ;
28645 wxColour temp3 ;
28646 PyObject * obj0 = 0 ;
28647 PyObject * obj1 = 0 ;
28648 PyObject * obj2 = 0 ;
28649 char * kwnames[] = {
28650 (char *) "self",(char *) "name",(char *) "colour", NULL
28651 };
28652
28653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28655 if (!SWIG_IsOK(res1)) {
28656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28657 }
28658 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28659 {
28660 arg2 = wxString_in_helper(obj1);
28661 if (arg2 == NULL) SWIG_fail;
28662 temp2 = true;
28663 }
28664 {
28665 arg3 = &temp3;
28666 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28667 }
28668 {
28669 PyThreadState* __tstate = wxPyBeginAllowThreads();
28670 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28671 wxPyEndAllowThreads(__tstate);
28672 if (PyErr_Occurred()) SWIG_fail;
28673 }
28674 resultobj = SWIG_Py_Void();
28675 {
28676 if (temp2)
28677 delete arg2;
28678 }
28679 return resultobj;
28680 fail:
28681 {
28682 if (temp2)
28683 delete arg2;
28684 }
28685 return NULL;
28686 }
28687
28688
28689 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28690 PyObject *resultobj = 0;
28691 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28692 wxString *arg2 = 0 ;
28693 int arg3 ;
28694 int arg4 ;
28695 int arg5 ;
28696 void *argp1 = 0 ;
28697 int res1 = 0 ;
28698 bool temp2 = false ;
28699 int val3 ;
28700 int ecode3 = 0 ;
28701 int val4 ;
28702 int ecode4 = 0 ;
28703 int val5 ;
28704 int ecode5 = 0 ;
28705 PyObject * obj0 = 0 ;
28706 PyObject * obj1 = 0 ;
28707 PyObject * obj2 = 0 ;
28708 PyObject * obj3 = 0 ;
28709 PyObject * obj4 = 0 ;
28710 char * kwnames[] = {
28711 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
28712 };
28713
28714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28716 if (!SWIG_IsOK(res1)) {
28717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28718 }
28719 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28720 {
28721 arg2 = wxString_in_helper(obj1);
28722 if (arg2 == NULL) SWIG_fail;
28723 temp2 = true;
28724 }
28725 ecode3 = SWIG_AsVal_int(obj2, &val3);
28726 if (!SWIG_IsOK(ecode3)) {
28727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
28728 }
28729 arg3 = static_cast< int >(val3);
28730 ecode4 = SWIG_AsVal_int(obj3, &val4);
28731 if (!SWIG_IsOK(ecode4)) {
28732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
28733 }
28734 arg4 = static_cast< int >(val4);
28735 ecode5 = SWIG_AsVal_int(obj4, &val5);
28736 if (!SWIG_IsOK(ecode5)) {
28737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
28738 }
28739 arg5 = static_cast< int >(val5);
28740 {
28741 PyThreadState* __tstate = wxPyBeginAllowThreads();
28742 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
28743 wxPyEndAllowThreads(__tstate);
28744 if (PyErr_Occurred()) SWIG_fail;
28745 }
28746 resultobj = SWIG_Py_Void();
28747 {
28748 if (temp2)
28749 delete arg2;
28750 }
28751 return resultobj;
28752 fail:
28753 {
28754 if (temp2)
28755 delete arg2;
28756 }
28757 return NULL;
28758 }
28759
28760
28761 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28762 PyObject *obj;
28763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28764 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28765 return SWIG_Py_Void();
28766 }
28767
28768 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28769 return SWIG_Python_InitShadowInstance(args);
28770 }
28771
28772 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28773 PyObject *resultobj = 0;
28774 wxFontList *result = 0 ;
28775
28776 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
28777 {
28778 PyThreadState* __tstate = wxPyBeginAllowThreads();
28779 result = (wxFontList *)_wxPyInitTheFontList();
28780 wxPyEndAllowThreads(__tstate);
28781 if (PyErr_Occurred()) SWIG_fail;
28782 }
28783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
28784 return resultobj;
28785 fail:
28786 return NULL;
28787 }
28788
28789
28790 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28791 PyObject *resultobj = 0;
28792 wxPenList *result = 0 ;
28793
28794 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
28795 {
28796 PyThreadState* __tstate = wxPyBeginAllowThreads();
28797 result = (wxPenList *)_wxPyInitThePenList();
28798 wxPyEndAllowThreads(__tstate);
28799 if (PyErr_Occurred()) SWIG_fail;
28800 }
28801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
28802 return resultobj;
28803 fail:
28804 return NULL;
28805 }
28806
28807
28808 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28809 PyObject *resultobj = 0;
28810 wxBrushList *result = 0 ;
28811
28812 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28813 {
28814 PyThreadState* __tstate = wxPyBeginAllowThreads();
28815 result = (wxBrushList *)_wxPyInitTheBrushList();
28816 wxPyEndAllowThreads(__tstate);
28817 if (PyErr_Occurred()) SWIG_fail;
28818 }
28819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28820 return resultobj;
28821 fail:
28822 return NULL;
28823 }
28824
28825
28826 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28827 PyObject *resultobj = 0;
28828 wxColourDatabase *result = 0 ;
28829
28830 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28831 {
28832 PyThreadState* __tstate = wxPyBeginAllowThreads();
28833 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28834 wxPyEndAllowThreads(__tstate);
28835 if (PyErr_Occurred()) SWIG_fail;
28836 }
28837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28838 return resultobj;
28839 fail:
28840 return NULL;
28841 }
28842
28843
28844 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28845 PyObject *resultobj = 0;
28846 wxEffects *result = 0 ;
28847
28848 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28849 {
28850 PyThreadState* __tstate = wxPyBeginAllowThreads();
28851 result = (wxEffects *)new wxEffects();
28852 wxPyEndAllowThreads(__tstate);
28853 if (PyErr_Occurred()) SWIG_fail;
28854 }
28855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28856 return resultobj;
28857 fail:
28858 return NULL;
28859 }
28860
28861
28862 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28863 PyObject *resultobj = 0;
28864 wxEffects *arg1 = (wxEffects *) 0 ;
28865 wxColour result;
28866 void *argp1 = 0 ;
28867 int res1 = 0 ;
28868 PyObject *swig_obj[1] ;
28869
28870 if (!args) SWIG_fail;
28871 swig_obj[0] = args;
28872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28873 if (!SWIG_IsOK(res1)) {
28874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28875 }
28876 arg1 = reinterpret_cast< wxEffects * >(argp1);
28877 {
28878 PyThreadState* __tstate = wxPyBeginAllowThreads();
28879 result = ((wxEffects const *)arg1)->GetHighlightColour();
28880 wxPyEndAllowThreads(__tstate);
28881 if (PyErr_Occurred()) SWIG_fail;
28882 }
28883 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28884 return resultobj;
28885 fail:
28886 return NULL;
28887 }
28888
28889
28890 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28891 PyObject *resultobj = 0;
28892 wxEffects *arg1 = (wxEffects *) 0 ;
28893 wxColour result;
28894 void *argp1 = 0 ;
28895 int res1 = 0 ;
28896 PyObject *swig_obj[1] ;
28897
28898 if (!args) SWIG_fail;
28899 swig_obj[0] = args;
28900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28901 if (!SWIG_IsOK(res1)) {
28902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28903 }
28904 arg1 = reinterpret_cast< wxEffects * >(argp1);
28905 {
28906 PyThreadState* __tstate = wxPyBeginAllowThreads();
28907 result = ((wxEffects const *)arg1)->GetLightShadow();
28908 wxPyEndAllowThreads(__tstate);
28909 if (PyErr_Occurred()) SWIG_fail;
28910 }
28911 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28912 return resultobj;
28913 fail:
28914 return NULL;
28915 }
28916
28917
28918 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28919 PyObject *resultobj = 0;
28920 wxEffects *arg1 = (wxEffects *) 0 ;
28921 wxColour result;
28922 void *argp1 = 0 ;
28923 int res1 = 0 ;
28924 PyObject *swig_obj[1] ;
28925
28926 if (!args) SWIG_fail;
28927 swig_obj[0] = args;
28928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28929 if (!SWIG_IsOK(res1)) {
28930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28931 }
28932 arg1 = reinterpret_cast< wxEffects * >(argp1);
28933 {
28934 PyThreadState* __tstate = wxPyBeginAllowThreads();
28935 result = ((wxEffects const *)arg1)->GetFaceColour();
28936 wxPyEndAllowThreads(__tstate);
28937 if (PyErr_Occurred()) SWIG_fail;
28938 }
28939 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28940 return resultobj;
28941 fail:
28942 return NULL;
28943 }
28944
28945
28946 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28947 PyObject *resultobj = 0;
28948 wxEffects *arg1 = (wxEffects *) 0 ;
28949 wxColour result;
28950 void *argp1 = 0 ;
28951 int res1 = 0 ;
28952 PyObject *swig_obj[1] ;
28953
28954 if (!args) SWIG_fail;
28955 swig_obj[0] = args;
28956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28957 if (!SWIG_IsOK(res1)) {
28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28959 }
28960 arg1 = reinterpret_cast< wxEffects * >(argp1);
28961 {
28962 PyThreadState* __tstate = wxPyBeginAllowThreads();
28963 result = ((wxEffects const *)arg1)->GetMediumShadow();
28964 wxPyEndAllowThreads(__tstate);
28965 if (PyErr_Occurred()) SWIG_fail;
28966 }
28967 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28968 return resultobj;
28969 fail:
28970 return NULL;
28971 }
28972
28973
28974 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28975 PyObject *resultobj = 0;
28976 wxEffects *arg1 = (wxEffects *) 0 ;
28977 wxColour result;
28978 void *argp1 = 0 ;
28979 int res1 = 0 ;
28980 PyObject *swig_obj[1] ;
28981
28982 if (!args) SWIG_fail;
28983 swig_obj[0] = args;
28984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28985 if (!SWIG_IsOK(res1)) {
28986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28987 }
28988 arg1 = reinterpret_cast< wxEffects * >(argp1);
28989 {
28990 PyThreadState* __tstate = wxPyBeginAllowThreads();
28991 result = ((wxEffects const *)arg1)->GetDarkShadow();
28992 wxPyEndAllowThreads(__tstate);
28993 if (PyErr_Occurred()) SWIG_fail;
28994 }
28995 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28996 return resultobj;
28997 fail:
28998 return NULL;
28999 }
29000
29001
29002 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29003 PyObject *resultobj = 0;
29004 wxEffects *arg1 = (wxEffects *) 0 ;
29005 wxColour *arg2 = 0 ;
29006 void *argp1 = 0 ;
29007 int res1 = 0 ;
29008 wxColour temp2 ;
29009 PyObject * obj0 = 0 ;
29010 PyObject * obj1 = 0 ;
29011 char * kwnames[] = {
29012 (char *) "self",(char *) "c", NULL
29013 };
29014
29015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29017 if (!SWIG_IsOK(res1)) {
29018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29019 }
29020 arg1 = reinterpret_cast< wxEffects * >(argp1);
29021 {
29022 arg2 = &temp2;
29023 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29024 }
29025 {
29026 PyThreadState* __tstate = wxPyBeginAllowThreads();
29027 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29028 wxPyEndAllowThreads(__tstate);
29029 if (PyErr_Occurred()) SWIG_fail;
29030 }
29031 resultobj = SWIG_Py_Void();
29032 return resultobj;
29033 fail:
29034 return NULL;
29035 }
29036
29037
29038 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29039 PyObject *resultobj = 0;
29040 wxEffects *arg1 = (wxEffects *) 0 ;
29041 wxColour *arg2 = 0 ;
29042 void *argp1 = 0 ;
29043 int res1 = 0 ;
29044 wxColour temp2 ;
29045 PyObject * obj0 = 0 ;
29046 PyObject * obj1 = 0 ;
29047 char * kwnames[] = {
29048 (char *) "self",(char *) "c", NULL
29049 };
29050
29051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29053 if (!SWIG_IsOK(res1)) {
29054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29055 }
29056 arg1 = reinterpret_cast< wxEffects * >(argp1);
29057 {
29058 arg2 = &temp2;
29059 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29060 }
29061 {
29062 PyThreadState* __tstate = wxPyBeginAllowThreads();
29063 (arg1)->SetLightShadow((wxColour const &)*arg2);
29064 wxPyEndAllowThreads(__tstate);
29065 if (PyErr_Occurred()) SWIG_fail;
29066 }
29067 resultobj = SWIG_Py_Void();
29068 return resultobj;
29069 fail:
29070 return NULL;
29071 }
29072
29073
29074 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29075 PyObject *resultobj = 0;
29076 wxEffects *arg1 = (wxEffects *) 0 ;
29077 wxColour *arg2 = 0 ;
29078 void *argp1 = 0 ;
29079 int res1 = 0 ;
29080 wxColour temp2 ;
29081 PyObject * obj0 = 0 ;
29082 PyObject * obj1 = 0 ;
29083 char * kwnames[] = {
29084 (char *) "self",(char *) "c", NULL
29085 };
29086
29087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29089 if (!SWIG_IsOK(res1)) {
29090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29091 }
29092 arg1 = reinterpret_cast< wxEffects * >(argp1);
29093 {
29094 arg2 = &temp2;
29095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29096 }
29097 {
29098 PyThreadState* __tstate = wxPyBeginAllowThreads();
29099 (arg1)->SetFaceColour((wxColour const &)*arg2);
29100 wxPyEndAllowThreads(__tstate);
29101 if (PyErr_Occurred()) SWIG_fail;
29102 }
29103 resultobj = SWIG_Py_Void();
29104 return resultobj;
29105 fail:
29106 return NULL;
29107 }
29108
29109
29110 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29111 PyObject *resultobj = 0;
29112 wxEffects *arg1 = (wxEffects *) 0 ;
29113 wxColour *arg2 = 0 ;
29114 void *argp1 = 0 ;
29115 int res1 = 0 ;
29116 wxColour temp2 ;
29117 PyObject * obj0 = 0 ;
29118 PyObject * obj1 = 0 ;
29119 char * kwnames[] = {
29120 (char *) "self",(char *) "c", NULL
29121 };
29122
29123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29125 if (!SWIG_IsOK(res1)) {
29126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29127 }
29128 arg1 = reinterpret_cast< wxEffects * >(argp1);
29129 {
29130 arg2 = &temp2;
29131 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29132 }
29133 {
29134 PyThreadState* __tstate = wxPyBeginAllowThreads();
29135 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29136 wxPyEndAllowThreads(__tstate);
29137 if (PyErr_Occurred()) SWIG_fail;
29138 }
29139 resultobj = SWIG_Py_Void();
29140 return resultobj;
29141 fail:
29142 return NULL;
29143 }
29144
29145
29146 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29147 PyObject *resultobj = 0;
29148 wxEffects *arg1 = (wxEffects *) 0 ;
29149 wxColour *arg2 = 0 ;
29150 void *argp1 = 0 ;
29151 int res1 = 0 ;
29152 wxColour temp2 ;
29153 PyObject * obj0 = 0 ;
29154 PyObject * obj1 = 0 ;
29155 char * kwnames[] = {
29156 (char *) "self",(char *) "c", NULL
29157 };
29158
29159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29161 if (!SWIG_IsOK(res1)) {
29162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29163 }
29164 arg1 = reinterpret_cast< wxEffects * >(argp1);
29165 {
29166 arg2 = &temp2;
29167 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29168 }
29169 {
29170 PyThreadState* __tstate = wxPyBeginAllowThreads();
29171 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29172 wxPyEndAllowThreads(__tstate);
29173 if (PyErr_Occurred()) SWIG_fail;
29174 }
29175 resultobj = SWIG_Py_Void();
29176 return resultobj;
29177 fail:
29178 return NULL;
29179 }
29180
29181
29182 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29183 PyObject *resultobj = 0;
29184 wxEffects *arg1 = (wxEffects *) 0 ;
29185 wxColour *arg2 = 0 ;
29186 wxColour *arg3 = 0 ;
29187 wxColour *arg4 = 0 ;
29188 wxColour *arg5 = 0 ;
29189 wxColour *arg6 = 0 ;
29190 void *argp1 = 0 ;
29191 int res1 = 0 ;
29192 wxColour temp2 ;
29193 wxColour temp3 ;
29194 wxColour temp4 ;
29195 wxColour temp5 ;
29196 wxColour temp6 ;
29197 PyObject * obj0 = 0 ;
29198 PyObject * obj1 = 0 ;
29199 PyObject * obj2 = 0 ;
29200 PyObject * obj3 = 0 ;
29201 PyObject * obj4 = 0 ;
29202 PyObject * obj5 = 0 ;
29203 char * kwnames[] = {
29204 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29205 };
29206
29207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29209 if (!SWIG_IsOK(res1)) {
29210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29211 }
29212 arg1 = reinterpret_cast< wxEffects * >(argp1);
29213 {
29214 arg2 = &temp2;
29215 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29216 }
29217 {
29218 arg3 = &temp3;
29219 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29220 }
29221 {
29222 arg4 = &temp4;
29223 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29224 }
29225 {
29226 arg5 = &temp5;
29227 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29228 }
29229 {
29230 arg6 = &temp6;
29231 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29232 }
29233 {
29234 PyThreadState* __tstate = wxPyBeginAllowThreads();
29235 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29236 wxPyEndAllowThreads(__tstate);
29237 if (PyErr_Occurred()) SWIG_fail;
29238 }
29239 resultobj = SWIG_Py_Void();
29240 return resultobj;
29241 fail:
29242 return NULL;
29243 }
29244
29245
29246 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29247 PyObject *resultobj = 0;
29248 wxEffects *arg1 = (wxEffects *) 0 ;
29249 wxDC *arg2 = 0 ;
29250 wxRect *arg3 = 0 ;
29251 int arg4 = (int) 1 ;
29252 void *argp1 = 0 ;
29253 int res1 = 0 ;
29254 void *argp2 = 0 ;
29255 int res2 = 0 ;
29256 wxRect temp3 ;
29257 int val4 ;
29258 int ecode4 = 0 ;
29259 PyObject * obj0 = 0 ;
29260 PyObject * obj1 = 0 ;
29261 PyObject * obj2 = 0 ;
29262 PyObject * obj3 = 0 ;
29263 char * kwnames[] = {
29264 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29265 };
29266
29267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29269 if (!SWIG_IsOK(res1)) {
29270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29271 }
29272 arg1 = reinterpret_cast< wxEffects * >(argp1);
29273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29274 if (!SWIG_IsOK(res2)) {
29275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29276 }
29277 if (!argp2) {
29278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29279 }
29280 arg2 = reinterpret_cast< wxDC * >(argp2);
29281 {
29282 arg3 = &temp3;
29283 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29284 }
29285 if (obj3) {
29286 ecode4 = SWIG_AsVal_int(obj3, &val4);
29287 if (!SWIG_IsOK(ecode4)) {
29288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29289 }
29290 arg4 = static_cast< int >(val4);
29291 }
29292 {
29293 PyThreadState* __tstate = wxPyBeginAllowThreads();
29294 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29295 wxPyEndAllowThreads(__tstate);
29296 if (PyErr_Occurred()) SWIG_fail;
29297 }
29298 resultobj = SWIG_Py_Void();
29299 return resultobj;
29300 fail:
29301 return NULL;
29302 }
29303
29304
29305 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29306 PyObject *resultobj = 0;
29307 wxEffects *arg1 = (wxEffects *) 0 ;
29308 wxRect *arg2 = 0 ;
29309 wxDC *arg3 = 0 ;
29310 wxBitmap *arg4 = 0 ;
29311 bool result;
29312 void *argp1 = 0 ;
29313 int res1 = 0 ;
29314 wxRect temp2 ;
29315 void *argp3 = 0 ;
29316 int res3 = 0 ;
29317 void *argp4 = 0 ;
29318 int res4 = 0 ;
29319 PyObject * obj0 = 0 ;
29320 PyObject * obj1 = 0 ;
29321 PyObject * obj2 = 0 ;
29322 PyObject * obj3 = 0 ;
29323 char * kwnames[] = {
29324 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29325 };
29326
29327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29329 if (!SWIG_IsOK(res1)) {
29330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29331 }
29332 arg1 = reinterpret_cast< wxEffects * >(argp1);
29333 {
29334 arg2 = &temp2;
29335 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29336 }
29337 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29338 if (!SWIG_IsOK(res3)) {
29339 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29340 }
29341 if (!argp3) {
29342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29343 }
29344 arg3 = reinterpret_cast< wxDC * >(argp3);
29345 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29346 if (!SWIG_IsOK(res4)) {
29347 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29348 }
29349 if (!argp4) {
29350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29351 }
29352 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29353 {
29354 PyThreadState* __tstate = wxPyBeginAllowThreads();
29355 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29356 wxPyEndAllowThreads(__tstate);
29357 if (PyErr_Occurred()) SWIG_fail;
29358 }
29359 {
29360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29361 }
29362 return resultobj;
29363 fail:
29364 return NULL;
29365 }
29366
29367
29368 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29369 PyObject *obj;
29370 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29371 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29372 return SWIG_Py_Void();
29373 }
29374
29375 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29376 return SWIG_Python_InitShadowInstance(args);
29377 }
29378
29379 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29380 PyObject *resultobj = 0;
29381 int arg1 ;
29382 int arg2 ;
29383 bool arg3 ;
29384 wxSplitterRenderParams *result = 0 ;
29385 int val1 ;
29386 int ecode1 = 0 ;
29387 int val2 ;
29388 int ecode2 = 0 ;
29389 bool val3 ;
29390 int ecode3 = 0 ;
29391 PyObject * obj0 = 0 ;
29392 PyObject * obj1 = 0 ;
29393 PyObject * obj2 = 0 ;
29394 char * kwnames[] = {
29395 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29396 };
29397
29398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29399 ecode1 = SWIG_AsVal_int(obj0, &val1);
29400 if (!SWIG_IsOK(ecode1)) {
29401 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29402 }
29403 arg1 = static_cast< int >(val1);
29404 ecode2 = SWIG_AsVal_int(obj1, &val2);
29405 if (!SWIG_IsOK(ecode2)) {
29406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29407 }
29408 arg2 = static_cast< int >(val2);
29409 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29410 if (!SWIG_IsOK(ecode3)) {
29411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29412 }
29413 arg3 = static_cast< bool >(val3);
29414 {
29415 PyThreadState* __tstate = wxPyBeginAllowThreads();
29416 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29417 wxPyEndAllowThreads(__tstate);
29418 if (PyErr_Occurred()) SWIG_fail;
29419 }
29420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29421 return resultobj;
29422 fail:
29423 return NULL;
29424 }
29425
29426
29427 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29428 PyObject *resultobj = 0;
29429 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29430 void *argp1 = 0 ;
29431 int res1 = 0 ;
29432 PyObject *swig_obj[1] ;
29433
29434 if (!args) SWIG_fail;
29435 swig_obj[0] = args;
29436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29437 if (!SWIG_IsOK(res1)) {
29438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29439 }
29440 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29441 {
29442 PyThreadState* __tstate = wxPyBeginAllowThreads();
29443 delete arg1;
29444
29445 wxPyEndAllowThreads(__tstate);
29446 if (PyErr_Occurred()) SWIG_fail;
29447 }
29448 resultobj = SWIG_Py_Void();
29449 return resultobj;
29450 fail:
29451 return NULL;
29452 }
29453
29454
29455 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29456 PyObject *resultobj = 0;
29457 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29458 int result;
29459 void *argp1 = 0 ;
29460 int res1 = 0 ;
29461 PyObject *swig_obj[1] ;
29462
29463 if (!args) SWIG_fail;
29464 swig_obj[0] = args;
29465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29466 if (!SWIG_IsOK(res1)) {
29467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29468 }
29469 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29470 result = (int)(int) ((arg1)->widthSash);
29471 resultobj = SWIG_From_int(static_cast< int >(result));
29472 return resultobj;
29473 fail:
29474 return NULL;
29475 }
29476
29477
29478 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29479 PyObject *resultobj = 0;
29480 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29481 int result;
29482 void *argp1 = 0 ;
29483 int res1 = 0 ;
29484 PyObject *swig_obj[1] ;
29485
29486 if (!args) SWIG_fail;
29487 swig_obj[0] = args;
29488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29489 if (!SWIG_IsOK(res1)) {
29490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29491 }
29492 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29493 result = (int)(int) ((arg1)->border);
29494 resultobj = SWIG_From_int(static_cast< int >(result));
29495 return resultobj;
29496 fail:
29497 return NULL;
29498 }
29499
29500
29501 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29502 PyObject *resultobj = 0;
29503 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29504 bool result;
29505 void *argp1 = 0 ;
29506 int res1 = 0 ;
29507 PyObject *swig_obj[1] ;
29508
29509 if (!args) SWIG_fail;
29510 swig_obj[0] = args;
29511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29512 if (!SWIG_IsOK(res1)) {
29513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29514 }
29515 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29516 result = (bool)(bool) ((arg1)->isHotSensitive);
29517 resultobj = SWIG_From_bool(static_cast< bool >(result));
29518 return resultobj;
29519 fail:
29520 return NULL;
29521 }
29522
29523
29524 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29525 PyObject *obj;
29526 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29527 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29528 return SWIG_Py_Void();
29529 }
29530
29531 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29532 return SWIG_Python_InitShadowInstance(args);
29533 }
29534
29535 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29536 PyObject *resultobj = 0;
29537 wxHeaderButtonParams *result = 0 ;
29538
29539 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29540 {
29541 PyThreadState* __tstate = wxPyBeginAllowThreads();
29542 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29543 wxPyEndAllowThreads(__tstate);
29544 if (PyErr_Occurred()) SWIG_fail;
29545 }
29546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29547 return resultobj;
29548 fail:
29549 return NULL;
29550 }
29551
29552
29553 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29554 PyObject *resultobj = 0;
29555 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29556 void *argp1 = 0 ;
29557 int res1 = 0 ;
29558 PyObject *swig_obj[1] ;
29559
29560 if (!args) SWIG_fail;
29561 swig_obj[0] = args;
29562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29563 if (!SWIG_IsOK(res1)) {
29564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29565 }
29566 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29567 {
29568 PyThreadState* __tstate = wxPyBeginAllowThreads();
29569 delete arg1;
29570
29571 wxPyEndAllowThreads(__tstate);
29572 if (PyErr_Occurred()) SWIG_fail;
29573 }
29574 resultobj = SWIG_Py_Void();
29575 return resultobj;
29576 fail:
29577 return NULL;
29578 }
29579
29580
29581 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29582 PyObject *resultobj = 0;
29583 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29584 wxColour *arg2 = (wxColour *) 0 ;
29585 void *argp1 = 0 ;
29586 int res1 = 0 ;
29587 wxColour temp2 ;
29588 PyObject *swig_obj[2] ;
29589
29590 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29592 if (!SWIG_IsOK(res1)) {
29593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29594 }
29595 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29596 {
29597 arg2 = &temp2;
29598 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29599 }
29600 if (arg1) (arg1)->m_arrowColour = *arg2;
29601
29602 resultobj = SWIG_Py_Void();
29603 return resultobj;
29604 fail:
29605 return NULL;
29606 }
29607
29608
29609 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29610 PyObject *resultobj = 0;
29611 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29612 wxColour *result = 0 ;
29613 void *argp1 = 0 ;
29614 int res1 = 0 ;
29615 PyObject *swig_obj[1] ;
29616
29617 if (!args) SWIG_fail;
29618 swig_obj[0] = args;
29619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29620 if (!SWIG_IsOK(res1)) {
29621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29622 }
29623 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29624 result = (wxColour *)& ((arg1)->m_arrowColour);
29625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29626 return resultobj;
29627 fail:
29628 return NULL;
29629 }
29630
29631
29632 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29633 PyObject *resultobj = 0;
29634 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29635 wxColour *arg2 = (wxColour *) 0 ;
29636 void *argp1 = 0 ;
29637 int res1 = 0 ;
29638 wxColour temp2 ;
29639 PyObject *swig_obj[2] ;
29640
29641 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29643 if (!SWIG_IsOK(res1)) {
29644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29645 }
29646 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29647 {
29648 arg2 = &temp2;
29649 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29650 }
29651 if (arg1) (arg1)->m_selectionColour = *arg2;
29652
29653 resultobj = SWIG_Py_Void();
29654 return resultobj;
29655 fail:
29656 return NULL;
29657 }
29658
29659
29660 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29661 PyObject *resultobj = 0;
29662 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29663 wxColour *result = 0 ;
29664 void *argp1 = 0 ;
29665 int res1 = 0 ;
29666 PyObject *swig_obj[1] ;
29667
29668 if (!args) SWIG_fail;
29669 swig_obj[0] = args;
29670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29671 if (!SWIG_IsOK(res1)) {
29672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29673 }
29674 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29675 result = (wxColour *)& ((arg1)->m_selectionColour);
29676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29677 return resultobj;
29678 fail:
29679 return NULL;
29680 }
29681
29682
29683 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29684 PyObject *resultobj = 0;
29685 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29686 wxString *arg2 = (wxString *) 0 ;
29687 void *argp1 = 0 ;
29688 int res1 = 0 ;
29689 bool temp2 = false ;
29690 PyObject *swig_obj[2] ;
29691
29692 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29694 if (!SWIG_IsOK(res1)) {
29695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29696 }
29697 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29698 {
29699 arg2 = wxString_in_helper(swig_obj[1]);
29700 if (arg2 == NULL) SWIG_fail;
29701 temp2 = true;
29702 }
29703 if (arg1) (arg1)->m_labelText = *arg2;
29704
29705 resultobj = SWIG_Py_Void();
29706 {
29707 if (temp2)
29708 delete arg2;
29709 }
29710 return resultobj;
29711 fail:
29712 {
29713 if (temp2)
29714 delete arg2;
29715 }
29716 return NULL;
29717 }
29718
29719
29720 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29721 PyObject *resultobj = 0;
29722 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29723 wxString *result = 0 ;
29724 void *argp1 = 0 ;
29725 int res1 = 0 ;
29726 PyObject *swig_obj[1] ;
29727
29728 if (!args) SWIG_fail;
29729 swig_obj[0] = args;
29730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29731 if (!SWIG_IsOK(res1)) {
29732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29733 }
29734 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29735 result = (wxString *)& ((arg1)->m_labelText);
29736 {
29737 #if wxUSE_UNICODE
29738 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29739 #else
29740 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29741 #endif
29742 }
29743 return resultobj;
29744 fail:
29745 return NULL;
29746 }
29747
29748
29749 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29750 PyObject *resultobj = 0;
29751 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29752 wxFont *arg2 = (wxFont *) 0 ;
29753 void *argp1 = 0 ;
29754 int res1 = 0 ;
29755 void *argp2 = 0 ;
29756 int res2 = 0 ;
29757 PyObject *swig_obj[2] ;
29758
29759 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29761 if (!SWIG_IsOK(res1)) {
29762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29763 }
29764 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29765 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29766 if (!SWIG_IsOK(res2)) {
29767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29768 }
29769 arg2 = reinterpret_cast< wxFont * >(argp2);
29770 if (arg1) (arg1)->m_labelFont = *arg2;
29771
29772 resultobj = SWIG_Py_Void();
29773 return resultobj;
29774 fail:
29775 return NULL;
29776 }
29777
29778
29779 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29780 PyObject *resultobj = 0;
29781 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29782 wxFont *result = 0 ;
29783 void *argp1 = 0 ;
29784 int res1 = 0 ;
29785 PyObject *swig_obj[1] ;
29786
29787 if (!args) SWIG_fail;
29788 swig_obj[0] = args;
29789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29790 if (!SWIG_IsOK(res1)) {
29791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29792 }
29793 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29794 result = (wxFont *)& ((arg1)->m_labelFont);
29795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29796 return resultobj;
29797 fail:
29798 return NULL;
29799 }
29800
29801
29802 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29803 PyObject *resultobj = 0;
29804 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29805 wxColour *arg2 = (wxColour *) 0 ;
29806 void *argp1 = 0 ;
29807 int res1 = 0 ;
29808 wxColour temp2 ;
29809 PyObject *swig_obj[2] ;
29810
29811 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29813 if (!SWIG_IsOK(res1)) {
29814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29815 }
29816 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29817 {
29818 arg2 = &temp2;
29819 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29820 }
29821 if (arg1) (arg1)->m_labelColour = *arg2;
29822
29823 resultobj = SWIG_Py_Void();
29824 return resultobj;
29825 fail:
29826 return NULL;
29827 }
29828
29829
29830 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29831 PyObject *resultobj = 0;
29832 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29833 wxColour *result = 0 ;
29834 void *argp1 = 0 ;
29835 int res1 = 0 ;
29836 PyObject *swig_obj[1] ;
29837
29838 if (!args) SWIG_fail;
29839 swig_obj[0] = args;
29840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29841 if (!SWIG_IsOK(res1)) {
29842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29843 }
29844 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29845 result = (wxColour *)& ((arg1)->m_labelColour);
29846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29847 return resultobj;
29848 fail:
29849 return NULL;
29850 }
29851
29852
29853 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29854 PyObject *resultobj = 0;
29855 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29856 wxBitmap *arg2 = (wxBitmap *) 0 ;
29857 void *argp1 = 0 ;
29858 int res1 = 0 ;
29859 void *argp2 = 0 ;
29860 int res2 = 0 ;
29861 PyObject *swig_obj[2] ;
29862
29863 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29865 if (!SWIG_IsOK(res1)) {
29866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29867 }
29868 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29869 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29870 if (!SWIG_IsOK(res2)) {
29871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29872 }
29873 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29874 if (arg1) (arg1)->m_labelBitmap = *arg2;
29875
29876 resultobj = SWIG_Py_Void();
29877 return resultobj;
29878 fail:
29879 return NULL;
29880 }
29881
29882
29883 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29884 PyObject *resultobj = 0;
29885 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29886 wxBitmap *result = 0 ;
29887 void *argp1 = 0 ;
29888 int res1 = 0 ;
29889 PyObject *swig_obj[1] ;
29890
29891 if (!args) SWIG_fail;
29892 swig_obj[0] = args;
29893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29894 if (!SWIG_IsOK(res1)) {
29895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29896 }
29897 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29898 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29900 return resultobj;
29901 fail:
29902 return NULL;
29903 }
29904
29905
29906 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29907 PyObject *resultobj = 0;
29908 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29909 int arg2 ;
29910 void *argp1 = 0 ;
29911 int res1 = 0 ;
29912 int val2 ;
29913 int ecode2 = 0 ;
29914 PyObject *swig_obj[2] ;
29915
29916 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29918 if (!SWIG_IsOK(res1)) {
29919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29920 }
29921 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29922 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29923 if (!SWIG_IsOK(ecode2)) {
29924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29925 }
29926 arg2 = static_cast< int >(val2);
29927 if (arg1) (arg1)->m_labelAlignment = arg2;
29928
29929 resultobj = SWIG_Py_Void();
29930 return resultobj;
29931 fail:
29932 return NULL;
29933 }
29934
29935
29936 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29937 PyObject *resultobj = 0;
29938 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29939 int result;
29940 void *argp1 = 0 ;
29941 int res1 = 0 ;
29942 PyObject *swig_obj[1] ;
29943
29944 if (!args) SWIG_fail;
29945 swig_obj[0] = args;
29946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29947 if (!SWIG_IsOK(res1)) {
29948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29949 }
29950 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29951 result = (int) ((arg1)->m_labelAlignment);
29952 resultobj = SWIG_From_int(static_cast< int >(result));
29953 return resultobj;
29954 fail:
29955 return NULL;
29956 }
29957
29958
29959 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29960 PyObject *obj;
29961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29962 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29963 return SWIG_Py_Void();
29964 }
29965
29966 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29967 return SWIG_Python_InitShadowInstance(args);
29968 }
29969
29970 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29971 PyObject *resultobj = 0;
29972 int arg1 ;
29973 int arg2 ;
29974 wxRendererVersion *result = 0 ;
29975 int val1 ;
29976 int ecode1 = 0 ;
29977 int val2 ;
29978 int ecode2 = 0 ;
29979 PyObject * obj0 = 0 ;
29980 PyObject * obj1 = 0 ;
29981 char * kwnames[] = {
29982 (char *) "version_",(char *) "age_", NULL
29983 };
29984
29985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29986 ecode1 = SWIG_AsVal_int(obj0, &val1);
29987 if (!SWIG_IsOK(ecode1)) {
29988 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29989 }
29990 arg1 = static_cast< int >(val1);
29991 ecode2 = SWIG_AsVal_int(obj1, &val2);
29992 if (!SWIG_IsOK(ecode2)) {
29993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29994 }
29995 arg2 = static_cast< int >(val2);
29996 {
29997 PyThreadState* __tstate = wxPyBeginAllowThreads();
29998 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29999 wxPyEndAllowThreads(__tstate);
30000 if (PyErr_Occurred()) SWIG_fail;
30001 }
30002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30003 return resultobj;
30004 fail:
30005 return NULL;
30006 }
30007
30008
30009 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30010 PyObject *resultobj = 0;
30011 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30012 void *argp1 = 0 ;
30013 int res1 = 0 ;
30014 PyObject *swig_obj[1] ;
30015
30016 if (!args) SWIG_fail;
30017 swig_obj[0] = args;
30018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30019 if (!SWIG_IsOK(res1)) {
30020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30021 }
30022 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30023 {
30024 PyThreadState* __tstate = wxPyBeginAllowThreads();
30025 delete arg1;
30026
30027 wxPyEndAllowThreads(__tstate);
30028 if (PyErr_Occurred()) SWIG_fail;
30029 }
30030 resultobj = SWIG_Py_Void();
30031 return resultobj;
30032 fail:
30033 return NULL;
30034 }
30035
30036
30037 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30038 PyObject *resultobj = 0;
30039 wxRendererVersion *arg1 = 0 ;
30040 bool result;
30041 void *argp1 = 0 ;
30042 int res1 = 0 ;
30043 PyObject * obj0 = 0 ;
30044 char * kwnames[] = {
30045 (char *) "ver", NULL
30046 };
30047
30048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30049 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30050 if (!SWIG_IsOK(res1)) {
30051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30052 }
30053 if (!argp1) {
30054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30055 }
30056 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30057 {
30058 PyThreadState* __tstate = wxPyBeginAllowThreads();
30059 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30060 wxPyEndAllowThreads(__tstate);
30061 if (PyErr_Occurred()) SWIG_fail;
30062 }
30063 {
30064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30065 }
30066 return resultobj;
30067 fail:
30068 return NULL;
30069 }
30070
30071
30072 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30073 PyObject *resultobj = 0;
30074 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30075 int result;
30076 void *argp1 = 0 ;
30077 int res1 = 0 ;
30078 PyObject *swig_obj[1] ;
30079
30080 if (!args) SWIG_fail;
30081 swig_obj[0] = args;
30082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30083 if (!SWIG_IsOK(res1)) {
30084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30085 }
30086 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30087 result = (int)(int) ((arg1)->version);
30088 resultobj = SWIG_From_int(static_cast< int >(result));
30089 return resultobj;
30090 fail:
30091 return NULL;
30092 }
30093
30094
30095 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30096 PyObject *resultobj = 0;
30097 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30098 int result;
30099 void *argp1 = 0 ;
30100 int res1 = 0 ;
30101 PyObject *swig_obj[1] ;
30102
30103 if (!args) SWIG_fail;
30104 swig_obj[0] = args;
30105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30106 if (!SWIG_IsOK(res1)) {
30107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30108 }
30109 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30110 result = (int)(int) ((arg1)->age);
30111 resultobj = SWIG_From_int(static_cast< int >(result));
30112 return resultobj;
30113 fail:
30114 return NULL;
30115 }
30116
30117
30118 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30119 PyObject *obj;
30120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30121 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30122 return SWIG_Py_Void();
30123 }
30124
30125 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30126 return SWIG_Python_InitShadowInstance(args);
30127 }
30128
30129 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30130 PyObject *resultobj = 0;
30131 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30132 wxWindow *arg2 = (wxWindow *) 0 ;
30133 wxDC *arg3 = 0 ;
30134 wxRect *arg4 = 0 ;
30135 int arg5 = (int) 0 ;
30136 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30137 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30138 void *argp1 = 0 ;
30139 int res1 = 0 ;
30140 void *argp2 = 0 ;
30141 int res2 = 0 ;
30142 void *argp3 = 0 ;
30143 int res3 = 0 ;
30144 wxRect temp4 ;
30145 int val5 ;
30146 int ecode5 = 0 ;
30147 int val6 ;
30148 int ecode6 = 0 ;
30149 void *argp7 = 0 ;
30150 int res7 = 0 ;
30151 PyObject * obj0 = 0 ;
30152 PyObject * obj1 = 0 ;
30153 PyObject * obj2 = 0 ;
30154 PyObject * obj3 = 0 ;
30155 PyObject * obj4 = 0 ;
30156 PyObject * obj5 = 0 ;
30157 PyObject * obj6 = 0 ;
30158 char * kwnames[] = {
30159 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30160 };
30161
30162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30164 if (!SWIG_IsOK(res1)) {
30165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30166 }
30167 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30168 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30169 if (!SWIG_IsOK(res2)) {
30170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30171 }
30172 arg2 = reinterpret_cast< wxWindow * >(argp2);
30173 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30174 if (!SWIG_IsOK(res3)) {
30175 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30176 }
30177 if (!argp3) {
30178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30179 }
30180 arg3 = reinterpret_cast< wxDC * >(argp3);
30181 {
30182 arg4 = &temp4;
30183 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30184 }
30185 if (obj4) {
30186 ecode5 = SWIG_AsVal_int(obj4, &val5);
30187 if (!SWIG_IsOK(ecode5)) {
30188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30189 }
30190 arg5 = static_cast< int >(val5);
30191 }
30192 if (obj5) {
30193 ecode6 = SWIG_AsVal_int(obj5, &val6);
30194 if (!SWIG_IsOK(ecode6)) {
30195 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30196 }
30197 arg6 = static_cast< wxHeaderSortIconType >(val6);
30198 }
30199 if (obj6) {
30200 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30201 if (!SWIG_IsOK(res7)) {
30202 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30203 }
30204 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30205 }
30206 {
30207 PyThreadState* __tstate = wxPyBeginAllowThreads();
30208 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30209 wxPyEndAllowThreads(__tstate);
30210 if (PyErr_Occurred()) SWIG_fail;
30211 }
30212 resultobj = SWIG_Py_Void();
30213 return resultobj;
30214 fail:
30215 return NULL;
30216 }
30217
30218
30219 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30220 PyObject *resultobj = 0;
30221 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30222 wxWindow *arg2 = (wxWindow *) 0 ;
30223 wxDC *arg3 = 0 ;
30224 wxRect *arg4 = 0 ;
30225 int arg5 = (int) 0 ;
30226 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30227 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30228 void *argp1 = 0 ;
30229 int res1 = 0 ;
30230 void *argp2 = 0 ;
30231 int res2 = 0 ;
30232 void *argp3 = 0 ;
30233 int res3 = 0 ;
30234 wxRect temp4 ;
30235 int val5 ;
30236 int ecode5 = 0 ;
30237 int val6 ;
30238 int ecode6 = 0 ;
30239 void *argp7 = 0 ;
30240 int res7 = 0 ;
30241 PyObject * obj0 = 0 ;
30242 PyObject * obj1 = 0 ;
30243 PyObject * obj2 = 0 ;
30244 PyObject * obj3 = 0 ;
30245 PyObject * obj4 = 0 ;
30246 PyObject * obj5 = 0 ;
30247 PyObject * obj6 = 0 ;
30248 char * kwnames[] = {
30249 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30250 };
30251
30252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30254 if (!SWIG_IsOK(res1)) {
30255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30256 }
30257 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30258 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30259 if (!SWIG_IsOK(res2)) {
30260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30261 }
30262 arg2 = reinterpret_cast< wxWindow * >(argp2);
30263 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30264 if (!SWIG_IsOK(res3)) {
30265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30266 }
30267 if (!argp3) {
30268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30269 }
30270 arg3 = reinterpret_cast< wxDC * >(argp3);
30271 {
30272 arg4 = &temp4;
30273 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30274 }
30275 if (obj4) {
30276 ecode5 = SWIG_AsVal_int(obj4, &val5);
30277 if (!SWIG_IsOK(ecode5)) {
30278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30279 }
30280 arg5 = static_cast< int >(val5);
30281 }
30282 if (obj5) {
30283 ecode6 = SWIG_AsVal_int(obj5, &val6);
30284 if (!SWIG_IsOK(ecode6)) {
30285 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30286 }
30287 arg6 = static_cast< wxHeaderSortIconType >(val6);
30288 }
30289 if (obj6) {
30290 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30291 if (!SWIG_IsOK(res7)) {
30292 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30293 }
30294 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30295 }
30296 {
30297 PyThreadState* __tstate = wxPyBeginAllowThreads();
30298 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30299 wxPyEndAllowThreads(__tstate);
30300 if (PyErr_Occurred()) SWIG_fail;
30301 }
30302 resultobj = SWIG_Py_Void();
30303 return resultobj;
30304 fail:
30305 return NULL;
30306 }
30307
30308
30309 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30310 PyObject *resultobj = 0;
30311 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30312 wxWindow *arg2 = (wxWindow *) 0 ;
30313 int result;
30314 void *argp1 = 0 ;
30315 int res1 = 0 ;
30316 void *argp2 = 0 ;
30317 int res2 = 0 ;
30318 PyObject * obj0 = 0 ;
30319 PyObject * obj1 = 0 ;
30320 char * kwnames[] = {
30321 (char *) "self",(char *) "win", NULL
30322 };
30323
30324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30326 if (!SWIG_IsOK(res1)) {
30327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30328 }
30329 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30330 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30331 if (!SWIG_IsOK(res2)) {
30332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30333 }
30334 arg2 = reinterpret_cast< wxWindow * >(argp2);
30335 {
30336 PyThreadState* __tstate = wxPyBeginAllowThreads();
30337 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30338 wxPyEndAllowThreads(__tstate);
30339 if (PyErr_Occurred()) SWIG_fail;
30340 }
30341 resultobj = SWIG_From_int(static_cast< int >(result));
30342 return resultobj;
30343 fail:
30344 return NULL;
30345 }
30346
30347
30348 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30349 PyObject *resultobj = 0;
30350 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30351 wxWindow *arg2 = (wxWindow *) 0 ;
30352 wxDC *arg3 = 0 ;
30353 wxRect *arg4 = 0 ;
30354 int arg5 = (int) 0 ;
30355 void *argp1 = 0 ;
30356 int res1 = 0 ;
30357 void *argp2 = 0 ;
30358 int res2 = 0 ;
30359 void *argp3 = 0 ;
30360 int res3 = 0 ;
30361 wxRect temp4 ;
30362 int val5 ;
30363 int ecode5 = 0 ;
30364 PyObject * obj0 = 0 ;
30365 PyObject * obj1 = 0 ;
30366 PyObject * obj2 = 0 ;
30367 PyObject * obj3 = 0 ;
30368 PyObject * obj4 = 0 ;
30369 char * kwnames[] = {
30370 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30371 };
30372
30373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30375 if (!SWIG_IsOK(res1)) {
30376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30377 }
30378 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30380 if (!SWIG_IsOK(res2)) {
30381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30382 }
30383 arg2 = reinterpret_cast< wxWindow * >(argp2);
30384 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30385 if (!SWIG_IsOK(res3)) {
30386 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30387 }
30388 if (!argp3) {
30389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30390 }
30391 arg3 = reinterpret_cast< wxDC * >(argp3);
30392 {
30393 arg4 = &temp4;
30394 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30395 }
30396 if (obj4) {
30397 ecode5 = SWIG_AsVal_int(obj4, &val5);
30398 if (!SWIG_IsOK(ecode5)) {
30399 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30400 }
30401 arg5 = static_cast< int >(val5);
30402 }
30403 {
30404 PyThreadState* __tstate = wxPyBeginAllowThreads();
30405 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30406 wxPyEndAllowThreads(__tstate);
30407 if (PyErr_Occurred()) SWIG_fail;
30408 }
30409 resultobj = SWIG_Py_Void();
30410 return resultobj;
30411 fail:
30412 return NULL;
30413 }
30414
30415
30416 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30417 PyObject *resultobj = 0;
30418 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30419 wxWindow *arg2 = (wxWindow *) 0 ;
30420 wxDC *arg3 = 0 ;
30421 wxRect *arg4 = 0 ;
30422 int arg5 = (int) 0 ;
30423 void *argp1 = 0 ;
30424 int res1 = 0 ;
30425 void *argp2 = 0 ;
30426 int res2 = 0 ;
30427 void *argp3 = 0 ;
30428 int res3 = 0 ;
30429 wxRect temp4 ;
30430 int val5 ;
30431 int ecode5 = 0 ;
30432 PyObject * obj0 = 0 ;
30433 PyObject * obj1 = 0 ;
30434 PyObject * obj2 = 0 ;
30435 PyObject * obj3 = 0 ;
30436 PyObject * obj4 = 0 ;
30437 char * kwnames[] = {
30438 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30439 };
30440
30441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30443 if (!SWIG_IsOK(res1)) {
30444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30445 }
30446 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30447 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30448 if (!SWIG_IsOK(res2)) {
30449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30450 }
30451 arg2 = reinterpret_cast< wxWindow * >(argp2);
30452 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30453 if (!SWIG_IsOK(res3)) {
30454 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30455 }
30456 if (!argp3) {
30457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30458 }
30459 arg3 = reinterpret_cast< wxDC * >(argp3);
30460 {
30461 arg4 = &temp4;
30462 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30463 }
30464 if (obj4) {
30465 ecode5 = SWIG_AsVal_int(obj4, &val5);
30466 if (!SWIG_IsOK(ecode5)) {
30467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30468 }
30469 arg5 = static_cast< int >(val5);
30470 }
30471 {
30472 PyThreadState* __tstate = wxPyBeginAllowThreads();
30473 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30474 wxPyEndAllowThreads(__tstate);
30475 if (PyErr_Occurred()) SWIG_fail;
30476 }
30477 resultobj = SWIG_Py_Void();
30478 return resultobj;
30479 fail:
30480 return NULL;
30481 }
30482
30483
30484 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30485 PyObject *resultobj = 0;
30486 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30487 wxWindow *arg2 = (wxWindow *) 0 ;
30488 wxDC *arg3 = 0 ;
30489 wxSize *arg4 = 0 ;
30490 int arg5 ;
30491 wxOrientation arg6 ;
30492 int arg7 = (int) 0 ;
30493 void *argp1 = 0 ;
30494 int res1 = 0 ;
30495 void *argp2 = 0 ;
30496 int res2 = 0 ;
30497 void *argp3 = 0 ;
30498 int res3 = 0 ;
30499 wxSize temp4 ;
30500 int val5 ;
30501 int ecode5 = 0 ;
30502 int val6 ;
30503 int ecode6 = 0 ;
30504 int val7 ;
30505 int ecode7 = 0 ;
30506 PyObject * obj0 = 0 ;
30507 PyObject * obj1 = 0 ;
30508 PyObject * obj2 = 0 ;
30509 PyObject * obj3 = 0 ;
30510 PyObject * obj4 = 0 ;
30511 PyObject * obj5 = 0 ;
30512 PyObject * obj6 = 0 ;
30513 char * kwnames[] = {
30514 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30515 };
30516
30517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30519 if (!SWIG_IsOK(res1)) {
30520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30521 }
30522 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30524 if (!SWIG_IsOK(res2)) {
30525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30526 }
30527 arg2 = reinterpret_cast< wxWindow * >(argp2);
30528 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30529 if (!SWIG_IsOK(res3)) {
30530 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30531 }
30532 if (!argp3) {
30533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30534 }
30535 arg3 = reinterpret_cast< wxDC * >(argp3);
30536 {
30537 arg4 = &temp4;
30538 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30539 }
30540 ecode5 = SWIG_AsVal_int(obj4, &val5);
30541 if (!SWIG_IsOK(ecode5)) {
30542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30543 }
30544 arg5 = static_cast< int >(val5);
30545 ecode6 = SWIG_AsVal_int(obj5, &val6);
30546 if (!SWIG_IsOK(ecode6)) {
30547 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30548 }
30549 arg6 = static_cast< wxOrientation >(val6);
30550 if (obj6) {
30551 ecode7 = SWIG_AsVal_int(obj6, &val7);
30552 if (!SWIG_IsOK(ecode7)) {
30553 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30554 }
30555 arg7 = static_cast< int >(val7);
30556 }
30557 {
30558 PyThreadState* __tstate = wxPyBeginAllowThreads();
30559 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30560 wxPyEndAllowThreads(__tstate);
30561 if (PyErr_Occurred()) SWIG_fail;
30562 }
30563 resultobj = SWIG_Py_Void();
30564 return resultobj;
30565 fail:
30566 return NULL;
30567 }
30568
30569
30570 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30571 PyObject *resultobj = 0;
30572 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30573 wxWindow *arg2 = (wxWindow *) 0 ;
30574 wxDC *arg3 = 0 ;
30575 wxRect *arg4 = 0 ;
30576 int arg5 = (int) 0 ;
30577 void *argp1 = 0 ;
30578 int res1 = 0 ;
30579 void *argp2 = 0 ;
30580 int res2 = 0 ;
30581 void *argp3 = 0 ;
30582 int res3 = 0 ;
30583 wxRect temp4 ;
30584 int val5 ;
30585 int ecode5 = 0 ;
30586 PyObject * obj0 = 0 ;
30587 PyObject * obj1 = 0 ;
30588 PyObject * obj2 = 0 ;
30589 PyObject * obj3 = 0 ;
30590 PyObject * obj4 = 0 ;
30591 char * kwnames[] = {
30592 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30593 };
30594
30595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30597 if (!SWIG_IsOK(res1)) {
30598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30599 }
30600 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30601 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30602 if (!SWIG_IsOK(res2)) {
30603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30604 }
30605 arg2 = reinterpret_cast< wxWindow * >(argp2);
30606 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30607 if (!SWIG_IsOK(res3)) {
30608 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30609 }
30610 if (!argp3) {
30611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30612 }
30613 arg3 = reinterpret_cast< wxDC * >(argp3);
30614 {
30615 arg4 = &temp4;
30616 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30617 }
30618 if (obj4) {
30619 ecode5 = SWIG_AsVal_int(obj4, &val5);
30620 if (!SWIG_IsOK(ecode5)) {
30621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30622 }
30623 arg5 = static_cast< int >(val5);
30624 }
30625 {
30626 PyThreadState* __tstate = wxPyBeginAllowThreads();
30627 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30628 wxPyEndAllowThreads(__tstate);
30629 if (PyErr_Occurred()) SWIG_fail;
30630 }
30631 resultobj = SWIG_Py_Void();
30632 return resultobj;
30633 fail:
30634 return NULL;
30635 }
30636
30637
30638 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30639 PyObject *resultobj = 0;
30640 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30641 wxWindow *arg2 = (wxWindow *) 0 ;
30642 wxDC *arg3 = 0 ;
30643 wxRect *arg4 = 0 ;
30644 int arg5 = (int) 0 ;
30645 void *argp1 = 0 ;
30646 int res1 = 0 ;
30647 void *argp2 = 0 ;
30648 int res2 = 0 ;
30649 void *argp3 = 0 ;
30650 int res3 = 0 ;
30651 wxRect temp4 ;
30652 int val5 ;
30653 int ecode5 = 0 ;
30654 PyObject * obj0 = 0 ;
30655 PyObject * obj1 = 0 ;
30656 PyObject * obj2 = 0 ;
30657 PyObject * obj3 = 0 ;
30658 PyObject * obj4 = 0 ;
30659 char * kwnames[] = {
30660 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30661 };
30662
30663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30665 if (!SWIG_IsOK(res1)) {
30666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30667 }
30668 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30669 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30670 if (!SWIG_IsOK(res2)) {
30671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30672 }
30673 arg2 = reinterpret_cast< wxWindow * >(argp2);
30674 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30675 if (!SWIG_IsOK(res3)) {
30676 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30677 }
30678 if (!argp3) {
30679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30680 }
30681 arg3 = reinterpret_cast< wxDC * >(argp3);
30682 {
30683 arg4 = &temp4;
30684 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30685 }
30686 if (obj4) {
30687 ecode5 = SWIG_AsVal_int(obj4, &val5);
30688 if (!SWIG_IsOK(ecode5)) {
30689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30690 }
30691 arg5 = static_cast< int >(val5);
30692 }
30693 {
30694 PyThreadState* __tstate = wxPyBeginAllowThreads();
30695 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30696 wxPyEndAllowThreads(__tstate);
30697 if (PyErr_Occurred()) SWIG_fail;
30698 }
30699 resultobj = SWIG_Py_Void();
30700 return resultobj;
30701 fail:
30702 return NULL;
30703 }
30704
30705
30706 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30707 PyObject *resultobj = 0;
30708 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30709 wxWindow *arg2 = (wxWindow *) 0 ;
30710 wxDC *arg3 = 0 ;
30711 wxRect *arg4 = 0 ;
30712 int arg5 = (int) 0 ;
30713 void *argp1 = 0 ;
30714 int res1 = 0 ;
30715 void *argp2 = 0 ;
30716 int res2 = 0 ;
30717 void *argp3 = 0 ;
30718 int res3 = 0 ;
30719 wxRect temp4 ;
30720 int val5 ;
30721 int ecode5 = 0 ;
30722 PyObject * obj0 = 0 ;
30723 PyObject * obj1 = 0 ;
30724 PyObject * obj2 = 0 ;
30725 PyObject * obj3 = 0 ;
30726 PyObject * obj4 = 0 ;
30727 char * kwnames[] = {
30728 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30729 };
30730
30731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30733 if (!SWIG_IsOK(res1)) {
30734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30735 }
30736 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30737 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30738 if (!SWIG_IsOK(res2)) {
30739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30740 }
30741 arg2 = reinterpret_cast< wxWindow * >(argp2);
30742 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30743 if (!SWIG_IsOK(res3)) {
30744 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30745 }
30746 if (!argp3) {
30747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30748 }
30749 arg3 = reinterpret_cast< wxDC * >(argp3);
30750 {
30751 arg4 = &temp4;
30752 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30753 }
30754 if (obj4) {
30755 ecode5 = SWIG_AsVal_int(obj4, &val5);
30756 if (!SWIG_IsOK(ecode5)) {
30757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30758 }
30759 arg5 = static_cast< int >(val5);
30760 }
30761 {
30762 PyThreadState* __tstate = wxPyBeginAllowThreads();
30763 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30764 wxPyEndAllowThreads(__tstate);
30765 if (PyErr_Occurred()) SWIG_fail;
30766 }
30767 resultobj = SWIG_Py_Void();
30768 return resultobj;
30769 fail:
30770 return NULL;
30771 }
30772
30773
30774 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30775 PyObject *resultobj = 0;
30776 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30777 wxWindow *arg2 = (wxWindow *) 0 ;
30778 wxDC *arg3 = 0 ;
30779 wxRect *arg4 = 0 ;
30780 int arg5 = (int) 0 ;
30781 void *argp1 = 0 ;
30782 int res1 = 0 ;
30783 void *argp2 = 0 ;
30784 int res2 = 0 ;
30785 void *argp3 = 0 ;
30786 int res3 = 0 ;
30787 wxRect temp4 ;
30788 int val5 ;
30789 int ecode5 = 0 ;
30790 PyObject * obj0 = 0 ;
30791 PyObject * obj1 = 0 ;
30792 PyObject * obj2 = 0 ;
30793 PyObject * obj3 = 0 ;
30794 PyObject * obj4 = 0 ;
30795 char * kwnames[] = {
30796 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30797 };
30798
30799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30801 if (!SWIG_IsOK(res1)) {
30802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30803 }
30804 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30806 if (!SWIG_IsOK(res2)) {
30807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30808 }
30809 arg2 = reinterpret_cast< wxWindow * >(argp2);
30810 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30811 if (!SWIG_IsOK(res3)) {
30812 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30813 }
30814 if (!argp3) {
30815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30816 }
30817 arg3 = reinterpret_cast< wxDC * >(argp3);
30818 {
30819 arg4 = &temp4;
30820 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30821 }
30822 if (obj4) {
30823 ecode5 = SWIG_AsVal_int(obj4, &val5);
30824 if (!SWIG_IsOK(ecode5)) {
30825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30826 }
30827 arg5 = static_cast< int >(val5);
30828 }
30829 {
30830 PyThreadState* __tstate = wxPyBeginAllowThreads();
30831 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30832 wxPyEndAllowThreads(__tstate);
30833 if (PyErr_Occurred()) SWIG_fail;
30834 }
30835 resultobj = SWIG_Py_Void();
30836 return resultobj;
30837 fail:
30838 return NULL;
30839 }
30840
30841
30842 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30843 PyObject *resultobj = 0;
30844 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30845 wxWindow *arg2 = (wxWindow *) 0 ;
30846 wxDC *arg3 = 0 ;
30847 wxRect *arg4 = 0 ;
30848 int arg5 = (int) 0 ;
30849 void *argp1 = 0 ;
30850 int res1 = 0 ;
30851 void *argp2 = 0 ;
30852 int res2 = 0 ;
30853 void *argp3 = 0 ;
30854 int res3 = 0 ;
30855 wxRect temp4 ;
30856 int val5 ;
30857 int ecode5 = 0 ;
30858 PyObject * obj0 = 0 ;
30859 PyObject * obj1 = 0 ;
30860 PyObject * obj2 = 0 ;
30861 PyObject * obj3 = 0 ;
30862 PyObject * obj4 = 0 ;
30863 char * kwnames[] = {
30864 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30865 };
30866
30867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30869 if (!SWIG_IsOK(res1)) {
30870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30871 }
30872 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30873 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30874 if (!SWIG_IsOK(res2)) {
30875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
30876 }
30877 arg2 = reinterpret_cast< wxWindow * >(argp2);
30878 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30879 if (!SWIG_IsOK(res3)) {
30880 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30881 }
30882 if (!argp3) {
30883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30884 }
30885 arg3 = reinterpret_cast< wxDC * >(argp3);
30886 {
30887 arg4 = &temp4;
30888 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30889 }
30890 if (obj4) {
30891 ecode5 = SWIG_AsVal_int(obj4, &val5);
30892 if (!SWIG_IsOK(ecode5)) {
30893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
30894 }
30895 arg5 = static_cast< int >(val5);
30896 }
30897 {
30898 PyThreadState* __tstate = wxPyBeginAllowThreads();
30899 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
30900 wxPyEndAllowThreads(__tstate);
30901 if (PyErr_Occurred()) SWIG_fail;
30902 }
30903 resultobj = SWIG_Py_Void();
30904 return resultobj;
30905 fail:
30906 return NULL;
30907 }
30908
30909
30910 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30911 PyObject *resultobj = 0;
30912 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30913 wxWindow *arg2 = (wxWindow *) 0 ;
30914 SwigValueWrapper<wxSplitterRenderParams > result;
30915 void *argp1 = 0 ;
30916 int res1 = 0 ;
30917 void *argp2 = 0 ;
30918 int res2 = 0 ;
30919 PyObject * obj0 = 0 ;
30920 PyObject * obj1 = 0 ;
30921 char * kwnames[] = {
30922 (char *) "self",(char *) "win", NULL
30923 };
30924
30925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30927 if (!SWIG_IsOK(res1)) {
30928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30929 }
30930 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30932 if (!SWIG_IsOK(res2)) {
30933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30934 }
30935 arg2 = reinterpret_cast< wxWindow * >(argp2);
30936 {
30937 PyThreadState* __tstate = wxPyBeginAllowThreads();
30938 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30939 wxPyEndAllowThreads(__tstate);
30940 if (PyErr_Occurred()) SWIG_fail;
30941 }
30942 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30943 return resultobj;
30944 fail:
30945 return NULL;
30946 }
30947
30948
30949 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30950 PyObject *resultobj = 0;
30951 wxRendererNative *result = 0 ;
30952
30953 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30954 {
30955 if (!wxPyCheckForApp()) SWIG_fail;
30956 PyThreadState* __tstate = wxPyBeginAllowThreads();
30957 {
30958 wxRendererNative &_result_ref = wxRendererNative::Get();
30959 result = (wxRendererNative *) &_result_ref;
30960 }
30961 wxPyEndAllowThreads(__tstate);
30962 if (PyErr_Occurred()) SWIG_fail;
30963 }
30964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30965 return resultobj;
30966 fail:
30967 return NULL;
30968 }
30969
30970
30971 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30972 PyObject *resultobj = 0;
30973 wxRendererNative *result = 0 ;
30974
30975 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30976 {
30977 if (!wxPyCheckForApp()) SWIG_fail;
30978 PyThreadState* __tstate = wxPyBeginAllowThreads();
30979 {
30980 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30981 result = (wxRendererNative *) &_result_ref;
30982 }
30983 wxPyEndAllowThreads(__tstate);
30984 if (PyErr_Occurred()) SWIG_fail;
30985 }
30986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30987 return resultobj;
30988 fail:
30989 return NULL;
30990 }
30991
30992
30993 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30994 PyObject *resultobj = 0;
30995 wxRendererNative *result = 0 ;
30996
30997 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30998 {
30999 if (!wxPyCheckForApp()) SWIG_fail;
31000 PyThreadState* __tstate = wxPyBeginAllowThreads();
31001 {
31002 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31003 result = (wxRendererNative *) &_result_ref;
31004 }
31005 wxPyEndAllowThreads(__tstate);
31006 if (PyErr_Occurred()) SWIG_fail;
31007 }
31008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31009 return resultobj;
31010 fail:
31011 return NULL;
31012 }
31013
31014
31015 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31016 PyObject *resultobj = 0;
31017 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31018 wxRendererNative *result = 0 ;
31019 void *argp1 = 0 ;
31020 int res1 = 0 ;
31021 PyObject * obj0 = 0 ;
31022 char * kwnames[] = {
31023 (char *) "renderer", NULL
31024 };
31025
31026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31028 if (!SWIG_IsOK(res1)) {
31029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31030 }
31031 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31032 {
31033 if (!wxPyCheckForApp()) SWIG_fail;
31034 PyThreadState* __tstate = wxPyBeginAllowThreads();
31035 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31036 wxPyEndAllowThreads(__tstate);
31037 if (PyErr_Occurred()) SWIG_fail;
31038 }
31039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31040 return resultobj;
31041 fail:
31042 return NULL;
31043 }
31044
31045
31046 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31047 PyObject *resultobj = 0;
31048 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31049 SwigValueWrapper<wxRendererVersion > result;
31050 void *argp1 = 0 ;
31051 int res1 = 0 ;
31052 PyObject *swig_obj[1] ;
31053
31054 if (!args) SWIG_fail;
31055 swig_obj[0] = args;
31056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31057 if (!SWIG_IsOK(res1)) {
31058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31059 }
31060 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31061 {
31062 PyThreadState* __tstate = wxPyBeginAllowThreads();
31063 result = ((wxRendererNative const *)arg1)->GetVersion();
31064 wxPyEndAllowThreads(__tstate);
31065 if (PyErr_Occurred()) SWIG_fail;
31066 }
31067 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31068 return resultobj;
31069 fail:
31070 return NULL;
31071 }
31072
31073
31074 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31075 PyObject *obj;
31076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31077 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31078 return SWIG_Py_Void();
31079 }
31080
31081 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31082 PyObject *resultobj = 0;
31083 wxPseudoDC *result = 0 ;
31084
31085 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31086 {
31087 PyThreadState* __tstate = wxPyBeginAllowThreads();
31088 result = (wxPseudoDC *)new wxPseudoDC();
31089 wxPyEndAllowThreads(__tstate);
31090 if (PyErr_Occurred()) SWIG_fail;
31091 }
31092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31093 return resultobj;
31094 fail:
31095 return NULL;
31096 }
31097
31098
31099 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31100 PyObject *resultobj = 0;
31101 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31102 void *argp1 = 0 ;
31103 int res1 = 0 ;
31104 PyObject *swig_obj[1] ;
31105
31106 if (!args) SWIG_fail;
31107 swig_obj[0] = args;
31108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31109 if (!SWIG_IsOK(res1)) {
31110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31111 }
31112 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31113 {
31114 PyThreadState* __tstate = wxPyBeginAllowThreads();
31115 (arg1)->BeginDrawing();
31116 wxPyEndAllowThreads(__tstate);
31117 if (PyErr_Occurred()) SWIG_fail;
31118 }
31119 resultobj = SWIG_Py_Void();
31120 return resultobj;
31121 fail:
31122 return NULL;
31123 }
31124
31125
31126 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31127 PyObject *resultobj = 0;
31128 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31129 void *argp1 = 0 ;
31130 int res1 = 0 ;
31131 PyObject *swig_obj[1] ;
31132
31133 if (!args) SWIG_fail;
31134 swig_obj[0] = args;
31135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31136 if (!SWIG_IsOK(res1)) {
31137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31138 }
31139 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31140 {
31141 PyThreadState* __tstate = wxPyBeginAllowThreads();
31142 (arg1)->EndDrawing();
31143 wxPyEndAllowThreads(__tstate);
31144 if (PyErr_Occurred()) SWIG_fail;
31145 }
31146 resultobj = SWIG_Py_Void();
31147 return resultobj;
31148 fail:
31149 return NULL;
31150 }
31151
31152
31153 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31154 PyObject *resultobj = 0;
31155 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31156 void *argp1 = 0 ;
31157 int res1 = 0 ;
31158 PyObject *swig_obj[1] ;
31159
31160 if (!args) SWIG_fail;
31161 swig_obj[0] = args;
31162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31163 if (!SWIG_IsOK(res1)) {
31164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31165 }
31166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31167 {
31168 PyThreadState* __tstate = wxPyBeginAllowThreads();
31169 delete arg1;
31170
31171 wxPyEndAllowThreads(__tstate);
31172 if (PyErr_Occurred()) SWIG_fail;
31173 }
31174 resultobj = SWIG_Py_Void();
31175 return resultobj;
31176 fail:
31177 return NULL;
31178 }
31179
31180
31181 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31182 PyObject *resultobj = 0;
31183 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31184 void *argp1 = 0 ;
31185 int res1 = 0 ;
31186 PyObject *swig_obj[1] ;
31187
31188 if (!args) SWIG_fail;
31189 swig_obj[0] = args;
31190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31191 if (!SWIG_IsOK(res1)) {
31192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31193 }
31194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31195 {
31196 PyThreadState* __tstate = wxPyBeginAllowThreads();
31197 (arg1)->RemoveAll();
31198 wxPyEndAllowThreads(__tstate);
31199 if (PyErr_Occurred()) SWIG_fail;
31200 }
31201 resultobj = SWIG_Py_Void();
31202 return resultobj;
31203 fail:
31204 return NULL;
31205 }
31206
31207
31208 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31209 PyObject *resultobj = 0;
31210 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31211 int result;
31212 void *argp1 = 0 ;
31213 int res1 = 0 ;
31214 PyObject *swig_obj[1] ;
31215
31216 if (!args) SWIG_fail;
31217 swig_obj[0] = args;
31218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31219 if (!SWIG_IsOK(res1)) {
31220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31221 }
31222 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31223 {
31224 PyThreadState* __tstate = wxPyBeginAllowThreads();
31225 result = (int)(arg1)->GetLen();
31226 wxPyEndAllowThreads(__tstate);
31227 if (PyErr_Occurred()) SWIG_fail;
31228 }
31229 resultobj = SWIG_From_int(static_cast< int >(result));
31230 return resultobj;
31231 fail:
31232 return NULL;
31233 }
31234
31235
31236 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31237 PyObject *resultobj = 0;
31238 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31239 int arg2 ;
31240 void *argp1 = 0 ;
31241 int res1 = 0 ;
31242 int val2 ;
31243 int ecode2 = 0 ;
31244 PyObject * obj0 = 0 ;
31245 PyObject * obj1 = 0 ;
31246 char * kwnames[] = {
31247 (char *) "self",(char *) "id", NULL
31248 };
31249
31250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31252 if (!SWIG_IsOK(res1)) {
31253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31254 }
31255 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31256 ecode2 = SWIG_AsVal_int(obj1, &val2);
31257 if (!SWIG_IsOK(ecode2)) {
31258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31259 }
31260 arg2 = static_cast< int >(val2);
31261 {
31262 PyThreadState* __tstate = wxPyBeginAllowThreads();
31263 (arg1)->SetId(arg2);
31264 wxPyEndAllowThreads(__tstate);
31265 if (PyErr_Occurred()) SWIG_fail;
31266 }
31267 resultobj = SWIG_Py_Void();
31268 return resultobj;
31269 fail:
31270 return NULL;
31271 }
31272
31273
31274 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31275 PyObject *resultobj = 0;
31276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31277 int arg2 ;
31278 void *argp1 = 0 ;
31279 int res1 = 0 ;
31280 int val2 ;
31281 int ecode2 = 0 ;
31282 PyObject * obj0 = 0 ;
31283 PyObject * obj1 = 0 ;
31284 char * kwnames[] = {
31285 (char *) "self",(char *) "id", NULL
31286 };
31287
31288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31290 if (!SWIG_IsOK(res1)) {
31291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31292 }
31293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31294 ecode2 = SWIG_AsVal_int(obj1, &val2);
31295 if (!SWIG_IsOK(ecode2)) {
31296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31297 }
31298 arg2 = static_cast< int >(val2);
31299 {
31300 PyThreadState* __tstate = wxPyBeginAllowThreads();
31301 (arg1)->ClearId(arg2);
31302 wxPyEndAllowThreads(__tstate);
31303 if (PyErr_Occurred()) SWIG_fail;
31304 }
31305 resultobj = SWIG_Py_Void();
31306 return resultobj;
31307 fail:
31308 return NULL;
31309 }
31310
31311
31312 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31313 PyObject *resultobj = 0;
31314 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31315 int arg2 ;
31316 void *argp1 = 0 ;
31317 int res1 = 0 ;
31318 int val2 ;
31319 int ecode2 = 0 ;
31320 PyObject * obj0 = 0 ;
31321 PyObject * obj1 = 0 ;
31322 char * kwnames[] = {
31323 (char *) "self",(char *) "id", NULL
31324 };
31325
31326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31328 if (!SWIG_IsOK(res1)) {
31329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31330 }
31331 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31332 ecode2 = SWIG_AsVal_int(obj1, &val2);
31333 if (!SWIG_IsOK(ecode2)) {
31334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31335 }
31336 arg2 = static_cast< int >(val2);
31337 {
31338 PyThreadState* __tstate = wxPyBeginAllowThreads();
31339 (arg1)->RemoveId(arg2);
31340 wxPyEndAllowThreads(__tstate);
31341 if (PyErr_Occurred()) SWIG_fail;
31342 }
31343 resultobj = SWIG_Py_Void();
31344 return resultobj;
31345 fail:
31346 return NULL;
31347 }
31348
31349
31350 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31351 PyObject *resultobj = 0;
31352 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31353 int arg2 ;
31354 int arg3 ;
31355 int arg4 ;
31356 void *argp1 = 0 ;
31357 int res1 = 0 ;
31358 int val2 ;
31359 int ecode2 = 0 ;
31360 int val3 ;
31361 int ecode3 = 0 ;
31362 int val4 ;
31363 int ecode4 = 0 ;
31364 PyObject * obj0 = 0 ;
31365 PyObject * obj1 = 0 ;
31366 PyObject * obj2 = 0 ;
31367 PyObject * obj3 = 0 ;
31368 char * kwnames[] = {
31369 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31370 };
31371
31372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31374 if (!SWIG_IsOK(res1)) {
31375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31376 }
31377 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31378 ecode2 = SWIG_AsVal_int(obj1, &val2);
31379 if (!SWIG_IsOK(ecode2)) {
31380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31381 }
31382 arg2 = static_cast< int >(val2);
31383 ecode3 = SWIG_AsVal_int(obj2, &val3);
31384 if (!SWIG_IsOK(ecode3)) {
31385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31386 }
31387 arg3 = static_cast< int >(val3);
31388 ecode4 = SWIG_AsVal_int(obj3, &val4);
31389 if (!SWIG_IsOK(ecode4)) {
31390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31391 }
31392 arg4 = static_cast< int >(val4);
31393 {
31394 PyThreadState* __tstate = wxPyBeginAllowThreads();
31395 (arg1)->TranslateId(arg2,arg3,arg4);
31396 wxPyEndAllowThreads(__tstate);
31397 if (PyErr_Occurred()) SWIG_fail;
31398 }
31399 resultobj = SWIG_Py_Void();
31400 return resultobj;
31401 fail:
31402 return NULL;
31403 }
31404
31405
31406 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31407 PyObject *resultobj = 0;
31408 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31409 int arg2 ;
31410 bool arg3 = (bool) true ;
31411 void *argp1 = 0 ;
31412 int res1 = 0 ;
31413 int val2 ;
31414 int ecode2 = 0 ;
31415 bool val3 ;
31416 int ecode3 = 0 ;
31417 PyObject * obj0 = 0 ;
31418 PyObject * obj1 = 0 ;
31419 PyObject * obj2 = 0 ;
31420 char * kwnames[] = {
31421 (char *) "self",(char *) "id",(char *) "greyout", NULL
31422 };
31423
31424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31426 if (!SWIG_IsOK(res1)) {
31427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31428 }
31429 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31430 ecode2 = SWIG_AsVal_int(obj1, &val2);
31431 if (!SWIG_IsOK(ecode2)) {
31432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31433 }
31434 arg2 = static_cast< int >(val2);
31435 if (obj2) {
31436 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31437 if (!SWIG_IsOK(ecode3)) {
31438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31439 }
31440 arg3 = static_cast< bool >(val3);
31441 }
31442 {
31443 PyThreadState* __tstate = wxPyBeginAllowThreads();
31444 (arg1)->SetIdGreyedOut(arg2,arg3);
31445 wxPyEndAllowThreads(__tstate);
31446 if (PyErr_Occurred()) SWIG_fail;
31447 }
31448 resultobj = SWIG_Py_Void();
31449 return resultobj;
31450 fail:
31451 return NULL;
31452 }
31453
31454
31455 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31456 PyObject *resultobj = 0;
31457 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31458 int arg2 ;
31459 bool result;
31460 void *argp1 = 0 ;
31461 int res1 = 0 ;
31462 int val2 ;
31463 int ecode2 = 0 ;
31464 PyObject * obj0 = 0 ;
31465 PyObject * obj1 = 0 ;
31466 char * kwnames[] = {
31467 (char *) "self",(char *) "id", NULL
31468 };
31469
31470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31472 if (!SWIG_IsOK(res1)) {
31473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31474 }
31475 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31476 ecode2 = SWIG_AsVal_int(obj1, &val2);
31477 if (!SWIG_IsOK(ecode2)) {
31478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31479 }
31480 arg2 = static_cast< int >(val2);
31481 {
31482 PyThreadState* __tstate = wxPyBeginAllowThreads();
31483 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31484 wxPyEndAllowThreads(__tstate);
31485 if (PyErr_Occurred()) SWIG_fail;
31486 }
31487 {
31488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31489 }
31490 return resultobj;
31491 fail:
31492 return NULL;
31493 }
31494
31495
31496 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31497 PyObject *resultobj = 0;
31498 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31499 int arg2 ;
31500 int arg3 ;
31501 int arg4 = (int) 1 ;
31502 wxColor const &arg5_defvalue = *wxWHITE ;
31503 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31504 PyObject *result = 0 ;
31505 void *argp1 = 0 ;
31506 int res1 = 0 ;
31507 int val2 ;
31508 int ecode2 = 0 ;
31509 int val3 ;
31510 int ecode3 = 0 ;
31511 int val4 ;
31512 int ecode4 = 0 ;
31513 void *argp5 = 0 ;
31514 int res5 = 0 ;
31515 PyObject * obj0 = 0 ;
31516 PyObject * obj1 = 0 ;
31517 PyObject * obj2 = 0 ;
31518 PyObject * obj3 = 0 ;
31519 PyObject * obj4 = 0 ;
31520 char * kwnames[] = {
31521 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31522 };
31523
31524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31526 if (!SWIG_IsOK(res1)) {
31527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31528 }
31529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31530 ecode2 = SWIG_AsVal_int(obj1, &val2);
31531 if (!SWIG_IsOK(ecode2)) {
31532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31533 }
31534 arg2 = static_cast< int >(val2);
31535 ecode3 = SWIG_AsVal_int(obj2, &val3);
31536 if (!SWIG_IsOK(ecode3)) {
31537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31538 }
31539 arg3 = static_cast< int >(val3);
31540 if (obj3) {
31541 ecode4 = SWIG_AsVal_int(obj3, &val4);
31542 if (!SWIG_IsOK(ecode4)) {
31543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31544 }
31545 arg4 = static_cast< int >(val4);
31546 }
31547 if (obj4) {
31548 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31549 if (!SWIG_IsOK(res5)) {
31550 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31551 }
31552 if (!argp5) {
31553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31554 }
31555 arg5 = reinterpret_cast< wxColor * >(argp5);
31556 }
31557 {
31558 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31559 if (PyErr_Occurred()) SWIG_fail;
31560 }
31561 resultobj = result;
31562 return resultobj;
31563 fail:
31564 return NULL;
31565 }
31566
31567
31568 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31569 PyObject *resultobj = 0;
31570 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31571 int arg2 ;
31572 int arg3 ;
31573 PyObject *result = 0 ;
31574 void *argp1 = 0 ;
31575 int res1 = 0 ;
31576 int val2 ;
31577 int ecode2 = 0 ;
31578 int val3 ;
31579 int ecode3 = 0 ;
31580 PyObject * obj0 = 0 ;
31581 PyObject * obj1 = 0 ;
31582 PyObject * obj2 = 0 ;
31583 char * kwnames[] = {
31584 (char *) "self",(char *) "x",(char *) "y", NULL
31585 };
31586
31587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31589 if (!SWIG_IsOK(res1)) {
31590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31591 }
31592 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31593 ecode2 = SWIG_AsVal_int(obj1, &val2);
31594 if (!SWIG_IsOK(ecode2)) {
31595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31596 }
31597 arg2 = static_cast< int >(val2);
31598 ecode3 = SWIG_AsVal_int(obj2, &val3);
31599 if (!SWIG_IsOK(ecode3)) {
31600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31601 }
31602 arg3 = static_cast< int >(val3);
31603 {
31604 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31605 if (PyErr_Occurred()) SWIG_fail;
31606 }
31607 resultobj = result;
31608 return resultobj;
31609 fail:
31610 return NULL;
31611 }
31612
31613
31614 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31615 PyObject *resultobj = 0;
31616 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31617 int arg2 ;
31618 wxDC *arg3 = (wxDC *) 0 ;
31619 void *argp1 = 0 ;
31620 int res1 = 0 ;
31621 int val2 ;
31622 int ecode2 = 0 ;
31623 void *argp3 = 0 ;
31624 int res3 = 0 ;
31625 PyObject * obj0 = 0 ;
31626 PyObject * obj1 = 0 ;
31627 PyObject * obj2 = 0 ;
31628 char * kwnames[] = {
31629 (char *) "self",(char *) "id",(char *) "dc", NULL
31630 };
31631
31632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31634 if (!SWIG_IsOK(res1)) {
31635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31636 }
31637 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31638 ecode2 = SWIG_AsVal_int(obj1, &val2);
31639 if (!SWIG_IsOK(ecode2)) {
31640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31641 }
31642 arg2 = static_cast< int >(val2);
31643 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31644 if (!SWIG_IsOK(res3)) {
31645 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31646 }
31647 arg3 = reinterpret_cast< wxDC * >(argp3);
31648 {
31649 PyThreadState* __tstate = wxPyBeginAllowThreads();
31650 (arg1)->DrawIdToDC(arg2,arg3);
31651 wxPyEndAllowThreads(__tstate);
31652 if (PyErr_Occurred()) SWIG_fail;
31653 }
31654 resultobj = SWIG_Py_Void();
31655 return resultobj;
31656 fail:
31657 return NULL;
31658 }
31659
31660
31661 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31662 PyObject *resultobj = 0;
31663 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31664 int arg2 ;
31665 wxRect *arg3 = 0 ;
31666 void *argp1 = 0 ;
31667 int res1 = 0 ;
31668 int val2 ;
31669 int ecode2 = 0 ;
31670 wxRect temp3 ;
31671 PyObject * obj0 = 0 ;
31672 PyObject * obj1 = 0 ;
31673 PyObject * obj2 = 0 ;
31674 char * kwnames[] = {
31675 (char *) "self",(char *) "id",(char *) "rect", NULL
31676 };
31677
31678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31680 if (!SWIG_IsOK(res1)) {
31681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31682 }
31683 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31684 ecode2 = SWIG_AsVal_int(obj1, &val2);
31685 if (!SWIG_IsOK(ecode2)) {
31686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31687 }
31688 arg2 = static_cast< int >(val2);
31689 {
31690 arg3 = &temp3;
31691 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31692 }
31693 {
31694 PyThreadState* __tstate = wxPyBeginAllowThreads();
31695 (arg1)->SetIdBounds(arg2,*arg3);
31696 wxPyEndAllowThreads(__tstate);
31697 if (PyErr_Occurred()) SWIG_fail;
31698 }
31699 resultobj = SWIG_Py_Void();
31700 return resultobj;
31701 fail:
31702 return NULL;
31703 }
31704
31705
31706 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31707 PyObject *resultobj = 0;
31708 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31709 int arg2 ;
31710 wxRect result;
31711 void *argp1 = 0 ;
31712 int res1 = 0 ;
31713 int val2 ;
31714 int ecode2 = 0 ;
31715 PyObject * obj0 = 0 ;
31716 PyObject * obj1 = 0 ;
31717 char * kwnames[] = {
31718 (char *) "self",(char *) "id", NULL
31719 };
31720
31721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31723 if (!SWIG_IsOK(res1)) {
31724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31725 }
31726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31727 ecode2 = SWIG_AsVal_int(obj1, &val2);
31728 if (!SWIG_IsOK(ecode2)) {
31729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31730 }
31731 arg2 = static_cast< int >(val2);
31732 {
31733 PyThreadState* __tstate = wxPyBeginAllowThreads();
31734 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31735 wxPyEndAllowThreads(__tstate);
31736 if (PyErr_Occurred()) SWIG_fail;
31737 }
31738 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31739 return resultobj;
31740 fail:
31741 return NULL;
31742 }
31743
31744
31745 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31746 PyObject *resultobj = 0;
31747 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31748 wxDC *arg2 = (wxDC *) 0 ;
31749 wxRect *arg3 = 0 ;
31750 void *argp1 = 0 ;
31751 int res1 = 0 ;
31752 void *argp2 = 0 ;
31753 int res2 = 0 ;
31754 wxRect temp3 ;
31755 PyObject * obj0 = 0 ;
31756 PyObject * obj1 = 0 ;
31757 PyObject * obj2 = 0 ;
31758 char * kwnames[] = {
31759 (char *) "self",(char *) "dc",(char *) "rect", NULL
31760 };
31761
31762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31764 if (!SWIG_IsOK(res1)) {
31765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31766 }
31767 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31768 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31769 if (!SWIG_IsOK(res2)) {
31770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31771 }
31772 arg2 = reinterpret_cast< wxDC * >(argp2);
31773 {
31774 arg3 = &temp3;
31775 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31776 }
31777 {
31778 PyThreadState* __tstate = wxPyBeginAllowThreads();
31779 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31780 wxPyEndAllowThreads(__tstate);
31781 if (PyErr_Occurred()) SWIG_fail;
31782 }
31783 resultobj = SWIG_Py_Void();
31784 return resultobj;
31785 fail:
31786 return NULL;
31787 }
31788
31789
31790 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31791 PyObject *resultobj = 0;
31792 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31793 wxDC *arg2 = (wxDC *) 0 ;
31794 wxRegion *arg3 = 0 ;
31795 void *argp1 = 0 ;
31796 int res1 = 0 ;
31797 void *argp2 = 0 ;
31798 int res2 = 0 ;
31799 void *argp3 = 0 ;
31800 int res3 = 0 ;
31801 PyObject * obj0 = 0 ;
31802 PyObject * obj1 = 0 ;
31803 PyObject * obj2 = 0 ;
31804 char * kwnames[] = {
31805 (char *) "self",(char *) "dc",(char *) "region", NULL
31806 };
31807
31808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31810 if (!SWIG_IsOK(res1)) {
31811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31812 }
31813 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31814 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31815 if (!SWIG_IsOK(res2)) {
31816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31817 }
31818 arg2 = reinterpret_cast< wxDC * >(argp2);
31819 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31820 if (!SWIG_IsOK(res3)) {
31821 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31822 }
31823 if (!argp3) {
31824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31825 }
31826 arg3 = reinterpret_cast< wxRegion * >(argp3);
31827 {
31828 PyThreadState* __tstate = wxPyBeginAllowThreads();
31829 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31830 wxPyEndAllowThreads(__tstate);
31831 if (PyErr_Occurred()) SWIG_fail;
31832 }
31833 resultobj = SWIG_Py_Void();
31834 return resultobj;
31835 fail:
31836 return NULL;
31837 }
31838
31839
31840 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31841 PyObject *resultobj = 0;
31842 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31843 wxDC *arg2 = (wxDC *) 0 ;
31844 void *argp1 = 0 ;
31845 int res1 = 0 ;
31846 void *argp2 = 0 ;
31847 int res2 = 0 ;
31848 PyObject * obj0 = 0 ;
31849 PyObject * obj1 = 0 ;
31850 char * kwnames[] = {
31851 (char *) "self",(char *) "dc", NULL
31852 };
31853
31854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31856 if (!SWIG_IsOK(res1)) {
31857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31858 }
31859 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31860 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31861 if (!SWIG_IsOK(res2)) {
31862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31863 }
31864 arg2 = reinterpret_cast< wxDC * >(argp2);
31865 {
31866 PyThreadState* __tstate = wxPyBeginAllowThreads();
31867 (arg1)->DrawToDC(arg2);
31868 wxPyEndAllowThreads(__tstate);
31869 if (PyErr_Occurred()) SWIG_fail;
31870 }
31871 resultobj = SWIG_Py_Void();
31872 return resultobj;
31873 fail:
31874 return NULL;
31875 }
31876
31877
31878 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31879 PyObject *resultobj = 0;
31880 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31881 int arg2 ;
31882 int arg3 ;
31883 wxColour *arg4 = 0 ;
31884 int arg5 = (int) wxFLOOD_SURFACE ;
31885 void *argp1 = 0 ;
31886 int res1 = 0 ;
31887 int val2 ;
31888 int ecode2 = 0 ;
31889 int val3 ;
31890 int ecode3 = 0 ;
31891 wxColour temp4 ;
31892 int val5 ;
31893 int ecode5 = 0 ;
31894 PyObject * obj0 = 0 ;
31895 PyObject * obj1 = 0 ;
31896 PyObject * obj2 = 0 ;
31897 PyObject * obj3 = 0 ;
31898 PyObject * obj4 = 0 ;
31899 char * kwnames[] = {
31900 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31901 };
31902
31903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31905 if (!SWIG_IsOK(res1)) {
31906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31907 }
31908 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31909 ecode2 = SWIG_AsVal_int(obj1, &val2);
31910 if (!SWIG_IsOK(ecode2)) {
31911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31912 }
31913 arg2 = static_cast< int >(val2);
31914 ecode3 = SWIG_AsVal_int(obj2, &val3);
31915 if (!SWIG_IsOK(ecode3)) {
31916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31917 }
31918 arg3 = static_cast< int >(val3);
31919 {
31920 arg4 = &temp4;
31921 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31922 }
31923 if (obj4) {
31924 ecode5 = SWIG_AsVal_int(obj4, &val5);
31925 if (!SWIG_IsOK(ecode5)) {
31926 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31927 }
31928 arg5 = static_cast< int >(val5);
31929 }
31930 {
31931 PyThreadState* __tstate = wxPyBeginAllowThreads();
31932 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31933 wxPyEndAllowThreads(__tstate);
31934 if (PyErr_Occurred()) SWIG_fail;
31935 }
31936 resultobj = SWIG_Py_Void();
31937 return resultobj;
31938 fail:
31939 return NULL;
31940 }
31941
31942
31943 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31944 PyObject *resultobj = 0;
31945 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31946 wxPoint *arg2 = 0 ;
31947 wxColour *arg3 = 0 ;
31948 int arg4 = (int) wxFLOOD_SURFACE ;
31949 void *argp1 = 0 ;
31950 int res1 = 0 ;
31951 wxPoint temp2 ;
31952 wxColour temp3 ;
31953 int val4 ;
31954 int ecode4 = 0 ;
31955 PyObject * obj0 = 0 ;
31956 PyObject * obj1 = 0 ;
31957 PyObject * obj2 = 0 ;
31958 PyObject * obj3 = 0 ;
31959 char * kwnames[] = {
31960 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31961 };
31962
31963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31965 if (!SWIG_IsOK(res1)) {
31966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31967 }
31968 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31969 {
31970 arg2 = &temp2;
31971 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31972 }
31973 {
31974 arg3 = &temp3;
31975 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31976 }
31977 if (obj3) {
31978 ecode4 = SWIG_AsVal_int(obj3, &val4);
31979 if (!SWIG_IsOK(ecode4)) {
31980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31981 }
31982 arg4 = static_cast< int >(val4);
31983 }
31984 {
31985 PyThreadState* __tstate = wxPyBeginAllowThreads();
31986 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31987 wxPyEndAllowThreads(__tstate);
31988 if (PyErr_Occurred()) SWIG_fail;
31989 }
31990 resultobj = SWIG_Py_Void();
31991 return resultobj;
31992 fail:
31993 return NULL;
31994 }
31995
31996
31997 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31998 PyObject *resultobj = 0;
31999 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32000 int arg2 ;
32001 int arg3 ;
32002 int arg4 ;
32003 int arg5 ;
32004 void *argp1 = 0 ;
32005 int res1 = 0 ;
32006 int val2 ;
32007 int ecode2 = 0 ;
32008 int val3 ;
32009 int ecode3 = 0 ;
32010 int val4 ;
32011 int ecode4 = 0 ;
32012 int val5 ;
32013 int ecode5 = 0 ;
32014 PyObject * obj0 = 0 ;
32015 PyObject * obj1 = 0 ;
32016 PyObject * obj2 = 0 ;
32017 PyObject * obj3 = 0 ;
32018 PyObject * obj4 = 0 ;
32019 char * kwnames[] = {
32020 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32021 };
32022
32023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32025 if (!SWIG_IsOK(res1)) {
32026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32027 }
32028 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32029 ecode2 = SWIG_AsVal_int(obj1, &val2);
32030 if (!SWIG_IsOK(ecode2)) {
32031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32032 }
32033 arg2 = static_cast< int >(val2);
32034 ecode3 = SWIG_AsVal_int(obj2, &val3);
32035 if (!SWIG_IsOK(ecode3)) {
32036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32037 }
32038 arg3 = static_cast< int >(val3);
32039 ecode4 = SWIG_AsVal_int(obj3, &val4);
32040 if (!SWIG_IsOK(ecode4)) {
32041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32042 }
32043 arg4 = static_cast< int >(val4);
32044 ecode5 = SWIG_AsVal_int(obj4, &val5);
32045 if (!SWIG_IsOK(ecode5)) {
32046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32047 }
32048 arg5 = static_cast< int >(val5);
32049 {
32050 PyThreadState* __tstate = wxPyBeginAllowThreads();
32051 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32052 wxPyEndAllowThreads(__tstate);
32053 if (PyErr_Occurred()) SWIG_fail;
32054 }
32055 resultobj = SWIG_Py_Void();
32056 return resultobj;
32057 fail:
32058 return NULL;
32059 }
32060
32061
32062 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32063 PyObject *resultobj = 0;
32064 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32065 wxPoint *arg2 = 0 ;
32066 wxPoint *arg3 = 0 ;
32067 void *argp1 = 0 ;
32068 int res1 = 0 ;
32069 wxPoint temp2 ;
32070 wxPoint temp3 ;
32071 PyObject * obj0 = 0 ;
32072 PyObject * obj1 = 0 ;
32073 PyObject * obj2 = 0 ;
32074 char * kwnames[] = {
32075 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32076 };
32077
32078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32080 if (!SWIG_IsOK(res1)) {
32081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32082 }
32083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32084 {
32085 arg2 = &temp2;
32086 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32087 }
32088 {
32089 arg3 = &temp3;
32090 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32091 }
32092 {
32093 PyThreadState* __tstate = wxPyBeginAllowThreads();
32094 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32095 wxPyEndAllowThreads(__tstate);
32096 if (PyErr_Occurred()) SWIG_fail;
32097 }
32098 resultobj = SWIG_Py_Void();
32099 return resultobj;
32100 fail:
32101 return NULL;
32102 }
32103
32104
32105 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32106 PyObject *resultobj = 0;
32107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32108 int arg2 ;
32109 int arg3 ;
32110 void *argp1 = 0 ;
32111 int res1 = 0 ;
32112 int val2 ;
32113 int ecode2 = 0 ;
32114 int val3 ;
32115 int ecode3 = 0 ;
32116 PyObject * obj0 = 0 ;
32117 PyObject * obj1 = 0 ;
32118 PyObject * obj2 = 0 ;
32119 char * kwnames[] = {
32120 (char *) "self",(char *) "x",(char *) "y", NULL
32121 };
32122
32123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32125 if (!SWIG_IsOK(res1)) {
32126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32127 }
32128 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32129 ecode2 = SWIG_AsVal_int(obj1, &val2);
32130 if (!SWIG_IsOK(ecode2)) {
32131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32132 }
32133 arg2 = static_cast< int >(val2);
32134 ecode3 = SWIG_AsVal_int(obj2, &val3);
32135 if (!SWIG_IsOK(ecode3)) {
32136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32137 }
32138 arg3 = static_cast< int >(val3);
32139 {
32140 PyThreadState* __tstate = wxPyBeginAllowThreads();
32141 (arg1)->CrossHair(arg2,arg3);
32142 wxPyEndAllowThreads(__tstate);
32143 if (PyErr_Occurred()) SWIG_fail;
32144 }
32145 resultobj = SWIG_Py_Void();
32146 return resultobj;
32147 fail:
32148 return NULL;
32149 }
32150
32151
32152 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32153 PyObject *resultobj = 0;
32154 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32155 wxPoint *arg2 = 0 ;
32156 void *argp1 = 0 ;
32157 int res1 = 0 ;
32158 wxPoint temp2 ;
32159 PyObject * obj0 = 0 ;
32160 PyObject * obj1 = 0 ;
32161 char * kwnames[] = {
32162 (char *) "self",(char *) "pt", NULL
32163 };
32164
32165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32167 if (!SWIG_IsOK(res1)) {
32168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32169 }
32170 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32171 {
32172 arg2 = &temp2;
32173 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32174 }
32175 {
32176 PyThreadState* __tstate = wxPyBeginAllowThreads();
32177 (arg1)->CrossHair((wxPoint const &)*arg2);
32178 wxPyEndAllowThreads(__tstate);
32179 if (PyErr_Occurred()) SWIG_fail;
32180 }
32181 resultobj = SWIG_Py_Void();
32182 return resultobj;
32183 fail:
32184 return NULL;
32185 }
32186
32187
32188 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32189 PyObject *resultobj = 0;
32190 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32191 int arg2 ;
32192 int arg3 ;
32193 int arg4 ;
32194 int arg5 ;
32195 int arg6 ;
32196 int arg7 ;
32197 void *argp1 = 0 ;
32198 int res1 = 0 ;
32199 int val2 ;
32200 int ecode2 = 0 ;
32201 int val3 ;
32202 int ecode3 = 0 ;
32203 int val4 ;
32204 int ecode4 = 0 ;
32205 int val5 ;
32206 int ecode5 = 0 ;
32207 int val6 ;
32208 int ecode6 = 0 ;
32209 int val7 ;
32210 int ecode7 = 0 ;
32211 PyObject * obj0 = 0 ;
32212 PyObject * obj1 = 0 ;
32213 PyObject * obj2 = 0 ;
32214 PyObject * obj3 = 0 ;
32215 PyObject * obj4 = 0 ;
32216 PyObject * obj5 = 0 ;
32217 PyObject * obj6 = 0 ;
32218 char * kwnames[] = {
32219 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32220 };
32221
32222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32224 if (!SWIG_IsOK(res1)) {
32225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32226 }
32227 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32228 ecode2 = SWIG_AsVal_int(obj1, &val2);
32229 if (!SWIG_IsOK(ecode2)) {
32230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32231 }
32232 arg2 = static_cast< int >(val2);
32233 ecode3 = SWIG_AsVal_int(obj2, &val3);
32234 if (!SWIG_IsOK(ecode3)) {
32235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32236 }
32237 arg3 = static_cast< int >(val3);
32238 ecode4 = SWIG_AsVal_int(obj3, &val4);
32239 if (!SWIG_IsOK(ecode4)) {
32240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32241 }
32242 arg4 = static_cast< int >(val4);
32243 ecode5 = SWIG_AsVal_int(obj4, &val5);
32244 if (!SWIG_IsOK(ecode5)) {
32245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32246 }
32247 arg5 = static_cast< int >(val5);
32248 ecode6 = SWIG_AsVal_int(obj5, &val6);
32249 if (!SWIG_IsOK(ecode6)) {
32250 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32251 }
32252 arg6 = static_cast< int >(val6);
32253 ecode7 = SWIG_AsVal_int(obj6, &val7);
32254 if (!SWIG_IsOK(ecode7)) {
32255 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32256 }
32257 arg7 = static_cast< int >(val7);
32258 {
32259 PyThreadState* __tstate = wxPyBeginAllowThreads();
32260 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32261 wxPyEndAllowThreads(__tstate);
32262 if (PyErr_Occurred()) SWIG_fail;
32263 }
32264 resultobj = SWIG_Py_Void();
32265 return resultobj;
32266 fail:
32267 return NULL;
32268 }
32269
32270
32271 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32272 PyObject *resultobj = 0;
32273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32274 wxPoint *arg2 = 0 ;
32275 wxPoint *arg3 = 0 ;
32276 wxPoint *arg4 = 0 ;
32277 void *argp1 = 0 ;
32278 int res1 = 0 ;
32279 wxPoint temp2 ;
32280 wxPoint temp3 ;
32281 wxPoint temp4 ;
32282 PyObject * obj0 = 0 ;
32283 PyObject * obj1 = 0 ;
32284 PyObject * obj2 = 0 ;
32285 PyObject * obj3 = 0 ;
32286 char * kwnames[] = {
32287 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32288 };
32289
32290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32292 if (!SWIG_IsOK(res1)) {
32293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32294 }
32295 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32296 {
32297 arg2 = &temp2;
32298 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32299 }
32300 {
32301 arg3 = &temp3;
32302 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32303 }
32304 {
32305 arg4 = &temp4;
32306 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32307 }
32308 {
32309 PyThreadState* __tstate = wxPyBeginAllowThreads();
32310 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32311 wxPyEndAllowThreads(__tstate);
32312 if (PyErr_Occurred()) SWIG_fail;
32313 }
32314 resultobj = SWIG_Py_Void();
32315 return resultobj;
32316 fail:
32317 return NULL;
32318 }
32319
32320
32321 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32322 PyObject *resultobj = 0;
32323 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32324 int arg2 ;
32325 int arg3 ;
32326 int arg4 ;
32327 int arg5 ;
32328 void *argp1 = 0 ;
32329 int res1 = 0 ;
32330 int val2 ;
32331 int ecode2 = 0 ;
32332 int val3 ;
32333 int ecode3 = 0 ;
32334 int val4 ;
32335 int ecode4 = 0 ;
32336 int val5 ;
32337 int ecode5 = 0 ;
32338 PyObject * obj0 = 0 ;
32339 PyObject * obj1 = 0 ;
32340 PyObject * obj2 = 0 ;
32341 PyObject * obj3 = 0 ;
32342 PyObject * obj4 = 0 ;
32343 char * kwnames[] = {
32344 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32345 };
32346
32347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32349 if (!SWIG_IsOK(res1)) {
32350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32351 }
32352 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32353 ecode2 = SWIG_AsVal_int(obj1, &val2);
32354 if (!SWIG_IsOK(ecode2)) {
32355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32356 }
32357 arg2 = static_cast< int >(val2);
32358 ecode3 = SWIG_AsVal_int(obj2, &val3);
32359 if (!SWIG_IsOK(ecode3)) {
32360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32361 }
32362 arg3 = static_cast< int >(val3);
32363 ecode4 = SWIG_AsVal_int(obj3, &val4);
32364 if (!SWIG_IsOK(ecode4)) {
32365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32366 }
32367 arg4 = static_cast< int >(val4);
32368 ecode5 = SWIG_AsVal_int(obj4, &val5);
32369 if (!SWIG_IsOK(ecode5)) {
32370 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32371 }
32372 arg5 = static_cast< int >(val5);
32373 {
32374 PyThreadState* __tstate = wxPyBeginAllowThreads();
32375 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32376 wxPyEndAllowThreads(__tstate);
32377 if (PyErr_Occurred()) SWIG_fail;
32378 }
32379 resultobj = SWIG_Py_Void();
32380 return resultobj;
32381 fail:
32382 return NULL;
32383 }
32384
32385
32386 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32387 PyObject *resultobj = 0;
32388 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32389 wxRect *arg2 = 0 ;
32390 void *argp1 = 0 ;
32391 int res1 = 0 ;
32392 wxRect temp2 ;
32393 PyObject * obj0 = 0 ;
32394 PyObject * obj1 = 0 ;
32395 char * kwnames[] = {
32396 (char *) "self",(char *) "rect", NULL
32397 };
32398
32399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32401 if (!SWIG_IsOK(res1)) {
32402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32403 }
32404 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32405 {
32406 arg2 = &temp2;
32407 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32408 }
32409 {
32410 PyThreadState* __tstate = wxPyBeginAllowThreads();
32411 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32412 wxPyEndAllowThreads(__tstate);
32413 if (PyErr_Occurred()) SWIG_fail;
32414 }
32415 resultobj = SWIG_Py_Void();
32416 return resultobj;
32417 fail:
32418 return NULL;
32419 }
32420
32421
32422 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32423 PyObject *resultobj = 0;
32424 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32425 int arg2 ;
32426 int arg3 ;
32427 int arg4 ;
32428 int arg5 ;
32429 double arg6 ;
32430 double arg7 ;
32431 void *argp1 = 0 ;
32432 int res1 = 0 ;
32433 int val2 ;
32434 int ecode2 = 0 ;
32435 int val3 ;
32436 int ecode3 = 0 ;
32437 int val4 ;
32438 int ecode4 = 0 ;
32439 int val5 ;
32440 int ecode5 = 0 ;
32441 double val6 ;
32442 int ecode6 = 0 ;
32443 double val7 ;
32444 int ecode7 = 0 ;
32445 PyObject * obj0 = 0 ;
32446 PyObject * obj1 = 0 ;
32447 PyObject * obj2 = 0 ;
32448 PyObject * obj3 = 0 ;
32449 PyObject * obj4 = 0 ;
32450 PyObject * obj5 = 0 ;
32451 PyObject * obj6 = 0 ;
32452 char * kwnames[] = {
32453 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32454 };
32455
32456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32458 if (!SWIG_IsOK(res1)) {
32459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32460 }
32461 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32462 ecode2 = SWIG_AsVal_int(obj1, &val2);
32463 if (!SWIG_IsOK(ecode2)) {
32464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32465 }
32466 arg2 = static_cast< int >(val2);
32467 ecode3 = SWIG_AsVal_int(obj2, &val3);
32468 if (!SWIG_IsOK(ecode3)) {
32469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32470 }
32471 arg3 = static_cast< int >(val3);
32472 ecode4 = SWIG_AsVal_int(obj3, &val4);
32473 if (!SWIG_IsOK(ecode4)) {
32474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32475 }
32476 arg4 = static_cast< int >(val4);
32477 ecode5 = SWIG_AsVal_int(obj4, &val5);
32478 if (!SWIG_IsOK(ecode5)) {
32479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32480 }
32481 arg5 = static_cast< int >(val5);
32482 ecode6 = SWIG_AsVal_double(obj5, &val6);
32483 if (!SWIG_IsOK(ecode6)) {
32484 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32485 }
32486 arg6 = static_cast< double >(val6);
32487 ecode7 = SWIG_AsVal_double(obj6, &val7);
32488 if (!SWIG_IsOK(ecode7)) {
32489 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32490 }
32491 arg7 = static_cast< double >(val7);
32492 {
32493 PyThreadState* __tstate = wxPyBeginAllowThreads();
32494 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32495 wxPyEndAllowThreads(__tstate);
32496 if (PyErr_Occurred()) SWIG_fail;
32497 }
32498 resultobj = SWIG_Py_Void();
32499 return resultobj;
32500 fail:
32501 return NULL;
32502 }
32503
32504
32505 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32506 PyObject *resultobj = 0;
32507 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32508 wxPoint *arg2 = 0 ;
32509 wxSize *arg3 = 0 ;
32510 double arg4 ;
32511 double arg5 ;
32512 void *argp1 = 0 ;
32513 int res1 = 0 ;
32514 wxPoint temp2 ;
32515 wxSize temp3 ;
32516 double val4 ;
32517 int ecode4 = 0 ;
32518 double val5 ;
32519 int ecode5 = 0 ;
32520 PyObject * obj0 = 0 ;
32521 PyObject * obj1 = 0 ;
32522 PyObject * obj2 = 0 ;
32523 PyObject * obj3 = 0 ;
32524 PyObject * obj4 = 0 ;
32525 char * kwnames[] = {
32526 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32527 };
32528
32529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32531 if (!SWIG_IsOK(res1)) {
32532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32533 }
32534 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32535 {
32536 arg2 = &temp2;
32537 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32538 }
32539 {
32540 arg3 = &temp3;
32541 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32542 }
32543 ecode4 = SWIG_AsVal_double(obj3, &val4);
32544 if (!SWIG_IsOK(ecode4)) {
32545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32546 }
32547 arg4 = static_cast< double >(val4);
32548 ecode5 = SWIG_AsVal_double(obj4, &val5);
32549 if (!SWIG_IsOK(ecode5)) {
32550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32551 }
32552 arg5 = static_cast< double >(val5);
32553 {
32554 PyThreadState* __tstate = wxPyBeginAllowThreads();
32555 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32556 wxPyEndAllowThreads(__tstate);
32557 if (PyErr_Occurred()) SWIG_fail;
32558 }
32559 resultobj = SWIG_Py_Void();
32560 return resultobj;
32561 fail:
32562 return NULL;
32563 }
32564
32565
32566 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32567 PyObject *resultobj = 0;
32568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32569 int arg2 ;
32570 int arg3 ;
32571 void *argp1 = 0 ;
32572 int res1 = 0 ;
32573 int val2 ;
32574 int ecode2 = 0 ;
32575 int val3 ;
32576 int ecode3 = 0 ;
32577 PyObject * obj0 = 0 ;
32578 PyObject * obj1 = 0 ;
32579 PyObject * obj2 = 0 ;
32580 char * kwnames[] = {
32581 (char *) "self",(char *) "x",(char *) "y", NULL
32582 };
32583
32584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32586 if (!SWIG_IsOK(res1)) {
32587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32588 }
32589 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32590 ecode2 = SWIG_AsVal_int(obj1, &val2);
32591 if (!SWIG_IsOK(ecode2)) {
32592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32593 }
32594 arg2 = static_cast< int >(val2);
32595 ecode3 = SWIG_AsVal_int(obj2, &val3);
32596 if (!SWIG_IsOK(ecode3)) {
32597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32598 }
32599 arg3 = static_cast< int >(val3);
32600 {
32601 PyThreadState* __tstate = wxPyBeginAllowThreads();
32602 (arg1)->DrawPoint(arg2,arg3);
32603 wxPyEndAllowThreads(__tstate);
32604 if (PyErr_Occurred()) SWIG_fail;
32605 }
32606 resultobj = SWIG_Py_Void();
32607 return resultobj;
32608 fail:
32609 return NULL;
32610 }
32611
32612
32613 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32614 PyObject *resultobj = 0;
32615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32616 wxPoint *arg2 = 0 ;
32617 void *argp1 = 0 ;
32618 int res1 = 0 ;
32619 wxPoint temp2 ;
32620 PyObject * obj0 = 0 ;
32621 PyObject * obj1 = 0 ;
32622 char * kwnames[] = {
32623 (char *) "self",(char *) "pt", NULL
32624 };
32625
32626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32628 if (!SWIG_IsOK(res1)) {
32629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32630 }
32631 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32632 {
32633 arg2 = &temp2;
32634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32635 }
32636 {
32637 PyThreadState* __tstate = wxPyBeginAllowThreads();
32638 (arg1)->DrawPoint((wxPoint const &)*arg2);
32639 wxPyEndAllowThreads(__tstate);
32640 if (PyErr_Occurred()) SWIG_fail;
32641 }
32642 resultobj = SWIG_Py_Void();
32643 return resultobj;
32644 fail:
32645 return NULL;
32646 }
32647
32648
32649 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32650 PyObject *resultobj = 0;
32651 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32652 int arg2 ;
32653 int arg3 ;
32654 int arg4 ;
32655 int arg5 ;
32656 void *argp1 = 0 ;
32657 int res1 = 0 ;
32658 int val2 ;
32659 int ecode2 = 0 ;
32660 int val3 ;
32661 int ecode3 = 0 ;
32662 int val4 ;
32663 int ecode4 = 0 ;
32664 int val5 ;
32665 int ecode5 = 0 ;
32666 PyObject * obj0 = 0 ;
32667 PyObject * obj1 = 0 ;
32668 PyObject * obj2 = 0 ;
32669 PyObject * obj3 = 0 ;
32670 PyObject * obj4 = 0 ;
32671 char * kwnames[] = {
32672 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32673 };
32674
32675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32679 }
32680 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32681 ecode2 = SWIG_AsVal_int(obj1, &val2);
32682 if (!SWIG_IsOK(ecode2)) {
32683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32684 }
32685 arg2 = static_cast< int >(val2);
32686 ecode3 = SWIG_AsVal_int(obj2, &val3);
32687 if (!SWIG_IsOK(ecode3)) {
32688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32689 }
32690 arg3 = static_cast< int >(val3);
32691 ecode4 = SWIG_AsVal_int(obj3, &val4);
32692 if (!SWIG_IsOK(ecode4)) {
32693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32694 }
32695 arg4 = static_cast< int >(val4);
32696 ecode5 = SWIG_AsVal_int(obj4, &val5);
32697 if (!SWIG_IsOK(ecode5)) {
32698 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32699 }
32700 arg5 = static_cast< int >(val5);
32701 {
32702 PyThreadState* __tstate = wxPyBeginAllowThreads();
32703 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32704 wxPyEndAllowThreads(__tstate);
32705 if (PyErr_Occurred()) SWIG_fail;
32706 }
32707 resultobj = SWIG_Py_Void();
32708 return resultobj;
32709 fail:
32710 return NULL;
32711 }
32712
32713
32714 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32715 PyObject *resultobj = 0;
32716 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32717 wxRect *arg2 = 0 ;
32718 void *argp1 = 0 ;
32719 int res1 = 0 ;
32720 wxRect temp2 ;
32721 PyObject * obj0 = 0 ;
32722 PyObject * obj1 = 0 ;
32723 char * kwnames[] = {
32724 (char *) "self",(char *) "rect", NULL
32725 };
32726
32727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32729 if (!SWIG_IsOK(res1)) {
32730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32731 }
32732 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32733 {
32734 arg2 = &temp2;
32735 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32736 }
32737 {
32738 PyThreadState* __tstate = wxPyBeginAllowThreads();
32739 (arg1)->DrawRectangle((wxRect const &)*arg2);
32740 wxPyEndAllowThreads(__tstate);
32741 if (PyErr_Occurred()) SWIG_fail;
32742 }
32743 resultobj = SWIG_Py_Void();
32744 return resultobj;
32745 fail:
32746 return NULL;
32747 }
32748
32749
32750 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32751 PyObject *resultobj = 0;
32752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32753 wxPoint *arg2 = 0 ;
32754 wxSize *arg3 = 0 ;
32755 void *argp1 = 0 ;
32756 int res1 = 0 ;
32757 wxPoint temp2 ;
32758 wxSize temp3 ;
32759 PyObject * obj0 = 0 ;
32760 PyObject * obj1 = 0 ;
32761 PyObject * obj2 = 0 ;
32762 char * kwnames[] = {
32763 (char *) "self",(char *) "pt",(char *) "sz", NULL
32764 };
32765
32766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32768 if (!SWIG_IsOK(res1)) {
32769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32770 }
32771 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32772 {
32773 arg2 = &temp2;
32774 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32775 }
32776 {
32777 arg3 = &temp3;
32778 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32779 }
32780 {
32781 PyThreadState* __tstate = wxPyBeginAllowThreads();
32782 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32783 wxPyEndAllowThreads(__tstate);
32784 if (PyErr_Occurred()) SWIG_fail;
32785 }
32786 resultobj = SWIG_Py_Void();
32787 return resultobj;
32788 fail:
32789 return NULL;
32790 }
32791
32792
32793 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32794 PyObject *resultobj = 0;
32795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32796 int arg2 ;
32797 int arg3 ;
32798 int arg4 ;
32799 int arg5 ;
32800 double arg6 ;
32801 void *argp1 = 0 ;
32802 int res1 = 0 ;
32803 int val2 ;
32804 int ecode2 = 0 ;
32805 int val3 ;
32806 int ecode3 = 0 ;
32807 int val4 ;
32808 int ecode4 = 0 ;
32809 int val5 ;
32810 int ecode5 = 0 ;
32811 double val6 ;
32812 int ecode6 = 0 ;
32813 PyObject * obj0 = 0 ;
32814 PyObject * obj1 = 0 ;
32815 PyObject * obj2 = 0 ;
32816 PyObject * obj3 = 0 ;
32817 PyObject * obj4 = 0 ;
32818 PyObject * obj5 = 0 ;
32819 char * kwnames[] = {
32820 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32821 };
32822
32823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32825 if (!SWIG_IsOK(res1)) {
32826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32827 }
32828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32829 ecode2 = SWIG_AsVal_int(obj1, &val2);
32830 if (!SWIG_IsOK(ecode2)) {
32831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32832 }
32833 arg2 = static_cast< int >(val2);
32834 ecode3 = SWIG_AsVal_int(obj2, &val3);
32835 if (!SWIG_IsOK(ecode3)) {
32836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32837 }
32838 arg3 = static_cast< int >(val3);
32839 ecode4 = SWIG_AsVal_int(obj3, &val4);
32840 if (!SWIG_IsOK(ecode4)) {
32841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32842 }
32843 arg4 = static_cast< int >(val4);
32844 ecode5 = SWIG_AsVal_int(obj4, &val5);
32845 if (!SWIG_IsOK(ecode5)) {
32846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32847 }
32848 arg5 = static_cast< int >(val5);
32849 ecode6 = SWIG_AsVal_double(obj5, &val6);
32850 if (!SWIG_IsOK(ecode6)) {
32851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32852 }
32853 arg6 = static_cast< double >(val6);
32854 {
32855 PyThreadState* __tstate = wxPyBeginAllowThreads();
32856 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32857 wxPyEndAllowThreads(__tstate);
32858 if (PyErr_Occurred()) SWIG_fail;
32859 }
32860 resultobj = SWIG_Py_Void();
32861 return resultobj;
32862 fail:
32863 return NULL;
32864 }
32865
32866
32867 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32868 PyObject *resultobj = 0;
32869 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32870 wxRect *arg2 = 0 ;
32871 double arg3 ;
32872 void *argp1 = 0 ;
32873 int res1 = 0 ;
32874 wxRect temp2 ;
32875 double val3 ;
32876 int ecode3 = 0 ;
32877 PyObject * obj0 = 0 ;
32878 PyObject * obj1 = 0 ;
32879 PyObject * obj2 = 0 ;
32880 char * kwnames[] = {
32881 (char *) "self",(char *) "r",(char *) "radius", NULL
32882 };
32883
32884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32886 if (!SWIG_IsOK(res1)) {
32887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32888 }
32889 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32890 {
32891 arg2 = &temp2;
32892 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32893 }
32894 ecode3 = SWIG_AsVal_double(obj2, &val3);
32895 if (!SWIG_IsOK(ecode3)) {
32896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32897 }
32898 arg3 = static_cast< double >(val3);
32899 {
32900 PyThreadState* __tstate = wxPyBeginAllowThreads();
32901 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32902 wxPyEndAllowThreads(__tstate);
32903 if (PyErr_Occurred()) SWIG_fail;
32904 }
32905 resultobj = SWIG_Py_Void();
32906 return resultobj;
32907 fail:
32908 return NULL;
32909 }
32910
32911
32912 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32913 PyObject *resultobj = 0;
32914 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32915 wxPoint *arg2 = 0 ;
32916 wxSize *arg3 = 0 ;
32917 double arg4 ;
32918 void *argp1 = 0 ;
32919 int res1 = 0 ;
32920 wxPoint temp2 ;
32921 wxSize temp3 ;
32922 double val4 ;
32923 int ecode4 = 0 ;
32924 PyObject * obj0 = 0 ;
32925 PyObject * obj1 = 0 ;
32926 PyObject * obj2 = 0 ;
32927 PyObject * obj3 = 0 ;
32928 char * kwnames[] = {
32929 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32930 };
32931
32932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32934 if (!SWIG_IsOK(res1)) {
32935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32936 }
32937 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32938 {
32939 arg2 = &temp2;
32940 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32941 }
32942 {
32943 arg3 = &temp3;
32944 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32945 }
32946 ecode4 = SWIG_AsVal_double(obj3, &val4);
32947 if (!SWIG_IsOK(ecode4)) {
32948 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32949 }
32950 arg4 = static_cast< double >(val4);
32951 {
32952 PyThreadState* __tstate = wxPyBeginAllowThreads();
32953 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32954 wxPyEndAllowThreads(__tstate);
32955 if (PyErr_Occurred()) SWIG_fail;
32956 }
32957 resultobj = SWIG_Py_Void();
32958 return resultobj;
32959 fail:
32960 return NULL;
32961 }
32962
32963
32964 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32965 PyObject *resultobj = 0;
32966 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32967 int arg2 ;
32968 int arg3 ;
32969 int arg4 ;
32970 void *argp1 = 0 ;
32971 int res1 = 0 ;
32972 int val2 ;
32973 int ecode2 = 0 ;
32974 int val3 ;
32975 int ecode3 = 0 ;
32976 int val4 ;
32977 int ecode4 = 0 ;
32978 PyObject * obj0 = 0 ;
32979 PyObject * obj1 = 0 ;
32980 PyObject * obj2 = 0 ;
32981 PyObject * obj3 = 0 ;
32982 char * kwnames[] = {
32983 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32984 };
32985
32986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32988 if (!SWIG_IsOK(res1)) {
32989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32990 }
32991 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32992 ecode2 = SWIG_AsVal_int(obj1, &val2);
32993 if (!SWIG_IsOK(ecode2)) {
32994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32995 }
32996 arg2 = static_cast< int >(val2);
32997 ecode3 = SWIG_AsVal_int(obj2, &val3);
32998 if (!SWIG_IsOK(ecode3)) {
32999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33000 }
33001 arg3 = static_cast< int >(val3);
33002 ecode4 = SWIG_AsVal_int(obj3, &val4);
33003 if (!SWIG_IsOK(ecode4)) {
33004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33005 }
33006 arg4 = static_cast< int >(val4);
33007 {
33008 PyThreadState* __tstate = wxPyBeginAllowThreads();
33009 (arg1)->DrawCircle(arg2,arg3,arg4);
33010 wxPyEndAllowThreads(__tstate);
33011 if (PyErr_Occurred()) SWIG_fail;
33012 }
33013 resultobj = SWIG_Py_Void();
33014 return resultobj;
33015 fail:
33016 return NULL;
33017 }
33018
33019
33020 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33021 PyObject *resultobj = 0;
33022 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33023 wxPoint *arg2 = 0 ;
33024 int arg3 ;
33025 void *argp1 = 0 ;
33026 int res1 = 0 ;
33027 wxPoint temp2 ;
33028 int val3 ;
33029 int ecode3 = 0 ;
33030 PyObject * obj0 = 0 ;
33031 PyObject * obj1 = 0 ;
33032 PyObject * obj2 = 0 ;
33033 char * kwnames[] = {
33034 (char *) "self",(char *) "pt",(char *) "radius", NULL
33035 };
33036
33037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33039 if (!SWIG_IsOK(res1)) {
33040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33041 }
33042 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33043 {
33044 arg2 = &temp2;
33045 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33046 }
33047 ecode3 = SWIG_AsVal_int(obj2, &val3);
33048 if (!SWIG_IsOK(ecode3)) {
33049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33050 }
33051 arg3 = static_cast< int >(val3);
33052 {
33053 PyThreadState* __tstate = wxPyBeginAllowThreads();
33054 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33055 wxPyEndAllowThreads(__tstate);
33056 if (PyErr_Occurred()) SWIG_fail;
33057 }
33058 resultobj = SWIG_Py_Void();
33059 return resultobj;
33060 fail:
33061 return NULL;
33062 }
33063
33064
33065 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33066 PyObject *resultobj = 0;
33067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33068 int arg2 ;
33069 int arg3 ;
33070 int arg4 ;
33071 int arg5 ;
33072 void *argp1 = 0 ;
33073 int res1 = 0 ;
33074 int val2 ;
33075 int ecode2 = 0 ;
33076 int val3 ;
33077 int ecode3 = 0 ;
33078 int val4 ;
33079 int ecode4 = 0 ;
33080 int val5 ;
33081 int ecode5 = 0 ;
33082 PyObject * obj0 = 0 ;
33083 PyObject * obj1 = 0 ;
33084 PyObject * obj2 = 0 ;
33085 PyObject * obj3 = 0 ;
33086 PyObject * obj4 = 0 ;
33087 char * kwnames[] = {
33088 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33089 };
33090
33091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33093 if (!SWIG_IsOK(res1)) {
33094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33095 }
33096 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33097 ecode2 = SWIG_AsVal_int(obj1, &val2);
33098 if (!SWIG_IsOK(ecode2)) {
33099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33100 }
33101 arg2 = static_cast< int >(val2);
33102 ecode3 = SWIG_AsVal_int(obj2, &val3);
33103 if (!SWIG_IsOK(ecode3)) {
33104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33105 }
33106 arg3 = static_cast< int >(val3);
33107 ecode4 = SWIG_AsVal_int(obj3, &val4);
33108 if (!SWIG_IsOK(ecode4)) {
33109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33110 }
33111 arg4 = static_cast< int >(val4);
33112 ecode5 = SWIG_AsVal_int(obj4, &val5);
33113 if (!SWIG_IsOK(ecode5)) {
33114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33115 }
33116 arg5 = static_cast< int >(val5);
33117 {
33118 PyThreadState* __tstate = wxPyBeginAllowThreads();
33119 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33120 wxPyEndAllowThreads(__tstate);
33121 if (PyErr_Occurred()) SWIG_fail;
33122 }
33123 resultobj = SWIG_Py_Void();
33124 return resultobj;
33125 fail:
33126 return NULL;
33127 }
33128
33129
33130 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33131 PyObject *resultobj = 0;
33132 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33133 wxRect *arg2 = 0 ;
33134 void *argp1 = 0 ;
33135 int res1 = 0 ;
33136 wxRect temp2 ;
33137 PyObject * obj0 = 0 ;
33138 PyObject * obj1 = 0 ;
33139 char * kwnames[] = {
33140 (char *) "self",(char *) "rect", NULL
33141 };
33142
33143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33145 if (!SWIG_IsOK(res1)) {
33146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33147 }
33148 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33149 {
33150 arg2 = &temp2;
33151 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33152 }
33153 {
33154 PyThreadState* __tstate = wxPyBeginAllowThreads();
33155 (arg1)->DrawEllipse((wxRect const &)*arg2);
33156 wxPyEndAllowThreads(__tstate);
33157 if (PyErr_Occurred()) SWIG_fail;
33158 }
33159 resultobj = SWIG_Py_Void();
33160 return resultobj;
33161 fail:
33162 return NULL;
33163 }
33164
33165
33166 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33167 PyObject *resultobj = 0;
33168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33169 wxPoint *arg2 = 0 ;
33170 wxSize *arg3 = 0 ;
33171 void *argp1 = 0 ;
33172 int res1 = 0 ;
33173 wxPoint temp2 ;
33174 wxSize temp3 ;
33175 PyObject * obj0 = 0 ;
33176 PyObject * obj1 = 0 ;
33177 PyObject * obj2 = 0 ;
33178 char * kwnames[] = {
33179 (char *) "self",(char *) "pt",(char *) "sz", NULL
33180 };
33181
33182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33184 if (!SWIG_IsOK(res1)) {
33185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33186 }
33187 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33188 {
33189 arg2 = &temp2;
33190 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33191 }
33192 {
33193 arg3 = &temp3;
33194 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33195 }
33196 {
33197 PyThreadState* __tstate = wxPyBeginAllowThreads();
33198 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33199 wxPyEndAllowThreads(__tstate);
33200 if (PyErr_Occurred()) SWIG_fail;
33201 }
33202 resultobj = SWIG_Py_Void();
33203 return resultobj;
33204 fail:
33205 return NULL;
33206 }
33207
33208
33209 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33210 PyObject *resultobj = 0;
33211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33212 wxIcon *arg2 = 0 ;
33213 int arg3 ;
33214 int arg4 ;
33215 void *argp1 = 0 ;
33216 int res1 = 0 ;
33217 void *argp2 = 0 ;
33218 int res2 = 0 ;
33219 int val3 ;
33220 int ecode3 = 0 ;
33221 int val4 ;
33222 int ecode4 = 0 ;
33223 PyObject * obj0 = 0 ;
33224 PyObject * obj1 = 0 ;
33225 PyObject * obj2 = 0 ;
33226 PyObject * obj3 = 0 ;
33227 char * kwnames[] = {
33228 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33229 };
33230
33231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33233 if (!SWIG_IsOK(res1)) {
33234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33235 }
33236 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33237 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33238 if (!SWIG_IsOK(res2)) {
33239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33240 }
33241 if (!argp2) {
33242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33243 }
33244 arg2 = reinterpret_cast< wxIcon * >(argp2);
33245 ecode3 = SWIG_AsVal_int(obj2, &val3);
33246 if (!SWIG_IsOK(ecode3)) {
33247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33248 }
33249 arg3 = static_cast< int >(val3);
33250 ecode4 = SWIG_AsVal_int(obj3, &val4);
33251 if (!SWIG_IsOK(ecode4)) {
33252 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33253 }
33254 arg4 = static_cast< int >(val4);
33255 {
33256 PyThreadState* __tstate = wxPyBeginAllowThreads();
33257 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33258 wxPyEndAllowThreads(__tstate);
33259 if (PyErr_Occurred()) SWIG_fail;
33260 }
33261 resultobj = SWIG_Py_Void();
33262 return resultobj;
33263 fail:
33264 return NULL;
33265 }
33266
33267
33268 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33269 PyObject *resultobj = 0;
33270 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33271 wxIcon *arg2 = 0 ;
33272 wxPoint *arg3 = 0 ;
33273 void *argp1 = 0 ;
33274 int res1 = 0 ;
33275 void *argp2 = 0 ;
33276 int res2 = 0 ;
33277 wxPoint temp3 ;
33278 PyObject * obj0 = 0 ;
33279 PyObject * obj1 = 0 ;
33280 PyObject * obj2 = 0 ;
33281 char * kwnames[] = {
33282 (char *) "self",(char *) "icon",(char *) "pt", NULL
33283 };
33284
33285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33287 if (!SWIG_IsOK(res1)) {
33288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33289 }
33290 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33292 if (!SWIG_IsOK(res2)) {
33293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33294 }
33295 if (!argp2) {
33296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33297 }
33298 arg2 = reinterpret_cast< wxIcon * >(argp2);
33299 {
33300 arg3 = &temp3;
33301 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33302 }
33303 {
33304 PyThreadState* __tstate = wxPyBeginAllowThreads();
33305 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33306 wxPyEndAllowThreads(__tstate);
33307 if (PyErr_Occurred()) SWIG_fail;
33308 }
33309 resultobj = SWIG_Py_Void();
33310 return resultobj;
33311 fail:
33312 return NULL;
33313 }
33314
33315
33316 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33317 PyObject *resultobj = 0;
33318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33319 wxBitmap *arg2 = 0 ;
33320 int arg3 ;
33321 int arg4 ;
33322 bool arg5 = (bool) false ;
33323 void *argp1 = 0 ;
33324 int res1 = 0 ;
33325 void *argp2 = 0 ;
33326 int res2 = 0 ;
33327 int val3 ;
33328 int ecode3 = 0 ;
33329 int val4 ;
33330 int ecode4 = 0 ;
33331 bool val5 ;
33332 int ecode5 = 0 ;
33333 PyObject * obj0 = 0 ;
33334 PyObject * obj1 = 0 ;
33335 PyObject * obj2 = 0 ;
33336 PyObject * obj3 = 0 ;
33337 PyObject * obj4 = 0 ;
33338 char * kwnames[] = {
33339 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33340 };
33341
33342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33344 if (!SWIG_IsOK(res1)) {
33345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33346 }
33347 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33348 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33349 if (!SWIG_IsOK(res2)) {
33350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33351 }
33352 if (!argp2) {
33353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33354 }
33355 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33356 ecode3 = SWIG_AsVal_int(obj2, &val3);
33357 if (!SWIG_IsOK(ecode3)) {
33358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33359 }
33360 arg3 = static_cast< int >(val3);
33361 ecode4 = SWIG_AsVal_int(obj3, &val4);
33362 if (!SWIG_IsOK(ecode4)) {
33363 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33364 }
33365 arg4 = static_cast< int >(val4);
33366 if (obj4) {
33367 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33368 if (!SWIG_IsOK(ecode5)) {
33369 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33370 }
33371 arg5 = static_cast< bool >(val5);
33372 }
33373 {
33374 PyThreadState* __tstate = wxPyBeginAllowThreads();
33375 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33376 wxPyEndAllowThreads(__tstate);
33377 if (PyErr_Occurred()) SWIG_fail;
33378 }
33379 resultobj = SWIG_Py_Void();
33380 return resultobj;
33381 fail:
33382 return NULL;
33383 }
33384
33385
33386 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33387 PyObject *resultobj = 0;
33388 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33389 wxBitmap *arg2 = 0 ;
33390 wxPoint *arg3 = 0 ;
33391 bool arg4 = (bool) false ;
33392 void *argp1 = 0 ;
33393 int res1 = 0 ;
33394 void *argp2 = 0 ;
33395 int res2 = 0 ;
33396 wxPoint temp3 ;
33397 bool val4 ;
33398 int ecode4 = 0 ;
33399 PyObject * obj0 = 0 ;
33400 PyObject * obj1 = 0 ;
33401 PyObject * obj2 = 0 ;
33402 PyObject * obj3 = 0 ;
33403 char * kwnames[] = {
33404 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33405 };
33406
33407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33409 if (!SWIG_IsOK(res1)) {
33410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33411 }
33412 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33414 if (!SWIG_IsOK(res2)) {
33415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33416 }
33417 if (!argp2) {
33418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33419 }
33420 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33421 {
33422 arg3 = &temp3;
33423 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33424 }
33425 if (obj3) {
33426 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33427 if (!SWIG_IsOK(ecode4)) {
33428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33429 }
33430 arg4 = static_cast< bool >(val4);
33431 }
33432 {
33433 PyThreadState* __tstate = wxPyBeginAllowThreads();
33434 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33435 wxPyEndAllowThreads(__tstate);
33436 if (PyErr_Occurred()) SWIG_fail;
33437 }
33438 resultobj = SWIG_Py_Void();
33439 return resultobj;
33440 fail:
33441 return NULL;
33442 }
33443
33444
33445 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33446 PyObject *resultobj = 0;
33447 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33448 wxString *arg2 = 0 ;
33449 int arg3 ;
33450 int arg4 ;
33451 void *argp1 = 0 ;
33452 int res1 = 0 ;
33453 bool temp2 = false ;
33454 int val3 ;
33455 int ecode3 = 0 ;
33456 int val4 ;
33457 int ecode4 = 0 ;
33458 PyObject * obj0 = 0 ;
33459 PyObject * obj1 = 0 ;
33460 PyObject * obj2 = 0 ;
33461 PyObject * obj3 = 0 ;
33462 char * kwnames[] = {
33463 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33464 };
33465
33466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33468 if (!SWIG_IsOK(res1)) {
33469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33470 }
33471 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33472 {
33473 arg2 = wxString_in_helper(obj1);
33474 if (arg2 == NULL) SWIG_fail;
33475 temp2 = true;
33476 }
33477 ecode3 = SWIG_AsVal_int(obj2, &val3);
33478 if (!SWIG_IsOK(ecode3)) {
33479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33480 }
33481 arg3 = static_cast< int >(val3);
33482 ecode4 = SWIG_AsVal_int(obj3, &val4);
33483 if (!SWIG_IsOK(ecode4)) {
33484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33485 }
33486 arg4 = static_cast< int >(val4);
33487 {
33488 PyThreadState* __tstate = wxPyBeginAllowThreads();
33489 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33490 wxPyEndAllowThreads(__tstate);
33491 if (PyErr_Occurred()) SWIG_fail;
33492 }
33493 resultobj = SWIG_Py_Void();
33494 {
33495 if (temp2)
33496 delete arg2;
33497 }
33498 return resultobj;
33499 fail:
33500 {
33501 if (temp2)
33502 delete arg2;
33503 }
33504 return NULL;
33505 }
33506
33507
33508 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33509 PyObject *resultobj = 0;
33510 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33511 wxString *arg2 = 0 ;
33512 wxPoint *arg3 = 0 ;
33513 void *argp1 = 0 ;
33514 int res1 = 0 ;
33515 bool temp2 = false ;
33516 wxPoint temp3 ;
33517 PyObject * obj0 = 0 ;
33518 PyObject * obj1 = 0 ;
33519 PyObject * obj2 = 0 ;
33520 char * kwnames[] = {
33521 (char *) "self",(char *) "text",(char *) "pt", NULL
33522 };
33523
33524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33526 if (!SWIG_IsOK(res1)) {
33527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33528 }
33529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33530 {
33531 arg2 = wxString_in_helper(obj1);
33532 if (arg2 == NULL) SWIG_fail;
33533 temp2 = true;
33534 }
33535 {
33536 arg3 = &temp3;
33537 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33538 }
33539 {
33540 PyThreadState* __tstate = wxPyBeginAllowThreads();
33541 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33542 wxPyEndAllowThreads(__tstate);
33543 if (PyErr_Occurred()) SWIG_fail;
33544 }
33545 resultobj = SWIG_Py_Void();
33546 {
33547 if (temp2)
33548 delete arg2;
33549 }
33550 return resultobj;
33551 fail:
33552 {
33553 if (temp2)
33554 delete arg2;
33555 }
33556 return NULL;
33557 }
33558
33559
33560 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33561 PyObject *resultobj = 0;
33562 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33563 wxString *arg2 = 0 ;
33564 int arg3 ;
33565 int arg4 ;
33566 double arg5 ;
33567 void *argp1 = 0 ;
33568 int res1 = 0 ;
33569 bool temp2 = false ;
33570 int val3 ;
33571 int ecode3 = 0 ;
33572 int val4 ;
33573 int ecode4 = 0 ;
33574 double val5 ;
33575 int ecode5 = 0 ;
33576 PyObject * obj0 = 0 ;
33577 PyObject * obj1 = 0 ;
33578 PyObject * obj2 = 0 ;
33579 PyObject * obj3 = 0 ;
33580 PyObject * obj4 = 0 ;
33581 char * kwnames[] = {
33582 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33583 };
33584
33585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33587 if (!SWIG_IsOK(res1)) {
33588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33589 }
33590 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33591 {
33592 arg2 = wxString_in_helper(obj1);
33593 if (arg2 == NULL) SWIG_fail;
33594 temp2 = true;
33595 }
33596 ecode3 = SWIG_AsVal_int(obj2, &val3);
33597 if (!SWIG_IsOK(ecode3)) {
33598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33599 }
33600 arg3 = static_cast< int >(val3);
33601 ecode4 = SWIG_AsVal_int(obj3, &val4);
33602 if (!SWIG_IsOK(ecode4)) {
33603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33604 }
33605 arg4 = static_cast< int >(val4);
33606 ecode5 = SWIG_AsVal_double(obj4, &val5);
33607 if (!SWIG_IsOK(ecode5)) {
33608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33609 }
33610 arg5 = static_cast< double >(val5);
33611 {
33612 PyThreadState* __tstate = wxPyBeginAllowThreads();
33613 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33614 wxPyEndAllowThreads(__tstate);
33615 if (PyErr_Occurred()) SWIG_fail;
33616 }
33617 resultobj = SWIG_Py_Void();
33618 {
33619 if (temp2)
33620 delete arg2;
33621 }
33622 return resultobj;
33623 fail:
33624 {
33625 if (temp2)
33626 delete arg2;
33627 }
33628 return NULL;
33629 }
33630
33631
33632 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33633 PyObject *resultobj = 0;
33634 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33635 wxString *arg2 = 0 ;
33636 wxPoint *arg3 = 0 ;
33637 double arg4 ;
33638 void *argp1 = 0 ;
33639 int res1 = 0 ;
33640 bool temp2 = false ;
33641 wxPoint temp3 ;
33642 double val4 ;
33643 int ecode4 = 0 ;
33644 PyObject * obj0 = 0 ;
33645 PyObject * obj1 = 0 ;
33646 PyObject * obj2 = 0 ;
33647 PyObject * obj3 = 0 ;
33648 char * kwnames[] = {
33649 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33650 };
33651
33652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33654 if (!SWIG_IsOK(res1)) {
33655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33656 }
33657 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33658 {
33659 arg2 = wxString_in_helper(obj1);
33660 if (arg2 == NULL) SWIG_fail;
33661 temp2 = true;
33662 }
33663 {
33664 arg3 = &temp3;
33665 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33666 }
33667 ecode4 = SWIG_AsVal_double(obj3, &val4);
33668 if (!SWIG_IsOK(ecode4)) {
33669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33670 }
33671 arg4 = static_cast< double >(val4);
33672 {
33673 PyThreadState* __tstate = wxPyBeginAllowThreads();
33674 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33675 wxPyEndAllowThreads(__tstate);
33676 if (PyErr_Occurred()) SWIG_fail;
33677 }
33678 resultobj = SWIG_Py_Void();
33679 {
33680 if (temp2)
33681 delete arg2;
33682 }
33683 return resultobj;
33684 fail:
33685 {
33686 if (temp2)
33687 delete arg2;
33688 }
33689 return NULL;
33690 }
33691
33692
33693 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33694 PyObject *resultobj = 0;
33695 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33696 int arg2 ;
33697 wxPoint *arg3 = (wxPoint *) 0 ;
33698 int arg4 = (int) 0 ;
33699 int arg5 = (int) 0 ;
33700 void *argp1 = 0 ;
33701 int res1 = 0 ;
33702 int val4 ;
33703 int ecode4 = 0 ;
33704 int val5 ;
33705 int ecode5 = 0 ;
33706 PyObject * obj0 = 0 ;
33707 PyObject * obj1 = 0 ;
33708 PyObject * obj2 = 0 ;
33709 PyObject * obj3 = 0 ;
33710 char * kwnames[] = {
33711 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33712 };
33713
33714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33716 if (!SWIG_IsOK(res1)) {
33717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33718 }
33719 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33720 {
33721 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33722 if (arg3 == NULL) SWIG_fail;
33723 }
33724 if (obj2) {
33725 ecode4 = SWIG_AsVal_int(obj2, &val4);
33726 if (!SWIG_IsOK(ecode4)) {
33727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33728 }
33729 arg4 = static_cast< int >(val4);
33730 }
33731 if (obj3) {
33732 ecode5 = SWIG_AsVal_int(obj3, &val5);
33733 if (!SWIG_IsOK(ecode5)) {
33734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33735 }
33736 arg5 = static_cast< int >(val5);
33737 }
33738 {
33739 PyThreadState* __tstate = wxPyBeginAllowThreads();
33740 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33741 wxPyEndAllowThreads(__tstate);
33742 if (PyErr_Occurred()) SWIG_fail;
33743 }
33744 resultobj = SWIG_Py_Void();
33745 {
33746 if (arg3) delete [] arg3;
33747 }
33748 return resultobj;
33749 fail:
33750 {
33751 if (arg3) delete [] arg3;
33752 }
33753 return NULL;
33754 }
33755
33756
33757 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33758 PyObject *resultobj = 0;
33759 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33760 int arg2 ;
33761 wxPoint *arg3 = (wxPoint *) 0 ;
33762 int arg4 = (int) 0 ;
33763 int arg5 = (int) 0 ;
33764 int arg6 = (int) wxODDEVEN_RULE ;
33765 void *argp1 = 0 ;
33766 int res1 = 0 ;
33767 int val4 ;
33768 int ecode4 = 0 ;
33769 int val5 ;
33770 int ecode5 = 0 ;
33771 int val6 ;
33772 int ecode6 = 0 ;
33773 PyObject * obj0 = 0 ;
33774 PyObject * obj1 = 0 ;
33775 PyObject * obj2 = 0 ;
33776 PyObject * obj3 = 0 ;
33777 PyObject * obj4 = 0 ;
33778 char * kwnames[] = {
33779 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33780 };
33781
33782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33784 if (!SWIG_IsOK(res1)) {
33785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33786 }
33787 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33788 {
33789 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33790 if (arg3 == NULL) SWIG_fail;
33791 }
33792 if (obj2) {
33793 ecode4 = SWIG_AsVal_int(obj2, &val4);
33794 if (!SWIG_IsOK(ecode4)) {
33795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33796 }
33797 arg4 = static_cast< int >(val4);
33798 }
33799 if (obj3) {
33800 ecode5 = SWIG_AsVal_int(obj3, &val5);
33801 if (!SWIG_IsOK(ecode5)) {
33802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33803 }
33804 arg5 = static_cast< int >(val5);
33805 }
33806 if (obj4) {
33807 ecode6 = SWIG_AsVal_int(obj4, &val6);
33808 if (!SWIG_IsOK(ecode6)) {
33809 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33810 }
33811 arg6 = static_cast< int >(val6);
33812 }
33813 {
33814 PyThreadState* __tstate = wxPyBeginAllowThreads();
33815 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33816 wxPyEndAllowThreads(__tstate);
33817 if (PyErr_Occurred()) SWIG_fail;
33818 }
33819 resultobj = SWIG_Py_Void();
33820 {
33821 if (arg3) delete [] arg3;
33822 }
33823 return resultobj;
33824 fail:
33825 {
33826 if (arg3) delete [] arg3;
33827 }
33828 return NULL;
33829 }
33830
33831
33832 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33833 PyObject *resultobj = 0;
33834 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33835 wxString *arg2 = 0 ;
33836 wxRect *arg3 = 0 ;
33837 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33838 int arg5 = (int) -1 ;
33839 void *argp1 = 0 ;
33840 int res1 = 0 ;
33841 bool temp2 = false ;
33842 wxRect temp3 ;
33843 int val4 ;
33844 int ecode4 = 0 ;
33845 int val5 ;
33846 int ecode5 = 0 ;
33847 PyObject * obj0 = 0 ;
33848 PyObject * obj1 = 0 ;
33849 PyObject * obj2 = 0 ;
33850 PyObject * obj3 = 0 ;
33851 PyObject * obj4 = 0 ;
33852 char * kwnames[] = {
33853 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33854 };
33855
33856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33858 if (!SWIG_IsOK(res1)) {
33859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33860 }
33861 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33862 {
33863 arg2 = wxString_in_helper(obj1);
33864 if (arg2 == NULL) SWIG_fail;
33865 temp2 = true;
33866 }
33867 {
33868 arg3 = &temp3;
33869 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33870 }
33871 if (obj3) {
33872 ecode4 = SWIG_AsVal_int(obj3, &val4);
33873 if (!SWIG_IsOK(ecode4)) {
33874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33875 }
33876 arg4 = static_cast< int >(val4);
33877 }
33878 if (obj4) {
33879 ecode5 = SWIG_AsVal_int(obj4, &val5);
33880 if (!SWIG_IsOK(ecode5)) {
33881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33882 }
33883 arg5 = static_cast< int >(val5);
33884 }
33885 {
33886 PyThreadState* __tstate = wxPyBeginAllowThreads();
33887 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33888 wxPyEndAllowThreads(__tstate);
33889 if (PyErr_Occurred()) SWIG_fail;
33890 }
33891 resultobj = SWIG_Py_Void();
33892 {
33893 if (temp2)
33894 delete arg2;
33895 }
33896 return resultobj;
33897 fail:
33898 {
33899 if (temp2)
33900 delete arg2;
33901 }
33902 return NULL;
33903 }
33904
33905
33906 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33907 PyObject *resultobj = 0;
33908 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33909 wxString *arg2 = 0 ;
33910 wxBitmap *arg3 = 0 ;
33911 wxRect *arg4 = 0 ;
33912 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33913 int arg6 = (int) -1 ;
33914 void *argp1 = 0 ;
33915 int res1 = 0 ;
33916 bool temp2 = false ;
33917 void *argp3 = 0 ;
33918 int res3 = 0 ;
33919 wxRect temp4 ;
33920 int val5 ;
33921 int ecode5 = 0 ;
33922 int val6 ;
33923 int ecode6 = 0 ;
33924 PyObject * obj0 = 0 ;
33925 PyObject * obj1 = 0 ;
33926 PyObject * obj2 = 0 ;
33927 PyObject * obj3 = 0 ;
33928 PyObject * obj4 = 0 ;
33929 PyObject * obj5 = 0 ;
33930 char * kwnames[] = {
33931 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33932 };
33933
33934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33936 if (!SWIG_IsOK(res1)) {
33937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33938 }
33939 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33940 {
33941 arg2 = wxString_in_helper(obj1);
33942 if (arg2 == NULL) SWIG_fail;
33943 temp2 = true;
33944 }
33945 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33946 if (!SWIG_IsOK(res3)) {
33947 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33948 }
33949 if (!argp3) {
33950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33951 }
33952 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33953 {
33954 arg4 = &temp4;
33955 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33956 }
33957 if (obj4) {
33958 ecode5 = SWIG_AsVal_int(obj4, &val5);
33959 if (!SWIG_IsOK(ecode5)) {
33960 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33961 }
33962 arg5 = static_cast< int >(val5);
33963 }
33964 if (obj5) {
33965 ecode6 = SWIG_AsVal_int(obj5, &val6);
33966 if (!SWIG_IsOK(ecode6)) {
33967 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33968 }
33969 arg6 = static_cast< int >(val6);
33970 }
33971 {
33972 PyThreadState* __tstate = wxPyBeginAllowThreads();
33973 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33974 wxPyEndAllowThreads(__tstate);
33975 if (PyErr_Occurred()) SWIG_fail;
33976 }
33977 resultobj = SWIG_Py_Void();
33978 {
33979 if (temp2)
33980 delete arg2;
33981 }
33982 return resultobj;
33983 fail:
33984 {
33985 if (temp2)
33986 delete arg2;
33987 }
33988 return NULL;
33989 }
33990
33991
33992 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33993 PyObject *resultobj = 0;
33994 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33995 int arg2 ;
33996 wxPoint *arg3 = (wxPoint *) 0 ;
33997 void *argp1 = 0 ;
33998 int res1 = 0 ;
33999 PyObject * obj0 = 0 ;
34000 PyObject * obj1 = 0 ;
34001 char * kwnames[] = {
34002 (char *) "self",(char *) "points", NULL
34003 };
34004
34005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34007 if (!SWIG_IsOK(res1)) {
34008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34009 }
34010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34011 {
34012 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34013 if (arg3 == NULL) SWIG_fail;
34014 }
34015 {
34016 PyThreadState* __tstate = wxPyBeginAllowThreads();
34017 (arg1)->DrawSpline(arg2,arg3);
34018 wxPyEndAllowThreads(__tstate);
34019 if (PyErr_Occurred()) SWIG_fail;
34020 }
34021 resultobj = SWIG_Py_Void();
34022 {
34023 if (arg3) delete [] arg3;
34024 }
34025 return resultobj;
34026 fail:
34027 {
34028 if (arg3) delete [] arg3;
34029 }
34030 return NULL;
34031 }
34032
34033
34034 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34035 PyObject *resultobj = 0;
34036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34037 void *argp1 = 0 ;
34038 int res1 = 0 ;
34039 PyObject *swig_obj[1] ;
34040
34041 if (!args) SWIG_fail;
34042 swig_obj[0] = args;
34043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34044 if (!SWIG_IsOK(res1)) {
34045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34046 }
34047 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34048 {
34049 PyThreadState* __tstate = wxPyBeginAllowThreads();
34050 (arg1)->Clear();
34051 wxPyEndAllowThreads(__tstate);
34052 if (PyErr_Occurred()) SWIG_fail;
34053 }
34054 resultobj = SWIG_Py_Void();
34055 return resultobj;
34056 fail:
34057 return NULL;
34058 }
34059
34060
34061 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34062 PyObject *resultobj = 0;
34063 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34064 wxFont *arg2 = 0 ;
34065 void *argp1 = 0 ;
34066 int res1 = 0 ;
34067 void *argp2 = 0 ;
34068 int res2 = 0 ;
34069 PyObject * obj0 = 0 ;
34070 PyObject * obj1 = 0 ;
34071 char * kwnames[] = {
34072 (char *) "self",(char *) "font", NULL
34073 };
34074
34075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34077 if (!SWIG_IsOK(res1)) {
34078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34079 }
34080 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34082 if (!SWIG_IsOK(res2)) {
34083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34084 }
34085 if (!argp2) {
34086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34087 }
34088 arg2 = reinterpret_cast< wxFont * >(argp2);
34089 {
34090 PyThreadState* __tstate = wxPyBeginAllowThreads();
34091 (arg1)->SetFont((wxFont const &)*arg2);
34092 wxPyEndAllowThreads(__tstate);
34093 if (PyErr_Occurred()) SWIG_fail;
34094 }
34095 resultobj = SWIG_Py_Void();
34096 return resultobj;
34097 fail:
34098 return NULL;
34099 }
34100
34101
34102 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34103 PyObject *resultobj = 0;
34104 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34105 wxPen *arg2 = 0 ;
34106 void *argp1 = 0 ;
34107 int res1 = 0 ;
34108 void *argp2 = 0 ;
34109 int res2 = 0 ;
34110 PyObject * obj0 = 0 ;
34111 PyObject * obj1 = 0 ;
34112 char * kwnames[] = {
34113 (char *) "self",(char *) "pen", NULL
34114 };
34115
34116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34118 if (!SWIG_IsOK(res1)) {
34119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34120 }
34121 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34123 if (!SWIG_IsOK(res2)) {
34124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34125 }
34126 if (!argp2) {
34127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34128 }
34129 arg2 = reinterpret_cast< wxPen * >(argp2);
34130 {
34131 PyThreadState* __tstate = wxPyBeginAllowThreads();
34132 (arg1)->SetPen((wxPen const &)*arg2);
34133 wxPyEndAllowThreads(__tstate);
34134 if (PyErr_Occurred()) SWIG_fail;
34135 }
34136 resultobj = SWIG_Py_Void();
34137 return resultobj;
34138 fail:
34139 return NULL;
34140 }
34141
34142
34143 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34144 PyObject *resultobj = 0;
34145 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34146 wxBrush *arg2 = 0 ;
34147 void *argp1 = 0 ;
34148 int res1 = 0 ;
34149 void *argp2 = 0 ;
34150 int res2 = 0 ;
34151 PyObject * obj0 = 0 ;
34152 PyObject * obj1 = 0 ;
34153 char * kwnames[] = {
34154 (char *) "self",(char *) "brush", NULL
34155 };
34156
34157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34159 if (!SWIG_IsOK(res1)) {
34160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34161 }
34162 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34164 if (!SWIG_IsOK(res2)) {
34165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34166 }
34167 if (!argp2) {
34168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34169 }
34170 arg2 = reinterpret_cast< wxBrush * >(argp2);
34171 {
34172 PyThreadState* __tstate = wxPyBeginAllowThreads();
34173 (arg1)->SetBrush((wxBrush const &)*arg2);
34174 wxPyEndAllowThreads(__tstate);
34175 if (PyErr_Occurred()) SWIG_fail;
34176 }
34177 resultobj = SWIG_Py_Void();
34178 return resultobj;
34179 fail:
34180 return NULL;
34181 }
34182
34183
34184 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34185 PyObject *resultobj = 0;
34186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34187 wxBrush *arg2 = 0 ;
34188 void *argp1 = 0 ;
34189 int res1 = 0 ;
34190 void *argp2 = 0 ;
34191 int res2 = 0 ;
34192 PyObject * obj0 = 0 ;
34193 PyObject * obj1 = 0 ;
34194 char * kwnames[] = {
34195 (char *) "self",(char *) "brush", NULL
34196 };
34197
34198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34200 if (!SWIG_IsOK(res1)) {
34201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34202 }
34203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34205 if (!SWIG_IsOK(res2)) {
34206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34207 }
34208 if (!argp2) {
34209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34210 }
34211 arg2 = reinterpret_cast< wxBrush * >(argp2);
34212 {
34213 PyThreadState* __tstate = wxPyBeginAllowThreads();
34214 (arg1)->SetBackground((wxBrush const &)*arg2);
34215 wxPyEndAllowThreads(__tstate);
34216 if (PyErr_Occurred()) SWIG_fail;
34217 }
34218 resultobj = SWIG_Py_Void();
34219 return resultobj;
34220 fail:
34221 return NULL;
34222 }
34223
34224
34225 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34226 PyObject *resultobj = 0;
34227 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34228 int arg2 ;
34229 void *argp1 = 0 ;
34230 int res1 = 0 ;
34231 int val2 ;
34232 int ecode2 = 0 ;
34233 PyObject * obj0 = 0 ;
34234 PyObject * obj1 = 0 ;
34235 char * kwnames[] = {
34236 (char *) "self",(char *) "mode", NULL
34237 };
34238
34239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34241 if (!SWIG_IsOK(res1)) {
34242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34243 }
34244 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34245 ecode2 = SWIG_AsVal_int(obj1, &val2);
34246 if (!SWIG_IsOK(ecode2)) {
34247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34248 }
34249 arg2 = static_cast< int >(val2);
34250 {
34251 PyThreadState* __tstate = wxPyBeginAllowThreads();
34252 (arg1)->SetBackgroundMode(arg2);
34253 wxPyEndAllowThreads(__tstate);
34254 if (PyErr_Occurred()) SWIG_fail;
34255 }
34256 resultobj = SWIG_Py_Void();
34257 return resultobj;
34258 fail:
34259 return NULL;
34260 }
34261
34262
34263 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34264 PyObject *resultobj = 0;
34265 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34266 wxPalette *arg2 = 0 ;
34267 void *argp1 = 0 ;
34268 int res1 = 0 ;
34269 void *argp2 = 0 ;
34270 int res2 = 0 ;
34271 PyObject * obj0 = 0 ;
34272 PyObject * obj1 = 0 ;
34273 char * kwnames[] = {
34274 (char *) "self",(char *) "palette", NULL
34275 };
34276
34277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34279 if (!SWIG_IsOK(res1)) {
34280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34281 }
34282 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34284 if (!SWIG_IsOK(res2)) {
34285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34286 }
34287 if (!argp2) {
34288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34289 }
34290 arg2 = reinterpret_cast< wxPalette * >(argp2);
34291 {
34292 PyThreadState* __tstate = wxPyBeginAllowThreads();
34293 (arg1)->SetPalette((wxPalette const &)*arg2);
34294 wxPyEndAllowThreads(__tstate);
34295 if (PyErr_Occurred()) SWIG_fail;
34296 }
34297 resultobj = SWIG_Py_Void();
34298 return resultobj;
34299 fail:
34300 return NULL;
34301 }
34302
34303
34304 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34305 PyObject *resultobj = 0;
34306 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34307 wxColour *arg2 = 0 ;
34308 void *argp1 = 0 ;
34309 int res1 = 0 ;
34310 wxColour temp2 ;
34311 PyObject * obj0 = 0 ;
34312 PyObject * obj1 = 0 ;
34313 char * kwnames[] = {
34314 (char *) "self",(char *) "colour", NULL
34315 };
34316
34317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34319 if (!SWIG_IsOK(res1)) {
34320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34321 }
34322 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34323 {
34324 arg2 = &temp2;
34325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34326 }
34327 {
34328 PyThreadState* __tstate = wxPyBeginAllowThreads();
34329 (arg1)->SetTextForeground((wxColour const &)*arg2);
34330 wxPyEndAllowThreads(__tstate);
34331 if (PyErr_Occurred()) SWIG_fail;
34332 }
34333 resultobj = SWIG_Py_Void();
34334 return resultobj;
34335 fail:
34336 return NULL;
34337 }
34338
34339
34340 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34341 PyObject *resultobj = 0;
34342 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34343 wxColour *arg2 = 0 ;
34344 void *argp1 = 0 ;
34345 int res1 = 0 ;
34346 wxColour temp2 ;
34347 PyObject * obj0 = 0 ;
34348 PyObject * obj1 = 0 ;
34349 char * kwnames[] = {
34350 (char *) "self",(char *) "colour", NULL
34351 };
34352
34353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34355 if (!SWIG_IsOK(res1)) {
34356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34357 }
34358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34359 {
34360 arg2 = &temp2;
34361 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34362 }
34363 {
34364 PyThreadState* __tstate = wxPyBeginAllowThreads();
34365 (arg1)->SetTextBackground((wxColour const &)*arg2);
34366 wxPyEndAllowThreads(__tstate);
34367 if (PyErr_Occurred()) SWIG_fail;
34368 }
34369 resultobj = SWIG_Py_Void();
34370 return resultobj;
34371 fail:
34372 return NULL;
34373 }
34374
34375
34376 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34377 PyObject *resultobj = 0;
34378 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34379 int arg2 ;
34380 void *argp1 = 0 ;
34381 int res1 = 0 ;
34382 int val2 ;
34383 int ecode2 = 0 ;
34384 PyObject * obj0 = 0 ;
34385 PyObject * obj1 = 0 ;
34386 char * kwnames[] = {
34387 (char *) "self",(char *) "function", NULL
34388 };
34389
34390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34392 if (!SWIG_IsOK(res1)) {
34393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34394 }
34395 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34396 ecode2 = SWIG_AsVal_int(obj1, &val2);
34397 if (!SWIG_IsOK(ecode2)) {
34398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34399 }
34400 arg2 = static_cast< int >(val2);
34401 {
34402 PyThreadState* __tstate = wxPyBeginAllowThreads();
34403 (arg1)->SetLogicalFunction(arg2);
34404 wxPyEndAllowThreads(__tstate);
34405 if (PyErr_Occurred()) SWIG_fail;
34406 }
34407 resultobj = SWIG_Py_Void();
34408 return resultobj;
34409 fail:
34410 return NULL;
34411 }
34412
34413
34414 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34415 PyObject *obj;
34416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34417 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34418 return SWIG_Py_Void();
34419 }
34420
34421 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34422 return SWIG_Python_InitShadowInstance(args);
34423 }
34424
34425 static PyMethodDef SwigMethods[] = {
34426 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34427 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34428 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34429 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34430 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34431 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34432 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34433 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34434 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34435 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34436 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34437 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34438 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34439 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
34440 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34441 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34444 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34445 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34446 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34447 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34448 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34449 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34450 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34451 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34452 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34453 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34454 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34455 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34456 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
34457 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34458 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34459 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34460 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34461 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34462 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34463 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34464 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34465 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34466 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
34467 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34468 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34469 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34470 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34474 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34475 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
34476 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34477 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34478 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34479 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34480 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34481 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34482 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34483 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34484 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34486 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34487 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34488 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34489 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34490 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
34491 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34492 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34493 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34494 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34495 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34496 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34497 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34498 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34499 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34500 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
34501 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34502 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34503 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34504 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34505 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34506 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34507 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34508 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34509 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34510 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34511 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34512 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34513 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34514 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34515 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34516 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34517 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34518 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34521 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34522 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34523 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34524 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34525 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34526 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34527 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34528 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34529 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34530 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34531 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34532 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34533 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34534 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34535 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34536 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34537 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34538 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34539 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34540 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34541 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34542 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34543 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34544 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34545 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34546 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34547 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34548 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34549 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34550 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34551 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34552 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34553 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34554 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34555 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34556 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34557 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34558 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34559 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34560 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34562 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34563 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34564 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34565 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34566 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34567 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34568 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34569 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34570 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34571 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34572 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34573 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34574 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34575 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34576 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34577 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34578 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34580 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34581 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34582 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
34583 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34584 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34585 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34586 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34587 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34588 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34589 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34590 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34591 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34592 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34593 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34594 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34595 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34596 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34597 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34598 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34599 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34600 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34601 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34602 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34603 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34604 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34605 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34609 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34610 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34612 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34613 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34614 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
34615 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34616 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34617 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34618 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34619 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34620 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34621 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34622 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34623 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34624 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34625 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34626 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34627 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34628 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34629 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34630 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34631 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34632 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
34633 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
34634 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34635 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34636 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34637 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34638 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34639 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34642 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34643 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34644 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34645 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34646 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34647 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34648 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34650 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34651 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34652 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34653 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34654 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34655 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34656 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34657 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34658 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34659 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34660 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34661 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34662 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34663 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34664 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34665 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34666 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34667 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34668 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34669 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34670 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34671 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34672 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34673 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34674 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34675 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34676 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34679 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34683 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34684 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34685 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34686 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34687 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34688 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34689 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34690 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34691 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34692 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34693 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34694 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34695 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34696 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34697 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34698 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34699 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34700 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34701 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34702 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34703 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34704 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34705 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34706 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34708 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34710 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34711 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34712 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34713 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34714 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34715 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34717 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34718 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34719 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34720 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34722 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34723 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34724 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34725 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
34726 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34727 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34728 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34729 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34730 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34731 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34732 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34733 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34734 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34735 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34736 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34737 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34738 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34739 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34740 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34741 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34742 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34743 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34744 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34745 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34747 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34748 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34749 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34750 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34751 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34752 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34753 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34754 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34755 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34756 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34757 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34758 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34759 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34760 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34761 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34762 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34763 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34764 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34765 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
34766 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34767 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34768 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
34769 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34770 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34771 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34772 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34773 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34774 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34775 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34776 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34777 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34778 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34780 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34781 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34783 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34784 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34785 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34786 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34787 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34788 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34789 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34790 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
34792 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34793 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34794 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34795 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34796 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34797 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34800 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34801 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
34802 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34803 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34804 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34805 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34806 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34807 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34808 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
34809 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34810 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34811 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34812 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34813 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34814 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34815 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34816 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34819 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34820 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34821 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34822 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34830 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34832 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34835 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34837 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34838 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34842 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34848 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34850 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34853 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34854 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34856 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34857 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34858 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34860 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34861 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34862 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34863 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34865 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34866 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34867 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34868 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34869 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34870 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34871 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34872 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34873 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34874 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34875 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34876 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34877 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34878 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34879 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34880 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34881 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34882 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34883 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34884 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34885 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34888 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34889 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34890 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34891 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34892 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34893 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34894 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34895 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34896 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34897 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34898 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34899 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34900 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34901 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34902 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34903 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34904 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
34905 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
34906 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34907 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34908 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34909 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34910 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34911 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34912 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34913 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34914 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34915 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34916 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34917 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34918 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34919 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34920 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34921 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34922 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34923 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34924 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34925 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34926 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34927 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34928 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34929 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34930 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34931 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34932 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34933 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34935 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34936 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34937 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34938 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34939 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34940 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
34941 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34942 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
34943 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34944 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34945 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34946 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34947 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34948 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34949 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
34950 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34952 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34953 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34954 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34955 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34956 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34957 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34959 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34960 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
34961 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34962 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34963 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
34964 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34966 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34967 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34968 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34969 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
34970 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34971 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34972 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34973 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34974 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34975 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34976 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34977 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34978 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34979 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
34980 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
34981 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
34982 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34983 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34984 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34985 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34986 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34987 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34988 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34989 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34990 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34991 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34992 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34993 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34994 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34995 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34996 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34997 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34998 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34999 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35000 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35001 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35002 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35004 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35005 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35006 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35007 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35009 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35010 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35011 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35012 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35013 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35014 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35015 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
35016 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35017 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35018 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35019 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35020 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35021 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
35022 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
35023 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35024 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35025 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35026 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35027 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35028 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35029 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35030 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35031 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35032 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35033 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35034 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35035 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35036 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35037 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35038 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35039 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35040 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35041 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35042 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35043 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
35044 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35045 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35046 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35047 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35048 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35049 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35050 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35051 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
35052 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
35053 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35054 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35055 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35056 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35057 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35058 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35059 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35060 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35061 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35062 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35063 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35064 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
35065 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35066 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35067 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35068 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35069 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35070 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35071 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35072 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35073 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35074 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35075 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35076 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35077 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35078 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35079 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35080 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35081 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35082 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35083 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35084 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35085 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35086 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35087 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35088 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35089 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35090 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35091 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35092 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35093 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35094 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35095 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35096 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35097 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35098 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35099 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35100 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35101 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35102 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35103 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35104 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35105 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35106 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35107 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35108 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35109 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35110 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35111 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35112 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35113 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35114 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35115 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35116 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35117 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35118 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35119 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35120 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35121 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35122 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35123 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35124 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35125 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35126 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35127 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35128 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35129 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35130 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35131 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35132 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35133 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35134 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35135 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35136 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35137 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35138 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35139 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35140 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35141 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35142 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35143 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35144 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35145 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35146 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35147 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35148 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35149 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35150 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35151 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35152 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35153 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35154 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35155 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35156 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35157 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35158 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35159 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35160 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35161 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35162 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35163 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35164 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35165 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35166 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35167 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35168 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35169 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35170 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35171 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35172 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35173 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35174 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35175 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35176 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35177 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35178 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35179 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35180 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35181 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35182 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35184 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35185 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35186 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35187 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35188 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35189 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35190 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35191 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35192 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35193 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35194 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35197 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35198 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35201 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35202 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35203 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35204 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35205 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35206 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35207 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35208 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35209 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35210 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35216 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35217 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35218 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35219 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35221 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35222 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35223 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35225 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35226 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35227 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35228 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35229 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35230 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35231 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35232 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35233 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35234 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35235 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35236 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35237 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35238 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35239 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35240 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35241 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35243 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35244 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35245 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35246 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35247 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35248 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35249 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35250 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35251 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35252 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35253 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35254 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35255 { NULL, NULL, 0, NULL }
35256 };
35257
35258
35259 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35260
35261 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35262 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35263 }
35264 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35265 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35266 }
35267 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35268 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35269 }
35270 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35271 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35272 }
35273 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35274 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35275 }
35276 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35277 return (void *)((wxLocale *) ((wxPyLocale *) x));
35278 }
35279 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35280 return (void *)((wxGDIObject *) ((wxIcon *) x));
35281 }
35282 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35283 return (void *)((wxGDIObject *) ((wxPalette *) x));
35284 }
35285 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35286 return (void *)((wxGDIObject *) ((wxPen *) x));
35287 }
35288 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35289 return (void *)((wxGDIObject *) ((wxFont *) x));
35290 }
35291 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35292 return (void *)((wxGDIObject *) ((wxCursor *) x));
35293 }
35294 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35295 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35296 }
35297 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35298 return (void *)((wxGDIObject *) ((wxRegion *) x));
35299 }
35300 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35301 return (void *)((wxGDIObject *) ((wxBrush *) x));
35302 }
35303 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35304 return (void *)((wxDC *) ((wxGCDC *) x));
35305 }
35306 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35307 return (void *)((wxDC *) ((wxScreenDC *) x));
35308 }
35309 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35310 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35311 }
35312 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35313 return (void *)((wxDC *) ((wxMirrorDC *) x));
35314 }
35315 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35316 return (void *)((wxDC *) ((wxMemoryDC *) x));
35317 }
35318 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35319 return (void *)((wxDC *) ((wxWindowDC *) x));
35320 }
35321 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35322 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35323 }
35324 static void *_p_wxClientDCTo_p_wxDC(void *x) {
35325 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
35326 }
35327 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
35328 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35329 }
35330 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35331 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35332 }
35333 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
35334 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
35335 }
35336 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35337 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35338 }
35339 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35340 return (void *)((wxDC *) ((wxPrinterDC *) x));
35341 }
35342 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35343 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35344 }
35345 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35346 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35347 }
35348 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35349 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35350 }
35351 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35352 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35353 }
35354 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35355 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35356 }
35357 static void *_p_wxPenTo_p_wxObject(void *x) {
35358 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35359 }
35360 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35361 return (void *)((wxObject *) ((wxRegionIterator *) x));
35362 }
35363 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35364 return (void *)((wxObject *) ((wxSizerItem *) x));
35365 }
35366 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35367 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35368 }
35369 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35370 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35371 }
35372 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35373 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35374 }
35375 static void *_p_wxIconTo_p_wxObject(void *x) {
35376 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35377 }
35378 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35379 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35380 }
35381 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35382 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35383 }
35384 static void *_p_wxSizerTo_p_wxObject(void *x) {
35385 return (void *)((wxObject *) ((wxSizer *) x));
35386 }
35387 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35388 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35389 }
35390 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35391 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35392 }
35393 static void *_p_wxEventTo_p_wxObject(void *x) {
35394 return (void *)((wxObject *) ((wxEvent *) x));
35395 }
35396 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35397 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35398 }
35399 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35400 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35401 }
35402 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35403 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35404 }
35405 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35406 return (void *)((wxObject *) ((wxPseudoDC *) x));
35407 }
35408 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35410 }
35411 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35412 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35413 }
35414 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35415 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35416 }
35417 static void *_p_wxDCTo_p_wxObject(void *x) {
35418 return (void *)((wxObject *) ((wxDC *) x));
35419 }
35420 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35421 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35422 }
35423 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35424 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35425 }
35426 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35427 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35428 }
35429 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35430 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35431 }
35432 static void *_p_wxControlTo_p_wxObject(void *x) {
35433 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35434 }
35435 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35436 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35437 }
35438 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35439 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35440 }
35441 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35442 return (void *)((wxObject *) ((wxFSFile *) x));
35443 }
35444 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35445 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35446 }
35447 static void *_p_wxRegionTo_p_wxObject(void *x) {
35448 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35449 }
35450 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35451 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35452 }
35453 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35454 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35455 }
35456 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35457 return (void *)((wxObject *) ((wxGDIObject *) x));
35458 }
35459 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35460 return (void *)((wxObject *) ((wxEffects *) x));
35461 }
35462 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35463 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35464 }
35465 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35466 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35467 }
35468 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35469 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35470 }
35471 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35472 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35473 }
35474 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35475 return (void *)((wxObject *) ((wxMenuItem *) x));
35476 }
35477 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35478 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35479 }
35480 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35481 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35482 }
35483 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35484 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35485 }
35486 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35487 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35488 }
35489 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35490 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35491 }
35492 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35493 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35494 }
35495 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35496 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35497 }
35498 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35499 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35500 }
35501 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35502 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35503 }
35504 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35505 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35506 }
35507 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35508 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35509 }
35510 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35511 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35512 }
35513 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35514 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35515 }
35516 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35517 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35518 }
35519 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35520 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35521 }
35522 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35523 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35524 }
35525 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35526 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35527 }
35528 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35529 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35530 }
35531 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35532 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35533 }
35534 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35535 return (void *)((wxObject *) ((wxImageHandler *) x));
35536 }
35537 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35538 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35539 }
35540 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35541 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35542 }
35543 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35544 return (void *)((wxObject *) ((wxEvtHandler *) x));
35545 }
35546 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35547 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35548 }
35549 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35550 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35551 }
35552 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35553 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35554 }
35555 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
35556 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
35557 }
35558 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35559 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35560 }
35561 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35562 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35563 }
35564 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35565 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35566 }
35567 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35568 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35569 }
35570 static void *_p_wxImageTo_p_wxObject(void *x) {
35571 return (void *)((wxObject *) ((wxImage *) x));
35572 }
35573 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35574 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35575 }
35576 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35577 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35578 }
35579 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35580 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35581 }
35582 static void *_p_wxImageListTo_p_wxObject(void *x) {
35583 return (void *)((wxObject *) ((wxImageList *) x));
35584 }
35585 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35586 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35587 }
35588 static void *_p_wxCursorTo_p_wxObject(void *x) {
35589 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35590 }
35591 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35592 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35593 }
35594 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35595 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35596 }
35597 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35598 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35599 }
35600 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35601 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35602 }
35603 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35604 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35605 }
35606 static void *_p_wxWindowTo_p_wxObject(void *x) {
35607 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35608 }
35609 static void *_p_wxMenuTo_p_wxObject(void *x) {
35610 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35611 }
35612 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35613 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35614 }
35615 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35616 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35617 }
35618 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35619 return (void *)((wxObject *) ((wxFileSystem *) x));
35620 }
35621 static void *_p_wxBitmapTo_p_wxObject(void *x) {
35622 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35623 }
35624 static void *_p_wxMaskTo_p_wxObject(void *x) {
35625 return (void *)((wxObject *) ((wxMask *) x));
35626 }
35627 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35629 }
35630 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35631 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35632 }
35633 static void *_p_wxPyAppTo_p_wxObject(void *x) {
35634 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35635 }
35636 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35637 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35638 }
35639 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35640 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35641 }
35642 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35643 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35644 }
35645 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35646 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35647 }
35648 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35649 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35650 }
35651 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35652 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35653 }
35654 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35655 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35656 }
35657 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35658 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35659 }
35660 static void *_p_wxFontTo_p_wxObject(void *x) {
35661 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35662 }
35663 static void *_p_wxBrushTo_p_wxObject(void *x) {
35664 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35665 }
35666 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35667 return (void *)((wxObject *) ((wxMetaFile *) x));
35668 }
35669 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35670 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35671 }
35672 static void *_p_wxColourTo_p_wxObject(void *x) {
35673 return (void *)((wxObject *) ((wxColour *) x));
35674 }
35675 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35676 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35677 }
35678 static void *_p_wxValidatorTo_p_wxObject(void *x) {
35679 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35680 }
35681 static void *_p_wxControlTo_p_wxWindow(void *x) {
35682 return (void *)((wxWindow *) ((wxControl *) x));
35683 }
35684 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35685 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35686 }
35687 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35688 return (void *)((wxWindow *) ((wxMenuBar *) x));
35689 }
35690 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35691 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35692 }
35693 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35694 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35695 }
35696 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
35697 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
35698 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
35699 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};
35700 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35701 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35702 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35703 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
35704 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
35705 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35706 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
35707 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
35708 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35709 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35710 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35711 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35712 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
35713 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
35714 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
35715 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
35716 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35717 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35718 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35719 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35720 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
35721 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35722 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35723 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35724 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35725 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35726 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35727 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
35728 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
35729 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
35730 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
35731 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35732 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
35733 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
35734 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35735 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35736 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35737 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35738 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35739 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35740 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35741 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35742 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35743 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35744 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35745 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35746 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35747 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
35748 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35749 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
35750 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35751 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
35752 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
35753 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
35754 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35755 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35756 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35757 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35758 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35759 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35760 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35761 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35762 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35763 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35764 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35765 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
35766 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
35767 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35768 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35769 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35770 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35771 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35772 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35773 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35774 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35775 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35776 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35777 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35778 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35779 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35780 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35781 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35782 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35783 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35784 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35785 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35786 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35787 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35788 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35789 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
35790 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35791 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35792 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35793 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35794 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35795 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35796 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
35797 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35798 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
35799 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
35800 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
35801 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35802 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35803 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
35804 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
35805 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35806 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35807 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35808 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35809 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35810 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35811 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35812 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35813 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35814 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35815 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35816 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35817 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35818 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35819 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35820 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35821 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35822 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35823 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35824 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35825 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35826 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
35827 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
35828 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35829 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35830 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35831 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35832 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
35833 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
35834 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
35835 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
35836 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35837 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35838 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
35839 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
35840 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
35841 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
35842 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35843 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35844 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35845 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35846 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35847 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35848 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35849 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
35850 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
35851 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35852 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35853 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35854
35855 static swig_type_info *swig_type_initial[] = {
35856 &_swigt__p_buffer,
35857 &_swigt__p_char,
35858 &_swigt__p_double,
35859 &_swigt__p_form_ops_t,
35860 &_swigt__p_int,
35861 &_swigt__p_unsigned_char,
35862 &_swigt__p_unsigned_int,
35863 &_swigt__p_unsigned_long,
35864 &_swigt__p_void,
35865 &_swigt__p_wxANIHandler,
35866 &_swigt__p_wxAcceleratorTable,
35867 &_swigt__p_wxActivateEvent,
35868 &_swigt__p_wxAlphaPixelData,
35869 &_swigt__p_wxAlphaPixelData_Accessor,
35870 &_swigt__p_wxAutoBufferedPaintDC,
35871 &_swigt__p_wxBMPHandler,
35872 &_swigt__p_wxBitmap,
35873 &_swigt__p_wxBoxSizer,
35874 &_swigt__p_wxBrush,
35875 &_swigt__p_wxBrushList,
35876 &_swigt__p_wxBufferedDC,
35877 &_swigt__p_wxBufferedPaintDC,
35878 &_swigt__p_wxCURHandler,
35879 &_swigt__p_wxChar,
35880 &_swigt__p_wxChildFocusEvent,
35881 &_swigt__p_wxClientDC,
35882 &_swigt__p_wxClipboardTextEvent,
35883 &_swigt__p_wxCloseEvent,
35884 &_swigt__p_wxColor,
35885 &_swigt__p_wxColour,
35886 &_swigt__p_wxColourDatabase,
35887 &_swigt__p_wxCommandEvent,
35888 &_swigt__p_wxContextMenuEvent,
35889 &_swigt__p_wxControl,
35890 &_swigt__p_wxControlWithItems,
35891 &_swigt__p_wxCursor,
35892 &_swigt__p_wxDC,
35893 &_swigt__p_wxDCOverlay,
35894 &_swigt__p_wxDash,
35895 &_swigt__p_wxDateEvent,
35896 &_swigt__p_wxDisplayChangedEvent,
35897 &_swigt__p_wxDropFilesEvent,
35898 &_swigt__p_wxDuplexMode,
35899 &_swigt__p_wxEffects,
35900 &_swigt__p_wxEncodingConverter,
35901 &_swigt__p_wxEraseEvent,
35902 &_swigt__p_wxEvent,
35903 &_swigt__p_wxEvtHandler,
35904 &_swigt__p_wxFSFile,
35905 &_swigt__p_wxFileSystem,
35906 &_swigt__p_wxFlexGridSizer,
35907 &_swigt__p_wxFocusEvent,
35908 &_swigt__p_wxFont,
35909 &_swigt__p_wxFontList,
35910 &_swigt__p_wxFontMapper,
35911 &_swigt__p_wxGBSizerItem,
35912 &_swigt__p_wxGCDC,
35913 &_swigt__p_wxGDIObjListBase,
35914 &_swigt__p_wxGDIObject,
35915 &_swigt__p_wxGIFHandler,
35916 &_swigt__p_wxGraphicsContext,
35917 &_swigt__p_wxGraphicsPath,
35918 &_swigt__p_wxGridBagSizer,
35919 &_swigt__p_wxGridSizer,
35920 &_swigt__p_wxHeaderButtonParams,
35921 &_swigt__p_wxICOHandler,
35922 &_swigt__p_wxIcon,
35923 &_swigt__p_wxIconBundle,
35924 &_swigt__p_wxIconLocation,
35925 &_swigt__p_wxIconizeEvent,
35926 &_swigt__p_wxIdleEvent,
35927 &_swigt__p_wxImage,
35928 &_swigt__p_wxImageHandler,
35929 &_swigt__p_wxImageList,
35930 &_swigt__p_wxIndividualLayoutConstraint,
35931 &_swigt__p_wxInitDialogEvent,
35932 &_swigt__p_wxJPEGHandler,
35933 &_swigt__p_wxKeyEvent,
35934 &_swigt__p_wxLanguageInfo,
35935 &_swigt__p_wxLayoutConstraints,
35936 &_swigt__p_wxLocale,
35937 &_swigt__p_wxMask,
35938 &_swigt__p_wxMaximizeEvent,
35939 &_swigt__p_wxMemoryDC,
35940 &_swigt__p_wxMenu,
35941 &_swigt__p_wxMenuBar,
35942 &_swigt__p_wxMenuEvent,
35943 &_swigt__p_wxMenuItem,
35944 &_swigt__p_wxMetaFile,
35945 &_swigt__p_wxMetaFileDC,
35946 &_swigt__p_wxMirrorDC,
35947 &_swigt__p_wxMouseCaptureChangedEvent,
35948 &_swigt__p_wxMouseCaptureLostEvent,
35949 &_swigt__p_wxMouseEvent,
35950 &_swigt__p_wxMoveEvent,
35951 &_swigt__p_wxNativeEncodingInfo,
35952 &_swigt__p_wxNativeFontInfo,
35953 &_swigt__p_wxNativePixelData,
35954 &_swigt__p_wxNativePixelData_Accessor,
35955 &_swigt__p_wxNavigationKeyEvent,
35956 &_swigt__p_wxNcPaintEvent,
35957 &_swigt__p_wxNotifyEvent,
35958 &_swigt__p_wxObject,
35959 &_swigt__p_wxOverlay,
35960 &_swigt__p_wxPCXHandler,
35961 &_swigt__p_wxPNGHandler,
35962 &_swigt__p_wxPNMHandler,
35963 &_swigt__p_wxPaintDC,
35964 &_swigt__p_wxPaintEvent,
35965 &_swigt__p_wxPalette,
35966 &_swigt__p_wxPaletteChangedEvent,
35967 &_swigt__p_wxPaperSize,
35968 &_swigt__p_wxPen,
35969 &_swigt__p_wxPenList,
35970 &_swigt__p_wxPixelDataBase,
35971 &_swigt__p_wxPoint,
35972 &_swigt__p_wxPoint2D,
35973 &_swigt__p_wxPostScriptDC,
35974 &_swigt__p_wxPrintData,
35975 &_swigt__p_wxPrinterDC,
35976 &_swigt__p_wxPseudoDC,
35977 &_swigt__p_wxPyApp,
35978 &_swigt__p_wxPyCommandEvent,
35979 &_swigt__p_wxPyEvent,
35980 &_swigt__p_wxPyFontEnumerator,
35981 &_swigt__p_wxPyImageHandler,
35982 &_swigt__p_wxPyLocale,
35983 &_swigt__p_wxPySizer,
35984 &_swigt__p_wxPyValidator,
35985 &_swigt__p_wxQueryNewPaletteEvent,
35986 &_swigt__p_wxRect,
35987 &_swigt__p_wxRegion,
35988 &_swigt__p_wxRegionIterator,
35989 &_swigt__p_wxRendererNative,
35990 &_swigt__p_wxRendererVersion,
35991 &_swigt__p_wxScreenDC,
35992 &_swigt__p_wxScrollEvent,
35993 &_swigt__p_wxScrollWinEvent,
35994 &_swigt__p_wxSetCursorEvent,
35995 &_swigt__p_wxShowEvent,
35996 &_swigt__p_wxSize,
35997 &_swigt__p_wxSizeEvent,
35998 &_swigt__p_wxSizer,
35999 &_swigt__p_wxSizerItem,
36000 &_swigt__p_wxSplitterRenderParams,
36001 &_swigt__p_wxStaticBoxSizer,
36002 &_swigt__p_wxStdDialogButtonSizer,
36003 &_swigt__p_wxStockGDI,
36004 &_swigt__p_wxString,
36005 &_swigt__p_wxSysColourChangedEvent,
36006 &_swigt__p_wxTIFFHandler,
36007 &_swigt__p_wxUpdateUIEvent,
36008 &_swigt__p_wxValidator,
36009 &_swigt__p_wxWindow,
36010 &_swigt__p_wxWindowCreateEvent,
36011 &_swigt__p_wxWindowDC,
36012 &_swigt__p_wxWindowDestroyEvent,
36013 &_swigt__p_wxXPMHandler,
36014 };
36015
36016 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36017 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36018 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36019 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36020 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36021 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36022 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36023 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36024 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
36025 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36026 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36027 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36028 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36029 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36030 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36031 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}};
36032 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36033 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36034 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}};
36035 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36036 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36037 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36038 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36039 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}};
36040 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
36041 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36042 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36043 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36044 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36045 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36046 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36047 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36048 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36049 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}};
36050 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}};
36051 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36052 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36053 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36054 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36055 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36056 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36057 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36058 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36059 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36060 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}};
36061 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36062 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}};
36063 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36064 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36065 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36066 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36067 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36068 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36069 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36070 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36071 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36072 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36073 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36074 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36075 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36076 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36077 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36078 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36079 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36080 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36081 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36082 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36083 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36084 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36085 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36086 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36087 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36088 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36089 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36090 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36091 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36092 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36093 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36094 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36095 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36096 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36097 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36098 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36099 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36100 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36101 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36102 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36103 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36104 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36105 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36106 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36107 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36108 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36109 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36110 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36111 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36112 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36113 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36114 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36115 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36116 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36117 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36118 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36119 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36120 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36121 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36122 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36123 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36124 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36125 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36126 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36127 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36128 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36129 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36130 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36131 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36132 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36133 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36134 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36135 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36136 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36137 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36138 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36139 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36140 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36141 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36142 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36143 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36144 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36145 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36146 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}};
36147 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
36148 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36149 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36150 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36151 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36152 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36153 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}};
36154 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36155 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36156 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36157 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36158 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36159 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36160 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36161 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36162 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36163 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36164 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36165 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36166 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36167 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36168 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36169 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36170 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36171 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36172 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}};
36173 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}};
36174
36175 static swig_cast_info *swig_cast_initial[] = {
36176 _swigc__p_buffer,
36177 _swigc__p_char,
36178 _swigc__p_double,
36179 _swigc__p_form_ops_t,
36180 _swigc__p_int,
36181 _swigc__p_unsigned_char,
36182 _swigc__p_unsigned_int,
36183 _swigc__p_unsigned_long,
36184 _swigc__p_void,
36185 _swigc__p_wxANIHandler,
36186 _swigc__p_wxAcceleratorTable,
36187 _swigc__p_wxActivateEvent,
36188 _swigc__p_wxAlphaPixelData,
36189 _swigc__p_wxAlphaPixelData_Accessor,
36190 _swigc__p_wxAutoBufferedPaintDC,
36191 _swigc__p_wxBMPHandler,
36192 _swigc__p_wxBitmap,
36193 _swigc__p_wxBoxSizer,
36194 _swigc__p_wxBrush,
36195 _swigc__p_wxBrushList,
36196 _swigc__p_wxBufferedDC,
36197 _swigc__p_wxBufferedPaintDC,
36198 _swigc__p_wxCURHandler,
36199 _swigc__p_wxChar,
36200 _swigc__p_wxChildFocusEvent,
36201 _swigc__p_wxClientDC,
36202 _swigc__p_wxClipboardTextEvent,
36203 _swigc__p_wxCloseEvent,
36204 _swigc__p_wxColor,
36205 _swigc__p_wxColour,
36206 _swigc__p_wxColourDatabase,
36207 _swigc__p_wxCommandEvent,
36208 _swigc__p_wxContextMenuEvent,
36209 _swigc__p_wxControl,
36210 _swigc__p_wxControlWithItems,
36211 _swigc__p_wxCursor,
36212 _swigc__p_wxDC,
36213 _swigc__p_wxDCOverlay,
36214 _swigc__p_wxDash,
36215 _swigc__p_wxDateEvent,
36216 _swigc__p_wxDisplayChangedEvent,
36217 _swigc__p_wxDropFilesEvent,
36218 _swigc__p_wxDuplexMode,
36219 _swigc__p_wxEffects,
36220 _swigc__p_wxEncodingConverter,
36221 _swigc__p_wxEraseEvent,
36222 _swigc__p_wxEvent,
36223 _swigc__p_wxEvtHandler,
36224 _swigc__p_wxFSFile,
36225 _swigc__p_wxFileSystem,
36226 _swigc__p_wxFlexGridSizer,
36227 _swigc__p_wxFocusEvent,
36228 _swigc__p_wxFont,
36229 _swigc__p_wxFontList,
36230 _swigc__p_wxFontMapper,
36231 _swigc__p_wxGBSizerItem,
36232 _swigc__p_wxGCDC,
36233 _swigc__p_wxGDIObjListBase,
36234 _swigc__p_wxGDIObject,
36235 _swigc__p_wxGIFHandler,
36236 _swigc__p_wxGraphicsContext,
36237 _swigc__p_wxGraphicsPath,
36238 _swigc__p_wxGridBagSizer,
36239 _swigc__p_wxGridSizer,
36240 _swigc__p_wxHeaderButtonParams,
36241 _swigc__p_wxICOHandler,
36242 _swigc__p_wxIcon,
36243 _swigc__p_wxIconBundle,
36244 _swigc__p_wxIconLocation,
36245 _swigc__p_wxIconizeEvent,
36246 _swigc__p_wxIdleEvent,
36247 _swigc__p_wxImage,
36248 _swigc__p_wxImageHandler,
36249 _swigc__p_wxImageList,
36250 _swigc__p_wxIndividualLayoutConstraint,
36251 _swigc__p_wxInitDialogEvent,
36252 _swigc__p_wxJPEGHandler,
36253 _swigc__p_wxKeyEvent,
36254 _swigc__p_wxLanguageInfo,
36255 _swigc__p_wxLayoutConstraints,
36256 _swigc__p_wxLocale,
36257 _swigc__p_wxMask,
36258 _swigc__p_wxMaximizeEvent,
36259 _swigc__p_wxMemoryDC,
36260 _swigc__p_wxMenu,
36261 _swigc__p_wxMenuBar,
36262 _swigc__p_wxMenuEvent,
36263 _swigc__p_wxMenuItem,
36264 _swigc__p_wxMetaFile,
36265 _swigc__p_wxMetaFileDC,
36266 _swigc__p_wxMirrorDC,
36267 _swigc__p_wxMouseCaptureChangedEvent,
36268 _swigc__p_wxMouseCaptureLostEvent,
36269 _swigc__p_wxMouseEvent,
36270 _swigc__p_wxMoveEvent,
36271 _swigc__p_wxNativeEncodingInfo,
36272 _swigc__p_wxNativeFontInfo,
36273 _swigc__p_wxNativePixelData,
36274 _swigc__p_wxNativePixelData_Accessor,
36275 _swigc__p_wxNavigationKeyEvent,
36276 _swigc__p_wxNcPaintEvent,
36277 _swigc__p_wxNotifyEvent,
36278 _swigc__p_wxObject,
36279 _swigc__p_wxOverlay,
36280 _swigc__p_wxPCXHandler,
36281 _swigc__p_wxPNGHandler,
36282 _swigc__p_wxPNMHandler,
36283 _swigc__p_wxPaintDC,
36284 _swigc__p_wxPaintEvent,
36285 _swigc__p_wxPalette,
36286 _swigc__p_wxPaletteChangedEvent,
36287 _swigc__p_wxPaperSize,
36288 _swigc__p_wxPen,
36289 _swigc__p_wxPenList,
36290 _swigc__p_wxPixelDataBase,
36291 _swigc__p_wxPoint,
36292 _swigc__p_wxPoint2D,
36293 _swigc__p_wxPostScriptDC,
36294 _swigc__p_wxPrintData,
36295 _swigc__p_wxPrinterDC,
36296 _swigc__p_wxPseudoDC,
36297 _swigc__p_wxPyApp,
36298 _swigc__p_wxPyCommandEvent,
36299 _swigc__p_wxPyEvent,
36300 _swigc__p_wxPyFontEnumerator,
36301 _swigc__p_wxPyImageHandler,
36302 _swigc__p_wxPyLocale,
36303 _swigc__p_wxPySizer,
36304 _swigc__p_wxPyValidator,
36305 _swigc__p_wxQueryNewPaletteEvent,
36306 _swigc__p_wxRect,
36307 _swigc__p_wxRegion,
36308 _swigc__p_wxRegionIterator,
36309 _swigc__p_wxRendererNative,
36310 _swigc__p_wxRendererVersion,
36311 _swigc__p_wxScreenDC,
36312 _swigc__p_wxScrollEvent,
36313 _swigc__p_wxScrollWinEvent,
36314 _swigc__p_wxSetCursorEvent,
36315 _swigc__p_wxShowEvent,
36316 _swigc__p_wxSize,
36317 _swigc__p_wxSizeEvent,
36318 _swigc__p_wxSizer,
36319 _swigc__p_wxSizerItem,
36320 _swigc__p_wxSplitterRenderParams,
36321 _swigc__p_wxStaticBoxSizer,
36322 _swigc__p_wxStdDialogButtonSizer,
36323 _swigc__p_wxStockGDI,
36324 _swigc__p_wxString,
36325 _swigc__p_wxSysColourChangedEvent,
36326 _swigc__p_wxTIFFHandler,
36327 _swigc__p_wxUpdateUIEvent,
36328 _swigc__p_wxValidator,
36329 _swigc__p_wxWindow,
36330 _swigc__p_wxWindowCreateEvent,
36331 _swigc__p_wxWindowDC,
36332 _swigc__p_wxWindowDestroyEvent,
36333 _swigc__p_wxXPMHandler,
36334 };
36335
36336
36337 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36338
36339 static swig_const_info swig_const_table[] = {
36340 {0, 0, 0, 0.0, 0, 0}};
36341
36342 #ifdef __cplusplus
36343 }
36344 #endif
36345 /* -----------------------------------------------------------------------------
36346 * Type initialization:
36347 * This problem is tough by the requirement that no dynamic
36348 * memory is used. Also, since swig_type_info structures store pointers to
36349 * swig_cast_info structures and swig_cast_info structures store pointers back
36350 * to swig_type_info structures, we need some lookup code at initialization.
36351 * The idea is that swig generates all the structures that are needed.
36352 * The runtime then collects these partially filled structures.
36353 * The SWIG_InitializeModule function takes these initial arrays out of
36354 * swig_module, and does all the lookup, filling in the swig_module.types
36355 * array with the correct data and linking the correct swig_cast_info
36356 * structures together.
36357 *
36358 * The generated swig_type_info structures are assigned staticly to an initial
36359 * array. We just loop though that array, and handle each type individually.
36360 * First we lookup if this type has been already loaded, and if so, use the
36361 * loaded structure instead of the generated one. Then we have to fill in the
36362 * cast linked list. The cast data is initially stored in something like a
36363 * two-dimensional array. Each row corresponds to a type (there are the same
36364 * number of rows as there are in the swig_type_initial array). Each entry in
36365 * a column is one of the swig_cast_info structures for that type.
36366 * The cast_initial array is actually an array of arrays, because each row has
36367 * a variable number of columns. So to actually build the cast linked list,
36368 * we find the array of casts associated with the type, and loop through it
36369 * adding the casts to the list. The one last trick we need to do is making
36370 * sure the type pointer in the swig_cast_info struct is correct.
36371 *
36372 * First off, we lookup the cast->type name to see if it is already loaded.
36373 * There are three cases to handle:
36374 * 1) If the cast->type has already been loaded AND the type we are adding
36375 * casting info to has not been loaded (it is in this module), THEN we
36376 * replace the cast->type pointer with the type pointer that has already
36377 * been loaded.
36378 * 2) If BOTH types (the one we are adding casting info to, and the
36379 * cast->type) are loaded, THEN the cast info has already been loaded by
36380 * the previous module so we just ignore it.
36381 * 3) Finally, if cast->type has not already been loaded, then we add that
36382 * swig_cast_info to the linked list (because the cast->type) pointer will
36383 * be correct.
36384 * ----------------------------------------------------------------------------- */
36385
36386 #ifdef __cplusplus
36387 extern "C" {
36388 #if 0
36389 } /* c-mode */
36390 #endif
36391 #endif
36392
36393 #if 0
36394 #define SWIGRUNTIME_DEBUG
36395 #endif
36396
36397 SWIGRUNTIME void
36398 SWIG_InitializeModule(void *clientdata) {
36399 size_t i;
36400 swig_module_info *module_head;
36401 static int init_run = 0;
36402
36403 clientdata = clientdata;
36404
36405 if (init_run) return;
36406 init_run = 1;
36407
36408 /* Initialize the swig_module */
36409 swig_module.type_initial = swig_type_initial;
36410 swig_module.cast_initial = swig_cast_initial;
36411
36412 /* Try and load any already created modules */
36413 module_head = SWIG_GetModule(clientdata);
36414 if (module_head) {
36415 swig_module.next = module_head->next;
36416 module_head->next = &swig_module;
36417 } else {
36418 /* This is the first module loaded */
36419 swig_module.next = &swig_module;
36420 SWIG_SetModule(clientdata, &swig_module);
36421 }
36422
36423 /* Now work on filling in swig_module.types */
36424 #ifdef SWIGRUNTIME_DEBUG
36425 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36426 #endif
36427 for (i = 0; i < swig_module.size; ++i) {
36428 swig_type_info *type = 0;
36429 swig_type_info *ret;
36430 swig_cast_info *cast;
36431
36432 #ifdef SWIGRUNTIME_DEBUG
36433 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36434 #endif
36435
36436 /* if there is another module already loaded */
36437 if (swig_module.next != &swig_module) {
36438 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36439 }
36440 if (type) {
36441 /* Overwrite clientdata field */
36442 #ifdef SWIGRUNTIME_DEBUG
36443 printf("SWIG_InitializeModule: found type %s\n", type->name);
36444 #endif
36445 if (swig_module.type_initial[i]->clientdata) {
36446 type->clientdata = swig_module.type_initial[i]->clientdata;
36447 #ifdef SWIGRUNTIME_DEBUG
36448 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36449 #endif
36450 }
36451 } else {
36452 type = swig_module.type_initial[i];
36453 }
36454
36455 /* Insert casting types */
36456 cast = swig_module.cast_initial[i];
36457 while (cast->type) {
36458 /* Don't need to add information already in the list */
36459 ret = 0;
36460 #ifdef SWIGRUNTIME_DEBUG
36461 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36462 #endif
36463 if (swig_module.next != &swig_module) {
36464 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36465 #ifdef SWIGRUNTIME_DEBUG
36466 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36467 #endif
36468 }
36469 if (ret) {
36470 if (type == swig_module.type_initial[i]) {
36471 #ifdef SWIGRUNTIME_DEBUG
36472 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36473 #endif
36474 cast->type = ret;
36475 ret = 0;
36476 } else {
36477 /* Check for casting already in the list */
36478 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36479 #ifdef SWIGRUNTIME_DEBUG
36480 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36481 #endif
36482 if (!ocast) ret = 0;
36483 }
36484 }
36485
36486 if (!ret) {
36487 #ifdef SWIGRUNTIME_DEBUG
36488 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36489 #endif
36490 if (type->cast) {
36491 type->cast->prev = cast;
36492 cast->next = type->cast;
36493 }
36494 type->cast = cast;
36495 }
36496 cast++;
36497 }
36498 /* Set entry in modules->types array equal to the type */
36499 swig_module.types[i] = type;
36500 }
36501 swig_module.types[i] = 0;
36502
36503 #ifdef SWIGRUNTIME_DEBUG
36504 printf("**** SWIG_InitializeModule: Cast List ******\n");
36505 for (i = 0; i < swig_module.size; ++i) {
36506 int j = 0;
36507 swig_cast_info *cast = swig_module.cast_initial[i];
36508 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36509 while (cast->type) {
36510 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36511 cast++;
36512 ++j;
36513 }
36514 printf("---- Total casts: %d\n",j);
36515 }
36516 printf("**** SWIG_InitializeModule: Cast List ******\n");
36517 #endif
36518 }
36519
36520 /* This function will propagate the clientdata field of type to
36521 * any new swig_type_info structures that have been added into the list
36522 * of equivalent types. It is like calling
36523 * SWIG_TypeClientData(type, clientdata) a second time.
36524 */
36525 SWIGRUNTIME void
36526 SWIG_PropagateClientData(void) {
36527 size_t i;
36528 swig_cast_info *equiv;
36529 static int init_run = 0;
36530
36531 if (init_run) return;
36532 init_run = 1;
36533
36534 for (i = 0; i < swig_module.size; i++) {
36535 if (swig_module.types[i]->clientdata) {
36536 equiv = swig_module.types[i]->cast;
36537 while (equiv) {
36538 if (!equiv->converter) {
36539 if (equiv->type && !equiv->type->clientdata)
36540 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36541 }
36542 equiv = equiv->next;
36543 }
36544 }
36545 }
36546 }
36547
36548 #ifdef __cplusplus
36549 #if 0
36550 {
36551 /* c-mode */
36552 #endif
36553 }
36554 #endif
36555
36556
36557
36558 #ifdef __cplusplus
36559 extern "C" {
36560 #endif
36561
36562 /* Python-specific SWIG API */
36563 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36564 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36565 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36566
36567 /* -----------------------------------------------------------------------------
36568 * global variable support code.
36569 * ----------------------------------------------------------------------------- */
36570
36571 typedef struct swig_globalvar {
36572 char *name; /* Name of global variable */
36573 PyObject *(*get_attr)(void); /* Return the current value */
36574 int (*set_attr)(PyObject *); /* Set the value */
36575 struct swig_globalvar *next;
36576 } swig_globalvar;
36577
36578 typedef struct swig_varlinkobject {
36579 PyObject_HEAD
36580 swig_globalvar *vars;
36581 } swig_varlinkobject;
36582
36583 SWIGINTERN PyObject *
36584 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36585 return PyString_FromString("<Swig global variables>");
36586 }
36587
36588 SWIGINTERN PyObject *
36589 swig_varlink_str(swig_varlinkobject *v) {
36590 PyObject *str = PyString_FromString("(");
36591 swig_globalvar *var;
36592 for (var = v->vars; var; var=var->next) {
36593 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36594 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36595 }
36596 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36597 return str;
36598 }
36599
36600 SWIGINTERN int
36601 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36602 PyObject *str = swig_varlink_str(v);
36603 fprintf(fp,"Swig global variables ");
36604 fprintf(fp,"%s\n", PyString_AsString(str));
36605 Py_DECREF(str);
36606 return 0;
36607 }
36608
36609 SWIGINTERN void
36610 swig_varlink_dealloc(swig_varlinkobject *v) {
36611 swig_globalvar *var = v->vars;
36612 while (var) {
36613 swig_globalvar *n = var->next;
36614 free(var->name);
36615 free(var);
36616 var = n;
36617 }
36618 }
36619
36620 SWIGINTERN PyObject *
36621 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36622 PyObject *res = NULL;
36623 swig_globalvar *var = v->vars;
36624 while (var) {
36625 if (strcmp(var->name,n) == 0) {
36626 res = (*var->get_attr)();
36627 break;
36628 }
36629 var = var->next;
36630 }
36631 if (res == NULL && !PyErr_Occurred()) {
36632 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36633 }
36634 return res;
36635 }
36636
36637 SWIGINTERN int
36638 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36639 int res = 1;
36640 swig_globalvar *var = v->vars;
36641 while (var) {
36642 if (strcmp(var->name,n) == 0) {
36643 res = (*var->set_attr)(p);
36644 break;
36645 }
36646 var = var->next;
36647 }
36648 if (res == 1 && !PyErr_Occurred()) {
36649 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36650 }
36651 return res;
36652 }
36653
36654 SWIGINTERN PyTypeObject*
36655 swig_varlink_type(void) {
36656 static char varlink__doc__[] = "Swig var link object";
36657 static PyTypeObject varlink_type;
36658 static int type_init = 0;
36659 if (!type_init) {
36660 const PyTypeObject tmp
36661 = {
36662 PyObject_HEAD_INIT(NULL)
36663 0, /* Number of items in variable part (ob_size) */
36664 (char *)"swigvarlink", /* Type name (tp_name) */
36665 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36666 0, /* Itemsize (tp_itemsize) */
36667 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36668 (printfunc) swig_varlink_print, /* Print (tp_print) */
36669 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36670 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36671 0, /* tp_compare */
36672 (reprfunc) swig_varlink_repr, /* tp_repr */
36673 0, /* tp_as_number */
36674 0, /* tp_as_sequence */
36675 0, /* tp_as_mapping */
36676 0, /* tp_hash */
36677 0, /* tp_call */
36678 (reprfunc)swig_varlink_str, /* tp_str */
36679 0, /* tp_getattro */
36680 0, /* tp_setattro */
36681 0, /* tp_as_buffer */
36682 0, /* tp_flags */
36683 varlink__doc__, /* tp_doc */
36684 0, /* tp_traverse */
36685 0, /* tp_clear */
36686 0, /* tp_richcompare */
36687 0, /* tp_weaklistoffset */
36688 #if PY_VERSION_HEX >= 0x02020000
36689 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36690 #endif
36691 #if PY_VERSION_HEX >= 0x02030000
36692 0, /* tp_del */
36693 #endif
36694 #ifdef COUNT_ALLOCS
36695 0,0,0,0 /* tp_alloc -> tp_next */
36696 #endif
36697 };
36698 varlink_type = tmp;
36699 varlink_type.ob_type = &PyType_Type;
36700 type_init = 1;
36701 }
36702 return &varlink_type;
36703 }
36704
36705 /* Create a variable linking object for use later */
36706 SWIGINTERN PyObject *
36707 SWIG_Python_newvarlink(void) {
36708 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36709 if (result) {
36710 result->vars = 0;
36711 }
36712 return ((PyObject*) result);
36713 }
36714
36715 SWIGINTERN void
36716 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36717 swig_varlinkobject *v = (swig_varlinkobject *) p;
36718 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36719 if (gv) {
36720 size_t size = strlen(name)+1;
36721 gv->name = (char *)malloc(size);
36722 if (gv->name) {
36723 strncpy(gv->name,name,size);
36724 gv->get_attr = get_attr;
36725 gv->set_attr = set_attr;
36726 gv->next = v->vars;
36727 }
36728 }
36729 v->vars = gv;
36730 }
36731
36732 SWIGINTERN PyObject *
36733 SWIG_globals() {
36734 static PyObject *_SWIG_globals = 0;
36735 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36736 return _SWIG_globals;
36737 }
36738
36739 /* -----------------------------------------------------------------------------
36740 * constants/methods manipulation
36741 * ----------------------------------------------------------------------------- */
36742
36743 /* Install Constants */
36744 SWIGINTERN void
36745 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36746 PyObject *obj = 0;
36747 size_t i;
36748 for (i = 0; constants[i].type; ++i) {
36749 switch(constants[i].type) {
36750 case SWIG_PY_POINTER:
36751 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36752 break;
36753 case SWIG_PY_BINARY:
36754 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36755 break;
36756 default:
36757 obj = 0;
36758 break;
36759 }
36760 if (obj) {
36761 PyDict_SetItemString(d, constants[i].name, obj);
36762 Py_DECREF(obj);
36763 }
36764 }
36765 }
36766
36767 /* -----------------------------------------------------------------------------*/
36768 /* Fix SwigMethods to carry the callback ptrs when needed */
36769 /* -----------------------------------------------------------------------------*/
36770
36771 SWIGINTERN void
36772 SWIG_Python_FixMethods(PyMethodDef *methods,
36773 swig_const_info *const_table,
36774 swig_type_info **types,
36775 swig_type_info **types_initial) {
36776 size_t i;
36777 for (i = 0; methods[i].ml_name; ++i) {
36778 const char *c = methods[i].ml_doc;
36779 if (c && (c = strstr(c, "swig_ptr: "))) {
36780 int j;
36781 swig_const_info *ci = 0;
36782 const char *name = c + 10;
36783 for (j = 0; const_table[j].type; ++j) {
36784 if (strncmp(const_table[j].name, name,
36785 strlen(const_table[j].name)) == 0) {
36786 ci = &(const_table[j]);
36787 break;
36788 }
36789 }
36790 if (ci) {
36791 size_t shift = (ci->ptype) - types;
36792 swig_type_info *ty = types_initial[shift];
36793 size_t ldoc = (c - methods[i].ml_doc);
36794 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36795 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36796 if (ndoc) {
36797 char *buff = ndoc;
36798 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36799 if (ptr) {
36800 strncpy(buff, methods[i].ml_doc, ldoc);
36801 buff += ldoc;
36802 strncpy(buff, "swig_ptr: ", 10);
36803 buff += 10;
36804 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36805 methods[i].ml_doc = ndoc;
36806 }
36807 }
36808 }
36809 }
36810 }
36811 }
36812
36813 #ifdef __cplusplus
36814 }
36815 #endif
36816
36817 /* -----------------------------------------------------------------------------*
36818 * Partial Init method
36819 * -----------------------------------------------------------------------------*/
36820
36821 #ifdef __cplusplus
36822 extern "C"
36823 #endif
36824 SWIGEXPORT void SWIG_init(void) {
36825 PyObject *m, *d;
36826
36827 /* Fix SwigMethods to carry the callback ptrs when needed */
36828 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36829
36830 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36831 d = PyModule_GetDict(m);
36832
36833 SWIG_InitializeModule(0);
36834 SWIG_InstallConstants(d,swig_const_table);
36835
36836
36837 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36838 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36839 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
36840 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36841 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
36842 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36843 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36844 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36845 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36846 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36847 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36848 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36849 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36850 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36851 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36852 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36853 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36854 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36855 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36856 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36857 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36858 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36859 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36860 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36861 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36862 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36863 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36864 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36865 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36866 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36867 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36868 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36869 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36870 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36871 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36872 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36873 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36874 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36875 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36876 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36877 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36878 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36879 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36880 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36881 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36882 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36883 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36884 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36885 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36886 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36887 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36888 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36889 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36890 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36891 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36892 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36893 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36894 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36895 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36896 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36897 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36898 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36899 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36900 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36901 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36902 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36903 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36904 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36905 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36906 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36907 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36908 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36909 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36910 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36911 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36912 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36913 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36914 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36915 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36916 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36917 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36918 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36919 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36920 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36921 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36922 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36923 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36924 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36925 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36926 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36927 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36928 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36929 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36930 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36931 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36932 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36933 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36934 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36935 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36936 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36937 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36938 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36939 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36940 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36941 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36942 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36943 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36944 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36945 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36946 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36947 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36948 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36949 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36950 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36951 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36952 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36953 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36954 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36955 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36956 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36957 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36958 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36959 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36960 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36961 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36962 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36963 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36964 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36965 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36966 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36967 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36968 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36969
36970 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36971
36972 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36973 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36974 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36975 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36976 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36977 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36978 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36979 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36980 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36981 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36982 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36983 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36984 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36985 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36986 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36987 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36988 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36989 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36990 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36991 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36992 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36993 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36994 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36995 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36996 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36997 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36998 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36999 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37000 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37001 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37002 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37003 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37004 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37005 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37006 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37007 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37008 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37009 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37010 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37011 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37012 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37013 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37014 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37015 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37016 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37017 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37018 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37019 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37020 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37021 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37022 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37023 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37024 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37025 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37026 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37027 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37028 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37029 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37030 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37031 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37032 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37033 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37034 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37035 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37036 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37037 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37038 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37039 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37040 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37041 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37042 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37043 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37044 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37045 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37046 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37047 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37048 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37049 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37050 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37051 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37052 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37053 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37054 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37055 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37056 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37057 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37058 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37059 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37060 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37061 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37062 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37063 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37064 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37065 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37066 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37067 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37068 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37069 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37070 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37071 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37072 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37073 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37074 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37075 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37076 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37077 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37078 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37079 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37080 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37081 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37082 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37083 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37084 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37085 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37086 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37087 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37088 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37089 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37090 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37091 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37092 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37093 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37094 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37095 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37096 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37097 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37098 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37099 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37100 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37101 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37102 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37103 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37104 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37105 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37106 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37107 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37108 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37109 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37110 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37111 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37112 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37113 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37114 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37115 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37116 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37117 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37118 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37119 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37120 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37121 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37122 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37123 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37124 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37125 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37126 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37127 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37128 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37129 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37130 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37131 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37132 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37133 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37134 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37135 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37136 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37137 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37138 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37139 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37140 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37141 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37142 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37143 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37144 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37145 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37146 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37147 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37148 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37149 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37150 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37151 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37152 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37153 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37154 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37155 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37156 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37157 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37158 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37159 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37160 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37161 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37162 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37163 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37164 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37165 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37166 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37167 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37168 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37169 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37170 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37171 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37172 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37173 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37174 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37175 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37176 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37177 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37178 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37179 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37180 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37181 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37182 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37183 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37184 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37185 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37186 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37187 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37188 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37189 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37190 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37191 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37192 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37193 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37194 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37195 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37196 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37197 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37198 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37199 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37200 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37201 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37202 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37203 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37204 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37205 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37206 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37207 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37208 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37209 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37210 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37211 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37212 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37213 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37214 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37215 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37216 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37217 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37218 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37219 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37220 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37221 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37222 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37223 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37224 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37225 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37226 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37227 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37228 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37229 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37230 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37231 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37232 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37233 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37234 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37235 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37236 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37237 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37238 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37239 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37240 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37241 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37242 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37243 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37244 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37245 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37246 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37247 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37248 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37249 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37250 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37251 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37252 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37253 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37254 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37255 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37256 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37257 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37258 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37259 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37260 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37261 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37262 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37263 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37264 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37265 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37266 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37267 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37268 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37269 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37270 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37271 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37272 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37273 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37274 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37275 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37276 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37277 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37278 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37279 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37280 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37281 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37282 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37283 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37284 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37285 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37286 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37287 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37288 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37289 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37290 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37291
37292 // Work around a chicken/egg problem in drawlist.cpp
37293 wxPyDrawList_SetAPIPtr();
37294
37295 }
37296