]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Add missing "public" so wxGridCellRenderer methods will have wrappers
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480 #define SWIGTYPE_p_wxBitmap swig_types[14]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482 #define SWIGTYPE_p_wxBrush swig_types[16]
2483 #define SWIGTYPE_p_wxBrushList swig_types[17]
2484 #define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486 #define SWIGTYPE_p_wxCURHandler swig_types[20]
2487 #define SWIGTYPE_p_wxChar swig_types[21]
2488 #define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489 #define SWIGTYPE_p_wxClientDC swig_types[23]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492 #define SWIGTYPE_p_wxColour swig_types[26]
2493 #define SWIGTYPE_p_wxColourDatabase swig_types[27]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[28]
2495 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
2496 #define SWIGTYPE_p_wxControl swig_types[30]
2497 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
2498 #define SWIGTYPE_p_wxCursor swig_types[32]
2499 #define SWIGTYPE_p_wxDC swig_types[33]
2500 #define SWIGTYPE_p_wxDash swig_types[34]
2501 #define SWIGTYPE_p_wxDateEvent swig_types[35]
2502 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2503 #define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDuplexMode swig_types[38]
2505 #define SWIGTYPE_p_wxEffects swig_types[39]
2506 #define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2507 #define SWIGTYPE_p_wxEraseEvent swig_types[41]
2508 #define SWIGTYPE_p_wxEvent swig_types[42]
2509 #define SWIGTYPE_p_wxEvtHandler swig_types[43]
2510 #define SWIGTYPE_p_wxFSFile swig_types[44]
2511 #define SWIGTYPE_p_wxFileSystem swig_types[45]
2512 #define SWIGTYPE_p_wxFlexGridSizer swig_types[46]
2513 #define SWIGTYPE_p_wxFocusEvent swig_types[47]
2514 #define SWIGTYPE_p_wxFont swig_types[48]
2515 #define SWIGTYPE_p_wxFontList swig_types[49]
2516 #define SWIGTYPE_p_wxFontMapper swig_types[50]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[51]
2518 #define SWIGTYPE_p_wxGDIObjListBase swig_types[52]
2519 #define SWIGTYPE_p_wxGDIObject swig_types[53]
2520 #define SWIGTYPE_p_wxGIFHandler swig_types[54]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[55]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[56]
2523 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[57]
2524 #define SWIGTYPE_p_wxICOHandler swig_types[58]
2525 #define SWIGTYPE_p_wxIcon swig_types[59]
2526 #define SWIGTYPE_p_wxIconBundle swig_types[60]
2527 #define SWIGTYPE_p_wxIconLocation swig_types[61]
2528 #define SWIGTYPE_p_wxIconizeEvent swig_types[62]
2529 #define SWIGTYPE_p_wxIdleEvent swig_types[63]
2530 #define SWIGTYPE_p_wxImage swig_types[64]
2531 #define SWIGTYPE_p_wxImageHandler swig_types[65]
2532 #define SWIGTYPE_p_wxImageList swig_types[66]
2533 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[67]
2534 #define SWIGTYPE_p_wxInitDialogEvent swig_types[68]
2535 #define SWIGTYPE_p_wxJPEGHandler swig_types[69]
2536 #define SWIGTYPE_p_wxKeyEvent swig_types[70]
2537 #define SWIGTYPE_p_wxLanguageInfo swig_types[71]
2538 #define SWIGTYPE_p_wxLayoutConstraints swig_types[72]
2539 #define SWIGTYPE_p_wxLocale swig_types[73]
2540 #define SWIGTYPE_p_wxMask swig_types[74]
2541 #define SWIGTYPE_p_wxMaximizeEvent swig_types[75]
2542 #define SWIGTYPE_p_wxMemoryDC swig_types[76]
2543 #define SWIGTYPE_p_wxMenu swig_types[77]
2544 #define SWIGTYPE_p_wxMenuBar swig_types[78]
2545 #define SWIGTYPE_p_wxMenuEvent swig_types[79]
2546 #define SWIGTYPE_p_wxMenuItem swig_types[80]
2547 #define SWIGTYPE_p_wxMetaFile swig_types[81]
2548 #define SWIGTYPE_p_wxMetaFileDC swig_types[82]
2549 #define SWIGTYPE_p_wxMirrorDC swig_types[83]
2550 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[85]
2552 #define SWIGTYPE_p_wxMouseEvent swig_types[86]
2553 #define SWIGTYPE_p_wxMoveEvent swig_types[87]
2554 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[88]
2555 #define SWIGTYPE_p_wxNativeFontInfo swig_types[89]
2556 #define SWIGTYPE_p_wxNativePixelData swig_types[90]
2557 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[91]
2558 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNcPaintEvent swig_types[93]
2560 #define SWIGTYPE_p_wxNotifyEvent swig_types[94]
2561 #define SWIGTYPE_p_wxObject swig_types[95]
2562 #define SWIGTYPE_p_wxPCXHandler swig_types[96]
2563 #define SWIGTYPE_p_wxPNGHandler swig_types[97]
2564 #define SWIGTYPE_p_wxPNMHandler swig_types[98]
2565 #define SWIGTYPE_p_wxPaintDC swig_types[99]
2566 #define SWIGTYPE_p_wxPaintEvent swig_types[100]
2567 #define SWIGTYPE_p_wxPalette swig_types[101]
2568 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102]
2569 #define SWIGTYPE_p_wxPaperSize swig_types[103]
2570 #define SWIGTYPE_p_wxPen swig_types[104]
2571 #define SWIGTYPE_p_wxPenList swig_types[105]
2572 #define SWIGTYPE_p_wxPixelDataBase swig_types[106]
2573 #define SWIGTYPE_p_wxPoint swig_types[107]
2574 #define SWIGTYPE_p_wxPostScriptDC swig_types[108]
2575 #define SWIGTYPE_p_wxPrintData swig_types[109]
2576 #define SWIGTYPE_p_wxPrinterDC swig_types[110]
2577 #define SWIGTYPE_p_wxPseudoDC swig_types[111]
2578 #define SWIGTYPE_p_wxPyApp swig_types[112]
2579 #define SWIGTYPE_p_wxPyCommandEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPyEvent swig_types[114]
2581 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[115]
2582 #define SWIGTYPE_p_wxPyImageHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPyLocale swig_types[117]
2584 #define SWIGTYPE_p_wxPySizer swig_types[118]
2585 #define SWIGTYPE_p_wxPyValidator swig_types[119]
2586 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[120]
2587 #define SWIGTYPE_p_wxRect swig_types[121]
2588 #define SWIGTYPE_p_wxRegion swig_types[122]
2589 #define SWIGTYPE_p_wxRegionIterator swig_types[123]
2590 #define SWIGTYPE_p_wxRendererNative swig_types[124]
2591 #define SWIGTYPE_p_wxRendererVersion swig_types[125]
2592 #define SWIGTYPE_p_wxScreenDC swig_types[126]
2593 #define SWIGTYPE_p_wxScrollEvent swig_types[127]
2594 #define SWIGTYPE_p_wxScrollWinEvent swig_types[128]
2595 #define SWIGTYPE_p_wxSetCursorEvent swig_types[129]
2596 #define SWIGTYPE_p_wxShowEvent swig_types[130]
2597 #define SWIGTYPE_p_wxSize swig_types[131]
2598 #define SWIGTYPE_p_wxSizeEvent swig_types[132]
2599 #define SWIGTYPE_p_wxSizer swig_types[133]
2600 #define SWIGTYPE_p_wxSizerItem swig_types[134]
2601 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[135]
2602 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[136]
2603 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[137]
2604 #define SWIGTYPE_p_wxStockGDI swig_types[138]
2605 #define SWIGTYPE_p_wxString swig_types[139]
2606 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140]
2607 #define SWIGTYPE_p_wxTIFFHandler swig_types[141]
2608 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[142]
2609 #define SWIGTYPE_p_wxValidator swig_types[143]
2610 #define SWIGTYPE_p_wxWindow swig_types[144]
2611 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[145]
2612 #define SWIGTYPE_p_wxWindowDC swig_types[146]
2613 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[147]
2614 #define SWIGTYPE_p_wxXPMHandler swig_types[148]
2615 static swig_type_info *swig_types[150];
2616 static swig_module_info swig_module = {swig_types, 149, 0, 0, 0, 0};
2617 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2618 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2619
2620 /* -------- TYPES TABLE (END) -------- */
2621
2622 #if (PY_VERSION_HEX <= 0x02000000)
2623 # if !defined(SWIG_PYTHON_CLASSIC)
2624 # error "This python version requires to use swig with the '-classic' option"
2625 # endif
2626 #endif
2627 #if (PY_VERSION_HEX <= 0x02020000)
2628 # error "This python version requires to use swig with the '-nomodern' option"
2629 #endif
2630 #if (PY_VERSION_HEX <= 0x02020000)
2631 # error "This python version requires to use swig with the '-nomodernargs' option"
2632 #endif
2633 #ifndef METH_O
2634 # error "This python version requires to use swig with the '-nofastunpack' option"
2635 #endif
2636
2637 /*-----------------------------------------------
2638 @(target):= _gdi_.so
2639 ------------------------------------------------*/
2640 #define SWIG_init init_gdi_
2641
2642 #define SWIG_name "_gdi_"
2643
2644 #define SWIGVERSION 0x010329
2645
2646
2647 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2648 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2649
2650
2651 #include <stdexcept>
2652
2653
2654 namespace swig {
2655 class PyObject_ptr {
2656 protected:
2657 PyObject *_obj;
2658
2659 public:
2660 PyObject_ptr() :_obj(0)
2661 {
2662 }
2663
2664 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2665 {
2666 Py_XINCREF(_obj);
2667 }
2668
2669 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2670 {
2671 if (initial_ref) Py_XINCREF(_obj);
2672 }
2673
2674 PyObject_ptr & operator=(const PyObject_ptr& item)
2675 {
2676 Py_XINCREF(item._obj);
2677 Py_XDECREF(_obj);
2678 _obj = item._obj;
2679 return *this;
2680 }
2681
2682 ~PyObject_ptr()
2683 {
2684 Py_XDECREF(_obj);
2685 }
2686
2687 operator PyObject *() const
2688 {
2689 return _obj;
2690 }
2691
2692 PyObject *operator->() const
2693 {
2694 return _obj;
2695 }
2696 };
2697 }
2698
2699
2700 namespace swig {
2701 struct PyObject_var : PyObject_ptr {
2702 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2703
2704 PyObject_var & operator = (PyObject* obj)
2705 {
2706 Py_XDECREF(_obj);
2707 _obj = obj;
2708 return *this;
2709 }
2710 };
2711 }
2712
2713
2714 #include "wx/wxPython/wxPython.h"
2715 #include "wx/wxPython/pyclasses.h"
2716
2717
2718 static const wxString wxPyEmptyString(wxEmptyString);
2719
2720 #define SWIG_From_long PyInt_FromLong
2721
2722
2723 SWIGINTERNINLINE PyObject *
2724 SWIG_From_int (int value)
2725 {
2726 return SWIG_From_long (value);
2727 }
2728
2729
2730 #include <limits.h>
2731 #ifndef LLONG_MIN
2732 # define LLONG_MIN LONG_LONG_MIN
2733 #endif
2734 #ifndef LLONG_MAX
2735 # define LLONG_MAX LONG_LONG_MAX
2736 #endif
2737 #ifndef ULLONG_MAX
2738 # define ULLONG_MAX ULONG_LONG_MAX
2739 #endif
2740
2741
2742 SWIGINTERN int
2743 SWIG_AsVal_long (PyObject* obj, long* val)
2744 {
2745 if (PyNumber_Check(obj)) {
2746 if (val) *val = PyInt_AsLong(obj);
2747 return SWIG_OK;
2748 }
2749 return SWIG_TypeError;
2750 }
2751
2752
2753 SWIGINTERN int
2754 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2755 {
2756 long v = 0;
2757 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2758 return SWIG_TypeError;
2759 }
2760 else if (val)
2761 *val = (unsigned long)v;
2762 return SWIG_OK;
2763 }
2764
2765
2766 SWIGINTERN int
2767 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2768 {
2769 unsigned long v;
2770 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2771 if (SWIG_IsOK(res)) {
2772 if ((v > UCHAR_MAX)) {
2773 return SWIG_OverflowError;
2774 } else {
2775 if (val) *val = static_cast< unsigned char >(v);
2776 }
2777 }
2778 return res;
2779 }
2780
2781
2782 SWIGINTERNINLINE PyObject*
2783 SWIG_From_unsigned_SS_long (unsigned long value)
2784 {
2785 return (value > LONG_MAX) ?
2786 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2787 }
2788
2789
2790 SWIGINTERNINLINE PyObject *
2791 SWIG_From_unsigned_SS_char (unsigned char value)
2792 {
2793 return SWIG_From_unsigned_SS_long (value);
2794 }
2795
2796 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2797 wxColour temp, *obj = &temp;
2798 if ( other == Py_None ) return false;
2799 if ( ! wxColour_helper(other, &obj) ) {
2800 PyErr_Clear();
2801 return false;
2802 }
2803 return self->operator==(*obj);
2804 }
2805 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return true;
2808 if ( ! wxColour_helper(other, &obj)) {
2809 PyErr_Clear();
2810 return true;
2811 }
2812 return self->operator!=(*obj);
2813 }
2814
2815 SWIGINTERN int
2816 SWIG_AsVal_bool (PyObject *obj, bool *val)
2817 {
2818 if (obj == Py_True) {
2819 if (val) *val = true;
2820 return SWIG_OK;
2821 } else if (obj == Py_False) {
2822 if (val) *val = false;
2823 return SWIG_OK;
2824 } else {
2825 long v = 0;
2826 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2827 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2828 return res;
2829 }
2830 }
2831
2832 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2833 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2834 int red = -1;
2835 int green = -1;
2836 int blue = -1;
2837 int alpha = wxALPHA_OPAQUE;
2838 if (self->Ok()) {
2839 red = self->Red();
2840 green = self->Green();
2841 blue = self->Blue();
2842 alpha = self->Alpha();
2843 }
2844 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2845 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2846 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2847 if (includeAlpha)
2848 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2849 return rv;
2850 }
2851 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2852 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2853 }
2854
2855 SWIGINTERN int
2856 SWIG_AsVal_int (PyObject * obj, int *val)
2857 {
2858 long v;
2859 int res = SWIG_AsVal_long (obj, &v);
2860 if (SWIG_IsOK(res)) {
2861 if ((v < INT_MIN || v > INT_MAX)) {
2862 return SWIG_OverflowError;
2863 } else {
2864 if (val) *val = static_cast< int >(v);
2865 }
2866 }
2867 return res;
2868 }
2869
2870 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2871 wxDash* dashes;
2872 int count = self->GetDashes(&dashes);
2873 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2874 PyObject* retval = PyList_New(0);
2875 for (int x=0; x<count; x++) {
2876 PyObject* pyint = PyInt_FromLong(dashes[x]);
2877 PyList_Append(retval, pyint);
2878 Py_DECREF(pyint);
2879 }
2880 wxPyEndBlockThreads(blocked);
2881 return retval;
2882 }
2883 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2884 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2885 int size = PyList_Size(pyDashes);
2886 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2887
2888 // black magic warning! The array of wxDashes needs to exist as
2889 // long as the pen does because wxPen does not copy the array. So
2890 // stick a copy in a Python string object and attach it to _self,
2891 // and then call SetDashes with a pointer to that array. Then
2892 // when the Python pen object is destroyed the array will be
2893 // cleaned up too.
2894 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2895 PyObject_SetAttrString(_self, "_dashes", strDashes);
2896
2897 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2898 delete [] dashes;
2899 Py_DECREF(strDashes);
2900 wxPyEndBlockThreads(blocked);
2901 }
2902 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2903 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2904
2905 #include <wx/rawbmp.h>
2906
2907
2908 #include <wx/image.h>
2909
2910 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2911 char** cArray = NULL;
2912 int count;
2913
2914 if (!PyList_Check(listOfStrings)) {
2915 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2916 return NULL;
2917 }
2918 count = PyList_Size(listOfStrings);
2919 cArray = new char*[count];
2920
2921 for(int x=0; x<count; x++) {
2922 // TODO: Need some validation and error checking here
2923 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2924 }
2925 return cArray;
2926 }
2927
2928
2929 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2930 char** cArray = NULL;
2931 wxBitmap* bmp;
2932
2933 cArray = ConvertListOfStrings(listOfStrings);
2934 if (! cArray)
2935 return NULL;
2936 bmp = new wxBitmap(cArray);
2937 delete [] cArray;
2938 return bmp;
2939 }
2940 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2941 char* buf;
2942 Py_ssize_t length;
2943 PyString_AsStringAndSize(bits, &buf, &length);
2944 return new wxBitmap(buf, width, height, depth);
2945 }
2946 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2947 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2948 wxSize size(self->GetWidth(), self->GetHeight());
2949 return size;
2950 }
2951 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2952 wxMask *mask = new wxMask(*self, colour);
2953 self->SetMask(mask);
2954 }
2955 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2956 self->SetWidth(size.x);
2957 self->SetHeight(size.y);
2958 }
2959 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2960 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2961
2962 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2963 // appears to me that the other platforms are already doing it, so I'll just
2964 // automatically do it for wxMSW here.
2965 #ifdef __WXMSW__
2966 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2967 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2968 #else
2969 #define wxPy_premultiply(p, a) (p)
2970 #define wxPy_unpremultiply(p, a) (p)
2971 #endif
2972
2973
2974 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2975 buffer data, int DATASIZE,
2976 buffer alpha, int ALPHASIZE)
2977 {
2978 if (DATASIZE != width*height*3) {
2979 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2980 return NULL;
2981 }
2982
2983 if (ALPHASIZE != width*height) {
2984 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2985 return NULL;
2986 }
2987
2988 wxBitmap* bmp = new wxBitmap(width, height, 32);
2989 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2990 if (! pixData) {
2991 // raise an exception...
2992 wxPyErr_SetString(PyExc_RuntimeError,
2993 "Failed to gain raw access to bitmap data.");
2994 return NULL;
2995 }
2996
2997 pixData.UseAlpha();
2998 wxAlphaPixelData::Iterator p(pixData);
2999 for (int y=0; y<height; y++) {
3000 wxAlphaPixelData::Iterator rowStart = p;
3001 for (int x=0; x<width; x++) {
3002 byte a = *(alpha++);
3003 p.Red() = wxPy_premultiply(*(data++), a);
3004 p.Green() = wxPy_premultiply(*(data++), a);
3005 p.Blue() = wxPy_premultiply(*(data++), a);
3006 p.Alpha() = a;
3007 ++p;
3008 }
3009 p = rowStart;
3010 p.OffsetY(pixData, 1);
3011 }
3012 return bmp;
3013 }
3014
3015 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3016 {
3017 if (DATASIZE != width*height*3) {
3018 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3019 return NULL;
3020 }
3021
3022 wxBitmap* bmp = new wxBitmap(width, height, 24);
3023 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3024 if (! pixData) {
3025 // raise an exception...
3026 wxPyErr_SetString(PyExc_RuntimeError,
3027 "Failed to gain raw access to bitmap data.");
3028 return NULL;
3029 }
3030
3031 wxNativePixelData::Iterator p(pixData);
3032 for (int y=0; y<height; y++) {
3033 wxNativePixelData::Iterator rowStart = p;
3034 for (int x=0; x<width; x++) {
3035 p.Red() = *(data++);
3036 p.Green() = *(data++);
3037 p.Blue() = *(data++);
3038 ++p;
3039 }
3040 p = rowStart;
3041 p.OffsetY(pixData, 1);
3042 }
3043 return bmp;
3044 }
3045
3046
3047 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3048 {
3049 if (DATASIZE != width*height*4) {
3050 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3051 return NULL;
3052 }
3053
3054 wxBitmap* bmp = new wxBitmap(width, height, 32);
3055 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3056 if (! pixData) {
3057 // raise an exception...
3058 wxPyErr_SetString(PyExc_RuntimeError,
3059 "Failed to gain raw access to bitmap data.");
3060 return NULL;
3061 }
3062
3063 pixData.UseAlpha();
3064 wxAlphaPixelData::Iterator p(pixData);
3065 for (int y=0; y<height; y++) {
3066 wxAlphaPixelData::Iterator rowStart = p;
3067 for (int x=0; x<width; x++) {
3068 byte a = data[3];
3069 p.Red() = wxPy_premultiply(*(data++), a);
3070 p.Green() = wxPy_premultiply(*(data++), a);
3071 p.Blue() = wxPy_premultiply(*(data++), a);
3072 p.Alpha() = a; data++;
3073 ++p;
3074 }
3075 p = rowStart;
3076 p.OffsetY(pixData, 1);
3077 }
3078 return bmp;
3079 }
3080
3081
3082 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3083
3084 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3085 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3086 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3087 self->Red() = red;
3088 self->Green() = green;
3089 self->Blue() = blue;
3090 }
3091 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3092 PyObject* rv = PyTuple_New(3);
3093 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3094 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3095 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3096 return rv;
3097 }
3098
3099 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3100
3101 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3102 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3103 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3104 self->Red() = wxPy_premultiply(red, alpha);
3105 self->Green() = wxPy_premultiply(green, alpha);
3106 self->Blue() = wxPy_premultiply(blue, alpha);
3107 self->Alpha() = alpha;
3108 }
3109 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3110 PyObject* rv = PyTuple_New(4);
3111 int red = self->Red();
3112 int green = self->Green();
3113 int blue = self->Blue();
3114 int alpha = self->Alpha();
3115
3116 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3117 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3118 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3119 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3120 return rv;
3121 }
3122 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3123 if ( !colour.Ok() )
3124 return new wxMask(bitmap, *wxBLACK);
3125 else
3126 return new wxMask(bitmap, colour);
3127 }
3128
3129 #include <wx/iconbndl.h>
3130
3131 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3132 wxIcon* icon = new wxIcon();
3133 icon->CopyFromBitmap(bmp);
3134 return icon;
3135 }
3136 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3137 char** cArray = NULL;
3138 wxIcon* icon;
3139
3140 cArray = ConvertListOfStrings(listOfStrings);
3141 if (! cArray)
3142 return NULL;
3143 icon = new wxIcon(cArray);
3144 delete [] cArray;
3145 return icon;
3146 }
3147 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3148 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3149
3150 return new wxIconLocation(*filename, num);
3151
3152
3153
3154 }
3155 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3156
3157 self->SetIndex(num);
3158
3159
3160
3161 }
3162 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3163
3164 return self->GetIndex();
3165
3166
3167
3168 }
3169 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3170 #ifdef __WXGTK__
3171 wxImage img(cursorName, type);
3172 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3173 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3174 return new wxCursor(img);
3175 #else
3176 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3177 #endif
3178 }
3179 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3180
3181
3182 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3183 (*self) ++;
3184 }
3185 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3186 return self->operator bool();
3187 }
3188
3189 #include <wx/fontutil.h>
3190 #include <wx/fontmap.h>
3191 #include <wx/fontenum.h>
3192
3193 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3194 return self->ToString();
3195 }
3196
3197 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3198 { wxPyRaiseNotImplemented(); return NULL; }
3199
3200 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3201 { wxPyRaiseNotImplemented(); return false; }
3202
3203
3204 SWIGINTERNINLINE PyObject *
3205 SWIG_From_size_t (size_t value)
3206 {
3207 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3208 }
3209
3210
3211 SWIGINTERNINLINE int
3212 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3213 {
3214 unsigned long v;
3215 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3216 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3217 return res;
3218 }
3219
3220 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3221 wxFontEncoding alt_enc;
3222 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3223 return PyInt_FromLong(alt_enc);
3224 else {
3225 Py_INCREF(Py_None);
3226 return Py_None;
3227 }
3228 }
3229 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3230 wxNativeFontInfo nfi;
3231 nfi.FromString(info);
3232 return new wxFont(nfi);
3233 }
3234 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3235 return wxFont::New(pointSize, family, flags, face, encoding);
3236 }
3237 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3238 return wxFontBase::New(pixelSize, family,
3239 style, weight, underlined,
3240 face, encoding);
3241 }
3242 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3243 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3244 }
3245 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3246 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3247
3248 class wxPyFontEnumerator : public wxFontEnumerator {
3249 public:
3250 wxPyFontEnumerator() {}
3251 ~wxPyFontEnumerator() {}
3252
3253 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3254 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3255
3256 PYPRIVATE;
3257 };
3258
3259 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3260 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3261
3262
3263 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3264 PyObject* ret;
3265 wxArrayString arr = wxFontEnumerator::GetEncodings();
3266 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3267 ret = wxArrayString2PyList_helper(arr);
3268 wxPyEndBlockThreads(blocked);
3269 return ret;
3270 }
3271 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3272 PyObject* ret;
3273 wxArrayString arr = wxFontEnumerator::GetFacenames();
3274 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3275 ret = wxArrayString2PyList_helper(arr);
3276 wxPyEndBlockThreads(blocked);
3277 return ret;
3278 }
3279
3280 #include <locale.h>
3281
3282 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3283 wxLocale* loc;
3284 if (language == -1)
3285 loc = new wxLocale();
3286 else
3287 loc = new wxLocale(language, flags);
3288 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3289 // for the floating point conversions and such to work right.
3290 #if PY_VERSION_HEX < 0x02040000
3291 setlocale(LC_NUMERIC, "C");
3292 #endif
3293 return loc;
3294 }
3295 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3296 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3297 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3298 // for the floating point conversions and such to work right.
3299 #if PY_VERSION_HEX < 0x02040000
3300 setlocale(LC_NUMERIC, "C");
3301 #endif
3302 return rc;
3303 }
3304 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3305 bool rc = self->Init(language, flags);
3306 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3307 // for the floating point conversions and such to work right.
3308 #if PY_VERSION_HEX < 0x02040000
3309 setlocale(LC_NUMERIC, "C");
3310 #endif
3311 return rc;
3312 }
3313
3314 class wxPyLocale : public wxLocale
3315 {
3316 public:
3317 wxPyLocale();
3318
3319 wxPyLocale(const wxChar *szName, // name (for messages)
3320 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3321 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3322 bool bLoadDefault = true, // preload wxstd.mo?
3323 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3324
3325 wxPyLocale(int language, // wxLanguage id or custom language
3326 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3327
3328 ~wxPyLocale();
3329
3330 virtual const wxChar *GetString(const wxChar *szOrigString,
3331 const wxChar *szDomain = NULL) const;
3332 virtual const wxChar *GetString(const wxChar *szOrigString,
3333 const wxChar *szOrigString2, size_t n,
3334 const wxChar *szDomain = NULL) const;
3335
3336 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3337 const wxChar *szDomain = NULL) const;
3338 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3339 const wxChar *szOrigString2, size_t n,
3340 const wxChar *szDomain = NULL) const;
3341
3342 PYPRIVATE;
3343 private:
3344 DECLARE_NO_COPY_CLASS(wxPyLocale)
3345 };
3346
3347 wxPyLocale::wxPyLocale() : wxLocale()
3348 {
3349 }
3350
3351 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3352 const wxChar *szShort, // dir prefix (for msg files)
3353 const wxChar *szLocale, // locale (for setlocale)
3354 bool bLoadDefault, // preload wxstd.mo?
3355 bool bConvertEncoding) // convert Win<->Unix if necessary?
3356 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3357 {
3358 }
3359
3360 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3361 int flags) : wxLocale(language, flags)
3362 {
3363 }
3364
3365 wxPyLocale::~wxPyLocale()
3366 {
3367 }
3368
3369 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3370 const wxChar *szDomain) const
3371 {
3372 wxChar *str = GetSingularString(szOrigString, szDomain);
3373 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3374 }
3375
3376 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3377 const wxChar *szOrigString2, size_t n,
3378 const wxChar *szDomain) const
3379 {
3380 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3381 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3382 }
3383
3384 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3385 const wxChar *szDomain) const
3386 {
3387 bool found;
3388 static wxString str;
3389 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.
3390 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3391 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3392 PyObject* param1 = wx2PyString(szOrigString);
3393 PyObject* param2 = wx2PyString(szDomain);
3394 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3395 Py_DECREF(param1);
3396 Py_DECREF(param2);
3397 if (ret) {
3398 str = Py2wxString(ret);
3399 Py_DECREF(ret);
3400 }
3401 }
3402 wxPyEndBlockThreads(blocked);
3403 return (found ? (wxChar*)str.c_str() : NULL);
3404 }
3405
3406 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3407 const wxChar *szOrigString2, size_t n,
3408 const wxChar *szDomain) const
3409 {
3410 bool found;
3411 static wxString str;
3412 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.
3413 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3414 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3415 PyObject* param1 = wx2PyString(szOrigString);
3416 PyObject* param2 = wx2PyString(szOrigString2);
3417 PyObject* param4 = wx2PyString(szDomain);
3418 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3419 Py_DECREF(param1);
3420 Py_DECREF(param2);
3421 Py_DECREF(param4);
3422 if( ret) {
3423 str = Py2wxString(ret);
3424 Py_DECREF(ret);
3425 }
3426 }
3427 wxPyEndBlockThreads(blocked);
3428 return (found ? (wxChar*)str.c_str() : NULL);
3429 }
3430
3431 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3432 wxPyLocale* loc;
3433 if (language == -1)
3434 loc = new wxPyLocale();
3435 else
3436 loc = new wxPyLocale(language, flags);
3437 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3438 // for the floating point conversions and such to work right.
3439 #if PY_VERSION_HEX < 0x02040000
3440 setlocale(LC_NUMERIC, "C");
3441 #endif
3442 return loc;
3443 }
3444
3445 #include "wx/wxPython/pydrawxxx.h"
3446
3447 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3448 wxColour col;
3449 self->GetPixel(x, y, &col);
3450 return col;
3451 }
3452 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3453 wxColour col;
3454 self->GetPixel(pt, &col);
3455 return col;
3456 }
3457
3458 SWIGINTERN int
3459 SWIG_AsVal_double (PyObject *obj, double* val)
3460 {
3461 if (PyNumber_Check(obj)) {
3462 if (val) *val = PyFloat_AsDouble(obj);
3463 return SWIG_OK;
3464 }
3465 return SWIG_TypeError;
3466 }
3467
3468 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3469 wxRect rv;
3470 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3471 return rv;
3472 }
3473 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3474 wxRect rect;
3475 self->GetClippingBox(rect);
3476 return rect;
3477 }
3478 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3479 wxArrayInt widths;
3480 self->GetPartialTextExtents(text, widths);
3481 return widths;
3482 }
3483
3484 #define SWIG_From_double PyFloat_FromDouble
3485
3486 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3487 self->SetLogicalOrigin(point.x, point.y);
3488 }
3489 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3490 self->SetDeviceOrigin(point.x, point.y);
3491 }
3492 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3493 self->CalcBoundingBox(point.x, point.y);
3494 }
3495 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3496 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3497 }
3498 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3499 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3500 }
3501 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3502 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3503 }
3504 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3505 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3506 }
3507 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3508 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3509 }
3510 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3511 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3512 }
3513
3514 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3515 *x1 = dc->MinX();
3516 *y1 = dc->MinY();
3517 *x2 = dc->MaxX();
3518 *y2 = dc->MaxY();
3519 }
3520
3521
3522 #include <wx/dcbuffer.h>
3523
3524
3525 #include <wx/dcps.h>
3526
3527
3528 #include <wx/metafile.h>
3529
3530
3531
3532 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3533 self->AddColour(name, wxColour(red, green, blue));
3534 }
3535
3536 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3537 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3538 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3539 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3540
3541
3542 #include <wx/effects.h>
3543
3544
3545 #include "wx/renderer.h"
3546
3547
3548 SWIGINTERNINLINE PyObject*
3549 SWIG_From_bool (bool value)
3550 {
3551 return PyBool_FromLong(value ? 1 : 0);
3552 }
3553
3554
3555 #include "wx/wxPython/pseudodc.h"
3556
3557 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3558 wxRect rect;
3559 self->GetIdBounds(id, rect);
3560 return rect;
3561 }
3562 #ifdef __cplusplus
3563 extern "C" {
3564 #endif
3565 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3566 PyObject *resultobj = 0;
3567 wxGDIObject *result = 0 ;
3568
3569 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3570 {
3571 if (!wxPyCheckForApp()) SWIG_fail;
3572 PyThreadState* __tstate = wxPyBeginAllowThreads();
3573 result = (wxGDIObject *)new wxGDIObject();
3574 wxPyEndAllowThreads(__tstate);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3578 return resultobj;
3579 fail:
3580 return NULL;
3581 }
3582
3583
3584 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3585 PyObject *resultobj = 0;
3586 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3587 void *argp1 = 0 ;
3588 int res1 = 0 ;
3589 PyObject *swig_obj[1] ;
3590
3591 if (!args) SWIG_fail;
3592 swig_obj[0] = args;
3593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3594 if (!SWIG_IsOK(res1)) {
3595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3596 }
3597 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3598 {
3599 PyThreadState* __tstate = wxPyBeginAllowThreads();
3600 delete arg1;
3601
3602 wxPyEndAllowThreads(__tstate);
3603 if (PyErr_Occurred()) SWIG_fail;
3604 }
3605 resultobj = SWIG_Py_Void();
3606 return resultobj;
3607 fail:
3608 return NULL;
3609 }
3610
3611
3612 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3613 PyObject *resultobj = 0;
3614 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3615 bool result;
3616 void *argp1 = 0 ;
3617 int res1 = 0 ;
3618 PyObject *swig_obj[1] ;
3619
3620 if (!args) SWIG_fail;
3621 swig_obj[0] = args;
3622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3623 if (!SWIG_IsOK(res1)) {
3624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3625 }
3626 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3627 {
3628 PyThreadState* __tstate = wxPyBeginAllowThreads();
3629 result = (bool)(arg1)->IsNull();
3630 wxPyEndAllowThreads(__tstate);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 }
3633 {
3634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3635 }
3636 return resultobj;
3637 fail:
3638 return NULL;
3639 }
3640
3641
3642 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3643 PyObject *obj;
3644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3645 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3646 return SWIG_Py_Void();
3647 }
3648
3649 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3650 return SWIG_Python_InitShadowInstance(args);
3651 }
3652
3653 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3654 PyObject *resultobj = 0;
3655 byte arg1 = (byte) 0 ;
3656 byte arg2 = (byte) 0 ;
3657 byte arg3 = (byte) 0 ;
3658 byte arg4 = (byte) wxALPHA_OPAQUE ;
3659 wxColour *result = 0 ;
3660 unsigned char val1 ;
3661 int ecode1 = 0 ;
3662 unsigned char val2 ;
3663 int ecode2 = 0 ;
3664 unsigned char val3 ;
3665 int ecode3 = 0 ;
3666 unsigned char val4 ;
3667 int ecode4 = 0 ;
3668 PyObject * obj0 = 0 ;
3669 PyObject * obj1 = 0 ;
3670 PyObject * obj2 = 0 ;
3671 PyObject * obj3 = 0 ;
3672 char * kwnames[] = {
3673 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3674 };
3675
3676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3677 if (obj0) {
3678 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3679 if (!SWIG_IsOK(ecode1)) {
3680 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3681 }
3682 arg1 = static_cast< byte >(val1);
3683 }
3684 if (obj1) {
3685 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3686 if (!SWIG_IsOK(ecode2)) {
3687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3688 }
3689 arg2 = static_cast< byte >(val2);
3690 }
3691 if (obj2) {
3692 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3693 if (!SWIG_IsOK(ecode3)) {
3694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3695 }
3696 arg3 = static_cast< byte >(val3);
3697 }
3698 if (obj3) {
3699 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3700 if (!SWIG_IsOK(ecode4)) {
3701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3702 }
3703 arg4 = static_cast< byte >(val4);
3704 }
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3708 wxPyEndAllowThreads(__tstate);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3712 return resultobj;
3713 fail:
3714 return NULL;
3715 }
3716
3717
3718 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3719 PyObject *resultobj = 0;
3720 wxString *arg1 = 0 ;
3721 wxColour *result = 0 ;
3722 bool temp1 = false ;
3723 PyObject * obj0 = 0 ;
3724 char * kwnames[] = {
3725 (char *) "colorName", NULL
3726 };
3727
3728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3729 {
3730 arg1 = wxString_in_helper(obj0);
3731 if (arg1 == NULL) SWIG_fail;
3732 temp1 = true;
3733 }
3734 {
3735 if (!wxPyCheckForApp()) SWIG_fail;
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = (wxColour *)new wxColour((wxString const &)*arg1);
3738 wxPyEndAllowThreads(__tstate);
3739 if (PyErr_Occurred()) SWIG_fail;
3740 }
3741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3742 {
3743 if (temp1)
3744 delete arg1;
3745 }
3746 return resultobj;
3747 fail:
3748 {
3749 if (temp1)
3750 delete arg1;
3751 }
3752 return NULL;
3753 }
3754
3755
3756 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3757 PyObject *resultobj = 0;
3758 unsigned long arg1 ;
3759 wxColour *result = 0 ;
3760 unsigned long val1 ;
3761 int ecode1 = 0 ;
3762 PyObject * obj0 = 0 ;
3763 char * kwnames[] = {
3764 (char *) "colRGB", NULL
3765 };
3766
3767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3768 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3769 if (!SWIG_IsOK(ecode1)) {
3770 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3771 }
3772 arg1 = static_cast< unsigned long >(val1);
3773 {
3774 PyThreadState* __tstate = wxPyBeginAllowThreads();
3775 result = (wxColour *)new wxColour(arg1);
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3787 PyObject *resultobj = 0;
3788 wxColour *arg1 = (wxColour *) 0 ;
3789 void *argp1 = 0 ;
3790 int res1 = 0 ;
3791 PyObject *swig_obj[1] ;
3792
3793 if (!args) SWIG_fail;
3794 swig_obj[0] = args;
3795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3796 if (!SWIG_IsOK(res1)) {
3797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3798 }
3799 arg1 = reinterpret_cast< wxColour * >(argp1);
3800 {
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 delete arg1;
3803
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 resultobj = SWIG_Py_Void();
3808 return resultobj;
3809 fail:
3810 return NULL;
3811 }
3812
3813
3814 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3815 PyObject *resultobj = 0;
3816 wxColour *arg1 = (wxColour *) 0 ;
3817 byte result;
3818 void *argp1 = 0 ;
3819 int res1 = 0 ;
3820 PyObject *swig_obj[1] ;
3821
3822 if (!args) SWIG_fail;
3823 swig_obj[0] = args;
3824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3825 if (!SWIG_IsOK(res1)) {
3826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3827 }
3828 arg1 = reinterpret_cast< wxColour * >(argp1);
3829 {
3830 PyThreadState* __tstate = wxPyBeginAllowThreads();
3831 result = (byte)(arg1)->Red();
3832 wxPyEndAllowThreads(__tstate);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 }
3835 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3836 return resultobj;
3837 fail:
3838 return NULL;
3839 }
3840
3841
3842 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3843 PyObject *resultobj = 0;
3844 wxColour *arg1 = (wxColour *) 0 ;
3845 byte result;
3846 void *argp1 = 0 ;
3847 int res1 = 0 ;
3848 PyObject *swig_obj[1] ;
3849
3850 if (!args) SWIG_fail;
3851 swig_obj[0] = args;
3852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3853 if (!SWIG_IsOK(res1)) {
3854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3855 }
3856 arg1 = reinterpret_cast< wxColour * >(argp1);
3857 {
3858 PyThreadState* __tstate = wxPyBeginAllowThreads();
3859 result = (byte)(arg1)->Green();
3860 wxPyEndAllowThreads(__tstate);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3864 return resultobj;
3865 fail:
3866 return NULL;
3867 }
3868
3869
3870 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3871 PyObject *resultobj = 0;
3872 wxColour *arg1 = (wxColour *) 0 ;
3873 byte result;
3874 void *argp1 = 0 ;
3875 int res1 = 0 ;
3876 PyObject *swig_obj[1] ;
3877
3878 if (!args) SWIG_fail;
3879 swig_obj[0] = args;
3880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3881 if (!SWIG_IsOK(res1)) {
3882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3883 }
3884 arg1 = reinterpret_cast< wxColour * >(argp1);
3885 {
3886 PyThreadState* __tstate = wxPyBeginAllowThreads();
3887 result = (byte)(arg1)->Blue();
3888 wxPyEndAllowThreads(__tstate);
3889 if (PyErr_Occurred()) SWIG_fail;
3890 }
3891 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3892 return resultobj;
3893 fail:
3894 return NULL;
3895 }
3896
3897
3898 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3899 PyObject *resultobj = 0;
3900 wxColour *arg1 = (wxColour *) 0 ;
3901 byte result;
3902 void *argp1 = 0 ;
3903 int res1 = 0 ;
3904 PyObject *swig_obj[1] ;
3905
3906 if (!args) SWIG_fail;
3907 swig_obj[0] = args;
3908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3909 if (!SWIG_IsOK(res1)) {
3910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3911 }
3912 arg1 = reinterpret_cast< wxColour * >(argp1);
3913 {
3914 PyThreadState* __tstate = wxPyBeginAllowThreads();
3915 result = (byte)(arg1)->Alpha();
3916 wxPyEndAllowThreads(__tstate);
3917 if (PyErr_Occurred()) SWIG_fail;
3918 }
3919 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3920 return resultobj;
3921 fail:
3922 return NULL;
3923 }
3924
3925
3926 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3927 PyObject *resultobj = 0;
3928 wxColour *arg1 = (wxColour *) 0 ;
3929 bool result;
3930 void *argp1 = 0 ;
3931 int res1 = 0 ;
3932 PyObject *swig_obj[1] ;
3933
3934 if (!args) SWIG_fail;
3935 swig_obj[0] = args;
3936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3937 if (!SWIG_IsOK(res1)) {
3938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3939 }
3940 arg1 = reinterpret_cast< wxColour * >(argp1);
3941 {
3942 PyThreadState* __tstate = wxPyBeginAllowThreads();
3943 result = (bool)(arg1)->Ok();
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) SWIG_fail;
3946 }
3947 {
3948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3949 }
3950 return resultobj;
3951 fail:
3952 return NULL;
3953 }
3954
3955
3956 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3957 PyObject *resultobj = 0;
3958 wxColour *arg1 = (wxColour *) 0 ;
3959 byte arg2 ;
3960 byte arg3 ;
3961 byte arg4 ;
3962 byte arg5 = (byte) wxALPHA_OPAQUE ;
3963 void *argp1 = 0 ;
3964 int res1 = 0 ;
3965 unsigned char val2 ;
3966 int ecode2 = 0 ;
3967 unsigned char val3 ;
3968 int ecode3 = 0 ;
3969 unsigned char val4 ;
3970 int ecode4 = 0 ;
3971 unsigned char val5 ;
3972 int ecode5 = 0 ;
3973 PyObject * obj0 = 0 ;
3974 PyObject * obj1 = 0 ;
3975 PyObject * obj2 = 0 ;
3976 PyObject * obj3 = 0 ;
3977 PyObject * obj4 = 0 ;
3978 char * kwnames[] = {
3979 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3980 };
3981
3982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
3983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3984 if (!SWIG_IsOK(res1)) {
3985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3986 }
3987 arg1 = reinterpret_cast< wxColour * >(argp1);
3988 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3989 if (!SWIG_IsOK(ecode2)) {
3990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3991 }
3992 arg2 = static_cast< byte >(val2);
3993 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3994 if (!SWIG_IsOK(ecode3)) {
3995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3996 }
3997 arg3 = static_cast< byte >(val3);
3998 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3999 if (!SWIG_IsOK(ecode4)) {
4000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4001 }
4002 arg4 = static_cast< byte >(val4);
4003 if (obj4) {
4004 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4005 if (!SWIG_IsOK(ecode5)) {
4006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4007 }
4008 arg5 = static_cast< byte >(val5);
4009 }
4010 {
4011 PyThreadState* __tstate = wxPyBeginAllowThreads();
4012 (arg1)->Set(arg2,arg3,arg4,arg5);
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 resultobj = SWIG_Py_Void();
4017 return resultobj;
4018 fail:
4019 return NULL;
4020 }
4021
4022
4023 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj = 0;
4025 wxColour *arg1 = (wxColour *) 0 ;
4026 unsigned long arg2 ;
4027 void *argp1 = 0 ;
4028 int res1 = 0 ;
4029 unsigned long val2 ;
4030 int ecode2 = 0 ;
4031 PyObject * obj0 = 0 ;
4032 PyObject * obj1 = 0 ;
4033 char * kwnames[] = {
4034 (char *) "self",(char *) "colRGB", NULL
4035 };
4036
4037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4039 if (!SWIG_IsOK(res1)) {
4040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4041 }
4042 arg1 = reinterpret_cast< wxColour * >(argp1);
4043 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4044 if (!SWIG_IsOK(ecode2)) {
4045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4046 }
4047 arg2 = static_cast< unsigned long >(val2);
4048 {
4049 PyThreadState* __tstate = wxPyBeginAllowThreads();
4050 (arg1)->Set(arg2);
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 resultobj = SWIG_Py_Void();
4055 return resultobj;
4056 fail:
4057 return NULL;
4058 }
4059
4060
4061 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4062 PyObject *resultobj = 0;
4063 wxColour *arg1 = (wxColour *) 0 ;
4064 wxString *arg2 = 0 ;
4065 void *argp1 = 0 ;
4066 int res1 = 0 ;
4067 bool temp2 = false ;
4068 PyObject * obj0 = 0 ;
4069 PyObject * obj1 = 0 ;
4070 char * kwnames[] = {
4071 (char *) "self",(char *) "colourName", NULL
4072 };
4073
4074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4076 if (!SWIG_IsOK(res1)) {
4077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4078 }
4079 arg1 = reinterpret_cast< wxColour * >(argp1);
4080 {
4081 arg2 = wxString_in_helper(obj1);
4082 if (arg2 == NULL) SWIG_fail;
4083 temp2 = true;
4084 }
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 (arg1)->InitFromName((wxString const &)*arg2);
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 resultobj = SWIG_Py_Void();
4092 {
4093 if (temp2)
4094 delete arg2;
4095 }
4096 return resultobj;
4097 fail:
4098 {
4099 if (temp2)
4100 delete arg2;
4101 }
4102 return NULL;
4103 }
4104
4105
4106 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4107 PyObject *resultobj = 0;
4108 wxColour *arg1 = (wxColour *) 0 ;
4109 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4110 wxString result;
4111 void *argp1 = 0 ;
4112 int res1 = 0 ;
4113 long val2 ;
4114 int ecode2 = 0 ;
4115 PyObject * obj0 = 0 ;
4116 PyObject * obj1 = 0 ;
4117 char * kwnames[] = {
4118 (char *) "self",(char *) "flags", NULL
4119 };
4120
4121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4123 if (!SWIG_IsOK(res1)) {
4124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4125 }
4126 arg1 = reinterpret_cast< wxColour * >(argp1);
4127 if (obj1) {
4128 ecode2 = SWIG_AsVal_long(obj1, &val2);
4129 if (!SWIG_IsOK(ecode2)) {
4130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4131 }
4132 arg2 = static_cast< long >(val2);
4133 }
4134 {
4135 PyThreadState* __tstate = wxPyBeginAllowThreads();
4136 result = ((wxColour const *)arg1)->GetAsString(arg2);
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 {
4141 #if wxUSE_UNICODE
4142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4143 #else
4144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4145 #endif
4146 }
4147 return resultobj;
4148 fail:
4149 return NULL;
4150 }
4151
4152
4153 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxColour *arg1 = (wxColour *) 0 ;
4156 long result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4166 }
4167 arg1 = reinterpret_cast< wxColour * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (long)((wxColour const *)arg1)->GetPixel();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_From_long(static_cast< long >(result));
4175 return resultobj;
4176 fail:
4177 return NULL;
4178 }
4179
4180
4181 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxColour *arg1 = (wxColour *) 0 ;
4184 PyObject *arg2 = (PyObject *) 0 ;
4185 bool result;
4186 void *argp1 = 0 ;
4187 int res1 = 0 ;
4188 PyObject * obj0 = 0 ;
4189 PyObject * obj1 = 0 ;
4190 char * kwnames[] = {
4191 (char *) "self",(char *) "other", NULL
4192 };
4193
4194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4196 if (!SWIG_IsOK(res1)) {
4197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4198 }
4199 arg1 = reinterpret_cast< wxColour * >(argp1);
4200 arg2 = obj1;
4201 {
4202 result = (bool)wxColour___eq__(arg1,arg2);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 {
4206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4207 }
4208 return resultobj;
4209 fail:
4210 return NULL;
4211 }
4212
4213
4214 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4215 PyObject *resultobj = 0;
4216 wxColour *arg1 = (wxColour *) 0 ;
4217 PyObject *arg2 = (PyObject *) 0 ;
4218 bool result;
4219 void *argp1 = 0 ;
4220 int res1 = 0 ;
4221 PyObject * obj0 = 0 ;
4222 PyObject * obj1 = 0 ;
4223 char * kwnames[] = {
4224 (char *) "self",(char *) "other", NULL
4225 };
4226
4227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4229 if (!SWIG_IsOK(res1)) {
4230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4231 }
4232 arg1 = reinterpret_cast< wxColour * >(argp1);
4233 arg2 = obj1;
4234 {
4235 result = (bool)wxColour___ne__(arg1,arg2);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 {
4239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4240 }
4241 return resultobj;
4242 fail:
4243 return NULL;
4244 }
4245
4246
4247 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj = 0;
4249 wxColour *arg1 = (wxColour *) 0 ;
4250 bool arg2 = (bool) false ;
4251 PyObject *result = 0 ;
4252 void *argp1 = 0 ;
4253 int res1 = 0 ;
4254 bool val2 ;
4255 int ecode2 = 0 ;
4256 PyObject * obj0 = 0 ;
4257 PyObject * obj1 = 0 ;
4258 char * kwnames[] = {
4259 (char *) "self",(char *) "includeAlpha", NULL
4260 };
4261
4262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4264 if (!SWIG_IsOK(res1)) {
4265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4266 }
4267 arg1 = reinterpret_cast< wxColour * >(argp1);
4268 if (obj1) {
4269 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4270 if (!SWIG_IsOK(ecode2)) {
4271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4272 }
4273 arg2 = static_cast< bool >(val2);
4274 }
4275 {
4276 result = (PyObject *)wxColour_Get(arg1,arg2);
4277 if (PyErr_Occurred()) SWIG_fail;
4278 }
4279 resultobj = result;
4280 return resultobj;
4281 fail:
4282 return NULL;
4283 }
4284
4285
4286 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4287 PyObject *resultobj = 0;
4288 wxColour *arg1 = (wxColour *) 0 ;
4289 unsigned long result;
4290 void *argp1 = 0 ;
4291 int res1 = 0 ;
4292 PyObject *swig_obj[1] ;
4293
4294 if (!args) SWIG_fail;
4295 swig_obj[0] = args;
4296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4297 if (!SWIG_IsOK(res1)) {
4298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4299 }
4300 arg1 = reinterpret_cast< wxColour * >(argp1);
4301 {
4302 result = (unsigned long)wxColour_GetRGB(arg1);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4313 PyObject *obj;
4314 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4315 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4316 return SWIG_Py_Void();
4317 }
4318
4319 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4320 return SWIG_Python_InitShadowInstance(args);
4321 }
4322
4323 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4324 PyObject *resultobj = 0;
4325 int arg1 ;
4326 unsigned char *arg2 = (unsigned char *) 0 ;
4327 unsigned char *arg3 = (unsigned char *) 0 ;
4328 unsigned char *arg4 = (unsigned char *) 0 ;
4329 wxPalette *result = 0 ;
4330 int val1 ;
4331 int ecode1 = 0 ;
4332 void *argp2 = 0 ;
4333 int res2 = 0 ;
4334 void *argp3 = 0 ;
4335 int res3 = 0 ;
4336 void *argp4 = 0 ;
4337 int res4 = 0 ;
4338 PyObject * obj0 = 0 ;
4339 PyObject * obj1 = 0 ;
4340 PyObject * obj2 = 0 ;
4341 PyObject * obj3 = 0 ;
4342 char * kwnames[] = {
4343 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4344 };
4345
4346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4347 ecode1 = SWIG_AsVal_int(obj0, &val1);
4348 if (!SWIG_IsOK(ecode1)) {
4349 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4350 }
4351 arg1 = static_cast< int >(val1);
4352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4353 if (!SWIG_IsOK(res2)) {
4354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4355 }
4356 arg2 = reinterpret_cast< unsigned char * >(argp2);
4357 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4358 if (!SWIG_IsOK(res3)) {
4359 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4360 }
4361 arg3 = reinterpret_cast< unsigned char * >(argp3);
4362 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4363 if (!SWIG_IsOK(res4)) {
4364 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4365 }
4366 arg4 = reinterpret_cast< unsigned char * >(argp4);
4367 {
4368 if (!wxPyCheckForApp()) SWIG_fail;
4369 PyThreadState* __tstate = wxPyBeginAllowThreads();
4370 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
4374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4375 return resultobj;
4376 fail:
4377 return NULL;
4378 }
4379
4380
4381 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4382 PyObject *resultobj = 0;
4383 wxPalette *arg1 = (wxPalette *) 0 ;
4384 void *argp1 = 0 ;
4385 int res1 = 0 ;
4386 PyObject *swig_obj[1] ;
4387
4388 if (!args) SWIG_fail;
4389 swig_obj[0] = args;
4390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4391 if (!SWIG_IsOK(res1)) {
4392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4393 }
4394 arg1 = reinterpret_cast< wxPalette * >(argp1);
4395 {
4396 PyThreadState* __tstate = wxPyBeginAllowThreads();
4397 delete arg1;
4398
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 resultobj = SWIG_Py_Void();
4403 return resultobj;
4404 fail:
4405 return NULL;
4406 }
4407
4408
4409 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4410 PyObject *resultobj = 0;
4411 wxPalette *arg1 = (wxPalette *) 0 ;
4412 byte arg2 ;
4413 byte arg3 ;
4414 byte arg4 ;
4415 int result;
4416 void *argp1 = 0 ;
4417 int res1 = 0 ;
4418 unsigned char val2 ;
4419 int ecode2 = 0 ;
4420 unsigned char val3 ;
4421 int ecode3 = 0 ;
4422 unsigned char val4 ;
4423 int ecode4 = 0 ;
4424 PyObject * obj0 = 0 ;
4425 PyObject * obj1 = 0 ;
4426 PyObject * obj2 = 0 ;
4427 PyObject * obj3 = 0 ;
4428 char * kwnames[] = {
4429 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4430 };
4431
4432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4434 if (!SWIG_IsOK(res1)) {
4435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4436 }
4437 arg1 = reinterpret_cast< wxPalette * >(argp1);
4438 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4439 if (!SWIG_IsOK(ecode2)) {
4440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4441 }
4442 arg2 = static_cast< byte >(val2);
4443 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4444 if (!SWIG_IsOK(ecode3)) {
4445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4446 }
4447 arg3 = static_cast< byte >(val3);
4448 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4449 if (!SWIG_IsOK(ecode4)) {
4450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4451 }
4452 arg4 = static_cast< byte >(val4);
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_From_int(static_cast< int >(result));
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4467 PyObject *resultobj = 0;
4468 wxPalette *arg1 = (wxPalette *) 0 ;
4469 int arg2 ;
4470 byte *arg3 = (byte *) 0 ;
4471 byte *arg4 = (byte *) 0 ;
4472 byte *arg5 = (byte *) 0 ;
4473 bool result;
4474 void *argp1 = 0 ;
4475 int res1 = 0 ;
4476 int val2 ;
4477 int ecode2 = 0 ;
4478 byte temp3 ;
4479 int res3 = SWIG_TMPOBJ ;
4480 byte temp4 ;
4481 int res4 = SWIG_TMPOBJ ;
4482 byte temp5 ;
4483 int res5 = SWIG_TMPOBJ ;
4484 PyObject * obj0 = 0 ;
4485 PyObject * obj1 = 0 ;
4486 char * kwnames[] = {
4487 (char *) "self",(char *) "pixel", NULL
4488 };
4489
4490 arg3 = &temp3;
4491 arg4 = &temp4;
4492 arg5 = &temp5;
4493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4495 if (!SWIG_IsOK(res1)) {
4496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4497 }
4498 arg1 = reinterpret_cast< wxPalette * >(argp1);
4499 ecode2 = SWIG_AsVal_int(obj1, &val2);
4500 if (!SWIG_IsOK(ecode2)) {
4501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4502 }
4503 arg2 = static_cast< int >(val2);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 {
4511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4512 }
4513 if (SWIG_IsTmpObj(res3)) {
4514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4515 } else {
4516 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4518 }
4519 if (SWIG_IsTmpObj(res4)) {
4520 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4521 } else {
4522 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4523 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4524 }
4525 if (SWIG_IsTmpObj(res5)) {
4526 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4527 } else {
4528 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4529 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4530 }
4531 return resultobj;
4532 fail:
4533 return NULL;
4534 }
4535
4536
4537 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4538 PyObject *resultobj = 0;
4539 wxPalette *arg1 = (wxPalette *) 0 ;
4540 int result;
4541 void *argp1 = 0 ;
4542 int res1 = 0 ;
4543 PyObject *swig_obj[1] ;
4544
4545 if (!args) SWIG_fail;
4546 swig_obj[0] = args;
4547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4548 if (!SWIG_IsOK(res1)) {
4549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4550 }
4551 arg1 = reinterpret_cast< wxPalette * >(argp1);
4552 {
4553 PyThreadState* __tstate = wxPyBeginAllowThreads();
4554 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 resultobj = SWIG_From_int(static_cast< int >(result));
4559 return resultobj;
4560 fail:
4561 return NULL;
4562 }
4563
4564
4565 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4566 PyObject *resultobj = 0;
4567 wxPalette *arg1 = (wxPalette *) 0 ;
4568 bool result;
4569 void *argp1 = 0 ;
4570 int res1 = 0 ;
4571 PyObject *swig_obj[1] ;
4572
4573 if (!args) SWIG_fail;
4574 swig_obj[0] = args;
4575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4576 if (!SWIG_IsOK(res1)) {
4577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4578 }
4579 arg1 = reinterpret_cast< wxPalette * >(argp1);
4580 {
4581 PyThreadState* __tstate = wxPyBeginAllowThreads();
4582 result = (bool)(arg1)->Ok();
4583 wxPyEndAllowThreads(__tstate);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 }
4586 {
4587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4588 }
4589 return resultobj;
4590 fail:
4591 return NULL;
4592 }
4593
4594
4595 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4596 PyObject *obj;
4597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4598 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4599 return SWIG_Py_Void();
4600 }
4601
4602 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4603 return SWIG_Python_InitShadowInstance(args);
4604 }
4605
4606 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj = 0;
4608 wxColour *arg1 = 0 ;
4609 int arg2 = (int) 1 ;
4610 int arg3 = (int) wxSOLID ;
4611 wxPen *result = 0 ;
4612 wxColour temp1 ;
4613 int val2 ;
4614 int ecode2 = 0 ;
4615 int val3 ;
4616 int ecode3 = 0 ;
4617 PyObject * obj0 = 0 ;
4618 PyObject * obj1 = 0 ;
4619 PyObject * obj2 = 0 ;
4620 char * kwnames[] = {
4621 (char *) "colour",(char *) "width",(char *) "style", NULL
4622 };
4623
4624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4625 {
4626 arg1 = &temp1;
4627 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4628 }
4629 if (obj1) {
4630 ecode2 = SWIG_AsVal_int(obj1, &val2);
4631 if (!SWIG_IsOK(ecode2)) {
4632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4633 }
4634 arg2 = static_cast< int >(val2);
4635 }
4636 if (obj2) {
4637 ecode3 = SWIG_AsVal_int(obj2, &val3);
4638 if (!SWIG_IsOK(ecode3)) {
4639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4640 }
4641 arg3 = static_cast< int >(val3);
4642 }
4643 {
4644 if (!wxPyCheckForApp()) SWIG_fail;
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4651 return resultobj;
4652 fail:
4653 return NULL;
4654 }
4655
4656
4657 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4658 PyObject *resultobj = 0;
4659 wxPen *arg1 = (wxPen *) 0 ;
4660 void *argp1 = 0 ;
4661 int res1 = 0 ;
4662 PyObject *swig_obj[1] ;
4663
4664 if (!args) SWIG_fail;
4665 swig_obj[0] = args;
4666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4667 if (!SWIG_IsOK(res1)) {
4668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4669 }
4670 arg1 = reinterpret_cast< wxPen * >(argp1);
4671 {
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 delete arg1;
4674
4675 wxPyEndAllowThreads(__tstate);
4676 if (PyErr_Occurred()) SWIG_fail;
4677 }
4678 resultobj = SWIG_Py_Void();
4679 return resultobj;
4680 fail:
4681 return NULL;
4682 }
4683
4684
4685 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4686 PyObject *resultobj = 0;
4687 wxPen *arg1 = (wxPen *) 0 ;
4688 int result;
4689 void *argp1 = 0 ;
4690 int res1 = 0 ;
4691 PyObject *swig_obj[1] ;
4692
4693 if (!args) SWIG_fail;
4694 swig_obj[0] = args;
4695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4696 if (!SWIG_IsOK(res1)) {
4697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4698 }
4699 arg1 = reinterpret_cast< wxPen * >(argp1);
4700 {
4701 PyThreadState* __tstate = wxPyBeginAllowThreads();
4702 result = (int)(arg1)->GetCap();
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 resultobj = SWIG_From_int(static_cast< int >(result));
4707 return resultobj;
4708 fail:
4709 return NULL;
4710 }
4711
4712
4713 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4714 PyObject *resultobj = 0;
4715 wxPen *arg1 = (wxPen *) 0 ;
4716 wxColour 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_wxPen, 0 | 0 );
4724 if (!SWIG_IsOK(res1)) {
4725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4726 }
4727 arg1 = reinterpret_cast< wxPen * >(argp1);
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 result = (arg1)->GetColour();
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4735 return resultobj;
4736 fail:
4737 return NULL;
4738 }
4739
4740
4741 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4742 PyObject *resultobj = 0;
4743 wxPen *arg1 = (wxPen *) 0 ;
4744 int 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_wxPen, 0 | 0 );
4752 if (!SWIG_IsOK(res1)) {
4753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4754 }
4755 arg1 = reinterpret_cast< wxPen * >(argp1);
4756 {
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 result = (int)(arg1)->GetJoin();
4759 wxPyEndAllowThreads(__tstate);
4760 if (PyErr_Occurred()) SWIG_fail;
4761 }
4762 resultobj = SWIG_From_int(static_cast< int >(result));
4763 return resultobj;
4764 fail:
4765 return NULL;
4766 }
4767
4768
4769 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4770 PyObject *resultobj = 0;
4771 wxPen *arg1 = (wxPen *) 0 ;
4772 int result;
4773 void *argp1 = 0 ;
4774 int res1 = 0 ;
4775 PyObject *swig_obj[1] ;
4776
4777 if (!args) SWIG_fail;
4778 swig_obj[0] = args;
4779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4780 if (!SWIG_IsOK(res1)) {
4781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4782 }
4783 arg1 = reinterpret_cast< wxPen * >(argp1);
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 result = (int)(arg1)->GetStyle();
4787 wxPyEndAllowThreads(__tstate);
4788 if (PyErr_Occurred()) SWIG_fail;
4789 }
4790 resultobj = SWIG_From_int(static_cast< int >(result));
4791 return resultobj;
4792 fail:
4793 return NULL;
4794 }
4795
4796
4797 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4798 PyObject *resultobj = 0;
4799 wxPen *arg1 = (wxPen *) 0 ;
4800 int result;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 PyObject *swig_obj[1] ;
4804
4805 if (!args) SWIG_fail;
4806 swig_obj[0] = args;
4807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4808 if (!SWIG_IsOK(res1)) {
4809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4810 }
4811 arg1 = reinterpret_cast< wxPen * >(argp1);
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (int)(arg1)->GetWidth();
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 resultobj = SWIG_From_int(static_cast< int >(result));
4819 return resultobj;
4820 fail:
4821 return NULL;
4822 }
4823
4824
4825 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4826 PyObject *resultobj = 0;
4827 wxPen *arg1 = (wxPen *) 0 ;
4828 bool result;
4829 void *argp1 = 0 ;
4830 int res1 = 0 ;
4831 PyObject *swig_obj[1] ;
4832
4833 if (!args) SWIG_fail;
4834 swig_obj[0] = args;
4835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4836 if (!SWIG_IsOK(res1)) {
4837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4838 }
4839 arg1 = reinterpret_cast< wxPen * >(argp1);
4840 {
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (bool)(arg1)->Ok();
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 {
4847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4848 }
4849 return resultobj;
4850 fail:
4851 return NULL;
4852 }
4853
4854
4855 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4856 PyObject *resultobj = 0;
4857 wxPen *arg1 = (wxPen *) 0 ;
4858 int arg2 ;
4859 void *argp1 = 0 ;
4860 int res1 = 0 ;
4861 int val2 ;
4862 int ecode2 = 0 ;
4863 PyObject * obj0 = 0 ;
4864 PyObject * obj1 = 0 ;
4865 char * kwnames[] = {
4866 (char *) "self",(char *) "cap_style", NULL
4867 };
4868
4869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4871 if (!SWIG_IsOK(res1)) {
4872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4873 }
4874 arg1 = reinterpret_cast< wxPen * >(argp1);
4875 ecode2 = SWIG_AsVal_int(obj1, &val2);
4876 if (!SWIG_IsOK(ecode2)) {
4877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4878 }
4879 arg2 = static_cast< int >(val2);
4880 {
4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
4882 (arg1)->SetCap(arg2);
4883 wxPyEndAllowThreads(__tstate);
4884 if (PyErr_Occurred()) SWIG_fail;
4885 }
4886 resultobj = SWIG_Py_Void();
4887 return resultobj;
4888 fail:
4889 return NULL;
4890 }
4891
4892
4893 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4894 PyObject *resultobj = 0;
4895 wxPen *arg1 = (wxPen *) 0 ;
4896 wxColour *arg2 = 0 ;
4897 void *argp1 = 0 ;
4898 int res1 = 0 ;
4899 wxColour temp2 ;
4900 PyObject * obj0 = 0 ;
4901 PyObject * obj1 = 0 ;
4902 char * kwnames[] = {
4903 (char *) "self",(char *) "colour", NULL
4904 };
4905
4906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4908 if (!SWIG_IsOK(res1)) {
4909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4910 }
4911 arg1 = reinterpret_cast< wxPen * >(argp1);
4912 {
4913 arg2 = &temp2;
4914 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4915 }
4916 {
4917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4918 (arg1)->SetColour(*arg2);
4919 wxPyEndAllowThreads(__tstate);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 }
4922 resultobj = SWIG_Py_Void();
4923 return resultobj;
4924 fail:
4925 return NULL;
4926 }
4927
4928
4929 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4930 PyObject *resultobj = 0;
4931 wxPen *arg1 = (wxPen *) 0 ;
4932 int arg2 ;
4933 void *argp1 = 0 ;
4934 int res1 = 0 ;
4935 int val2 ;
4936 int ecode2 = 0 ;
4937 PyObject * obj0 = 0 ;
4938 PyObject * obj1 = 0 ;
4939 char * kwnames[] = {
4940 (char *) "self",(char *) "join_style", NULL
4941 };
4942
4943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4945 if (!SWIG_IsOK(res1)) {
4946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4947 }
4948 arg1 = reinterpret_cast< wxPen * >(argp1);
4949 ecode2 = SWIG_AsVal_int(obj1, &val2);
4950 if (!SWIG_IsOK(ecode2)) {
4951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4952 }
4953 arg2 = static_cast< int >(val2);
4954 {
4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
4956 (arg1)->SetJoin(arg2);
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 resultobj = SWIG_Py_Void();
4961 return resultobj;
4962 fail:
4963 return NULL;
4964 }
4965
4966
4967 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4968 PyObject *resultobj = 0;
4969 wxPen *arg1 = (wxPen *) 0 ;
4970 int arg2 ;
4971 void *argp1 = 0 ;
4972 int res1 = 0 ;
4973 int val2 ;
4974 int ecode2 = 0 ;
4975 PyObject * obj0 = 0 ;
4976 PyObject * obj1 = 0 ;
4977 char * kwnames[] = {
4978 (char *) "self",(char *) "style", NULL
4979 };
4980
4981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4983 if (!SWIG_IsOK(res1)) {
4984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4985 }
4986 arg1 = reinterpret_cast< wxPen * >(argp1);
4987 ecode2 = SWIG_AsVal_int(obj1, &val2);
4988 if (!SWIG_IsOK(ecode2)) {
4989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4990 }
4991 arg2 = static_cast< int >(val2);
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 (arg1)->SetStyle(arg2);
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 resultobj = SWIG_Py_Void();
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5006 PyObject *resultobj = 0;
5007 wxPen *arg1 = (wxPen *) 0 ;
5008 int arg2 ;
5009 void *argp1 = 0 ;
5010 int res1 = 0 ;
5011 int val2 ;
5012 int ecode2 = 0 ;
5013 PyObject * obj0 = 0 ;
5014 PyObject * obj1 = 0 ;
5015 char * kwnames[] = {
5016 (char *) "self",(char *) "width", NULL
5017 };
5018
5019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5021 if (!SWIG_IsOK(res1)) {
5022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5023 }
5024 arg1 = reinterpret_cast< wxPen * >(argp1);
5025 ecode2 = SWIG_AsVal_int(obj1, &val2);
5026 if (!SWIG_IsOK(ecode2)) {
5027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5028 }
5029 arg2 = static_cast< int >(val2);
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 (arg1)->SetWidth(arg2);
5033 wxPyEndAllowThreads(__tstate);
5034 if (PyErr_Occurred()) SWIG_fail;
5035 }
5036 resultobj = SWIG_Py_Void();
5037 return resultobj;
5038 fail:
5039 return NULL;
5040 }
5041
5042
5043 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5044 PyObject *resultobj = 0;
5045 wxPen *arg1 = (wxPen *) 0 ;
5046 int arg2 ;
5047 wxDash *arg3 = (wxDash *) 0 ;
5048 void *argp1 = 0 ;
5049 int res1 = 0 ;
5050 PyObject * obj0 = 0 ;
5051 PyObject * obj1 = 0 ;
5052 char * kwnames[] = {
5053 (char *) "self",(char *) "dashes", NULL
5054 };
5055
5056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5058 if (!SWIG_IsOK(res1)) {
5059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5060 }
5061 arg1 = reinterpret_cast< wxPen * >(argp1);
5062 {
5063 arg2 = PyList_Size(obj1);
5064 arg3 = (wxDash*)byte_LIST_helper(obj1);
5065 if (arg3 == NULL) SWIG_fail;
5066 }
5067 {
5068 PyThreadState* __tstate = wxPyBeginAllowThreads();
5069 (arg1)->SetDashes(arg2,arg3);
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 resultobj = SWIG_Py_Void();
5074 {
5075 if (arg3) delete [] arg3;
5076 }
5077 return resultobj;
5078 fail:
5079 {
5080 if (arg3) delete [] arg3;
5081 }
5082 return NULL;
5083 }
5084
5085
5086 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5087 PyObject *resultobj = 0;
5088 wxPen *arg1 = (wxPen *) 0 ;
5089 PyObject *result = 0 ;
5090 void *argp1 = 0 ;
5091 int res1 = 0 ;
5092 PyObject *swig_obj[1] ;
5093
5094 if (!args) SWIG_fail;
5095 swig_obj[0] = args;
5096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5097 if (!SWIG_IsOK(res1)) {
5098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5099 }
5100 arg1 = reinterpret_cast< wxPen * >(argp1);
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 result = (PyObject *)wxPen_GetDashes(arg1);
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 resultobj = result;
5108 return resultobj;
5109 fail:
5110 return NULL;
5111 }
5112
5113
5114 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5115 PyObject *resultobj = 0;
5116 wxPen *arg1 = (wxPen *) 0 ;
5117 PyObject *arg2 = (PyObject *) 0 ;
5118 PyObject *arg3 = (PyObject *) 0 ;
5119 void *argp1 = 0 ;
5120 int res1 = 0 ;
5121 PyObject * obj0 = 0 ;
5122 PyObject * obj1 = 0 ;
5123 PyObject * obj2 = 0 ;
5124 char * kwnames[] = {
5125 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5126 };
5127
5128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5130 if (!SWIG_IsOK(res1)) {
5131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5132 }
5133 arg1 = reinterpret_cast< wxPen * >(argp1);
5134 arg2 = obj1;
5135 arg3 = obj2;
5136 {
5137 PyThreadState* __tstate = wxPyBeginAllowThreads();
5138 wxPen__SetDashes(arg1,arg2,arg3);
5139 wxPyEndAllowThreads(__tstate);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 }
5142 resultobj = SWIG_Py_Void();
5143 return resultobj;
5144 fail:
5145 return NULL;
5146 }
5147
5148
5149 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5150 PyObject *resultobj = 0;
5151 wxPen *arg1 = (wxPen *) 0 ;
5152 int result;
5153 void *argp1 = 0 ;
5154 int res1 = 0 ;
5155 PyObject *swig_obj[1] ;
5156
5157 if (!args) SWIG_fail;
5158 swig_obj[0] = args;
5159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5160 if (!SWIG_IsOK(res1)) {
5161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5162 }
5163 arg1 = reinterpret_cast< wxPen * >(argp1);
5164 {
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (int)((wxPen const *)arg1)->GetDashCount();
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = SWIG_From_int(static_cast< int >(result));
5171 return resultobj;
5172 fail:
5173 return NULL;
5174 }
5175
5176
5177 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5178 PyObject *resultobj = 0;
5179 wxPen *arg1 = (wxPen *) 0 ;
5180 wxBitmap *result = 0 ;
5181 void *argp1 = 0 ;
5182 int res1 = 0 ;
5183 PyObject *swig_obj[1] ;
5184
5185 if (!args) SWIG_fail;
5186 swig_obj[0] = args;
5187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5188 if (!SWIG_IsOK(res1)) {
5189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5190 }
5191 arg1 = reinterpret_cast< wxPen * >(argp1);
5192 {
5193 PyThreadState* __tstate = wxPyBeginAllowThreads();
5194 result = (wxBitmap *)(arg1)->GetStipple();
5195 wxPyEndAllowThreads(__tstate);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 }
5198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5199 return resultobj;
5200 fail:
5201 return NULL;
5202 }
5203
5204
5205 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5206 PyObject *resultobj = 0;
5207 wxPen *arg1 = (wxPen *) 0 ;
5208 wxBitmap *arg2 = 0 ;
5209 void *argp1 = 0 ;
5210 int res1 = 0 ;
5211 void *argp2 = 0 ;
5212 int res2 = 0 ;
5213 PyObject * obj0 = 0 ;
5214 PyObject * obj1 = 0 ;
5215 char * kwnames[] = {
5216 (char *) "self",(char *) "stipple", NULL
5217 };
5218
5219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5221 if (!SWIG_IsOK(res1)) {
5222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5223 }
5224 arg1 = reinterpret_cast< wxPen * >(argp1);
5225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5226 if (!SWIG_IsOK(res2)) {
5227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5228 }
5229 if (!argp2) {
5230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5231 }
5232 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 (arg1)->SetStipple(*arg2);
5236 wxPyEndAllowThreads(__tstate);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 }
5239 resultobj = SWIG_Py_Void();
5240 return resultobj;
5241 fail:
5242 return NULL;
5243 }
5244
5245
5246 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5247 PyObject *resultobj = 0;
5248 wxPen *arg1 = (wxPen *) 0 ;
5249 wxPen *arg2 = (wxPen *) 0 ;
5250 bool result;
5251 void *argp1 = 0 ;
5252 int res1 = 0 ;
5253 void *argp2 = 0 ;
5254 int res2 = 0 ;
5255 PyObject * obj0 = 0 ;
5256 PyObject * obj1 = 0 ;
5257 char * kwnames[] = {
5258 (char *) "self",(char *) "other", NULL
5259 };
5260
5261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5265 }
5266 arg1 = reinterpret_cast< wxPen * >(argp1);
5267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5268 if (!SWIG_IsOK(res2)) {
5269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5270 }
5271 arg2 = reinterpret_cast< wxPen * >(argp2);
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 {
5279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5280 }
5281 return resultobj;
5282 fail:
5283 return NULL;
5284 }
5285
5286
5287 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5288 PyObject *resultobj = 0;
5289 wxPen *arg1 = (wxPen *) 0 ;
5290 wxPen *arg2 = (wxPen *) 0 ;
5291 bool result;
5292 void *argp1 = 0 ;
5293 int res1 = 0 ;
5294 void *argp2 = 0 ;
5295 int res2 = 0 ;
5296 PyObject * obj0 = 0 ;
5297 PyObject * obj1 = 0 ;
5298 char * kwnames[] = {
5299 (char *) "self",(char *) "other", NULL
5300 };
5301
5302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5304 if (!SWIG_IsOK(res1)) {
5305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5306 }
5307 arg1 = reinterpret_cast< wxPen * >(argp1);
5308 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5309 if (!SWIG_IsOK(res2)) {
5310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5311 }
5312 arg2 = reinterpret_cast< wxPen * >(argp2);
5313 {
5314 PyThreadState* __tstate = wxPyBeginAllowThreads();
5315 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5316 wxPyEndAllowThreads(__tstate);
5317 if (PyErr_Occurred()) SWIG_fail;
5318 }
5319 {
5320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5321 }
5322 return resultobj;
5323 fail:
5324 return NULL;
5325 }
5326
5327
5328 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5329 PyObject *obj;
5330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5331 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5332 return SWIG_Py_Void();
5333 }
5334
5335 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5336 return SWIG_Python_InitShadowInstance(args);
5337 }
5338
5339 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5340 PyObject *resultobj = 0;
5341 wxColour *arg1 = 0 ;
5342 int arg2 = (int) wxSOLID ;
5343 wxBrush *result = 0 ;
5344 wxColour temp1 ;
5345 int val2 ;
5346 int ecode2 = 0 ;
5347 PyObject * obj0 = 0 ;
5348 PyObject * obj1 = 0 ;
5349 char * kwnames[] = {
5350 (char *) "colour",(char *) "style", NULL
5351 };
5352
5353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5354 {
5355 arg1 = &temp1;
5356 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5357 }
5358 if (obj1) {
5359 ecode2 = SWIG_AsVal_int(obj1, &val2);
5360 if (!SWIG_IsOK(ecode2)) {
5361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5362 }
5363 arg2 = static_cast< int >(val2);
5364 }
5365 {
5366 if (!wxPyCheckForApp()) SWIG_fail;
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5369 wxPyEndAllowThreads(__tstate);
5370 if (PyErr_Occurred()) SWIG_fail;
5371 }
5372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5373 return resultobj;
5374 fail:
5375 return NULL;
5376 }
5377
5378
5379 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5380 PyObject *resultobj = 0;
5381 wxBitmap *arg1 = 0 ;
5382 wxBrush *result = 0 ;
5383 void *argp1 = 0 ;
5384 int res1 = 0 ;
5385 PyObject * obj0 = 0 ;
5386 char * kwnames[] = {
5387 (char *) "stippleBitmap", NULL
5388 };
5389
5390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5391 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5392 if (!SWIG_IsOK(res1)) {
5393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5394 }
5395 if (!argp1) {
5396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5397 }
5398 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5399 {
5400 if (!wxPyCheckForApp()) SWIG_fail;
5401 PyThreadState* __tstate = wxPyBeginAllowThreads();
5402 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5407 return resultobj;
5408 fail:
5409 return NULL;
5410 }
5411
5412
5413 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5414 PyObject *resultobj = 0;
5415 wxBrush *arg1 = (wxBrush *) 0 ;
5416 void *argp1 = 0 ;
5417 int res1 = 0 ;
5418 PyObject *swig_obj[1] ;
5419
5420 if (!args) SWIG_fail;
5421 swig_obj[0] = args;
5422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5423 if (!SWIG_IsOK(res1)) {
5424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5425 }
5426 arg1 = reinterpret_cast< wxBrush * >(argp1);
5427 {
5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
5429 delete arg1;
5430
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) SWIG_fail;
5433 }
5434 resultobj = SWIG_Py_Void();
5435 return resultobj;
5436 fail:
5437 return NULL;
5438 }
5439
5440
5441 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5442 PyObject *resultobj = 0;
5443 wxBrush *arg1 = (wxBrush *) 0 ;
5444 wxColour *arg2 = 0 ;
5445 void *argp1 = 0 ;
5446 int res1 = 0 ;
5447 wxColour temp2 ;
5448 PyObject * obj0 = 0 ;
5449 PyObject * obj1 = 0 ;
5450 char * kwnames[] = {
5451 (char *) "self",(char *) "col", NULL
5452 };
5453
5454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5456 if (!SWIG_IsOK(res1)) {
5457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5458 }
5459 arg1 = reinterpret_cast< wxBrush * >(argp1);
5460 {
5461 arg2 = &temp2;
5462 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5463 }
5464 {
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 (arg1)->SetColour((wxColour const &)*arg2);
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 }
5470 resultobj = SWIG_Py_Void();
5471 return resultobj;
5472 fail:
5473 return NULL;
5474 }
5475
5476
5477 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5478 PyObject *resultobj = 0;
5479 wxBrush *arg1 = (wxBrush *) 0 ;
5480 int arg2 ;
5481 void *argp1 = 0 ;
5482 int res1 = 0 ;
5483 int val2 ;
5484 int ecode2 = 0 ;
5485 PyObject * obj0 = 0 ;
5486 PyObject * obj1 = 0 ;
5487 char * kwnames[] = {
5488 (char *) "self",(char *) "style", NULL
5489 };
5490
5491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5493 if (!SWIG_IsOK(res1)) {
5494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5495 }
5496 arg1 = reinterpret_cast< wxBrush * >(argp1);
5497 ecode2 = SWIG_AsVal_int(obj1, &val2);
5498 if (!SWIG_IsOK(ecode2)) {
5499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5500 }
5501 arg2 = static_cast< int >(val2);
5502 {
5503 PyThreadState* __tstate = wxPyBeginAllowThreads();
5504 (arg1)->SetStyle(arg2);
5505 wxPyEndAllowThreads(__tstate);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 }
5508 resultobj = SWIG_Py_Void();
5509 return resultobj;
5510 fail:
5511 return NULL;
5512 }
5513
5514
5515 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5516 PyObject *resultobj = 0;
5517 wxBrush *arg1 = (wxBrush *) 0 ;
5518 wxBitmap *arg2 = 0 ;
5519 void *argp1 = 0 ;
5520 int res1 = 0 ;
5521 void *argp2 = 0 ;
5522 int res2 = 0 ;
5523 PyObject * obj0 = 0 ;
5524 PyObject * obj1 = 0 ;
5525 char * kwnames[] = {
5526 (char *) "self",(char *) "stipple", NULL
5527 };
5528
5529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5533 }
5534 arg1 = reinterpret_cast< wxBrush * >(argp1);
5535 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5536 if (!SWIG_IsOK(res2)) {
5537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5538 }
5539 if (!argp2) {
5540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5541 }
5542 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5543 {
5544 PyThreadState* __tstate = wxPyBeginAllowThreads();
5545 (arg1)->SetStipple((wxBitmap const &)*arg2);
5546 wxPyEndAllowThreads(__tstate);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
5549 resultobj = SWIG_Py_Void();
5550 return resultobj;
5551 fail:
5552 return NULL;
5553 }
5554
5555
5556 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5557 PyObject *resultobj = 0;
5558 wxBrush *arg1 = (wxBrush *) 0 ;
5559 wxColour result;
5560 void *argp1 = 0 ;
5561 int res1 = 0 ;
5562 PyObject *swig_obj[1] ;
5563
5564 if (!args) SWIG_fail;
5565 swig_obj[0] = args;
5566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5567 if (!SWIG_IsOK(res1)) {
5568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5569 }
5570 arg1 = reinterpret_cast< wxBrush * >(argp1);
5571 {
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 result = ((wxBrush const *)arg1)->GetColour();
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5578 return resultobj;
5579 fail:
5580 return NULL;
5581 }
5582
5583
5584 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5585 PyObject *resultobj = 0;
5586 wxBrush *arg1 = (wxBrush *) 0 ;
5587 int result;
5588 void *argp1 = 0 ;
5589 int res1 = 0 ;
5590 PyObject *swig_obj[1] ;
5591
5592 if (!args) SWIG_fail;
5593 swig_obj[0] = args;
5594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5595 if (!SWIG_IsOK(res1)) {
5596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5597 }
5598 arg1 = reinterpret_cast< wxBrush * >(argp1);
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 result = (int)((wxBrush const *)arg1)->GetStyle();
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) SWIG_fail;
5604 }
5605 resultobj = SWIG_From_int(static_cast< int >(result));
5606 return resultobj;
5607 fail:
5608 return NULL;
5609 }
5610
5611
5612 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5613 PyObject *resultobj = 0;
5614 wxBrush *arg1 = (wxBrush *) 0 ;
5615 wxBitmap *result = 0 ;
5616 void *argp1 = 0 ;
5617 int res1 = 0 ;
5618 PyObject *swig_obj[1] ;
5619
5620 if (!args) SWIG_fail;
5621 swig_obj[0] = args;
5622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5623 if (!SWIG_IsOK(res1)) {
5624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5625 }
5626 arg1 = reinterpret_cast< wxBrush * >(argp1);
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5630 wxPyEndAllowThreads(__tstate);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5634 return resultobj;
5635 fail:
5636 return NULL;
5637 }
5638
5639
5640 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5641 PyObject *resultobj = 0;
5642 wxBrush *arg1 = (wxBrush *) 0 ;
5643 bool result;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 PyObject *swig_obj[1] ;
5647
5648 if (!args) SWIG_fail;
5649 swig_obj[0] = args;
5650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5651 if (!SWIG_IsOK(res1)) {
5652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5653 }
5654 arg1 = reinterpret_cast< wxBrush * >(argp1);
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (bool)((wxBrush const *)arg1)->IsHatch();
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 {
5662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5663 }
5664 return resultobj;
5665 fail:
5666 return NULL;
5667 }
5668
5669
5670 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5671 PyObject *resultobj = 0;
5672 wxBrush *arg1 = (wxBrush *) 0 ;
5673 bool result;
5674 void *argp1 = 0 ;
5675 int res1 = 0 ;
5676 PyObject *swig_obj[1] ;
5677
5678 if (!args) SWIG_fail;
5679 swig_obj[0] = args;
5680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5681 if (!SWIG_IsOK(res1)) {
5682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5683 }
5684 arg1 = reinterpret_cast< wxBrush * >(argp1);
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 result = (bool)(arg1)->Ok();
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 {
5692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5693 }
5694 return resultobj;
5695 fail:
5696 return NULL;
5697 }
5698
5699
5700 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5701 PyObject *obj;
5702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5703 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5704 return SWIG_Py_Void();
5705 }
5706
5707 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 return SWIG_Python_InitShadowInstance(args);
5709 }
5710
5711 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5712 PyObject *resultobj = 0;
5713 wxString *arg1 = 0 ;
5714 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5715 wxBitmap *result = 0 ;
5716 bool temp1 = false ;
5717 int val2 ;
5718 int ecode2 = 0 ;
5719 PyObject * obj0 = 0 ;
5720 PyObject * obj1 = 0 ;
5721 char * kwnames[] = {
5722 (char *) "name",(char *) "type", NULL
5723 };
5724
5725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5726 {
5727 arg1 = wxString_in_helper(obj0);
5728 if (arg1 == NULL) SWIG_fail;
5729 temp1 = true;
5730 }
5731 if (obj1) {
5732 ecode2 = SWIG_AsVal_int(obj1, &val2);
5733 if (!SWIG_IsOK(ecode2)) {
5734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5735 }
5736 arg2 = static_cast< wxBitmapType >(val2);
5737 }
5738 {
5739 if (!wxPyCheckForApp()) SWIG_fail;
5740 PyThreadState* __tstate = wxPyBeginAllowThreads();
5741 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5742 wxPyEndAllowThreads(__tstate);
5743 if (PyErr_Occurred()) SWIG_fail;
5744 }
5745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5746 {
5747 if (temp1)
5748 delete arg1;
5749 }
5750 return resultobj;
5751 fail:
5752 {
5753 if (temp1)
5754 delete arg1;
5755 }
5756 return NULL;
5757 }
5758
5759
5760 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5761 PyObject *resultobj = 0;
5762 wxBitmap *arg1 = (wxBitmap *) 0 ;
5763 void *argp1 = 0 ;
5764 int res1 = 0 ;
5765 PyObject *swig_obj[1] ;
5766
5767 if (!args) SWIG_fail;
5768 swig_obj[0] = args;
5769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5770 if (!SWIG_IsOK(res1)) {
5771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5772 }
5773 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5774 {
5775 delete arg1;
5776
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 resultobj = SWIG_Py_Void();
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5787 PyObject *resultobj = 0;
5788 int arg1 ;
5789 int arg2 ;
5790 int arg3 = (int) -1 ;
5791 wxBitmap *result = 0 ;
5792 int val1 ;
5793 int ecode1 = 0 ;
5794 int val2 ;
5795 int ecode2 = 0 ;
5796 int val3 ;
5797 int ecode3 = 0 ;
5798 PyObject * obj0 = 0 ;
5799 PyObject * obj1 = 0 ;
5800 PyObject * obj2 = 0 ;
5801 char * kwnames[] = {
5802 (char *) "width",(char *) "height",(char *) "depth", NULL
5803 };
5804
5805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5806 ecode1 = SWIG_AsVal_int(obj0, &val1);
5807 if (!SWIG_IsOK(ecode1)) {
5808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5809 }
5810 arg1 = static_cast< int >(val1);
5811 ecode2 = SWIG_AsVal_int(obj1, &val2);
5812 if (!SWIG_IsOK(ecode2)) {
5813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5814 }
5815 arg2 = static_cast< int >(val2);
5816 if (obj2) {
5817 ecode3 = SWIG_AsVal_int(obj2, &val3);
5818 if (!SWIG_IsOK(ecode3)) {
5819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5820 }
5821 arg3 = static_cast< int >(val3);
5822 }
5823 {
5824 if (!wxPyCheckForApp()) SWIG_fail;
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5831 return resultobj;
5832 fail:
5833 return NULL;
5834 }
5835
5836
5837 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5838 PyObject *resultobj = 0;
5839 wxIcon *arg1 = 0 ;
5840 wxBitmap *result = 0 ;
5841 void *argp1 = 0 ;
5842 int res1 = 0 ;
5843 PyObject * obj0 = 0 ;
5844 char * kwnames[] = {
5845 (char *) "icon", NULL
5846 };
5847
5848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5849 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5850 if (!SWIG_IsOK(res1)) {
5851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5852 }
5853 if (!argp1) {
5854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5855 }
5856 arg1 = reinterpret_cast< wxIcon * >(argp1);
5857 {
5858 if (!wxPyCheckForApp()) SWIG_fail;
5859 PyThreadState* __tstate = wxPyBeginAllowThreads();
5860 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5861 wxPyEndAllowThreads(__tstate);
5862 if (PyErr_Occurred()) SWIG_fail;
5863 }
5864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5865 return resultobj;
5866 fail:
5867 return NULL;
5868 }
5869
5870
5871 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5872 PyObject *resultobj = 0;
5873 wxImage *arg1 = 0 ;
5874 int arg2 = (int) -1 ;
5875 wxBitmap *result = 0 ;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 int val2 ;
5879 int ecode2 = 0 ;
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 char * kwnames[] = {
5883 (char *) "image",(char *) "depth", NULL
5884 };
5885
5886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5887 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5888 if (!SWIG_IsOK(res1)) {
5889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5890 }
5891 if (!argp1) {
5892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5893 }
5894 arg1 = reinterpret_cast< wxImage * >(argp1);
5895 if (obj1) {
5896 ecode2 = SWIG_AsVal_int(obj1, &val2);
5897 if (!SWIG_IsOK(ecode2)) {
5898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5899 }
5900 arg2 = static_cast< int >(val2);
5901 }
5902 {
5903 if (!wxPyCheckForApp()) SWIG_fail;
5904 PyThreadState* __tstate = wxPyBeginAllowThreads();
5905 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5910 return resultobj;
5911 fail:
5912 return NULL;
5913 }
5914
5915
5916 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5917 PyObject *resultobj = 0;
5918 PyObject *arg1 = (PyObject *) 0 ;
5919 wxBitmap *result = 0 ;
5920 PyObject * obj0 = 0 ;
5921 char * kwnames[] = {
5922 (char *) "listOfStrings", NULL
5923 };
5924
5925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5926 arg1 = obj0;
5927 {
5928 if (!wxPyCheckForApp()) SWIG_fail;
5929 PyThreadState* __tstate = wxPyBeginAllowThreads();
5930 result = (wxBitmap *)new_wxBitmap(arg1);
5931 wxPyEndAllowThreads(__tstate);
5932 if (PyErr_Occurred()) SWIG_fail;
5933 }
5934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5935 return resultobj;
5936 fail:
5937 return NULL;
5938 }
5939
5940
5941 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5942 PyObject *resultobj = 0;
5943 PyObject *arg1 = (PyObject *) 0 ;
5944 int arg2 ;
5945 int arg3 ;
5946 int arg4 = (int) 1 ;
5947 wxBitmap *result = 0 ;
5948 int val2 ;
5949 int ecode2 = 0 ;
5950 int val3 ;
5951 int ecode3 = 0 ;
5952 int val4 ;
5953 int ecode4 = 0 ;
5954 PyObject * obj0 = 0 ;
5955 PyObject * obj1 = 0 ;
5956 PyObject * obj2 = 0 ;
5957 PyObject * obj3 = 0 ;
5958 char * kwnames[] = {
5959 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5960 };
5961
5962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5963 arg1 = obj0;
5964 ecode2 = SWIG_AsVal_int(obj1, &val2);
5965 if (!SWIG_IsOK(ecode2)) {
5966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5967 }
5968 arg2 = static_cast< int >(val2);
5969 ecode3 = SWIG_AsVal_int(obj2, &val3);
5970 if (!SWIG_IsOK(ecode3)) {
5971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5972 }
5973 arg3 = static_cast< int >(val3);
5974 if (obj3) {
5975 ecode4 = SWIG_AsVal_int(obj3, &val4);
5976 if (!SWIG_IsOK(ecode4)) {
5977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5978 }
5979 arg4 = static_cast< int >(val4);
5980 }
5981 {
5982 if (!wxPyCheckForApp()) SWIG_fail;
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5989 return resultobj;
5990 fail:
5991 return NULL;
5992 }
5993
5994
5995 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5996 PyObject *resultobj = 0;
5997 wxBitmap *arg1 = (wxBitmap *) 0 ;
5998 long result;
5999 void *argp1 = 0 ;
6000 int res1 = 0 ;
6001 PyObject *swig_obj[1] ;
6002
6003 if (!args) SWIG_fail;
6004 swig_obj[0] = args;
6005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6008 }
6009 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6010 {
6011 result = (long)(arg1)->GetHandle();
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 resultobj = SWIG_From_long(static_cast< long >(result));
6015 return resultobj;
6016 fail:
6017 return NULL;
6018 }
6019
6020
6021 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6022 PyObject *resultobj = 0;
6023 wxBitmap *arg1 = (wxBitmap *) 0 ;
6024 long arg2 ;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 long val2 ;
6028 int ecode2 = 0 ;
6029 PyObject * obj0 = 0 ;
6030 PyObject * obj1 = 0 ;
6031 char * kwnames[] = {
6032 (char *) "self",(char *) "handle", NULL
6033 };
6034
6035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6037 if (!SWIG_IsOK(res1)) {
6038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6039 }
6040 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6041 ecode2 = SWIG_AsVal_long(obj1, &val2);
6042 if (!SWIG_IsOK(ecode2)) {
6043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6044 }
6045 arg2 = static_cast< long >(val2);
6046 {
6047 wxBitmap_SetHandle(arg1,arg2);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 resultobj = SWIG_Py_Void();
6051 return resultobj;
6052 fail:
6053 return NULL;
6054 }
6055
6056
6057 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6058 PyObject *resultobj = 0;
6059 wxBitmap *arg1 = (wxBitmap *) 0 ;
6060 bool result;
6061 void *argp1 = 0 ;
6062 int res1 = 0 ;
6063 PyObject *swig_obj[1] ;
6064
6065 if (!args) SWIG_fail;
6066 swig_obj[0] = args;
6067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6068 if (!SWIG_IsOK(res1)) {
6069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
6070 }
6071 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6072 {
6073 result = (bool)(arg1)->Ok();
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 {
6077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6078 }
6079 return resultobj;
6080 fail:
6081 return NULL;
6082 }
6083
6084
6085 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6086 PyObject *resultobj = 0;
6087 wxBitmap *arg1 = (wxBitmap *) 0 ;
6088 int result;
6089 void *argp1 = 0 ;
6090 int res1 = 0 ;
6091 PyObject *swig_obj[1] ;
6092
6093 if (!args) SWIG_fail;
6094 swig_obj[0] = args;
6095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6096 if (!SWIG_IsOK(res1)) {
6097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6098 }
6099 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6100 {
6101 result = (int)(arg1)->GetWidth();
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 resultobj = SWIG_From_int(static_cast< int >(result));
6105 return resultobj;
6106 fail:
6107 return NULL;
6108 }
6109
6110
6111 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6112 PyObject *resultobj = 0;
6113 wxBitmap *arg1 = (wxBitmap *) 0 ;
6114 int result;
6115 void *argp1 = 0 ;
6116 int res1 = 0 ;
6117 PyObject *swig_obj[1] ;
6118
6119 if (!args) SWIG_fail;
6120 swig_obj[0] = args;
6121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6122 if (!SWIG_IsOK(res1)) {
6123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6124 }
6125 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6126 {
6127 result = (int)(arg1)->GetHeight();
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 resultobj = SWIG_From_int(static_cast< int >(result));
6131 return resultobj;
6132 fail:
6133 return NULL;
6134 }
6135
6136
6137 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6138 PyObject *resultobj = 0;
6139 wxBitmap *arg1 = (wxBitmap *) 0 ;
6140 int result;
6141 void *argp1 = 0 ;
6142 int res1 = 0 ;
6143 PyObject *swig_obj[1] ;
6144
6145 if (!args) SWIG_fail;
6146 swig_obj[0] = args;
6147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6148 if (!SWIG_IsOK(res1)) {
6149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6150 }
6151 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6152 {
6153 result = (int)(arg1)->GetDepth();
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 resultobj = SWIG_From_int(static_cast< int >(result));
6157 return resultobj;
6158 fail:
6159 return NULL;
6160 }
6161
6162
6163 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6164 PyObject *resultobj = 0;
6165 wxBitmap *arg1 = (wxBitmap *) 0 ;
6166 wxSize result;
6167 void *argp1 = 0 ;
6168 int res1 = 0 ;
6169 PyObject *swig_obj[1] ;
6170
6171 if (!args) SWIG_fail;
6172 swig_obj[0] = args;
6173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6174 if (!SWIG_IsOK(res1)) {
6175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6176 }
6177 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6178 {
6179 result = wxBitmap_GetSize(arg1);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6183 return resultobj;
6184 fail:
6185 return NULL;
6186 }
6187
6188
6189 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6190 PyObject *resultobj = 0;
6191 wxBitmap *arg1 = (wxBitmap *) 0 ;
6192 SwigValueWrapper<wxImage > result;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 PyObject *swig_obj[1] ;
6196
6197 if (!args) SWIG_fail;
6198 swig_obj[0] = args;
6199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6200 if (!SWIG_IsOK(res1)) {
6201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6202 }
6203 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6204 {
6205 result = ((wxBitmap const *)arg1)->ConvertToImage();
6206 if (PyErr_Occurred()) SWIG_fail;
6207 }
6208 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6209 return resultobj;
6210 fail:
6211 return NULL;
6212 }
6213
6214
6215 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6216 PyObject *resultobj = 0;
6217 wxBitmap *arg1 = (wxBitmap *) 0 ;
6218 wxMask *result = 0 ;
6219 void *argp1 = 0 ;
6220 int res1 = 0 ;
6221 PyObject *swig_obj[1] ;
6222
6223 if (!args) SWIG_fail;
6224 swig_obj[0] = args;
6225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6226 if (!SWIG_IsOK(res1)) {
6227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6228 }
6229 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6230 {
6231 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6235 return resultobj;
6236 fail:
6237 return NULL;
6238 }
6239
6240
6241 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6242 PyObject *resultobj = 0;
6243 wxBitmap *arg1 = (wxBitmap *) 0 ;
6244 wxMask *arg2 = (wxMask *) 0 ;
6245 void *argp1 = 0 ;
6246 int res1 = 0 ;
6247 int res2 = 0 ;
6248 PyObject * obj0 = 0 ;
6249 PyObject * obj1 = 0 ;
6250 char * kwnames[] = {
6251 (char *) "self",(char *) "mask", NULL
6252 };
6253
6254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6256 if (!SWIG_IsOK(res1)) {
6257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6258 }
6259 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6260 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6261 if (!SWIG_IsOK(res2)) {
6262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6263 }
6264 {
6265 (arg1)->SetMask(arg2);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 }
6268 resultobj = SWIG_Py_Void();
6269 return resultobj;
6270 fail:
6271 return NULL;
6272 }
6273
6274
6275 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6276 PyObject *resultobj = 0;
6277 wxBitmap *arg1 = (wxBitmap *) 0 ;
6278 wxColour *arg2 = 0 ;
6279 void *argp1 = 0 ;
6280 int res1 = 0 ;
6281 wxColour temp2 ;
6282 PyObject * obj0 = 0 ;
6283 PyObject * obj1 = 0 ;
6284 char * kwnames[] = {
6285 (char *) "self",(char *) "colour", NULL
6286 };
6287
6288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6290 if (!SWIG_IsOK(res1)) {
6291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6292 }
6293 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6294 {
6295 arg2 = &temp2;
6296 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6297 }
6298 {
6299 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_Py_Void();
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj = 0;
6311 wxBitmap *arg1 = (wxBitmap *) 0 ;
6312 wxRect *arg2 = 0 ;
6313 SwigValueWrapper<wxBitmap > result;
6314 void *argp1 = 0 ;
6315 int res1 = 0 ;
6316 wxRect temp2 ;
6317 PyObject * obj0 = 0 ;
6318 PyObject * obj1 = 0 ;
6319 char * kwnames[] = {
6320 (char *) "self",(char *) "rect", NULL
6321 };
6322
6323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6325 if (!SWIG_IsOK(res1)) {
6326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6327 }
6328 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6329 {
6330 arg2 = &temp2;
6331 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6332 }
6333 {
6334 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6338 return resultobj;
6339 fail:
6340 return NULL;
6341 }
6342
6343
6344 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6345 PyObject *resultobj = 0;
6346 wxBitmap *arg1 = (wxBitmap *) 0 ;
6347 wxString *arg2 = 0 ;
6348 wxBitmapType arg3 ;
6349 wxPalette *arg4 = (wxPalette *) NULL ;
6350 bool result;
6351 void *argp1 = 0 ;
6352 int res1 = 0 ;
6353 bool temp2 = false ;
6354 int val3 ;
6355 int ecode3 = 0 ;
6356 void *argp4 = 0 ;
6357 int res4 = 0 ;
6358 PyObject * obj0 = 0 ;
6359 PyObject * obj1 = 0 ;
6360 PyObject * obj2 = 0 ;
6361 PyObject * obj3 = 0 ;
6362 char * kwnames[] = {
6363 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6364 };
6365
6366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6368 if (!SWIG_IsOK(res1)) {
6369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6370 }
6371 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6372 {
6373 arg2 = wxString_in_helper(obj1);
6374 if (arg2 == NULL) SWIG_fail;
6375 temp2 = true;
6376 }
6377 ecode3 = SWIG_AsVal_int(obj2, &val3);
6378 if (!SWIG_IsOK(ecode3)) {
6379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6380 }
6381 arg3 = static_cast< wxBitmapType >(val3);
6382 if (obj3) {
6383 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6384 if (!SWIG_IsOK(res4)) {
6385 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6386 }
6387 arg4 = reinterpret_cast< wxPalette * >(argp4);
6388 }
6389 {
6390 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 {
6394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6395 }
6396 {
6397 if (temp2)
6398 delete arg2;
6399 }
6400 return resultobj;
6401 fail:
6402 {
6403 if (temp2)
6404 delete arg2;
6405 }
6406 return NULL;
6407 }
6408
6409
6410 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6411 PyObject *resultobj = 0;
6412 wxBitmap *arg1 = (wxBitmap *) 0 ;
6413 wxString *arg2 = 0 ;
6414 wxBitmapType arg3 ;
6415 bool result;
6416 void *argp1 = 0 ;
6417 int res1 = 0 ;
6418 bool temp2 = false ;
6419 int val3 ;
6420 int ecode3 = 0 ;
6421 PyObject * obj0 = 0 ;
6422 PyObject * obj1 = 0 ;
6423 PyObject * obj2 = 0 ;
6424 char * kwnames[] = {
6425 (char *) "self",(char *) "name",(char *) "type", NULL
6426 };
6427
6428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6430 if (!SWIG_IsOK(res1)) {
6431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6432 }
6433 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6434 {
6435 arg2 = wxString_in_helper(obj1);
6436 if (arg2 == NULL) SWIG_fail;
6437 temp2 = true;
6438 }
6439 ecode3 = SWIG_AsVal_int(obj2, &val3);
6440 if (!SWIG_IsOK(ecode3)) {
6441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6442 }
6443 arg3 = static_cast< wxBitmapType >(val3);
6444 {
6445 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6450 }
6451 {
6452 if (temp2)
6453 delete arg2;
6454 }
6455 return resultobj;
6456 fail:
6457 {
6458 if (temp2)
6459 delete arg2;
6460 }
6461 return NULL;
6462 }
6463
6464
6465 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6466 PyObject *resultobj = 0;
6467 wxBitmap *arg1 = (wxBitmap *) 0 ;
6468 wxPalette *result = 0 ;
6469 void *argp1 = 0 ;
6470 int res1 = 0 ;
6471 PyObject *swig_obj[1] ;
6472
6473 if (!args) SWIG_fail;
6474 swig_obj[0] = args;
6475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6476 if (!SWIG_IsOK(res1)) {
6477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6478 }
6479 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6480 {
6481 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6485 return resultobj;
6486 fail:
6487 return NULL;
6488 }
6489
6490
6491 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj = 0;
6493 wxBitmap *arg1 = (wxBitmap *) 0 ;
6494 wxPalette *arg2 = 0 ;
6495 void *argp1 = 0 ;
6496 int res1 = 0 ;
6497 void *argp2 = 0 ;
6498 int res2 = 0 ;
6499 PyObject * obj0 = 0 ;
6500 PyObject * obj1 = 0 ;
6501 char * kwnames[] = {
6502 (char *) "self",(char *) "palette", NULL
6503 };
6504
6505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6507 if (!SWIG_IsOK(res1)) {
6508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6509 }
6510 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6512 if (!SWIG_IsOK(res2)) {
6513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6514 }
6515 if (!argp2) {
6516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6517 }
6518 arg2 = reinterpret_cast< wxPalette * >(argp2);
6519 {
6520 (arg1)->SetPalette((wxPalette const &)*arg2);
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 resultobj = SWIG_Py_Void();
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6531 PyObject *resultobj = 0;
6532 wxBitmap *arg1 = (wxBitmap *) 0 ;
6533 wxIcon *arg2 = 0 ;
6534 bool result;
6535 void *argp1 = 0 ;
6536 int res1 = 0 ;
6537 void *argp2 = 0 ;
6538 int res2 = 0 ;
6539 PyObject * obj0 = 0 ;
6540 PyObject * obj1 = 0 ;
6541 char * kwnames[] = {
6542 (char *) "self",(char *) "icon", NULL
6543 };
6544
6545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6549 }
6550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6552 if (!SWIG_IsOK(res2)) {
6553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6554 }
6555 if (!argp2) {
6556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6557 }
6558 arg2 = reinterpret_cast< wxIcon * >(argp2);
6559 {
6560 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 {
6564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6565 }
6566 return resultobj;
6567 fail:
6568 return NULL;
6569 }
6570
6571
6572 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6573 PyObject *resultobj = 0;
6574 wxBitmap *arg1 = (wxBitmap *) 0 ;
6575 int arg2 ;
6576 void *argp1 = 0 ;
6577 int res1 = 0 ;
6578 int val2 ;
6579 int ecode2 = 0 ;
6580 PyObject * obj0 = 0 ;
6581 PyObject * obj1 = 0 ;
6582 char * kwnames[] = {
6583 (char *) "self",(char *) "height", NULL
6584 };
6585
6586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6588 if (!SWIG_IsOK(res1)) {
6589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6590 }
6591 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6592 ecode2 = SWIG_AsVal_int(obj1, &val2);
6593 if (!SWIG_IsOK(ecode2)) {
6594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6595 }
6596 arg2 = static_cast< int >(val2);
6597 {
6598 (arg1)->SetHeight(arg2);
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = SWIG_Py_Void();
6602 return resultobj;
6603 fail:
6604 return NULL;
6605 }
6606
6607
6608 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj = 0;
6610 wxBitmap *arg1 = (wxBitmap *) 0 ;
6611 int arg2 ;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 int val2 ;
6615 int ecode2 = 0 ;
6616 PyObject * obj0 = 0 ;
6617 PyObject * obj1 = 0 ;
6618 char * kwnames[] = {
6619 (char *) "self",(char *) "width", NULL
6620 };
6621
6622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6624 if (!SWIG_IsOK(res1)) {
6625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6626 }
6627 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6628 ecode2 = SWIG_AsVal_int(obj1, &val2);
6629 if (!SWIG_IsOK(ecode2)) {
6630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6631 }
6632 arg2 = static_cast< int >(val2);
6633 {
6634 (arg1)->SetWidth(arg2);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 resultobj = SWIG_Py_Void();
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6645 PyObject *resultobj = 0;
6646 wxBitmap *arg1 = (wxBitmap *) 0 ;
6647 int arg2 ;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 int val2 ;
6651 int ecode2 = 0 ;
6652 PyObject * obj0 = 0 ;
6653 PyObject * obj1 = 0 ;
6654 char * kwnames[] = {
6655 (char *) "self",(char *) "depth", NULL
6656 };
6657
6658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6662 }
6663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6664 ecode2 = SWIG_AsVal_int(obj1, &val2);
6665 if (!SWIG_IsOK(ecode2)) {
6666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6667 }
6668 arg2 = static_cast< int >(val2);
6669 {
6670 (arg1)->SetDepth(arg2);
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 resultobj = SWIG_Py_Void();
6674 return resultobj;
6675 fail:
6676 return NULL;
6677 }
6678
6679
6680 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6681 PyObject *resultobj = 0;
6682 wxBitmap *arg1 = (wxBitmap *) 0 ;
6683 wxSize *arg2 = 0 ;
6684 void *argp1 = 0 ;
6685 int res1 = 0 ;
6686 wxSize temp2 ;
6687 PyObject * obj0 = 0 ;
6688 PyObject * obj1 = 0 ;
6689 char * kwnames[] = {
6690 (char *) "self",(char *) "size", NULL
6691 };
6692
6693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6695 if (!SWIG_IsOK(res1)) {
6696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6697 }
6698 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6699 {
6700 arg2 = &temp2;
6701 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6702 }
6703 {
6704 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
6707 resultobj = SWIG_Py_Void();
6708 return resultobj;
6709 fail:
6710 return NULL;
6711 }
6712
6713
6714 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj = 0;
6716 wxBitmap *arg1 = (wxBitmap *) 0 ;
6717 wxCursor *arg2 = 0 ;
6718 bool result;
6719 void *argp1 = 0 ;
6720 int res1 = 0 ;
6721 void *argp2 = 0 ;
6722 int res2 = 0 ;
6723 PyObject * obj0 = 0 ;
6724 PyObject * obj1 = 0 ;
6725 char * kwnames[] = {
6726 (char *) "self",(char *) "cursor", NULL
6727 };
6728
6729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6731 if (!SWIG_IsOK(res1)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6733 }
6734 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6736 if (!SWIG_IsOK(res2)) {
6737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6738 }
6739 if (!argp2) {
6740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6741 }
6742 arg2 = reinterpret_cast< wxCursor * >(argp2);
6743 {
6744 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6745 if (PyErr_Occurred()) SWIG_fail;
6746 }
6747 {
6748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6749 }
6750 return resultobj;
6751 fail:
6752 return NULL;
6753 }
6754
6755
6756 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6757 PyObject *resultobj = 0;
6758 wxBitmap *arg1 = (wxBitmap *) 0 ;
6759 wxBitmap *arg2 = (wxBitmap *) 0 ;
6760 bool result;
6761 void *argp1 = 0 ;
6762 int res1 = 0 ;
6763 void *argp2 = 0 ;
6764 int res2 = 0 ;
6765 PyObject * obj0 = 0 ;
6766 PyObject * obj1 = 0 ;
6767 char * kwnames[] = {
6768 (char *) "self",(char *) "other", NULL
6769 };
6770
6771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6773 if (!SWIG_IsOK(res1)) {
6774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6775 }
6776 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6778 if (!SWIG_IsOK(res2)) {
6779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6780 }
6781 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6782 {
6783 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 {
6787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6788 }
6789 return resultobj;
6790 fail:
6791 return NULL;
6792 }
6793
6794
6795 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxBitmap *arg1 = (wxBitmap *) 0 ;
6798 wxBitmap *arg2 = (wxBitmap *) 0 ;
6799 bool result;
6800 void *argp1 = 0 ;
6801 int res1 = 0 ;
6802 void *argp2 = 0 ;
6803 int res2 = 0 ;
6804 PyObject * obj0 = 0 ;
6805 PyObject * obj1 = 0 ;
6806 char * kwnames[] = {
6807 (char *) "self",(char *) "other", NULL
6808 };
6809
6810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6812 if (!SWIG_IsOK(res1)) {
6813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6814 }
6815 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6817 if (!SWIG_IsOK(res2)) {
6818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6819 }
6820 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6821 {
6822 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6823 if (PyErr_Occurred()) SWIG_fail;
6824 }
6825 {
6826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6827 }
6828 return resultobj;
6829 fail:
6830 return NULL;
6831 }
6832
6833
6834 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6835 PyObject *obj;
6836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6837 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6838 return SWIG_Py_Void();
6839 }
6840
6841 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6842 return SWIG_Python_InitShadowInstance(args);
6843 }
6844
6845 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj = 0;
6847 int arg1 ;
6848 int arg2 ;
6849 buffer arg3 ;
6850 int arg4 ;
6851 buffer arg5 ;
6852 int arg6 ;
6853 wxBitmap *result = 0 ;
6854 int val1 ;
6855 int ecode1 = 0 ;
6856 int val2 ;
6857 int ecode2 = 0 ;
6858 Py_ssize_t temp3 ;
6859 Py_ssize_t temp5 ;
6860 PyObject * obj0 = 0 ;
6861 PyObject * obj1 = 0 ;
6862 PyObject * obj2 = 0 ;
6863 PyObject * obj3 = 0 ;
6864 char * kwnames[] = {
6865 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6866 };
6867
6868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6869 ecode1 = SWIG_AsVal_int(obj0, &val1);
6870 if (!SWIG_IsOK(ecode1)) {
6871 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6872 }
6873 arg1 = static_cast< int >(val1);
6874 ecode2 = SWIG_AsVal_int(obj1, &val2);
6875 if (!SWIG_IsOK(ecode2)) {
6876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6877 }
6878 arg2 = static_cast< int >(val2);
6879 {
6880 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6881 arg4 = (int)temp3;
6882 }
6883 {
6884 if (obj3 != Py_None) {
6885 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6886 arg6 = (int)temp5;
6887 }
6888 }
6889 {
6890 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6891 if (PyErr_Occurred()) SWIG_fail;
6892 }
6893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6894 return resultobj;
6895 fail:
6896 return NULL;
6897 }
6898
6899
6900 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6901 PyObject *resultobj = 0;
6902 int arg1 ;
6903 int arg2 ;
6904 buffer arg3 ;
6905 int arg4 ;
6906 wxBitmap *result = 0 ;
6907 int val1 ;
6908 int ecode1 = 0 ;
6909 int val2 ;
6910 int ecode2 = 0 ;
6911 Py_ssize_t temp3 ;
6912 PyObject * obj0 = 0 ;
6913 PyObject * obj1 = 0 ;
6914 PyObject * obj2 = 0 ;
6915 char * kwnames[] = {
6916 (char *) "width",(char *) "height",(char *) "data", NULL
6917 };
6918
6919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6920 ecode1 = SWIG_AsVal_int(obj0, &val1);
6921 if (!SWIG_IsOK(ecode1)) {
6922 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6923 }
6924 arg1 = static_cast< int >(val1);
6925 ecode2 = SWIG_AsVal_int(obj1, &val2);
6926 if (!SWIG_IsOK(ecode2)) {
6927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6928 }
6929 arg2 = static_cast< int >(val2);
6930 {
6931 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6932 arg4 = (int)temp3;
6933 }
6934 {
6935 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6939 return resultobj;
6940 fail:
6941 return NULL;
6942 }
6943
6944
6945 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6946 PyObject *resultobj = 0;
6947 int arg1 ;
6948 int arg2 ;
6949 buffer arg3 ;
6950 int arg4 ;
6951 wxBitmap *result = 0 ;
6952 int val1 ;
6953 int ecode1 = 0 ;
6954 int val2 ;
6955 int ecode2 = 0 ;
6956 Py_ssize_t temp3 ;
6957 PyObject * obj0 = 0 ;
6958 PyObject * obj1 = 0 ;
6959 PyObject * obj2 = 0 ;
6960 char * kwnames[] = {
6961 (char *) "width",(char *) "height",(char *) "data", NULL
6962 };
6963
6964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6965 ecode1 = SWIG_AsVal_int(obj0, &val1);
6966 if (!SWIG_IsOK(ecode1)) {
6967 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6968 }
6969 arg1 = static_cast< int >(val1);
6970 ecode2 = SWIG_AsVal_int(obj1, &val2);
6971 if (!SWIG_IsOK(ecode2)) {
6972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6973 }
6974 arg2 = static_cast< int >(val2);
6975 {
6976 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6977 arg4 = (int)temp3;
6978 }
6979 {
6980 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6984 return resultobj;
6985 fail:
6986 return NULL;
6987 }
6988
6989
6990 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6991 PyObject *resultobj = 0;
6992 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6993 wxPoint result;
6994 void *argp1 = 0 ;
6995 int res1 = 0 ;
6996 PyObject *swig_obj[1] ;
6997
6998 if (!args) SWIG_fail;
6999 swig_obj[0] = args;
7000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7001 if (!SWIG_IsOK(res1)) {
7002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7003 }
7004 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7005 {
7006 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7017 PyObject *resultobj = 0;
7018 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7019 int result;
7020 void *argp1 = 0 ;
7021 int res1 = 0 ;
7022 PyObject *swig_obj[1] ;
7023
7024 if (!args) SWIG_fail;
7025 swig_obj[0] = args;
7026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7027 if (!SWIG_IsOK(res1)) {
7028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7029 }
7030 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7031 {
7032 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_From_int(static_cast< int >(result));
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7043 PyObject *resultobj = 0;
7044 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7045 int result;
7046 void *argp1 = 0 ;
7047 int res1 = 0 ;
7048 PyObject *swig_obj[1] ;
7049
7050 if (!args) SWIG_fail;
7051 swig_obj[0] = args;
7052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7055 }
7056 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7057 {
7058 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 resultobj = SWIG_From_int(static_cast< int >(result));
7062 return resultobj;
7063 fail:
7064 return NULL;
7065 }
7066
7067
7068 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7069 PyObject *resultobj = 0;
7070 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7071 wxSize result;
7072 void *argp1 = 0 ;
7073 int res1 = 0 ;
7074 PyObject *swig_obj[1] ;
7075
7076 if (!args) SWIG_fail;
7077 swig_obj[0] = args;
7078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7079 if (!SWIG_IsOK(res1)) {
7080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7081 }
7082 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7083 {
7084 result = ((wxPixelDataBase const *)arg1)->GetSize();
7085 if (PyErr_Occurred()) SWIG_fail;
7086 }
7087 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7088 return resultobj;
7089 fail:
7090 return NULL;
7091 }
7092
7093
7094 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7095 PyObject *resultobj = 0;
7096 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7097 int result;
7098 void *argp1 = 0 ;
7099 int res1 = 0 ;
7100 PyObject *swig_obj[1] ;
7101
7102 if (!args) SWIG_fail;
7103 swig_obj[0] = args;
7104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7105 if (!SWIG_IsOK(res1)) {
7106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7107 }
7108 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7109 {
7110 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 resultobj = SWIG_From_int(static_cast< int >(result));
7114 return resultobj;
7115 fail:
7116 return NULL;
7117 }
7118
7119
7120 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7121 PyObject *obj;
7122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7123 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7124 return SWIG_Py_Void();
7125 }
7126
7127 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7128 PyObject *resultobj = 0;
7129 wxBitmap *arg1 = 0 ;
7130 wxNativePixelData *result = 0 ;
7131 void *argp1 = 0 ;
7132 int res1 = 0 ;
7133
7134 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7136 if (!SWIG_IsOK(res1)) {
7137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7138 }
7139 if (!argp1) {
7140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7141 }
7142 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7143 {
7144 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7148 return resultobj;
7149 fail:
7150 return NULL;
7151 }
7152
7153
7154 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7155 PyObject *resultobj = 0;
7156 wxBitmap *arg1 = 0 ;
7157 wxRect *arg2 = 0 ;
7158 wxNativePixelData *result = 0 ;
7159 void *argp1 = 0 ;
7160 int res1 = 0 ;
7161 wxRect temp2 ;
7162
7163 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7165 if (!SWIG_IsOK(res1)) {
7166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7167 }
7168 if (!argp1) {
7169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7170 }
7171 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7172 {
7173 arg2 = &temp2;
7174 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7175 }
7176 {
7177 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7178 if (PyErr_Occurred()) SWIG_fail;
7179 }
7180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7181 return resultobj;
7182 fail:
7183 return NULL;
7184 }
7185
7186
7187 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7188 PyObject *resultobj = 0;
7189 wxBitmap *arg1 = 0 ;
7190 wxPoint *arg2 = 0 ;
7191 wxSize *arg3 = 0 ;
7192 wxNativePixelData *result = 0 ;
7193 void *argp1 = 0 ;
7194 int res1 = 0 ;
7195 wxPoint temp2 ;
7196 wxSize temp3 ;
7197
7198 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7200 if (!SWIG_IsOK(res1)) {
7201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7202 }
7203 if (!argp1) {
7204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7205 }
7206 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7207 {
7208 arg2 = &temp2;
7209 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7210 }
7211 {
7212 arg3 = &temp3;
7213 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7214 }
7215 {
7216 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7220 return resultobj;
7221 fail:
7222 return NULL;
7223 }
7224
7225
7226 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7227 int argc;
7228 PyObject *argv[4];
7229
7230 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7231 --argc;
7232 if (argc == 1) {
7233 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7234 }
7235 if (argc == 2) {
7236 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7237 }
7238 if (argc == 3) {
7239 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7240 }
7241
7242 fail:
7243 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7244 return NULL;
7245 }
7246
7247
7248 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7249 PyObject *resultobj = 0;
7250 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7251 void *argp1 = 0 ;
7252 int res1 = 0 ;
7253 PyObject *swig_obj[1] ;
7254
7255 if (!args) SWIG_fail;
7256 swig_obj[0] = args;
7257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7258 if (!SWIG_IsOK(res1)) {
7259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7260 }
7261 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7262 {
7263 delete arg1;
7264
7265 if (PyErr_Occurred()) SWIG_fail;
7266 }
7267 resultobj = SWIG_Py_Void();
7268 return resultobj;
7269 fail:
7270 return NULL;
7271 }
7272
7273
7274 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7275 PyObject *resultobj = 0;
7276 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7277 wxNativePixelData_Accessor result;
7278 void *argp1 = 0 ;
7279 int res1 = 0 ;
7280 PyObject *swig_obj[1] ;
7281
7282 if (!args) SWIG_fail;
7283 swig_obj[0] = args;
7284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7285 if (!SWIG_IsOK(res1)) {
7286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7287 }
7288 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7289 {
7290 result = ((wxNativePixelData const *)arg1)->GetPixels();
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7294 return resultobj;
7295 fail:
7296 return NULL;
7297 }
7298
7299
7300 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *resultobj = 0;
7302 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7303 void *argp1 = 0 ;
7304 int res1 = 0 ;
7305 PyObject *swig_obj[1] ;
7306
7307 if (!args) SWIG_fail;
7308 swig_obj[0] = args;
7309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7310 if (!SWIG_IsOK(res1)) {
7311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7312 }
7313 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7314 {
7315 (arg1)->UseAlpha();
7316 if (PyErr_Occurred()) SWIG_fail;
7317 }
7318 resultobj = SWIG_Py_Void();
7319 return resultobj;
7320 fail:
7321 return NULL;
7322 }
7323
7324
7325 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7326 PyObject *resultobj = 0;
7327 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7328 bool result;
7329 void *argp1 = 0 ;
7330 int res1 = 0 ;
7331 PyObject *swig_obj[1] ;
7332
7333 if (!args) SWIG_fail;
7334 swig_obj[0] = args;
7335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7336 if (!SWIG_IsOK(res1)) {
7337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7338 }
7339 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7340 {
7341 result = (bool)wxNativePixelData___nonzero__(arg1);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 {
7345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7346 }
7347 return resultobj;
7348 fail:
7349 return NULL;
7350 }
7351
7352
7353 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7354 PyObject *obj;
7355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7356 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7357 return SWIG_Py_Void();
7358 }
7359
7360 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7361 return SWIG_Python_InitShadowInstance(args);
7362 }
7363
7364 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7365 PyObject *resultobj = 0;
7366 wxNativePixelData *arg1 = 0 ;
7367 wxNativePixelData_Accessor *result = 0 ;
7368 void *argp1 = 0 ;
7369 int res1 = 0 ;
7370
7371 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7373 if (!SWIG_IsOK(res1)) {
7374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7375 }
7376 if (!argp1) {
7377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7378 }
7379 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7380 {
7381 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7385 return resultobj;
7386 fail:
7387 return NULL;
7388 }
7389
7390
7391 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7392 PyObject *resultobj = 0;
7393 wxBitmap *arg1 = 0 ;
7394 wxNativePixelData *arg2 = 0 ;
7395 wxNativePixelData_Accessor *result = 0 ;
7396 void *argp1 = 0 ;
7397 int res1 = 0 ;
7398 void *argp2 = 0 ;
7399 int res2 = 0 ;
7400
7401 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7403 if (!SWIG_IsOK(res1)) {
7404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7405 }
7406 if (!argp1) {
7407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7408 }
7409 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7410 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7411 if (!SWIG_IsOK(res2)) {
7412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7413 }
7414 if (!argp2) {
7415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7416 }
7417 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7418 {
7419 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7420 if (PyErr_Occurred()) SWIG_fail;
7421 }
7422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7423 return resultobj;
7424 fail:
7425 return NULL;
7426 }
7427
7428
7429 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7430 PyObject *resultobj = 0;
7431 wxNativePixelData_Accessor *result = 0 ;
7432
7433 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7434 {
7435 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7436 if (PyErr_Occurred()) SWIG_fail;
7437 }
7438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7439 return resultobj;
7440 fail:
7441 return NULL;
7442 }
7443
7444
7445 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7446 int argc;
7447 PyObject *argv[3];
7448
7449 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7450 --argc;
7451 if (argc == 0) {
7452 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7453 }
7454 if (argc == 1) {
7455 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7456 }
7457 if (argc == 2) {
7458 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7459 }
7460
7461 fail:
7462 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7463 return NULL;
7464 }
7465
7466
7467 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7468 PyObject *resultobj = 0;
7469 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7470 void *argp1 = 0 ;
7471 int res1 = 0 ;
7472 PyObject *swig_obj[1] ;
7473
7474 if (!args) SWIG_fail;
7475 swig_obj[0] = args;
7476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7477 if (!SWIG_IsOK(res1)) {
7478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7479 }
7480 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7481 {
7482 delete arg1;
7483
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 resultobj = SWIG_Py_Void();
7487 return resultobj;
7488 fail:
7489 return NULL;
7490 }
7491
7492
7493 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7494 PyObject *resultobj = 0;
7495 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7496 wxNativePixelData *arg2 = 0 ;
7497 void *argp1 = 0 ;
7498 int res1 = 0 ;
7499 void *argp2 = 0 ;
7500 int res2 = 0 ;
7501 PyObject * obj0 = 0 ;
7502 PyObject * obj1 = 0 ;
7503 char * kwnames[] = {
7504 (char *) "self",(char *) "data", NULL
7505 };
7506
7507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7509 if (!SWIG_IsOK(res1)) {
7510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7511 }
7512 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7514 if (!SWIG_IsOK(res2)) {
7515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7516 }
7517 if (!argp2) {
7518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7519 }
7520 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7521 {
7522 (arg1)->Reset((wxNativePixelData const &)*arg2);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_Py_Void();
7526 return resultobj;
7527 fail:
7528 return NULL;
7529 }
7530
7531
7532 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7533 PyObject *resultobj = 0;
7534 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7535 bool result;
7536 void *argp1 = 0 ;
7537 int res1 = 0 ;
7538 PyObject *swig_obj[1] ;
7539
7540 if (!args) SWIG_fail;
7541 swig_obj[0] = args;
7542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7543 if (!SWIG_IsOK(res1)) {
7544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7545 }
7546 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7547 {
7548 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7549 if (PyErr_Occurred()) SWIG_fail;
7550 }
7551 {
7552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7553 }
7554 return resultobj;
7555 fail:
7556 return NULL;
7557 }
7558
7559
7560 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7561 PyObject *resultobj = 0;
7562 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7563 void *argp1 = 0 ;
7564 int res1 = 0 ;
7565 PyObject *swig_obj[1] ;
7566
7567 if (!args) SWIG_fail;
7568 swig_obj[0] = args;
7569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7570 if (!SWIG_IsOK(res1)) {
7571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7572 }
7573 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7574 {
7575 wxNativePixelData_Accessor_nextPixel(arg1);
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 resultobj = SWIG_Py_Void();
7579 return resultobj;
7580 fail:
7581 return NULL;
7582 }
7583
7584
7585 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7586 PyObject *resultobj = 0;
7587 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7588 wxNativePixelData *arg2 = 0 ;
7589 int arg3 ;
7590 int arg4 ;
7591 void *argp1 = 0 ;
7592 int res1 = 0 ;
7593 void *argp2 = 0 ;
7594 int res2 = 0 ;
7595 int val3 ;
7596 int ecode3 = 0 ;
7597 int val4 ;
7598 int ecode4 = 0 ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602 PyObject * obj3 = 0 ;
7603 char * kwnames[] = {
7604 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7605 };
7606
7607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7611 }
7612 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7614 if (!SWIG_IsOK(res2)) {
7615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7616 }
7617 if (!argp2) {
7618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7619 }
7620 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7621 ecode3 = SWIG_AsVal_int(obj2, &val3);
7622 if (!SWIG_IsOK(ecode3)) {
7623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7624 }
7625 arg3 = static_cast< int >(val3);
7626 ecode4 = SWIG_AsVal_int(obj3, &val4);
7627 if (!SWIG_IsOK(ecode4)) {
7628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7629 }
7630 arg4 = static_cast< int >(val4);
7631 {
7632 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 resultobj = SWIG_Py_Void();
7636 return resultobj;
7637 fail:
7638 return NULL;
7639 }
7640
7641
7642 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj = 0;
7644 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7645 wxNativePixelData *arg2 = 0 ;
7646 int arg3 ;
7647 void *argp1 = 0 ;
7648 int res1 = 0 ;
7649 void *argp2 = 0 ;
7650 int res2 = 0 ;
7651 int val3 ;
7652 int ecode3 = 0 ;
7653 PyObject * obj0 = 0 ;
7654 PyObject * obj1 = 0 ;
7655 PyObject * obj2 = 0 ;
7656 char * kwnames[] = {
7657 (char *) "self",(char *) "data",(char *) "x", NULL
7658 };
7659
7660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7662 if (!SWIG_IsOK(res1)) {
7663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7664 }
7665 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7667 if (!SWIG_IsOK(res2)) {
7668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7669 }
7670 if (!argp2) {
7671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7672 }
7673 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7674 ecode3 = SWIG_AsVal_int(obj2, &val3);
7675 if (!SWIG_IsOK(ecode3)) {
7676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7677 }
7678 arg3 = static_cast< int >(val3);
7679 {
7680 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_Py_Void();
7684 return resultobj;
7685 fail:
7686 return NULL;
7687 }
7688
7689
7690 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj = 0;
7692 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7693 wxNativePixelData *arg2 = 0 ;
7694 int arg3 ;
7695 void *argp1 = 0 ;
7696 int res1 = 0 ;
7697 void *argp2 = 0 ;
7698 int res2 = 0 ;
7699 int val3 ;
7700 int ecode3 = 0 ;
7701 PyObject * obj0 = 0 ;
7702 PyObject * obj1 = 0 ;
7703 PyObject * obj2 = 0 ;
7704 char * kwnames[] = {
7705 (char *) "self",(char *) "data",(char *) "y", NULL
7706 };
7707
7708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7710 if (!SWIG_IsOK(res1)) {
7711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7712 }
7713 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7715 if (!SWIG_IsOK(res2)) {
7716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7717 }
7718 if (!argp2) {
7719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7720 }
7721 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7722 ecode3 = SWIG_AsVal_int(obj2, &val3);
7723 if (!SWIG_IsOK(ecode3)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7725 }
7726 arg3 = static_cast< int >(val3);
7727 {
7728 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 resultobj = SWIG_Py_Void();
7732 return resultobj;
7733 fail:
7734 return NULL;
7735 }
7736
7737
7738 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7739 PyObject *resultobj = 0;
7740 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7741 wxNativePixelData *arg2 = 0 ;
7742 int arg3 ;
7743 int arg4 ;
7744 void *argp1 = 0 ;
7745 int res1 = 0 ;
7746 void *argp2 = 0 ;
7747 int res2 = 0 ;
7748 int val3 ;
7749 int ecode3 = 0 ;
7750 int val4 ;
7751 int ecode4 = 0 ;
7752 PyObject * obj0 = 0 ;
7753 PyObject * obj1 = 0 ;
7754 PyObject * obj2 = 0 ;
7755 PyObject * obj3 = 0 ;
7756 char * kwnames[] = {
7757 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7758 };
7759
7760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7762 if (!SWIG_IsOK(res1)) {
7763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7764 }
7765 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7767 if (!SWIG_IsOK(res2)) {
7768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7769 }
7770 if (!argp2) {
7771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7772 }
7773 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7774 ecode3 = SWIG_AsVal_int(obj2, &val3);
7775 if (!SWIG_IsOK(ecode3)) {
7776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7777 }
7778 arg3 = static_cast< int >(val3);
7779 ecode4 = SWIG_AsVal_int(obj3, &val4);
7780 if (!SWIG_IsOK(ecode4)) {
7781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7782 }
7783 arg4 = static_cast< int >(val4);
7784 {
7785 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
7788 resultobj = SWIG_Py_Void();
7789 return resultobj;
7790 fail:
7791 return NULL;
7792 }
7793
7794
7795 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7796 PyObject *resultobj = 0;
7797 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7798 byte arg2 ;
7799 byte arg3 ;
7800 byte arg4 ;
7801 void *argp1 = 0 ;
7802 int res1 = 0 ;
7803 unsigned char val2 ;
7804 int ecode2 = 0 ;
7805 unsigned char val3 ;
7806 int ecode3 = 0 ;
7807 unsigned char val4 ;
7808 int ecode4 = 0 ;
7809 PyObject * obj0 = 0 ;
7810 PyObject * obj1 = 0 ;
7811 PyObject * obj2 = 0 ;
7812 PyObject * obj3 = 0 ;
7813 char * kwnames[] = {
7814 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7815 };
7816
7817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7819 if (!SWIG_IsOK(res1)) {
7820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7821 }
7822 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7823 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7824 if (!SWIG_IsOK(ecode2)) {
7825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7826 }
7827 arg2 = static_cast< byte >(val2);
7828 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7829 if (!SWIG_IsOK(ecode3)) {
7830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7831 }
7832 arg3 = static_cast< byte >(val3);
7833 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7834 if (!SWIG_IsOK(ecode4)) {
7835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7836 }
7837 arg4 = static_cast< byte >(val4);
7838 {
7839 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7840 if (PyErr_Occurred()) SWIG_fail;
7841 }
7842 resultobj = SWIG_Py_Void();
7843 return resultobj;
7844 fail:
7845 return NULL;
7846 }
7847
7848
7849 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7850 PyObject *resultobj = 0;
7851 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7852 PyObject *result = 0 ;
7853 void *argp1 = 0 ;
7854 int res1 = 0 ;
7855 PyObject *swig_obj[1] ;
7856
7857 if (!args) SWIG_fail;
7858 swig_obj[0] = args;
7859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7860 if (!SWIG_IsOK(res1)) {
7861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7862 }
7863 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7864 {
7865 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 resultobj = result;
7869 return resultobj;
7870 fail:
7871 return NULL;
7872 }
7873
7874
7875 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7876 PyObject *obj;
7877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7878 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7879 return SWIG_Py_Void();
7880 }
7881
7882 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7883 return SWIG_Python_InitShadowInstance(args);
7884 }
7885
7886 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7887 PyObject *resultobj = 0;
7888 wxBitmap *arg1 = 0 ;
7889 wxAlphaPixelData *result = 0 ;
7890 void *argp1 = 0 ;
7891 int res1 = 0 ;
7892
7893 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7895 if (!SWIG_IsOK(res1)) {
7896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7897 }
7898 if (!argp1) {
7899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7900 }
7901 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7902 {
7903 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7907 return resultobj;
7908 fail:
7909 return NULL;
7910 }
7911
7912
7913 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7914 PyObject *resultobj = 0;
7915 wxBitmap *arg1 = 0 ;
7916 wxRect *arg2 = 0 ;
7917 wxAlphaPixelData *result = 0 ;
7918 void *argp1 = 0 ;
7919 int res1 = 0 ;
7920 wxRect temp2 ;
7921
7922 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7924 if (!SWIG_IsOK(res1)) {
7925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7926 }
7927 if (!argp1) {
7928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7929 }
7930 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7931 {
7932 arg2 = &temp2;
7933 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7934 }
7935 {
7936 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7937 if (PyErr_Occurred()) SWIG_fail;
7938 }
7939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7940 return resultobj;
7941 fail:
7942 return NULL;
7943 }
7944
7945
7946 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7947 PyObject *resultobj = 0;
7948 wxBitmap *arg1 = 0 ;
7949 wxPoint *arg2 = 0 ;
7950 wxSize *arg3 = 0 ;
7951 wxAlphaPixelData *result = 0 ;
7952 void *argp1 = 0 ;
7953 int res1 = 0 ;
7954 wxPoint temp2 ;
7955 wxSize temp3 ;
7956
7957 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7959 if (!SWIG_IsOK(res1)) {
7960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7961 }
7962 if (!argp1) {
7963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7964 }
7965 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7966 {
7967 arg2 = &temp2;
7968 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7969 }
7970 {
7971 arg3 = &temp3;
7972 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7973 }
7974 {
7975 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7979 return resultobj;
7980 fail:
7981 return NULL;
7982 }
7983
7984
7985 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7986 int argc;
7987 PyObject *argv[4];
7988
7989 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7990 --argc;
7991 if (argc == 1) {
7992 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7993 }
7994 if (argc == 2) {
7995 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7996 }
7997 if (argc == 3) {
7998 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7999 }
8000
8001 fail:
8002 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8003 return NULL;
8004 }
8005
8006
8007 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8008 PyObject *resultobj = 0;
8009 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8010 void *argp1 = 0 ;
8011 int res1 = 0 ;
8012 PyObject *swig_obj[1] ;
8013
8014 if (!args) SWIG_fail;
8015 swig_obj[0] = args;
8016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8017 if (!SWIG_IsOK(res1)) {
8018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8019 }
8020 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8021 {
8022 delete arg1;
8023
8024 if (PyErr_Occurred()) SWIG_fail;
8025 }
8026 resultobj = SWIG_Py_Void();
8027 return resultobj;
8028 fail:
8029 return NULL;
8030 }
8031
8032
8033 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8034 PyObject *resultobj = 0;
8035 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8036 wxAlphaPixelData_Accessor result;
8037 void *argp1 = 0 ;
8038 int res1 = 0 ;
8039 PyObject *swig_obj[1] ;
8040
8041 if (!args) SWIG_fail;
8042 swig_obj[0] = args;
8043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8044 if (!SWIG_IsOK(res1)) {
8045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8046 }
8047 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8048 {
8049 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8060 PyObject *resultobj = 0;
8061 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8062 void *argp1 = 0 ;
8063 int res1 = 0 ;
8064 PyObject *swig_obj[1] ;
8065
8066 if (!args) SWIG_fail;
8067 swig_obj[0] = args;
8068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8069 if (!SWIG_IsOK(res1)) {
8070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8071 }
8072 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8073 {
8074 (arg1)->UseAlpha();
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 resultobj = SWIG_Py_Void();
8078 return resultobj;
8079 fail:
8080 return NULL;
8081 }
8082
8083
8084 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8085 PyObject *resultobj = 0;
8086 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8087 bool result;
8088 void *argp1 = 0 ;
8089 int res1 = 0 ;
8090 PyObject *swig_obj[1] ;
8091
8092 if (!args) SWIG_fail;
8093 swig_obj[0] = args;
8094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8095 if (!SWIG_IsOK(res1)) {
8096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8097 }
8098 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8099 {
8100 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 {
8104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8105 }
8106 return resultobj;
8107 fail:
8108 return NULL;
8109 }
8110
8111
8112 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8113 PyObject *obj;
8114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8115 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8116 return SWIG_Py_Void();
8117 }
8118
8119 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8120 return SWIG_Python_InitShadowInstance(args);
8121 }
8122
8123 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8124 PyObject *resultobj = 0;
8125 wxAlphaPixelData *arg1 = 0 ;
8126 wxAlphaPixelData_Accessor *result = 0 ;
8127 void *argp1 = 0 ;
8128 int res1 = 0 ;
8129
8130 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8132 if (!SWIG_IsOK(res1)) {
8133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8134 }
8135 if (!argp1) {
8136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8137 }
8138 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8139 {
8140 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8151 PyObject *resultobj = 0;
8152 wxBitmap *arg1 = 0 ;
8153 wxAlphaPixelData *arg2 = 0 ;
8154 wxAlphaPixelData_Accessor *result = 0 ;
8155 void *argp1 = 0 ;
8156 int res1 = 0 ;
8157 void *argp2 = 0 ;
8158 int res2 = 0 ;
8159
8160 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8162 if (!SWIG_IsOK(res1)) {
8163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8164 }
8165 if (!argp1) {
8166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8167 }
8168 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8169 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8170 if (!SWIG_IsOK(res2)) {
8171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8172 }
8173 if (!argp2) {
8174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8175 }
8176 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8177 {
8178 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8179 if (PyErr_Occurred()) SWIG_fail;
8180 }
8181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8182 return resultobj;
8183 fail:
8184 return NULL;
8185 }
8186
8187
8188 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8189 PyObject *resultobj = 0;
8190 wxAlphaPixelData_Accessor *result = 0 ;
8191
8192 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8193 {
8194 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8198 return resultobj;
8199 fail:
8200 return NULL;
8201 }
8202
8203
8204 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8205 int argc;
8206 PyObject *argv[3];
8207
8208 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8209 --argc;
8210 if (argc == 0) {
8211 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8212 }
8213 if (argc == 1) {
8214 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8215 }
8216 if (argc == 2) {
8217 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8218 }
8219
8220 fail:
8221 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8222 return NULL;
8223 }
8224
8225
8226 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8227 PyObject *resultobj = 0;
8228 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8229 void *argp1 = 0 ;
8230 int res1 = 0 ;
8231 PyObject *swig_obj[1] ;
8232
8233 if (!args) SWIG_fail;
8234 swig_obj[0] = args;
8235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8236 if (!SWIG_IsOK(res1)) {
8237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8238 }
8239 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8240 {
8241 delete arg1;
8242
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 resultobj = SWIG_Py_Void();
8246 return resultobj;
8247 fail:
8248 return NULL;
8249 }
8250
8251
8252 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8253 PyObject *resultobj = 0;
8254 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8255 wxAlphaPixelData *arg2 = 0 ;
8256 void *argp1 = 0 ;
8257 int res1 = 0 ;
8258 void *argp2 = 0 ;
8259 int res2 = 0 ;
8260 PyObject * obj0 = 0 ;
8261 PyObject * obj1 = 0 ;
8262 char * kwnames[] = {
8263 (char *) "self",(char *) "data", NULL
8264 };
8265
8266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8268 if (!SWIG_IsOK(res1)) {
8269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8270 }
8271 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8273 if (!SWIG_IsOK(res2)) {
8274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8275 }
8276 if (!argp2) {
8277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8278 }
8279 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8280 {
8281 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_Py_Void();
8285 return resultobj;
8286 fail:
8287 return NULL;
8288 }
8289
8290
8291 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8292 PyObject *resultobj = 0;
8293 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8294 bool result;
8295 void *argp1 = 0 ;
8296 int res1 = 0 ;
8297 PyObject *swig_obj[1] ;
8298
8299 if (!args) SWIG_fail;
8300 swig_obj[0] = args;
8301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8304 }
8305 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8306 {
8307 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 {
8311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8312 }
8313 return resultobj;
8314 fail:
8315 return NULL;
8316 }
8317
8318
8319 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8320 PyObject *resultobj = 0;
8321 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8322 void *argp1 = 0 ;
8323 int res1 = 0 ;
8324 PyObject *swig_obj[1] ;
8325
8326 if (!args) SWIG_fail;
8327 swig_obj[0] = args;
8328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8329 if (!SWIG_IsOK(res1)) {
8330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8331 }
8332 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8333 {
8334 wxAlphaPixelData_Accessor_nextPixel(arg1);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 resultobj = SWIG_Py_Void();
8338 return resultobj;
8339 fail:
8340 return NULL;
8341 }
8342
8343
8344 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj = 0;
8346 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8347 wxAlphaPixelData *arg2 = 0 ;
8348 int arg3 ;
8349 int arg4 ;
8350 void *argp1 = 0 ;
8351 int res1 = 0 ;
8352 void *argp2 = 0 ;
8353 int res2 = 0 ;
8354 int val3 ;
8355 int ecode3 = 0 ;
8356 int val4 ;
8357 int ecode4 = 0 ;
8358 PyObject * obj0 = 0 ;
8359 PyObject * obj1 = 0 ;
8360 PyObject * obj2 = 0 ;
8361 PyObject * obj3 = 0 ;
8362 char * kwnames[] = {
8363 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8364 };
8365
8366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8368 if (!SWIG_IsOK(res1)) {
8369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8370 }
8371 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8373 if (!SWIG_IsOK(res2)) {
8374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8375 }
8376 if (!argp2) {
8377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8378 }
8379 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8380 ecode3 = SWIG_AsVal_int(obj2, &val3);
8381 if (!SWIG_IsOK(ecode3)) {
8382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8383 }
8384 arg3 = static_cast< int >(val3);
8385 ecode4 = SWIG_AsVal_int(obj3, &val4);
8386 if (!SWIG_IsOK(ecode4)) {
8387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8388 }
8389 arg4 = static_cast< int >(val4);
8390 {
8391 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 resultobj = SWIG_Py_Void();
8395 return resultobj;
8396 fail:
8397 return NULL;
8398 }
8399
8400
8401 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj = 0;
8403 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8404 wxAlphaPixelData *arg2 = 0 ;
8405 int arg3 ;
8406 void *argp1 = 0 ;
8407 int res1 = 0 ;
8408 void *argp2 = 0 ;
8409 int res2 = 0 ;
8410 int val3 ;
8411 int ecode3 = 0 ;
8412 PyObject * obj0 = 0 ;
8413 PyObject * obj1 = 0 ;
8414 PyObject * obj2 = 0 ;
8415 char * kwnames[] = {
8416 (char *) "self",(char *) "data",(char *) "x", NULL
8417 };
8418
8419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8421 if (!SWIG_IsOK(res1)) {
8422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8423 }
8424 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8426 if (!SWIG_IsOK(res2)) {
8427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8428 }
8429 if (!argp2) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8431 }
8432 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8433 ecode3 = SWIG_AsVal_int(obj2, &val3);
8434 if (!SWIG_IsOK(ecode3)) {
8435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8436 }
8437 arg3 = static_cast< int >(val3);
8438 {
8439 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 resultobj = SWIG_Py_Void();
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj = 0;
8451 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8452 wxAlphaPixelData *arg2 = 0 ;
8453 int arg3 ;
8454 void *argp1 = 0 ;
8455 int res1 = 0 ;
8456 void *argp2 = 0 ;
8457 int res2 = 0 ;
8458 int val3 ;
8459 int ecode3 = 0 ;
8460 PyObject * obj0 = 0 ;
8461 PyObject * obj1 = 0 ;
8462 PyObject * obj2 = 0 ;
8463 char * kwnames[] = {
8464 (char *) "self",(char *) "data",(char *) "y", NULL
8465 };
8466
8467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8469 if (!SWIG_IsOK(res1)) {
8470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8471 }
8472 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8474 if (!SWIG_IsOK(res2)) {
8475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8476 }
8477 if (!argp2) {
8478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8479 }
8480 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8481 ecode3 = SWIG_AsVal_int(obj2, &val3);
8482 if (!SWIG_IsOK(ecode3)) {
8483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8484 }
8485 arg3 = static_cast< int >(val3);
8486 {
8487 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8488 if (PyErr_Occurred()) SWIG_fail;
8489 }
8490 resultobj = SWIG_Py_Void();
8491 return resultobj;
8492 fail:
8493 return NULL;
8494 }
8495
8496
8497 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8498 PyObject *resultobj = 0;
8499 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8500 wxAlphaPixelData *arg2 = 0 ;
8501 int arg3 ;
8502 int arg4 ;
8503 void *argp1 = 0 ;
8504 int res1 = 0 ;
8505 void *argp2 = 0 ;
8506 int res2 = 0 ;
8507 int val3 ;
8508 int ecode3 = 0 ;
8509 int val4 ;
8510 int ecode4 = 0 ;
8511 PyObject * obj0 = 0 ;
8512 PyObject * obj1 = 0 ;
8513 PyObject * obj2 = 0 ;
8514 PyObject * obj3 = 0 ;
8515 char * kwnames[] = {
8516 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8517 };
8518
8519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8521 if (!SWIG_IsOK(res1)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8523 }
8524 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8526 if (!SWIG_IsOK(res2)) {
8527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8528 }
8529 if (!argp2) {
8530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8531 }
8532 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8533 ecode3 = SWIG_AsVal_int(obj2, &val3);
8534 if (!SWIG_IsOK(ecode3)) {
8535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8536 }
8537 arg3 = static_cast< int >(val3);
8538 ecode4 = SWIG_AsVal_int(obj3, &val4);
8539 if (!SWIG_IsOK(ecode4)) {
8540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8541 }
8542 arg4 = static_cast< int >(val4);
8543 {
8544 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 resultobj = SWIG_Py_Void();
8548 return resultobj;
8549 fail:
8550 return NULL;
8551 }
8552
8553
8554 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8555 PyObject *resultobj = 0;
8556 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8557 byte arg2 ;
8558 byte arg3 ;
8559 byte arg4 ;
8560 byte arg5 ;
8561 void *argp1 = 0 ;
8562 int res1 = 0 ;
8563 unsigned char val2 ;
8564 int ecode2 = 0 ;
8565 unsigned char val3 ;
8566 int ecode3 = 0 ;
8567 unsigned char val4 ;
8568 int ecode4 = 0 ;
8569 unsigned char val5 ;
8570 int ecode5 = 0 ;
8571 PyObject * obj0 = 0 ;
8572 PyObject * obj1 = 0 ;
8573 PyObject * obj2 = 0 ;
8574 PyObject * obj3 = 0 ;
8575 PyObject * obj4 = 0 ;
8576 char * kwnames[] = {
8577 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8578 };
8579
8580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8582 if (!SWIG_IsOK(res1)) {
8583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8584 }
8585 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8586 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8587 if (!SWIG_IsOK(ecode2)) {
8588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8589 }
8590 arg2 = static_cast< byte >(val2);
8591 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8592 if (!SWIG_IsOK(ecode3)) {
8593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8594 }
8595 arg3 = static_cast< byte >(val3);
8596 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8597 if (!SWIG_IsOK(ecode4)) {
8598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8599 }
8600 arg4 = static_cast< byte >(val4);
8601 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8602 if (!SWIG_IsOK(ecode5)) {
8603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8604 }
8605 arg5 = static_cast< byte >(val5);
8606 {
8607 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
8610 resultobj = SWIG_Py_Void();
8611 return resultobj;
8612 fail:
8613 return NULL;
8614 }
8615
8616
8617 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8618 PyObject *resultobj = 0;
8619 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8620 PyObject *result = 0 ;
8621 void *argp1 = 0 ;
8622 int res1 = 0 ;
8623 PyObject *swig_obj[1] ;
8624
8625 if (!args) SWIG_fail;
8626 swig_obj[0] = args;
8627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8628 if (!SWIG_IsOK(res1)) {
8629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8630 }
8631 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8632 {
8633 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 resultobj = result;
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8644 PyObject *obj;
8645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8646 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8647 return SWIG_Py_Void();
8648 }
8649
8650 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8651 return SWIG_Python_InitShadowInstance(args);
8652 }
8653
8654 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj = 0;
8656 wxBitmap *arg1 = 0 ;
8657 wxColour const &arg2_defvalue = wxNullColour ;
8658 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8659 wxMask *result = 0 ;
8660 void *argp1 = 0 ;
8661 int res1 = 0 ;
8662 wxColour temp2 ;
8663 PyObject * obj0 = 0 ;
8664 PyObject * obj1 = 0 ;
8665 char * kwnames[] = {
8666 (char *) "bitmap",(char *) "colour", NULL
8667 };
8668
8669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8670 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8671 if (!SWIG_IsOK(res1)) {
8672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8673 }
8674 if (!argp1) {
8675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8676 }
8677 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8678 if (obj1) {
8679 {
8680 arg2 = &temp2;
8681 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8682 }
8683 }
8684 {
8685 if (!wxPyCheckForApp()) SWIG_fail;
8686 PyThreadState* __tstate = wxPyBeginAllowThreads();
8687 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8688 wxPyEndAllowThreads(__tstate);
8689 if (PyErr_Occurred()) SWIG_fail;
8690 }
8691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8692 return resultobj;
8693 fail:
8694 return NULL;
8695 }
8696
8697
8698 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8699 PyObject *resultobj = 0;
8700 wxMask *arg1 = (wxMask *) 0 ;
8701 void *argp1 = 0 ;
8702 int res1 = 0 ;
8703 PyObject *swig_obj[1] ;
8704
8705 if (!args) SWIG_fail;
8706 swig_obj[0] = args;
8707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8708 if (!SWIG_IsOK(res1)) {
8709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8710 }
8711 arg1 = reinterpret_cast< wxMask * >(argp1);
8712 {
8713 delete arg1;
8714
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 resultobj = SWIG_Py_Void();
8718 return resultobj;
8719 fail:
8720 return NULL;
8721 }
8722
8723
8724 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8725 PyObject *obj;
8726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8727 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8728 return SWIG_Py_Void();
8729 }
8730
8731 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8732 return SWIG_Python_InitShadowInstance(args);
8733 }
8734
8735 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8736 PyObject *resultobj = 0;
8737 wxString *arg1 = 0 ;
8738 wxBitmapType arg2 ;
8739 int arg3 = (int) -1 ;
8740 int arg4 = (int) -1 ;
8741 wxIcon *result = 0 ;
8742 bool temp1 = false ;
8743 int val2 ;
8744 int ecode2 = 0 ;
8745 int val3 ;
8746 int ecode3 = 0 ;
8747 int val4 ;
8748 int ecode4 = 0 ;
8749 PyObject * obj0 = 0 ;
8750 PyObject * obj1 = 0 ;
8751 PyObject * obj2 = 0 ;
8752 PyObject * obj3 = 0 ;
8753 char * kwnames[] = {
8754 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8755 };
8756
8757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8758 {
8759 arg1 = wxString_in_helper(obj0);
8760 if (arg1 == NULL) SWIG_fail;
8761 temp1 = true;
8762 }
8763 ecode2 = SWIG_AsVal_int(obj1, &val2);
8764 if (!SWIG_IsOK(ecode2)) {
8765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8766 }
8767 arg2 = static_cast< wxBitmapType >(val2);
8768 if (obj2) {
8769 ecode3 = SWIG_AsVal_int(obj2, &val3);
8770 if (!SWIG_IsOK(ecode3)) {
8771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8772 }
8773 arg3 = static_cast< int >(val3);
8774 }
8775 if (obj3) {
8776 ecode4 = SWIG_AsVal_int(obj3, &val4);
8777 if (!SWIG_IsOK(ecode4)) {
8778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8779 }
8780 arg4 = static_cast< int >(val4);
8781 }
8782 {
8783 if (!wxPyCheckForApp()) SWIG_fail;
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
8785 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8790 {
8791 if (temp1)
8792 delete arg1;
8793 }
8794 return resultobj;
8795 fail:
8796 {
8797 if (temp1)
8798 delete arg1;
8799 }
8800 return NULL;
8801 }
8802
8803
8804 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8805 PyObject *resultobj = 0;
8806 wxIcon *arg1 = (wxIcon *) 0 ;
8807 void *argp1 = 0 ;
8808 int res1 = 0 ;
8809 PyObject *swig_obj[1] ;
8810
8811 if (!args) SWIG_fail;
8812 swig_obj[0] = args;
8813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8814 if (!SWIG_IsOK(res1)) {
8815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8816 }
8817 arg1 = reinterpret_cast< wxIcon * >(argp1);
8818 {
8819 PyThreadState* __tstate = wxPyBeginAllowThreads();
8820 delete arg1;
8821
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = SWIG_Py_Void();
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8833 PyObject *resultobj = 0;
8834 wxIcon *result = 0 ;
8835
8836 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8837 {
8838 if (!wxPyCheckForApp()) SWIG_fail;
8839 PyThreadState* __tstate = wxPyBeginAllowThreads();
8840 result = (wxIcon *)new wxIcon();
8841 wxPyEndAllowThreads(__tstate);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 }
8844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8845 return resultobj;
8846 fail:
8847 return NULL;
8848 }
8849
8850
8851 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8852 PyObject *resultobj = 0;
8853 wxIconLocation *arg1 = 0 ;
8854 wxIcon *result = 0 ;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 PyObject * obj0 = 0 ;
8858 char * kwnames[] = {
8859 (char *) "loc", NULL
8860 };
8861
8862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8863 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8864 if (!SWIG_IsOK(res1)) {
8865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8866 }
8867 if (!argp1) {
8868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8869 }
8870 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8871 {
8872 if (!wxPyCheckForApp()) SWIG_fail;
8873 PyThreadState* __tstate = wxPyBeginAllowThreads();
8874 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8875 wxPyEndAllowThreads(__tstate);
8876 if (PyErr_Occurred()) SWIG_fail;
8877 }
8878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8879 return resultobj;
8880 fail:
8881 return NULL;
8882 }
8883
8884
8885 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8886 PyObject *resultobj = 0;
8887 wxBitmap *arg1 = 0 ;
8888 wxIcon *result = 0 ;
8889 void *argp1 = 0 ;
8890 int res1 = 0 ;
8891 PyObject * obj0 = 0 ;
8892 char * kwnames[] = {
8893 (char *) "bmp", NULL
8894 };
8895
8896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8897 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8898 if (!SWIG_IsOK(res1)) {
8899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8900 }
8901 if (!argp1) {
8902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8903 }
8904 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8905 {
8906 if (!wxPyCheckForApp()) SWIG_fail;
8907 PyThreadState* __tstate = wxPyBeginAllowThreads();
8908 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8913 return resultobj;
8914 fail:
8915 return NULL;
8916 }
8917
8918
8919 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8920 PyObject *resultobj = 0;
8921 PyObject *arg1 = (PyObject *) 0 ;
8922 wxIcon *result = 0 ;
8923 PyObject * obj0 = 0 ;
8924 char * kwnames[] = {
8925 (char *) "listOfStrings", NULL
8926 };
8927
8928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8929 arg1 = obj0;
8930 {
8931 if (!wxPyCheckForApp()) SWIG_fail;
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 result = (wxIcon *)new_wxIcon(arg1);
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj = 0;
8946 wxIcon *arg1 = (wxIcon *) 0 ;
8947 wxString *arg2 = 0 ;
8948 wxBitmapType arg3 ;
8949 bool result;
8950 void *argp1 = 0 ;
8951 int res1 = 0 ;
8952 bool temp2 = false ;
8953 int val3 ;
8954 int ecode3 = 0 ;
8955 PyObject * obj0 = 0 ;
8956 PyObject * obj1 = 0 ;
8957 PyObject * obj2 = 0 ;
8958 char * kwnames[] = {
8959 (char *) "self",(char *) "name",(char *) "type", NULL
8960 };
8961
8962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8964 if (!SWIG_IsOK(res1)) {
8965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8966 }
8967 arg1 = reinterpret_cast< wxIcon * >(argp1);
8968 {
8969 arg2 = wxString_in_helper(obj1);
8970 if (arg2 == NULL) SWIG_fail;
8971 temp2 = true;
8972 }
8973 ecode3 = SWIG_AsVal_int(obj2, &val3);
8974 if (!SWIG_IsOK(ecode3)) {
8975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8976 }
8977 arg3 = static_cast< wxBitmapType >(val3);
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8981 wxPyEndAllowThreads(__tstate);
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
8984 {
8985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8986 }
8987 {
8988 if (temp2)
8989 delete arg2;
8990 }
8991 return resultobj;
8992 fail:
8993 {
8994 if (temp2)
8995 delete arg2;
8996 }
8997 return NULL;
8998 }
8999
9000
9001 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9002 PyObject *resultobj = 0;
9003 wxIcon *arg1 = (wxIcon *) 0 ;
9004 long result;
9005 void *argp1 = 0 ;
9006 int res1 = 0 ;
9007 PyObject *swig_obj[1] ;
9008
9009 if (!args) SWIG_fail;
9010 swig_obj[0] = args;
9011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9012 if (!SWIG_IsOK(res1)) {
9013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9014 }
9015 arg1 = reinterpret_cast< wxIcon * >(argp1);
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 result = (long)(arg1)->GetHandle();
9019 wxPyEndAllowThreads(__tstate);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 resultobj = SWIG_From_long(static_cast< long >(result));
9023 return resultobj;
9024 fail:
9025 return NULL;
9026 }
9027
9028
9029 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9030 PyObject *resultobj = 0;
9031 wxIcon *arg1 = (wxIcon *) 0 ;
9032 long arg2 ;
9033 void *argp1 = 0 ;
9034 int res1 = 0 ;
9035 long val2 ;
9036 int ecode2 = 0 ;
9037 PyObject * obj0 = 0 ;
9038 PyObject * obj1 = 0 ;
9039 char * kwnames[] = {
9040 (char *) "self",(char *) "handle", NULL
9041 };
9042
9043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9047 }
9048 arg1 = reinterpret_cast< wxIcon * >(argp1);
9049 ecode2 = SWIG_AsVal_long(obj1, &val2);
9050 if (!SWIG_IsOK(ecode2)) {
9051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9052 }
9053 arg2 = static_cast< long >(val2);
9054 {
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 wxIcon_SetHandle(arg1,arg2);
9057 wxPyEndAllowThreads(__tstate);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 }
9060 resultobj = SWIG_Py_Void();
9061 return resultobj;
9062 fail:
9063 return NULL;
9064 }
9065
9066
9067 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9068 PyObject *resultobj = 0;
9069 wxIcon *arg1 = (wxIcon *) 0 ;
9070 bool result;
9071 void *argp1 = 0 ;
9072 int res1 = 0 ;
9073 PyObject *swig_obj[1] ;
9074
9075 if (!args) SWIG_fail;
9076 swig_obj[0] = args;
9077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9078 if (!SWIG_IsOK(res1)) {
9079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
9080 }
9081 arg1 = reinterpret_cast< wxIcon * >(argp1);
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 result = (bool)(arg1)->Ok();
9085 wxPyEndAllowThreads(__tstate);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 }
9088 {
9089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9090 }
9091 return resultobj;
9092 fail:
9093 return NULL;
9094 }
9095
9096
9097 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9098 PyObject *resultobj = 0;
9099 wxIcon *arg1 = (wxIcon *) 0 ;
9100 int result;
9101 void *argp1 = 0 ;
9102 int res1 = 0 ;
9103 PyObject *swig_obj[1] ;
9104
9105 if (!args) SWIG_fail;
9106 swig_obj[0] = args;
9107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9108 if (!SWIG_IsOK(res1)) {
9109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9110 }
9111 arg1 = reinterpret_cast< wxIcon * >(argp1);
9112 {
9113 PyThreadState* __tstate = wxPyBeginAllowThreads();
9114 result = (int)(arg1)->GetWidth();
9115 wxPyEndAllowThreads(__tstate);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 resultobj = SWIG_From_int(static_cast< int >(result));
9119 return resultobj;
9120 fail:
9121 return NULL;
9122 }
9123
9124
9125 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9126 PyObject *resultobj = 0;
9127 wxIcon *arg1 = (wxIcon *) 0 ;
9128 int result;
9129 void *argp1 = 0 ;
9130 int res1 = 0 ;
9131 PyObject *swig_obj[1] ;
9132
9133 if (!args) SWIG_fail;
9134 swig_obj[0] = args;
9135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9136 if (!SWIG_IsOK(res1)) {
9137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9138 }
9139 arg1 = reinterpret_cast< wxIcon * >(argp1);
9140 {
9141 PyThreadState* __tstate = wxPyBeginAllowThreads();
9142 result = (int)(arg1)->GetHeight();
9143 wxPyEndAllowThreads(__tstate);
9144 if (PyErr_Occurred()) SWIG_fail;
9145 }
9146 resultobj = SWIG_From_int(static_cast< int >(result));
9147 return resultobj;
9148 fail:
9149 return NULL;
9150 }
9151
9152
9153 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9154 PyObject *resultobj = 0;
9155 wxIcon *arg1 = (wxIcon *) 0 ;
9156 int result;
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 PyObject *swig_obj[1] ;
9160
9161 if (!args) SWIG_fail;
9162 swig_obj[0] = args;
9163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9166 }
9167 arg1 = reinterpret_cast< wxIcon * >(argp1);
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 result = (int)(arg1)->GetDepth();
9171 wxPyEndAllowThreads(__tstate);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 }
9174 resultobj = SWIG_From_int(static_cast< int >(result));
9175 return resultobj;
9176 fail:
9177 return NULL;
9178 }
9179
9180
9181 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9182 PyObject *resultobj = 0;
9183 wxIcon *arg1 = (wxIcon *) 0 ;
9184 int arg2 ;
9185 void *argp1 = 0 ;
9186 int res1 = 0 ;
9187 int val2 ;
9188 int ecode2 = 0 ;
9189 PyObject * obj0 = 0 ;
9190 PyObject * obj1 = 0 ;
9191 char * kwnames[] = {
9192 (char *) "self",(char *) "w", NULL
9193 };
9194
9195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9197 if (!SWIG_IsOK(res1)) {
9198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9199 }
9200 arg1 = reinterpret_cast< wxIcon * >(argp1);
9201 ecode2 = SWIG_AsVal_int(obj1, &val2);
9202 if (!SWIG_IsOK(ecode2)) {
9203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9204 }
9205 arg2 = static_cast< int >(val2);
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 (arg1)->SetWidth(arg2);
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 resultobj = SWIG_Py_Void();
9213 return resultobj;
9214 fail:
9215 return NULL;
9216 }
9217
9218
9219 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9220 PyObject *resultobj = 0;
9221 wxIcon *arg1 = (wxIcon *) 0 ;
9222 int arg2 ;
9223 void *argp1 = 0 ;
9224 int res1 = 0 ;
9225 int val2 ;
9226 int ecode2 = 0 ;
9227 PyObject * obj0 = 0 ;
9228 PyObject * obj1 = 0 ;
9229 char * kwnames[] = {
9230 (char *) "self",(char *) "h", NULL
9231 };
9232
9233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9235 if (!SWIG_IsOK(res1)) {
9236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9237 }
9238 arg1 = reinterpret_cast< wxIcon * >(argp1);
9239 ecode2 = SWIG_AsVal_int(obj1, &val2);
9240 if (!SWIG_IsOK(ecode2)) {
9241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9242 }
9243 arg2 = static_cast< int >(val2);
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->SetHeight(arg2);
9247 wxPyEndAllowThreads(__tstate);
9248 if (PyErr_Occurred()) SWIG_fail;
9249 }
9250 resultobj = SWIG_Py_Void();
9251 return resultobj;
9252 fail:
9253 return NULL;
9254 }
9255
9256
9257 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9258 PyObject *resultobj = 0;
9259 wxIcon *arg1 = (wxIcon *) 0 ;
9260 int arg2 ;
9261 void *argp1 = 0 ;
9262 int res1 = 0 ;
9263 int val2 ;
9264 int ecode2 = 0 ;
9265 PyObject * obj0 = 0 ;
9266 PyObject * obj1 = 0 ;
9267 char * kwnames[] = {
9268 (char *) "self",(char *) "d", NULL
9269 };
9270
9271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9273 if (!SWIG_IsOK(res1)) {
9274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9275 }
9276 arg1 = reinterpret_cast< wxIcon * >(argp1);
9277 ecode2 = SWIG_AsVal_int(obj1, &val2);
9278 if (!SWIG_IsOK(ecode2)) {
9279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9280 }
9281 arg2 = static_cast< int >(val2);
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 (arg1)->SetDepth(arg2);
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 resultobj = SWIG_Py_Void();
9289 return resultobj;
9290 fail:
9291 return NULL;
9292 }
9293
9294
9295 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9296 PyObject *resultobj = 0;
9297 wxIcon *arg1 = (wxIcon *) 0 ;
9298 wxSize *arg2 = 0 ;
9299 void *argp1 = 0 ;
9300 int res1 = 0 ;
9301 wxSize temp2 ;
9302 PyObject * obj0 = 0 ;
9303 PyObject * obj1 = 0 ;
9304 char * kwnames[] = {
9305 (char *) "self",(char *) "size", NULL
9306 };
9307
9308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9310 if (!SWIG_IsOK(res1)) {
9311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9312 }
9313 arg1 = reinterpret_cast< wxIcon * >(argp1);
9314 {
9315 arg2 = &temp2;
9316 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9317 }
9318 {
9319 PyThreadState* __tstate = wxPyBeginAllowThreads();
9320 (arg1)->SetSize((wxSize const &)*arg2);
9321 wxPyEndAllowThreads(__tstate);
9322 if (PyErr_Occurred()) SWIG_fail;
9323 }
9324 resultobj = SWIG_Py_Void();
9325 return resultobj;
9326 fail:
9327 return NULL;
9328 }
9329
9330
9331 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9332 PyObject *resultobj = 0;
9333 wxIcon *arg1 = (wxIcon *) 0 ;
9334 wxBitmap *arg2 = 0 ;
9335 void *argp1 = 0 ;
9336 int res1 = 0 ;
9337 void *argp2 = 0 ;
9338 int res2 = 0 ;
9339 PyObject * obj0 = 0 ;
9340 PyObject * obj1 = 0 ;
9341 char * kwnames[] = {
9342 (char *) "self",(char *) "bmp", NULL
9343 };
9344
9345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9347 if (!SWIG_IsOK(res1)) {
9348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9349 }
9350 arg1 = reinterpret_cast< wxIcon * >(argp1);
9351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9352 if (!SWIG_IsOK(res2)) {
9353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9354 }
9355 if (!argp2) {
9356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9357 }
9358 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_Py_Void();
9366 return resultobj;
9367 fail:
9368 return NULL;
9369 }
9370
9371
9372 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9373 PyObject *obj;
9374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9375 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9376 return SWIG_Py_Void();
9377 }
9378
9379 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9380 return SWIG_Python_InitShadowInstance(args);
9381 }
9382
9383 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj = 0;
9385 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9386 int arg2 = (int) 0 ;
9387 wxIconLocation *result = 0 ;
9388 bool temp1 = false ;
9389 int val2 ;
9390 int ecode2 = 0 ;
9391 PyObject * obj0 = 0 ;
9392 PyObject * obj1 = 0 ;
9393 char * kwnames[] = {
9394 (char *) "filename",(char *) "num", NULL
9395 };
9396
9397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9398 if (obj0) {
9399 {
9400 arg1 = wxString_in_helper(obj0);
9401 if (arg1 == NULL) SWIG_fail;
9402 temp1 = true;
9403 }
9404 }
9405 if (obj1) {
9406 ecode2 = SWIG_AsVal_int(obj1, &val2);
9407 if (!SWIG_IsOK(ecode2)) {
9408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9409 }
9410 arg2 = static_cast< int >(val2);
9411 }
9412 {
9413 PyThreadState* __tstate = wxPyBeginAllowThreads();
9414 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9415 wxPyEndAllowThreads(__tstate);
9416 if (PyErr_Occurred()) SWIG_fail;
9417 }
9418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9419 {
9420 if (temp1)
9421 delete arg1;
9422 }
9423 return resultobj;
9424 fail:
9425 {
9426 if (temp1)
9427 delete arg1;
9428 }
9429 return NULL;
9430 }
9431
9432
9433 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9434 PyObject *resultobj = 0;
9435 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9436 void *argp1 = 0 ;
9437 int res1 = 0 ;
9438 PyObject *swig_obj[1] ;
9439
9440 if (!args) SWIG_fail;
9441 swig_obj[0] = args;
9442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9443 if (!SWIG_IsOK(res1)) {
9444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9445 }
9446 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 delete arg1;
9450
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 resultobj = SWIG_Py_Void();
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9462 PyObject *resultobj = 0;
9463 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9464 bool result;
9465 void *argp1 = 0 ;
9466 int res1 = 0 ;
9467 PyObject *swig_obj[1] ;
9468
9469 if (!args) SWIG_fail;
9470 swig_obj[0] = args;
9471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9472 if (!SWIG_IsOK(res1)) {
9473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9474 }
9475 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9476 {
9477 PyThreadState* __tstate = wxPyBeginAllowThreads();
9478 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 {
9483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9484 }
9485 return resultobj;
9486 fail:
9487 return NULL;
9488 }
9489
9490
9491 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9492 PyObject *resultobj = 0;
9493 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9494 wxString *arg2 = 0 ;
9495 void *argp1 = 0 ;
9496 int res1 = 0 ;
9497 bool temp2 = false ;
9498 PyObject * obj0 = 0 ;
9499 PyObject * obj1 = 0 ;
9500 char * kwnames[] = {
9501 (char *) "self",(char *) "filename", NULL
9502 };
9503
9504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9506 if (!SWIG_IsOK(res1)) {
9507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9508 }
9509 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9510 {
9511 arg2 = wxString_in_helper(obj1);
9512 if (arg2 == NULL) SWIG_fail;
9513 temp2 = true;
9514 }
9515 {
9516 PyThreadState* __tstate = wxPyBeginAllowThreads();
9517 (arg1)->SetFileName((wxString const &)*arg2);
9518 wxPyEndAllowThreads(__tstate);
9519 if (PyErr_Occurred()) SWIG_fail;
9520 }
9521 resultobj = SWIG_Py_Void();
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return resultobj;
9527 fail:
9528 {
9529 if (temp2)
9530 delete arg2;
9531 }
9532 return NULL;
9533 }
9534
9535
9536 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9539 wxString *result = 0 ;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 PyObject *swig_obj[1] ;
9543
9544 if (!args) SWIG_fail;
9545 swig_obj[0] = args;
9546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9549 }
9550 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 {
9554 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9555 result = (wxString *) &_result_ref;
9556 }
9557 wxPyEndAllowThreads(__tstate);
9558 if (PyErr_Occurred()) SWIG_fail;
9559 }
9560 {
9561 #if wxUSE_UNICODE
9562 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9563 #else
9564 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9565 #endif
9566 }
9567 return resultobj;
9568 fail:
9569 return NULL;
9570 }
9571
9572
9573 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj = 0;
9575 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9576 int arg2 ;
9577 void *argp1 = 0 ;
9578 int res1 = 0 ;
9579 int val2 ;
9580 int ecode2 = 0 ;
9581 PyObject * obj0 = 0 ;
9582 PyObject * obj1 = 0 ;
9583 char * kwnames[] = {
9584 (char *) "self",(char *) "num", NULL
9585 };
9586
9587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9591 }
9592 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9593 ecode2 = SWIG_AsVal_int(obj1, &val2);
9594 if (!SWIG_IsOK(ecode2)) {
9595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9596 }
9597 arg2 = static_cast< int >(val2);
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 wxIconLocation_SetIndex(arg1,arg2);
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 resultobj = SWIG_Py_Void();
9605 return resultobj;
9606 fail:
9607 return NULL;
9608 }
9609
9610
9611 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9612 PyObject *resultobj = 0;
9613 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9614 int result;
9615 void *argp1 = 0 ;
9616 int res1 = 0 ;
9617 PyObject *swig_obj[1] ;
9618
9619 if (!args) SWIG_fail;
9620 swig_obj[0] = args;
9621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9622 if (!SWIG_IsOK(res1)) {
9623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9624 }
9625 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 result = (int)wxIconLocation_GetIndex(arg1);
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 resultobj = SWIG_From_int(static_cast< int >(result));
9633 return resultobj;
9634 fail:
9635 return NULL;
9636 }
9637
9638
9639 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9640 PyObject *obj;
9641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9642 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9643 return SWIG_Py_Void();
9644 }
9645
9646 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9647 return SWIG_Python_InitShadowInstance(args);
9648 }
9649
9650 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9651 PyObject *resultobj = 0;
9652 wxIconBundle *result = 0 ;
9653
9654 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 result = (wxIconBundle *)new wxIconBundle();
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9662 return resultobj;
9663 fail:
9664 return NULL;
9665 }
9666
9667
9668 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj = 0;
9670 wxString *arg1 = 0 ;
9671 long arg2 ;
9672 wxIconBundle *result = 0 ;
9673 bool temp1 = false ;
9674 long val2 ;
9675 int ecode2 = 0 ;
9676 PyObject * obj0 = 0 ;
9677 PyObject * obj1 = 0 ;
9678 char * kwnames[] = {
9679 (char *) "file",(char *) "type", NULL
9680 };
9681
9682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9683 {
9684 arg1 = wxString_in_helper(obj0);
9685 if (arg1 == NULL) SWIG_fail;
9686 temp1 = true;
9687 }
9688 ecode2 = SWIG_AsVal_long(obj1, &val2);
9689 if (!SWIG_IsOK(ecode2)) {
9690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9691 }
9692 arg2 = static_cast< long >(val2);
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9696 wxPyEndAllowThreads(__tstate);
9697 if (PyErr_Occurred()) SWIG_fail;
9698 }
9699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9700 {
9701 if (temp1)
9702 delete arg1;
9703 }
9704 return resultobj;
9705 fail:
9706 {
9707 if (temp1)
9708 delete arg1;
9709 }
9710 return NULL;
9711 }
9712
9713
9714 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9715 PyObject *resultobj = 0;
9716 wxIcon *arg1 = 0 ;
9717 wxIconBundle *result = 0 ;
9718 void *argp1 = 0 ;
9719 int res1 = 0 ;
9720 PyObject * obj0 = 0 ;
9721 char * kwnames[] = {
9722 (char *) "icon", NULL
9723 };
9724
9725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9726 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9727 if (!SWIG_IsOK(res1)) {
9728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9729 }
9730 if (!argp1) {
9731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9732 }
9733 arg1 = reinterpret_cast< wxIcon * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9748 PyObject *resultobj = 0;
9749 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9750 void *argp1 = 0 ;
9751 int res1 = 0 ;
9752 PyObject *swig_obj[1] ;
9753
9754 if (!args) SWIG_fail;
9755 swig_obj[0] = args;
9756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9757 if (!SWIG_IsOK(res1)) {
9758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9759 }
9760 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 delete arg1;
9764
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_Py_Void();
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj = 0;
9777 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9778 wxIcon *arg2 = 0 ;
9779 void *argp1 = 0 ;
9780 int res1 = 0 ;
9781 void *argp2 = 0 ;
9782 int res2 = 0 ;
9783 PyObject * obj0 = 0 ;
9784 PyObject * obj1 = 0 ;
9785 char * kwnames[] = {
9786 (char *) "self",(char *) "icon", NULL
9787 };
9788
9789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9791 if (!SWIG_IsOK(res1)) {
9792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9793 }
9794 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9796 if (!SWIG_IsOK(res2)) {
9797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9798 }
9799 if (!argp2) {
9800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9801 }
9802 arg2 = reinterpret_cast< wxIcon * >(argp2);
9803 {
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 (arg1)->AddIcon((wxIcon const &)*arg2);
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) SWIG_fail;
9808 }
9809 resultobj = SWIG_Py_Void();
9810 return resultobj;
9811 fail:
9812 return NULL;
9813 }
9814
9815
9816 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj = 0;
9818 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9819 wxString *arg2 = 0 ;
9820 long arg3 ;
9821 void *argp1 = 0 ;
9822 int res1 = 0 ;
9823 bool temp2 = false ;
9824 long val3 ;
9825 int ecode3 = 0 ;
9826 PyObject * obj0 = 0 ;
9827 PyObject * obj1 = 0 ;
9828 PyObject * obj2 = 0 ;
9829 char * kwnames[] = {
9830 (char *) "self",(char *) "file",(char *) "type", NULL
9831 };
9832
9833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9835 if (!SWIG_IsOK(res1)) {
9836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9837 }
9838 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9839 {
9840 arg2 = wxString_in_helper(obj1);
9841 if (arg2 == NULL) SWIG_fail;
9842 temp2 = true;
9843 }
9844 ecode3 = SWIG_AsVal_long(obj2, &val3);
9845 if (!SWIG_IsOK(ecode3)) {
9846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9847 }
9848 arg3 = static_cast< long >(val3);
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 resultobj = SWIG_Py_Void();
9856 {
9857 if (temp2)
9858 delete arg2;
9859 }
9860 return resultobj;
9861 fail:
9862 {
9863 if (temp2)
9864 delete arg2;
9865 }
9866 return NULL;
9867 }
9868
9869
9870 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9871 PyObject *resultobj = 0;
9872 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9873 wxSize *arg2 = 0 ;
9874 wxIcon *result = 0 ;
9875 void *argp1 = 0 ;
9876 int res1 = 0 ;
9877 wxSize temp2 ;
9878 PyObject * obj0 = 0 ;
9879 PyObject * obj1 = 0 ;
9880 char * kwnames[] = {
9881 (char *) "self",(char *) "size", NULL
9882 };
9883
9884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9886 if (!SWIG_IsOK(res1)) {
9887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9888 }
9889 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9890 {
9891 arg2 = &temp2;
9892 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9893 }
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 {
9897 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9898 result = (wxIcon *) &_result_ref;
9899 }
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 {
9904 wxIcon* resultptr = new wxIcon(*result);
9905 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9906 }
9907 return resultobj;
9908 fail:
9909 return NULL;
9910 }
9911
9912
9913 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9914 PyObject *obj;
9915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9916 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9917 return SWIG_Py_Void();
9918 }
9919
9920 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9921 return SWIG_Python_InitShadowInstance(args);
9922 }
9923
9924 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9925 PyObject *resultobj = 0;
9926 wxString *arg1 = 0 ;
9927 long arg2 ;
9928 int arg3 = (int) 0 ;
9929 int arg4 = (int) 0 ;
9930 wxCursor *result = 0 ;
9931 bool temp1 = false ;
9932 long val2 ;
9933 int ecode2 = 0 ;
9934 int val3 ;
9935 int ecode3 = 0 ;
9936 int val4 ;
9937 int ecode4 = 0 ;
9938 PyObject * obj0 = 0 ;
9939 PyObject * obj1 = 0 ;
9940 PyObject * obj2 = 0 ;
9941 PyObject * obj3 = 0 ;
9942 char * kwnames[] = {
9943 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9944 };
9945
9946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9947 {
9948 arg1 = wxString_in_helper(obj0);
9949 if (arg1 == NULL) SWIG_fail;
9950 temp1 = true;
9951 }
9952 ecode2 = SWIG_AsVal_long(obj1, &val2);
9953 if (!SWIG_IsOK(ecode2)) {
9954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9955 }
9956 arg2 = static_cast< long >(val2);
9957 if (obj2) {
9958 ecode3 = SWIG_AsVal_int(obj2, &val3);
9959 if (!SWIG_IsOK(ecode3)) {
9960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9961 }
9962 arg3 = static_cast< int >(val3);
9963 }
9964 if (obj3) {
9965 ecode4 = SWIG_AsVal_int(obj3, &val4);
9966 if (!SWIG_IsOK(ecode4)) {
9967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9968 }
9969 arg4 = static_cast< int >(val4);
9970 }
9971 {
9972 if (!wxPyCheckForApp()) SWIG_fail;
9973 PyThreadState* __tstate = wxPyBeginAllowThreads();
9974 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9975 wxPyEndAllowThreads(__tstate);
9976 if (PyErr_Occurred()) SWIG_fail;
9977 }
9978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9979 {
9980 if (temp1)
9981 delete arg1;
9982 }
9983 return resultobj;
9984 fail:
9985 {
9986 if (temp1)
9987 delete arg1;
9988 }
9989 return NULL;
9990 }
9991
9992
9993 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9994 PyObject *resultobj = 0;
9995 wxCursor *arg1 = (wxCursor *) 0 ;
9996 void *argp1 = 0 ;
9997 int res1 = 0 ;
9998 PyObject *swig_obj[1] ;
9999
10000 if (!args) SWIG_fail;
10001 swig_obj[0] = args;
10002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10003 if (!SWIG_IsOK(res1)) {
10004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10005 }
10006 arg1 = reinterpret_cast< wxCursor * >(argp1);
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 delete arg1;
10010
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 resultobj = SWIG_Py_Void();
10015 return resultobj;
10016 fail:
10017 return NULL;
10018 }
10019
10020
10021 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10022 PyObject *resultobj = 0;
10023 int arg1 ;
10024 wxCursor *result = 0 ;
10025 int val1 ;
10026 int ecode1 = 0 ;
10027 PyObject * obj0 = 0 ;
10028 char * kwnames[] = {
10029 (char *) "id", NULL
10030 };
10031
10032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10033 ecode1 = SWIG_AsVal_int(obj0, &val1);
10034 if (!SWIG_IsOK(ecode1)) {
10035 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10036 }
10037 arg1 = static_cast< int >(val1);
10038 {
10039 if (!wxPyCheckForApp()) SWIG_fail;
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 result = (wxCursor *)new wxCursor(arg1);
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10046 return resultobj;
10047 fail:
10048 return NULL;
10049 }
10050
10051
10052 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10053 PyObject *resultobj = 0;
10054 wxImage *arg1 = 0 ;
10055 wxCursor *result = 0 ;
10056 void *argp1 = 0 ;
10057 int res1 = 0 ;
10058 PyObject * obj0 = 0 ;
10059 char * kwnames[] = {
10060 (char *) "image", NULL
10061 };
10062
10063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10064 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10065 if (!SWIG_IsOK(res1)) {
10066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10067 }
10068 if (!argp1) {
10069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10070 }
10071 arg1 = reinterpret_cast< wxImage * >(argp1);
10072 {
10073 if (!wxPyCheckForApp()) SWIG_fail;
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10076 wxPyEndAllowThreads(__tstate);
10077 if (PyErr_Occurred()) SWIG_fail;
10078 }
10079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10080 return resultobj;
10081 fail:
10082 return NULL;
10083 }
10084
10085
10086 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10087 PyObject *resultobj = 0;
10088 wxCursor *arg1 = (wxCursor *) 0 ;
10089 long result;
10090 void *argp1 = 0 ;
10091 int res1 = 0 ;
10092 PyObject *swig_obj[1] ;
10093
10094 if (!args) SWIG_fail;
10095 swig_obj[0] = args;
10096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10097 if (!SWIG_IsOK(res1)) {
10098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10099 }
10100 arg1 = reinterpret_cast< wxCursor * >(argp1);
10101 {
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = (long)(arg1)->GetHandle();
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 resultobj = SWIG_From_long(static_cast< long >(result));
10108 return resultobj;
10109 fail:
10110 return NULL;
10111 }
10112
10113
10114 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj = 0;
10116 wxCursor *arg1 = (wxCursor *) 0 ;
10117 long arg2 ;
10118 void *argp1 = 0 ;
10119 int res1 = 0 ;
10120 long val2 ;
10121 int ecode2 = 0 ;
10122 PyObject * obj0 = 0 ;
10123 PyObject * obj1 = 0 ;
10124 char * kwnames[] = {
10125 (char *) "self",(char *) "handle", NULL
10126 };
10127
10128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10130 if (!SWIG_IsOK(res1)) {
10131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10132 }
10133 arg1 = reinterpret_cast< wxCursor * >(argp1);
10134 ecode2 = SWIG_AsVal_long(obj1, &val2);
10135 if (!SWIG_IsOK(ecode2)) {
10136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10137 }
10138 arg2 = static_cast< long >(val2);
10139 {
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 wxCursor_SetHandle(arg1,arg2);
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_Py_Void();
10146 return resultobj;
10147 fail:
10148 return NULL;
10149 }
10150
10151
10152 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10153 PyObject *resultobj = 0;
10154 wxCursor *arg1 = (wxCursor *) 0 ;
10155 bool result;
10156 void *argp1 = 0 ;
10157 int res1 = 0 ;
10158 PyObject *swig_obj[1] ;
10159
10160 if (!args) SWIG_fail;
10161 swig_obj[0] = args;
10162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10163 if (!SWIG_IsOK(res1)) {
10164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
10165 }
10166 arg1 = reinterpret_cast< wxCursor * >(argp1);
10167 {
10168 PyThreadState* __tstate = wxPyBeginAllowThreads();
10169 result = (bool)(arg1)->Ok();
10170 wxPyEndAllowThreads(__tstate);
10171 if (PyErr_Occurred()) SWIG_fail;
10172 }
10173 {
10174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10175 }
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10183 PyObject *resultobj = 0;
10184 wxCursor *arg1 = (wxCursor *) 0 ;
10185 int result;
10186 void *argp1 = 0 ;
10187 int res1 = 0 ;
10188 PyObject *swig_obj[1] ;
10189
10190 if (!args) SWIG_fail;
10191 swig_obj[0] = args;
10192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10193 if (!SWIG_IsOK(res1)) {
10194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10195 }
10196 arg1 = reinterpret_cast< wxCursor * >(argp1);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (int)(arg1)->GetWidth();
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_From_int(static_cast< int >(result));
10204 return resultobj;
10205 fail:
10206 return NULL;
10207 }
10208
10209
10210 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10211 PyObject *resultobj = 0;
10212 wxCursor *arg1 = (wxCursor *) 0 ;
10213 int result;
10214 void *argp1 = 0 ;
10215 int res1 = 0 ;
10216 PyObject *swig_obj[1] ;
10217
10218 if (!args) SWIG_fail;
10219 swig_obj[0] = args;
10220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10221 if (!SWIG_IsOK(res1)) {
10222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10223 }
10224 arg1 = reinterpret_cast< wxCursor * >(argp1);
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (int)(arg1)->GetHeight();
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_From_int(static_cast< int >(result));
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10239 PyObject *resultobj = 0;
10240 wxCursor *arg1 = (wxCursor *) 0 ;
10241 int result;
10242 void *argp1 = 0 ;
10243 int res1 = 0 ;
10244 PyObject *swig_obj[1] ;
10245
10246 if (!args) SWIG_fail;
10247 swig_obj[0] = args;
10248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10249 if (!SWIG_IsOK(res1)) {
10250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10251 }
10252 arg1 = reinterpret_cast< wxCursor * >(argp1);
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (int)(arg1)->GetDepth();
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 resultobj = SWIG_From_int(static_cast< int >(result));
10260 return resultobj;
10261 fail:
10262 return NULL;
10263 }
10264
10265
10266 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10267 PyObject *resultobj = 0;
10268 wxCursor *arg1 = (wxCursor *) 0 ;
10269 int arg2 ;
10270 void *argp1 = 0 ;
10271 int res1 = 0 ;
10272 int val2 ;
10273 int ecode2 = 0 ;
10274 PyObject * obj0 = 0 ;
10275 PyObject * obj1 = 0 ;
10276 char * kwnames[] = {
10277 (char *) "self",(char *) "w", NULL
10278 };
10279
10280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10282 if (!SWIG_IsOK(res1)) {
10283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10284 }
10285 arg1 = reinterpret_cast< wxCursor * >(argp1);
10286 ecode2 = SWIG_AsVal_int(obj1, &val2);
10287 if (!SWIG_IsOK(ecode2)) {
10288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10289 }
10290 arg2 = static_cast< int >(val2);
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 (arg1)->SetWidth(arg2);
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 resultobj = SWIG_Py_Void();
10298 return resultobj;
10299 fail:
10300 return NULL;
10301 }
10302
10303
10304 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10305 PyObject *resultobj = 0;
10306 wxCursor *arg1 = (wxCursor *) 0 ;
10307 int arg2 ;
10308 void *argp1 = 0 ;
10309 int res1 = 0 ;
10310 int val2 ;
10311 int ecode2 = 0 ;
10312 PyObject * obj0 = 0 ;
10313 PyObject * obj1 = 0 ;
10314 char * kwnames[] = {
10315 (char *) "self",(char *) "h", NULL
10316 };
10317
10318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10320 if (!SWIG_IsOK(res1)) {
10321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10322 }
10323 arg1 = reinterpret_cast< wxCursor * >(argp1);
10324 ecode2 = SWIG_AsVal_int(obj1, &val2);
10325 if (!SWIG_IsOK(ecode2)) {
10326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10327 }
10328 arg2 = static_cast< int >(val2);
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 (arg1)->SetHeight(arg2);
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 resultobj = SWIG_Py_Void();
10336 return resultobj;
10337 fail:
10338 return NULL;
10339 }
10340
10341
10342 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj = 0;
10344 wxCursor *arg1 = (wxCursor *) 0 ;
10345 int arg2 ;
10346 void *argp1 = 0 ;
10347 int res1 = 0 ;
10348 int val2 ;
10349 int ecode2 = 0 ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 char * kwnames[] = {
10353 (char *) "self",(char *) "d", NULL
10354 };
10355
10356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10358 if (!SWIG_IsOK(res1)) {
10359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10360 }
10361 arg1 = reinterpret_cast< wxCursor * >(argp1);
10362 ecode2 = SWIG_AsVal_int(obj1, &val2);
10363 if (!SWIG_IsOK(ecode2)) {
10364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10365 }
10366 arg2 = static_cast< int >(val2);
10367 {
10368 PyThreadState* __tstate = wxPyBeginAllowThreads();
10369 (arg1)->SetDepth(arg2);
10370 wxPyEndAllowThreads(__tstate);
10371 if (PyErr_Occurred()) SWIG_fail;
10372 }
10373 resultobj = SWIG_Py_Void();
10374 return resultobj;
10375 fail:
10376 return NULL;
10377 }
10378
10379
10380 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10381 PyObject *resultobj = 0;
10382 wxCursor *arg1 = (wxCursor *) 0 ;
10383 wxSize *arg2 = 0 ;
10384 void *argp1 = 0 ;
10385 int res1 = 0 ;
10386 wxSize temp2 ;
10387 PyObject * obj0 = 0 ;
10388 PyObject * obj1 = 0 ;
10389 char * kwnames[] = {
10390 (char *) "self",(char *) "size", NULL
10391 };
10392
10393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10395 if (!SWIG_IsOK(res1)) {
10396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10397 }
10398 arg1 = reinterpret_cast< wxCursor * >(argp1);
10399 {
10400 arg2 = &temp2;
10401 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10402 }
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 (arg1)->SetSize((wxSize const &)*arg2);
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_Py_Void();
10410 return resultobj;
10411 fail:
10412 return NULL;
10413 }
10414
10415
10416 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10417 PyObject *obj;
10418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10419 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10420 return SWIG_Py_Void();
10421 }
10422
10423 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424 return SWIG_Python_InitShadowInstance(args);
10425 }
10426
10427 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10428 PyObject *resultobj = 0;
10429 int arg1 = (int) 0 ;
10430 int arg2 = (int) 0 ;
10431 int arg3 = (int) 0 ;
10432 int arg4 = (int) 0 ;
10433 wxRegion *result = 0 ;
10434 int val1 ;
10435 int ecode1 = 0 ;
10436 int val2 ;
10437 int ecode2 = 0 ;
10438 int val3 ;
10439 int ecode3 = 0 ;
10440 int val4 ;
10441 int ecode4 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 PyObject * obj2 = 0 ;
10445 PyObject * obj3 = 0 ;
10446 char * kwnames[] = {
10447 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10448 };
10449
10450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10451 if (obj0) {
10452 ecode1 = SWIG_AsVal_int(obj0, &val1);
10453 if (!SWIG_IsOK(ecode1)) {
10454 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10455 }
10456 arg1 = static_cast< int >(val1);
10457 }
10458 if (obj1) {
10459 ecode2 = SWIG_AsVal_int(obj1, &val2);
10460 if (!SWIG_IsOK(ecode2)) {
10461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10462 }
10463 arg2 = static_cast< int >(val2);
10464 }
10465 if (obj2) {
10466 ecode3 = SWIG_AsVal_int(obj2, &val3);
10467 if (!SWIG_IsOK(ecode3)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10469 }
10470 arg3 = static_cast< int >(val3);
10471 }
10472 if (obj3) {
10473 ecode4 = SWIG_AsVal_int(obj3, &val4);
10474 if (!SWIG_IsOK(ecode4)) {
10475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10476 }
10477 arg4 = static_cast< int >(val4);
10478 }
10479 {
10480 if (!wxPyCheckForApp()) SWIG_fail;
10481 PyThreadState* __tstate = wxPyBeginAllowThreads();
10482 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10483 wxPyEndAllowThreads(__tstate);
10484 if (PyErr_Occurred()) SWIG_fail;
10485 }
10486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10487 return resultobj;
10488 fail:
10489 return NULL;
10490 }
10491
10492
10493 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10494 PyObject *resultobj = 0;
10495 wxBitmap *arg1 = 0 ;
10496 wxRegion *result = 0 ;
10497 void *argp1 = 0 ;
10498 int res1 = 0 ;
10499 PyObject * obj0 = 0 ;
10500 char * kwnames[] = {
10501 (char *) "bmp", NULL
10502 };
10503
10504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10505 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10506 if (!SWIG_IsOK(res1)) {
10507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10508 }
10509 if (!argp1) {
10510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10511 }
10512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10513 {
10514 if (!wxPyCheckForApp()) SWIG_fail;
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10517 wxPyEndAllowThreads(__tstate);
10518 if (PyErr_Occurred()) SWIG_fail;
10519 }
10520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10521 return resultobj;
10522 fail:
10523 return NULL;
10524 }
10525
10526
10527 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10528 PyObject *resultobj = 0;
10529 wxBitmap *arg1 = 0 ;
10530 wxColour *arg2 = 0 ;
10531 int arg3 = (int) 0 ;
10532 wxRegion *result = 0 ;
10533 void *argp1 = 0 ;
10534 int res1 = 0 ;
10535 wxColour temp2 ;
10536 int val3 ;
10537 int ecode3 = 0 ;
10538 PyObject * obj0 = 0 ;
10539 PyObject * obj1 = 0 ;
10540 PyObject * obj2 = 0 ;
10541 char * kwnames[] = {
10542 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10543 };
10544
10545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10546 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10547 if (!SWIG_IsOK(res1)) {
10548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10549 }
10550 if (!argp1) {
10551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10552 }
10553 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10554 {
10555 arg2 = &temp2;
10556 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10557 }
10558 if (obj2) {
10559 ecode3 = SWIG_AsVal_int(obj2, &val3);
10560 if (!SWIG_IsOK(ecode3)) {
10561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10562 }
10563 arg3 = static_cast< int >(val3);
10564 }
10565 {
10566 if (!wxPyCheckForApp()) SWIG_fail;
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10573 return resultobj;
10574 fail:
10575 return NULL;
10576 }
10577
10578
10579 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = 0;
10581 int arg1 ;
10582 wxPoint *arg2 = (wxPoint *) 0 ;
10583 int arg3 = (int) wxWINDING_RULE ;
10584 wxRegion *result = 0 ;
10585 int val3 ;
10586 int ecode3 = 0 ;
10587 PyObject * obj0 = 0 ;
10588 PyObject * obj1 = 0 ;
10589 char * kwnames[] = {
10590 (char *) "points",(char *) "fillStyle", NULL
10591 };
10592
10593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10594 {
10595 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10596 if (arg2 == NULL) SWIG_fail;
10597 }
10598 if (obj1) {
10599 ecode3 = SWIG_AsVal_int(obj1, &val3);
10600 if (!SWIG_IsOK(ecode3)) {
10601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10602 }
10603 arg3 = static_cast< int >(val3);
10604 }
10605 {
10606 if (!wxPyCheckForApp()) SWIG_fail;
10607 PyThreadState* __tstate = wxPyBeginAllowThreads();
10608 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10613 {
10614 if (arg2) delete [] arg2;
10615 }
10616 return resultobj;
10617 fail:
10618 {
10619 if (arg2) delete [] arg2;
10620 }
10621 return NULL;
10622 }
10623
10624
10625 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10626 PyObject *resultobj = 0;
10627 wxRegion *arg1 = (wxRegion *) 0 ;
10628 void *argp1 = 0 ;
10629 int res1 = 0 ;
10630 PyObject *swig_obj[1] ;
10631
10632 if (!args) SWIG_fail;
10633 swig_obj[0] = args;
10634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10635 if (!SWIG_IsOK(res1)) {
10636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10637 }
10638 arg1 = reinterpret_cast< wxRegion * >(argp1);
10639 {
10640 PyThreadState* __tstate = wxPyBeginAllowThreads();
10641 delete arg1;
10642
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 resultobj = SWIG_Py_Void();
10647 return resultobj;
10648 fail:
10649 return NULL;
10650 }
10651
10652
10653 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10654 PyObject *resultobj = 0;
10655 wxRegion *arg1 = (wxRegion *) 0 ;
10656 void *argp1 = 0 ;
10657 int res1 = 0 ;
10658 PyObject *swig_obj[1] ;
10659
10660 if (!args) SWIG_fail;
10661 swig_obj[0] = args;
10662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10663 if (!SWIG_IsOK(res1)) {
10664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10665 }
10666 arg1 = reinterpret_cast< wxRegion * >(argp1);
10667 {
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
10669 (arg1)->Clear();
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 resultobj = SWIG_Py_Void();
10674 return resultobj;
10675 fail:
10676 return NULL;
10677 }
10678
10679
10680 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10681 PyObject *resultobj = 0;
10682 wxRegion *arg1 = (wxRegion *) 0 ;
10683 int arg2 ;
10684 int arg3 ;
10685 bool result;
10686 void *argp1 = 0 ;
10687 int res1 = 0 ;
10688 int val2 ;
10689 int ecode2 = 0 ;
10690 int val3 ;
10691 int ecode3 = 0 ;
10692 PyObject * obj0 = 0 ;
10693 PyObject * obj1 = 0 ;
10694 PyObject * obj2 = 0 ;
10695 char * kwnames[] = {
10696 (char *) "self",(char *) "x",(char *) "y", NULL
10697 };
10698
10699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10701 if (!SWIG_IsOK(res1)) {
10702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10703 }
10704 arg1 = reinterpret_cast< wxRegion * >(argp1);
10705 ecode2 = SWIG_AsVal_int(obj1, &val2);
10706 if (!SWIG_IsOK(ecode2)) {
10707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10708 }
10709 arg2 = static_cast< int >(val2);
10710 ecode3 = SWIG_AsVal_int(obj2, &val3);
10711 if (!SWIG_IsOK(ecode3)) {
10712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10713 }
10714 arg3 = static_cast< int >(val3);
10715 {
10716 PyThreadState* __tstate = wxPyBeginAllowThreads();
10717 result = (bool)(arg1)->Offset(arg2,arg3);
10718 wxPyEndAllowThreads(__tstate);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 {
10722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10723 }
10724 return resultobj;
10725 fail:
10726 return NULL;
10727 }
10728
10729
10730 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10731 PyObject *resultobj = 0;
10732 wxRegion *arg1 = (wxRegion *) 0 ;
10733 int arg2 ;
10734 int arg3 ;
10735 wxRegionContain result;
10736 void *argp1 = 0 ;
10737 int res1 = 0 ;
10738 int val2 ;
10739 int ecode2 = 0 ;
10740 int val3 ;
10741 int ecode3 = 0 ;
10742 PyObject * obj0 = 0 ;
10743 PyObject * obj1 = 0 ;
10744 PyObject * obj2 = 0 ;
10745 char * kwnames[] = {
10746 (char *) "self",(char *) "x",(char *) "y", NULL
10747 };
10748
10749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10751 if (!SWIG_IsOK(res1)) {
10752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10753 }
10754 arg1 = reinterpret_cast< wxRegion * >(argp1);
10755 ecode2 = SWIG_AsVal_int(obj1, &val2);
10756 if (!SWIG_IsOK(ecode2)) {
10757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10758 }
10759 arg2 = static_cast< int >(val2);
10760 ecode3 = SWIG_AsVal_int(obj2, &val3);
10761 if (!SWIG_IsOK(ecode3)) {
10762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10763 }
10764 arg3 = static_cast< int >(val3);
10765 {
10766 PyThreadState* __tstate = wxPyBeginAllowThreads();
10767 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 resultobj = SWIG_From_int(static_cast< int >(result));
10772 return resultobj;
10773 fail:
10774 return NULL;
10775 }
10776
10777
10778 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj = 0;
10780 wxRegion *arg1 = (wxRegion *) 0 ;
10781 wxPoint *arg2 = 0 ;
10782 wxRegionContain result;
10783 void *argp1 = 0 ;
10784 int res1 = 0 ;
10785 wxPoint temp2 ;
10786 PyObject * obj0 = 0 ;
10787 PyObject * obj1 = 0 ;
10788 char * kwnames[] = {
10789 (char *) "self",(char *) "pt", NULL
10790 };
10791
10792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10794 if (!SWIG_IsOK(res1)) {
10795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10796 }
10797 arg1 = reinterpret_cast< wxRegion * >(argp1);
10798 {
10799 arg2 = &temp2;
10800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10801 }
10802 {
10803 PyThreadState* __tstate = wxPyBeginAllowThreads();
10804 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 resultobj = SWIG_From_int(static_cast< int >(result));
10809 return resultobj;
10810 fail:
10811 return NULL;
10812 }
10813
10814
10815 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10816 PyObject *resultobj = 0;
10817 wxRegion *arg1 = (wxRegion *) 0 ;
10818 wxRect *arg2 = 0 ;
10819 wxRegionContain result;
10820 void *argp1 = 0 ;
10821 int res1 = 0 ;
10822 wxRect temp2 ;
10823 PyObject * obj0 = 0 ;
10824 PyObject * obj1 = 0 ;
10825 char * kwnames[] = {
10826 (char *) "self",(char *) "rect", NULL
10827 };
10828
10829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10831 if (!SWIG_IsOK(res1)) {
10832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10833 }
10834 arg1 = reinterpret_cast< wxRegion * >(argp1);
10835 {
10836 arg2 = &temp2;
10837 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10838 }
10839 {
10840 PyThreadState* __tstate = wxPyBeginAllowThreads();
10841 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10842 wxPyEndAllowThreads(__tstate);
10843 if (PyErr_Occurred()) SWIG_fail;
10844 }
10845 resultobj = SWIG_From_int(static_cast< int >(result));
10846 return resultobj;
10847 fail:
10848 return NULL;
10849 }
10850
10851
10852 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10853 PyObject *resultobj = 0;
10854 wxRegion *arg1 = (wxRegion *) 0 ;
10855 int arg2 ;
10856 int arg3 ;
10857 int arg4 ;
10858 int arg5 ;
10859 wxRegionContain result;
10860 void *argp1 = 0 ;
10861 int res1 = 0 ;
10862 int val2 ;
10863 int ecode2 = 0 ;
10864 int val3 ;
10865 int ecode3 = 0 ;
10866 int val4 ;
10867 int ecode4 = 0 ;
10868 int val5 ;
10869 int ecode5 = 0 ;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10872 PyObject * obj2 = 0 ;
10873 PyObject * obj3 = 0 ;
10874 PyObject * obj4 = 0 ;
10875 char * kwnames[] = {
10876 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10877 };
10878
10879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10883 }
10884 arg1 = reinterpret_cast< wxRegion * >(argp1);
10885 ecode2 = SWIG_AsVal_int(obj1, &val2);
10886 if (!SWIG_IsOK(ecode2)) {
10887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10888 }
10889 arg2 = static_cast< int >(val2);
10890 ecode3 = SWIG_AsVal_int(obj2, &val3);
10891 if (!SWIG_IsOK(ecode3)) {
10892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10893 }
10894 arg3 = static_cast< int >(val3);
10895 ecode4 = SWIG_AsVal_int(obj3, &val4);
10896 if (!SWIG_IsOK(ecode4)) {
10897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10898 }
10899 arg4 = static_cast< int >(val4);
10900 ecode5 = SWIG_AsVal_int(obj4, &val5);
10901 if (!SWIG_IsOK(ecode5)) {
10902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10903 }
10904 arg5 = static_cast< int >(val5);
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 resultobj = SWIG_From_int(static_cast< int >(result));
10912 return resultobj;
10913 fail:
10914 return NULL;
10915 }
10916
10917
10918 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10919 PyObject *resultobj = 0;
10920 wxRegion *arg1 = (wxRegion *) 0 ;
10921 wxRect result;
10922 void *argp1 = 0 ;
10923 int res1 = 0 ;
10924 PyObject *swig_obj[1] ;
10925
10926 if (!args) SWIG_fail;
10927 swig_obj[0] = args;
10928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10929 if (!SWIG_IsOK(res1)) {
10930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10931 }
10932 arg1 = reinterpret_cast< wxRegion * >(argp1);
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 result = (arg1)->GetBox();
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10940 return resultobj;
10941 fail:
10942 return NULL;
10943 }
10944
10945
10946 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj = 0;
10948 wxRegion *arg1 = (wxRegion *) 0 ;
10949 int arg2 ;
10950 int arg3 ;
10951 int arg4 ;
10952 int arg5 ;
10953 bool result;
10954 void *argp1 = 0 ;
10955 int res1 = 0 ;
10956 int val2 ;
10957 int ecode2 = 0 ;
10958 int val3 ;
10959 int ecode3 = 0 ;
10960 int val4 ;
10961 int ecode4 = 0 ;
10962 int val5 ;
10963 int ecode5 = 0 ;
10964 PyObject * obj0 = 0 ;
10965 PyObject * obj1 = 0 ;
10966 PyObject * obj2 = 0 ;
10967 PyObject * obj3 = 0 ;
10968 PyObject * obj4 = 0 ;
10969 char * kwnames[] = {
10970 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10971 };
10972
10973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10975 if (!SWIG_IsOK(res1)) {
10976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10977 }
10978 arg1 = reinterpret_cast< wxRegion * >(argp1);
10979 ecode2 = SWIG_AsVal_int(obj1, &val2);
10980 if (!SWIG_IsOK(ecode2)) {
10981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10982 }
10983 arg2 = static_cast< int >(val2);
10984 ecode3 = SWIG_AsVal_int(obj2, &val3);
10985 if (!SWIG_IsOK(ecode3)) {
10986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10987 }
10988 arg3 = static_cast< int >(val3);
10989 ecode4 = SWIG_AsVal_int(obj3, &val4);
10990 if (!SWIG_IsOK(ecode4)) {
10991 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10992 }
10993 arg4 = static_cast< int >(val4);
10994 ecode5 = SWIG_AsVal_int(obj4, &val5);
10995 if (!SWIG_IsOK(ecode5)) {
10996 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10997 }
10998 arg5 = static_cast< int >(val5);
10999 {
11000 PyThreadState* __tstate = wxPyBeginAllowThreads();
11001 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11002 wxPyEndAllowThreads(__tstate);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 {
11006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11007 }
11008 return resultobj;
11009 fail:
11010 return NULL;
11011 }
11012
11013
11014 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj = 0;
11016 wxRegion *arg1 = (wxRegion *) 0 ;
11017 wxRect *arg2 = 0 ;
11018 bool result;
11019 void *argp1 = 0 ;
11020 int res1 = 0 ;
11021 wxRect temp2 ;
11022 PyObject * obj0 = 0 ;
11023 PyObject * obj1 = 0 ;
11024 char * kwnames[] = {
11025 (char *) "self",(char *) "rect", NULL
11026 };
11027
11028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11030 if (!SWIG_IsOK(res1)) {
11031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11032 }
11033 arg1 = reinterpret_cast< wxRegion * >(argp1);
11034 {
11035 arg2 = &temp2;
11036 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11037 }
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11046 }
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11054 PyObject *resultobj = 0;
11055 wxRegion *arg1 = (wxRegion *) 0 ;
11056 wxRegion *arg2 = 0 ;
11057 bool result;
11058 void *argp1 = 0 ;
11059 int res1 = 0 ;
11060 void *argp2 = 0 ;
11061 int res2 = 0 ;
11062 PyObject * obj0 = 0 ;
11063 PyObject * obj1 = 0 ;
11064 char * kwnames[] = {
11065 (char *) "self",(char *) "region", NULL
11066 };
11067
11068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11070 if (!SWIG_IsOK(res1)) {
11071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11072 }
11073 arg1 = reinterpret_cast< wxRegion * >(argp1);
11074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11075 if (!SWIG_IsOK(res2)) {
11076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11077 }
11078 if (!argp2) {
11079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11080 }
11081 arg2 = reinterpret_cast< wxRegion * >(argp2);
11082 {
11083 PyThreadState* __tstate = wxPyBeginAllowThreads();
11084 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 {
11089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11090 }
11091 return resultobj;
11092 fail:
11093 return NULL;
11094 }
11095
11096
11097 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11098 PyObject *resultobj = 0;
11099 wxRegion *arg1 = (wxRegion *) 0 ;
11100 bool result;
11101 void *argp1 = 0 ;
11102 int res1 = 0 ;
11103 PyObject *swig_obj[1] ;
11104
11105 if (!args) SWIG_fail;
11106 swig_obj[0] = args;
11107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11108 if (!SWIG_IsOK(res1)) {
11109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11110 }
11111 arg1 = reinterpret_cast< wxRegion * >(argp1);
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 result = (bool)(arg1)->IsEmpty();
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 {
11119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11120 }
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj = 0;
11129 wxRegion *arg1 = (wxRegion *) 0 ;
11130 wxRegion *arg2 = 0 ;
11131 bool result;
11132 void *argp1 = 0 ;
11133 int res1 = 0 ;
11134 void *argp2 = 0 ;
11135 int res2 = 0 ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 char * kwnames[] = {
11139 (char *) "self",(char *) "region", NULL
11140 };
11141
11142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11144 if (!SWIG_IsOK(res1)) {
11145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11146 }
11147 arg1 = reinterpret_cast< wxRegion * >(argp1);
11148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11149 if (!SWIG_IsOK(res2)) {
11150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11151 }
11152 if (!argp2) {
11153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11154 }
11155 arg2 = reinterpret_cast< wxRegion * >(argp2);
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11159 wxPyEndAllowThreads(__tstate);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
11162 {
11163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11164 }
11165 return resultobj;
11166 fail:
11167 return NULL;
11168 }
11169
11170
11171 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11172 PyObject *resultobj = 0;
11173 wxRegion *arg1 = (wxRegion *) 0 ;
11174 int arg2 ;
11175 int arg3 ;
11176 int arg4 ;
11177 int arg5 ;
11178 bool result;
11179 void *argp1 = 0 ;
11180 int res1 = 0 ;
11181 int val2 ;
11182 int ecode2 = 0 ;
11183 int val3 ;
11184 int ecode3 = 0 ;
11185 int val4 ;
11186 int ecode4 = 0 ;
11187 int val5 ;
11188 int ecode5 = 0 ;
11189 PyObject * obj0 = 0 ;
11190 PyObject * obj1 = 0 ;
11191 PyObject * obj2 = 0 ;
11192 PyObject * obj3 = 0 ;
11193 PyObject * obj4 = 0 ;
11194 char * kwnames[] = {
11195 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11196 };
11197
11198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11200 if (!SWIG_IsOK(res1)) {
11201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11202 }
11203 arg1 = reinterpret_cast< wxRegion * >(argp1);
11204 ecode2 = SWIG_AsVal_int(obj1, &val2);
11205 if (!SWIG_IsOK(ecode2)) {
11206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11207 }
11208 arg2 = static_cast< int >(val2);
11209 ecode3 = SWIG_AsVal_int(obj2, &val3);
11210 if (!SWIG_IsOK(ecode3)) {
11211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11212 }
11213 arg3 = static_cast< int >(val3);
11214 ecode4 = SWIG_AsVal_int(obj3, &val4);
11215 if (!SWIG_IsOK(ecode4)) {
11216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11217 }
11218 arg4 = static_cast< int >(val4);
11219 ecode5 = SWIG_AsVal_int(obj4, &val5);
11220 if (!SWIG_IsOK(ecode5)) {
11221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11222 }
11223 arg5 = static_cast< int >(val5);
11224 {
11225 PyThreadState* __tstate = wxPyBeginAllowThreads();
11226 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 {
11231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11232 }
11233 return resultobj;
11234 fail:
11235 return NULL;
11236 }
11237
11238
11239 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11240 PyObject *resultobj = 0;
11241 wxRegion *arg1 = (wxRegion *) 0 ;
11242 wxRect *arg2 = 0 ;
11243 bool result;
11244 void *argp1 = 0 ;
11245 int res1 = 0 ;
11246 wxRect temp2 ;
11247 PyObject * obj0 = 0 ;
11248 PyObject * obj1 = 0 ;
11249 char * kwnames[] = {
11250 (char *) "self",(char *) "rect", NULL
11251 };
11252
11253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11257 }
11258 arg1 = reinterpret_cast< wxRegion * >(argp1);
11259 {
11260 arg2 = &temp2;
11261 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11262 }
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 {
11270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11271 }
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj = 0;
11280 wxRegion *arg1 = (wxRegion *) 0 ;
11281 wxRegion *arg2 = 0 ;
11282 bool result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 void *argp2 = 0 ;
11286 int res2 = 0 ;
11287 PyObject * obj0 = 0 ;
11288 PyObject * obj1 = 0 ;
11289 char * kwnames[] = {
11290 (char *) "self",(char *) "region", NULL
11291 };
11292
11293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11295 if (!SWIG_IsOK(res1)) {
11296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11297 }
11298 arg1 = reinterpret_cast< wxRegion * >(argp1);
11299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11300 if (!SWIG_IsOK(res2)) {
11301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11302 }
11303 if (!argp2) {
11304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11305 }
11306 arg2 = reinterpret_cast< wxRegion * >(argp2);
11307 {
11308 PyThreadState* __tstate = wxPyBeginAllowThreads();
11309 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11310 wxPyEndAllowThreads(__tstate);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 {
11314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11315 }
11316 return resultobj;
11317 fail:
11318 return NULL;
11319 }
11320
11321
11322 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11323 PyObject *resultobj = 0;
11324 wxRegion *arg1 = (wxRegion *) 0 ;
11325 int arg2 ;
11326 int arg3 ;
11327 int arg4 ;
11328 int arg5 ;
11329 bool result;
11330 void *argp1 = 0 ;
11331 int res1 = 0 ;
11332 int val2 ;
11333 int ecode2 = 0 ;
11334 int val3 ;
11335 int ecode3 = 0 ;
11336 int val4 ;
11337 int ecode4 = 0 ;
11338 int val5 ;
11339 int ecode5 = 0 ;
11340 PyObject * obj0 = 0 ;
11341 PyObject * obj1 = 0 ;
11342 PyObject * obj2 = 0 ;
11343 PyObject * obj3 = 0 ;
11344 PyObject * obj4 = 0 ;
11345 char * kwnames[] = {
11346 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11347 };
11348
11349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11351 if (!SWIG_IsOK(res1)) {
11352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11353 }
11354 arg1 = reinterpret_cast< wxRegion * >(argp1);
11355 ecode2 = SWIG_AsVal_int(obj1, &val2);
11356 if (!SWIG_IsOK(ecode2)) {
11357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11358 }
11359 arg2 = static_cast< int >(val2);
11360 ecode3 = SWIG_AsVal_int(obj2, &val3);
11361 if (!SWIG_IsOK(ecode3)) {
11362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11363 }
11364 arg3 = static_cast< int >(val3);
11365 ecode4 = SWIG_AsVal_int(obj3, &val4);
11366 if (!SWIG_IsOK(ecode4)) {
11367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11368 }
11369 arg4 = static_cast< int >(val4);
11370 ecode5 = SWIG_AsVal_int(obj4, &val5);
11371 if (!SWIG_IsOK(ecode5)) {
11372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11373 }
11374 arg5 = static_cast< int >(val5);
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11378 wxPyEndAllowThreads(__tstate);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 }
11381 {
11382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11383 }
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj = 0;
11392 wxRegion *arg1 = (wxRegion *) 0 ;
11393 wxRect *arg2 = 0 ;
11394 bool result;
11395 void *argp1 = 0 ;
11396 int res1 = 0 ;
11397 wxRect temp2 ;
11398 PyObject * obj0 = 0 ;
11399 PyObject * obj1 = 0 ;
11400 char * kwnames[] = {
11401 (char *) "self",(char *) "rect", NULL
11402 };
11403
11404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11406 if (!SWIG_IsOK(res1)) {
11407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11408 }
11409 arg1 = reinterpret_cast< wxRegion * >(argp1);
11410 {
11411 arg2 = &temp2;
11412 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11413 }
11414 {
11415 PyThreadState* __tstate = wxPyBeginAllowThreads();
11416 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11417 wxPyEndAllowThreads(__tstate);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 }
11420 {
11421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11422 }
11423 return resultobj;
11424 fail:
11425 return NULL;
11426 }
11427
11428
11429 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11430 PyObject *resultobj = 0;
11431 wxRegion *arg1 = (wxRegion *) 0 ;
11432 wxRegion *arg2 = 0 ;
11433 bool result;
11434 void *argp1 = 0 ;
11435 int res1 = 0 ;
11436 void *argp2 = 0 ;
11437 int res2 = 0 ;
11438 PyObject * obj0 = 0 ;
11439 PyObject * obj1 = 0 ;
11440 char * kwnames[] = {
11441 (char *) "self",(char *) "region", NULL
11442 };
11443
11444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11446 if (!SWIG_IsOK(res1)) {
11447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11448 }
11449 arg1 = reinterpret_cast< wxRegion * >(argp1);
11450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11451 if (!SWIG_IsOK(res2)) {
11452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11453 }
11454 if (!argp2) {
11455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11456 }
11457 arg2 = reinterpret_cast< wxRegion * >(argp2);
11458 {
11459 PyThreadState* __tstate = wxPyBeginAllowThreads();
11460 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11461 wxPyEndAllowThreads(__tstate);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 {
11465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11466 }
11467 return resultobj;
11468 fail:
11469 return NULL;
11470 }
11471
11472
11473 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11474 PyObject *resultobj = 0;
11475 wxRegion *arg1 = (wxRegion *) 0 ;
11476 int arg2 ;
11477 int arg3 ;
11478 int arg4 ;
11479 int arg5 ;
11480 bool result;
11481 void *argp1 = 0 ;
11482 int res1 = 0 ;
11483 int val2 ;
11484 int ecode2 = 0 ;
11485 int val3 ;
11486 int ecode3 = 0 ;
11487 int val4 ;
11488 int ecode4 = 0 ;
11489 int val5 ;
11490 int ecode5 = 0 ;
11491 PyObject * obj0 = 0 ;
11492 PyObject * obj1 = 0 ;
11493 PyObject * obj2 = 0 ;
11494 PyObject * obj3 = 0 ;
11495 PyObject * obj4 = 0 ;
11496 char * kwnames[] = {
11497 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11498 };
11499
11500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11502 if (!SWIG_IsOK(res1)) {
11503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11504 }
11505 arg1 = reinterpret_cast< wxRegion * >(argp1);
11506 ecode2 = SWIG_AsVal_int(obj1, &val2);
11507 if (!SWIG_IsOK(ecode2)) {
11508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11509 }
11510 arg2 = static_cast< int >(val2);
11511 ecode3 = SWIG_AsVal_int(obj2, &val3);
11512 if (!SWIG_IsOK(ecode3)) {
11513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11514 }
11515 arg3 = static_cast< int >(val3);
11516 ecode4 = SWIG_AsVal_int(obj3, &val4);
11517 if (!SWIG_IsOK(ecode4)) {
11518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11519 }
11520 arg4 = static_cast< int >(val4);
11521 ecode5 = SWIG_AsVal_int(obj4, &val5);
11522 if (!SWIG_IsOK(ecode5)) {
11523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11524 }
11525 arg5 = static_cast< int >(val5);
11526 {
11527 PyThreadState* __tstate = wxPyBeginAllowThreads();
11528 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11529 wxPyEndAllowThreads(__tstate);
11530 if (PyErr_Occurred()) SWIG_fail;
11531 }
11532 {
11533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11534 }
11535 return resultobj;
11536 fail:
11537 return NULL;
11538 }
11539
11540
11541 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11542 PyObject *resultobj = 0;
11543 wxRegion *arg1 = (wxRegion *) 0 ;
11544 wxRect *arg2 = 0 ;
11545 bool result;
11546 void *argp1 = 0 ;
11547 int res1 = 0 ;
11548 wxRect temp2 ;
11549 PyObject * obj0 = 0 ;
11550 PyObject * obj1 = 0 ;
11551 char * kwnames[] = {
11552 (char *) "self",(char *) "rect", NULL
11553 };
11554
11555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11557 if (!SWIG_IsOK(res1)) {
11558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11559 }
11560 arg1 = reinterpret_cast< wxRegion * >(argp1);
11561 {
11562 arg2 = &temp2;
11563 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11564 }
11565 {
11566 PyThreadState* __tstate = wxPyBeginAllowThreads();
11567 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11568 wxPyEndAllowThreads(__tstate);
11569 if (PyErr_Occurred()) SWIG_fail;
11570 }
11571 {
11572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11573 }
11574 return resultobj;
11575 fail:
11576 return NULL;
11577 }
11578
11579
11580 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11581 PyObject *resultobj = 0;
11582 wxRegion *arg1 = (wxRegion *) 0 ;
11583 wxRegion *arg2 = 0 ;
11584 bool result;
11585 void *argp1 = 0 ;
11586 int res1 = 0 ;
11587 void *argp2 = 0 ;
11588 int res2 = 0 ;
11589 PyObject * obj0 = 0 ;
11590 PyObject * obj1 = 0 ;
11591 char * kwnames[] = {
11592 (char *) "self",(char *) "region", NULL
11593 };
11594
11595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11597 if (!SWIG_IsOK(res1)) {
11598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11599 }
11600 arg1 = reinterpret_cast< wxRegion * >(argp1);
11601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11602 if (!SWIG_IsOK(res2)) {
11603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11604 }
11605 if (!argp2) {
11606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11607 }
11608 arg2 = reinterpret_cast< wxRegion * >(argp2);
11609 {
11610 PyThreadState* __tstate = wxPyBeginAllowThreads();
11611 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11612 wxPyEndAllowThreads(__tstate);
11613 if (PyErr_Occurred()) SWIG_fail;
11614 }
11615 {
11616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11617 }
11618 return resultobj;
11619 fail:
11620 return NULL;
11621 }
11622
11623
11624 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11625 PyObject *resultobj = 0;
11626 wxRegion *arg1 = (wxRegion *) 0 ;
11627 SwigValueWrapper<wxBitmap > result;
11628 void *argp1 = 0 ;
11629 int res1 = 0 ;
11630 PyObject *swig_obj[1] ;
11631
11632 if (!args) SWIG_fail;
11633 swig_obj[0] = args;
11634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11635 if (!SWIG_IsOK(res1)) {
11636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11637 }
11638 arg1 = reinterpret_cast< wxRegion * >(argp1);
11639 {
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
11641 result = (arg1)->ConvertToBitmap();
11642 wxPyEndAllowThreads(__tstate);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11646 return resultobj;
11647 fail:
11648 return NULL;
11649 }
11650
11651
11652 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11653 PyObject *resultobj = 0;
11654 wxRegion *arg1 = (wxRegion *) 0 ;
11655 wxBitmap *arg2 = 0 ;
11656 bool result;
11657 void *argp1 = 0 ;
11658 int res1 = 0 ;
11659 void *argp2 = 0 ;
11660 int res2 = 0 ;
11661 PyObject * obj0 = 0 ;
11662 PyObject * obj1 = 0 ;
11663 char * kwnames[] = {
11664 (char *) "self",(char *) "bmp", NULL
11665 };
11666
11667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11669 if (!SWIG_IsOK(res1)) {
11670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11671 }
11672 arg1 = reinterpret_cast< wxRegion * >(argp1);
11673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11674 if (!SWIG_IsOK(res2)) {
11675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11676 }
11677 if (!argp2) {
11678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11679 }
11680 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 {
11688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11689 }
11690 return resultobj;
11691 fail:
11692 return NULL;
11693 }
11694
11695
11696 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11697 PyObject *resultobj = 0;
11698 wxRegion *arg1 = (wxRegion *) 0 ;
11699 wxBitmap *arg2 = 0 ;
11700 wxColour *arg3 = 0 ;
11701 int arg4 = (int) 0 ;
11702 bool result;
11703 void *argp1 = 0 ;
11704 int res1 = 0 ;
11705 void *argp2 = 0 ;
11706 int res2 = 0 ;
11707 wxColour temp3 ;
11708 int val4 ;
11709 int ecode4 = 0 ;
11710 PyObject * obj0 = 0 ;
11711 PyObject * obj1 = 0 ;
11712 PyObject * obj2 = 0 ;
11713 PyObject * obj3 = 0 ;
11714 char * kwnames[] = {
11715 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11716 };
11717
11718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11720 if (!SWIG_IsOK(res1)) {
11721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11722 }
11723 arg1 = reinterpret_cast< wxRegion * >(argp1);
11724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11725 if (!SWIG_IsOK(res2)) {
11726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11727 }
11728 if (!argp2) {
11729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11730 }
11731 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11732 {
11733 arg3 = &temp3;
11734 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11735 }
11736 if (obj3) {
11737 ecode4 = SWIG_AsVal_int(obj3, &val4);
11738 if (!SWIG_IsOK(ecode4)) {
11739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11740 }
11741 arg4 = static_cast< int >(val4);
11742 }
11743 {
11744 PyThreadState* __tstate = wxPyBeginAllowThreads();
11745 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11746 wxPyEndAllowThreads(__tstate);
11747 if (PyErr_Occurred()) SWIG_fail;
11748 }
11749 {
11750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11751 }
11752 return resultobj;
11753 fail:
11754 return NULL;
11755 }
11756
11757
11758 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11759 PyObject *obj;
11760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11761 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11762 return SWIG_Py_Void();
11763 }
11764
11765 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11766 return SWIG_Python_InitShadowInstance(args);
11767 }
11768
11769 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11770 PyObject *resultobj = 0;
11771 wxRegion *arg1 = 0 ;
11772 wxRegionIterator *result = 0 ;
11773 void *argp1 = 0 ;
11774 int res1 = 0 ;
11775 PyObject * obj0 = 0 ;
11776 char * kwnames[] = {
11777 (char *) "region", NULL
11778 };
11779
11780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11781 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11782 if (!SWIG_IsOK(res1)) {
11783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11784 }
11785 if (!argp1) {
11786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11787 }
11788 arg1 = reinterpret_cast< wxRegion * >(argp1);
11789 {
11790 if (!wxPyCheckForApp()) SWIG_fail;
11791 PyThreadState* __tstate = wxPyBeginAllowThreads();
11792 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11793 wxPyEndAllowThreads(__tstate);
11794 if (PyErr_Occurred()) SWIG_fail;
11795 }
11796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11797 return resultobj;
11798 fail:
11799 return NULL;
11800 }
11801
11802
11803 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11804 PyObject *resultobj = 0;
11805 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11806 void *argp1 = 0 ;
11807 int res1 = 0 ;
11808 PyObject *swig_obj[1] ;
11809
11810 if (!args) SWIG_fail;
11811 swig_obj[0] = args;
11812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11813 if (!SWIG_IsOK(res1)) {
11814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11815 }
11816 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11817 {
11818 PyThreadState* __tstate = wxPyBeginAllowThreads();
11819 delete arg1;
11820
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 resultobj = SWIG_Py_Void();
11825 return resultobj;
11826 fail:
11827 return NULL;
11828 }
11829
11830
11831 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11832 PyObject *resultobj = 0;
11833 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11834 int result;
11835 void *argp1 = 0 ;
11836 int res1 = 0 ;
11837 PyObject *swig_obj[1] ;
11838
11839 if (!args) SWIG_fail;
11840 swig_obj[0] = args;
11841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11842 if (!SWIG_IsOK(res1)) {
11843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11844 }
11845 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 result = (int)(arg1)->GetX();
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 resultobj = SWIG_From_int(static_cast< int >(result));
11853 return resultobj;
11854 fail:
11855 return NULL;
11856 }
11857
11858
11859 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11860 PyObject *resultobj = 0;
11861 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11862 int result;
11863 void *argp1 = 0 ;
11864 int res1 = 0 ;
11865 PyObject *swig_obj[1] ;
11866
11867 if (!args) SWIG_fail;
11868 swig_obj[0] = args;
11869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11870 if (!SWIG_IsOK(res1)) {
11871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11872 }
11873 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 result = (int)(arg1)->GetY();
11877 wxPyEndAllowThreads(__tstate);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 resultobj = SWIG_From_int(static_cast< int >(result));
11881 return resultobj;
11882 fail:
11883 return NULL;
11884 }
11885
11886
11887 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11888 PyObject *resultobj = 0;
11889 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11890 int result;
11891 void *argp1 = 0 ;
11892 int res1 = 0 ;
11893 PyObject *swig_obj[1] ;
11894
11895 if (!args) SWIG_fail;
11896 swig_obj[0] = args;
11897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11898 if (!SWIG_IsOK(res1)) {
11899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11900 }
11901 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11902 {
11903 PyThreadState* __tstate = wxPyBeginAllowThreads();
11904 result = (int)(arg1)->GetW();
11905 wxPyEndAllowThreads(__tstate);
11906 if (PyErr_Occurred()) SWIG_fail;
11907 }
11908 resultobj = SWIG_From_int(static_cast< int >(result));
11909 return resultobj;
11910 fail:
11911 return NULL;
11912 }
11913
11914
11915 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11916 PyObject *resultobj = 0;
11917 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11918 int result;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 PyObject *swig_obj[1] ;
11922
11923 if (!args) SWIG_fail;
11924 swig_obj[0] = args;
11925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11926 if (!SWIG_IsOK(res1)) {
11927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11928 }
11929 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 result = (int)(arg1)->GetWidth();
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) SWIG_fail;
11935 }
11936 resultobj = SWIG_From_int(static_cast< int >(result));
11937 return resultobj;
11938 fail:
11939 return NULL;
11940 }
11941
11942
11943 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11944 PyObject *resultobj = 0;
11945 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11946 int result;
11947 void *argp1 = 0 ;
11948 int res1 = 0 ;
11949 PyObject *swig_obj[1] ;
11950
11951 if (!args) SWIG_fail;
11952 swig_obj[0] = args;
11953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11954 if (!SWIG_IsOK(res1)) {
11955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11956 }
11957 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11958 {
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 result = (int)(arg1)->GetH();
11961 wxPyEndAllowThreads(__tstate);
11962 if (PyErr_Occurred()) SWIG_fail;
11963 }
11964 resultobj = SWIG_From_int(static_cast< int >(result));
11965 return resultobj;
11966 fail:
11967 return NULL;
11968 }
11969
11970
11971 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11972 PyObject *resultobj = 0;
11973 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11974 int result;
11975 void *argp1 = 0 ;
11976 int res1 = 0 ;
11977 PyObject *swig_obj[1] ;
11978
11979 if (!args) SWIG_fail;
11980 swig_obj[0] = args;
11981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11982 if (!SWIG_IsOK(res1)) {
11983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11984 }
11985 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11986 {
11987 PyThreadState* __tstate = wxPyBeginAllowThreads();
11988 result = (int)(arg1)->GetHeight();
11989 wxPyEndAllowThreads(__tstate);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 }
11992 resultobj = SWIG_From_int(static_cast< int >(result));
11993 return resultobj;
11994 fail:
11995 return NULL;
11996 }
11997
11998
11999 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12000 PyObject *resultobj = 0;
12001 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12002 wxRect result;
12003 void *argp1 = 0 ;
12004 int res1 = 0 ;
12005 PyObject *swig_obj[1] ;
12006
12007 if (!args) SWIG_fail;
12008 swig_obj[0] = args;
12009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12010 if (!SWIG_IsOK(res1)) {
12011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12012 }
12013 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12014 {
12015 PyThreadState* __tstate = wxPyBeginAllowThreads();
12016 result = (arg1)->GetRect();
12017 wxPyEndAllowThreads(__tstate);
12018 if (PyErr_Occurred()) SWIG_fail;
12019 }
12020 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12021 return resultobj;
12022 fail:
12023 return NULL;
12024 }
12025
12026
12027 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12028 PyObject *resultobj = 0;
12029 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12030 bool result;
12031 void *argp1 = 0 ;
12032 int res1 = 0 ;
12033 PyObject *swig_obj[1] ;
12034
12035 if (!args) SWIG_fail;
12036 swig_obj[0] = args;
12037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12038 if (!SWIG_IsOK(res1)) {
12039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12040 }
12041 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12042 {
12043 PyThreadState* __tstate = wxPyBeginAllowThreads();
12044 result = (bool)(arg1)->HaveRects();
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 {
12049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12050 }
12051 return resultobj;
12052 fail:
12053 return NULL;
12054 }
12055
12056
12057 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12058 PyObject *resultobj = 0;
12059 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12060 void *argp1 = 0 ;
12061 int res1 = 0 ;
12062 PyObject *swig_obj[1] ;
12063
12064 if (!args) SWIG_fail;
12065 swig_obj[0] = args;
12066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12067 if (!SWIG_IsOK(res1)) {
12068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12069 }
12070 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 (arg1)->Reset();
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 resultobj = SWIG_Py_Void();
12078 return resultobj;
12079 fail:
12080 return NULL;
12081 }
12082
12083
12084 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12085 PyObject *resultobj = 0;
12086 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12087 void *argp1 = 0 ;
12088 int res1 = 0 ;
12089 PyObject *swig_obj[1] ;
12090
12091 if (!args) SWIG_fail;
12092 swig_obj[0] = args;
12093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12094 if (!SWIG_IsOK(res1)) {
12095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12096 }
12097 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12098 {
12099 PyThreadState* __tstate = wxPyBeginAllowThreads();
12100 wxRegionIterator_Next(arg1);
12101 wxPyEndAllowThreads(__tstate);
12102 if (PyErr_Occurred()) SWIG_fail;
12103 }
12104 resultobj = SWIG_Py_Void();
12105 return resultobj;
12106 fail:
12107 return NULL;
12108 }
12109
12110
12111 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12112 PyObject *resultobj = 0;
12113 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12114 bool result;
12115 void *argp1 = 0 ;
12116 int res1 = 0 ;
12117 PyObject *swig_obj[1] ;
12118
12119 if (!args) SWIG_fail;
12120 swig_obj[0] = args;
12121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12122 if (!SWIG_IsOK(res1)) {
12123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12124 }
12125 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12126 {
12127 PyThreadState* __tstate = wxPyBeginAllowThreads();
12128 result = (bool)wxRegionIterator___nonzero__(arg1);
12129 wxPyEndAllowThreads(__tstate);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 {
12133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12134 }
12135 return resultobj;
12136 fail:
12137 return NULL;
12138 }
12139
12140
12141 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12142 PyObject *obj;
12143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12144 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12145 return SWIG_Py_Void();
12146 }
12147
12148 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12149 return SWIG_Python_InitShadowInstance(args);
12150 }
12151
12152 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12153 PyObject *resultobj = 0;
12154 wxNativeFontInfo *result = 0 ;
12155
12156 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12160 wxPyEndAllowThreads(__tstate);
12161 if (PyErr_Occurred()) SWIG_fail;
12162 }
12163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12164 return resultobj;
12165 fail:
12166 return NULL;
12167 }
12168
12169
12170 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12171 PyObject *resultobj = 0;
12172 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12173 void *argp1 = 0 ;
12174 int res1 = 0 ;
12175 PyObject *swig_obj[1] ;
12176
12177 if (!args) SWIG_fail;
12178 swig_obj[0] = args;
12179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12180 if (!SWIG_IsOK(res1)) {
12181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12182 }
12183 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12184 {
12185 PyThreadState* __tstate = wxPyBeginAllowThreads();
12186 delete arg1;
12187
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 resultobj = SWIG_Py_Void();
12192 return resultobj;
12193 fail:
12194 return NULL;
12195 }
12196
12197
12198 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 PyObject *swig_obj[1] ;
12204
12205 if (!args) SWIG_fail;
12206 swig_obj[0] = args;
12207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12210 }
12211 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 (arg1)->Init();
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 resultobj = SWIG_Py_Void();
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12226 PyObject *resultobj = 0;
12227 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12228 wxFont *arg2 = 0 ;
12229 void *argp1 = 0 ;
12230 int res1 = 0 ;
12231 void *argp2 = 0 ;
12232 int res2 = 0 ;
12233 PyObject * obj0 = 0 ;
12234 PyObject * obj1 = 0 ;
12235 char * kwnames[] = {
12236 (char *) "self",(char *) "font", NULL
12237 };
12238
12239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12241 if (!SWIG_IsOK(res1)) {
12242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12243 }
12244 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12246 if (!SWIG_IsOK(res2)) {
12247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12248 }
12249 if (!argp2) {
12250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12251 }
12252 arg2 = reinterpret_cast< wxFont * >(argp2);
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 (arg1)->InitFromFont((wxFont const &)*arg2);
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 resultobj = SWIG_Py_Void();
12260 return resultobj;
12261 fail:
12262 return NULL;
12263 }
12264
12265
12266 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12267 PyObject *resultobj = 0;
12268 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12269 int result;
12270 void *argp1 = 0 ;
12271 int res1 = 0 ;
12272 PyObject *swig_obj[1] ;
12273
12274 if (!args) SWIG_fail;
12275 swig_obj[0] = args;
12276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12277 if (!SWIG_IsOK(res1)) {
12278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12279 }
12280 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
12283 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 resultobj = SWIG_From_int(static_cast< int >(result));
12288 return resultobj;
12289 fail:
12290 return NULL;
12291 }
12292
12293
12294 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 PyObject *resultobj = 0;
12296 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12297 wxSize result;
12298 void *argp1 = 0 ;
12299 int res1 = 0 ;
12300 PyObject *swig_obj[1] ;
12301
12302 if (!args) SWIG_fail;
12303 swig_obj[0] = args;
12304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12305 if (!SWIG_IsOK(res1)) {
12306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12307 }
12308 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12323 PyObject *resultobj = 0;
12324 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12325 wxFontStyle result;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 PyObject *swig_obj[1] ;
12329
12330 if (!args) SWIG_fail;
12331 swig_obj[0] = args;
12332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12333 if (!SWIG_IsOK(res1)) {
12334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12335 }
12336 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 resultobj = SWIG_From_int(static_cast< int >(result));
12344 return resultobj;
12345 fail:
12346 return NULL;
12347 }
12348
12349
12350 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12353 wxFontWeight result;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 PyObject *swig_obj[1] ;
12357
12358 if (!args) SWIG_fail;
12359 swig_obj[0] = args;
12360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12361 if (!SWIG_IsOK(res1)) {
12362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12363 }
12364 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 resultobj = SWIG_From_int(static_cast< int >(result));
12372 return resultobj;
12373 fail:
12374 return NULL;
12375 }
12376
12377
12378 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12379 PyObject *resultobj = 0;
12380 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12381 bool result;
12382 void *argp1 = 0 ;
12383 int res1 = 0 ;
12384 PyObject *swig_obj[1] ;
12385
12386 if (!args) SWIG_fail;
12387 swig_obj[0] = args;
12388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12389 if (!SWIG_IsOK(res1)) {
12390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12391 }
12392 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 {
12400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12401 }
12402 return resultobj;
12403 fail:
12404 return NULL;
12405 }
12406
12407
12408 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12409 PyObject *resultobj = 0;
12410 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12411 wxString result;
12412 void *argp1 = 0 ;
12413 int res1 = 0 ;
12414 PyObject *swig_obj[1] ;
12415
12416 if (!args) SWIG_fail;
12417 swig_obj[0] = args;
12418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12419 if (!SWIG_IsOK(res1)) {
12420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12421 }
12422 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 {
12430 #if wxUSE_UNICODE
12431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12432 #else
12433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12434 #endif
12435 }
12436 return resultobj;
12437 fail:
12438 return NULL;
12439 }
12440
12441
12442 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12443 PyObject *resultobj = 0;
12444 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12445 wxFontFamily result;
12446 void *argp1 = 0 ;
12447 int res1 = 0 ;
12448 PyObject *swig_obj[1] ;
12449
12450 if (!args) SWIG_fail;
12451 swig_obj[0] = args;
12452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12453 if (!SWIG_IsOK(res1)) {
12454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12455 }
12456 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12457 {
12458 PyThreadState* __tstate = wxPyBeginAllowThreads();
12459 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12460 wxPyEndAllowThreads(__tstate);
12461 if (PyErr_Occurred()) SWIG_fail;
12462 }
12463 resultobj = SWIG_From_int(static_cast< int >(result));
12464 return resultobj;
12465 fail:
12466 return NULL;
12467 }
12468
12469
12470 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12471 PyObject *resultobj = 0;
12472 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12473 wxFontEncoding result;
12474 void *argp1 = 0 ;
12475 int res1 = 0 ;
12476 PyObject *swig_obj[1] ;
12477
12478 if (!args) SWIG_fail;
12479 swig_obj[0] = args;
12480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12481 if (!SWIG_IsOK(res1)) {
12482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12483 }
12484 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12485 {
12486 PyThreadState* __tstate = wxPyBeginAllowThreads();
12487 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12488 wxPyEndAllowThreads(__tstate);
12489 if (PyErr_Occurred()) SWIG_fail;
12490 }
12491 resultobj = SWIG_From_int(static_cast< int >(result));
12492 return resultobj;
12493 fail:
12494 return NULL;
12495 }
12496
12497
12498 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12499 PyObject *resultobj = 0;
12500 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12501 int arg2 ;
12502 void *argp1 = 0 ;
12503 int res1 = 0 ;
12504 int val2 ;
12505 int ecode2 = 0 ;
12506 PyObject * obj0 = 0 ;
12507 PyObject * obj1 = 0 ;
12508 char * kwnames[] = {
12509 (char *) "self",(char *) "pointsize", NULL
12510 };
12511
12512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12516 }
12517 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12518 ecode2 = SWIG_AsVal_int(obj1, &val2);
12519 if (!SWIG_IsOK(ecode2)) {
12520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12521 }
12522 arg2 = static_cast< int >(val2);
12523 {
12524 PyThreadState* __tstate = wxPyBeginAllowThreads();
12525 (arg1)->SetPointSize(arg2);
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 resultobj = SWIG_Py_Void();
12530 return resultobj;
12531 fail:
12532 return NULL;
12533 }
12534
12535
12536 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12537 PyObject *resultobj = 0;
12538 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12539 wxSize *arg2 = 0 ;
12540 void *argp1 = 0 ;
12541 int res1 = 0 ;
12542 wxSize temp2 ;
12543 PyObject * obj0 = 0 ;
12544 PyObject * obj1 = 0 ;
12545 char * kwnames[] = {
12546 (char *) "self",(char *) "pixelSize", NULL
12547 };
12548
12549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12551 if (!SWIG_IsOK(res1)) {
12552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12553 }
12554 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12555 {
12556 arg2 = &temp2;
12557 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12558 }
12559 {
12560 PyThreadState* __tstate = wxPyBeginAllowThreads();
12561 (arg1)->SetPixelSize((wxSize const &)*arg2);
12562 wxPyEndAllowThreads(__tstate);
12563 if (PyErr_Occurred()) SWIG_fail;
12564 }
12565 resultobj = SWIG_Py_Void();
12566 return resultobj;
12567 fail:
12568 return NULL;
12569 }
12570
12571
12572 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12573 PyObject *resultobj = 0;
12574 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12575 wxFontStyle arg2 ;
12576 void *argp1 = 0 ;
12577 int res1 = 0 ;
12578 int val2 ;
12579 int ecode2 = 0 ;
12580 PyObject * obj0 = 0 ;
12581 PyObject * obj1 = 0 ;
12582 char * kwnames[] = {
12583 (char *) "self",(char *) "style", NULL
12584 };
12585
12586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12588 if (!SWIG_IsOK(res1)) {
12589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12590 }
12591 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12592 ecode2 = SWIG_AsVal_int(obj1, &val2);
12593 if (!SWIG_IsOK(ecode2)) {
12594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12595 }
12596 arg2 = static_cast< wxFontStyle >(val2);
12597 {
12598 PyThreadState* __tstate = wxPyBeginAllowThreads();
12599 (arg1)->SetStyle(arg2);
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 resultobj = SWIG_Py_Void();
12604 return resultobj;
12605 fail:
12606 return NULL;
12607 }
12608
12609
12610 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12611 PyObject *resultobj = 0;
12612 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12613 wxFontWeight arg2 ;
12614 void *argp1 = 0 ;
12615 int res1 = 0 ;
12616 int val2 ;
12617 int ecode2 = 0 ;
12618 PyObject * obj0 = 0 ;
12619 PyObject * obj1 = 0 ;
12620 char * kwnames[] = {
12621 (char *) "self",(char *) "weight", NULL
12622 };
12623
12624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12626 if (!SWIG_IsOK(res1)) {
12627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12628 }
12629 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12630 ecode2 = SWIG_AsVal_int(obj1, &val2);
12631 if (!SWIG_IsOK(ecode2)) {
12632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12633 }
12634 arg2 = static_cast< wxFontWeight >(val2);
12635 {
12636 PyThreadState* __tstate = wxPyBeginAllowThreads();
12637 (arg1)->SetWeight(arg2);
12638 wxPyEndAllowThreads(__tstate);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 resultobj = SWIG_Py_Void();
12642 return resultobj;
12643 fail:
12644 return NULL;
12645 }
12646
12647
12648 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj = 0;
12650 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12651 bool arg2 ;
12652 void *argp1 = 0 ;
12653 int res1 = 0 ;
12654 bool val2 ;
12655 int ecode2 = 0 ;
12656 PyObject * obj0 = 0 ;
12657 PyObject * obj1 = 0 ;
12658 char * kwnames[] = {
12659 (char *) "self",(char *) "underlined", NULL
12660 };
12661
12662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12664 if (!SWIG_IsOK(res1)) {
12665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12666 }
12667 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12668 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12669 if (!SWIG_IsOK(ecode2)) {
12670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12671 }
12672 arg2 = static_cast< bool >(val2);
12673 {
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 (arg1)->SetUnderlined(arg2);
12676 wxPyEndAllowThreads(__tstate);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 resultobj = SWIG_Py_Void();
12680 return resultobj;
12681 fail:
12682 return NULL;
12683 }
12684
12685
12686 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12687 PyObject *resultobj = 0;
12688 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12689 wxString arg2 ;
12690 bool result;
12691 void *argp1 = 0 ;
12692 int res1 = 0 ;
12693 PyObject * obj0 = 0 ;
12694 PyObject * obj1 = 0 ;
12695 char * kwnames[] = {
12696 (char *) "self",(char *) "facename", NULL
12697 };
12698
12699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12701 if (!SWIG_IsOK(res1)) {
12702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12703 }
12704 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12705 {
12706 wxString* sptr = wxString_in_helper(obj1);
12707 if (sptr == NULL) SWIG_fail;
12708 arg2 = *sptr;
12709 delete sptr;
12710 }
12711 {
12712 PyThreadState* __tstate = wxPyBeginAllowThreads();
12713 result = (bool)(arg1)->SetFaceName(arg2);
12714 wxPyEndAllowThreads(__tstate);
12715 if (PyErr_Occurred()) SWIG_fail;
12716 }
12717 {
12718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12719 }
12720 return resultobj;
12721 fail:
12722 return NULL;
12723 }
12724
12725
12726 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12727 PyObject *resultobj = 0;
12728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12729 wxFontFamily arg2 ;
12730 void *argp1 = 0 ;
12731 int res1 = 0 ;
12732 int val2 ;
12733 int ecode2 = 0 ;
12734 PyObject * obj0 = 0 ;
12735 PyObject * obj1 = 0 ;
12736 char * kwnames[] = {
12737 (char *) "self",(char *) "family", NULL
12738 };
12739
12740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12742 if (!SWIG_IsOK(res1)) {
12743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12744 }
12745 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12746 ecode2 = SWIG_AsVal_int(obj1, &val2);
12747 if (!SWIG_IsOK(ecode2)) {
12748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12749 }
12750 arg2 = static_cast< wxFontFamily >(val2);
12751 {
12752 PyThreadState* __tstate = wxPyBeginAllowThreads();
12753 (arg1)->SetFamily(arg2);
12754 wxPyEndAllowThreads(__tstate);
12755 if (PyErr_Occurred()) SWIG_fail;
12756 }
12757 resultobj = SWIG_Py_Void();
12758 return resultobj;
12759 fail:
12760 return NULL;
12761 }
12762
12763
12764 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12765 PyObject *resultobj = 0;
12766 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12767 wxFontEncoding arg2 ;
12768 void *argp1 = 0 ;
12769 int res1 = 0 ;
12770 int val2 ;
12771 int ecode2 = 0 ;
12772 PyObject * obj0 = 0 ;
12773 PyObject * obj1 = 0 ;
12774 char * kwnames[] = {
12775 (char *) "self",(char *) "encoding", NULL
12776 };
12777
12778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12782 }
12783 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12784 ecode2 = SWIG_AsVal_int(obj1, &val2);
12785 if (!SWIG_IsOK(ecode2)) {
12786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12787 }
12788 arg2 = static_cast< wxFontEncoding >(val2);
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 (arg1)->SetEncoding(arg2);
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 resultobj = SWIG_Py_Void();
12796 return resultobj;
12797 fail:
12798 return NULL;
12799 }
12800
12801
12802 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12803 PyObject *resultobj = 0;
12804 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12805 wxString *arg2 = 0 ;
12806 bool result;
12807 void *argp1 = 0 ;
12808 int res1 = 0 ;
12809 bool temp2 = false ;
12810 PyObject * obj0 = 0 ;
12811 PyObject * obj1 = 0 ;
12812 char * kwnames[] = {
12813 (char *) "self",(char *) "s", NULL
12814 };
12815
12816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12818 if (!SWIG_IsOK(res1)) {
12819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12820 }
12821 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12822 {
12823 arg2 = wxString_in_helper(obj1);
12824 if (arg2 == NULL) SWIG_fail;
12825 temp2 = true;
12826 }
12827 {
12828 PyThreadState* __tstate = wxPyBeginAllowThreads();
12829 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12830 wxPyEndAllowThreads(__tstate);
12831 if (PyErr_Occurred()) SWIG_fail;
12832 }
12833 {
12834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12835 }
12836 {
12837 if (temp2)
12838 delete arg2;
12839 }
12840 return resultobj;
12841 fail:
12842 {
12843 if (temp2)
12844 delete arg2;
12845 }
12846 return NULL;
12847 }
12848
12849
12850 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12851 PyObject *resultobj = 0;
12852 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12853 wxString result;
12854 void *argp1 = 0 ;
12855 int res1 = 0 ;
12856 PyObject *swig_obj[1] ;
12857
12858 if (!args) SWIG_fail;
12859 swig_obj[0] = args;
12860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12861 if (!SWIG_IsOK(res1)) {
12862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12863 }
12864 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 result = ((wxNativeFontInfo const *)arg1)->ToString();
12868 wxPyEndAllowThreads(__tstate);
12869 if (PyErr_Occurred()) SWIG_fail;
12870 }
12871 {
12872 #if wxUSE_UNICODE
12873 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12874 #else
12875 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12876 #endif
12877 }
12878 return resultobj;
12879 fail:
12880 return NULL;
12881 }
12882
12883
12884 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12885 PyObject *resultobj = 0;
12886 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12887 wxString result;
12888 void *argp1 = 0 ;
12889 int res1 = 0 ;
12890 PyObject *swig_obj[1] ;
12891
12892 if (!args) SWIG_fail;
12893 swig_obj[0] = args;
12894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12895 if (!SWIG_IsOK(res1)) {
12896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12897 }
12898 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 result = wxNativeFontInfo___str__(arg1);
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 {
12906 #if wxUSE_UNICODE
12907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12908 #else
12909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12910 #endif
12911 }
12912 return resultobj;
12913 fail:
12914 return NULL;
12915 }
12916
12917
12918 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj = 0;
12920 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12921 wxString *arg2 = 0 ;
12922 bool result;
12923 void *argp1 = 0 ;
12924 int res1 = 0 ;
12925 bool temp2 = false ;
12926 PyObject * obj0 = 0 ;
12927 PyObject * obj1 = 0 ;
12928 char * kwnames[] = {
12929 (char *) "self",(char *) "s", NULL
12930 };
12931
12932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12934 if (!SWIG_IsOK(res1)) {
12935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12936 }
12937 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12938 {
12939 arg2 = wxString_in_helper(obj1);
12940 if (arg2 == NULL) SWIG_fail;
12941 temp2 = true;
12942 }
12943 {
12944 PyThreadState* __tstate = wxPyBeginAllowThreads();
12945 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12946 wxPyEndAllowThreads(__tstate);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 {
12950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12951 }
12952 {
12953 if (temp2)
12954 delete arg2;
12955 }
12956 return resultobj;
12957 fail:
12958 {
12959 if (temp2)
12960 delete arg2;
12961 }
12962 return NULL;
12963 }
12964
12965
12966 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 PyObject *resultobj = 0;
12968 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12969 wxString result;
12970 void *argp1 = 0 ;
12971 int res1 = 0 ;
12972 PyObject *swig_obj[1] ;
12973
12974 if (!args) SWIG_fail;
12975 swig_obj[0] = args;
12976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12979 }
12980 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12984 wxPyEndAllowThreads(__tstate);
12985 if (PyErr_Occurred()) SWIG_fail;
12986 }
12987 {
12988 #if wxUSE_UNICODE
12989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12990 #else
12991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12992 #endif
12993 }
12994 return resultobj;
12995 fail:
12996 return NULL;
12997 }
12998
12999
13000 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13001 PyObject *obj;
13002 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13003 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13004 return SWIG_Py_Void();
13005 }
13006
13007 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13008 return SWIG_Python_InitShadowInstance(args);
13009 }
13010
13011 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13012 PyObject *resultobj = 0;
13013 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13014 wxString *arg2 = (wxString *) 0 ;
13015 void *argp1 = 0 ;
13016 int res1 = 0 ;
13017 bool temp2 = false ;
13018 PyObject *swig_obj[2] ;
13019
13020 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13022 if (!SWIG_IsOK(res1)) {
13023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13024 }
13025 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13026 {
13027 arg2 = wxString_in_helper(swig_obj[1]);
13028 if (arg2 == NULL) SWIG_fail;
13029 temp2 = true;
13030 }
13031 if (arg1) (arg1)->facename = *arg2;
13032
13033 resultobj = SWIG_Py_Void();
13034 {
13035 if (temp2)
13036 delete arg2;
13037 }
13038 return resultobj;
13039 fail:
13040 {
13041 if (temp2)
13042 delete arg2;
13043 }
13044 return NULL;
13045 }
13046
13047
13048 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13049 PyObject *resultobj = 0;
13050 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13051 wxString *result = 0 ;
13052 void *argp1 = 0 ;
13053 int res1 = 0 ;
13054 PyObject *swig_obj[1] ;
13055
13056 if (!args) SWIG_fail;
13057 swig_obj[0] = args;
13058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13059 if (!SWIG_IsOK(res1)) {
13060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13061 }
13062 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13063 result = (wxString *)& ((arg1)->facename);
13064 {
13065 #if wxUSE_UNICODE
13066 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13067 #else
13068 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13069 #endif
13070 }
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13078 PyObject *resultobj = 0;
13079 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13080 wxFontEncoding arg2 ;
13081 void *argp1 = 0 ;
13082 int res1 = 0 ;
13083 int val2 ;
13084 int ecode2 = 0 ;
13085 PyObject *swig_obj[2] ;
13086
13087 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13089 if (!SWIG_IsOK(res1)) {
13090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13091 }
13092 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13093 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13094 if (!SWIG_IsOK(ecode2)) {
13095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13096 }
13097 arg2 = static_cast< wxFontEncoding >(val2);
13098 if (arg1) (arg1)->encoding = arg2;
13099
13100 resultobj = SWIG_Py_Void();
13101 return resultobj;
13102 fail:
13103 return NULL;
13104 }
13105
13106
13107 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13108 PyObject *resultobj = 0;
13109 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13110 wxFontEncoding result;
13111 void *argp1 = 0 ;
13112 int res1 = 0 ;
13113 PyObject *swig_obj[1] ;
13114
13115 if (!args) SWIG_fail;
13116 swig_obj[0] = args;
13117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13118 if (!SWIG_IsOK(res1)) {
13119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13120 }
13121 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13122 result = (wxFontEncoding) ((arg1)->encoding);
13123 resultobj = SWIG_From_int(static_cast< int >(result));
13124 return resultobj;
13125 fail:
13126 return NULL;
13127 }
13128
13129
13130 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13131 PyObject *resultobj = 0;
13132 wxNativeEncodingInfo *result = 0 ;
13133
13134 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13135 {
13136 PyThreadState* __tstate = wxPyBeginAllowThreads();
13137 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13138 wxPyEndAllowThreads(__tstate);
13139 if (PyErr_Occurred()) SWIG_fail;
13140 }
13141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13142 return resultobj;
13143 fail:
13144 return NULL;
13145 }
13146
13147
13148 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13149 PyObject *resultobj = 0;
13150 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13151 void *argp1 = 0 ;
13152 int res1 = 0 ;
13153 PyObject *swig_obj[1] ;
13154
13155 if (!args) SWIG_fail;
13156 swig_obj[0] = args;
13157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13158 if (!SWIG_IsOK(res1)) {
13159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13160 }
13161 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 delete arg1;
13165
13166 wxPyEndAllowThreads(__tstate);
13167 if (PyErr_Occurred()) SWIG_fail;
13168 }
13169 resultobj = SWIG_Py_Void();
13170 return resultobj;
13171 fail:
13172 return NULL;
13173 }
13174
13175
13176 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13177 PyObject *resultobj = 0;
13178 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13179 wxString *arg2 = 0 ;
13180 bool result;
13181 void *argp1 = 0 ;
13182 int res1 = 0 ;
13183 bool temp2 = false ;
13184 PyObject * obj0 = 0 ;
13185 PyObject * obj1 = 0 ;
13186 char * kwnames[] = {
13187 (char *) "self",(char *) "s", NULL
13188 };
13189
13190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13192 if (!SWIG_IsOK(res1)) {
13193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13194 }
13195 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13196 {
13197 arg2 = wxString_in_helper(obj1);
13198 if (arg2 == NULL) SWIG_fail;
13199 temp2 = true;
13200 }
13201 {
13202 PyThreadState* __tstate = wxPyBeginAllowThreads();
13203 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13204 wxPyEndAllowThreads(__tstate);
13205 if (PyErr_Occurred()) SWIG_fail;
13206 }
13207 {
13208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13209 }
13210 {
13211 if (temp2)
13212 delete arg2;
13213 }
13214 return resultobj;
13215 fail:
13216 {
13217 if (temp2)
13218 delete arg2;
13219 }
13220 return NULL;
13221 }
13222
13223
13224 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13225 PyObject *resultobj = 0;
13226 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13227 wxString result;
13228 void *argp1 = 0 ;
13229 int res1 = 0 ;
13230 PyObject *swig_obj[1] ;
13231
13232 if (!args) SWIG_fail;
13233 swig_obj[0] = args;
13234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13235 if (!SWIG_IsOK(res1)) {
13236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13237 }
13238 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13239 {
13240 PyThreadState* __tstate = wxPyBeginAllowThreads();
13241 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13242 wxPyEndAllowThreads(__tstate);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 {
13246 #if wxUSE_UNICODE
13247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13248 #else
13249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13250 #endif
13251 }
13252 return resultobj;
13253 fail:
13254 return NULL;
13255 }
13256
13257
13258 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13259 PyObject *obj;
13260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13261 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13262 return SWIG_Py_Void();
13263 }
13264
13265 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13266 return SWIG_Python_InitShadowInstance(args);
13267 }
13268
13269 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj = 0;
13271 wxFontEncoding arg1 ;
13272 wxNativeEncodingInfo *result = 0 ;
13273 int val1 ;
13274 int ecode1 = 0 ;
13275 PyObject * obj0 = 0 ;
13276 char * kwnames[] = {
13277 (char *) "encoding", NULL
13278 };
13279
13280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13281 ecode1 = SWIG_AsVal_int(obj0, &val1);
13282 if (!SWIG_IsOK(ecode1)) {
13283 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13284 }
13285 arg1 = static_cast< wxFontEncoding >(val1);
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13293 return resultobj;
13294 fail:
13295 return NULL;
13296 }
13297
13298
13299 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13300 PyObject *resultobj = 0;
13301 wxNativeEncodingInfo *arg1 = 0 ;
13302 bool result;
13303 void *argp1 = 0 ;
13304 int res1 = 0 ;
13305 PyObject * obj0 = 0 ;
13306 char * kwnames[] = {
13307 (char *) "info", NULL
13308 };
13309
13310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13311 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13312 if (!SWIG_IsOK(res1)) {
13313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13314 }
13315 if (!argp1) {
13316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13317 }
13318 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13322 wxPyEndAllowThreads(__tstate);
13323 if (PyErr_Occurred()) SWIG_fail;
13324 }
13325 {
13326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13327 }
13328 return resultobj;
13329 fail:
13330 return NULL;
13331 }
13332
13333
13334 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13335 PyObject *resultobj = 0;
13336 wxFontMapper *result = 0 ;
13337
13338 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13339 {
13340 PyThreadState* __tstate = wxPyBeginAllowThreads();
13341 result = (wxFontMapper *)new wxFontMapper();
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13353 PyObject *resultobj = 0;
13354 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13355 void *argp1 = 0 ;
13356 int res1 = 0 ;
13357 PyObject *swig_obj[1] ;
13358
13359 if (!args) SWIG_fail;
13360 swig_obj[0] = args;
13361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13362 if (!SWIG_IsOK(res1)) {
13363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13364 }
13365 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 delete arg1;
13369
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 resultobj = SWIG_Py_Void();
13374 return resultobj;
13375 fail:
13376 return NULL;
13377 }
13378
13379
13380 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13381 PyObject *resultobj = 0;
13382 wxFontMapper *result = 0 ;
13383
13384 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13385 {
13386 PyThreadState* __tstate = wxPyBeginAllowThreads();
13387 result = (wxFontMapper *)wxFontMapper::Get();
13388 wxPyEndAllowThreads(__tstate);
13389 if (PyErr_Occurred()) SWIG_fail;
13390 }
13391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13392 return resultobj;
13393 fail:
13394 return NULL;
13395 }
13396
13397
13398 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13399 PyObject *resultobj = 0;
13400 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13401 wxFontMapper *result = 0 ;
13402 void *argp1 = 0 ;
13403 int res1 = 0 ;
13404 PyObject * obj0 = 0 ;
13405 char * kwnames[] = {
13406 (char *) "mapper", NULL
13407 };
13408
13409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13411 if (!SWIG_IsOK(res1)) {
13412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13413 }
13414 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13415 {
13416 PyThreadState* __tstate = wxPyBeginAllowThreads();
13417 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13418 wxPyEndAllowThreads(__tstate);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 }
13421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13422 return resultobj;
13423 fail:
13424 return NULL;
13425 }
13426
13427
13428 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13429 PyObject *resultobj = 0;
13430 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13431 wxString *arg2 = 0 ;
13432 bool arg3 = (bool) true ;
13433 wxFontEncoding result;
13434 void *argp1 = 0 ;
13435 int res1 = 0 ;
13436 bool temp2 = false ;
13437 bool val3 ;
13438 int ecode3 = 0 ;
13439 PyObject * obj0 = 0 ;
13440 PyObject * obj1 = 0 ;
13441 PyObject * obj2 = 0 ;
13442 char * kwnames[] = {
13443 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13444 };
13445
13446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13448 if (!SWIG_IsOK(res1)) {
13449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13450 }
13451 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13452 {
13453 arg2 = wxString_in_helper(obj1);
13454 if (arg2 == NULL) SWIG_fail;
13455 temp2 = true;
13456 }
13457 if (obj2) {
13458 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13459 if (!SWIG_IsOK(ecode3)) {
13460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13461 }
13462 arg3 = static_cast< bool >(val3);
13463 }
13464 {
13465 PyThreadState* __tstate = wxPyBeginAllowThreads();
13466 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13467 wxPyEndAllowThreads(__tstate);
13468 if (PyErr_Occurred()) SWIG_fail;
13469 }
13470 resultobj = SWIG_From_int(static_cast< int >(result));
13471 {
13472 if (temp2)
13473 delete arg2;
13474 }
13475 return resultobj;
13476 fail:
13477 {
13478 if (temp2)
13479 delete arg2;
13480 }
13481 return NULL;
13482 }
13483
13484
13485 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13486 PyObject *resultobj = 0;
13487 size_t result;
13488
13489 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj = 0;
13505 size_t arg1 ;
13506 wxFontEncoding result;
13507 size_t val1 ;
13508 int ecode1 = 0 ;
13509 PyObject * obj0 = 0 ;
13510 char * kwnames[] = {
13511 (char *) "n", NULL
13512 };
13513
13514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13515 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13516 if (!SWIG_IsOK(ecode1)) {
13517 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13518 }
13519 arg1 = static_cast< size_t >(val1);
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 resultobj = SWIG_From_int(static_cast< int >(result));
13527 return resultobj;
13528 fail:
13529 return NULL;
13530 }
13531
13532
13533 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13534 PyObject *resultobj = 0;
13535 wxFontEncoding arg1 ;
13536 wxString result;
13537 int val1 ;
13538 int ecode1 = 0 ;
13539 PyObject * obj0 = 0 ;
13540 char * kwnames[] = {
13541 (char *) "encoding", NULL
13542 };
13543
13544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13545 ecode1 = SWIG_AsVal_int(obj0, &val1);
13546 if (!SWIG_IsOK(ecode1)) {
13547 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13548 }
13549 arg1 = static_cast< wxFontEncoding >(val1);
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 result = wxFontMapper::GetEncodingName(arg1);
13553 wxPyEndAllowThreads(__tstate);
13554 if (PyErr_Occurred()) SWIG_fail;
13555 }
13556 {
13557 #if wxUSE_UNICODE
13558 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13559 #else
13560 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13561 #endif
13562 }
13563 return resultobj;
13564 fail:
13565 return NULL;
13566 }
13567
13568
13569 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13570 PyObject *resultobj = 0;
13571 wxFontEncoding arg1 ;
13572 wxString result;
13573 int val1 ;
13574 int ecode1 = 0 ;
13575 PyObject * obj0 = 0 ;
13576 char * kwnames[] = {
13577 (char *) "encoding", NULL
13578 };
13579
13580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13581 ecode1 = SWIG_AsVal_int(obj0, &val1);
13582 if (!SWIG_IsOK(ecode1)) {
13583 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13584 }
13585 arg1 = static_cast< wxFontEncoding >(val1);
13586 {
13587 PyThreadState* __tstate = wxPyBeginAllowThreads();
13588 result = wxFontMapper::GetEncodingDescription(arg1);
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 {
13593 #if wxUSE_UNICODE
13594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13595 #else
13596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13597 #endif
13598 }
13599 return resultobj;
13600 fail:
13601 return NULL;
13602 }
13603
13604
13605 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13606 PyObject *resultobj = 0;
13607 wxString *arg1 = 0 ;
13608 wxFontEncoding result;
13609 bool temp1 = false ;
13610 PyObject * obj0 = 0 ;
13611 char * kwnames[] = {
13612 (char *) "name", NULL
13613 };
13614
13615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13616 {
13617 arg1 = wxString_in_helper(obj0);
13618 if (arg1 == NULL) SWIG_fail;
13619 temp1 = true;
13620 }
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 resultobj = SWIG_From_int(static_cast< int >(result));
13628 {
13629 if (temp1)
13630 delete arg1;
13631 }
13632 return resultobj;
13633 fail:
13634 {
13635 if (temp1)
13636 delete arg1;
13637 }
13638 return NULL;
13639 }
13640
13641
13642 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13643 PyObject *resultobj = 0;
13644 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13645 wxString *arg2 = 0 ;
13646 void *argp1 = 0 ;
13647 int res1 = 0 ;
13648 bool temp2 = false ;
13649 PyObject * obj0 = 0 ;
13650 PyObject * obj1 = 0 ;
13651 char * kwnames[] = {
13652 (char *) "self",(char *) "prefix", NULL
13653 };
13654
13655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13657 if (!SWIG_IsOK(res1)) {
13658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13659 }
13660 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13661 {
13662 arg2 = wxString_in_helper(obj1);
13663 if (arg2 == NULL) SWIG_fail;
13664 temp2 = true;
13665 }
13666 {
13667 PyThreadState* __tstate = wxPyBeginAllowThreads();
13668 (arg1)->SetConfigPath((wxString const &)*arg2);
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 resultobj = SWIG_Py_Void();
13673 {
13674 if (temp2)
13675 delete arg2;
13676 }
13677 return resultobj;
13678 fail:
13679 {
13680 if (temp2)
13681 delete arg2;
13682 }
13683 return NULL;
13684 }
13685
13686
13687 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13688 PyObject *resultobj = 0;
13689 wxString result;
13690
13691 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 result = wxFontMapper::GetDefaultConfigPath();
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 {
13699 #if wxUSE_UNICODE
13700 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13701 #else
13702 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13703 #endif
13704 }
13705 return resultobj;
13706 fail:
13707 return NULL;
13708 }
13709
13710
13711 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13712 PyObject *resultobj = 0;
13713 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13714 wxFontEncoding arg2 ;
13715 wxString const &arg3_defvalue = wxPyEmptyString ;
13716 wxString *arg3 = (wxString *) &arg3_defvalue ;
13717 bool arg4 = (bool) true ;
13718 PyObject *result = 0 ;
13719 void *argp1 = 0 ;
13720 int res1 = 0 ;
13721 int val2 ;
13722 int ecode2 = 0 ;
13723 bool temp3 = false ;
13724 bool val4 ;
13725 int ecode4 = 0 ;
13726 PyObject * obj0 = 0 ;
13727 PyObject * obj1 = 0 ;
13728 PyObject * obj2 = 0 ;
13729 PyObject * obj3 = 0 ;
13730 char * kwnames[] = {
13731 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13732 };
13733
13734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13736 if (!SWIG_IsOK(res1)) {
13737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13738 }
13739 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13740 ecode2 = SWIG_AsVal_int(obj1, &val2);
13741 if (!SWIG_IsOK(ecode2)) {
13742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13743 }
13744 arg2 = static_cast< wxFontEncoding >(val2);
13745 if (obj2) {
13746 {
13747 arg3 = wxString_in_helper(obj2);
13748 if (arg3 == NULL) SWIG_fail;
13749 temp3 = true;
13750 }
13751 }
13752 if (obj3) {
13753 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13754 if (!SWIG_IsOK(ecode4)) {
13755 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13756 }
13757 arg4 = static_cast< bool >(val4);
13758 }
13759 {
13760 PyThreadState* __tstate = wxPyBeginAllowThreads();
13761 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 resultobj = result;
13766 {
13767 if (temp3)
13768 delete arg3;
13769 }
13770 return resultobj;
13771 fail:
13772 {
13773 if (temp3)
13774 delete arg3;
13775 }
13776 return NULL;
13777 }
13778
13779
13780 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13781 PyObject *resultobj = 0;
13782 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13783 wxFontEncoding arg2 ;
13784 wxString const &arg3_defvalue = wxPyEmptyString ;
13785 wxString *arg3 = (wxString *) &arg3_defvalue ;
13786 bool result;
13787 void *argp1 = 0 ;
13788 int res1 = 0 ;
13789 int val2 ;
13790 int ecode2 = 0 ;
13791 bool temp3 = false ;
13792 PyObject * obj0 = 0 ;
13793 PyObject * obj1 = 0 ;
13794 PyObject * obj2 = 0 ;
13795 char * kwnames[] = {
13796 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13797 };
13798
13799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13801 if (!SWIG_IsOK(res1)) {
13802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13803 }
13804 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13805 ecode2 = SWIG_AsVal_int(obj1, &val2);
13806 if (!SWIG_IsOK(ecode2)) {
13807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13808 }
13809 arg2 = static_cast< wxFontEncoding >(val2);
13810 if (obj2) {
13811 {
13812 arg3 = wxString_in_helper(obj2);
13813 if (arg3 == NULL) SWIG_fail;
13814 temp3 = true;
13815 }
13816 }
13817 {
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 {
13824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13825 }
13826 {
13827 if (temp3)
13828 delete arg3;
13829 }
13830 return resultobj;
13831 fail:
13832 {
13833 if (temp3)
13834 delete arg3;
13835 }
13836 return NULL;
13837 }
13838
13839
13840 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13841 PyObject *resultobj = 0;
13842 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13843 wxWindow *arg2 = (wxWindow *) 0 ;
13844 void *argp1 = 0 ;
13845 int res1 = 0 ;
13846 void *argp2 = 0 ;
13847 int res2 = 0 ;
13848 PyObject * obj0 = 0 ;
13849 PyObject * obj1 = 0 ;
13850 char * kwnames[] = {
13851 (char *) "self",(char *) "parent", NULL
13852 };
13853
13854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13856 if (!SWIG_IsOK(res1)) {
13857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13858 }
13859 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13860 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13861 if (!SWIG_IsOK(res2)) {
13862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13863 }
13864 arg2 = reinterpret_cast< wxWindow * >(argp2);
13865 {
13866 PyThreadState* __tstate = wxPyBeginAllowThreads();
13867 (arg1)->SetDialogParent(arg2);
13868 wxPyEndAllowThreads(__tstate);
13869 if (PyErr_Occurred()) SWIG_fail;
13870 }
13871 resultobj = SWIG_Py_Void();
13872 return resultobj;
13873 fail:
13874 return NULL;
13875 }
13876
13877
13878 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13879 PyObject *resultobj = 0;
13880 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13881 wxString *arg2 = 0 ;
13882 void *argp1 = 0 ;
13883 int res1 = 0 ;
13884 bool temp2 = false ;
13885 PyObject * obj0 = 0 ;
13886 PyObject * obj1 = 0 ;
13887 char * kwnames[] = {
13888 (char *) "self",(char *) "title", NULL
13889 };
13890
13891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13893 if (!SWIG_IsOK(res1)) {
13894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13895 }
13896 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13897 {
13898 arg2 = wxString_in_helper(obj1);
13899 if (arg2 == NULL) SWIG_fail;
13900 temp2 = true;
13901 }
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 (arg1)->SetDialogTitle((wxString const &)*arg2);
13905 wxPyEndAllowThreads(__tstate);
13906 if (PyErr_Occurred()) SWIG_fail;
13907 }
13908 resultobj = SWIG_Py_Void();
13909 {
13910 if (temp2)
13911 delete arg2;
13912 }
13913 return resultobj;
13914 fail:
13915 {
13916 if (temp2)
13917 delete arg2;
13918 }
13919 return NULL;
13920 }
13921
13922
13923 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13924 PyObject *obj;
13925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13926 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13927 return SWIG_Py_Void();
13928 }
13929
13930 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13931 return SWIG_Python_InitShadowInstance(args);
13932 }
13933
13934 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13935 PyObject *resultobj = 0;
13936 int arg1 ;
13937 int arg2 ;
13938 int arg3 ;
13939 int arg4 ;
13940 bool arg5 = (bool) false ;
13941 wxString const &arg6_defvalue = wxPyEmptyString ;
13942 wxString *arg6 = (wxString *) &arg6_defvalue ;
13943 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13944 wxFont *result = 0 ;
13945 int val1 ;
13946 int ecode1 = 0 ;
13947 int val2 ;
13948 int ecode2 = 0 ;
13949 int val3 ;
13950 int ecode3 = 0 ;
13951 int val4 ;
13952 int ecode4 = 0 ;
13953 bool val5 ;
13954 int ecode5 = 0 ;
13955 bool temp6 = false ;
13956 int val7 ;
13957 int ecode7 = 0 ;
13958 PyObject * obj0 = 0 ;
13959 PyObject * obj1 = 0 ;
13960 PyObject * obj2 = 0 ;
13961 PyObject * obj3 = 0 ;
13962 PyObject * obj4 = 0 ;
13963 PyObject * obj5 = 0 ;
13964 PyObject * obj6 = 0 ;
13965 char * kwnames[] = {
13966 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13967 };
13968
13969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13970 ecode1 = SWIG_AsVal_int(obj0, &val1);
13971 if (!SWIG_IsOK(ecode1)) {
13972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13973 }
13974 arg1 = static_cast< int >(val1);
13975 ecode2 = SWIG_AsVal_int(obj1, &val2);
13976 if (!SWIG_IsOK(ecode2)) {
13977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13978 }
13979 arg2 = static_cast< int >(val2);
13980 ecode3 = SWIG_AsVal_int(obj2, &val3);
13981 if (!SWIG_IsOK(ecode3)) {
13982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13983 }
13984 arg3 = static_cast< int >(val3);
13985 ecode4 = SWIG_AsVal_int(obj3, &val4);
13986 if (!SWIG_IsOK(ecode4)) {
13987 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13988 }
13989 arg4 = static_cast< int >(val4);
13990 if (obj4) {
13991 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13992 if (!SWIG_IsOK(ecode5)) {
13993 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13994 }
13995 arg5 = static_cast< bool >(val5);
13996 }
13997 if (obj5) {
13998 {
13999 arg6 = wxString_in_helper(obj5);
14000 if (arg6 == NULL) SWIG_fail;
14001 temp6 = true;
14002 }
14003 }
14004 if (obj6) {
14005 ecode7 = SWIG_AsVal_int(obj6, &val7);
14006 if (!SWIG_IsOK(ecode7)) {
14007 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14008 }
14009 arg7 = static_cast< wxFontEncoding >(val7);
14010 }
14011 {
14012 if (!wxPyCheckForApp()) SWIG_fail;
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14019 {
14020 if (temp6)
14021 delete arg6;
14022 }
14023 return resultobj;
14024 fail:
14025 {
14026 if (temp6)
14027 delete arg6;
14028 }
14029 return NULL;
14030 }
14031
14032
14033 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14034 PyObject *resultobj = 0;
14035 wxFont *arg1 = (wxFont *) 0 ;
14036 void *argp1 = 0 ;
14037 int res1 = 0 ;
14038 PyObject *swig_obj[1] ;
14039
14040 if (!args) SWIG_fail;
14041 swig_obj[0] = args;
14042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14043 if (!SWIG_IsOK(res1)) {
14044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14045 }
14046 arg1 = reinterpret_cast< wxFont * >(argp1);
14047 {
14048 PyThreadState* __tstate = wxPyBeginAllowThreads();
14049 delete arg1;
14050
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 resultobj = SWIG_Py_Void();
14055 return resultobj;
14056 fail:
14057 return NULL;
14058 }
14059
14060
14061 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14062 PyObject *resultobj = 0;
14063 wxNativeFontInfo *arg1 = 0 ;
14064 wxFont *result = 0 ;
14065 void *argp1 = 0 ;
14066 int res1 = 0 ;
14067 PyObject * obj0 = 0 ;
14068 char * kwnames[] = {
14069 (char *) "info", NULL
14070 };
14071
14072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14073 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14074 if (!SWIG_IsOK(res1)) {
14075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14076 }
14077 if (!argp1) {
14078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14079 }
14080 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14081 {
14082 if (!wxPyCheckForApp()) SWIG_fail;
14083 PyThreadState* __tstate = wxPyBeginAllowThreads();
14084 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14085 wxPyEndAllowThreads(__tstate);
14086 if (PyErr_Occurred()) SWIG_fail;
14087 }
14088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14089 return resultobj;
14090 fail:
14091 return NULL;
14092 }
14093
14094
14095 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14096 PyObject *resultobj = 0;
14097 wxString *arg1 = 0 ;
14098 wxFont *result = 0 ;
14099 bool temp1 = false ;
14100 PyObject * obj0 = 0 ;
14101 char * kwnames[] = {
14102 (char *) "info", NULL
14103 };
14104
14105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14106 {
14107 arg1 = wxString_in_helper(obj0);
14108 if (arg1 == NULL) SWIG_fail;
14109 temp1 = true;
14110 }
14111 {
14112 if (!wxPyCheckForApp()) SWIG_fail;
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14119 {
14120 if (temp1)
14121 delete arg1;
14122 }
14123 return resultobj;
14124 fail:
14125 {
14126 if (temp1)
14127 delete arg1;
14128 }
14129 return NULL;
14130 }
14131
14132
14133 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14134 PyObject *resultobj = 0;
14135 int arg1 ;
14136 wxFontFamily arg2 ;
14137 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14138 wxString const &arg4_defvalue = wxPyEmptyString ;
14139 wxString *arg4 = (wxString *) &arg4_defvalue ;
14140 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14141 wxFont *result = 0 ;
14142 int val1 ;
14143 int ecode1 = 0 ;
14144 int val2 ;
14145 int ecode2 = 0 ;
14146 int val3 ;
14147 int ecode3 = 0 ;
14148 bool temp4 = false ;
14149 int val5 ;
14150 int ecode5 = 0 ;
14151 PyObject * obj0 = 0 ;
14152 PyObject * obj1 = 0 ;
14153 PyObject * obj2 = 0 ;
14154 PyObject * obj3 = 0 ;
14155 PyObject * obj4 = 0 ;
14156 char * kwnames[] = {
14157 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14158 };
14159
14160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14161 ecode1 = SWIG_AsVal_int(obj0, &val1);
14162 if (!SWIG_IsOK(ecode1)) {
14163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14164 }
14165 arg1 = static_cast< int >(val1);
14166 ecode2 = SWIG_AsVal_int(obj1, &val2);
14167 if (!SWIG_IsOK(ecode2)) {
14168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14169 }
14170 arg2 = static_cast< wxFontFamily >(val2);
14171 if (obj2) {
14172 ecode3 = SWIG_AsVal_int(obj2, &val3);
14173 if (!SWIG_IsOK(ecode3)) {
14174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14175 }
14176 arg3 = static_cast< int >(val3);
14177 }
14178 if (obj3) {
14179 {
14180 arg4 = wxString_in_helper(obj3);
14181 if (arg4 == NULL) SWIG_fail;
14182 temp4 = true;
14183 }
14184 }
14185 if (obj4) {
14186 ecode5 = SWIG_AsVal_int(obj4, &val5);
14187 if (!SWIG_IsOK(ecode5)) {
14188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14189 }
14190 arg5 = static_cast< wxFontEncoding >(val5);
14191 }
14192 {
14193 if (!wxPyCheckForApp()) SWIG_fail;
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14200 {
14201 if (temp4)
14202 delete arg4;
14203 }
14204 return resultobj;
14205 fail:
14206 {
14207 if (temp4)
14208 delete arg4;
14209 }
14210 return NULL;
14211 }
14212
14213
14214 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14215 PyObject *resultobj = 0;
14216 wxSize *arg1 = 0 ;
14217 int arg2 ;
14218 int arg3 ;
14219 int arg4 ;
14220 bool arg5 = (bool) false ;
14221 wxString const &arg6_defvalue = wxEmptyString ;
14222 wxString *arg6 = (wxString *) &arg6_defvalue ;
14223 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14224 wxFont *result = 0 ;
14225 wxSize temp1 ;
14226 int val2 ;
14227 int ecode2 = 0 ;
14228 int val3 ;
14229 int ecode3 = 0 ;
14230 int val4 ;
14231 int ecode4 = 0 ;
14232 bool val5 ;
14233 int ecode5 = 0 ;
14234 bool temp6 = false ;
14235 int val7 ;
14236 int ecode7 = 0 ;
14237 PyObject * obj0 = 0 ;
14238 PyObject * obj1 = 0 ;
14239 PyObject * obj2 = 0 ;
14240 PyObject * obj3 = 0 ;
14241 PyObject * obj4 = 0 ;
14242 PyObject * obj5 = 0 ;
14243 PyObject * obj6 = 0 ;
14244 char * kwnames[] = {
14245 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14246 };
14247
14248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14249 {
14250 arg1 = &temp1;
14251 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14252 }
14253 ecode2 = SWIG_AsVal_int(obj1, &val2);
14254 if (!SWIG_IsOK(ecode2)) {
14255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14256 }
14257 arg2 = static_cast< int >(val2);
14258 ecode3 = SWIG_AsVal_int(obj2, &val3);
14259 if (!SWIG_IsOK(ecode3)) {
14260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14261 }
14262 arg3 = static_cast< int >(val3);
14263 ecode4 = SWIG_AsVal_int(obj3, &val4);
14264 if (!SWIG_IsOK(ecode4)) {
14265 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14266 }
14267 arg4 = static_cast< int >(val4);
14268 if (obj4) {
14269 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14270 if (!SWIG_IsOK(ecode5)) {
14271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14272 }
14273 arg5 = static_cast< bool >(val5);
14274 }
14275 if (obj5) {
14276 {
14277 arg6 = wxString_in_helper(obj5);
14278 if (arg6 == NULL) SWIG_fail;
14279 temp6 = true;
14280 }
14281 }
14282 if (obj6) {
14283 ecode7 = SWIG_AsVal_int(obj6, &val7);
14284 if (!SWIG_IsOK(ecode7)) {
14285 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14286 }
14287 arg7 = static_cast< wxFontEncoding >(val7);
14288 }
14289 {
14290 if (!wxPyCheckForApp()) SWIG_fail;
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14297 {
14298 if (temp6)
14299 delete arg6;
14300 }
14301 return resultobj;
14302 fail:
14303 {
14304 if (temp6)
14305 delete arg6;
14306 }
14307 return NULL;
14308 }
14309
14310
14311 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14312 PyObject *resultobj = 0;
14313 wxSize *arg1 = 0 ;
14314 wxFontFamily arg2 ;
14315 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14316 wxString const &arg4_defvalue = wxEmptyString ;
14317 wxString *arg4 = (wxString *) &arg4_defvalue ;
14318 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14319 wxFont *result = 0 ;
14320 wxSize temp1 ;
14321 int val2 ;
14322 int ecode2 = 0 ;
14323 int val3 ;
14324 int ecode3 = 0 ;
14325 bool temp4 = false ;
14326 int val5 ;
14327 int ecode5 = 0 ;
14328 PyObject * obj0 = 0 ;
14329 PyObject * obj1 = 0 ;
14330 PyObject * obj2 = 0 ;
14331 PyObject * obj3 = 0 ;
14332 PyObject * obj4 = 0 ;
14333 char * kwnames[] = {
14334 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14335 };
14336
14337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14338 {
14339 arg1 = &temp1;
14340 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14341 }
14342 ecode2 = SWIG_AsVal_int(obj1, &val2);
14343 if (!SWIG_IsOK(ecode2)) {
14344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14345 }
14346 arg2 = static_cast< wxFontFamily >(val2);
14347 if (obj2) {
14348 ecode3 = SWIG_AsVal_int(obj2, &val3);
14349 if (!SWIG_IsOK(ecode3)) {
14350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14351 }
14352 arg3 = static_cast< int >(val3);
14353 }
14354 if (obj3) {
14355 {
14356 arg4 = wxString_in_helper(obj3);
14357 if (arg4 == NULL) SWIG_fail;
14358 temp4 = true;
14359 }
14360 }
14361 if (obj4) {
14362 ecode5 = SWIG_AsVal_int(obj4, &val5);
14363 if (!SWIG_IsOK(ecode5)) {
14364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14365 }
14366 arg5 = static_cast< wxFontEncoding >(val5);
14367 }
14368 {
14369 if (!wxPyCheckForApp()) SWIG_fail;
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14376 {
14377 if (temp4)
14378 delete arg4;
14379 }
14380 return resultobj;
14381 fail:
14382 {
14383 if (temp4)
14384 delete arg4;
14385 }
14386 return NULL;
14387 }
14388
14389
14390 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14391 PyObject *resultobj = 0;
14392 wxFont *arg1 = (wxFont *) 0 ;
14393 bool result;
14394 void *argp1 = 0 ;
14395 int res1 = 0 ;
14396 PyObject *swig_obj[1] ;
14397
14398 if (!args) SWIG_fail;
14399 swig_obj[0] = args;
14400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14401 if (!SWIG_IsOK(res1)) {
14402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
14403 }
14404 arg1 = reinterpret_cast< wxFont * >(argp1);
14405 {
14406 PyThreadState* __tstate = wxPyBeginAllowThreads();
14407 result = (bool)((wxFont const *)arg1)->Ok();
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 {
14412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14413 }
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj = 0;
14422 wxFont *arg1 = (wxFont *) 0 ;
14423 wxFont *arg2 = (wxFont *) 0 ;
14424 bool result;
14425 void *argp1 = 0 ;
14426 int res1 = 0 ;
14427 void *argp2 = 0 ;
14428 int res2 = 0 ;
14429 PyObject * obj0 = 0 ;
14430 PyObject * obj1 = 0 ;
14431 char * kwnames[] = {
14432 (char *) "self",(char *) "other", NULL
14433 };
14434
14435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14437 if (!SWIG_IsOK(res1)) {
14438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14439 }
14440 arg1 = reinterpret_cast< wxFont * >(argp1);
14441 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14442 if (!SWIG_IsOK(res2)) {
14443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14444 }
14445 arg2 = reinterpret_cast< wxFont * >(argp2);
14446 {
14447 PyThreadState* __tstate = wxPyBeginAllowThreads();
14448 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14449 wxPyEndAllowThreads(__tstate);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 }
14452 {
14453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14454 }
14455 return resultobj;
14456 fail:
14457 return NULL;
14458 }
14459
14460
14461 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14462 PyObject *resultobj = 0;
14463 wxFont *arg1 = (wxFont *) 0 ;
14464 wxFont *arg2 = (wxFont *) 0 ;
14465 bool result;
14466 void *argp1 = 0 ;
14467 int res1 = 0 ;
14468 void *argp2 = 0 ;
14469 int res2 = 0 ;
14470 PyObject * obj0 = 0 ;
14471 PyObject * obj1 = 0 ;
14472 char * kwnames[] = {
14473 (char *) "self",(char *) "other", NULL
14474 };
14475
14476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",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___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14480 }
14481 arg1 = reinterpret_cast< wxFont * >(argp1);
14482 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14483 if (!SWIG_IsOK(res2)) {
14484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14485 }
14486 arg2 = reinterpret_cast< wxFont * >(argp2);
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 {
14494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14495 }
14496 return resultobj;
14497 fail:
14498 return NULL;
14499 }
14500
14501
14502 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14503 PyObject *resultobj = 0;
14504 wxFont *arg1 = (wxFont *) 0 ;
14505 int result;
14506 void *argp1 = 0 ;
14507 int res1 = 0 ;
14508 PyObject *swig_obj[1] ;
14509
14510 if (!args) SWIG_fail;
14511 swig_obj[0] = args;
14512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14513 if (!SWIG_IsOK(res1)) {
14514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14515 }
14516 arg1 = reinterpret_cast< wxFont * >(argp1);
14517 {
14518 PyThreadState* __tstate = wxPyBeginAllowThreads();
14519 result = (int)((wxFont const *)arg1)->GetPointSize();
14520 wxPyEndAllowThreads(__tstate);
14521 if (PyErr_Occurred()) SWIG_fail;
14522 }
14523 resultobj = SWIG_From_int(static_cast< int >(result));
14524 return resultobj;
14525 fail:
14526 return NULL;
14527 }
14528
14529
14530 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14531 PyObject *resultobj = 0;
14532 wxFont *arg1 = (wxFont *) 0 ;
14533 wxSize result;
14534 void *argp1 = 0 ;
14535 int res1 = 0 ;
14536 PyObject *swig_obj[1] ;
14537
14538 if (!args) SWIG_fail;
14539 swig_obj[0] = args;
14540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14541 if (!SWIG_IsOK(res1)) {
14542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14543 }
14544 arg1 = reinterpret_cast< wxFont * >(argp1);
14545 {
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
14547 result = ((wxFont const *)arg1)->GetPixelSize();
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14552 return resultobj;
14553 fail:
14554 return NULL;
14555 }
14556
14557
14558 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14559 PyObject *resultobj = 0;
14560 wxFont *arg1 = (wxFont *) 0 ;
14561 bool result;
14562 void *argp1 = 0 ;
14563 int res1 = 0 ;
14564 PyObject *swig_obj[1] ;
14565
14566 if (!args) SWIG_fail;
14567 swig_obj[0] = args;
14568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14569 if (!SWIG_IsOK(res1)) {
14570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14571 }
14572 arg1 = reinterpret_cast< wxFont * >(argp1);
14573 {
14574 PyThreadState* __tstate = wxPyBeginAllowThreads();
14575 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14576 wxPyEndAllowThreads(__tstate);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 {
14580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14581 }
14582 return resultobj;
14583 fail:
14584 return NULL;
14585 }
14586
14587
14588 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14589 PyObject *resultobj = 0;
14590 wxFont *arg1 = (wxFont *) 0 ;
14591 int result;
14592 void *argp1 = 0 ;
14593 int res1 = 0 ;
14594 PyObject *swig_obj[1] ;
14595
14596 if (!args) SWIG_fail;
14597 swig_obj[0] = args;
14598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14599 if (!SWIG_IsOK(res1)) {
14600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14601 }
14602 arg1 = reinterpret_cast< wxFont * >(argp1);
14603 {
14604 PyThreadState* __tstate = wxPyBeginAllowThreads();
14605 result = (int)((wxFont const *)arg1)->GetFamily();
14606 wxPyEndAllowThreads(__tstate);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 }
14609 resultobj = SWIG_From_int(static_cast< int >(result));
14610 return resultobj;
14611 fail:
14612 return NULL;
14613 }
14614
14615
14616 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14617 PyObject *resultobj = 0;
14618 wxFont *arg1 = (wxFont *) 0 ;
14619 int result;
14620 void *argp1 = 0 ;
14621 int res1 = 0 ;
14622 PyObject *swig_obj[1] ;
14623
14624 if (!args) SWIG_fail;
14625 swig_obj[0] = args;
14626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14627 if (!SWIG_IsOK(res1)) {
14628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14629 }
14630 arg1 = reinterpret_cast< wxFont * >(argp1);
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 result = (int)((wxFont const *)arg1)->GetStyle();
14634 wxPyEndAllowThreads(__tstate);
14635 if (PyErr_Occurred()) SWIG_fail;
14636 }
14637 resultobj = SWIG_From_int(static_cast< int >(result));
14638 return resultobj;
14639 fail:
14640 return NULL;
14641 }
14642
14643
14644 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14645 PyObject *resultobj = 0;
14646 wxFont *arg1 = (wxFont *) 0 ;
14647 int result;
14648 void *argp1 = 0 ;
14649 int res1 = 0 ;
14650 PyObject *swig_obj[1] ;
14651
14652 if (!args) SWIG_fail;
14653 swig_obj[0] = args;
14654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14655 if (!SWIG_IsOK(res1)) {
14656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14657 }
14658 arg1 = reinterpret_cast< wxFont * >(argp1);
14659 {
14660 PyThreadState* __tstate = wxPyBeginAllowThreads();
14661 result = (int)((wxFont const *)arg1)->GetWeight();
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 resultobj = SWIG_From_int(static_cast< int >(result));
14666 return resultobj;
14667 fail:
14668 return NULL;
14669 }
14670
14671
14672 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14673 PyObject *resultobj = 0;
14674 wxFont *arg1 = (wxFont *) 0 ;
14675 bool result;
14676 void *argp1 = 0 ;
14677 int res1 = 0 ;
14678 PyObject *swig_obj[1] ;
14679
14680 if (!args) SWIG_fail;
14681 swig_obj[0] = args;
14682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14683 if (!SWIG_IsOK(res1)) {
14684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14685 }
14686 arg1 = reinterpret_cast< wxFont * >(argp1);
14687 {
14688 PyThreadState* __tstate = wxPyBeginAllowThreads();
14689 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14690 wxPyEndAllowThreads(__tstate);
14691 if (PyErr_Occurred()) SWIG_fail;
14692 }
14693 {
14694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14695 }
14696 return resultobj;
14697 fail:
14698 return NULL;
14699 }
14700
14701
14702 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14703 PyObject *resultobj = 0;
14704 wxFont *arg1 = (wxFont *) 0 ;
14705 wxString result;
14706 void *argp1 = 0 ;
14707 int res1 = 0 ;
14708 PyObject *swig_obj[1] ;
14709
14710 if (!args) SWIG_fail;
14711 swig_obj[0] = args;
14712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14713 if (!SWIG_IsOK(res1)) {
14714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14715 }
14716 arg1 = reinterpret_cast< wxFont * >(argp1);
14717 {
14718 PyThreadState* __tstate = wxPyBeginAllowThreads();
14719 result = ((wxFont const *)arg1)->GetFaceName();
14720 wxPyEndAllowThreads(__tstate);
14721 if (PyErr_Occurred()) SWIG_fail;
14722 }
14723 {
14724 #if wxUSE_UNICODE
14725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14726 #else
14727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14728 #endif
14729 }
14730 return resultobj;
14731 fail:
14732 return NULL;
14733 }
14734
14735
14736 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14737 PyObject *resultobj = 0;
14738 wxFont *arg1 = (wxFont *) 0 ;
14739 wxFontEncoding result;
14740 void *argp1 = 0 ;
14741 int res1 = 0 ;
14742 PyObject *swig_obj[1] ;
14743
14744 if (!args) SWIG_fail;
14745 swig_obj[0] = args;
14746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14747 if (!SWIG_IsOK(res1)) {
14748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14749 }
14750 arg1 = reinterpret_cast< wxFont * >(argp1);
14751 {
14752 PyThreadState* __tstate = wxPyBeginAllowThreads();
14753 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14754 wxPyEndAllowThreads(__tstate);
14755 if (PyErr_Occurred()) SWIG_fail;
14756 }
14757 resultobj = SWIG_From_int(static_cast< int >(result));
14758 return resultobj;
14759 fail:
14760 return NULL;
14761 }
14762
14763
14764 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14765 PyObject *resultobj = 0;
14766 wxFont *arg1 = (wxFont *) 0 ;
14767 wxNativeFontInfo *result = 0 ;
14768 void *argp1 = 0 ;
14769 int res1 = 0 ;
14770 PyObject *swig_obj[1] ;
14771
14772 if (!args) SWIG_fail;
14773 swig_obj[0] = args;
14774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14775 if (!SWIG_IsOK(res1)) {
14776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14777 }
14778 arg1 = reinterpret_cast< wxFont * >(argp1);
14779 {
14780 PyThreadState* __tstate = wxPyBeginAllowThreads();
14781 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14782 wxPyEndAllowThreads(__tstate);
14783 if (PyErr_Occurred()) SWIG_fail;
14784 }
14785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14786 return resultobj;
14787 fail:
14788 return NULL;
14789 }
14790
14791
14792 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14793 PyObject *resultobj = 0;
14794 wxFont *arg1 = (wxFont *) 0 ;
14795 bool result;
14796 void *argp1 = 0 ;
14797 int res1 = 0 ;
14798 PyObject *swig_obj[1] ;
14799
14800 if (!args) SWIG_fail;
14801 swig_obj[0] = args;
14802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14803 if (!SWIG_IsOK(res1)) {
14804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14805 }
14806 arg1 = reinterpret_cast< wxFont * >(argp1);
14807 {
14808 PyThreadState* __tstate = wxPyBeginAllowThreads();
14809 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14810 wxPyEndAllowThreads(__tstate);
14811 if (PyErr_Occurred()) SWIG_fail;
14812 }
14813 {
14814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14815 }
14816 return resultobj;
14817 fail:
14818 return NULL;
14819 }
14820
14821
14822 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14823 PyObject *resultobj = 0;
14824 wxFont *arg1 = (wxFont *) 0 ;
14825 wxString result;
14826 void *argp1 = 0 ;
14827 int res1 = 0 ;
14828 PyObject *swig_obj[1] ;
14829
14830 if (!args) SWIG_fail;
14831 swig_obj[0] = args;
14832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14833 if (!SWIG_IsOK(res1)) {
14834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14835 }
14836 arg1 = reinterpret_cast< wxFont * >(argp1);
14837 {
14838 PyThreadState* __tstate = wxPyBeginAllowThreads();
14839 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14840 wxPyEndAllowThreads(__tstate);
14841 if (PyErr_Occurred()) SWIG_fail;
14842 }
14843 {
14844 #if wxUSE_UNICODE
14845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14846 #else
14847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14848 #endif
14849 }
14850 return resultobj;
14851 fail:
14852 return NULL;
14853 }
14854
14855
14856 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14857 PyObject *resultobj = 0;
14858 wxFont *arg1 = (wxFont *) 0 ;
14859 wxString result;
14860 void *argp1 = 0 ;
14861 int res1 = 0 ;
14862 PyObject *swig_obj[1] ;
14863
14864 if (!args) SWIG_fail;
14865 swig_obj[0] = args;
14866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14867 if (!SWIG_IsOK(res1)) {
14868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14869 }
14870 arg1 = reinterpret_cast< wxFont * >(argp1);
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 {
14878 #if wxUSE_UNICODE
14879 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14880 #else
14881 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14882 #endif
14883 }
14884 return resultobj;
14885 fail:
14886 return NULL;
14887 }
14888
14889
14890 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj = 0;
14892 wxFont *arg1 = (wxFont *) 0 ;
14893 int arg2 ;
14894 void *argp1 = 0 ;
14895 int res1 = 0 ;
14896 int val2 ;
14897 int ecode2 = 0 ;
14898 PyObject * obj0 = 0 ;
14899 PyObject * obj1 = 0 ;
14900 char * kwnames[] = {
14901 (char *) "self",(char *) "pointSize", NULL
14902 };
14903
14904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14906 if (!SWIG_IsOK(res1)) {
14907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14908 }
14909 arg1 = reinterpret_cast< wxFont * >(argp1);
14910 ecode2 = SWIG_AsVal_int(obj1, &val2);
14911 if (!SWIG_IsOK(ecode2)) {
14912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14913 }
14914 arg2 = static_cast< int >(val2);
14915 {
14916 PyThreadState* __tstate = wxPyBeginAllowThreads();
14917 (arg1)->SetPointSize(arg2);
14918 wxPyEndAllowThreads(__tstate);
14919 if (PyErr_Occurred()) SWIG_fail;
14920 }
14921 resultobj = SWIG_Py_Void();
14922 return resultobj;
14923 fail:
14924 return NULL;
14925 }
14926
14927
14928 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14929 PyObject *resultobj = 0;
14930 wxFont *arg1 = (wxFont *) 0 ;
14931 wxSize *arg2 = 0 ;
14932 void *argp1 = 0 ;
14933 int res1 = 0 ;
14934 wxSize temp2 ;
14935 PyObject * obj0 = 0 ;
14936 PyObject * obj1 = 0 ;
14937 char * kwnames[] = {
14938 (char *) "self",(char *) "pixelSize", NULL
14939 };
14940
14941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14943 if (!SWIG_IsOK(res1)) {
14944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14945 }
14946 arg1 = reinterpret_cast< wxFont * >(argp1);
14947 {
14948 arg2 = &temp2;
14949 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14950 }
14951 {
14952 PyThreadState* __tstate = wxPyBeginAllowThreads();
14953 (arg1)->SetPixelSize((wxSize const &)*arg2);
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 resultobj = SWIG_Py_Void();
14958 return resultobj;
14959 fail:
14960 return NULL;
14961 }
14962
14963
14964 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14965 PyObject *resultobj = 0;
14966 wxFont *arg1 = (wxFont *) 0 ;
14967 int arg2 ;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 int val2 ;
14971 int ecode2 = 0 ;
14972 PyObject * obj0 = 0 ;
14973 PyObject * obj1 = 0 ;
14974 char * kwnames[] = {
14975 (char *) "self",(char *) "family", NULL
14976 };
14977
14978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14980 if (!SWIG_IsOK(res1)) {
14981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14982 }
14983 arg1 = reinterpret_cast< wxFont * >(argp1);
14984 ecode2 = SWIG_AsVal_int(obj1, &val2);
14985 if (!SWIG_IsOK(ecode2)) {
14986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14987 }
14988 arg2 = static_cast< int >(val2);
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 (arg1)->SetFamily(arg2);
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 resultobj = SWIG_Py_Void();
14996 return resultobj;
14997 fail:
14998 return NULL;
14999 }
15000
15001
15002 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj = 0;
15004 wxFont *arg1 = (wxFont *) 0 ;
15005 int arg2 ;
15006 void *argp1 = 0 ;
15007 int res1 = 0 ;
15008 int val2 ;
15009 int ecode2 = 0 ;
15010 PyObject * obj0 = 0 ;
15011 PyObject * obj1 = 0 ;
15012 char * kwnames[] = {
15013 (char *) "self",(char *) "style", NULL
15014 };
15015
15016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15018 if (!SWIG_IsOK(res1)) {
15019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15020 }
15021 arg1 = reinterpret_cast< wxFont * >(argp1);
15022 ecode2 = SWIG_AsVal_int(obj1, &val2);
15023 if (!SWIG_IsOK(ecode2)) {
15024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15025 }
15026 arg2 = static_cast< int >(val2);
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 (arg1)->SetStyle(arg2);
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 resultobj = SWIG_Py_Void();
15034 return resultobj;
15035 fail:
15036 return NULL;
15037 }
15038
15039
15040 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15041 PyObject *resultobj = 0;
15042 wxFont *arg1 = (wxFont *) 0 ;
15043 int arg2 ;
15044 void *argp1 = 0 ;
15045 int res1 = 0 ;
15046 int val2 ;
15047 int ecode2 = 0 ;
15048 PyObject * obj0 = 0 ;
15049 PyObject * obj1 = 0 ;
15050 char * kwnames[] = {
15051 (char *) "self",(char *) "weight", NULL
15052 };
15053
15054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15056 if (!SWIG_IsOK(res1)) {
15057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15058 }
15059 arg1 = reinterpret_cast< wxFont * >(argp1);
15060 ecode2 = SWIG_AsVal_int(obj1, &val2);
15061 if (!SWIG_IsOK(ecode2)) {
15062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15063 }
15064 arg2 = static_cast< int >(val2);
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 (arg1)->SetWeight(arg2);
15068 wxPyEndAllowThreads(__tstate);
15069 if (PyErr_Occurred()) SWIG_fail;
15070 }
15071 resultobj = SWIG_Py_Void();
15072 return resultobj;
15073 fail:
15074 return NULL;
15075 }
15076
15077
15078 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15079 PyObject *resultobj = 0;
15080 wxFont *arg1 = (wxFont *) 0 ;
15081 wxString *arg2 = 0 ;
15082 bool result;
15083 void *argp1 = 0 ;
15084 int res1 = 0 ;
15085 bool temp2 = false ;
15086 PyObject * obj0 = 0 ;
15087 PyObject * obj1 = 0 ;
15088 char * kwnames[] = {
15089 (char *) "self",(char *) "faceName", NULL
15090 };
15091
15092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15094 if (!SWIG_IsOK(res1)) {
15095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15096 }
15097 arg1 = reinterpret_cast< wxFont * >(argp1);
15098 {
15099 arg2 = wxString_in_helper(obj1);
15100 if (arg2 == NULL) SWIG_fail;
15101 temp2 = true;
15102 }
15103 {
15104 PyThreadState* __tstate = wxPyBeginAllowThreads();
15105 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15106 wxPyEndAllowThreads(__tstate);
15107 if (PyErr_Occurred()) SWIG_fail;
15108 }
15109 {
15110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15111 }
15112 {
15113 if (temp2)
15114 delete arg2;
15115 }
15116 return resultobj;
15117 fail:
15118 {
15119 if (temp2)
15120 delete arg2;
15121 }
15122 return NULL;
15123 }
15124
15125
15126 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15127 PyObject *resultobj = 0;
15128 wxFont *arg1 = (wxFont *) 0 ;
15129 bool arg2 ;
15130 void *argp1 = 0 ;
15131 int res1 = 0 ;
15132 bool val2 ;
15133 int ecode2 = 0 ;
15134 PyObject * obj0 = 0 ;
15135 PyObject * obj1 = 0 ;
15136 char * kwnames[] = {
15137 (char *) "self",(char *) "underlined", NULL
15138 };
15139
15140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15142 if (!SWIG_IsOK(res1)) {
15143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15144 }
15145 arg1 = reinterpret_cast< wxFont * >(argp1);
15146 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15147 if (!SWIG_IsOK(ecode2)) {
15148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15149 }
15150 arg2 = static_cast< bool >(val2);
15151 {
15152 PyThreadState* __tstate = wxPyBeginAllowThreads();
15153 (arg1)->SetUnderlined(arg2);
15154 wxPyEndAllowThreads(__tstate);
15155 if (PyErr_Occurred()) SWIG_fail;
15156 }
15157 resultobj = SWIG_Py_Void();
15158 return resultobj;
15159 fail:
15160 return NULL;
15161 }
15162
15163
15164 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15165 PyObject *resultobj = 0;
15166 wxFont *arg1 = (wxFont *) 0 ;
15167 wxFontEncoding arg2 ;
15168 void *argp1 = 0 ;
15169 int res1 = 0 ;
15170 int val2 ;
15171 int ecode2 = 0 ;
15172 PyObject * obj0 = 0 ;
15173 PyObject * obj1 = 0 ;
15174 char * kwnames[] = {
15175 (char *) "self",(char *) "encoding", NULL
15176 };
15177
15178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15180 if (!SWIG_IsOK(res1)) {
15181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15182 }
15183 arg1 = reinterpret_cast< wxFont * >(argp1);
15184 ecode2 = SWIG_AsVal_int(obj1, &val2);
15185 if (!SWIG_IsOK(ecode2)) {
15186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15187 }
15188 arg2 = static_cast< wxFontEncoding >(val2);
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 (arg1)->SetEncoding(arg2);
15192 wxPyEndAllowThreads(__tstate);
15193 if (PyErr_Occurred()) SWIG_fail;
15194 }
15195 resultobj = SWIG_Py_Void();
15196 return resultobj;
15197 fail:
15198 return NULL;
15199 }
15200
15201
15202 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15203 PyObject *resultobj = 0;
15204 wxFont *arg1 = (wxFont *) 0 ;
15205 wxNativeFontInfo *arg2 = 0 ;
15206 void *argp1 = 0 ;
15207 int res1 = 0 ;
15208 void *argp2 = 0 ;
15209 int res2 = 0 ;
15210 PyObject * obj0 = 0 ;
15211 PyObject * obj1 = 0 ;
15212 char * kwnames[] = {
15213 (char *) "self",(char *) "info", NULL
15214 };
15215
15216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15218 if (!SWIG_IsOK(res1)) {
15219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15220 }
15221 arg1 = reinterpret_cast< wxFont * >(argp1);
15222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15223 if (!SWIG_IsOK(res2)) {
15224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15225 }
15226 if (!argp2) {
15227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15228 }
15229 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 resultobj = SWIG_Py_Void();
15237 return resultobj;
15238 fail:
15239 return NULL;
15240 }
15241
15242
15243 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15244 PyObject *resultobj = 0;
15245 wxFont *arg1 = (wxFont *) 0 ;
15246 wxString *arg2 = 0 ;
15247 bool result;
15248 void *argp1 = 0 ;
15249 int res1 = 0 ;
15250 bool temp2 = false ;
15251 PyObject * obj0 = 0 ;
15252 PyObject * obj1 = 0 ;
15253 char * kwnames[] = {
15254 (char *) "self",(char *) "info", NULL
15255 };
15256
15257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15259 if (!SWIG_IsOK(res1)) {
15260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15261 }
15262 arg1 = reinterpret_cast< wxFont * >(argp1);
15263 {
15264 arg2 = wxString_in_helper(obj1);
15265 if (arg2 == NULL) SWIG_fail;
15266 temp2 = true;
15267 }
15268 {
15269 PyThreadState* __tstate = wxPyBeginAllowThreads();
15270 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15271 wxPyEndAllowThreads(__tstate);
15272 if (PyErr_Occurred()) SWIG_fail;
15273 }
15274 {
15275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15276 }
15277 {
15278 if (temp2)
15279 delete arg2;
15280 }
15281 return resultobj;
15282 fail:
15283 {
15284 if (temp2)
15285 delete arg2;
15286 }
15287 return NULL;
15288 }
15289
15290
15291 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15292 PyObject *resultobj = 0;
15293 wxFont *arg1 = (wxFont *) 0 ;
15294 wxString *arg2 = 0 ;
15295 bool result;
15296 void *argp1 = 0 ;
15297 int res1 = 0 ;
15298 bool temp2 = false ;
15299 PyObject * obj0 = 0 ;
15300 PyObject * obj1 = 0 ;
15301 char * kwnames[] = {
15302 (char *) "self",(char *) "info", NULL
15303 };
15304
15305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15307 if (!SWIG_IsOK(res1)) {
15308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15309 }
15310 arg1 = reinterpret_cast< wxFont * >(argp1);
15311 {
15312 arg2 = wxString_in_helper(obj1);
15313 if (arg2 == NULL) SWIG_fail;
15314 temp2 = true;
15315 }
15316 {
15317 PyThreadState* __tstate = wxPyBeginAllowThreads();
15318 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15319 wxPyEndAllowThreads(__tstate);
15320 if (PyErr_Occurred()) SWIG_fail;
15321 }
15322 {
15323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15324 }
15325 {
15326 if (temp2)
15327 delete arg2;
15328 }
15329 return resultobj;
15330 fail:
15331 {
15332 if (temp2)
15333 delete arg2;
15334 }
15335 return NULL;
15336 }
15337
15338
15339 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15340 PyObject *resultobj = 0;
15341 wxFont *arg1 = (wxFont *) 0 ;
15342 wxString result;
15343 void *argp1 = 0 ;
15344 int res1 = 0 ;
15345 PyObject *swig_obj[1] ;
15346
15347 if (!args) SWIG_fail;
15348 swig_obj[0] = args;
15349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15350 if (!SWIG_IsOK(res1)) {
15351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15352 }
15353 arg1 = reinterpret_cast< wxFont * >(argp1);
15354 {
15355 PyThreadState* __tstate = wxPyBeginAllowThreads();
15356 result = ((wxFont const *)arg1)->GetFamilyString();
15357 wxPyEndAllowThreads(__tstate);
15358 if (PyErr_Occurred()) SWIG_fail;
15359 }
15360 {
15361 #if wxUSE_UNICODE
15362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15363 #else
15364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15365 #endif
15366 }
15367 return resultobj;
15368 fail:
15369 return NULL;
15370 }
15371
15372
15373 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15374 PyObject *resultobj = 0;
15375 wxFont *arg1 = (wxFont *) 0 ;
15376 wxString result;
15377 void *argp1 = 0 ;
15378 int res1 = 0 ;
15379 PyObject *swig_obj[1] ;
15380
15381 if (!args) SWIG_fail;
15382 swig_obj[0] = args;
15383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15384 if (!SWIG_IsOK(res1)) {
15385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15386 }
15387 arg1 = reinterpret_cast< wxFont * >(argp1);
15388 {
15389 PyThreadState* __tstate = wxPyBeginAllowThreads();
15390 result = ((wxFont const *)arg1)->GetStyleString();
15391 wxPyEndAllowThreads(__tstate);
15392 if (PyErr_Occurred()) SWIG_fail;
15393 }
15394 {
15395 #if wxUSE_UNICODE
15396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15397 #else
15398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15399 #endif
15400 }
15401 return resultobj;
15402 fail:
15403 return NULL;
15404 }
15405
15406
15407 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15408 PyObject *resultobj = 0;
15409 wxFont *arg1 = (wxFont *) 0 ;
15410 wxString result;
15411 void *argp1 = 0 ;
15412 int res1 = 0 ;
15413 PyObject *swig_obj[1] ;
15414
15415 if (!args) SWIG_fail;
15416 swig_obj[0] = args;
15417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15418 if (!SWIG_IsOK(res1)) {
15419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15420 }
15421 arg1 = reinterpret_cast< wxFont * >(argp1);
15422 {
15423 PyThreadState* __tstate = wxPyBeginAllowThreads();
15424 result = ((wxFont const *)arg1)->GetWeightString();
15425 wxPyEndAllowThreads(__tstate);
15426 if (PyErr_Occurred()) SWIG_fail;
15427 }
15428 {
15429 #if wxUSE_UNICODE
15430 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15431 #else
15432 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15433 #endif
15434 }
15435 return resultobj;
15436 fail:
15437 return NULL;
15438 }
15439
15440
15441 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15442 PyObject *resultobj = 0;
15443 wxFont *arg1 = (wxFont *) 0 ;
15444 bool arg2 = (bool) true ;
15445 void *argp1 = 0 ;
15446 int res1 = 0 ;
15447 bool val2 ;
15448 int ecode2 = 0 ;
15449 PyObject * obj0 = 0 ;
15450 PyObject * obj1 = 0 ;
15451 char * kwnames[] = {
15452 (char *) "self",(char *) "no", NULL
15453 };
15454
15455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15457 if (!SWIG_IsOK(res1)) {
15458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15459 }
15460 arg1 = reinterpret_cast< wxFont * >(argp1);
15461 if (obj1) {
15462 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15463 if (!SWIG_IsOK(ecode2)) {
15464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15465 }
15466 arg2 = static_cast< bool >(val2);
15467 }
15468 {
15469 PyThreadState* __tstate = wxPyBeginAllowThreads();
15470 (arg1)->SetNoAntiAliasing(arg2);
15471 wxPyEndAllowThreads(__tstate);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 }
15474 resultobj = SWIG_Py_Void();
15475 return resultobj;
15476 fail:
15477 return NULL;
15478 }
15479
15480
15481 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15482 PyObject *resultobj = 0;
15483 wxFont *arg1 = (wxFont *) 0 ;
15484 bool result;
15485 void *argp1 = 0 ;
15486 int res1 = 0 ;
15487 PyObject *swig_obj[1] ;
15488
15489 if (!args) SWIG_fail;
15490 swig_obj[0] = args;
15491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15492 if (!SWIG_IsOK(res1)) {
15493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15494 }
15495 arg1 = reinterpret_cast< wxFont * >(argp1);
15496 {
15497 PyThreadState* __tstate = wxPyBeginAllowThreads();
15498 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15499 wxPyEndAllowThreads(__tstate);
15500 if (PyErr_Occurred()) SWIG_fail;
15501 }
15502 {
15503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15504 }
15505 return resultobj;
15506 fail:
15507 return NULL;
15508 }
15509
15510
15511 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15512 PyObject *resultobj = 0;
15513 wxFontEncoding result;
15514
15515 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15516 {
15517 if (!wxPyCheckForApp()) SWIG_fail;
15518 PyThreadState* __tstate = wxPyBeginAllowThreads();
15519 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15520 wxPyEndAllowThreads(__tstate);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 resultobj = SWIG_From_int(static_cast< int >(result));
15524 return resultobj;
15525 fail:
15526 return NULL;
15527 }
15528
15529
15530 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15531 PyObject *resultobj = 0;
15532 wxFontEncoding arg1 ;
15533 int val1 ;
15534 int ecode1 = 0 ;
15535 PyObject * obj0 = 0 ;
15536 char * kwnames[] = {
15537 (char *) "encoding", NULL
15538 };
15539
15540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15541 ecode1 = SWIG_AsVal_int(obj0, &val1);
15542 if (!SWIG_IsOK(ecode1)) {
15543 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15544 }
15545 arg1 = static_cast< wxFontEncoding >(val1);
15546 {
15547 if (!wxPyCheckForApp()) SWIG_fail;
15548 PyThreadState* __tstate = wxPyBeginAllowThreads();
15549 wxFont::SetDefaultEncoding(arg1);
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 resultobj = SWIG_Py_Void();
15554 return resultobj;
15555 fail:
15556 return NULL;
15557 }
15558
15559
15560 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15561 PyObject *obj;
15562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15563 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15564 return SWIG_Py_Void();
15565 }
15566
15567 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15568 return SWIG_Python_InitShadowInstance(args);
15569 }
15570
15571 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15572 PyObject *resultobj = 0;
15573 wxPyFontEnumerator *result = 0 ;
15574
15575 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15576 {
15577 if (!wxPyCheckForApp()) SWIG_fail;
15578 PyThreadState* __tstate = wxPyBeginAllowThreads();
15579 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15580 wxPyEndAllowThreads(__tstate);
15581 if (PyErr_Occurred()) SWIG_fail;
15582 }
15583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15584 return resultobj;
15585 fail:
15586 return NULL;
15587 }
15588
15589
15590 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15591 PyObject *resultobj = 0;
15592 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15593 void *argp1 = 0 ;
15594 int res1 = 0 ;
15595 PyObject *swig_obj[1] ;
15596
15597 if (!args) SWIG_fail;
15598 swig_obj[0] = args;
15599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15600 if (!SWIG_IsOK(res1)) {
15601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15602 }
15603 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
15606 delete arg1;
15607
15608 wxPyEndAllowThreads(__tstate);
15609 if (PyErr_Occurred()) SWIG_fail;
15610 }
15611 resultobj = SWIG_Py_Void();
15612 return resultobj;
15613 fail:
15614 return NULL;
15615 }
15616
15617
15618 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15619 PyObject *resultobj = 0;
15620 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15621 PyObject *arg2 = (PyObject *) 0 ;
15622 PyObject *arg3 = (PyObject *) 0 ;
15623 bool arg4 ;
15624 void *argp1 = 0 ;
15625 int res1 = 0 ;
15626 bool val4 ;
15627 int ecode4 = 0 ;
15628 PyObject * obj0 = 0 ;
15629 PyObject * obj1 = 0 ;
15630 PyObject * obj2 = 0 ;
15631 PyObject * obj3 = 0 ;
15632 char * kwnames[] = {
15633 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15634 };
15635
15636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15638 if (!SWIG_IsOK(res1)) {
15639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15640 }
15641 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15642 arg2 = obj1;
15643 arg3 = obj2;
15644 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15645 if (!SWIG_IsOK(ecode4)) {
15646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15647 }
15648 arg4 = static_cast< bool >(val4);
15649 {
15650 PyThreadState* __tstate = wxPyBeginAllowThreads();
15651 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15652 wxPyEndAllowThreads(__tstate);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
15655 resultobj = SWIG_Py_Void();
15656 return resultobj;
15657 fail:
15658 return NULL;
15659 }
15660
15661
15662 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15663 PyObject *resultobj = 0;
15664 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15665 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15666 bool arg3 = (bool) false ;
15667 bool result;
15668 void *argp1 = 0 ;
15669 int res1 = 0 ;
15670 int val2 ;
15671 int ecode2 = 0 ;
15672 bool val3 ;
15673 int ecode3 = 0 ;
15674 PyObject * obj0 = 0 ;
15675 PyObject * obj1 = 0 ;
15676 PyObject * obj2 = 0 ;
15677 char * kwnames[] = {
15678 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15679 };
15680
15681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15683 if (!SWIG_IsOK(res1)) {
15684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15685 }
15686 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15687 if (obj1) {
15688 ecode2 = SWIG_AsVal_int(obj1, &val2);
15689 if (!SWIG_IsOK(ecode2)) {
15690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15691 }
15692 arg2 = static_cast< wxFontEncoding >(val2);
15693 }
15694 if (obj2) {
15695 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15696 if (!SWIG_IsOK(ecode3)) {
15697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15698 }
15699 arg3 = static_cast< bool >(val3);
15700 }
15701 {
15702 PyThreadState* __tstate = wxPyBeginAllowThreads();
15703 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15704 wxPyEndAllowThreads(__tstate);
15705 if (PyErr_Occurred()) SWIG_fail;
15706 }
15707 {
15708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15709 }
15710 return resultobj;
15711 fail:
15712 return NULL;
15713 }
15714
15715
15716 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15717 PyObject *resultobj = 0;
15718 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15719 wxString const &arg2_defvalue = wxPyEmptyString ;
15720 wxString *arg2 = (wxString *) &arg2_defvalue ;
15721 bool result;
15722 void *argp1 = 0 ;
15723 int res1 = 0 ;
15724 bool temp2 = false ;
15725 PyObject * obj0 = 0 ;
15726 PyObject * obj1 = 0 ;
15727 char * kwnames[] = {
15728 (char *) "self",(char *) "facename", NULL
15729 };
15730
15731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15733 if (!SWIG_IsOK(res1)) {
15734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15735 }
15736 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15737 if (obj1) {
15738 {
15739 arg2 = wxString_in_helper(obj1);
15740 if (arg2 == NULL) SWIG_fail;
15741 temp2 = true;
15742 }
15743 }
15744 {
15745 PyThreadState* __tstate = wxPyBeginAllowThreads();
15746 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15747 wxPyEndAllowThreads(__tstate);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 {
15751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15752 }
15753 {
15754 if (temp2)
15755 delete arg2;
15756 }
15757 return resultobj;
15758 fail:
15759 {
15760 if (temp2)
15761 delete arg2;
15762 }
15763 return NULL;
15764 }
15765
15766
15767 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15768 PyObject *resultobj = 0;
15769 PyObject *result = 0 ;
15770
15771 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
15774 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15775 wxPyEndAllowThreads(__tstate);
15776 if (PyErr_Occurred()) SWIG_fail;
15777 }
15778 resultobj = result;
15779 return resultobj;
15780 fail:
15781 return NULL;
15782 }
15783
15784
15785 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15786 PyObject *resultobj = 0;
15787 PyObject *result = 0 ;
15788
15789 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15790 {
15791 PyThreadState* __tstate = wxPyBeginAllowThreads();
15792 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 resultobj = result;
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15804 PyObject *resultobj = 0;
15805 wxString *arg1 = 0 ;
15806 bool result;
15807 bool temp1 = false ;
15808 PyObject * obj0 = 0 ;
15809 char * kwnames[] = {
15810 (char *) "str", NULL
15811 };
15812
15813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15814 {
15815 arg1 = wxString_in_helper(obj0);
15816 if (arg1 == NULL) SWIG_fail;
15817 temp1 = true;
15818 }
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 {
15826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15827 }
15828 {
15829 if (temp1)
15830 delete arg1;
15831 }
15832 return resultobj;
15833 fail:
15834 {
15835 if (temp1)
15836 delete arg1;
15837 }
15838 return NULL;
15839 }
15840
15841
15842 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15843 PyObject *obj;
15844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15845 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15846 return SWIG_Py_Void();
15847 }
15848
15849 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15850 return SWIG_Python_InitShadowInstance(args);
15851 }
15852
15853 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15854 PyObject *resultobj = 0;
15855 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15856 int arg2 ;
15857 void *argp1 = 0 ;
15858 int res1 = 0 ;
15859 int val2 ;
15860 int ecode2 = 0 ;
15861 PyObject *swig_obj[2] ;
15862
15863 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15865 if (!SWIG_IsOK(res1)) {
15866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15867 }
15868 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15869 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15870 if (!SWIG_IsOK(ecode2)) {
15871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15872 }
15873 arg2 = static_cast< int >(val2);
15874 if (arg1) (arg1)->Language = arg2;
15875
15876 resultobj = SWIG_Py_Void();
15877 return resultobj;
15878 fail:
15879 return NULL;
15880 }
15881
15882
15883 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15884 PyObject *resultobj = 0;
15885 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15886 int result;
15887 void *argp1 = 0 ;
15888 int res1 = 0 ;
15889 PyObject *swig_obj[1] ;
15890
15891 if (!args) SWIG_fail;
15892 swig_obj[0] = args;
15893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15894 if (!SWIG_IsOK(res1)) {
15895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15896 }
15897 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15898 result = (int) ((arg1)->Language);
15899 resultobj = SWIG_From_int(static_cast< int >(result));
15900 return resultobj;
15901 fail:
15902 return NULL;
15903 }
15904
15905
15906 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15907 PyObject *resultobj = 0;
15908 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15909 wxString *arg2 = (wxString *) 0 ;
15910 void *argp1 = 0 ;
15911 int res1 = 0 ;
15912 bool temp2 = false ;
15913 PyObject *swig_obj[2] ;
15914
15915 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15917 if (!SWIG_IsOK(res1)) {
15918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15919 }
15920 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15921 {
15922 arg2 = wxString_in_helper(swig_obj[1]);
15923 if (arg2 == NULL) SWIG_fail;
15924 temp2 = true;
15925 }
15926 if (arg1) (arg1)->CanonicalName = *arg2;
15927
15928 resultobj = SWIG_Py_Void();
15929 {
15930 if (temp2)
15931 delete arg2;
15932 }
15933 return resultobj;
15934 fail:
15935 {
15936 if (temp2)
15937 delete arg2;
15938 }
15939 return NULL;
15940 }
15941
15942
15943 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15944 PyObject *resultobj = 0;
15945 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15946 wxString *result = 0 ;
15947 void *argp1 = 0 ;
15948 int res1 = 0 ;
15949 PyObject *swig_obj[1] ;
15950
15951 if (!args) SWIG_fail;
15952 swig_obj[0] = args;
15953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15954 if (!SWIG_IsOK(res1)) {
15955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15956 }
15957 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15958 result = (wxString *)& ((arg1)->CanonicalName);
15959 {
15960 #if wxUSE_UNICODE
15961 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15962 #else
15963 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15964 #endif
15965 }
15966 return resultobj;
15967 fail:
15968 return NULL;
15969 }
15970
15971
15972 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15973 PyObject *resultobj = 0;
15974 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15975 wxString *arg2 = (wxString *) 0 ;
15976 void *argp1 = 0 ;
15977 int res1 = 0 ;
15978 bool temp2 = false ;
15979 PyObject *swig_obj[2] ;
15980
15981 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15983 if (!SWIG_IsOK(res1)) {
15984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15985 }
15986 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15987 {
15988 arg2 = wxString_in_helper(swig_obj[1]);
15989 if (arg2 == NULL) SWIG_fail;
15990 temp2 = true;
15991 }
15992 if (arg1) (arg1)->Description = *arg2;
15993
15994 resultobj = SWIG_Py_Void();
15995 {
15996 if (temp2)
15997 delete arg2;
15998 }
15999 return resultobj;
16000 fail:
16001 {
16002 if (temp2)
16003 delete arg2;
16004 }
16005 return NULL;
16006 }
16007
16008
16009 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16010 PyObject *resultobj = 0;
16011 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16012 wxString *result = 0 ;
16013 void *argp1 = 0 ;
16014 int res1 = 0 ;
16015 PyObject *swig_obj[1] ;
16016
16017 if (!args) SWIG_fail;
16018 swig_obj[0] = args;
16019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16020 if (!SWIG_IsOK(res1)) {
16021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16022 }
16023 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16024 result = (wxString *)& ((arg1)->Description);
16025 {
16026 #if wxUSE_UNICODE
16027 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16028 #else
16029 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16030 #endif
16031 }
16032 return resultobj;
16033 fail:
16034 return NULL;
16035 }
16036
16037
16038 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16039 PyObject *obj;
16040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16041 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16042 return SWIG_Py_Void();
16043 }
16044
16045 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16046 PyObject *resultobj = 0;
16047 int arg1 = (int) -1 ;
16048 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16049 wxLocale *result = 0 ;
16050 int val1 ;
16051 int ecode1 = 0 ;
16052 int val2 ;
16053 int ecode2 = 0 ;
16054 PyObject * obj0 = 0 ;
16055 PyObject * obj1 = 0 ;
16056 char * kwnames[] = {
16057 (char *) "language",(char *) "flags", NULL
16058 };
16059
16060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16061 if (obj0) {
16062 ecode1 = SWIG_AsVal_int(obj0, &val1);
16063 if (!SWIG_IsOK(ecode1)) {
16064 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16065 }
16066 arg1 = static_cast< int >(val1);
16067 }
16068 if (obj1) {
16069 ecode2 = SWIG_AsVal_int(obj1, &val2);
16070 if (!SWIG_IsOK(ecode2)) {
16071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16072 }
16073 arg2 = static_cast< int >(val2);
16074 }
16075 {
16076 PyThreadState* __tstate = wxPyBeginAllowThreads();
16077 result = (wxLocale *)new_wxLocale(arg1,arg2);
16078 wxPyEndAllowThreads(__tstate);
16079 if (PyErr_Occurred()) SWIG_fail;
16080 }
16081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16082 return resultobj;
16083 fail:
16084 return NULL;
16085 }
16086
16087
16088 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16089 PyObject *resultobj = 0;
16090 wxLocale *arg1 = (wxLocale *) 0 ;
16091 void *argp1 = 0 ;
16092 int res1 = 0 ;
16093 PyObject *swig_obj[1] ;
16094
16095 if (!args) SWIG_fail;
16096 swig_obj[0] = args;
16097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16098 if (!SWIG_IsOK(res1)) {
16099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16100 }
16101 arg1 = reinterpret_cast< wxLocale * >(argp1);
16102 {
16103 PyThreadState* __tstate = wxPyBeginAllowThreads();
16104 delete arg1;
16105
16106 wxPyEndAllowThreads(__tstate);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 resultobj = SWIG_Py_Void();
16110 return resultobj;
16111 fail:
16112 return NULL;
16113 }
16114
16115
16116 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16117 PyObject *resultobj = 0;
16118 wxLocale *arg1 = (wxLocale *) 0 ;
16119 wxString *arg2 = 0 ;
16120 wxString const &arg3_defvalue = wxPyEmptyString ;
16121 wxString *arg3 = (wxString *) &arg3_defvalue ;
16122 wxString const &arg4_defvalue = wxPyEmptyString ;
16123 wxString *arg4 = (wxString *) &arg4_defvalue ;
16124 bool arg5 = (bool) true ;
16125 bool arg6 = (bool) false ;
16126 bool result;
16127 void *argp1 = 0 ;
16128 int res1 = 0 ;
16129 bool temp2 = false ;
16130 bool temp3 = false ;
16131 bool temp4 = false ;
16132 bool val5 ;
16133 int ecode5 = 0 ;
16134 bool val6 ;
16135 int ecode6 = 0 ;
16136 PyObject * obj0 = 0 ;
16137 PyObject * obj1 = 0 ;
16138 PyObject * obj2 = 0 ;
16139 PyObject * obj3 = 0 ;
16140 PyObject * obj4 = 0 ;
16141 PyObject * obj5 = 0 ;
16142 char * kwnames[] = {
16143 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16144 };
16145
16146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16148 if (!SWIG_IsOK(res1)) {
16149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16150 }
16151 arg1 = reinterpret_cast< wxLocale * >(argp1);
16152 {
16153 arg2 = wxString_in_helper(obj1);
16154 if (arg2 == NULL) SWIG_fail;
16155 temp2 = true;
16156 }
16157 if (obj2) {
16158 {
16159 arg3 = wxString_in_helper(obj2);
16160 if (arg3 == NULL) SWIG_fail;
16161 temp3 = true;
16162 }
16163 }
16164 if (obj3) {
16165 {
16166 arg4 = wxString_in_helper(obj3);
16167 if (arg4 == NULL) SWIG_fail;
16168 temp4 = true;
16169 }
16170 }
16171 if (obj4) {
16172 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16173 if (!SWIG_IsOK(ecode5)) {
16174 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16175 }
16176 arg5 = static_cast< bool >(val5);
16177 }
16178 if (obj5) {
16179 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16180 if (!SWIG_IsOK(ecode6)) {
16181 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16182 }
16183 arg6 = static_cast< bool >(val6);
16184 }
16185 {
16186 PyThreadState* __tstate = wxPyBeginAllowThreads();
16187 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16188 wxPyEndAllowThreads(__tstate);
16189 if (PyErr_Occurred()) SWIG_fail;
16190 }
16191 {
16192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16193 }
16194 {
16195 if (temp2)
16196 delete arg2;
16197 }
16198 {
16199 if (temp3)
16200 delete arg3;
16201 }
16202 {
16203 if (temp4)
16204 delete arg4;
16205 }
16206 return resultobj;
16207 fail:
16208 {
16209 if (temp2)
16210 delete arg2;
16211 }
16212 {
16213 if (temp3)
16214 delete arg3;
16215 }
16216 {
16217 if (temp4)
16218 delete arg4;
16219 }
16220 return NULL;
16221 }
16222
16223
16224 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16225 PyObject *resultobj = 0;
16226 wxLocale *arg1 = (wxLocale *) 0 ;
16227 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16228 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16229 bool result;
16230 void *argp1 = 0 ;
16231 int res1 = 0 ;
16232 int val2 ;
16233 int ecode2 = 0 ;
16234 int val3 ;
16235 int ecode3 = 0 ;
16236 PyObject * obj0 = 0 ;
16237 PyObject * obj1 = 0 ;
16238 PyObject * obj2 = 0 ;
16239 char * kwnames[] = {
16240 (char *) "self",(char *) "language",(char *) "flags", NULL
16241 };
16242
16243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16245 if (!SWIG_IsOK(res1)) {
16246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16247 }
16248 arg1 = reinterpret_cast< wxLocale * >(argp1);
16249 if (obj1) {
16250 ecode2 = SWIG_AsVal_int(obj1, &val2);
16251 if (!SWIG_IsOK(ecode2)) {
16252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16253 }
16254 arg2 = static_cast< int >(val2);
16255 }
16256 if (obj2) {
16257 ecode3 = SWIG_AsVal_int(obj2, &val3);
16258 if (!SWIG_IsOK(ecode3)) {
16259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16260 }
16261 arg3 = static_cast< int >(val3);
16262 }
16263 {
16264 PyThreadState* __tstate = wxPyBeginAllowThreads();
16265 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 {
16270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16271 }
16272 return resultobj;
16273 fail:
16274 return NULL;
16275 }
16276
16277
16278 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16279 PyObject *resultobj = 0;
16280 int result;
16281
16282 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16283 {
16284 PyThreadState* __tstate = wxPyBeginAllowThreads();
16285 result = (int)wxLocale::GetSystemLanguage();
16286 wxPyEndAllowThreads(__tstate);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 resultobj = SWIG_From_int(static_cast< int >(result));
16290 return resultobj;
16291 fail:
16292 return NULL;
16293 }
16294
16295
16296 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16297 PyObject *resultobj = 0;
16298 wxFontEncoding result;
16299
16300 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16301 {
16302 PyThreadState* __tstate = wxPyBeginAllowThreads();
16303 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 resultobj = SWIG_From_int(static_cast< int >(result));
16308 return resultobj;
16309 fail:
16310 return NULL;
16311 }
16312
16313
16314 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16315 PyObject *resultobj = 0;
16316 wxString result;
16317
16318 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 result = wxLocale::GetSystemEncodingName();
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 {
16326 #if wxUSE_UNICODE
16327 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16328 #else
16329 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16330 #endif
16331 }
16332 return resultobj;
16333 fail:
16334 return NULL;
16335 }
16336
16337
16338 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16339 PyObject *resultobj = 0;
16340 wxLocale *arg1 = (wxLocale *) 0 ;
16341 bool result;
16342 void *argp1 = 0 ;
16343 int res1 = 0 ;
16344 PyObject *swig_obj[1] ;
16345
16346 if (!args) SWIG_fail;
16347 swig_obj[0] = args;
16348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16349 if (!SWIG_IsOK(res1)) {
16350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16351 }
16352 arg1 = reinterpret_cast< wxLocale * >(argp1);
16353 {
16354 PyThreadState* __tstate = wxPyBeginAllowThreads();
16355 result = (bool)((wxLocale const *)arg1)->IsOk();
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
16359 {
16360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16361 }
16362 return resultobj;
16363 fail:
16364 return NULL;
16365 }
16366
16367
16368 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16369 PyObject *resultobj = 0;
16370 wxLocale *arg1 = (wxLocale *) 0 ;
16371 wxString result;
16372 void *argp1 = 0 ;
16373 int res1 = 0 ;
16374 PyObject *swig_obj[1] ;
16375
16376 if (!args) SWIG_fail;
16377 swig_obj[0] = args;
16378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16379 if (!SWIG_IsOK(res1)) {
16380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16381 }
16382 arg1 = reinterpret_cast< wxLocale * >(argp1);
16383 {
16384 PyThreadState* __tstate = wxPyBeginAllowThreads();
16385 result = ((wxLocale const *)arg1)->GetLocale();
16386 wxPyEndAllowThreads(__tstate);
16387 if (PyErr_Occurred()) SWIG_fail;
16388 }
16389 {
16390 #if wxUSE_UNICODE
16391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16392 #else
16393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16394 #endif
16395 }
16396 return resultobj;
16397 fail:
16398 return NULL;
16399 }
16400
16401
16402 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16403 PyObject *resultobj = 0;
16404 wxLocale *arg1 = (wxLocale *) 0 ;
16405 int result;
16406 void *argp1 = 0 ;
16407 int res1 = 0 ;
16408 PyObject *swig_obj[1] ;
16409
16410 if (!args) SWIG_fail;
16411 swig_obj[0] = args;
16412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16413 if (!SWIG_IsOK(res1)) {
16414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16415 }
16416 arg1 = reinterpret_cast< wxLocale * >(argp1);
16417 {
16418 PyThreadState* __tstate = wxPyBeginAllowThreads();
16419 result = (int)((wxLocale const *)arg1)->GetLanguage();
16420 wxPyEndAllowThreads(__tstate);
16421 if (PyErr_Occurred()) SWIG_fail;
16422 }
16423 resultobj = SWIG_From_int(static_cast< int >(result));
16424 return resultobj;
16425 fail:
16426 return NULL;
16427 }
16428
16429
16430 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16431 PyObject *resultobj = 0;
16432 wxLocale *arg1 = (wxLocale *) 0 ;
16433 wxString result;
16434 void *argp1 = 0 ;
16435 int res1 = 0 ;
16436 PyObject *swig_obj[1] ;
16437
16438 if (!args) SWIG_fail;
16439 swig_obj[0] = args;
16440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16441 if (!SWIG_IsOK(res1)) {
16442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16443 }
16444 arg1 = reinterpret_cast< wxLocale * >(argp1);
16445 {
16446 PyThreadState* __tstate = wxPyBeginAllowThreads();
16447 result = ((wxLocale const *)arg1)->GetSysName();
16448 wxPyEndAllowThreads(__tstate);
16449 if (PyErr_Occurred()) SWIG_fail;
16450 }
16451 {
16452 #if wxUSE_UNICODE
16453 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16454 #else
16455 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16456 #endif
16457 }
16458 return resultobj;
16459 fail:
16460 return NULL;
16461 }
16462
16463
16464 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16465 PyObject *resultobj = 0;
16466 wxLocale *arg1 = (wxLocale *) 0 ;
16467 wxString result;
16468 void *argp1 = 0 ;
16469 int res1 = 0 ;
16470 PyObject *swig_obj[1] ;
16471
16472 if (!args) SWIG_fail;
16473 swig_obj[0] = args;
16474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16475 if (!SWIG_IsOK(res1)) {
16476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16477 }
16478 arg1 = reinterpret_cast< wxLocale * >(argp1);
16479 {
16480 PyThreadState* __tstate = wxPyBeginAllowThreads();
16481 result = ((wxLocale const *)arg1)->GetCanonicalName();
16482 wxPyEndAllowThreads(__tstate);
16483 if (PyErr_Occurred()) SWIG_fail;
16484 }
16485 {
16486 #if wxUSE_UNICODE
16487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16488 #else
16489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16490 #endif
16491 }
16492 return resultobj;
16493 fail:
16494 return NULL;
16495 }
16496
16497
16498 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16499 PyObject *resultobj = 0;
16500 wxString *arg1 = 0 ;
16501 bool temp1 = false ;
16502 PyObject * obj0 = 0 ;
16503 char * kwnames[] = {
16504 (char *) "prefix", NULL
16505 };
16506
16507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16508 {
16509 arg1 = wxString_in_helper(obj0);
16510 if (arg1 == NULL) SWIG_fail;
16511 temp1 = true;
16512 }
16513 {
16514 PyThreadState* __tstate = wxPyBeginAllowThreads();
16515 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16516 wxPyEndAllowThreads(__tstate);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
16519 resultobj = SWIG_Py_Void();
16520 {
16521 if (temp1)
16522 delete arg1;
16523 }
16524 return resultobj;
16525 fail:
16526 {
16527 if (temp1)
16528 delete arg1;
16529 }
16530 return NULL;
16531 }
16532
16533
16534 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16535 PyObject *resultobj = 0;
16536 wxLocale *arg1 = (wxLocale *) 0 ;
16537 wxString *arg2 = 0 ;
16538 bool result;
16539 void *argp1 = 0 ;
16540 int res1 = 0 ;
16541 bool temp2 = false ;
16542 PyObject * obj0 = 0 ;
16543 PyObject * obj1 = 0 ;
16544 char * kwnames[] = {
16545 (char *) "self",(char *) "szDomain", NULL
16546 };
16547
16548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16550 if (!SWIG_IsOK(res1)) {
16551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16552 }
16553 arg1 = reinterpret_cast< wxLocale * >(argp1);
16554 {
16555 arg2 = wxString_in_helper(obj1);
16556 if (arg2 == NULL) SWIG_fail;
16557 temp2 = true;
16558 }
16559 {
16560 PyThreadState* __tstate = wxPyBeginAllowThreads();
16561 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 {
16566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16567 }
16568 {
16569 if (temp2)
16570 delete arg2;
16571 }
16572 return resultobj;
16573 fail:
16574 {
16575 if (temp2)
16576 delete arg2;
16577 }
16578 return NULL;
16579 }
16580
16581
16582 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16583 PyObject *resultobj = 0;
16584 int arg1 ;
16585 bool result;
16586 int val1 ;
16587 int ecode1 = 0 ;
16588 PyObject * obj0 = 0 ;
16589 char * kwnames[] = {
16590 (char *) "lang", NULL
16591 };
16592
16593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16594 ecode1 = SWIG_AsVal_int(obj0, &val1);
16595 if (!SWIG_IsOK(ecode1)) {
16596 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16597 }
16598 arg1 = static_cast< int >(val1);
16599 {
16600 PyThreadState* __tstate = wxPyBeginAllowThreads();
16601 result = (bool)wxLocale::IsAvailable(arg1);
16602 wxPyEndAllowThreads(__tstate);
16603 if (PyErr_Occurred()) SWIG_fail;
16604 }
16605 {
16606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16607 }
16608 return resultobj;
16609 fail:
16610 return NULL;
16611 }
16612
16613
16614 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16615 PyObject *resultobj = 0;
16616 wxLocale *arg1 = (wxLocale *) 0 ;
16617 wxString *arg2 = 0 ;
16618 bool result;
16619 void *argp1 = 0 ;
16620 int res1 = 0 ;
16621 bool temp2 = false ;
16622 PyObject * obj0 = 0 ;
16623 PyObject * obj1 = 0 ;
16624 char * kwnames[] = {
16625 (char *) "self",(char *) "szDomain", NULL
16626 };
16627
16628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16630 if (!SWIG_IsOK(res1)) {
16631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16632 }
16633 arg1 = reinterpret_cast< wxLocale * >(argp1);
16634 {
16635 arg2 = wxString_in_helper(obj1);
16636 if (arg2 == NULL) SWIG_fail;
16637 temp2 = true;
16638 }
16639 {
16640 PyThreadState* __tstate = wxPyBeginAllowThreads();
16641 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16642 wxPyEndAllowThreads(__tstate);
16643 if (PyErr_Occurred()) SWIG_fail;
16644 }
16645 {
16646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16647 }
16648 {
16649 if (temp2)
16650 delete arg2;
16651 }
16652 return resultobj;
16653 fail:
16654 {
16655 if (temp2)
16656 delete arg2;
16657 }
16658 return NULL;
16659 }
16660
16661
16662 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16663 PyObject *resultobj = 0;
16664 int arg1 ;
16665 wxLanguageInfo *result = 0 ;
16666 int val1 ;
16667 int ecode1 = 0 ;
16668 PyObject * obj0 = 0 ;
16669 char * kwnames[] = {
16670 (char *) "lang", NULL
16671 };
16672
16673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16674 ecode1 = SWIG_AsVal_int(obj0, &val1);
16675 if (!SWIG_IsOK(ecode1)) {
16676 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16677 }
16678 arg1 = static_cast< int >(val1);
16679 {
16680 PyThreadState* __tstate = wxPyBeginAllowThreads();
16681 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16682 wxPyEndAllowThreads(__tstate);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16686 return resultobj;
16687 fail:
16688 return NULL;
16689 }
16690
16691
16692 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16693 PyObject *resultobj = 0;
16694 int arg1 ;
16695 wxString result;
16696 int val1 ;
16697 int ecode1 = 0 ;
16698 PyObject * obj0 = 0 ;
16699 char * kwnames[] = {
16700 (char *) "lang", NULL
16701 };
16702
16703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16704 ecode1 = SWIG_AsVal_int(obj0, &val1);
16705 if (!SWIG_IsOK(ecode1)) {
16706 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16707 }
16708 arg1 = static_cast< int >(val1);
16709 {
16710 PyThreadState* __tstate = wxPyBeginAllowThreads();
16711 result = wxLocale::GetLanguageName(arg1);
16712 wxPyEndAllowThreads(__tstate);
16713 if (PyErr_Occurred()) SWIG_fail;
16714 }
16715 {
16716 #if wxUSE_UNICODE
16717 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16718 #else
16719 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16720 #endif
16721 }
16722 return resultobj;
16723 fail:
16724 return NULL;
16725 }
16726
16727
16728 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16729 PyObject *resultobj = 0;
16730 wxString *arg1 = 0 ;
16731 wxLanguageInfo *result = 0 ;
16732 bool temp1 = false ;
16733 PyObject * obj0 = 0 ;
16734 char * kwnames[] = {
16735 (char *) "locale", NULL
16736 };
16737
16738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16739 {
16740 arg1 = wxString_in_helper(obj0);
16741 if (arg1 == NULL) SWIG_fail;
16742 temp1 = true;
16743 }
16744 {
16745 PyThreadState* __tstate = wxPyBeginAllowThreads();
16746 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16747 wxPyEndAllowThreads(__tstate);
16748 if (PyErr_Occurred()) SWIG_fail;
16749 }
16750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16751 {
16752 if (temp1)
16753 delete arg1;
16754 }
16755 return resultobj;
16756 fail:
16757 {
16758 if (temp1)
16759 delete arg1;
16760 }
16761 return NULL;
16762 }
16763
16764
16765 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16766 PyObject *resultobj = 0;
16767 wxLanguageInfo *arg1 = 0 ;
16768 void *argp1 = 0 ;
16769 int res1 = 0 ;
16770 PyObject * obj0 = 0 ;
16771 char * kwnames[] = {
16772 (char *) "info", NULL
16773 };
16774
16775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16776 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16777 if (!SWIG_IsOK(res1)) {
16778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16779 }
16780 if (!argp1) {
16781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16782 }
16783 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16784 {
16785 PyThreadState* __tstate = wxPyBeginAllowThreads();
16786 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16787 wxPyEndAllowThreads(__tstate);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 resultobj = SWIG_Py_Void();
16791 return resultobj;
16792 fail:
16793 return NULL;
16794 }
16795
16796
16797 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16798 PyObject *resultobj = 0;
16799 wxLocale *arg1 = (wxLocale *) 0 ;
16800 wxString *arg2 = 0 ;
16801 wxString const &arg3_defvalue = wxPyEmptyString ;
16802 wxString *arg3 = (wxString *) &arg3_defvalue ;
16803 wxString result;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 bool temp2 = false ;
16807 bool temp3 = false ;
16808 PyObject * obj0 = 0 ;
16809 PyObject * obj1 = 0 ;
16810 PyObject * obj2 = 0 ;
16811 char * kwnames[] = {
16812 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16813 };
16814
16815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16817 if (!SWIG_IsOK(res1)) {
16818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16819 }
16820 arg1 = reinterpret_cast< wxLocale * >(argp1);
16821 {
16822 arg2 = wxString_in_helper(obj1);
16823 if (arg2 == NULL) SWIG_fail;
16824 temp2 = true;
16825 }
16826 if (obj2) {
16827 {
16828 arg3 = wxString_in_helper(obj2);
16829 if (arg3 == NULL) SWIG_fail;
16830 temp3 = true;
16831 }
16832 }
16833 {
16834 PyThreadState* __tstate = wxPyBeginAllowThreads();
16835 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16836 wxPyEndAllowThreads(__tstate);
16837 if (PyErr_Occurred()) SWIG_fail;
16838 }
16839 {
16840 #if wxUSE_UNICODE
16841 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16842 #else
16843 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16844 #endif
16845 }
16846 {
16847 if (temp2)
16848 delete arg2;
16849 }
16850 {
16851 if (temp3)
16852 delete arg3;
16853 }
16854 return resultobj;
16855 fail:
16856 {
16857 if (temp2)
16858 delete arg2;
16859 }
16860 {
16861 if (temp3)
16862 delete arg3;
16863 }
16864 return NULL;
16865 }
16866
16867
16868 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16869 PyObject *resultobj = 0;
16870 wxLocale *arg1 = (wxLocale *) 0 ;
16871 wxString *result = 0 ;
16872 void *argp1 = 0 ;
16873 int res1 = 0 ;
16874 PyObject *swig_obj[1] ;
16875
16876 if (!args) SWIG_fail;
16877 swig_obj[0] = args;
16878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16879 if (!SWIG_IsOK(res1)) {
16880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16881 }
16882 arg1 = reinterpret_cast< wxLocale * >(argp1);
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 {
16886 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16887 result = (wxString *) &_result_ref;
16888 }
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 {
16893 #if wxUSE_UNICODE
16894 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16895 #else
16896 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16897 #endif
16898 }
16899 return resultobj;
16900 fail:
16901 return NULL;
16902 }
16903
16904
16905 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16906 PyObject *obj;
16907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16908 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16909 return SWIG_Py_Void();
16910 }
16911
16912 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16913 return SWIG_Python_InitShadowInstance(args);
16914 }
16915
16916 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16917 PyObject *resultobj = 0;
16918 int arg1 = (int) -1 ;
16919 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16920 wxPyLocale *result = 0 ;
16921 int val1 ;
16922 int ecode1 = 0 ;
16923 int val2 ;
16924 int ecode2 = 0 ;
16925 PyObject * obj0 = 0 ;
16926 PyObject * obj1 = 0 ;
16927 char * kwnames[] = {
16928 (char *) "language",(char *) "flags", NULL
16929 };
16930
16931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16932 if (obj0) {
16933 ecode1 = SWIG_AsVal_int(obj0, &val1);
16934 if (!SWIG_IsOK(ecode1)) {
16935 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16936 }
16937 arg1 = static_cast< int >(val1);
16938 }
16939 if (obj1) {
16940 ecode2 = SWIG_AsVal_int(obj1, &val2);
16941 if (!SWIG_IsOK(ecode2)) {
16942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16943 }
16944 arg2 = static_cast< int >(val2);
16945 }
16946 {
16947 PyThreadState* __tstate = wxPyBeginAllowThreads();
16948 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16949 wxPyEndAllowThreads(__tstate);
16950 if (PyErr_Occurred()) SWIG_fail;
16951 }
16952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16953 return resultobj;
16954 fail:
16955 return NULL;
16956 }
16957
16958
16959 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16960 PyObject *resultobj = 0;
16961 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16962 void *argp1 = 0 ;
16963 int res1 = 0 ;
16964 PyObject *swig_obj[1] ;
16965
16966 if (!args) SWIG_fail;
16967 swig_obj[0] = args;
16968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16969 if (!SWIG_IsOK(res1)) {
16970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16971 }
16972 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16973 {
16974 PyThreadState* __tstate = wxPyBeginAllowThreads();
16975 delete arg1;
16976
16977 wxPyEndAllowThreads(__tstate);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
16980 resultobj = SWIG_Py_Void();
16981 return resultobj;
16982 fail:
16983 return NULL;
16984 }
16985
16986
16987 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16988 PyObject *resultobj = 0;
16989 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16990 PyObject *arg2 = (PyObject *) 0 ;
16991 PyObject *arg3 = (PyObject *) 0 ;
16992 void *argp1 = 0 ;
16993 int res1 = 0 ;
16994 PyObject * obj0 = 0 ;
16995 PyObject * obj1 = 0 ;
16996 PyObject * obj2 = 0 ;
16997 char * kwnames[] = {
16998 (char *) "self",(char *) "self",(char *) "_class", NULL
16999 };
17000
17001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17003 if (!SWIG_IsOK(res1)) {
17004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17005 }
17006 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17007 arg2 = obj1;
17008 arg3 = obj2;
17009 {
17010 PyThreadState* __tstate = wxPyBeginAllowThreads();
17011 (arg1)->_setCallbackInfo(arg2,arg3);
17012 wxPyEndAllowThreads(__tstate);
17013 if (PyErr_Occurred()) SWIG_fail;
17014 }
17015 resultobj = SWIG_Py_Void();
17016 return resultobj;
17017 fail:
17018 return NULL;
17019 }
17020
17021
17022 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17023 PyObject *resultobj = 0;
17024 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17025 wxChar *arg2 = (wxChar *) 0 ;
17026 wxChar *arg3 = (wxChar *) NULL ;
17027 wxChar *result = 0 ;
17028 void *argp1 = 0 ;
17029 int res1 = 0 ;
17030 void *argp2 = 0 ;
17031 int res2 = 0 ;
17032 void *argp3 = 0 ;
17033 int res3 = 0 ;
17034 PyObject * obj0 = 0 ;
17035 PyObject * obj1 = 0 ;
17036 PyObject * obj2 = 0 ;
17037 char * kwnames[] = {
17038 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17039 };
17040
17041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17043 if (!SWIG_IsOK(res1)) {
17044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17045 }
17046 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17047 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17048 if (!SWIG_IsOK(res2)) {
17049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17050 }
17051 arg2 = reinterpret_cast< wxChar * >(argp2);
17052 if (obj2) {
17053 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17054 if (!SWIG_IsOK(res3)) {
17055 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17056 }
17057 arg3 = reinterpret_cast< wxChar * >(argp3);
17058 }
17059 {
17060 PyThreadState* __tstate = wxPyBeginAllowThreads();
17061 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17062 wxPyEndAllowThreads(__tstate);
17063 if (PyErr_Occurred()) SWIG_fail;
17064 }
17065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17066 return resultobj;
17067 fail:
17068 return NULL;
17069 }
17070
17071
17072 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17073 PyObject *resultobj = 0;
17074 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17075 wxChar *arg2 = (wxChar *) 0 ;
17076 wxChar *arg3 = (wxChar *) 0 ;
17077 size_t arg4 ;
17078 wxChar *arg5 = (wxChar *) NULL ;
17079 wxChar *result = 0 ;
17080 void *argp1 = 0 ;
17081 int res1 = 0 ;
17082 void *argp2 = 0 ;
17083 int res2 = 0 ;
17084 void *argp3 = 0 ;
17085 int res3 = 0 ;
17086 size_t val4 ;
17087 int ecode4 = 0 ;
17088 void *argp5 = 0 ;
17089 int res5 = 0 ;
17090 PyObject * obj0 = 0 ;
17091 PyObject * obj1 = 0 ;
17092 PyObject * obj2 = 0 ;
17093 PyObject * obj3 = 0 ;
17094 PyObject * obj4 = 0 ;
17095 char * kwnames[] = {
17096 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17097 };
17098
17099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17101 if (!SWIG_IsOK(res1)) {
17102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17103 }
17104 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17105 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17106 if (!SWIG_IsOK(res2)) {
17107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17108 }
17109 arg2 = reinterpret_cast< wxChar * >(argp2);
17110 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17111 if (!SWIG_IsOK(res3)) {
17112 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17113 }
17114 arg3 = reinterpret_cast< wxChar * >(argp3);
17115 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17116 if (!SWIG_IsOK(ecode4)) {
17117 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17118 }
17119 arg4 = static_cast< size_t >(val4);
17120 if (obj4) {
17121 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17122 if (!SWIG_IsOK(res5)) {
17123 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17124 }
17125 arg5 = reinterpret_cast< wxChar * >(argp5);
17126 }
17127 {
17128 PyThreadState* __tstate = wxPyBeginAllowThreads();
17129 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17130 wxPyEndAllowThreads(__tstate);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 }
17133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17134 return resultobj;
17135 fail:
17136 return NULL;
17137 }
17138
17139
17140 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17141 PyObject *obj;
17142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17143 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17144 return SWIG_Py_Void();
17145 }
17146
17147 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17148 return SWIG_Python_InitShadowInstance(args);
17149 }
17150
17151 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17152 PyObject *resultobj = 0;
17153 wxLocale *result = 0 ;
17154
17155 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17156 {
17157 PyThreadState* __tstate = wxPyBeginAllowThreads();
17158 result = (wxLocale *)wxGetLocale();
17159 wxPyEndAllowThreads(__tstate);
17160 if (PyErr_Occurred()) SWIG_fail;
17161 }
17162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17163 return resultobj;
17164 fail:
17165 return NULL;
17166 }
17167
17168
17169 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17170 PyObject *resultobj = 0;
17171 wxString *arg1 = 0 ;
17172 wxString result;
17173 bool temp1 = false ;
17174
17175 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17176 {
17177 arg1 = wxString_in_helper(swig_obj[0]);
17178 if (arg1 == NULL) SWIG_fail;
17179 temp1 = true;
17180 }
17181 {
17182 PyThreadState* __tstate = wxPyBeginAllowThreads();
17183 result = wxGetTranslation((wxString const &)*arg1);
17184 wxPyEndAllowThreads(__tstate);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 {
17188 #if wxUSE_UNICODE
17189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17190 #else
17191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17192 #endif
17193 }
17194 {
17195 if (temp1)
17196 delete arg1;
17197 }
17198 return resultobj;
17199 fail:
17200 {
17201 if (temp1)
17202 delete arg1;
17203 }
17204 return NULL;
17205 }
17206
17207
17208 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17209 PyObject *resultobj = 0;
17210 wxString *arg1 = 0 ;
17211 wxString *arg2 = 0 ;
17212 wxString result;
17213 bool temp1 = false ;
17214 bool temp2 = false ;
17215
17216 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17217 {
17218 arg1 = wxString_in_helper(swig_obj[0]);
17219 if (arg1 == NULL) SWIG_fail;
17220 temp1 = true;
17221 }
17222 {
17223 arg2 = wxString_in_helper(swig_obj[1]);
17224 if (arg2 == NULL) SWIG_fail;
17225 temp2 = true;
17226 }
17227 {
17228 PyThreadState* __tstate = wxPyBeginAllowThreads();
17229 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17230 wxPyEndAllowThreads(__tstate);
17231 if (PyErr_Occurred()) SWIG_fail;
17232 }
17233 {
17234 #if wxUSE_UNICODE
17235 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17236 #else
17237 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17238 #endif
17239 }
17240 {
17241 if (temp1)
17242 delete arg1;
17243 }
17244 {
17245 if (temp2)
17246 delete arg2;
17247 }
17248 return resultobj;
17249 fail:
17250 {
17251 if (temp1)
17252 delete arg1;
17253 }
17254 {
17255 if (temp2)
17256 delete arg2;
17257 }
17258 return NULL;
17259 }
17260
17261
17262 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17263 PyObject *resultobj = 0;
17264 wxString *arg1 = 0 ;
17265 wxString *arg2 = 0 ;
17266 size_t arg3 ;
17267 wxString result;
17268 bool temp1 = false ;
17269 bool temp2 = false ;
17270 size_t val3 ;
17271 int ecode3 = 0 ;
17272
17273 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17274 {
17275 arg1 = wxString_in_helper(swig_obj[0]);
17276 if (arg1 == NULL) SWIG_fail;
17277 temp1 = true;
17278 }
17279 {
17280 arg2 = wxString_in_helper(swig_obj[1]);
17281 if (arg2 == NULL) SWIG_fail;
17282 temp2 = true;
17283 }
17284 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17285 if (!SWIG_IsOK(ecode3)) {
17286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17287 }
17288 arg3 = static_cast< size_t >(val3);
17289 {
17290 PyThreadState* __tstate = wxPyBeginAllowThreads();
17291 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 {
17296 #if wxUSE_UNICODE
17297 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17298 #else
17299 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17300 #endif
17301 }
17302 {
17303 if (temp1)
17304 delete arg1;
17305 }
17306 {
17307 if (temp2)
17308 delete arg2;
17309 }
17310 return resultobj;
17311 fail:
17312 {
17313 if (temp1)
17314 delete arg1;
17315 }
17316 {
17317 if (temp2)
17318 delete arg2;
17319 }
17320 return NULL;
17321 }
17322
17323
17324 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17325 PyObject *resultobj = 0;
17326 wxString *arg1 = 0 ;
17327 wxString *arg2 = 0 ;
17328 size_t arg3 ;
17329 wxString *arg4 = 0 ;
17330 wxString result;
17331 bool temp1 = false ;
17332 bool temp2 = false ;
17333 size_t val3 ;
17334 int ecode3 = 0 ;
17335 bool temp4 = false ;
17336
17337 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17338 {
17339 arg1 = wxString_in_helper(swig_obj[0]);
17340 if (arg1 == NULL) SWIG_fail;
17341 temp1 = true;
17342 }
17343 {
17344 arg2 = wxString_in_helper(swig_obj[1]);
17345 if (arg2 == NULL) SWIG_fail;
17346 temp2 = true;
17347 }
17348 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17349 if (!SWIG_IsOK(ecode3)) {
17350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17351 }
17352 arg3 = static_cast< size_t >(val3);
17353 {
17354 arg4 = wxString_in_helper(swig_obj[3]);
17355 if (arg4 == NULL) SWIG_fail;
17356 temp4 = true;
17357 }
17358 {
17359 PyThreadState* __tstate = wxPyBeginAllowThreads();
17360 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17361 wxPyEndAllowThreads(__tstate);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 {
17365 #if wxUSE_UNICODE
17366 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17367 #else
17368 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17369 #endif
17370 }
17371 {
17372 if (temp1)
17373 delete arg1;
17374 }
17375 {
17376 if (temp2)
17377 delete arg2;
17378 }
17379 {
17380 if (temp4)
17381 delete arg4;
17382 }
17383 return resultobj;
17384 fail:
17385 {
17386 if (temp1)
17387 delete arg1;
17388 }
17389 {
17390 if (temp2)
17391 delete arg2;
17392 }
17393 {
17394 if (temp4)
17395 delete arg4;
17396 }
17397 return NULL;
17398 }
17399
17400
17401 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17402 int argc;
17403 PyObject *argv[5];
17404
17405 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17406 --argc;
17407 if (argc == 1) {
17408 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17409 }
17410 if (argc == 2) {
17411 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17412 }
17413 if (argc == 3) {
17414 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17415 }
17416 if (argc == 4) {
17417 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17418 }
17419
17420 fail:
17421 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17422 return NULL;
17423 }
17424
17425
17426 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17427 PyObject *resultobj = 0;
17428 wxEncodingConverter *result = 0 ;
17429
17430 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17431 {
17432 PyThreadState* __tstate = wxPyBeginAllowThreads();
17433 result = (wxEncodingConverter *)new wxEncodingConverter();
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
17437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17438 return resultobj;
17439 fail:
17440 return NULL;
17441 }
17442
17443
17444 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17445 PyObject *resultobj = 0;
17446 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17447 void *argp1 = 0 ;
17448 int res1 = 0 ;
17449 PyObject *swig_obj[1] ;
17450
17451 if (!args) SWIG_fail;
17452 swig_obj[0] = args;
17453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17454 if (!SWIG_IsOK(res1)) {
17455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17456 }
17457 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17458 {
17459 PyThreadState* __tstate = wxPyBeginAllowThreads();
17460 delete arg1;
17461
17462 wxPyEndAllowThreads(__tstate);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 }
17465 resultobj = SWIG_Py_Void();
17466 return resultobj;
17467 fail:
17468 return NULL;
17469 }
17470
17471
17472 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17473 PyObject *resultobj = 0;
17474 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17475 wxFontEncoding arg2 ;
17476 wxFontEncoding arg3 ;
17477 int arg4 = (int) wxCONVERT_STRICT ;
17478 bool result;
17479 void *argp1 = 0 ;
17480 int res1 = 0 ;
17481 int val2 ;
17482 int ecode2 = 0 ;
17483 int val3 ;
17484 int ecode3 = 0 ;
17485 int val4 ;
17486 int ecode4 = 0 ;
17487 PyObject * obj0 = 0 ;
17488 PyObject * obj1 = 0 ;
17489 PyObject * obj2 = 0 ;
17490 PyObject * obj3 = 0 ;
17491 char * kwnames[] = {
17492 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17493 };
17494
17495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17497 if (!SWIG_IsOK(res1)) {
17498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17499 }
17500 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17501 ecode2 = SWIG_AsVal_int(obj1, &val2);
17502 if (!SWIG_IsOK(ecode2)) {
17503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17504 }
17505 arg2 = static_cast< wxFontEncoding >(val2);
17506 ecode3 = SWIG_AsVal_int(obj2, &val3);
17507 if (!SWIG_IsOK(ecode3)) {
17508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17509 }
17510 arg3 = static_cast< wxFontEncoding >(val3);
17511 if (obj3) {
17512 ecode4 = SWIG_AsVal_int(obj3, &val4);
17513 if (!SWIG_IsOK(ecode4)) {
17514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17515 }
17516 arg4 = static_cast< int >(val4);
17517 }
17518 {
17519 PyThreadState* __tstate = wxPyBeginAllowThreads();
17520 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17521 wxPyEndAllowThreads(__tstate);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 }
17524 {
17525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17526 }
17527 return resultobj;
17528 fail:
17529 return NULL;
17530 }
17531
17532
17533 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17534 PyObject *resultobj = 0;
17535 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17536 wxString *arg2 = 0 ;
17537 wxString result;
17538 void *argp1 = 0 ;
17539 int res1 = 0 ;
17540 bool temp2 = false ;
17541 PyObject * obj0 = 0 ;
17542 PyObject * obj1 = 0 ;
17543 char * kwnames[] = {
17544 (char *) "self",(char *) "input", NULL
17545 };
17546
17547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17549 if (!SWIG_IsOK(res1)) {
17550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17551 }
17552 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17553 {
17554 arg2 = wxString_in_helper(obj1);
17555 if (arg2 == NULL) SWIG_fail;
17556 temp2 = true;
17557 }
17558 {
17559 PyThreadState* __tstate = wxPyBeginAllowThreads();
17560 result = (arg1)->Convert((wxString const &)*arg2);
17561 wxPyEndAllowThreads(__tstate);
17562 if (PyErr_Occurred()) SWIG_fail;
17563 }
17564 {
17565 #if wxUSE_UNICODE
17566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17567 #else
17568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17569 #endif
17570 }
17571 {
17572 if (temp2)
17573 delete arg2;
17574 }
17575 return resultobj;
17576 fail:
17577 {
17578 if (temp2)
17579 delete arg2;
17580 }
17581 return NULL;
17582 }
17583
17584
17585 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17586 PyObject *resultobj = 0;
17587 wxFontEncoding arg1 ;
17588 int arg2 = (int) wxPLATFORM_CURRENT ;
17589 wxFontEncodingArray result;
17590 int val1 ;
17591 int ecode1 = 0 ;
17592 int val2 ;
17593 int ecode2 = 0 ;
17594 PyObject * obj0 = 0 ;
17595 PyObject * obj1 = 0 ;
17596 char * kwnames[] = {
17597 (char *) "enc",(char *) "platform", NULL
17598 };
17599
17600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17601 ecode1 = SWIG_AsVal_int(obj0, &val1);
17602 if (!SWIG_IsOK(ecode1)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17604 }
17605 arg1 = static_cast< wxFontEncoding >(val1);
17606 if (obj1) {
17607 ecode2 = SWIG_AsVal_int(obj1, &val2);
17608 if (!SWIG_IsOK(ecode2)) {
17609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17610 }
17611 arg2 = static_cast< int >(val2);
17612 }
17613 {
17614 PyThreadState* __tstate = wxPyBeginAllowThreads();
17615 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17616 wxPyEndAllowThreads(__tstate);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 {
17620 resultobj = PyList_New(0);
17621 for (size_t i=0; i < (&result)->GetCount(); i++) {
17622 PyObject* number = PyInt_FromLong((&result)->Item(i));
17623 PyList_Append(resultobj, number);
17624 Py_DECREF(number);
17625 }
17626 }
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj = 0;
17635 wxFontEncoding arg1 ;
17636 wxFontEncodingArray result;
17637 int val1 ;
17638 int ecode1 = 0 ;
17639 PyObject * obj0 = 0 ;
17640 char * kwnames[] = {
17641 (char *) "enc", NULL
17642 };
17643
17644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17645 ecode1 = SWIG_AsVal_int(obj0, &val1);
17646 if (!SWIG_IsOK(ecode1)) {
17647 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17648 }
17649 arg1 = static_cast< wxFontEncoding >(val1);
17650 {
17651 PyThreadState* __tstate = wxPyBeginAllowThreads();
17652 result = wxEncodingConverter::GetAllEquivalents(arg1);
17653 wxPyEndAllowThreads(__tstate);
17654 if (PyErr_Occurred()) SWIG_fail;
17655 }
17656 {
17657 resultobj = PyList_New(0);
17658 for (size_t i=0; i < (&result)->GetCount(); i++) {
17659 PyObject* number = PyInt_FromLong((&result)->Item(i));
17660 PyList_Append(resultobj, number);
17661 Py_DECREF(number);
17662 }
17663 }
17664 return resultobj;
17665 fail:
17666 return NULL;
17667 }
17668
17669
17670 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17671 PyObject *resultobj = 0;
17672 wxFontEncoding arg1 ;
17673 wxFontEncoding arg2 ;
17674 bool result;
17675 int val1 ;
17676 int ecode1 = 0 ;
17677 int val2 ;
17678 int ecode2 = 0 ;
17679 PyObject * obj0 = 0 ;
17680 PyObject * obj1 = 0 ;
17681 char * kwnames[] = {
17682 (char *) "encIn",(char *) "encOut", NULL
17683 };
17684
17685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17686 ecode1 = SWIG_AsVal_int(obj0, &val1);
17687 if (!SWIG_IsOK(ecode1)) {
17688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17689 }
17690 arg1 = static_cast< wxFontEncoding >(val1);
17691 ecode2 = SWIG_AsVal_int(obj1, &val2);
17692 if (!SWIG_IsOK(ecode2)) {
17693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17694 }
17695 arg2 = static_cast< wxFontEncoding >(val2);
17696 {
17697 PyThreadState* __tstate = wxPyBeginAllowThreads();
17698 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17699 wxPyEndAllowThreads(__tstate);
17700 if (PyErr_Occurred()) SWIG_fail;
17701 }
17702 {
17703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17704 }
17705 return resultobj;
17706 fail:
17707 return NULL;
17708 }
17709
17710
17711 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17712 PyObject *obj;
17713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17714 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17715 return SWIG_Py_Void();
17716 }
17717
17718 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17719 return SWIG_Python_InitShadowInstance(args);
17720 }
17721
17722 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17723 PyObject *resultobj = 0;
17724 wxDC *arg1 = (wxDC *) 0 ;
17725 void *argp1 = 0 ;
17726 int res1 = 0 ;
17727 PyObject *swig_obj[1] ;
17728
17729 if (!args) SWIG_fail;
17730 swig_obj[0] = args;
17731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17732 if (!SWIG_IsOK(res1)) {
17733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17734 }
17735 arg1 = reinterpret_cast< wxDC * >(argp1);
17736 {
17737 PyThreadState* __tstate = wxPyBeginAllowThreads();
17738 delete arg1;
17739
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 resultobj = SWIG_Py_Void();
17744 return resultobj;
17745 fail:
17746 return NULL;
17747 }
17748
17749
17750 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17751 PyObject *resultobj = 0;
17752 wxDC *arg1 = (wxDC *) 0 ;
17753 int arg2 ;
17754 int arg3 ;
17755 wxColour *arg4 = 0 ;
17756 int arg5 = (int) wxFLOOD_SURFACE ;
17757 bool result;
17758 void *argp1 = 0 ;
17759 int res1 = 0 ;
17760 int val2 ;
17761 int ecode2 = 0 ;
17762 int val3 ;
17763 int ecode3 = 0 ;
17764 wxColour temp4 ;
17765 int val5 ;
17766 int ecode5 = 0 ;
17767 PyObject * obj0 = 0 ;
17768 PyObject * obj1 = 0 ;
17769 PyObject * obj2 = 0 ;
17770 PyObject * obj3 = 0 ;
17771 PyObject * obj4 = 0 ;
17772 char * kwnames[] = {
17773 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17774 };
17775
17776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17778 if (!SWIG_IsOK(res1)) {
17779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17780 }
17781 arg1 = reinterpret_cast< wxDC * >(argp1);
17782 ecode2 = SWIG_AsVal_int(obj1, &val2);
17783 if (!SWIG_IsOK(ecode2)) {
17784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17785 }
17786 arg2 = static_cast< int >(val2);
17787 ecode3 = SWIG_AsVal_int(obj2, &val3);
17788 if (!SWIG_IsOK(ecode3)) {
17789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17790 }
17791 arg3 = static_cast< int >(val3);
17792 {
17793 arg4 = &temp4;
17794 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17795 }
17796 if (obj4) {
17797 ecode5 = SWIG_AsVal_int(obj4, &val5);
17798 if (!SWIG_IsOK(ecode5)) {
17799 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17800 }
17801 arg5 = static_cast< int >(val5);
17802 }
17803 {
17804 PyThreadState* __tstate = wxPyBeginAllowThreads();
17805 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17806 wxPyEndAllowThreads(__tstate);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 }
17809 {
17810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17811 }
17812 return resultobj;
17813 fail:
17814 return NULL;
17815 }
17816
17817
17818 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17819 PyObject *resultobj = 0;
17820 wxDC *arg1 = (wxDC *) 0 ;
17821 wxPoint *arg2 = 0 ;
17822 wxColour *arg3 = 0 ;
17823 int arg4 = (int) wxFLOOD_SURFACE ;
17824 bool result;
17825 void *argp1 = 0 ;
17826 int res1 = 0 ;
17827 wxPoint temp2 ;
17828 wxColour temp3 ;
17829 int val4 ;
17830 int ecode4 = 0 ;
17831 PyObject * obj0 = 0 ;
17832 PyObject * obj1 = 0 ;
17833 PyObject * obj2 = 0 ;
17834 PyObject * obj3 = 0 ;
17835 char * kwnames[] = {
17836 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17837 };
17838
17839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17841 if (!SWIG_IsOK(res1)) {
17842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17843 }
17844 arg1 = reinterpret_cast< wxDC * >(argp1);
17845 {
17846 arg2 = &temp2;
17847 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17848 }
17849 {
17850 arg3 = &temp3;
17851 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17852 }
17853 if (obj3) {
17854 ecode4 = SWIG_AsVal_int(obj3, &val4);
17855 if (!SWIG_IsOK(ecode4)) {
17856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17857 }
17858 arg4 = static_cast< int >(val4);
17859 }
17860 {
17861 PyThreadState* __tstate = wxPyBeginAllowThreads();
17862 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17863 wxPyEndAllowThreads(__tstate);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 {
17867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17868 }
17869 return resultobj;
17870 fail:
17871 return NULL;
17872 }
17873
17874
17875 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17876 PyObject *resultobj = 0;
17877 wxDC *arg1 = (wxDC *) 0 ;
17878 wxRect *arg2 = 0 ;
17879 wxColour *arg3 = 0 ;
17880 wxColour *arg4 = 0 ;
17881 wxPoint *arg5 = 0 ;
17882 void *argp1 = 0 ;
17883 int res1 = 0 ;
17884 wxRect temp2 ;
17885 wxColour temp3 ;
17886 wxColour temp4 ;
17887 wxPoint temp5 ;
17888 PyObject * obj0 = 0 ;
17889 PyObject * obj1 = 0 ;
17890 PyObject * obj2 = 0 ;
17891 PyObject * obj3 = 0 ;
17892 PyObject * obj4 = 0 ;
17893 char * kwnames[] = {
17894 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17895 };
17896
17897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17899 if (!SWIG_IsOK(res1)) {
17900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17901 }
17902 arg1 = reinterpret_cast< wxDC * >(argp1);
17903 {
17904 arg2 = &temp2;
17905 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17906 }
17907 {
17908 arg3 = &temp3;
17909 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17910 }
17911 {
17912 arg4 = &temp4;
17913 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17914 }
17915 {
17916 arg5 = &temp5;
17917 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17918 }
17919 {
17920 PyThreadState* __tstate = wxPyBeginAllowThreads();
17921 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17922 wxPyEndAllowThreads(__tstate);
17923 if (PyErr_Occurred()) SWIG_fail;
17924 }
17925 resultobj = SWIG_Py_Void();
17926 return resultobj;
17927 fail:
17928 return NULL;
17929 }
17930
17931
17932 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17933 PyObject *resultobj = 0;
17934 wxDC *arg1 = (wxDC *) 0 ;
17935 wxRect *arg2 = 0 ;
17936 wxColour *arg3 = 0 ;
17937 wxColour *arg4 = 0 ;
17938 wxDirection arg5 = (wxDirection) wxEAST ;
17939 void *argp1 = 0 ;
17940 int res1 = 0 ;
17941 wxRect temp2 ;
17942 wxColour temp3 ;
17943 wxColour temp4 ;
17944 int val5 ;
17945 int ecode5 = 0 ;
17946 PyObject * obj0 = 0 ;
17947 PyObject * obj1 = 0 ;
17948 PyObject * obj2 = 0 ;
17949 PyObject * obj3 = 0 ;
17950 PyObject * obj4 = 0 ;
17951 char * kwnames[] = {
17952 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17953 };
17954
17955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17957 if (!SWIG_IsOK(res1)) {
17958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17959 }
17960 arg1 = reinterpret_cast< wxDC * >(argp1);
17961 {
17962 arg2 = &temp2;
17963 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17964 }
17965 {
17966 arg3 = &temp3;
17967 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17968 }
17969 {
17970 arg4 = &temp4;
17971 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17972 }
17973 if (obj4) {
17974 ecode5 = SWIG_AsVal_int(obj4, &val5);
17975 if (!SWIG_IsOK(ecode5)) {
17976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17977 }
17978 arg5 = static_cast< wxDirection >(val5);
17979 }
17980 {
17981 PyThreadState* __tstate = wxPyBeginAllowThreads();
17982 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 resultobj = SWIG_Py_Void();
17987 return resultobj;
17988 fail:
17989 return NULL;
17990 }
17991
17992
17993 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj = 0;
17995 wxDC *arg1 = (wxDC *) 0 ;
17996 int arg2 ;
17997 int arg3 ;
17998 wxColour result;
17999 void *argp1 = 0 ;
18000 int res1 = 0 ;
18001 int val2 ;
18002 int ecode2 = 0 ;
18003 int val3 ;
18004 int ecode3 = 0 ;
18005 PyObject * obj0 = 0 ;
18006 PyObject * obj1 = 0 ;
18007 PyObject * obj2 = 0 ;
18008 char * kwnames[] = {
18009 (char *) "self",(char *) "x",(char *) "y", NULL
18010 };
18011
18012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18014 if (!SWIG_IsOK(res1)) {
18015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18016 }
18017 arg1 = reinterpret_cast< wxDC * >(argp1);
18018 ecode2 = SWIG_AsVal_int(obj1, &val2);
18019 if (!SWIG_IsOK(ecode2)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18021 }
18022 arg2 = static_cast< int >(val2);
18023 ecode3 = SWIG_AsVal_int(obj2, &val3);
18024 if (!SWIG_IsOK(ecode3)) {
18025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18026 }
18027 arg3 = static_cast< int >(val3);
18028 {
18029 PyThreadState* __tstate = wxPyBeginAllowThreads();
18030 result = wxDC_GetPixel(arg1,arg2,arg3);
18031 wxPyEndAllowThreads(__tstate);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18035 return resultobj;
18036 fail:
18037 return NULL;
18038 }
18039
18040
18041 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18042 PyObject *resultobj = 0;
18043 wxDC *arg1 = (wxDC *) 0 ;
18044 wxPoint *arg2 = 0 ;
18045 wxColour result;
18046 void *argp1 = 0 ;
18047 int res1 = 0 ;
18048 wxPoint temp2 ;
18049 PyObject * obj0 = 0 ;
18050 PyObject * obj1 = 0 ;
18051 char * kwnames[] = {
18052 (char *) "self",(char *) "pt", NULL
18053 };
18054
18055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18057 if (!SWIG_IsOK(res1)) {
18058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18059 }
18060 arg1 = reinterpret_cast< wxDC * >(argp1);
18061 {
18062 arg2 = &temp2;
18063 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18064 }
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18072 return resultobj;
18073 fail:
18074 return NULL;
18075 }
18076
18077
18078 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj = 0;
18080 wxDC *arg1 = (wxDC *) 0 ;
18081 int arg2 ;
18082 int arg3 ;
18083 int arg4 ;
18084 int arg5 ;
18085 void *argp1 = 0 ;
18086 int res1 = 0 ;
18087 int val2 ;
18088 int ecode2 = 0 ;
18089 int val3 ;
18090 int ecode3 = 0 ;
18091 int val4 ;
18092 int ecode4 = 0 ;
18093 int val5 ;
18094 int ecode5 = 0 ;
18095 PyObject * obj0 = 0 ;
18096 PyObject * obj1 = 0 ;
18097 PyObject * obj2 = 0 ;
18098 PyObject * obj3 = 0 ;
18099 PyObject * obj4 = 0 ;
18100 char * kwnames[] = {
18101 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18102 };
18103
18104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18106 if (!SWIG_IsOK(res1)) {
18107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18108 }
18109 arg1 = reinterpret_cast< wxDC * >(argp1);
18110 ecode2 = SWIG_AsVal_int(obj1, &val2);
18111 if (!SWIG_IsOK(ecode2)) {
18112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18113 }
18114 arg2 = static_cast< int >(val2);
18115 ecode3 = SWIG_AsVal_int(obj2, &val3);
18116 if (!SWIG_IsOK(ecode3)) {
18117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18118 }
18119 arg3 = static_cast< int >(val3);
18120 ecode4 = SWIG_AsVal_int(obj3, &val4);
18121 if (!SWIG_IsOK(ecode4)) {
18122 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18123 }
18124 arg4 = static_cast< int >(val4);
18125 ecode5 = SWIG_AsVal_int(obj4, &val5);
18126 if (!SWIG_IsOK(ecode5)) {
18127 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18128 }
18129 arg5 = static_cast< int >(val5);
18130 {
18131 PyThreadState* __tstate = wxPyBeginAllowThreads();
18132 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 resultobj = SWIG_Py_Void();
18137 return resultobj;
18138 fail:
18139 return NULL;
18140 }
18141
18142
18143 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18144 PyObject *resultobj = 0;
18145 wxDC *arg1 = (wxDC *) 0 ;
18146 wxPoint *arg2 = 0 ;
18147 wxPoint *arg3 = 0 ;
18148 void *argp1 = 0 ;
18149 int res1 = 0 ;
18150 wxPoint temp2 ;
18151 wxPoint temp3 ;
18152 PyObject * obj0 = 0 ;
18153 PyObject * obj1 = 0 ;
18154 PyObject * obj2 = 0 ;
18155 char * kwnames[] = {
18156 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18157 };
18158
18159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18161 if (!SWIG_IsOK(res1)) {
18162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18163 }
18164 arg1 = reinterpret_cast< wxDC * >(argp1);
18165 {
18166 arg2 = &temp2;
18167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18168 }
18169 {
18170 arg3 = &temp3;
18171 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18172 }
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 resultobj = SWIG_Py_Void();
18180 return resultobj;
18181 fail:
18182 return NULL;
18183 }
18184
18185
18186 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18187 PyObject *resultobj = 0;
18188 wxDC *arg1 = (wxDC *) 0 ;
18189 int arg2 ;
18190 int arg3 ;
18191 void *argp1 = 0 ;
18192 int res1 = 0 ;
18193 int val2 ;
18194 int ecode2 = 0 ;
18195 int val3 ;
18196 int ecode3 = 0 ;
18197 PyObject * obj0 = 0 ;
18198 PyObject * obj1 = 0 ;
18199 PyObject * obj2 = 0 ;
18200 char * kwnames[] = {
18201 (char *) "self",(char *) "x",(char *) "y", NULL
18202 };
18203
18204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18206 if (!SWIG_IsOK(res1)) {
18207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18208 }
18209 arg1 = reinterpret_cast< wxDC * >(argp1);
18210 ecode2 = SWIG_AsVal_int(obj1, &val2);
18211 if (!SWIG_IsOK(ecode2)) {
18212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18213 }
18214 arg2 = static_cast< int >(val2);
18215 ecode3 = SWIG_AsVal_int(obj2, &val3);
18216 if (!SWIG_IsOK(ecode3)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18218 }
18219 arg3 = static_cast< int >(val3);
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 (arg1)->CrossHair(arg2,arg3);
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 resultobj = SWIG_Py_Void();
18227 return resultobj;
18228 fail:
18229 return NULL;
18230 }
18231
18232
18233 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18234 PyObject *resultobj = 0;
18235 wxDC *arg1 = (wxDC *) 0 ;
18236 wxPoint *arg2 = 0 ;
18237 void *argp1 = 0 ;
18238 int res1 = 0 ;
18239 wxPoint temp2 ;
18240 PyObject * obj0 = 0 ;
18241 PyObject * obj1 = 0 ;
18242 char * kwnames[] = {
18243 (char *) "self",(char *) "pt", NULL
18244 };
18245
18246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18248 if (!SWIG_IsOK(res1)) {
18249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18250 }
18251 arg1 = reinterpret_cast< wxDC * >(argp1);
18252 {
18253 arg2 = &temp2;
18254 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18255 }
18256 {
18257 PyThreadState* __tstate = wxPyBeginAllowThreads();
18258 (arg1)->CrossHair((wxPoint const &)*arg2);
18259 wxPyEndAllowThreads(__tstate);
18260 if (PyErr_Occurred()) SWIG_fail;
18261 }
18262 resultobj = SWIG_Py_Void();
18263 return resultobj;
18264 fail:
18265 return NULL;
18266 }
18267
18268
18269 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18270 PyObject *resultobj = 0;
18271 wxDC *arg1 = (wxDC *) 0 ;
18272 int arg2 ;
18273 int arg3 ;
18274 int arg4 ;
18275 int arg5 ;
18276 int arg6 ;
18277 int arg7 ;
18278 void *argp1 = 0 ;
18279 int res1 = 0 ;
18280 int val2 ;
18281 int ecode2 = 0 ;
18282 int val3 ;
18283 int ecode3 = 0 ;
18284 int val4 ;
18285 int ecode4 = 0 ;
18286 int val5 ;
18287 int ecode5 = 0 ;
18288 int val6 ;
18289 int ecode6 = 0 ;
18290 int val7 ;
18291 int ecode7 = 0 ;
18292 PyObject * obj0 = 0 ;
18293 PyObject * obj1 = 0 ;
18294 PyObject * obj2 = 0 ;
18295 PyObject * obj3 = 0 ;
18296 PyObject * obj4 = 0 ;
18297 PyObject * obj5 = 0 ;
18298 PyObject * obj6 = 0 ;
18299 char * kwnames[] = {
18300 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18301 };
18302
18303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18305 if (!SWIG_IsOK(res1)) {
18306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18307 }
18308 arg1 = reinterpret_cast< wxDC * >(argp1);
18309 ecode2 = SWIG_AsVal_int(obj1, &val2);
18310 if (!SWIG_IsOK(ecode2)) {
18311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18312 }
18313 arg2 = static_cast< int >(val2);
18314 ecode3 = SWIG_AsVal_int(obj2, &val3);
18315 if (!SWIG_IsOK(ecode3)) {
18316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18317 }
18318 arg3 = static_cast< int >(val3);
18319 ecode4 = SWIG_AsVal_int(obj3, &val4);
18320 if (!SWIG_IsOK(ecode4)) {
18321 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18322 }
18323 arg4 = static_cast< int >(val4);
18324 ecode5 = SWIG_AsVal_int(obj4, &val5);
18325 if (!SWIG_IsOK(ecode5)) {
18326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18327 }
18328 arg5 = static_cast< int >(val5);
18329 ecode6 = SWIG_AsVal_int(obj5, &val6);
18330 if (!SWIG_IsOK(ecode6)) {
18331 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18332 }
18333 arg6 = static_cast< int >(val6);
18334 ecode7 = SWIG_AsVal_int(obj6, &val7);
18335 if (!SWIG_IsOK(ecode7)) {
18336 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18337 }
18338 arg7 = static_cast< int >(val7);
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 resultobj = SWIG_Py_Void();
18346 return resultobj;
18347 fail:
18348 return NULL;
18349 }
18350
18351
18352 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18353 PyObject *resultobj = 0;
18354 wxDC *arg1 = (wxDC *) 0 ;
18355 wxPoint *arg2 = 0 ;
18356 wxPoint *arg3 = 0 ;
18357 wxPoint *arg4 = 0 ;
18358 void *argp1 = 0 ;
18359 int res1 = 0 ;
18360 wxPoint temp2 ;
18361 wxPoint temp3 ;
18362 wxPoint temp4 ;
18363 PyObject * obj0 = 0 ;
18364 PyObject * obj1 = 0 ;
18365 PyObject * obj2 = 0 ;
18366 PyObject * obj3 = 0 ;
18367 char * kwnames[] = {
18368 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18369 };
18370
18371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18373 if (!SWIG_IsOK(res1)) {
18374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18375 }
18376 arg1 = reinterpret_cast< wxDC * >(argp1);
18377 {
18378 arg2 = &temp2;
18379 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18380 }
18381 {
18382 arg3 = &temp3;
18383 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18384 }
18385 {
18386 arg4 = &temp4;
18387 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18388 }
18389 {
18390 PyThreadState* __tstate = wxPyBeginAllowThreads();
18391 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18392 wxPyEndAllowThreads(__tstate);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 }
18395 resultobj = SWIG_Py_Void();
18396 return resultobj;
18397 fail:
18398 return NULL;
18399 }
18400
18401
18402 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18403 PyObject *resultobj = 0;
18404 wxDC *arg1 = (wxDC *) 0 ;
18405 int arg2 ;
18406 int arg3 ;
18407 int arg4 ;
18408 int arg5 ;
18409 void *argp1 = 0 ;
18410 int res1 = 0 ;
18411 int val2 ;
18412 int ecode2 = 0 ;
18413 int val3 ;
18414 int ecode3 = 0 ;
18415 int val4 ;
18416 int ecode4 = 0 ;
18417 int val5 ;
18418 int ecode5 = 0 ;
18419 PyObject * obj0 = 0 ;
18420 PyObject * obj1 = 0 ;
18421 PyObject * obj2 = 0 ;
18422 PyObject * obj3 = 0 ;
18423 PyObject * obj4 = 0 ;
18424 char * kwnames[] = {
18425 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18426 };
18427
18428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18430 if (!SWIG_IsOK(res1)) {
18431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18432 }
18433 arg1 = reinterpret_cast< wxDC * >(argp1);
18434 ecode2 = SWIG_AsVal_int(obj1, &val2);
18435 if (!SWIG_IsOK(ecode2)) {
18436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18437 }
18438 arg2 = static_cast< int >(val2);
18439 ecode3 = SWIG_AsVal_int(obj2, &val3);
18440 if (!SWIG_IsOK(ecode3)) {
18441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18442 }
18443 arg3 = static_cast< int >(val3);
18444 ecode4 = SWIG_AsVal_int(obj3, &val4);
18445 if (!SWIG_IsOK(ecode4)) {
18446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18447 }
18448 arg4 = static_cast< int >(val4);
18449 ecode5 = SWIG_AsVal_int(obj4, &val5);
18450 if (!SWIG_IsOK(ecode5)) {
18451 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18452 }
18453 arg5 = static_cast< int >(val5);
18454 {
18455 PyThreadState* __tstate = wxPyBeginAllowThreads();
18456 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 resultobj = SWIG_Py_Void();
18461 return resultobj;
18462 fail:
18463 return NULL;
18464 }
18465
18466
18467 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18468 PyObject *resultobj = 0;
18469 wxDC *arg1 = (wxDC *) 0 ;
18470 wxRect *arg2 = 0 ;
18471 void *argp1 = 0 ;
18472 int res1 = 0 ;
18473 wxRect temp2 ;
18474 PyObject * obj0 = 0 ;
18475 PyObject * obj1 = 0 ;
18476 char * kwnames[] = {
18477 (char *) "self",(char *) "rect", NULL
18478 };
18479
18480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18482 if (!SWIG_IsOK(res1)) {
18483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18484 }
18485 arg1 = reinterpret_cast< wxDC * >(argp1);
18486 {
18487 arg2 = &temp2;
18488 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18489 }
18490 {
18491 PyThreadState* __tstate = wxPyBeginAllowThreads();
18492 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18493 wxPyEndAllowThreads(__tstate);
18494 if (PyErr_Occurred()) SWIG_fail;
18495 }
18496 resultobj = SWIG_Py_Void();
18497 return resultobj;
18498 fail:
18499 return NULL;
18500 }
18501
18502
18503 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18504 PyObject *resultobj = 0;
18505 wxDC *arg1 = (wxDC *) 0 ;
18506 int arg2 ;
18507 int arg3 ;
18508 int arg4 ;
18509 int arg5 ;
18510 double arg6 ;
18511 double arg7 ;
18512 void *argp1 = 0 ;
18513 int res1 = 0 ;
18514 int val2 ;
18515 int ecode2 = 0 ;
18516 int val3 ;
18517 int ecode3 = 0 ;
18518 int val4 ;
18519 int ecode4 = 0 ;
18520 int val5 ;
18521 int ecode5 = 0 ;
18522 double val6 ;
18523 int ecode6 = 0 ;
18524 double val7 ;
18525 int ecode7 = 0 ;
18526 PyObject * obj0 = 0 ;
18527 PyObject * obj1 = 0 ;
18528 PyObject * obj2 = 0 ;
18529 PyObject * obj3 = 0 ;
18530 PyObject * obj4 = 0 ;
18531 PyObject * obj5 = 0 ;
18532 PyObject * obj6 = 0 ;
18533 char * kwnames[] = {
18534 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18535 };
18536
18537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18539 if (!SWIG_IsOK(res1)) {
18540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18541 }
18542 arg1 = reinterpret_cast< wxDC * >(argp1);
18543 ecode2 = SWIG_AsVal_int(obj1, &val2);
18544 if (!SWIG_IsOK(ecode2)) {
18545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18546 }
18547 arg2 = static_cast< int >(val2);
18548 ecode3 = SWIG_AsVal_int(obj2, &val3);
18549 if (!SWIG_IsOK(ecode3)) {
18550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18551 }
18552 arg3 = static_cast< int >(val3);
18553 ecode4 = SWIG_AsVal_int(obj3, &val4);
18554 if (!SWIG_IsOK(ecode4)) {
18555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18556 }
18557 arg4 = static_cast< int >(val4);
18558 ecode5 = SWIG_AsVal_int(obj4, &val5);
18559 if (!SWIG_IsOK(ecode5)) {
18560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18561 }
18562 arg5 = static_cast< int >(val5);
18563 ecode6 = SWIG_AsVal_double(obj5, &val6);
18564 if (!SWIG_IsOK(ecode6)) {
18565 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18566 }
18567 arg6 = static_cast< double >(val6);
18568 ecode7 = SWIG_AsVal_double(obj6, &val7);
18569 if (!SWIG_IsOK(ecode7)) {
18570 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18571 }
18572 arg7 = static_cast< double >(val7);
18573 {
18574 PyThreadState* __tstate = wxPyBeginAllowThreads();
18575 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18576 wxPyEndAllowThreads(__tstate);
18577 if (PyErr_Occurred()) SWIG_fail;
18578 }
18579 resultobj = SWIG_Py_Void();
18580 return resultobj;
18581 fail:
18582 return NULL;
18583 }
18584
18585
18586 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18587 PyObject *resultobj = 0;
18588 wxDC *arg1 = (wxDC *) 0 ;
18589 wxPoint *arg2 = 0 ;
18590 wxSize *arg3 = 0 ;
18591 double arg4 ;
18592 double arg5 ;
18593 void *argp1 = 0 ;
18594 int res1 = 0 ;
18595 wxPoint temp2 ;
18596 wxSize temp3 ;
18597 double val4 ;
18598 int ecode4 = 0 ;
18599 double val5 ;
18600 int ecode5 = 0 ;
18601 PyObject * obj0 = 0 ;
18602 PyObject * obj1 = 0 ;
18603 PyObject * obj2 = 0 ;
18604 PyObject * obj3 = 0 ;
18605 PyObject * obj4 = 0 ;
18606 char * kwnames[] = {
18607 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18608 };
18609
18610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18612 if (!SWIG_IsOK(res1)) {
18613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18614 }
18615 arg1 = reinterpret_cast< wxDC * >(argp1);
18616 {
18617 arg2 = &temp2;
18618 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18619 }
18620 {
18621 arg3 = &temp3;
18622 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18623 }
18624 ecode4 = SWIG_AsVal_double(obj3, &val4);
18625 if (!SWIG_IsOK(ecode4)) {
18626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18627 }
18628 arg4 = static_cast< double >(val4);
18629 ecode5 = SWIG_AsVal_double(obj4, &val5);
18630 if (!SWIG_IsOK(ecode5)) {
18631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18632 }
18633 arg5 = static_cast< double >(val5);
18634 {
18635 PyThreadState* __tstate = wxPyBeginAllowThreads();
18636 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18637 wxPyEndAllowThreads(__tstate);
18638 if (PyErr_Occurred()) SWIG_fail;
18639 }
18640 resultobj = SWIG_Py_Void();
18641 return resultobj;
18642 fail:
18643 return NULL;
18644 }
18645
18646
18647 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18648 PyObject *resultobj = 0;
18649 wxDC *arg1 = (wxDC *) 0 ;
18650 int arg2 ;
18651 int arg3 ;
18652 void *argp1 = 0 ;
18653 int res1 = 0 ;
18654 int val2 ;
18655 int ecode2 = 0 ;
18656 int val3 ;
18657 int ecode3 = 0 ;
18658 PyObject * obj0 = 0 ;
18659 PyObject * obj1 = 0 ;
18660 PyObject * obj2 = 0 ;
18661 char * kwnames[] = {
18662 (char *) "self",(char *) "x",(char *) "y", NULL
18663 };
18664
18665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18667 if (!SWIG_IsOK(res1)) {
18668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18669 }
18670 arg1 = reinterpret_cast< wxDC * >(argp1);
18671 ecode2 = SWIG_AsVal_int(obj1, &val2);
18672 if (!SWIG_IsOK(ecode2)) {
18673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18674 }
18675 arg2 = static_cast< int >(val2);
18676 ecode3 = SWIG_AsVal_int(obj2, &val3);
18677 if (!SWIG_IsOK(ecode3)) {
18678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18679 }
18680 arg3 = static_cast< int >(val3);
18681 {
18682 PyThreadState* __tstate = wxPyBeginAllowThreads();
18683 (arg1)->DrawPoint(arg2,arg3);
18684 wxPyEndAllowThreads(__tstate);
18685 if (PyErr_Occurred()) SWIG_fail;
18686 }
18687 resultobj = SWIG_Py_Void();
18688 return resultobj;
18689 fail:
18690 return NULL;
18691 }
18692
18693
18694 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18695 PyObject *resultobj = 0;
18696 wxDC *arg1 = (wxDC *) 0 ;
18697 wxPoint *arg2 = 0 ;
18698 void *argp1 = 0 ;
18699 int res1 = 0 ;
18700 wxPoint temp2 ;
18701 PyObject * obj0 = 0 ;
18702 PyObject * obj1 = 0 ;
18703 char * kwnames[] = {
18704 (char *) "self",(char *) "pt", NULL
18705 };
18706
18707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18709 if (!SWIG_IsOK(res1)) {
18710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18711 }
18712 arg1 = reinterpret_cast< wxDC * >(argp1);
18713 {
18714 arg2 = &temp2;
18715 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18716 }
18717 {
18718 PyThreadState* __tstate = wxPyBeginAllowThreads();
18719 (arg1)->DrawPoint((wxPoint const &)*arg2);
18720 wxPyEndAllowThreads(__tstate);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 resultobj = SWIG_Py_Void();
18724 return resultobj;
18725 fail:
18726 return NULL;
18727 }
18728
18729
18730 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18731 PyObject *resultobj = 0;
18732 wxDC *arg1 = (wxDC *) 0 ;
18733 int arg2 ;
18734 int arg3 ;
18735 int arg4 ;
18736 int arg5 ;
18737 void *argp1 = 0 ;
18738 int res1 = 0 ;
18739 int val2 ;
18740 int ecode2 = 0 ;
18741 int val3 ;
18742 int ecode3 = 0 ;
18743 int val4 ;
18744 int ecode4 = 0 ;
18745 int val5 ;
18746 int ecode5 = 0 ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 PyObject * obj2 = 0 ;
18750 PyObject * obj3 = 0 ;
18751 PyObject * obj4 = 0 ;
18752 char * kwnames[] = {
18753 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18754 };
18755
18756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18758 if (!SWIG_IsOK(res1)) {
18759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18760 }
18761 arg1 = reinterpret_cast< wxDC * >(argp1);
18762 ecode2 = SWIG_AsVal_int(obj1, &val2);
18763 if (!SWIG_IsOK(ecode2)) {
18764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18765 }
18766 arg2 = static_cast< int >(val2);
18767 ecode3 = SWIG_AsVal_int(obj2, &val3);
18768 if (!SWIG_IsOK(ecode3)) {
18769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18770 }
18771 arg3 = static_cast< int >(val3);
18772 ecode4 = SWIG_AsVal_int(obj3, &val4);
18773 if (!SWIG_IsOK(ecode4)) {
18774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18775 }
18776 arg4 = static_cast< int >(val4);
18777 ecode5 = SWIG_AsVal_int(obj4, &val5);
18778 if (!SWIG_IsOK(ecode5)) {
18779 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18780 }
18781 arg5 = static_cast< int >(val5);
18782 {
18783 PyThreadState* __tstate = wxPyBeginAllowThreads();
18784 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18785 wxPyEndAllowThreads(__tstate);
18786 if (PyErr_Occurred()) SWIG_fail;
18787 }
18788 resultobj = SWIG_Py_Void();
18789 return resultobj;
18790 fail:
18791 return NULL;
18792 }
18793
18794
18795 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18796 PyObject *resultobj = 0;
18797 wxDC *arg1 = (wxDC *) 0 ;
18798 wxRect *arg2 = 0 ;
18799 void *argp1 = 0 ;
18800 int res1 = 0 ;
18801 wxRect temp2 ;
18802 PyObject * obj0 = 0 ;
18803 PyObject * obj1 = 0 ;
18804 char * kwnames[] = {
18805 (char *) "self",(char *) "rect", NULL
18806 };
18807
18808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18810 if (!SWIG_IsOK(res1)) {
18811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18812 }
18813 arg1 = reinterpret_cast< wxDC * >(argp1);
18814 {
18815 arg2 = &temp2;
18816 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18817 }
18818 {
18819 PyThreadState* __tstate = wxPyBeginAllowThreads();
18820 (arg1)->DrawRectangle((wxRect const &)*arg2);
18821 wxPyEndAllowThreads(__tstate);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 }
18824 resultobj = SWIG_Py_Void();
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj = 0;
18833 wxDC *arg1 = (wxDC *) 0 ;
18834 wxPoint *arg2 = 0 ;
18835 wxSize *arg3 = 0 ;
18836 void *argp1 = 0 ;
18837 int res1 = 0 ;
18838 wxPoint temp2 ;
18839 wxSize temp3 ;
18840 PyObject * obj0 = 0 ;
18841 PyObject * obj1 = 0 ;
18842 PyObject * obj2 = 0 ;
18843 char * kwnames[] = {
18844 (char *) "self",(char *) "pt",(char *) "sz", NULL
18845 };
18846
18847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18849 if (!SWIG_IsOK(res1)) {
18850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18851 }
18852 arg1 = reinterpret_cast< wxDC * >(argp1);
18853 {
18854 arg2 = &temp2;
18855 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18856 }
18857 {
18858 arg3 = &temp3;
18859 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18860 }
18861 {
18862 PyThreadState* __tstate = wxPyBeginAllowThreads();
18863 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18864 wxPyEndAllowThreads(__tstate);
18865 if (PyErr_Occurred()) SWIG_fail;
18866 }
18867 resultobj = SWIG_Py_Void();
18868 return resultobj;
18869 fail:
18870 return NULL;
18871 }
18872
18873
18874 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18875 PyObject *resultobj = 0;
18876 wxDC *arg1 = (wxDC *) 0 ;
18877 int arg2 ;
18878 int arg3 ;
18879 int arg4 ;
18880 int arg5 ;
18881 double arg6 ;
18882 void *argp1 = 0 ;
18883 int res1 = 0 ;
18884 int val2 ;
18885 int ecode2 = 0 ;
18886 int val3 ;
18887 int ecode3 = 0 ;
18888 int val4 ;
18889 int ecode4 = 0 ;
18890 int val5 ;
18891 int ecode5 = 0 ;
18892 double val6 ;
18893 int ecode6 = 0 ;
18894 PyObject * obj0 = 0 ;
18895 PyObject * obj1 = 0 ;
18896 PyObject * obj2 = 0 ;
18897 PyObject * obj3 = 0 ;
18898 PyObject * obj4 = 0 ;
18899 PyObject * obj5 = 0 ;
18900 char * kwnames[] = {
18901 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18902 };
18903
18904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18906 if (!SWIG_IsOK(res1)) {
18907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18908 }
18909 arg1 = reinterpret_cast< wxDC * >(argp1);
18910 ecode2 = SWIG_AsVal_int(obj1, &val2);
18911 if (!SWIG_IsOK(ecode2)) {
18912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18913 }
18914 arg2 = static_cast< int >(val2);
18915 ecode3 = SWIG_AsVal_int(obj2, &val3);
18916 if (!SWIG_IsOK(ecode3)) {
18917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18918 }
18919 arg3 = static_cast< int >(val3);
18920 ecode4 = SWIG_AsVal_int(obj3, &val4);
18921 if (!SWIG_IsOK(ecode4)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18923 }
18924 arg4 = static_cast< int >(val4);
18925 ecode5 = SWIG_AsVal_int(obj4, &val5);
18926 if (!SWIG_IsOK(ecode5)) {
18927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18928 }
18929 arg5 = static_cast< int >(val5);
18930 ecode6 = SWIG_AsVal_double(obj5, &val6);
18931 if (!SWIG_IsOK(ecode6)) {
18932 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18933 }
18934 arg6 = static_cast< double >(val6);
18935 {
18936 PyThreadState* __tstate = wxPyBeginAllowThreads();
18937 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18938 wxPyEndAllowThreads(__tstate);
18939 if (PyErr_Occurred()) SWIG_fail;
18940 }
18941 resultobj = SWIG_Py_Void();
18942 return resultobj;
18943 fail:
18944 return NULL;
18945 }
18946
18947
18948 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj = 0;
18950 wxDC *arg1 = (wxDC *) 0 ;
18951 wxRect *arg2 = 0 ;
18952 double arg3 ;
18953 void *argp1 = 0 ;
18954 int res1 = 0 ;
18955 wxRect temp2 ;
18956 double val3 ;
18957 int ecode3 = 0 ;
18958 PyObject * obj0 = 0 ;
18959 PyObject * obj1 = 0 ;
18960 PyObject * obj2 = 0 ;
18961 char * kwnames[] = {
18962 (char *) "self",(char *) "r",(char *) "radius", NULL
18963 };
18964
18965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18967 if (!SWIG_IsOK(res1)) {
18968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18969 }
18970 arg1 = reinterpret_cast< wxDC * >(argp1);
18971 {
18972 arg2 = &temp2;
18973 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18974 }
18975 ecode3 = SWIG_AsVal_double(obj2, &val3);
18976 if (!SWIG_IsOK(ecode3)) {
18977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18978 }
18979 arg3 = static_cast< double >(val3);
18980 {
18981 PyThreadState* __tstate = wxPyBeginAllowThreads();
18982 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18983 wxPyEndAllowThreads(__tstate);
18984 if (PyErr_Occurred()) SWIG_fail;
18985 }
18986 resultobj = SWIG_Py_Void();
18987 return resultobj;
18988 fail:
18989 return NULL;
18990 }
18991
18992
18993 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18994 PyObject *resultobj = 0;
18995 wxDC *arg1 = (wxDC *) 0 ;
18996 wxPoint *arg2 = 0 ;
18997 wxSize *arg3 = 0 ;
18998 double arg4 ;
18999 void *argp1 = 0 ;
19000 int res1 = 0 ;
19001 wxPoint temp2 ;
19002 wxSize temp3 ;
19003 double val4 ;
19004 int ecode4 = 0 ;
19005 PyObject * obj0 = 0 ;
19006 PyObject * obj1 = 0 ;
19007 PyObject * obj2 = 0 ;
19008 PyObject * obj3 = 0 ;
19009 char * kwnames[] = {
19010 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19011 };
19012
19013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19015 if (!SWIG_IsOK(res1)) {
19016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19017 }
19018 arg1 = reinterpret_cast< wxDC * >(argp1);
19019 {
19020 arg2 = &temp2;
19021 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19022 }
19023 {
19024 arg3 = &temp3;
19025 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19026 }
19027 ecode4 = SWIG_AsVal_double(obj3, &val4);
19028 if (!SWIG_IsOK(ecode4)) {
19029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19030 }
19031 arg4 = static_cast< double >(val4);
19032 {
19033 PyThreadState* __tstate = wxPyBeginAllowThreads();
19034 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19035 wxPyEndAllowThreads(__tstate);
19036 if (PyErr_Occurred()) SWIG_fail;
19037 }
19038 resultobj = SWIG_Py_Void();
19039 return resultobj;
19040 fail:
19041 return NULL;
19042 }
19043
19044
19045 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19046 PyObject *resultobj = 0;
19047 wxDC *arg1 = (wxDC *) 0 ;
19048 int arg2 ;
19049 int arg3 ;
19050 int arg4 ;
19051 void *argp1 = 0 ;
19052 int res1 = 0 ;
19053 int val2 ;
19054 int ecode2 = 0 ;
19055 int val3 ;
19056 int ecode3 = 0 ;
19057 int val4 ;
19058 int ecode4 = 0 ;
19059 PyObject * obj0 = 0 ;
19060 PyObject * obj1 = 0 ;
19061 PyObject * obj2 = 0 ;
19062 PyObject * obj3 = 0 ;
19063 char * kwnames[] = {
19064 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19065 };
19066
19067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19069 if (!SWIG_IsOK(res1)) {
19070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19071 }
19072 arg1 = reinterpret_cast< wxDC * >(argp1);
19073 ecode2 = SWIG_AsVal_int(obj1, &val2);
19074 if (!SWIG_IsOK(ecode2)) {
19075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19076 }
19077 arg2 = static_cast< int >(val2);
19078 ecode3 = SWIG_AsVal_int(obj2, &val3);
19079 if (!SWIG_IsOK(ecode3)) {
19080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19081 }
19082 arg3 = static_cast< int >(val3);
19083 ecode4 = SWIG_AsVal_int(obj3, &val4);
19084 if (!SWIG_IsOK(ecode4)) {
19085 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19086 }
19087 arg4 = static_cast< int >(val4);
19088 {
19089 PyThreadState* __tstate = wxPyBeginAllowThreads();
19090 (arg1)->DrawCircle(arg2,arg3,arg4);
19091 wxPyEndAllowThreads(__tstate);
19092 if (PyErr_Occurred()) SWIG_fail;
19093 }
19094 resultobj = SWIG_Py_Void();
19095 return resultobj;
19096 fail:
19097 return NULL;
19098 }
19099
19100
19101 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19102 PyObject *resultobj = 0;
19103 wxDC *arg1 = (wxDC *) 0 ;
19104 wxPoint *arg2 = 0 ;
19105 int arg3 ;
19106 void *argp1 = 0 ;
19107 int res1 = 0 ;
19108 wxPoint temp2 ;
19109 int val3 ;
19110 int ecode3 = 0 ;
19111 PyObject * obj0 = 0 ;
19112 PyObject * obj1 = 0 ;
19113 PyObject * obj2 = 0 ;
19114 char * kwnames[] = {
19115 (char *) "self",(char *) "pt",(char *) "radius", NULL
19116 };
19117
19118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19120 if (!SWIG_IsOK(res1)) {
19121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19122 }
19123 arg1 = reinterpret_cast< wxDC * >(argp1);
19124 {
19125 arg2 = &temp2;
19126 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19127 }
19128 ecode3 = SWIG_AsVal_int(obj2, &val3);
19129 if (!SWIG_IsOK(ecode3)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19131 }
19132 arg3 = static_cast< int >(val3);
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19136 wxPyEndAllowThreads(__tstate);
19137 if (PyErr_Occurred()) SWIG_fail;
19138 }
19139 resultobj = SWIG_Py_Void();
19140 return resultobj;
19141 fail:
19142 return NULL;
19143 }
19144
19145
19146 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19147 PyObject *resultobj = 0;
19148 wxDC *arg1 = (wxDC *) 0 ;
19149 int arg2 ;
19150 int arg3 ;
19151 int arg4 ;
19152 int arg5 ;
19153 void *argp1 = 0 ;
19154 int res1 = 0 ;
19155 int val2 ;
19156 int ecode2 = 0 ;
19157 int val3 ;
19158 int ecode3 = 0 ;
19159 int val4 ;
19160 int ecode4 = 0 ;
19161 int val5 ;
19162 int ecode5 = 0 ;
19163 PyObject * obj0 = 0 ;
19164 PyObject * obj1 = 0 ;
19165 PyObject * obj2 = 0 ;
19166 PyObject * obj3 = 0 ;
19167 PyObject * obj4 = 0 ;
19168 char * kwnames[] = {
19169 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19170 };
19171
19172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19174 if (!SWIG_IsOK(res1)) {
19175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19176 }
19177 arg1 = reinterpret_cast< wxDC * >(argp1);
19178 ecode2 = SWIG_AsVal_int(obj1, &val2);
19179 if (!SWIG_IsOK(ecode2)) {
19180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19181 }
19182 arg2 = static_cast< int >(val2);
19183 ecode3 = SWIG_AsVal_int(obj2, &val3);
19184 if (!SWIG_IsOK(ecode3)) {
19185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19186 }
19187 arg3 = static_cast< int >(val3);
19188 ecode4 = SWIG_AsVal_int(obj3, &val4);
19189 if (!SWIG_IsOK(ecode4)) {
19190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19191 }
19192 arg4 = static_cast< int >(val4);
19193 ecode5 = SWIG_AsVal_int(obj4, &val5);
19194 if (!SWIG_IsOK(ecode5)) {
19195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19196 }
19197 arg5 = static_cast< int >(val5);
19198 {
19199 PyThreadState* __tstate = wxPyBeginAllowThreads();
19200 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19201 wxPyEndAllowThreads(__tstate);
19202 if (PyErr_Occurred()) SWIG_fail;
19203 }
19204 resultobj = SWIG_Py_Void();
19205 return resultobj;
19206 fail:
19207 return NULL;
19208 }
19209
19210
19211 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19212 PyObject *resultobj = 0;
19213 wxDC *arg1 = (wxDC *) 0 ;
19214 wxRect *arg2 = 0 ;
19215 void *argp1 = 0 ;
19216 int res1 = 0 ;
19217 wxRect temp2 ;
19218 PyObject * obj0 = 0 ;
19219 PyObject * obj1 = 0 ;
19220 char * kwnames[] = {
19221 (char *) "self",(char *) "rect", NULL
19222 };
19223
19224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19226 if (!SWIG_IsOK(res1)) {
19227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19228 }
19229 arg1 = reinterpret_cast< wxDC * >(argp1);
19230 {
19231 arg2 = &temp2;
19232 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19233 }
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
19236 (arg1)->DrawEllipse((wxRect const &)*arg2);
19237 wxPyEndAllowThreads(__tstate);
19238 if (PyErr_Occurred()) SWIG_fail;
19239 }
19240 resultobj = SWIG_Py_Void();
19241 return resultobj;
19242 fail:
19243 return NULL;
19244 }
19245
19246
19247 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj = 0;
19249 wxDC *arg1 = (wxDC *) 0 ;
19250 wxPoint *arg2 = 0 ;
19251 wxSize *arg3 = 0 ;
19252 void *argp1 = 0 ;
19253 int res1 = 0 ;
19254 wxPoint temp2 ;
19255 wxSize temp3 ;
19256 PyObject * obj0 = 0 ;
19257 PyObject * obj1 = 0 ;
19258 PyObject * obj2 = 0 ;
19259 char * kwnames[] = {
19260 (char *) "self",(char *) "pt",(char *) "sz", NULL
19261 };
19262
19263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19265 if (!SWIG_IsOK(res1)) {
19266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19267 }
19268 arg1 = reinterpret_cast< wxDC * >(argp1);
19269 {
19270 arg2 = &temp2;
19271 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19272 }
19273 {
19274 arg3 = &temp3;
19275 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19276 }
19277 {
19278 PyThreadState* __tstate = wxPyBeginAllowThreads();
19279 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19280 wxPyEndAllowThreads(__tstate);
19281 if (PyErr_Occurred()) SWIG_fail;
19282 }
19283 resultobj = SWIG_Py_Void();
19284 return resultobj;
19285 fail:
19286 return NULL;
19287 }
19288
19289
19290 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19291 PyObject *resultobj = 0;
19292 wxDC *arg1 = (wxDC *) 0 ;
19293 wxIcon *arg2 = 0 ;
19294 int arg3 ;
19295 int arg4 ;
19296 void *argp1 = 0 ;
19297 int res1 = 0 ;
19298 void *argp2 = 0 ;
19299 int res2 = 0 ;
19300 int val3 ;
19301 int ecode3 = 0 ;
19302 int val4 ;
19303 int ecode4 = 0 ;
19304 PyObject * obj0 = 0 ;
19305 PyObject * obj1 = 0 ;
19306 PyObject * obj2 = 0 ;
19307 PyObject * obj3 = 0 ;
19308 char * kwnames[] = {
19309 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19310 };
19311
19312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19314 if (!SWIG_IsOK(res1)) {
19315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19316 }
19317 arg1 = reinterpret_cast< wxDC * >(argp1);
19318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19319 if (!SWIG_IsOK(res2)) {
19320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19321 }
19322 if (!argp2) {
19323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19324 }
19325 arg2 = reinterpret_cast< wxIcon * >(argp2);
19326 ecode3 = SWIG_AsVal_int(obj2, &val3);
19327 if (!SWIG_IsOK(ecode3)) {
19328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19329 }
19330 arg3 = static_cast< int >(val3);
19331 ecode4 = SWIG_AsVal_int(obj3, &val4);
19332 if (!SWIG_IsOK(ecode4)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19334 }
19335 arg4 = static_cast< int >(val4);
19336 {
19337 PyThreadState* __tstate = wxPyBeginAllowThreads();
19338 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19339 wxPyEndAllowThreads(__tstate);
19340 if (PyErr_Occurred()) SWIG_fail;
19341 }
19342 resultobj = SWIG_Py_Void();
19343 return resultobj;
19344 fail:
19345 return NULL;
19346 }
19347
19348
19349 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19350 PyObject *resultobj = 0;
19351 wxDC *arg1 = (wxDC *) 0 ;
19352 wxIcon *arg2 = 0 ;
19353 wxPoint *arg3 = 0 ;
19354 void *argp1 = 0 ;
19355 int res1 = 0 ;
19356 void *argp2 = 0 ;
19357 int res2 = 0 ;
19358 wxPoint temp3 ;
19359 PyObject * obj0 = 0 ;
19360 PyObject * obj1 = 0 ;
19361 PyObject * obj2 = 0 ;
19362 char * kwnames[] = {
19363 (char *) "self",(char *) "icon",(char *) "pt", NULL
19364 };
19365
19366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19368 if (!SWIG_IsOK(res1)) {
19369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19370 }
19371 arg1 = reinterpret_cast< wxDC * >(argp1);
19372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19373 if (!SWIG_IsOK(res2)) {
19374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19375 }
19376 if (!argp2) {
19377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19378 }
19379 arg2 = reinterpret_cast< wxIcon * >(argp2);
19380 {
19381 arg3 = &temp3;
19382 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19383 }
19384 {
19385 PyThreadState* __tstate = wxPyBeginAllowThreads();
19386 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 resultobj = SWIG_Py_Void();
19391 return resultobj;
19392 fail:
19393 return NULL;
19394 }
19395
19396
19397 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19398 PyObject *resultobj = 0;
19399 wxDC *arg1 = (wxDC *) 0 ;
19400 wxBitmap *arg2 = 0 ;
19401 int arg3 ;
19402 int arg4 ;
19403 bool arg5 = (bool) false ;
19404 void *argp1 = 0 ;
19405 int res1 = 0 ;
19406 void *argp2 = 0 ;
19407 int res2 = 0 ;
19408 int val3 ;
19409 int ecode3 = 0 ;
19410 int val4 ;
19411 int ecode4 = 0 ;
19412 bool val5 ;
19413 int ecode5 = 0 ;
19414 PyObject * obj0 = 0 ;
19415 PyObject * obj1 = 0 ;
19416 PyObject * obj2 = 0 ;
19417 PyObject * obj3 = 0 ;
19418 PyObject * obj4 = 0 ;
19419 char * kwnames[] = {
19420 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19421 };
19422
19423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19425 if (!SWIG_IsOK(res1)) {
19426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19427 }
19428 arg1 = reinterpret_cast< wxDC * >(argp1);
19429 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19430 if (!SWIG_IsOK(res2)) {
19431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19432 }
19433 if (!argp2) {
19434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19435 }
19436 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19437 ecode3 = SWIG_AsVal_int(obj2, &val3);
19438 if (!SWIG_IsOK(ecode3)) {
19439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19440 }
19441 arg3 = static_cast< int >(val3);
19442 ecode4 = SWIG_AsVal_int(obj3, &val4);
19443 if (!SWIG_IsOK(ecode4)) {
19444 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19445 }
19446 arg4 = static_cast< int >(val4);
19447 if (obj4) {
19448 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19449 if (!SWIG_IsOK(ecode5)) {
19450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19451 }
19452 arg5 = static_cast< bool >(val5);
19453 }
19454 {
19455 PyThreadState* __tstate = wxPyBeginAllowThreads();
19456 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19457 wxPyEndAllowThreads(__tstate);
19458 if (PyErr_Occurred()) SWIG_fail;
19459 }
19460 resultobj = SWIG_Py_Void();
19461 return resultobj;
19462 fail:
19463 return NULL;
19464 }
19465
19466
19467 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19468 PyObject *resultobj = 0;
19469 wxDC *arg1 = (wxDC *) 0 ;
19470 wxBitmap *arg2 = 0 ;
19471 wxPoint *arg3 = 0 ;
19472 bool arg4 = (bool) false ;
19473 void *argp1 = 0 ;
19474 int res1 = 0 ;
19475 void *argp2 = 0 ;
19476 int res2 = 0 ;
19477 wxPoint temp3 ;
19478 bool val4 ;
19479 int ecode4 = 0 ;
19480 PyObject * obj0 = 0 ;
19481 PyObject * obj1 = 0 ;
19482 PyObject * obj2 = 0 ;
19483 PyObject * obj3 = 0 ;
19484 char * kwnames[] = {
19485 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19486 };
19487
19488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19490 if (!SWIG_IsOK(res1)) {
19491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19492 }
19493 arg1 = reinterpret_cast< wxDC * >(argp1);
19494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19495 if (!SWIG_IsOK(res2)) {
19496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19497 }
19498 if (!argp2) {
19499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19500 }
19501 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19502 {
19503 arg3 = &temp3;
19504 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19505 }
19506 if (obj3) {
19507 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19508 if (!SWIG_IsOK(ecode4)) {
19509 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19510 }
19511 arg4 = static_cast< bool >(val4);
19512 }
19513 {
19514 PyThreadState* __tstate = wxPyBeginAllowThreads();
19515 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19516 wxPyEndAllowThreads(__tstate);
19517 if (PyErr_Occurred()) SWIG_fail;
19518 }
19519 resultobj = SWIG_Py_Void();
19520 return resultobj;
19521 fail:
19522 return NULL;
19523 }
19524
19525
19526 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19527 PyObject *resultobj = 0;
19528 wxDC *arg1 = (wxDC *) 0 ;
19529 wxString *arg2 = 0 ;
19530 int arg3 ;
19531 int arg4 ;
19532 void *argp1 = 0 ;
19533 int res1 = 0 ;
19534 bool temp2 = false ;
19535 int val3 ;
19536 int ecode3 = 0 ;
19537 int val4 ;
19538 int ecode4 = 0 ;
19539 PyObject * obj0 = 0 ;
19540 PyObject * obj1 = 0 ;
19541 PyObject * obj2 = 0 ;
19542 PyObject * obj3 = 0 ;
19543 char * kwnames[] = {
19544 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19545 };
19546
19547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19549 if (!SWIG_IsOK(res1)) {
19550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19551 }
19552 arg1 = reinterpret_cast< wxDC * >(argp1);
19553 {
19554 arg2 = wxString_in_helper(obj1);
19555 if (arg2 == NULL) SWIG_fail;
19556 temp2 = true;
19557 }
19558 ecode3 = SWIG_AsVal_int(obj2, &val3);
19559 if (!SWIG_IsOK(ecode3)) {
19560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19561 }
19562 arg3 = static_cast< int >(val3);
19563 ecode4 = SWIG_AsVal_int(obj3, &val4);
19564 if (!SWIG_IsOK(ecode4)) {
19565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19566 }
19567 arg4 = static_cast< int >(val4);
19568 {
19569 PyThreadState* __tstate = wxPyBeginAllowThreads();
19570 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19571 wxPyEndAllowThreads(__tstate);
19572 if (PyErr_Occurred()) SWIG_fail;
19573 }
19574 resultobj = SWIG_Py_Void();
19575 {
19576 if (temp2)
19577 delete arg2;
19578 }
19579 return resultobj;
19580 fail:
19581 {
19582 if (temp2)
19583 delete arg2;
19584 }
19585 return NULL;
19586 }
19587
19588
19589 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19590 PyObject *resultobj = 0;
19591 wxDC *arg1 = (wxDC *) 0 ;
19592 wxString *arg2 = 0 ;
19593 wxPoint *arg3 = 0 ;
19594 void *argp1 = 0 ;
19595 int res1 = 0 ;
19596 bool temp2 = false ;
19597 wxPoint temp3 ;
19598 PyObject * obj0 = 0 ;
19599 PyObject * obj1 = 0 ;
19600 PyObject * obj2 = 0 ;
19601 char * kwnames[] = {
19602 (char *) "self",(char *) "text",(char *) "pt", NULL
19603 };
19604
19605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19607 if (!SWIG_IsOK(res1)) {
19608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19609 }
19610 arg1 = reinterpret_cast< wxDC * >(argp1);
19611 {
19612 arg2 = wxString_in_helper(obj1);
19613 if (arg2 == NULL) SWIG_fail;
19614 temp2 = true;
19615 }
19616 {
19617 arg3 = &temp3;
19618 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19619 }
19620 {
19621 PyThreadState* __tstate = wxPyBeginAllowThreads();
19622 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19623 wxPyEndAllowThreads(__tstate);
19624 if (PyErr_Occurred()) SWIG_fail;
19625 }
19626 resultobj = SWIG_Py_Void();
19627 {
19628 if (temp2)
19629 delete arg2;
19630 }
19631 return resultobj;
19632 fail:
19633 {
19634 if (temp2)
19635 delete arg2;
19636 }
19637 return NULL;
19638 }
19639
19640
19641 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19642 PyObject *resultobj = 0;
19643 wxDC *arg1 = (wxDC *) 0 ;
19644 wxString *arg2 = 0 ;
19645 int arg3 ;
19646 int arg4 ;
19647 double arg5 ;
19648 void *argp1 = 0 ;
19649 int res1 = 0 ;
19650 bool temp2 = false ;
19651 int val3 ;
19652 int ecode3 = 0 ;
19653 int val4 ;
19654 int ecode4 = 0 ;
19655 double val5 ;
19656 int ecode5 = 0 ;
19657 PyObject * obj0 = 0 ;
19658 PyObject * obj1 = 0 ;
19659 PyObject * obj2 = 0 ;
19660 PyObject * obj3 = 0 ;
19661 PyObject * obj4 = 0 ;
19662 char * kwnames[] = {
19663 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19664 };
19665
19666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19668 if (!SWIG_IsOK(res1)) {
19669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19670 }
19671 arg1 = reinterpret_cast< wxDC * >(argp1);
19672 {
19673 arg2 = wxString_in_helper(obj1);
19674 if (arg2 == NULL) SWIG_fail;
19675 temp2 = true;
19676 }
19677 ecode3 = SWIG_AsVal_int(obj2, &val3);
19678 if (!SWIG_IsOK(ecode3)) {
19679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19680 }
19681 arg3 = static_cast< int >(val3);
19682 ecode4 = SWIG_AsVal_int(obj3, &val4);
19683 if (!SWIG_IsOK(ecode4)) {
19684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19685 }
19686 arg4 = static_cast< int >(val4);
19687 ecode5 = SWIG_AsVal_double(obj4, &val5);
19688 if (!SWIG_IsOK(ecode5)) {
19689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19690 }
19691 arg5 = static_cast< double >(val5);
19692 {
19693 PyThreadState* __tstate = wxPyBeginAllowThreads();
19694 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19695 wxPyEndAllowThreads(__tstate);
19696 if (PyErr_Occurred()) SWIG_fail;
19697 }
19698 resultobj = SWIG_Py_Void();
19699 {
19700 if (temp2)
19701 delete arg2;
19702 }
19703 return resultobj;
19704 fail:
19705 {
19706 if (temp2)
19707 delete arg2;
19708 }
19709 return NULL;
19710 }
19711
19712
19713 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19714 PyObject *resultobj = 0;
19715 wxDC *arg1 = (wxDC *) 0 ;
19716 wxString *arg2 = 0 ;
19717 wxPoint *arg3 = 0 ;
19718 double arg4 ;
19719 void *argp1 = 0 ;
19720 int res1 = 0 ;
19721 bool temp2 = false ;
19722 wxPoint temp3 ;
19723 double val4 ;
19724 int ecode4 = 0 ;
19725 PyObject * obj0 = 0 ;
19726 PyObject * obj1 = 0 ;
19727 PyObject * obj2 = 0 ;
19728 PyObject * obj3 = 0 ;
19729 char * kwnames[] = {
19730 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19731 };
19732
19733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19735 if (!SWIG_IsOK(res1)) {
19736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19737 }
19738 arg1 = reinterpret_cast< wxDC * >(argp1);
19739 {
19740 arg2 = wxString_in_helper(obj1);
19741 if (arg2 == NULL) SWIG_fail;
19742 temp2 = true;
19743 }
19744 {
19745 arg3 = &temp3;
19746 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19747 }
19748 ecode4 = SWIG_AsVal_double(obj3, &val4);
19749 if (!SWIG_IsOK(ecode4)) {
19750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19751 }
19752 arg4 = static_cast< double >(val4);
19753 {
19754 PyThreadState* __tstate = wxPyBeginAllowThreads();
19755 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19756 wxPyEndAllowThreads(__tstate);
19757 if (PyErr_Occurred()) SWIG_fail;
19758 }
19759 resultobj = SWIG_Py_Void();
19760 {
19761 if (temp2)
19762 delete arg2;
19763 }
19764 return resultobj;
19765 fail:
19766 {
19767 if (temp2)
19768 delete arg2;
19769 }
19770 return NULL;
19771 }
19772
19773
19774 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj = 0;
19776 wxDC *arg1 = (wxDC *) 0 ;
19777 int arg2 ;
19778 int arg3 ;
19779 int arg4 ;
19780 int arg5 ;
19781 wxDC *arg6 = (wxDC *) 0 ;
19782 int arg7 ;
19783 int arg8 ;
19784 int arg9 = (int) wxCOPY ;
19785 bool arg10 = (bool) false ;
19786 int arg11 = (int) -1 ;
19787 int arg12 = (int) -1 ;
19788 bool result;
19789 void *argp1 = 0 ;
19790 int res1 = 0 ;
19791 int val2 ;
19792 int ecode2 = 0 ;
19793 int val3 ;
19794 int ecode3 = 0 ;
19795 int val4 ;
19796 int ecode4 = 0 ;
19797 int val5 ;
19798 int ecode5 = 0 ;
19799 void *argp6 = 0 ;
19800 int res6 = 0 ;
19801 int val7 ;
19802 int ecode7 = 0 ;
19803 int val8 ;
19804 int ecode8 = 0 ;
19805 int val9 ;
19806 int ecode9 = 0 ;
19807 bool val10 ;
19808 int ecode10 = 0 ;
19809 int val11 ;
19810 int ecode11 = 0 ;
19811 int val12 ;
19812 int ecode12 = 0 ;
19813 PyObject * obj0 = 0 ;
19814 PyObject * obj1 = 0 ;
19815 PyObject * obj2 = 0 ;
19816 PyObject * obj3 = 0 ;
19817 PyObject * obj4 = 0 ;
19818 PyObject * obj5 = 0 ;
19819 PyObject * obj6 = 0 ;
19820 PyObject * obj7 = 0 ;
19821 PyObject * obj8 = 0 ;
19822 PyObject * obj9 = 0 ;
19823 PyObject * obj10 = 0 ;
19824 PyObject * obj11 = 0 ;
19825 char * kwnames[] = {
19826 (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
19827 };
19828
19829 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;
19830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19831 if (!SWIG_IsOK(res1)) {
19832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19833 }
19834 arg1 = reinterpret_cast< wxDC * >(argp1);
19835 ecode2 = SWIG_AsVal_int(obj1, &val2);
19836 if (!SWIG_IsOK(ecode2)) {
19837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19838 }
19839 arg2 = static_cast< int >(val2);
19840 ecode3 = SWIG_AsVal_int(obj2, &val3);
19841 if (!SWIG_IsOK(ecode3)) {
19842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19843 }
19844 arg3 = static_cast< int >(val3);
19845 ecode4 = SWIG_AsVal_int(obj3, &val4);
19846 if (!SWIG_IsOK(ecode4)) {
19847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19848 }
19849 arg4 = static_cast< int >(val4);
19850 ecode5 = SWIG_AsVal_int(obj4, &val5);
19851 if (!SWIG_IsOK(ecode5)) {
19852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19853 }
19854 arg5 = static_cast< int >(val5);
19855 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19856 if (!SWIG_IsOK(res6)) {
19857 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19858 }
19859 arg6 = reinterpret_cast< wxDC * >(argp6);
19860 ecode7 = SWIG_AsVal_int(obj6, &val7);
19861 if (!SWIG_IsOK(ecode7)) {
19862 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19863 }
19864 arg7 = static_cast< int >(val7);
19865 ecode8 = SWIG_AsVal_int(obj7, &val8);
19866 if (!SWIG_IsOK(ecode8)) {
19867 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19868 }
19869 arg8 = static_cast< int >(val8);
19870 if (obj8) {
19871 ecode9 = SWIG_AsVal_int(obj8, &val9);
19872 if (!SWIG_IsOK(ecode9)) {
19873 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19874 }
19875 arg9 = static_cast< int >(val9);
19876 }
19877 if (obj9) {
19878 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19879 if (!SWIG_IsOK(ecode10)) {
19880 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19881 }
19882 arg10 = static_cast< bool >(val10);
19883 }
19884 if (obj10) {
19885 ecode11 = SWIG_AsVal_int(obj10, &val11);
19886 if (!SWIG_IsOK(ecode11)) {
19887 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19888 }
19889 arg11 = static_cast< int >(val11);
19890 }
19891 if (obj11) {
19892 ecode12 = SWIG_AsVal_int(obj11, &val12);
19893 if (!SWIG_IsOK(ecode12)) {
19894 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19895 }
19896 arg12 = static_cast< int >(val12);
19897 }
19898 {
19899 PyThreadState* __tstate = wxPyBeginAllowThreads();
19900 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19901 wxPyEndAllowThreads(__tstate);
19902 if (PyErr_Occurred()) SWIG_fail;
19903 }
19904 {
19905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19906 }
19907 return resultobj;
19908 fail:
19909 return NULL;
19910 }
19911
19912
19913 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19914 PyObject *resultobj = 0;
19915 wxDC *arg1 = (wxDC *) 0 ;
19916 wxPoint *arg2 = 0 ;
19917 wxSize *arg3 = 0 ;
19918 wxDC *arg4 = (wxDC *) 0 ;
19919 wxPoint *arg5 = 0 ;
19920 int arg6 = (int) wxCOPY ;
19921 bool arg7 = (bool) false ;
19922 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19923 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19924 bool result;
19925 void *argp1 = 0 ;
19926 int res1 = 0 ;
19927 wxPoint temp2 ;
19928 wxSize temp3 ;
19929 void *argp4 = 0 ;
19930 int res4 = 0 ;
19931 wxPoint temp5 ;
19932 int val6 ;
19933 int ecode6 = 0 ;
19934 bool val7 ;
19935 int ecode7 = 0 ;
19936 wxPoint temp8 ;
19937 PyObject * obj0 = 0 ;
19938 PyObject * obj1 = 0 ;
19939 PyObject * obj2 = 0 ;
19940 PyObject * obj3 = 0 ;
19941 PyObject * obj4 = 0 ;
19942 PyObject * obj5 = 0 ;
19943 PyObject * obj6 = 0 ;
19944 PyObject * obj7 = 0 ;
19945 char * kwnames[] = {
19946 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19947 };
19948
19949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19951 if (!SWIG_IsOK(res1)) {
19952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19953 }
19954 arg1 = reinterpret_cast< wxDC * >(argp1);
19955 {
19956 arg2 = &temp2;
19957 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19958 }
19959 {
19960 arg3 = &temp3;
19961 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19962 }
19963 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19964 if (!SWIG_IsOK(res4)) {
19965 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19966 }
19967 arg4 = reinterpret_cast< wxDC * >(argp4);
19968 {
19969 arg5 = &temp5;
19970 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19971 }
19972 if (obj5) {
19973 ecode6 = SWIG_AsVal_int(obj5, &val6);
19974 if (!SWIG_IsOK(ecode6)) {
19975 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19976 }
19977 arg6 = static_cast< int >(val6);
19978 }
19979 if (obj6) {
19980 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19981 if (!SWIG_IsOK(ecode7)) {
19982 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19983 }
19984 arg7 = static_cast< bool >(val7);
19985 }
19986 if (obj7) {
19987 {
19988 arg8 = &temp8;
19989 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19990 }
19991 }
19992 {
19993 PyThreadState* __tstate = wxPyBeginAllowThreads();
19994 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19995 wxPyEndAllowThreads(__tstate);
19996 if (PyErr_Occurred()) SWIG_fail;
19997 }
19998 {
19999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20000 }
20001 return resultobj;
20002 fail:
20003 return NULL;
20004 }
20005
20006
20007 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20008 PyObject *resultobj = 0;
20009 wxDC *arg1 = (wxDC *) 0 ;
20010 int arg2 ;
20011 int arg3 ;
20012 int arg4 ;
20013 int arg5 ;
20014 void *argp1 = 0 ;
20015 int res1 = 0 ;
20016 int val2 ;
20017 int ecode2 = 0 ;
20018 int val3 ;
20019 int ecode3 = 0 ;
20020 int val4 ;
20021 int ecode4 = 0 ;
20022 int val5 ;
20023 int ecode5 = 0 ;
20024 PyObject * obj0 = 0 ;
20025 PyObject * obj1 = 0 ;
20026 PyObject * obj2 = 0 ;
20027 PyObject * obj3 = 0 ;
20028 PyObject * obj4 = 0 ;
20029 char * kwnames[] = {
20030 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20031 };
20032
20033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20035 if (!SWIG_IsOK(res1)) {
20036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20037 }
20038 arg1 = reinterpret_cast< wxDC * >(argp1);
20039 ecode2 = SWIG_AsVal_int(obj1, &val2);
20040 if (!SWIG_IsOK(ecode2)) {
20041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20042 }
20043 arg2 = static_cast< int >(val2);
20044 ecode3 = SWIG_AsVal_int(obj2, &val3);
20045 if (!SWIG_IsOK(ecode3)) {
20046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20047 }
20048 arg3 = static_cast< int >(val3);
20049 ecode4 = SWIG_AsVal_int(obj3, &val4);
20050 if (!SWIG_IsOK(ecode4)) {
20051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20052 }
20053 arg4 = static_cast< int >(val4);
20054 ecode5 = SWIG_AsVal_int(obj4, &val5);
20055 if (!SWIG_IsOK(ecode5)) {
20056 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20057 }
20058 arg5 = static_cast< int >(val5);
20059 {
20060 PyThreadState* __tstate = wxPyBeginAllowThreads();
20061 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20062 wxPyEndAllowThreads(__tstate);
20063 if (PyErr_Occurred()) SWIG_fail;
20064 }
20065 resultobj = SWIG_Py_Void();
20066 return resultobj;
20067 fail:
20068 return NULL;
20069 }
20070
20071
20072 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20073 PyObject *resultobj = 0;
20074 wxDC *arg1 = (wxDC *) 0 ;
20075 wxPoint *arg2 = 0 ;
20076 wxSize *arg3 = 0 ;
20077 void *argp1 = 0 ;
20078 int res1 = 0 ;
20079 wxPoint temp2 ;
20080 wxSize temp3 ;
20081 PyObject * obj0 = 0 ;
20082 PyObject * obj1 = 0 ;
20083 PyObject * obj2 = 0 ;
20084 char * kwnames[] = {
20085 (char *) "self",(char *) "pt",(char *) "sz", NULL
20086 };
20087
20088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20090 if (!SWIG_IsOK(res1)) {
20091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20092 }
20093 arg1 = reinterpret_cast< wxDC * >(argp1);
20094 {
20095 arg2 = &temp2;
20096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20097 }
20098 {
20099 arg3 = &temp3;
20100 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20101 }
20102 {
20103 PyThreadState* __tstate = wxPyBeginAllowThreads();
20104 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20105 wxPyEndAllowThreads(__tstate);
20106 if (PyErr_Occurred()) SWIG_fail;
20107 }
20108 resultobj = SWIG_Py_Void();
20109 return resultobj;
20110 fail:
20111 return NULL;
20112 }
20113
20114
20115 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20116 PyObject *resultobj = 0;
20117 wxDC *arg1 = (wxDC *) 0 ;
20118 wxRegion *arg2 = 0 ;
20119 void *argp1 = 0 ;
20120 int res1 = 0 ;
20121 void *argp2 = 0 ;
20122 int res2 = 0 ;
20123 PyObject * obj0 = 0 ;
20124 PyObject * obj1 = 0 ;
20125 char * kwnames[] = {
20126 (char *) "self",(char *) "region", NULL
20127 };
20128
20129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20131 if (!SWIG_IsOK(res1)) {
20132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20133 }
20134 arg1 = reinterpret_cast< wxDC * >(argp1);
20135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20136 if (!SWIG_IsOK(res2)) {
20137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20138 }
20139 if (!argp2) {
20140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20141 }
20142 arg2 = reinterpret_cast< wxRegion * >(argp2);
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 resultobj = SWIG_Py_Void();
20150 return resultobj;
20151 fail:
20152 return NULL;
20153 }
20154
20155
20156 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20157 PyObject *resultobj = 0;
20158 wxDC *arg1 = (wxDC *) 0 ;
20159 wxRect *arg2 = 0 ;
20160 void *argp1 = 0 ;
20161 int res1 = 0 ;
20162 wxRect temp2 ;
20163 PyObject * obj0 = 0 ;
20164 PyObject * obj1 = 0 ;
20165 char * kwnames[] = {
20166 (char *) "self",(char *) "rect", NULL
20167 };
20168
20169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20171 if (!SWIG_IsOK(res1)) {
20172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20173 }
20174 arg1 = reinterpret_cast< wxDC * >(argp1);
20175 {
20176 arg2 = &temp2;
20177 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20178 }
20179 {
20180 PyThreadState* __tstate = wxPyBeginAllowThreads();
20181 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20182 wxPyEndAllowThreads(__tstate);
20183 if (PyErr_Occurred()) SWIG_fail;
20184 }
20185 resultobj = SWIG_Py_Void();
20186 return resultobj;
20187 fail:
20188 return NULL;
20189 }
20190
20191
20192 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj = 0;
20194 wxDC *arg1 = (wxDC *) 0 ;
20195 int arg2 ;
20196 wxPoint *arg3 = (wxPoint *) 0 ;
20197 int arg4 = (int) 0 ;
20198 int arg5 = (int) 0 ;
20199 void *argp1 = 0 ;
20200 int res1 = 0 ;
20201 int val4 ;
20202 int ecode4 = 0 ;
20203 int val5 ;
20204 int ecode5 = 0 ;
20205 PyObject * obj0 = 0 ;
20206 PyObject * obj1 = 0 ;
20207 PyObject * obj2 = 0 ;
20208 PyObject * obj3 = 0 ;
20209 char * kwnames[] = {
20210 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20211 };
20212
20213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20215 if (!SWIG_IsOK(res1)) {
20216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20217 }
20218 arg1 = reinterpret_cast< wxDC * >(argp1);
20219 {
20220 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20221 if (arg3 == NULL) SWIG_fail;
20222 }
20223 if (obj2) {
20224 ecode4 = SWIG_AsVal_int(obj2, &val4);
20225 if (!SWIG_IsOK(ecode4)) {
20226 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20227 }
20228 arg4 = static_cast< int >(val4);
20229 }
20230 if (obj3) {
20231 ecode5 = SWIG_AsVal_int(obj3, &val5);
20232 if (!SWIG_IsOK(ecode5)) {
20233 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20234 }
20235 arg5 = static_cast< int >(val5);
20236 }
20237 {
20238 PyThreadState* __tstate = wxPyBeginAllowThreads();
20239 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20240 wxPyEndAllowThreads(__tstate);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 }
20243 resultobj = SWIG_Py_Void();
20244 {
20245 if (arg3) delete [] arg3;
20246 }
20247 return resultobj;
20248 fail:
20249 {
20250 if (arg3) delete [] arg3;
20251 }
20252 return NULL;
20253 }
20254
20255
20256 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20257 PyObject *resultobj = 0;
20258 wxDC *arg1 = (wxDC *) 0 ;
20259 int arg2 ;
20260 wxPoint *arg3 = (wxPoint *) 0 ;
20261 int arg4 = (int) 0 ;
20262 int arg5 = (int) 0 ;
20263 int arg6 = (int) wxODDEVEN_RULE ;
20264 void *argp1 = 0 ;
20265 int res1 = 0 ;
20266 int val4 ;
20267 int ecode4 = 0 ;
20268 int val5 ;
20269 int ecode5 = 0 ;
20270 int val6 ;
20271 int ecode6 = 0 ;
20272 PyObject * obj0 = 0 ;
20273 PyObject * obj1 = 0 ;
20274 PyObject * obj2 = 0 ;
20275 PyObject * obj3 = 0 ;
20276 PyObject * obj4 = 0 ;
20277 char * kwnames[] = {
20278 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20279 };
20280
20281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20283 if (!SWIG_IsOK(res1)) {
20284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20285 }
20286 arg1 = reinterpret_cast< wxDC * >(argp1);
20287 {
20288 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20289 if (arg3 == NULL) SWIG_fail;
20290 }
20291 if (obj2) {
20292 ecode4 = SWIG_AsVal_int(obj2, &val4);
20293 if (!SWIG_IsOK(ecode4)) {
20294 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20295 }
20296 arg4 = static_cast< int >(val4);
20297 }
20298 if (obj3) {
20299 ecode5 = SWIG_AsVal_int(obj3, &val5);
20300 if (!SWIG_IsOK(ecode5)) {
20301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20302 }
20303 arg5 = static_cast< int >(val5);
20304 }
20305 if (obj4) {
20306 ecode6 = SWIG_AsVal_int(obj4, &val6);
20307 if (!SWIG_IsOK(ecode6)) {
20308 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20309 }
20310 arg6 = static_cast< int >(val6);
20311 }
20312 {
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_Py_Void();
20319 {
20320 if (arg3) delete [] arg3;
20321 }
20322 return resultobj;
20323 fail:
20324 {
20325 if (arg3) delete [] arg3;
20326 }
20327 return NULL;
20328 }
20329
20330
20331 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20332 PyObject *resultobj = 0;
20333 wxDC *arg1 = (wxDC *) 0 ;
20334 wxString *arg2 = 0 ;
20335 wxRect *arg3 = 0 ;
20336 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20337 int arg5 = (int) -1 ;
20338 void *argp1 = 0 ;
20339 int res1 = 0 ;
20340 bool temp2 = false ;
20341 wxRect temp3 ;
20342 int val4 ;
20343 int ecode4 = 0 ;
20344 int val5 ;
20345 int ecode5 = 0 ;
20346 PyObject * obj0 = 0 ;
20347 PyObject * obj1 = 0 ;
20348 PyObject * obj2 = 0 ;
20349 PyObject * obj3 = 0 ;
20350 PyObject * obj4 = 0 ;
20351 char * kwnames[] = {
20352 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20353 };
20354
20355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20357 if (!SWIG_IsOK(res1)) {
20358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20359 }
20360 arg1 = reinterpret_cast< wxDC * >(argp1);
20361 {
20362 arg2 = wxString_in_helper(obj1);
20363 if (arg2 == NULL) SWIG_fail;
20364 temp2 = true;
20365 }
20366 {
20367 arg3 = &temp3;
20368 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20369 }
20370 if (obj3) {
20371 ecode4 = SWIG_AsVal_int(obj3, &val4);
20372 if (!SWIG_IsOK(ecode4)) {
20373 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20374 }
20375 arg4 = static_cast< int >(val4);
20376 }
20377 if (obj4) {
20378 ecode5 = SWIG_AsVal_int(obj4, &val5);
20379 if (!SWIG_IsOK(ecode5)) {
20380 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20381 }
20382 arg5 = static_cast< int >(val5);
20383 }
20384 {
20385 PyThreadState* __tstate = wxPyBeginAllowThreads();
20386 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20387 wxPyEndAllowThreads(__tstate);
20388 if (PyErr_Occurred()) SWIG_fail;
20389 }
20390 resultobj = SWIG_Py_Void();
20391 {
20392 if (temp2)
20393 delete arg2;
20394 }
20395 return resultobj;
20396 fail:
20397 {
20398 if (temp2)
20399 delete arg2;
20400 }
20401 return NULL;
20402 }
20403
20404
20405 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20406 PyObject *resultobj = 0;
20407 wxDC *arg1 = (wxDC *) 0 ;
20408 wxString *arg2 = 0 ;
20409 wxBitmap *arg3 = 0 ;
20410 wxRect *arg4 = 0 ;
20411 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20412 int arg6 = (int) -1 ;
20413 wxRect result;
20414 void *argp1 = 0 ;
20415 int res1 = 0 ;
20416 bool temp2 = false ;
20417 void *argp3 = 0 ;
20418 int res3 = 0 ;
20419 wxRect temp4 ;
20420 int val5 ;
20421 int ecode5 = 0 ;
20422 int val6 ;
20423 int ecode6 = 0 ;
20424 PyObject * obj0 = 0 ;
20425 PyObject * obj1 = 0 ;
20426 PyObject * obj2 = 0 ;
20427 PyObject * obj3 = 0 ;
20428 PyObject * obj4 = 0 ;
20429 PyObject * obj5 = 0 ;
20430 char * kwnames[] = {
20431 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20432 };
20433
20434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20436 if (!SWIG_IsOK(res1)) {
20437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20438 }
20439 arg1 = reinterpret_cast< wxDC * >(argp1);
20440 {
20441 arg2 = wxString_in_helper(obj1);
20442 if (arg2 == NULL) SWIG_fail;
20443 temp2 = true;
20444 }
20445 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20446 if (!SWIG_IsOK(res3)) {
20447 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20448 }
20449 if (!argp3) {
20450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20451 }
20452 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20453 {
20454 arg4 = &temp4;
20455 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20456 }
20457 if (obj4) {
20458 ecode5 = SWIG_AsVal_int(obj4, &val5);
20459 if (!SWIG_IsOK(ecode5)) {
20460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20461 }
20462 arg5 = static_cast< int >(val5);
20463 }
20464 if (obj5) {
20465 ecode6 = SWIG_AsVal_int(obj5, &val6);
20466 if (!SWIG_IsOK(ecode6)) {
20467 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20468 }
20469 arg6 = static_cast< int >(val6);
20470 }
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20474 wxPyEndAllowThreads(__tstate);
20475 if (PyErr_Occurred()) SWIG_fail;
20476 }
20477 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20478 {
20479 if (temp2)
20480 delete arg2;
20481 }
20482 return resultobj;
20483 fail:
20484 {
20485 if (temp2)
20486 delete arg2;
20487 }
20488 return NULL;
20489 }
20490
20491
20492 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20493 PyObject *resultobj = 0;
20494 wxDC *arg1 = (wxDC *) 0 ;
20495 int arg2 ;
20496 wxPoint *arg3 = (wxPoint *) 0 ;
20497 void *argp1 = 0 ;
20498 int res1 = 0 ;
20499 PyObject * obj0 = 0 ;
20500 PyObject * obj1 = 0 ;
20501 char * kwnames[] = {
20502 (char *) "self",(char *) "points", NULL
20503 };
20504
20505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20507 if (!SWIG_IsOK(res1)) {
20508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20509 }
20510 arg1 = reinterpret_cast< wxDC * >(argp1);
20511 {
20512 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20513 if (arg3 == NULL) SWIG_fail;
20514 }
20515 {
20516 PyThreadState* __tstate = wxPyBeginAllowThreads();
20517 (arg1)->DrawSpline(arg2,arg3);
20518 wxPyEndAllowThreads(__tstate);
20519 if (PyErr_Occurred()) SWIG_fail;
20520 }
20521 resultobj = SWIG_Py_Void();
20522 {
20523 if (arg3) delete [] arg3;
20524 }
20525 return resultobj;
20526 fail:
20527 {
20528 if (arg3) delete [] arg3;
20529 }
20530 return NULL;
20531 }
20532
20533
20534 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20535 PyObject *resultobj = 0;
20536 wxDC *arg1 = (wxDC *) 0 ;
20537 void *argp1 = 0 ;
20538 int res1 = 0 ;
20539 PyObject *swig_obj[1] ;
20540
20541 if (!args) SWIG_fail;
20542 swig_obj[0] = args;
20543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20544 if (!SWIG_IsOK(res1)) {
20545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20546 }
20547 arg1 = reinterpret_cast< wxDC * >(argp1);
20548 {
20549 PyThreadState* __tstate = wxPyBeginAllowThreads();
20550 (arg1)->Clear();
20551 wxPyEndAllowThreads(__tstate);
20552 if (PyErr_Occurred()) SWIG_fail;
20553 }
20554 resultobj = SWIG_Py_Void();
20555 return resultobj;
20556 fail:
20557 return NULL;
20558 }
20559
20560
20561 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20562 PyObject *resultobj = 0;
20563 wxDC *arg1 = (wxDC *) 0 ;
20564 wxString *arg2 = 0 ;
20565 bool result;
20566 void *argp1 = 0 ;
20567 int res1 = 0 ;
20568 bool temp2 = false ;
20569 PyObject * obj0 = 0 ;
20570 PyObject * obj1 = 0 ;
20571 char * kwnames[] = {
20572 (char *) "self",(char *) "message", NULL
20573 };
20574
20575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20577 if (!SWIG_IsOK(res1)) {
20578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20579 }
20580 arg1 = reinterpret_cast< wxDC * >(argp1);
20581 {
20582 arg2 = wxString_in_helper(obj1);
20583 if (arg2 == NULL) SWIG_fail;
20584 temp2 = true;
20585 }
20586 {
20587 PyThreadState* __tstate = wxPyBeginAllowThreads();
20588 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20589 wxPyEndAllowThreads(__tstate);
20590 if (PyErr_Occurred()) SWIG_fail;
20591 }
20592 {
20593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20594 }
20595 {
20596 if (temp2)
20597 delete arg2;
20598 }
20599 return resultobj;
20600 fail:
20601 {
20602 if (temp2)
20603 delete arg2;
20604 }
20605 return NULL;
20606 }
20607
20608
20609 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20610 PyObject *resultobj = 0;
20611 wxDC *arg1 = (wxDC *) 0 ;
20612 void *argp1 = 0 ;
20613 int res1 = 0 ;
20614 PyObject *swig_obj[1] ;
20615
20616 if (!args) SWIG_fail;
20617 swig_obj[0] = args;
20618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20619 if (!SWIG_IsOK(res1)) {
20620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20621 }
20622 arg1 = reinterpret_cast< wxDC * >(argp1);
20623 {
20624 PyThreadState* __tstate = wxPyBeginAllowThreads();
20625 (arg1)->EndDoc();
20626 wxPyEndAllowThreads(__tstate);
20627 if (PyErr_Occurred()) SWIG_fail;
20628 }
20629 resultobj = SWIG_Py_Void();
20630 return resultobj;
20631 fail:
20632 return NULL;
20633 }
20634
20635
20636 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20637 PyObject *resultobj = 0;
20638 wxDC *arg1 = (wxDC *) 0 ;
20639 void *argp1 = 0 ;
20640 int res1 = 0 ;
20641 PyObject *swig_obj[1] ;
20642
20643 if (!args) SWIG_fail;
20644 swig_obj[0] = args;
20645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20646 if (!SWIG_IsOK(res1)) {
20647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20648 }
20649 arg1 = reinterpret_cast< wxDC * >(argp1);
20650 {
20651 PyThreadState* __tstate = wxPyBeginAllowThreads();
20652 (arg1)->StartPage();
20653 wxPyEndAllowThreads(__tstate);
20654 if (PyErr_Occurred()) SWIG_fail;
20655 }
20656 resultobj = SWIG_Py_Void();
20657 return resultobj;
20658 fail:
20659 return NULL;
20660 }
20661
20662
20663 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20664 PyObject *resultobj = 0;
20665 wxDC *arg1 = (wxDC *) 0 ;
20666 void *argp1 = 0 ;
20667 int res1 = 0 ;
20668 PyObject *swig_obj[1] ;
20669
20670 if (!args) SWIG_fail;
20671 swig_obj[0] = args;
20672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20673 if (!SWIG_IsOK(res1)) {
20674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20675 }
20676 arg1 = reinterpret_cast< wxDC * >(argp1);
20677 {
20678 PyThreadState* __tstate = wxPyBeginAllowThreads();
20679 (arg1)->EndPage();
20680 wxPyEndAllowThreads(__tstate);
20681 if (PyErr_Occurred()) SWIG_fail;
20682 }
20683 resultobj = SWIG_Py_Void();
20684 return resultobj;
20685 fail:
20686 return NULL;
20687 }
20688
20689
20690 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20691 PyObject *resultobj = 0;
20692 wxDC *arg1 = (wxDC *) 0 ;
20693 wxFont *arg2 = 0 ;
20694 void *argp1 = 0 ;
20695 int res1 = 0 ;
20696 void *argp2 = 0 ;
20697 int res2 = 0 ;
20698 PyObject * obj0 = 0 ;
20699 PyObject * obj1 = 0 ;
20700 char * kwnames[] = {
20701 (char *) "self",(char *) "font", NULL
20702 };
20703
20704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20706 if (!SWIG_IsOK(res1)) {
20707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20708 }
20709 arg1 = reinterpret_cast< wxDC * >(argp1);
20710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20711 if (!SWIG_IsOK(res2)) {
20712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20713 }
20714 if (!argp2) {
20715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20716 }
20717 arg2 = reinterpret_cast< wxFont * >(argp2);
20718 {
20719 PyThreadState* __tstate = wxPyBeginAllowThreads();
20720 (arg1)->SetFont((wxFont const &)*arg2);
20721 wxPyEndAllowThreads(__tstate);
20722 if (PyErr_Occurred()) SWIG_fail;
20723 }
20724 resultobj = SWIG_Py_Void();
20725 return resultobj;
20726 fail:
20727 return NULL;
20728 }
20729
20730
20731 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20732 PyObject *resultobj = 0;
20733 wxDC *arg1 = (wxDC *) 0 ;
20734 wxPen *arg2 = 0 ;
20735 void *argp1 = 0 ;
20736 int res1 = 0 ;
20737 void *argp2 = 0 ;
20738 int res2 = 0 ;
20739 PyObject * obj0 = 0 ;
20740 PyObject * obj1 = 0 ;
20741 char * kwnames[] = {
20742 (char *) "self",(char *) "pen", NULL
20743 };
20744
20745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20747 if (!SWIG_IsOK(res1)) {
20748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20749 }
20750 arg1 = reinterpret_cast< wxDC * >(argp1);
20751 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20752 if (!SWIG_IsOK(res2)) {
20753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20754 }
20755 if (!argp2) {
20756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20757 }
20758 arg2 = reinterpret_cast< wxPen * >(argp2);
20759 {
20760 PyThreadState* __tstate = wxPyBeginAllowThreads();
20761 (arg1)->SetPen((wxPen const &)*arg2);
20762 wxPyEndAllowThreads(__tstate);
20763 if (PyErr_Occurred()) SWIG_fail;
20764 }
20765 resultobj = SWIG_Py_Void();
20766 return resultobj;
20767 fail:
20768 return NULL;
20769 }
20770
20771
20772 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20773 PyObject *resultobj = 0;
20774 wxDC *arg1 = (wxDC *) 0 ;
20775 wxBrush *arg2 = 0 ;
20776 void *argp1 = 0 ;
20777 int res1 = 0 ;
20778 void *argp2 = 0 ;
20779 int res2 = 0 ;
20780 PyObject * obj0 = 0 ;
20781 PyObject * obj1 = 0 ;
20782 char * kwnames[] = {
20783 (char *) "self",(char *) "brush", NULL
20784 };
20785
20786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20788 if (!SWIG_IsOK(res1)) {
20789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20790 }
20791 arg1 = reinterpret_cast< wxDC * >(argp1);
20792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20793 if (!SWIG_IsOK(res2)) {
20794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20795 }
20796 if (!argp2) {
20797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20798 }
20799 arg2 = reinterpret_cast< wxBrush * >(argp2);
20800 {
20801 PyThreadState* __tstate = wxPyBeginAllowThreads();
20802 (arg1)->SetBrush((wxBrush const &)*arg2);
20803 wxPyEndAllowThreads(__tstate);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 }
20806 resultobj = SWIG_Py_Void();
20807 return resultobj;
20808 fail:
20809 return NULL;
20810 }
20811
20812
20813 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20814 PyObject *resultobj = 0;
20815 wxDC *arg1 = (wxDC *) 0 ;
20816 wxBrush *arg2 = 0 ;
20817 void *argp1 = 0 ;
20818 int res1 = 0 ;
20819 void *argp2 = 0 ;
20820 int res2 = 0 ;
20821 PyObject * obj0 = 0 ;
20822 PyObject * obj1 = 0 ;
20823 char * kwnames[] = {
20824 (char *) "self",(char *) "brush", NULL
20825 };
20826
20827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20829 if (!SWIG_IsOK(res1)) {
20830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20831 }
20832 arg1 = reinterpret_cast< wxDC * >(argp1);
20833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20834 if (!SWIG_IsOK(res2)) {
20835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20836 }
20837 if (!argp2) {
20838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20839 }
20840 arg2 = reinterpret_cast< wxBrush * >(argp2);
20841 {
20842 PyThreadState* __tstate = wxPyBeginAllowThreads();
20843 (arg1)->SetBackground((wxBrush const &)*arg2);
20844 wxPyEndAllowThreads(__tstate);
20845 if (PyErr_Occurred()) SWIG_fail;
20846 }
20847 resultobj = SWIG_Py_Void();
20848 return resultobj;
20849 fail:
20850 return NULL;
20851 }
20852
20853
20854 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20855 PyObject *resultobj = 0;
20856 wxDC *arg1 = (wxDC *) 0 ;
20857 int arg2 ;
20858 void *argp1 = 0 ;
20859 int res1 = 0 ;
20860 int val2 ;
20861 int ecode2 = 0 ;
20862 PyObject * obj0 = 0 ;
20863 PyObject * obj1 = 0 ;
20864 char * kwnames[] = {
20865 (char *) "self",(char *) "mode", NULL
20866 };
20867
20868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20870 if (!SWIG_IsOK(res1)) {
20871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20872 }
20873 arg1 = reinterpret_cast< wxDC * >(argp1);
20874 ecode2 = SWIG_AsVal_int(obj1, &val2);
20875 if (!SWIG_IsOK(ecode2)) {
20876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20877 }
20878 arg2 = static_cast< int >(val2);
20879 {
20880 PyThreadState* __tstate = wxPyBeginAllowThreads();
20881 (arg1)->SetBackgroundMode(arg2);
20882 wxPyEndAllowThreads(__tstate);
20883 if (PyErr_Occurred()) SWIG_fail;
20884 }
20885 resultobj = SWIG_Py_Void();
20886 return resultobj;
20887 fail:
20888 return NULL;
20889 }
20890
20891
20892 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20893 PyObject *resultobj = 0;
20894 wxDC *arg1 = (wxDC *) 0 ;
20895 wxPalette *arg2 = 0 ;
20896 void *argp1 = 0 ;
20897 int res1 = 0 ;
20898 void *argp2 = 0 ;
20899 int res2 = 0 ;
20900 PyObject * obj0 = 0 ;
20901 PyObject * obj1 = 0 ;
20902 char * kwnames[] = {
20903 (char *) "self",(char *) "palette", NULL
20904 };
20905
20906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20910 }
20911 arg1 = reinterpret_cast< wxDC * >(argp1);
20912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20913 if (!SWIG_IsOK(res2)) {
20914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20915 }
20916 if (!argp2) {
20917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20918 }
20919 arg2 = reinterpret_cast< wxPalette * >(argp2);
20920 {
20921 PyThreadState* __tstate = wxPyBeginAllowThreads();
20922 (arg1)->SetPalette((wxPalette const &)*arg2);
20923 wxPyEndAllowThreads(__tstate);
20924 if (PyErr_Occurred()) SWIG_fail;
20925 }
20926 resultobj = SWIG_Py_Void();
20927 return resultobj;
20928 fail:
20929 return NULL;
20930 }
20931
20932
20933 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20934 PyObject *resultobj = 0;
20935 wxDC *arg1 = (wxDC *) 0 ;
20936 void *argp1 = 0 ;
20937 int res1 = 0 ;
20938 PyObject *swig_obj[1] ;
20939
20940 if (!args) SWIG_fail;
20941 swig_obj[0] = args;
20942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20943 if (!SWIG_IsOK(res1)) {
20944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20945 }
20946 arg1 = reinterpret_cast< wxDC * >(argp1);
20947 {
20948 PyThreadState* __tstate = wxPyBeginAllowThreads();
20949 (arg1)->DestroyClippingRegion();
20950 wxPyEndAllowThreads(__tstate);
20951 if (PyErr_Occurred()) SWIG_fail;
20952 }
20953 resultobj = SWIG_Py_Void();
20954 return resultobj;
20955 fail:
20956 return NULL;
20957 }
20958
20959
20960 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20961 PyObject *resultobj = 0;
20962 wxDC *arg1 = (wxDC *) 0 ;
20963 int *arg2 = (int *) 0 ;
20964 int *arg3 = (int *) 0 ;
20965 int *arg4 = (int *) 0 ;
20966 int *arg5 = (int *) 0 ;
20967 void *argp1 = 0 ;
20968 int res1 = 0 ;
20969 int temp2 ;
20970 int res2 = SWIG_TMPOBJ ;
20971 int temp3 ;
20972 int res3 = SWIG_TMPOBJ ;
20973 int temp4 ;
20974 int res4 = SWIG_TMPOBJ ;
20975 int temp5 ;
20976 int res5 = SWIG_TMPOBJ ;
20977 PyObject *swig_obj[1] ;
20978
20979 arg2 = &temp2;
20980 arg3 = &temp3;
20981 arg4 = &temp4;
20982 arg5 = &temp5;
20983 if (!args) SWIG_fail;
20984 swig_obj[0] = args;
20985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20986 if (!SWIG_IsOK(res1)) {
20987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20988 }
20989 arg1 = reinterpret_cast< wxDC * >(argp1);
20990 {
20991 PyThreadState* __tstate = wxPyBeginAllowThreads();
20992 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20993 wxPyEndAllowThreads(__tstate);
20994 if (PyErr_Occurred()) SWIG_fail;
20995 }
20996 resultobj = SWIG_Py_Void();
20997 if (SWIG_IsTmpObj(res2)) {
20998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20999 } else {
21000 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21002 }
21003 if (SWIG_IsTmpObj(res3)) {
21004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21005 } else {
21006 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21008 }
21009 if (SWIG_IsTmpObj(res4)) {
21010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21011 } else {
21012 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21014 }
21015 if (SWIG_IsTmpObj(res5)) {
21016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21017 } else {
21018 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21020 }
21021 return resultobj;
21022 fail:
21023 return NULL;
21024 }
21025
21026
21027 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21028 PyObject *resultobj = 0;
21029 wxDC *arg1 = (wxDC *) 0 ;
21030 wxRect result;
21031 void *argp1 = 0 ;
21032 int res1 = 0 ;
21033 PyObject *swig_obj[1] ;
21034
21035 if (!args) SWIG_fail;
21036 swig_obj[0] = args;
21037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21038 if (!SWIG_IsOK(res1)) {
21039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21040 }
21041 arg1 = reinterpret_cast< wxDC * >(argp1);
21042 {
21043 PyThreadState* __tstate = wxPyBeginAllowThreads();
21044 result = wxDC_GetClippingRect(arg1);
21045 wxPyEndAllowThreads(__tstate);
21046 if (PyErr_Occurred()) SWIG_fail;
21047 }
21048 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21049 return resultobj;
21050 fail:
21051 return NULL;
21052 }
21053
21054
21055 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21056 PyObject *resultobj = 0;
21057 wxDC *arg1 = (wxDC *) 0 ;
21058 int result;
21059 void *argp1 = 0 ;
21060 int res1 = 0 ;
21061 PyObject *swig_obj[1] ;
21062
21063 if (!args) SWIG_fail;
21064 swig_obj[0] = args;
21065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21066 if (!SWIG_IsOK(res1)) {
21067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21068 }
21069 arg1 = reinterpret_cast< wxDC * >(argp1);
21070 {
21071 PyThreadState* __tstate = wxPyBeginAllowThreads();
21072 result = (int)((wxDC const *)arg1)->GetCharHeight();
21073 wxPyEndAllowThreads(__tstate);
21074 if (PyErr_Occurred()) SWIG_fail;
21075 }
21076 resultobj = SWIG_From_int(static_cast< int >(result));
21077 return resultobj;
21078 fail:
21079 return NULL;
21080 }
21081
21082
21083 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21084 PyObject *resultobj = 0;
21085 wxDC *arg1 = (wxDC *) 0 ;
21086 int result;
21087 void *argp1 = 0 ;
21088 int res1 = 0 ;
21089 PyObject *swig_obj[1] ;
21090
21091 if (!args) SWIG_fail;
21092 swig_obj[0] = args;
21093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21094 if (!SWIG_IsOK(res1)) {
21095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21096 }
21097 arg1 = reinterpret_cast< wxDC * >(argp1);
21098 {
21099 PyThreadState* __tstate = wxPyBeginAllowThreads();
21100 result = (int)((wxDC const *)arg1)->GetCharWidth();
21101 wxPyEndAllowThreads(__tstate);
21102 if (PyErr_Occurred()) SWIG_fail;
21103 }
21104 resultobj = SWIG_From_int(static_cast< int >(result));
21105 return resultobj;
21106 fail:
21107 return NULL;
21108 }
21109
21110
21111 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21112 PyObject *resultobj = 0;
21113 wxDC *arg1 = (wxDC *) 0 ;
21114 wxString *arg2 = 0 ;
21115 int *arg3 = (int *) 0 ;
21116 int *arg4 = (int *) 0 ;
21117 void *argp1 = 0 ;
21118 int res1 = 0 ;
21119 bool temp2 = false ;
21120 int temp3 ;
21121 int res3 = SWIG_TMPOBJ ;
21122 int temp4 ;
21123 int res4 = SWIG_TMPOBJ ;
21124 PyObject * obj0 = 0 ;
21125 PyObject * obj1 = 0 ;
21126 char * kwnames[] = {
21127 (char *) "self",(char *) "string", NULL
21128 };
21129
21130 arg3 = &temp3;
21131 arg4 = &temp4;
21132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21134 if (!SWIG_IsOK(res1)) {
21135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21136 }
21137 arg1 = reinterpret_cast< wxDC * >(argp1);
21138 {
21139 arg2 = wxString_in_helper(obj1);
21140 if (arg2 == NULL) SWIG_fail;
21141 temp2 = true;
21142 }
21143 {
21144 PyThreadState* __tstate = wxPyBeginAllowThreads();
21145 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21146 wxPyEndAllowThreads(__tstate);
21147 if (PyErr_Occurred()) SWIG_fail;
21148 }
21149 resultobj = SWIG_Py_Void();
21150 if (SWIG_IsTmpObj(res3)) {
21151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21152 } else {
21153 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21155 }
21156 if (SWIG_IsTmpObj(res4)) {
21157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21158 } else {
21159 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21161 }
21162 {
21163 if (temp2)
21164 delete arg2;
21165 }
21166 return resultobj;
21167 fail:
21168 {
21169 if (temp2)
21170 delete arg2;
21171 }
21172 return NULL;
21173 }
21174
21175
21176 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21177 PyObject *resultobj = 0;
21178 wxDC *arg1 = (wxDC *) 0 ;
21179 wxString *arg2 = 0 ;
21180 int *arg3 = (int *) 0 ;
21181 int *arg4 = (int *) 0 ;
21182 int *arg5 = (int *) 0 ;
21183 int *arg6 = (int *) 0 ;
21184 wxFont *arg7 = (wxFont *) NULL ;
21185 void *argp1 = 0 ;
21186 int res1 = 0 ;
21187 bool temp2 = false ;
21188 int temp3 ;
21189 int res3 = SWIG_TMPOBJ ;
21190 int temp4 ;
21191 int res4 = SWIG_TMPOBJ ;
21192 int temp5 ;
21193 int res5 = SWIG_TMPOBJ ;
21194 int temp6 ;
21195 int res6 = SWIG_TMPOBJ ;
21196 void *argp7 = 0 ;
21197 int res7 = 0 ;
21198 PyObject * obj0 = 0 ;
21199 PyObject * obj1 = 0 ;
21200 PyObject * obj2 = 0 ;
21201 char * kwnames[] = {
21202 (char *) "self",(char *) "string",(char *) "font", NULL
21203 };
21204
21205 arg3 = &temp3;
21206 arg4 = &temp4;
21207 arg5 = &temp5;
21208 arg6 = &temp6;
21209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21211 if (!SWIG_IsOK(res1)) {
21212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21213 }
21214 arg1 = reinterpret_cast< wxDC * >(argp1);
21215 {
21216 arg2 = wxString_in_helper(obj1);
21217 if (arg2 == NULL) SWIG_fail;
21218 temp2 = true;
21219 }
21220 if (obj2) {
21221 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21222 if (!SWIG_IsOK(res7)) {
21223 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21224 }
21225 arg7 = reinterpret_cast< wxFont * >(argp7);
21226 }
21227 {
21228 PyThreadState* __tstate = wxPyBeginAllowThreads();
21229 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21230 wxPyEndAllowThreads(__tstate);
21231 if (PyErr_Occurred()) SWIG_fail;
21232 }
21233 resultobj = SWIG_Py_Void();
21234 if (SWIG_IsTmpObj(res3)) {
21235 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21236 } else {
21237 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21238 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21239 }
21240 if (SWIG_IsTmpObj(res4)) {
21241 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21242 } else {
21243 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21244 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21245 }
21246 if (SWIG_IsTmpObj(res5)) {
21247 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21248 } else {
21249 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21251 }
21252 if (SWIG_IsTmpObj(res6)) {
21253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21254 } else {
21255 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21257 }
21258 {
21259 if (temp2)
21260 delete arg2;
21261 }
21262 return resultobj;
21263 fail:
21264 {
21265 if (temp2)
21266 delete arg2;
21267 }
21268 return NULL;
21269 }
21270
21271
21272 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21273 PyObject *resultobj = 0;
21274 wxDC *arg1 = (wxDC *) 0 ;
21275 wxString *arg2 = 0 ;
21276 int *arg3 = (int *) 0 ;
21277 int *arg4 = (int *) 0 ;
21278 int *arg5 = (int *) 0 ;
21279 wxFont *arg6 = (wxFont *) NULL ;
21280 void *argp1 = 0 ;
21281 int res1 = 0 ;
21282 bool temp2 = false ;
21283 int temp3 ;
21284 int res3 = SWIG_TMPOBJ ;
21285 int temp4 ;
21286 int res4 = SWIG_TMPOBJ ;
21287 int temp5 ;
21288 int res5 = SWIG_TMPOBJ ;
21289 void *argp6 = 0 ;
21290 int res6 = 0 ;
21291 PyObject * obj0 = 0 ;
21292 PyObject * obj1 = 0 ;
21293 PyObject * obj2 = 0 ;
21294 char * kwnames[] = {
21295 (char *) "self",(char *) "text",(char *) "font", NULL
21296 };
21297
21298 arg3 = &temp3;
21299 arg4 = &temp4;
21300 arg5 = &temp5;
21301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21303 if (!SWIG_IsOK(res1)) {
21304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21305 }
21306 arg1 = reinterpret_cast< wxDC * >(argp1);
21307 {
21308 arg2 = wxString_in_helper(obj1);
21309 if (arg2 == NULL) SWIG_fail;
21310 temp2 = true;
21311 }
21312 if (obj2) {
21313 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21314 if (!SWIG_IsOK(res6)) {
21315 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21316 }
21317 arg6 = reinterpret_cast< wxFont * >(argp6);
21318 }
21319 {
21320 PyThreadState* __tstate = wxPyBeginAllowThreads();
21321 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21322 wxPyEndAllowThreads(__tstate);
21323 if (PyErr_Occurred()) SWIG_fail;
21324 }
21325 resultobj = SWIG_Py_Void();
21326 if (SWIG_IsTmpObj(res3)) {
21327 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21328 } else {
21329 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21331 }
21332 if (SWIG_IsTmpObj(res4)) {
21333 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21334 } else {
21335 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21337 }
21338 if (SWIG_IsTmpObj(res5)) {
21339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21340 } else {
21341 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21343 }
21344 {
21345 if (temp2)
21346 delete arg2;
21347 }
21348 return resultobj;
21349 fail:
21350 {
21351 if (temp2)
21352 delete arg2;
21353 }
21354 return NULL;
21355 }
21356
21357
21358 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj = 0;
21360 wxDC *arg1 = (wxDC *) 0 ;
21361 wxString *arg2 = 0 ;
21362 wxArrayInt result;
21363 void *argp1 = 0 ;
21364 int res1 = 0 ;
21365 bool temp2 = false ;
21366 PyObject * obj0 = 0 ;
21367 PyObject * obj1 = 0 ;
21368 char * kwnames[] = {
21369 (char *) "self",(char *) "text", NULL
21370 };
21371
21372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21374 if (!SWIG_IsOK(res1)) {
21375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21376 }
21377 arg1 = reinterpret_cast< wxDC * >(argp1);
21378 {
21379 arg2 = wxString_in_helper(obj1);
21380 if (arg2 == NULL) SWIG_fail;
21381 temp2 = true;
21382 }
21383 {
21384 PyThreadState* __tstate = wxPyBeginAllowThreads();
21385 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21386 wxPyEndAllowThreads(__tstate);
21387 if (PyErr_Occurred()) SWIG_fail;
21388 }
21389 {
21390 resultobj = PyList_New(0);
21391 size_t idx;
21392 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
21393 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
21394 PyList_Append(resultobj, val);
21395 Py_DECREF(val);
21396 }
21397 }
21398 {
21399 if (temp2)
21400 delete arg2;
21401 }
21402 return resultobj;
21403 fail:
21404 {
21405 if (temp2)
21406 delete arg2;
21407 }
21408 return NULL;
21409 }
21410
21411
21412 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21413 PyObject *resultobj = 0;
21414 wxDC *arg1 = (wxDC *) 0 ;
21415 wxSize result;
21416 void *argp1 = 0 ;
21417 int res1 = 0 ;
21418 PyObject *swig_obj[1] ;
21419
21420 if (!args) SWIG_fail;
21421 swig_obj[0] = args;
21422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21423 if (!SWIG_IsOK(res1)) {
21424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21425 }
21426 arg1 = reinterpret_cast< wxDC * >(argp1);
21427 {
21428 PyThreadState* __tstate = wxPyBeginAllowThreads();
21429 result = (arg1)->GetSize();
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21434 return resultobj;
21435 fail:
21436 return NULL;
21437 }
21438
21439
21440 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21441 PyObject *resultobj = 0;
21442 wxDC *arg1 = (wxDC *) 0 ;
21443 int *arg2 = (int *) 0 ;
21444 int *arg3 = (int *) 0 ;
21445 void *argp1 = 0 ;
21446 int res1 = 0 ;
21447 int temp2 ;
21448 int res2 = SWIG_TMPOBJ ;
21449 int temp3 ;
21450 int res3 = SWIG_TMPOBJ ;
21451 PyObject *swig_obj[1] ;
21452
21453 arg2 = &temp2;
21454 arg3 = &temp3;
21455 if (!args) SWIG_fail;
21456 swig_obj[0] = args;
21457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21458 if (!SWIG_IsOK(res1)) {
21459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21460 }
21461 arg1 = reinterpret_cast< wxDC * >(argp1);
21462 {
21463 PyThreadState* __tstate = wxPyBeginAllowThreads();
21464 (arg1)->GetSize(arg2,arg3);
21465 wxPyEndAllowThreads(__tstate);
21466 if (PyErr_Occurred()) SWIG_fail;
21467 }
21468 resultobj = SWIG_Py_Void();
21469 if (SWIG_IsTmpObj(res2)) {
21470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21471 } else {
21472 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21474 }
21475 if (SWIG_IsTmpObj(res3)) {
21476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21477 } else {
21478 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21480 }
21481 return resultobj;
21482 fail:
21483 return NULL;
21484 }
21485
21486
21487 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21488 PyObject *resultobj = 0;
21489 wxDC *arg1 = (wxDC *) 0 ;
21490 wxSize result;
21491 void *argp1 = 0 ;
21492 int res1 = 0 ;
21493 PyObject *swig_obj[1] ;
21494
21495 if (!args) SWIG_fail;
21496 swig_obj[0] = args;
21497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21498 if (!SWIG_IsOK(res1)) {
21499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21500 }
21501 arg1 = reinterpret_cast< wxDC * >(argp1);
21502 {
21503 PyThreadState* __tstate = wxPyBeginAllowThreads();
21504 result = ((wxDC const *)arg1)->GetSizeMM();
21505 wxPyEndAllowThreads(__tstate);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21509 return resultobj;
21510 fail:
21511 return NULL;
21512 }
21513
21514
21515 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21516 PyObject *resultobj = 0;
21517 wxDC *arg1 = (wxDC *) 0 ;
21518 int *arg2 = (int *) 0 ;
21519 int *arg3 = (int *) 0 ;
21520 void *argp1 = 0 ;
21521 int res1 = 0 ;
21522 int temp2 ;
21523 int res2 = SWIG_TMPOBJ ;
21524 int temp3 ;
21525 int res3 = SWIG_TMPOBJ ;
21526 PyObject *swig_obj[1] ;
21527
21528 arg2 = &temp2;
21529 arg3 = &temp3;
21530 if (!args) SWIG_fail;
21531 swig_obj[0] = args;
21532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21533 if (!SWIG_IsOK(res1)) {
21534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21535 }
21536 arg1 = reinterpret_cast< wxDC * >(argp1);
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 resultobj = SWIG_Py_Void();
21544 if (SWIG_IsTmpObj(res2)) {
21545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21546 } else {
21547 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21549 }
21550 if (SWIG_IsTmpObj(res3)) {
21551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21552 } else {
21553 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21555 }
21556 return resultobj;
21557 fail:
21558 return NULL;
21559 }
21560
21561
21562 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21563 PyObject *resultobj = 0;
21564 wxDC *arg1 = (wxDC *) 0 ;
21565 int arg2 ;
21566 int result;
21567 void *argp1 = 0 ;
21568 int res1 = 0 ;
21569 int val2 ;
21570 int ecode2 = 0 ;
21571 PyObject * obj0 = 0 ;
21572 PyObject * obj1 = 0 ;
21573 char * kwnames[] = {
21574 (char *) "self",(char *) "x", NULL
21575 };
21576
21577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21579 if (!SWIG_IsOK(res1)) {
21580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21581 }
21582 arg1 = reinterpret_cast< wxDC * >(argp1);
21583 ecode2 = SWIG_AsVal_int(obj1, &val2);
21584 if (!SWIG_IsOK(ecode2)) {
21585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21586 }
21587 arg2 = static_cast< int >(val2);
21588 {
21589 PyThreadState* __tstate = wxPyBeginAllowThreads();
21590 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21591 wxPyEndAllowThreads(__tstate);
21592 if (PyErr_Occurred()) SWIG_fail;
21593 }
21594 resultobj = SWIG_From_int(static_cast< int >(result));
21595 return resultobj;
21596 fail:
21597 return NULL;
21598 }
21599
21600
21601 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21602 PyObject *resultobj = 0;
21603 wxDC *arg1 = (wxDC *) 0 ;
21604 int arg2 ;
21605 int result;
21606 void *argp1 = 0 ;
21607 int res1 = 0 ;
21608 int val2 ;
21609 int ecode2 = 0 ;
21610 PyObject * obj0 = 0 ;
21611 PyObject * obj1 = 0 ;
21612 char * kwnames[] = {
21613 (char *) "self",(char *) "y", NULL
21614 };
21615
21616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21618 if (!SWIG_IsOK(res1)) {
21619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21620 }
21621 arg1 = reinterpret_cast< wxDC * >(argp1);
21622 ecode2 = SWIG_AsVal_int(obj1, &val2);
21623 if (!SWIG_IsOK(ecode2)) {
21624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21625 }
21626 arg2 = static_cast< int >(val2);
21627 {
21628 PyThreadState* __tstate = wxPyBeginAllowThreads();
21629 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21630 wxPyEndAllowThreads(__tstate);
21631 if (PyErr_Occurred()) SWIG_fail;
21632 }
21633 resultobj = SWIG_From_int(static_cast< int >(result));
21634 return resultobj;
21635 fail:
21636 return NULL;
21637 }
21638
21639
21640 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21641 PyObject *resultobj = 0;
21642 wxDC *arg1 = (wxDC *) 0 ;
21643 int arg2 ;
21644 int result;
21645 void *argp1 = 0 ;
21646 int res1 = 0 ;
21647 int val2 ;
21648 int ecode2 = 0 ;
21649 PyObject * obj0 = 0 ;
21650 PyObject * obj1 = 0 ;
21651 char * kwnames[] = {
21652 (char *) "self",(char *) "x", NULL
21653 };
21654
21655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21657 if (!SWIG_IsOK(res1)) {
21658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21659 }
21660 arg1 = reinterpret_cast< wxDC * >(argp1);
21661 ecode2 = SWIG_AsVal_int(obj1, &val2);
21662 if (!SWIG_IsOK(ecode2)) {
21663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21664 }
21665 arg2 = static_cast< int >(val2);
21666 {
21667 PyThreadState* __tstate = wxPyBeginAllowThreads();
21668 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21669 wxPyEndAllowThreads(__tstate);
21670 if (PyErr_Occurred()) SWIG_fail;
21671 }
21672 resultobj = SWIG_From_int(static_cast< int >(result));
21673 return resultobj;
21674 fail:
21675 return NULL;
21676 }
21677
21678
21679 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21680 PyObject *resultobj = 0;
21681 wxDC *arg1 = (wxDC *) 0 ;
21682 int arg2 ;
21683 int result;
21684 void *argp1 = 0 ;
21685 int res1 = 0 ;
21686 int val2 ;
21687 int ecode2 = 0 ;
21688 PyObject * obj0 = 0 ;
21689 PyObject * obj1 = 0 ;
21690 char * kwnames[] = {
21691 (char *) "self",(char *) "y", NULL
21692 };
21693
21694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21696 if (!SWIG_IsOK(res1)) {
21697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21698 }
21699 arg1 = reinterpret_cast< wxDC * >(argp1);
21700 ecode2 = SWIG_AsVal_int(obj1, &val2);
21701 if (!SWIG_IsOK(ecode2)) {
21702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21703 }
21704 arg2 = static_cast< int >(val2);
21705 {
21706 PyThreadState* __tstate = wxPyBeginAllowThreads();
21707 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21708 wxPyEndAllowThreads(__tstate);
21709 if (PyErr_Occurred()) SWIG_fail;
21710 }
21711 resultobj = SWIG_From_int(static_cast< int >(result));
21712 return resultobj;
21713 fail:
21714 return NULL;
21715 }
21716
21717
21718 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21719 PyObject *resultobj = 0;
21720 wxDC *arg1 = (wxDC *) 0 ;
21721 int arg2 ;
21722 int result;
21723 void *argp1 = 0 ;
21724 int res1 = 0 ;
21725 int val2 ;
21726 int ecode2 = 0 ;
21727 PyObject * obj0 = 0 ;
21728 PyObject * obj1 = 0 ;
21729 char * kwnames[] = {
21730 (char *) "self",(char *) "x", NULL
21731 };
21732
21733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21735 if (!SWIG_IsOK(res1)) {
21736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21737 }
21738 arg1 = reinterpret_cast< wxDC * >(argp1);
21739 ecode2 = SWIG_AsVal_int(obj1, &val2);
21740 if (!SWIG_IsOK(ecode2)) {
21741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21742 }
21743 arg2 = static_cast< int >(val2);
21744 {
21745 PyThreadState* __tstate = wxPyBeginAllowThreads();
21746 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21747 wxPyEndAllowThreads(__tstate);
21748 if (PyErr_Occurred()) SWIG_fail;
21749 }
21750 resultobj = SWIG_From_int(static_cast< int >(result));
21751 return resultobj;
21752 fail:
21753 return NULL;
21754 }
21755
21756
21757 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21758 PyObject *resultobj = 0;
21759 wxDC *arg1 = (wxDC *) 0 ;
21760 int arg2 ;
21761 int result;
21762 void *argp1 = 0 ;
21763 int res1 = 0 ;
21764 int val2 ;
21765 int ecode2 = 0 ;
21766 PyObject * obj0 = 0 ;
21767 PyObject * obj1 = 0 ;
21768 char * kwnames[] = {
21769 (char *) "self",(char *) "y", NULL
21770 };
21771
21772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21774 if (!SWIG_IsOK(res1)) {
21775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21776 }
21777 arg1 = reinterpret_cast< wxDC * >(argp1);
21778 ecode2 = SWIG_AsVal_int(obj1, &val2);
21779 if (!SWIG_IsOK(ecode2)) {
21780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21781 }
21782 arg2 = static_cast< int >(val2);
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 resultobj = SWIG_From_int(static_cast< int >(result));
21790 return resultobj;
21791 fail:
21792 return NULL;
21793 }
21794
21795
21796 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21797 PyObject *resultobj = 0;
21798 wxDC *arg1 = (wxDC *) 0 ;
21799 int arg2 ;
21800 int result;
21801 void *argp1 = 0 ;
21802 int res1 = 0 ;
21803 int val2 ;
21804 int ecode2 = 0 ;
21805 PyObject * obj0 = 0 ;
21806 PyObject * obj1 = 0 ;
21807 char * kwnames[] = {
21808 (char *) "self",(char *) "x", NULL
21809 };
21810
21811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21813 if (!SWIG_IsOK(res1)) {
21814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21815 }
21816 arg1 = reinterpret_cast< wxDC * >(argp1);
21817 ecode2 = SWIG_AsVal_int(obj1, &val2);
21818 if (!SWIG_IsOK(ecode2)) {
21819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21820 }
21821 arg2 = static_cast< int >(val2);
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 resultobj = SWIG_From_int(static_cast< int >(result));
21829 return resultobj;
21830 fail:
21831 return NULL;
21832 }
21833
21834
21835 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21836 PyObject *resultobj = 0;
21837 wxDC *arg1 = (wxDC *) 0 ;
21838 int arg2 ;
21839 int result;
21840 void *argp1 = 0 ;
21841 int res1 = 0 ;
21842 int val2 ;
21843 int ecode2 = 0 ;
21844 PyObject * obj0 = 0 ;
21845 PyObject * obj1 = 0 ;
21846 char * kwnames[] = {
21847 (char *) "self",(char *) "y", NULL
21848 };
21849
21850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21852 if (!SWIG_IsOK(res1)) {
21853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21854 }
21855 arg1 = reinterpret_cast< wxDC * >(argp1);
21856 ecode2 = SWIG_AsVal_int(obj1, &val2);
21857 if (!SWIG_IsOK(ecode2)) {
21858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21859 }
21860 arg2 = static_cast< int >(val2);
21861 {
21862 PyThreadState* __tstate = wxPyBeginAllowThreads();
21863 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 resultobj = SWIG_From_int(static_cast< int >(result));
21868 return resultobj;
21869 fail:
21870 return NULL;
21871 }
21872
21873
21874 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21875 PyObject *resultobj = 0;
21876 wxDC *arg1 = (wxDC *) 0 ;
21877 bool result;
21878 void *argp1 = 0 ;
21879 int res1 = 0 ;
21880 PyObject *swig_obj[1] ;
21881
21882 if (!args) SWIG_fail;
21883 swig_obj[0] = args;
21884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21885 if (!SWIG_IsOK(res1)) {
21886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21887 }
21888 arg1 = reinterpret_cast< wxDC * >(argp1);
21889 {
21890 PyThreadState* __tstate = wxPyBeginAllowThreads();
21891 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21892 wxPyEndAllowThreads(__tstate);
21893 if (PyErr_Occurred()) SWIG_fail;
21894 }
21895 {
21896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21897 }
21898 return resultobj;
21899 fail:
21900 return NULL;
21901 }
21902
21903
21904 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21905 PyObject *resultobj = 0;
21906 wxDC *arg1 = (wxDC *) 0 ;
21907 bool result;
21908 void *argp1 = 0 ;
21909 int res1 = 0 ;
21910 PyObject *swig_obj[1] ;
21911
21912 if (!args) SWIG_fail;
21913 swig_obj[0] = args;
21914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21915 if (!SWIG_IsOK(res1)) {
21916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21917 }
21918 arg1 = reinterpret_cast< wxDC * >(argp1);
21919 {
21920 PyThreadState* __tstate = wxPyBeginAllowThreads();
21921 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21922 wxPyEndAllowThreads(__tstate);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 {
21926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21927 }
21928 return resultobj;
21929 fail:
21930 return NULL;
21931 }
21932
21933
21934 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21935 PyObject *resultobj = 0;
21936 wxDC *arg1 = (wxDC *) 0 ;
21937 int result;
21938 void *argp1 = 0 ;
21939 int res1 = 0 ;
21940 PyObject *swig_obj[1] ;
21941
21942 if (!args) SWIG_fail;
21943 swig_obj[0] = args;
21944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21945 if (!SWIG_IsOK(res1)) {
21946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21947 }
21948 arg1 = reinterpret_cast< wxDC * >(argp1);
21949 {
21950 PyThreadState* __tstate = wxPyBeginAllowThreads();
21951 result = (int)((wxDC const *)arg1)->GetDepth();
21952 wxPyEndAllowThreads(__tstate);
21953 if (PyErr_Occurred()) SWIG_fail;
21954 }
21955 resultobj = SWIG_From_int(static_cast< int >(result));
21956 return resultobj;
21957 fail:
21958 return NULL;
21959 }
21960
21961
21962 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21963 PyObject *resultobj = 0;
21964 wxDC *arg1 = (wxDC *) 0 ;
21965 wxSize result;
21966 void *argp1 = 0 ;
21967 int res1 = 0 ;
21968 PyObject *swig_obj[1] ;
21969
21970 if (!args) SWIG_fail;
21971 swig_obj[0] = args;
21972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21973 if (!SWIG_IsOK(res1)) {
21974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21975 }
21976 arg1 = reinterpret_cast< wxDC * >(argp1);
21977 {
21978 PyThreadState* __tstate = wxPyBeginAllowThreads();
21979 result = ((wxDC const *)arg1)->GetPPI();
21980 wxPyEndAllowThreads(__tstate);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 }
21983 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21984 return resultobj;
21985 fail:
21986 return NULL;
21987 }
21988
21989
21990 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21991 PyObject *resultobj = 0;
21992 wxDC *arg1 = (wxDC *) 0 ;
21993 bool result;
21994 void *argp1 = 0 ;
21995 int res1 = 0 ;
21996 PyObject *swig_obj[1] ;
21997
21998 if (!args) SWIG_fail;
21999 swig_obj[0] = args;
22000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22001 if (!SWIG_IsOK(res1)) {
22002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
22003 }
22004 arg1 = reinterpret_cast< wxDC * >(argp1);
22005 {
22006 PyThreadState* __tstate = wxPyBeginAllowThreads();
22007 result = (bool)((wxDC const *)arg1)->Ok();
22008 wxPyEndAllowThreads(__tstate);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 }
22011 {
22012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22013 }
22014 return resultobj;
22015 fail:
22016 return NULL;
22017 }
22018
22019
22020 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22021 PyObject *resultobj = 0;
22022 wxDC *arg1 = (wxDC *) 0 ;
22023 int result;
22024 void *argp1 = 0 ;
22025 int res1 = 0 ;
22026 PyObject *swig_obj[1] ;
22027
22028 if (!args) SWIG_fail;
22029 swig_obj[0] = args;
22030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22031 if (!SWIG_IsOK(res1)) {
22032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22033 }
22034 arg1 = reinterpret_cast< wxDC * >(argp1);
22035 {
22036 PyThreadState* __tstate = wxPyBeginAllowThreads();
22037 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22038 wxPyEndAllowThreads(__tstate);
22039 if (PyErr_Occurred()) SWIG_fail;
22040 }
22041 resultobj = SWIG_From_int(static_cast< int >(result));
22042 return resultobj;
22043 fail:
22044 return NULL;
22045 }
22046
22047
22048 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22049 PyObject *resultobj = 0;
22050 wxDC *arg1 = (wxDC *) 0 ;
22051 wxBrush *result = 0 ;
22052 void *argp1 = 0 ;
22053 int res1 = 0 ;
22054 PyObject *swig_obj[1] ;
22055
22056 if (!args) SWIG_fail;
22057 swig_obj[0] = args;
22058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22059 if (!SWIG_IsOK(res1)) {
22060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22061 }
22062 arg1 = reinterpret_cast< wxDC * >(argp1);
22063 {
22064 PyThreadState* __tstate = wxPyBeginAllowThreads();
22065 {
22066 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22067 result = (wxBrush *) &_result_ref;
22068 }
22069 wxPyEndAllowThreads(__tstate);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 }
22072 {
22073 wxBrush* resultptr = new wxBrush(*result);
22074 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22075 }
22076 return resultobj;
22077 fail:
22078 return NULL;
22079 }
22080
22081
22082 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22083 PyObject *resultobj = 0;
22084 wxDC *arg1 = (wxDC *) 0 ;
22085 wxBrush *result = 0 ;
22086 void *argp1 = 0 ;
22087 int res1 = 0 ;
22088 PyObject *swig_obj[1] ;
22089
22090 if (!args) SWIG_fail;
22091 swig_obj[0] = args;
22092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22093 if (!SWIG_IsOK(res1)) {
22094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22095 }
22096 arg1 = reinterpret_cast< wxDC * >(argp1);
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 {
22100 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22101 result = (wxBrush *) &_result_ref;
22102 }
22103 wxPyEndAllowThreads(__tstate);
22104 if (PyErr_Occurred()) SWIG_fail;
22105 }
22106 {
22107 wxBrush* resultptr = new wxBrush(*result);
22108 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22109 }
22110 return resultobj;
22111 fail:
22112 return NULL;
22113 }
22114
22115
22116 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22117 PyObject *resultobj = 0;
22118 wxDC *arg1 = (wxDC *) 0 ;
22119 wxFont *result = 0 ;
22120 void *argp1 = 0 ;
22121 int res1 = 0 ;
22122 PyObject *swig_obj[1] ;
22123
22124 if (!args) SWIG_fail;
22125 swig_obj[0] = args;
22126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22127 if (!SWIG_IsOK(res1)) {
22128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22129 }
22130 arg1 = reinterpret_cast< wxDC * >(argp1);
22131 {
22132 PyThreadState* __tstate = wxPyBeginAllowThreads();
22133 {
22134 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22135 result = (wxFont *) &_result_ref;
22136 }
22137 wxPyEndAllowThreads(__tstate);
22138 if (PyErr_Occurred()) SWIG_fail;
22139 }
22140 {
22141 wxFont* resultptr = new wxFont(*result);
22142 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22143 }
22144 return resultobj;
22145 fail:
22146 return NULL;
22147 }
22148
22149
22150 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22151 PyObject *resultobj = 0;
22152 wxDC *arg1 = (wxDC *) 0 ;
22153 wxPen *result = 0 ;
22154 void *argp1 = 0 ;
22155 int res1 = 0 ;
22156 PyObject *swig_obj[1] ;
22157
22158 if (!args) SWIG_fail;
22159 swig_obj[0] = args;
22160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22161 if (!SWIG_IsOK(res1)) {
22162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22163 }
22164 arg1 = reinterpret_cast< wxDC * >(argp1);
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 {
22168 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22169 result = (wxPen *) &_result_ref;
22170 }
22171 wxPyEndAllowThreads(__tstate);
22172 if (PyErr_Occurred()) SWIG_fail;
22173 }
22174 {
22175 wxPen* resultptr = new wxPen(*result);
22176 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22177 }
22178 return resultobj;
22179 fail:
22180 return NULL;
22181 }
22182
22183
22184 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22185 PyObject *resultobj = 0;
22186 wxDC *arg1 = (wxDC *) 0 ;
22187 wxColour *result = 0 ;
22188 void *argp1 = 0 ;
22189 int res1 = 0 ;
22190 PyObject *swig_obj[1] ;
22191
22192 if (!args) SWIG_fail;
22193 swig_obj[0] = args;
22194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22195 if (!SWIG_IsOK(res1)) {
22196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22197 }
22198 arg1 = reinterpret_cast< wxDC * >(argp1);
22199 {
22200 PyThreadState* __tstate = wxPyBeginAllowThreads();
22201 {
22202 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22203 result = (wxColour *) &_result_ref;
22204 }
22205 wxPyEndAllowThreads(__tstate);
22206 if (PyErr_Occurred()) SWIG_fail;
22207 }
22208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22209 return resultobj;
22210 fail:
22211 return NULL;
22212 }
22213
22214
22215 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22216 PyObject *resultobj = 0;
22217 wxDC *arg1 = (wxDC *) 0 ;
22218 wxColour *result = 0 ;
22219 void *argp1 = 0 ;
22220 int res1 = 0 ;
22221 PyObject *swig_obj[1] ;
22222
22223 if (!args) SWIG_fail;
22224 swig_obj[0] = args;
22225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22226 if (!SWIG_IsOK(res1)) {
22227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22228 }
22229 arg1 = reinterpret_cast< wxDC * >(argp1);
22230 {
22231 PyThreadState* __tstate = wxPyBeginAllowThreads();
22232 {
22233 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22234 result = (wxColour *) &_result_ref;
22235 }
22236 wxPyEndAllowThreads(__tstate);
22237 if (PyErr_Occurred()) SWIG_fail;
22238 }
22239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22240 return resultobj;
22241 fail:
22242 return NULL;
22243 }
22244
22245
22246 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22247 PyObject *resultobj = 0;
22248 wxDC *arg1 = (wxDC *) 0 ;
22249 wxColour *arg2 = 0 ;
22250 void *argp1 = 0 ;
22251 int res1 = 0 ;
22252 wxColour temp2 ;
22253 PyObject * obj0 = 0 ;
22254 PyObject * obj1 = 0 ;
22255 char * kwnames[] = {
22256 (char *) "self",(char *) "colour", NULL
22257 };
22258
22259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22261 if (!SWIG_IsOK(res1)) {
22262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22263 }
22264 arg1 = reinterpret_cast< wxDC * >(argp1);
22265 {
22266 arg2 = &temp2;
22267 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22268 }
22269 {
22270 PyThreadState* __tstate = wxPyBeginAllowThreads();
22271 (arg1)->SetTextForeground((wxColour const &)*arg2);
22272 wxPyEndAllowThreads(__tstate);
22273 if (PyErr_Occurred()) SWIG_fail;
22274 }
22275 resultobj = SWIG_Py_Void();
22276 return resultobj;
22277 fail:
22278 return NULL;
22279 }
22280
22281
22282 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22283 PyObject *resultobj = 0;
22284 wxDC *arg1 = (wxDC *) 0 ;
22285 wxColour *arg2 = 0 ;
22286 void *argp1 = 0 ;
22287 int res1 = 0 ;
22288 wxColour temp2 ;
22289 PyObject * obj0 = 0 ;
22290 PyObject * obj1 = 0 ;
22291 char * kwnames[] = {
22292 (char *) "self",(char *) "colour", NULL
22293 };
22294
22295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22297 if (!SWIG_IsOK(res1)) {
22298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22299 }
22300 arg1 = reinterpret_cast< wxDC * >(argp1);
22301 {
22302 arg2 = &temp2;
22303 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22304 }
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
22307 (arg1)->SetTextBackground((wxColour const &)*arg2);
22308 wxPyEndAllowThreads(__tstate);
22309 if (PyErr_Occurred()) SWIG_fail;
22310 }
22311 resultobj = SWIG_Py_Void();
22312 return resultobj;
22313 fail:
22314 return NULL;
22315 }
22316
22317
22318 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22319 PyObject *resultobj = 0;
22320 wxDC *arg1 = (wxDC *) 0 ;
22321 int result;
22322 void *argp1 = 0 ;
22323 int res1 = 0 ;
22324 PyObject *swig_obj[1] ;
22325
22326 if (!args) SWIG_fail;
22327 swig_obj[0] = args;
22328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22329 if (!SWIG_IsOK(res1)) {
22330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22331 }
22332 arg1 = reinterpret_cast< wxDC * >(argp1);
22333 {
22334 PyThreadState* __tstate = wxPyBeginAllowThreads();
22335 result = (int)((wxDC const *)arg1)->GetMapMode();
22336 wxPyEndAllowThreads(__tstate);
22337 if (PyErr_Occurred()) SWIG_fail;
22338 }
22339 resultobj = SWIG_From_int(static_cast< int >(result));
22340 return resultobj;
22341 fail:
22342 return NULL;
22343 }
22344
22345
22346 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22347 PyObject *resultobj = 0;
22348 wxDC *arg1 = (wxDC *) 0 ;
22349 int arg2 ;
22350 void *argp1 = 0 ;
22351 int res1 = 0 ;
22352 int val2 ;
22353 int ecode2 = 0 ;
22354 PyObject * obj0 = 0 ;
22355 PyObject * obj1 = 0 ;
22356 char * kwnames[] = {
22357 (char *) "self",(char *) "mode", NULL
22358 };
22359
22360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22362 if (!SWIG_IsOK(res1)) {
22363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22364 }
22365 arg1 = reinterpret_cast< wxDC * >(argp1);
22366 ecode2 = SWIG_AsVal_int(obj1, &val2);
22367 if (!SWIG_IsOK(ecode2)) {
22368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22369 }
22370 arg2 = static_cast< int >(val2);
22371 {
22372 PyThreadState* __tstate = wxPyBeginAllowThreads();
22373 (arg1)->SetMapMode(arg2);
22374 wxPyEndAllowThreads(__tstate);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 }
22377 resultobj = SWIG_Py_Void();
22378 return resultobj;
22379 fail:
22380 return NULL;
22381 }
22382
22383
22384 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22385 PyObject *resultobj = 0;
22386 wxDC *arg1 = (wxDC *) 0 ;
22387 double *arg2 = (double *) 0 ;
22388 double *arg3 = (double *) 0 ;
22389 void *argp1 = 0 ;
22390 int res1 = 0 ;
22391 double temp2 ;
22392 int res2 = SWIG_TMPOBJ ;
22393 double temp3 ;
22394 int res3 = SWIG_TMPOBJ ;
22395 PyObject *swig_obj[1] ;
22396
22397 arg2 = &temp2;
22398 arg3 = &temp3;
22399 if (!args) SWIG_fail;
22400 swig_obj[0] = args;
22401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22402 if (!SWIG_IsOK(res1)) {
22403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22404 }
22405 arg1 = reinterpret_cast< wxDC * >(argp1);
22406 {
22407 PyThreadState* __tstate = wxPyBeginAllowThreads();
22408 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22409 wxPyEndAllowThreads(__tstate);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 }
22412 resultobj = SWIG_Py_Void();
22413 if (SWIG_IsTmpObj(res2)) {
22414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22415 } else {
22416 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22417 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22418 }
22419 if (SWIG_IsTmpObj(res3)) {
22420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22421 } else {
22422 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22424 }
22425 return resultobj;
22426 fail:
22427 return NULL;
22428 }
22429
22430
22431 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22432 PyObject *resultobj = 0;
22433 wxDC *arg1 = (wxDC *) 0 ;
22434 double arg2 ;
22435 double arg3 ;
22436 void *argp1 = 0 ;
22437 int res1 = 0 ;
22438 double val2 ;
22439 int ecode2 = 0 ;
22440 double val3 ;
22441 int ecode3 = 0 ;
22442 PyObject * obj0 = 0 ;
22443 PyObject * obj1 = 0 ;
22444 PyObject * obj2 = 0 ;
22445 char * kwnames[] = {
22446 (char *) "self",(char *) "x",(char *) "y", NULL
22447 };
22448
22449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22451 if (!SWIG_IsOK(res1)) {
22452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22453 }
22454 arg1 = reinterpret_cast< wxDC * >(argp1);
22455 ecode2 = SWIG_AsVal_double(obj1, &val2);
22456 if (!SWIG_IsOK(ecode2)) {
22457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22458 }
22459 arg2 = static_cast< double >(val2);
22460 ecode3 = SWIG_AsVal_double(obj2, &val3);
22461 if (!SWIG_IsOK(ecode3)) {
22462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22463 }
22464 arg3 = static_cast< double >(val3);
22465 {
22466 PyThreadState* __tstate = wxPyBeginAllowThreads();
22467 (arg1)->SetUserScale(arg2,arg3);
22468 wxPyEndAllowThreads(__tstate);
22469 if (PyErr_Occurred()) SWIG_fail;
22470 }
22471 resultobj = SWIG_Py_Void();
22472 return resultobj;
22473 fail:
22474 return NULL;
22475 }
22476
22477
22478 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22479 PyObject *resultobj = 0;
22480 wxDC *arg1 = (wxDC *) 0 ;
22481 double *arg2 = (double *) 0 ;
22482 double *arg3 = (double *) 0 ;
22483 void *argp1 = 0 ;
22484 int res1 = 0 ;
22485 double temp2 ;
22486 int res2 = SWIG_TMPOBJ ;
22487 double temp3 ;
22488 int res3 = SWIG_TMPOBJ ;
22489 PyObject *swig_obj[1] ;
22490
22491 arg2 = &temp2;
22492 arg3 = &temp3;
22493 if (!args) SWIG_fail;
22494 swig_obj[0] = args;
22495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22496 if (!SWIG_IsOK(res1)) {
22497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22498 }
22499 arg1 = reinterpret_cast< wxDC * >(argp1);
22500 {
22501 PyThreadState* __tstate = wxPyBeginAllowThreads();
22502 (arg1)->GetLogicalScale(arg2,arg3);
22503 wxPyEndAllowThreads(__tstate);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 resultobj = SWIG_Py_Void();
22507 if (SWIG_IsTmpObj(res2)) {
22508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22509 } else {
22510 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22512 }
22513 if (SWIG_IsTmpObj(res3)) {
22514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22515 } else {
22516 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22518 }
22519 return resultobj;
22520 fail:
22521 return NULL;
22522 }
22523
22524
22525 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22526 PyObject *resultobj = 0;
22527 wxDC *arg1 = (wxDC *) 0 ;
22528 double arg2 ;
22529 double arg3 ;
22530 void *argp1 = 0 ;
22531 int res1 = 0 ;
22532 double val2 ;
22533 int ecode2 = 0 ;
22534 double val3 ;
22535 int ecode3 = 0 ;
22536 PyObject * obj0 = 0 ;
22537 PyObject * obj1 = 0 ;
22538 PyObject * obj2 = 0 ;
22539 char * kwnames[] = {
22540 (char *) "self",(char *) "x",(char *) "y", NULL
22541 };
22542
22543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22545 if (!SWIG_IsOK(res1)) {
22546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22547 }
22548 arg1 = reinterpret_cast< wxDC * >(argp1);
22549 ecode2 = SWIG_AsVal_double(obj1, &val2);
22550 if (!SWIG_IsOK(ecode2)) {
22551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22552 }
22553 arg2 = static_cast< double >(val2);
22554 ecode3 = SWIG_AsVal_double(obj2, &val3);
22555 if (!SWIG_IsOK(ecode3)) {
22556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22557 }
22558 arg3 = static_cast< double >(val3);
22559 {
22560 PyThreadState* __tstate = wxPyBeginAllowThreads();
22561 (arg1)->SetLogicalScale(arg2,arg3);
22562 wxPyEndAllowThreads(__tstate);
22563 if (PyErr_Occurred()) SWIG_fail;
22564 }
22565 resultobj = SWIG_Py_Void();
22566 return resultobj;
22567 fail:
22568 return NULL;
22569 }
22570
22571
22572 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22573 PyObject *resultobj = 0;
22574 wxDC *arg1 = (wxDC *) 0 ;
22575 wxPoint result;
22576 void *argp1 = 0 ;
22577 int res1 = 0 ;
22578 PyObject *swig_obj[1] ;
22579
22580 if (!args) SWIG_fail;
22581 swig_obj[0] = args;
22582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22583 if (!SWIG_IsOK(res1)) {
22584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22585 }
22586 arg1 = reinterpret_cast< wxDC * >(argp1);
22587 {
22588 PyThreadState* __tstate = wxPyBeginAllowThreads();
22589 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22594 return resultobj;
22595 fail:
22596 return NULL;
22597 }
22598
22599
22600 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22601 PyObject *resultobj = 0;
22602 wxDC *arg1 = (wxDC *) 0 ;
22603 int *arg2 = (int *) 0 ;
22604 int *arg3 = (int *) 0 ;
22605 void *argp1 = 0 ;
22606 int res1 = 0 ;
22607 int temp2 ;
22608 int res2 = SWIG_TMPOBJ ;
22609 int temp3 ;
22610 int res3 = SWIG_TMPOBJ ;
22611 PyObject *swig_obj[1] ;
22612
22613 arg2 = &temp2;
22614 arg3 = &temp3;
22615 if (!args) SWIG_fail;
22616 swig_obj[0] = args;
22617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22618 if (!SWIG_IsOK(res1)) {
22619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22620 }
22621 arg1 = reinterpret_cast< wxDC * >(argp1);
22622 {
22623 PyThreadState* __tstate = wxPyBeginAllowThreads();
22624 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22625 wxPyEndAllowThreads(__tstate);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 resultobj = SWIG_Py_Void();
22629 if (SWIG_IsTmpObj(res2)) {
22630 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22631 } else {
22632 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22633 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22634 }
22635 if (SWIG_IsTmpObj(res3)) {
22636 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22637 } else {
22638 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22639 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22640 }
22641 return resultobj;
22642 fail:
22643 return NULL;
22644 }
22645
22646
22647 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22648 PyObject *resultobj = 0;
22649 wxDC *arg1 = (wxDC *) 0 ;
22650 int arg2 ;
22651 int arg3 ;
22652 void *argp1 = 0 ;
22653 int res1 = 0 ;
22654 int val2 ;
22655 int ecode2 = 0 ;
22656 int val3 ;
22657 int ecode3 = 0 ;
22658 PyObject * obj0 = 0 ;
22659 PyObject * obj1 = 0 ;
22660 PyObject * obj2 = 0 ;
22661 char * kwnames[] = {
22662 (char *) "self",(char *) "x",(char *) "y", NULL
22663 };
22664
22665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22667 if (!SWIG_IsOK(res1)) {
22668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22669 }
22670 arg1 = reinterpret_cast< wxDC * >(argp1);
22671 ecode2 = SWIG_AsVal_int(obj1, &val2);
22672 if (!SWIG_IsOK(ecode2)) {
22673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22674 }
22675 arg2 = static_cast< int >(val2);
22676 ecode3 = SWIG_AsVal_int(obj2, &val3);
22677 if (!SWIG_IsOK(ecode3)) {
22678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22679 }
22680 arg3 = static_cast< int >(val3);
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 (arg1)->SetLogicalOrigin(arg2,arg3);
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 resultobj = SWIG_Py_Void();
22688 return resultobj;
22689 fail:
22690 return NULL;
22691 }
22692
22693
22694 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22695 PyObject *resultobj = 0;
22696 wxDC *arg1 = (wxDC *) 0 ;
22697 wxPoint *arg2 = 0 ;
22698 void *argp1 = 0 ;
22699 int res1 = 0 ;
22700 wxPoint temp2 ;
22701 PyObject * obj0 = 0 ;
22702 PyObject * obj1 = 0 ;
22703 char * kwnames[] = {
22704 (char *) "self",(char *) "point", NULL
22705 };
22706
22707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22709 if (!SWIG_IsOK(res1)) {
22710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22711 }
22712 arg1 = reinterpret_cast< wxDC * >(argp1);
22713 {
22714 arg2 = &temp2;
22715 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22716 }
22717 {
22718 PyThreadState* __tstate = wxPyBeginAllowThreads();
22719 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22720 wxPyEndAllowThreads(__tstate);
22721 if (PyErr_Occurred()) SWIG_fail;
22722 }
22723 resultobj = SWIG_Py_Void();
22724 return resultobj;
22725 fail:
22726 return NULL;
22727 }
22728
22729
22730 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22731 PyObject *resultobj = 0;
22732 wxDC *arg1 = (wxDC *) 0 ;
22733 wxPoint result;
22734 void *argp1 = 0 ;
22735 int res1 = 0 ;
22736 PyObject *swig_obj[1] ;
22737
22738 if (!args) SWIG_fail;
22739 swig_obj[0] = args;
22740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22741 if (!SWIG_IsOK(res1)) {
22742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22743 }
22744 arg1 = reinterpret_cast< wxDC * >(argp1);
22745 {
22746 PyThreadState* __tstate = wxPyBeginAllowThreads();
22747 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22752 return resultobj;
22753 fail:
22754 return NULL;
22755 }
22756
22757
22758 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *resultobj = 0;
22760 wxDC *arg1 = (wxDC *) 0 ;
22761 int *arg2 = (int *) 0 ;
22762 int *arg3 = (int *) 0 ;
22763 void *argp1 = 0 ;
22764 int res1 = 0 ;
22765 int temp2 ;
22766 int res2 = SWIG_TMPOBJ ;
22767 int temp3 ;
22768 int res3 = SWIG_TMPOBJ ;
22769 PyObject *swig_obj[1] ;
22770
22771 arg2 = &temp2;
22772 arg3 = &temp3;
22773 if (!args) SWIG_fail;
22774 swig_obj[0] = args;
22775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22776 if (!SWIG_IsOK(res1)) {
22777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22778 }
22779 arg1 = reinterpret_cast< wxDC * >(argp1);
22780 {
22781 PyThreadState* __tstate = wxPyBeginAllowThreads();
22782 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22783 wxPyEndAllowThreads(__tstate);
22784 if (PyErr_Occurred()) SWIG_fail;
22785 }
22786 resultobj = SWIG_Py_Void();
22787 if (SWIG_IsTmpObj(res2)) {
22788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22789 } else {
22790 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22792 }
22793 if (SWIG_IsTmpObj(res3)) {
22794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22795 } else {
22796 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22798 }
22799 return resultobj;
22800 fail:
22801 return NULL;
22802 }
22803
22804
22805 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22806 PyObject *resultobj = 0;
22807 wxDC *arg1 = (wxDC *) 0 ;
22808 int arg2 ;
22809 int arg3 ;
22810 void *argp1 = 0 ;
22811 int res1 = 0 ;
22812 int val2 ;
22813 int ecode2 = 0 ;
22814 int val3 ;
22815 int ecode3 = 0 ;
22816 PyObject * obj0 = 0 ;
22817 PyObject * obj1 = 0 ;
22818 PyObject * obj2 = 0 ;
22819 char * kwnames[] = {
22820 (char *) "self",(char *) "x",(char *) "y", NULL
22821 };
22822
22823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22825 if (!SWIG_IsOK(res1)) {
22826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22827 }
22828 arg1 = reinterpret_cast< wxDC * >(argp1);
22829 ecode2 = SWIG_AsVal_int(obj1, &val2);
22830 if (!SWIG_IsOK(ecode2)) {
22831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22832 }
22833 arg2 = static_cast< int >(val2);
22834 ecode3 = SWIG_AsVal_int(obj2, &val3);
22835 if (!SWIG_IsOK(ecode3)) {
22836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22837 }
22838 arg3 = static_cast< int >(val3);
22839 {
22840 PyThreadState* __tstate = wxPyBeginAllowThreads();
22841 (arg1)->SetDeviceOrigin(arg2,arg3);
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 resultobj = SWIG_Py_Void();
22846 return resultobj;
22847 fail:
22848 return NULL;
22849 }
22850
22851
22852 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22853 PyObject *resultobj = 0;
22854 wxDC *arg1 = (wxDC *) 0 ;
22855 wxPoint *arg2 = 0 ;
22856 void *argp1 = 0 ;
22857 int res1 = 0 ;
22858 wxPoint temp2 ;
22859 PyObject * obj0 = 0 ;
22860 PyObject * obj1 = 0 ;
22861 char * kwnames[] = {
22862 (char *) "self",(char *) "point", NULL
22863 };
22864
22865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22867 if (!SWIG_IsOK(res1)) {
22868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22869 }
22870 arg1 = reinterpret_cast< wxDC * >(argp1);
22871 {
22872 arg2 = &temp2;
22873 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22874 }
22875 {
22876 PyThreadState* __tstate = wxPyBeginAllowThreads();
22877 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22878 wxPyEndAllowThreads(__tstate);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 resultobj = SWIG_Py_Void();
22882 return resultobj;
22883 fail:
22884 return NULL;
22885 }
22886
22887
22888 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22889 PyObject *resultobj = 0;
22890 wxDC *arg1 = (wxDC *) 0 ;
22891 bool arg2 ;
22892 bool arg3 ;
22893 void *argp1 = 0 ;
22894 int res1 = 0 ;
22895 bool val2 ;
22896 int ecode2 = 0 ;
22897 bool val3 ;
22898 int ecode3 = 0 ;
22899 PyObject * obj0 = 0 ;
22900 PyObject * obj1 = 0 ;
22901 PyObject * obj2 = 0 ;
22902 char * kwnames[] = {
22903 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22904 };
22905
22906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22908 if (!SWIG_IsOK(res1)) {
22909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22910 }
22911 arg1 = reinterpret_cast< wxDC * >(argp1);
22912 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22913 if (!SWIG_IsOK(ecode2)) {
22914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22915 }
22916 arg2 = static_cast< bool >(val2);
22917 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22918 if (!SWIG_IsOK(ecode3)) {
22919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22920 }
22921 arg3 = static_cast< bool >(val3);
22922 {
22923 PyThreadState* __tstate = wxPyBeginAllowThreads();
22924 (arg1)->SetAxisOrientation(arg2,arg3);
22925 wxPyEndAllowThreads(__tstate);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 }
22928 resultobj = SWIG_Py_Void();
22929 return resultobj;
22930 fail:
22931 return NULL;
22932 }
22933
22934
22935 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22936 PyObject *resultobj = 0;
22937 wxDC *arg1 = (wxDC *) 0 ;
22938 int result;
22939 void *argp1 = 0 ;
22940 int res1 = 0 ;
22941 PyObject *swig_obj[1] ;
22942
22943 if (!args) SWIG_fail;
22944 swig_obj[0] = args;
22945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22946 if (!SWIG_IsOK(res1)) {
22947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22948 }
22949 arg1 = reinterpret_cast< wxDC * >(argp1);
22950 {
22951 PyThreadState* __tstate = wxPyBeginAllowThreads();
22952 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22953 wxPyEndAllowThreads(__tstate);
22954 if (PyErr_Occurred()) SWIG_fail;
22955 }
22956 resultobj = SWIG_From_int(static_cast< int >(result));
22957 return resultobj;
22958 fail:
22959 return NULL;
22960 }
22961
22962
22963 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22964 PyObject *resultobj = 0;
22965 wxDC *arg1 = (wxDC *) 0 ;
22966 int arg2 ;
22967 void *argp1 = 0 ;
22968 int res1 = 0 ;
22969 int val2 ;
22970 int ecode2 = 0 ;
22971 PyObject * obj0 = 0 ;
22972 PyObject * obj1 = 0 ;
22973 char * kwnames[] = {
22974 (char *) "self",(char *) "function", NULL
22975 };
22976
22977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22979 if (!SWIG_IsOK(res1)) {
22980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22981 }
22982 arg1 = reinterpret_cast< wxDC * >(argp1);
22983 ecode2 = SWIG_AsVal_int(obj1, &val2);
22984 if (!SWIG_IsOK(ecode2)) {
22985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22986 }
22987 arg2 = static_cast< int >(val2);
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 (arg1)->SetLogicalFunction(arg2);
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 resultobj = SWIG_Py_Void();
22995 return resultobj;
22996 fail:
22997 return NULL;
22998 }
22999
23000
23001 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23002 PyObject *resultobj = 0;
23003 wxDC *arg1 = (wxDC *) 0 ;
23004 void *argp1 = 0 ;
23005 int res1 = 0 ;
23006 PyObject *swig_obj[1] ;
23007
23008 if (!args) SWIG_fail;
23009 swig_obj[0] = args;
23010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23011 if (!SWIG_IsOK(res1)) {
23012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23013 }
23014 arg1 = reinterpret_cast< wxDC * >(argp1);
23015 {
23016 PyThreadState* __tstate = wxPyBeginAllowThreads();
23017 (arg1)->ComputeScaleAndOrigin();
23018 wxPyEndAllowThreads(__tstate);
23019 if (PyErr_Occurred()) SWIG_fail;
23020 }
23021 resultobj = SWIG_Py_Void();
23022 return resultobj;
23023 fail:
23024 return NULL;
23025 }
23026
23027
23028 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23029 PyObject *resultobj = 0;
23030 wxDC *arg1 = (wxDC *) 0 ;
23031 int arg2 ;
23032 int arg3 ;
23033 void *argp1 = 0 ;
23034 int res1 = 0 ;
23035 int val2 ;
23036 int ecode2 = 0 ;
23037 int val3 ;
23038 int ecode3 = 0 ;
23039 PyObject * obj0 = 0 ;
23040 PyObject * obj1 = 0 ;
23041 PyObject * obj2 = 0 ;
23042 char * kwnames[] = {
23043 (char *) "self",(char *) "x",(char *) "y", NULL
23044 };
23045
23046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23048 if (!SWIG_IsOK(res1)) {
23049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23050 }
23051 arg1 = reinterpret_cast< wxDC * >(argp1);
23052 ecode2 = SWIG_AsVal_int(obj1, &val2);
23053 if (!SWIG_IsOK(ecode2)) {
23054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23055 }
23056 arg2 = static_cast< int >(val2);
23057 ecode3 = SWIG_AsVal_int(obj2, &val3);
23058 if (!SWIG_IsOK(ecode3)) {
23059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23060 }
23061 arg3 = static_cast< int >(val3);
23062 {
23063 PyThreadState* __tstate = wxPyBeginAllowThreads();
23064 (arg1)->CalcBoundingBox(arg2,arg3);
23065 wxPyEndAllowThreads(__tstate);
23066 if (PyErr_Occurred()) SWIG_fail;
23067 }
23068 resultobj = SWIG_Py_Void();
23069 return resultobj;
23070 fail:
23071 return NULL;
23072 }
23073
23074
23075 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23076 PyObject *resultobj = 0;
23077 wxDC *arg1 = (wxDC *) 0 ;
23078 wxPoint *arg2 = 0 ;
23079 void *argp1 = 0 ;
23080 int res1 = 0 ;
23081 wxPoint temp2 ;
23082 PyObject * obj0 = 0 ;
23083 PyObject * obj1 = 0 ;
23084 char * kwnames[] = {
23085 (char *) "self",(char *) "point", NULL
23086 };
23087
23088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23090 if (!SWIG_IsOK(res1)) {
23091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23092 }
23093 arg1 = reinterpret_cast< wxDC * >(argp1);
23094 {
23095 arg2 = &temp2;
23096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23097 }
23098 {
23099 PyThreadState* __tstate = wxPyBeginAllowThreads();
23100 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23101 wxPyEndAllowThreads(__tstate);
23102 if (PyErr_Occurred()) SWIG_fail;
23103 }
23104 resultobj = SWIG_Py_Void();
23105 return resultobj;
23106 fail:
23107 return NULL;
23108 }
23109
23110
23111 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23112 PyObject *resultobj = 0;
23113 wxDC *arg1 = (wxDC *) 0 ;
23114 void *argp1 = 0 ;
23115 int res1 = 0 ;
23116 PyObject *swig_obj[1] ;
23117
23118 if (!args) SWIG_fail;
23119 swig_obj[0] = args;
23120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23121 if (!SWIG_IsOK(res1)) {
23122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23123 }
23124 arg1 = reinterpret_cast< wxDC * >(argp1);
23125 {
23126 PyThreadState* __tstate = wxPyBeginAllowThreads();
23127 (arg1)->ResetBoundingBox();
23128 wxPyEndAllowThreads(__tstate);
23129 if (PyErr_Occurred()) SWIG_fail;
23130 }
23131 resultobj = SWIG_Py_Void();
23132 return resultobj;
23133 fail:
23134 return NULL;
23135 }
23136
23137
23138 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23139 PyObject *resultobj = 0;
23140 wxDC *arg1 = (wxDC *) 0 ;
23141 int result;
23142 void *argp1 = 0 ;
23143 int res1 = 0 ;
23144 PyObject *swig_obj[1] ;
23145
23146 if (!args) SWIG_fail;
23147 swig_obj[0] = args;
23148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23149 if (!SWIG_IsOK(res1)) {
23150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23151 }
23152 arg1 = reinterpret_cast< wxDC * >(argp1);
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
23155 result = (int)((wxDC const *)arg1)->MinX();
23156 wxPyEndAllowThreads(__tstate);
23157 if (PyErr_Occurred()) SWIG_fail;
23158 }
23159 resultobj = SWIG_From_int(static_cast< int >(result));
23160 return resultobj;
23161 fail:
23162 return NULL;
23163 }
23164
23165
23166 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23167 PyObject *resultobj = 0;
23168 wxDC *arg1 = (wxDC *) 0 ;
23169 int result;
23170 void *argp1 = 0 ;
23171 int res1 = 0 ;
23172 PyObject *swig_obj[1] ;
23173
23174 if (!args) SWIG_fail;
23175 swig_obj[0] = args;
23176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23177 if (!SWIG_IsOK(res1)) {
23178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23179 }
23180 arg1 = reinterpret_cast< wxDC * >(argp1);
23181 {
23182 PyThreadState* __tstate = wxPyBeginAllowThreads();
23183 result = (int)((wxDC const *)arg1)->MaxX();
23184 wxPyEndAllowThreads(__tstate);
23185 if (PyErr_Occurred()) SWIG_fail;
23186 }
23187 resultobj = SWIG_From_int(static_cast< int >(result));
23188 return resultobj;
23189 fail:
23190 return NULL;
23191 }
23192
23193
23194 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23195 PyObject *resultobj = 0;
23196 wxDC *arg1 = (wxDC *) 0 ;
23197 int result;
23198 void *argp1 = 0 ;
23199 int res1 = 0 ;
23200 PyObject *swig_obj[1] ;
23201
23202 if (!args) SWIG_fail;
23203 swig_obj[0] = args;
23204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23205 if (!SWIG_IsOK(res1)) {
23206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23207 }
23208 arg1 = reinterpret_cast< wxDC * >(argp1);
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 result = (int)((wxDC const *)arg1)->MinY();
23212 wxPyEndAllowThreads(__tstate);
23213 if (PyErr_Occurred()) SWIG_fail;
23214 }
23215 resultobj = SWIG_From_int(static_cast< int >(result));
23216 return resultobj;
23217 fail:
23218 return NULL;
23219 }
23220
23221
23222 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23223 PyObject *resultobj = 0;
23224 wxDC *arg1 = (wxDC *) 0 ;
23225 int result;
23226 void *argp1 = 0 ;
23227 int res1 = 0 ;
23228 PyObject *swig_obj[1] ;
23229
23230 if (!args) SWIG_fail;
23231 swig_obj[0] = args;
23232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23233 if (!SWIG_IsOK(res1)) {
23234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23235 }
23236 arg1 = reinterpret_cast< wxDC * >(argp1);
23237 {
23238 PyThreadState* __tstate = wxPyBeginAllowThreads();
23239 result = (int)((wxDC const *)arg1)->MaxY();
23240 wxPyEndAllowThreads(__tstate);
23241 if (PyErr_Occurred()) SWIG_fail;
23242 }
23243 resultobj = SWIG_From_int(static_cast< int >(result));
23244 return resultobj;
23245 fail:
23246 return NULL;
23247 }
23248
23249
23250 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23251 PyObject *resultobj = 0;
23252 wxDC *arg1 = (wxDC *) 0 ;
23253 int *arg2 = (int *) 0 ;
23254 int *arg3 = (int *) 0 ;
23255 int *arg4 = (int *) 0 ;
23256 int *arg5 = (int *) 0 ;
23257 void *argp1 = 0 ;
23258 int res1 = 0 ;
23259 int temp2 ;
23260 int res2 = SWIG_TMPOBJ ;
23261 int temp3 ;
23262 int res3 = SWIG_TMPOBJ ;
23263 int temp4 ;
23264 int res4 = SWIG_TMPOBJ ;
23265 int temp5 ;
23266 int res5 = SWIG_TMPOBJ ;
23267 PyObject *swig_obj[1] ;
23268
23269 arg2 = &temp2;
23270 arg3 = &temp3;
23271 arg4 = &temp4;
23272 arg5 = &temp5;
23273 if (!args) SWIG_fail;
23274 swig_obj[0] = args;
23275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23276 if (!SWIG_IsOK(res1)) {
23277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23278 }
23279 arg1 = reinterpret_cast< wxDC * >(argp1);
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 resultobj = SWIG_Py_Void();
23287 if (SWIG_IsTmpObj(res2)) {
23288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23289 } else {
23290 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23292 }
23293 if (SWIG_IsTmpObj(res3)) {
23294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23295 } else {
23296 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23298 }
23299 if (SWIG_IsTmpObj(res4)) {
23300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23301 } else {
23302 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23303 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23304 }
23305 if (SWIG_IsTmpObj(res5)) {
23306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23307 } else {
23308 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23310 }
23311 return resultobj;
23312 fail:
23313 return NULL;
23314 }
23315
23316
23317 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23318 PyObject *resultobj = 0;
23319 wxDC *arg1 = (wxDC *) 0 ;
23320 long result;
23321 void *argp1 = 0 ;
23322 int res1 = 0 ;
23323 PyObject *swig_obj[1] ;
23324
23325 if (!args) SWIG_fail;
23326 swig_obj[0] = args;
23327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23328 if (!SWIG_IsOK(res1)) {
23329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23330 }
23331 arg1 = reinterpret_cast< wxDC * >(argp1);
23332 {
23333 PyThreadState* __tstate = wxPyBeginAllowThreads();
23334 result = (long)(arg1)->GetHDC();
23335 wxPyEndAllowThreads(__tstate);
23336 if (PyErr_Occurred()) SWIG_fail;
23337 }
23338 resultobj = SWIG_From_long(static_cast< long >(result));
23339 return resultobj;
23340 fail:
23341 return NULL;
23342 }
23343
23344
23345 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj = 0;
23347 wxDC *arg1 = (wxDC *) 0 ;
23348 PyObject *arg2 = (PyObject *) 0 ;
23349 PyObject *arg3 = (PyObject *) 0 ;
23350 PyObject *arg4 = (PyObject *) 0 ;
23351 PyObject *result = 0 ;
23352 void *argp1 = 0 ;
23353 int res1 = 0 ;
23354 PyObject * obj0 = 0 ;
23355 PyObject * obj1 = 0 ;
23356 PyObject * obj2 = 0 ;
23357 PyObject * obj3 = 0 ;
23358 char * kwnames[] = {
23359 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23360 };
23361
23362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23364 if (!SWIG_IsOK(res1)) {
23365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23366 }
23367 arg1 = reinterpret_cast< wxDC * >(argp1);
23368 arg2 = obj1;
23369 arg3 = obj2;
23370 arg4 = obj3;
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 resultobj = result;
23378 return resultobj;
23379 fail:
23380 return NULL;
23381 }
23382
23383
23384 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23385 PyObject *resultobj = 0;
23386 wxDC *arg1 = (wxDC *) 0 ;
23387 PyObject *arg2 = (PyObject *) 0 ;
23388 PyObject *arg3 = (PyObject *) 0 ;
23389 PyObject *arg4 = (PyObject *) 0 ;
23390 PyObject *result = 0 ;
23391 void *argp1 = 0 ;
23392 int res1 = 0 ;
23393 PyObject * obj0 = 0 ;
23394 PyObject * obj1 = 0 ;
23395 PyObject * obj2 = 0 ;
23396 PyObject * obj3 = 0 ;
23397 char * kwnames[] = {
23398 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23399 };
23400
23401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23403 if (!SWIG_IsOK(res1)) {
23404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23405 }
23406 arg1 = reinterpret_cast< wxDC * >(argp1);
23407 arg2 = obj1;
23408 arg3 = obj2;
23409 arg4 = obj3;
23410 {
23411 PyThreadState* __tstate = wxPyBeginAllowThreads();
23412 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23413 wxPyEndAllowThreads(__tstate);
23414 if (PyErr_Occurred()) SWIG_fail;
23415 }
23416 resultobj = result;
23417 return resultobj;
23418 fail:
23419 return NULL;
23420 }
23421
23422
23423 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23424 PyObject *resultobj = 0;
23425 wxDC *arg1 = (wxDC *) 0 ;
23426 PyObject *arg2 = (PyObject *) 0 ;
23427 PyObject *arg3 = (PyObject *) 0 ;
23428 PyObject *arg4 = (PyObject *) 0 ;
23429 PyObject *result = 0 ;
23430 void *argp1 = 0 ;
23431 int res1 = 0 ;
23432 PyObject * obj0 = 0 ;
23433 PyObject * obj1 = 0 ;
23434 PyObject * obj2 = 0 ;
23435 PyObject * obj3 = 0 ;
23436 char * kwnames[] = {
23437 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23438 };
23439
23440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23442 if (!SWIG_IsOK(res1)) {
23443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23444 }
23445 arg1 = reinterpret_cast< wxDC * >(argp1);
23446 arg2 = obj1;
23447 arg3 = obj2;
23448 arg4 = obj3;
23449 {
23450 PyThreadState* __tstate = wxPyBeginAllowThreads();
23451 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23452 wxPyEndAllowThreads(__tstate);
23453 if (PyErr_Occurred()) SWIG_fail;
23454 }
23455 resultobj = result;
23456 return resultobj;
23457 fail:
23458 return NULL;
23459 }
23460
23461
23462 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23463 PyObject *resultobj = 0;
23464 wxDC *arg1 = (wxDC *) 0 ;
23465 PyObject *arg2 = (PyObject *) 0 ;
23466 PyObject *arg3 = (PyObject *) 0 ;
23467 PyObject *arg4 = (PyObject *) 0 ;
23468 PyObject *result = 0 ;
23469 void *argp1 = 0 ;
23470 int res1 = 0 ;
23471 PyObject * obj0 = 0 ;
23472 PyObject * obj1 = 0 ;
23473 PyObject * obj2 = 0 ;
23474 PyObject * obj3 = 0 ;
23475 char * kwnames[] = {
23476 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23477 };
23478
23479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23481 if (!SWIG_IsOK(res1)) {
23482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23483 }
23484 arg1 = reinterpret_cast< wxDC * >(argp1);
23485 arg2 = obj1;
23486 arg3 = obj2;
23487 arg4 = obj3;
23488 {
23489 PyThreadState* __tstate = wxPyBeginAllowThreads();
23490 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23491 wxPyEndAllowThreads(__tstate);
23492 if (PyErr_Occurred()) SWIG_fail;
23493 }
23494 resultobj = result;
23495 return resultobj;
23496 fail:
23497 return NULL;
23498 }
23499
23500
23501 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23502 PyObject *resultobj = 0;
23503 wxDC *arg1 = (wxDC *) 0 ;
23504 PyObject *arg2 = (PyObject *) 0 ;
23505 PyObject *arg3 = (PyObject *) 0 ;
23506 PyObject *arg4 = (PyObject *) 0 ;
23507 PyObject *result = 0 ;
23508 void *argp1 = 0 ;
23509 int res1 = 0 ;
23510 PyObject * obj0 = 0 ;
23511 PyObject * obj1 = 0 ;
23512 PyObject * obj2 = 0 ;
23513 PyObject * obj3 = 0 ;
23514 char * kwnames[] = {
23515 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23516 };
23517
23518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23520 if (!SWIG_IsOK(res1)) {
23521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23522 }
23523 arg1 = reinterpret_cast< wxDC * >(argp1);
23524 arg2 = obj1;
23525 arg3 = obj2;
23526 arg4 = obj3;
23527 {
23528 PyThreadState* __tstate = wxPyBeginAllowThreads();
23529 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23530 wxPyEndAllowThreads(__tstate);
23531 if (PyErr_Occurred()) SWIG_fail;
23532 }
23533 resultobj = result;
23534 return resultobj;
23535 fail:
23536 return NULL;
23537 }
23538
23539
23540 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23541 PyObject *resultobj = 0;
23542 wxDC *arg1 = (wxDC *) 0 ;
23543 PyObject *arg2 = (PyObject *) 0 ;
23544 PyObject *arg3 = (PyObject *) 0 ;
23545 PyObject *arg4 = (PyObject *) 0 ;
23546 PyObject *arg5 = (PyObject *) 0 ;
23547 PyObject *result = 0 ;
23548 void *argp1 = 0 ;
23549 int res1 = 0 ;
23550 PyObject * obj0 = 0 ;
23551 PyObject * obj1 = 0 ;
23552 PyObject * obj2 = 0 ;
23553 PyObject * obj3 = 0 ;
23554 PyObject * obj4 = 0 ;
23555 char * kwnames[] = {
23556 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23557 };
23558
23559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23561 if (!SWIG_IsOK(res1)) {
23562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23563 }
23564 arg1 = reinterpret_cast< wxDC * >(argp1);
23565 arg2 = obj1;
23566 arg3 = obj2;
23567 arg4 = obj3;
23568 arg5 = obj4;
23569 {
23570 PyThreadState* __tstate = wxPyBeginAllowThreads();
23571 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23572 wxPyEndAllowThreads(__tstate);
23573 if (PyErr_Occurred()) SWIG_fail;
23574 }
23575 resultobj = result;
23576 return resultobj;
23577 fail:
23578 return NULL;
23579 }
23580
23581
23582 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23583 PyObject *obj;
23584 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23585 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23586 return SWIG_Py_Void();
23587 }
23588
23589 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23590 PyObject *resultobj = 0;
23591 wxMemoryDC *result = 0 ;
23592
23593 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23594 {
23595 if (!wxPyCheckForApp()) SWIG_fail;
23596 PyThreadState* __tstate = wxPyBeginAllowThreads();
23597 result = (wxMemoryDC *)new wxMemoryDC();
23598 wxPyEndAllowThreads(__tstate);
23599 if (PyErr_Occurred()) SWIG_fail;
23600 }
23601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23602 return resultobj;
23603 fail:
23604 return NULL;
23605 }
23606
23607
23608 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23609 PyObject *resultobj = 0;
23610 wxDC *arg1 = (wxDC *) 0 ;
23611 wxMemoryDC *result = 0 ;
23612 void *argp1 = 0 ;
23613 int res1 = 0 ;
23614 PyObject * obj0 = 0 ;
23615 char * kwnames[] = {
23616 (char *) "oldDC", NULL
23617 };
23618
23619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23621 if (!SWIG_IsOK(res1)) {
23622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23623 }
23624 arg1 = reinterpret_cast< wxDC * >(argp1);
23625 {
23626 if (!wxPyCheckForApp()) SWIG_fail;
23627 PyThreadState* __tstate = wxPyBeginAllowThreads();
23628 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23629 wxPyEndAllowThreads(__tstate);
23630 if (PyErr_Occurred()) SWIG_fail;
23631 }
23632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23633 return resultobj;
23634 fail:
23635 return NULL;
23636 }
23637
23638
23639 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23640 PyObject *resultobj = 0;
23641 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23642 wxBitmap *arg2 = 0 ;
23643 void *argp1 = 0 ;
23644 int res1 = 0 ;
23645 void *argp2 = 0 ;
23646 int res2 = 0 ;
23647 PyObject * obj0 = 0 ;
23648 PyObject * obj1 = 0 ;
23649 char * kwnames[] = {
23650 (char *) "self",(char *) "bitmap", NULL
23651 };
23652
23653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23655 if (!SWIG_IsOK(res1)) {
23656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23657 }
23658 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23660 if (!SWIG_IsOK(res2)) {
23661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23662 }
23663 if (!argp2) {
23664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23665 }
23666 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23667 {
23668 PyThreadState* __tstate = wxPyBeginAllowThreads();
23669 (arg1)->SelectObject((wxBitmap const &)*arg2);
23670 wxPyEndAllowThreads(__tstate);
23671 if (PyErr_Occurred()) SWIG_fail;
23672 }
23673 resultobj = SWIG_Py_Void();
23674 return resultobj;
23675 fail:
23676 return NULL;
23677 }
23678
23679
23680 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23681 PyObject *obj;
23682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23683 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23684 return SWIG_Py_Void();
23685 }
23686
23687 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23688 return SWIG_Python_InitShadowInstance(args);
23689 }
23690
23691 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23692 PyObject *resultobj = 0;
23693 wxDC *arg1 = (wxDC *) 0 ;
23694 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23695 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23696 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23697 wxBufferedDC *result = 0 ;
23698 void *argp1 = 0 ;
23699 int res1 = 0 ;
23700 void *argp2 = 0 ;
23701 int res2 = 0 ;
23702 int val3 ;
23703 int ecode3 = 0 ;
23704
23705 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23707 if (!SWIG_IsOK(res1)) {
23708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23709 }
23710 arg1 = reinterpret_cast< wxDC * >(argp1);
23711 if (swig_obj[1]) {
23712 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23713 if (!SWIG_IsOK(res2)) {
23714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23715 }
23716 if (!argp2) {
23717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23718 }
23719 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23720 }
23721 if (swig_obj[2]) {
23722 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23723 if (!SWIG_IsOK(ecode3)) {
23724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23725 }
23726 arg3 = static_cast< int >(val3);
23727 }
23728 {
23729 if (!wxPyCheckForApp()) SWIG_fail;
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23736 return resultobj;
23737 fail:
23738 return NULL;
23739 }
23740
23741
23742 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23743 PyObject *resultobj = 0;
23744 wxDC *arg1 = (wxDC *) 0 ;
23745 wxSize *arg2 = 0 ;
23746 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23747 wxBufferedDC *result = 0 ;
23748 void *argp1 = 0 ;
23749 int res1 = 0 ;
23750 wxSize temp2 ;
23751 int val3 ;
23752 int ecode3 = 0 ;
23753
23754 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23756 if (!SWIG_IsOK(res1)) {
23757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23758 }
23759 arg1 = reinterpret_cast< wxDC * >(argp1);
23760 {
23761 arg2 = &temp2;
23762 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23763 }
23764 if (swig_obj[2]) {
23765 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23766 if (!SWIG_IsOK(ecode3)) {
23767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23768 }
23769 arg3 = static_cast< int >(val3);
23770 }
23771 {
23772 if (!wxPyCheckForApp()) SWIG_fail;
23773 PyThreadState* __tstate = wxPyBeginAllowThreads();
23774 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23775 wxPyEndAllowThreads(__tstate);
23776 if (PyErr_Occurred()) SWIG_fail;
23777 }
23778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23779 return resultobj;
23780 fail:
23781 return NULL;
23782 }
23783
23784
23785 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23786 int argc;
23787 PyObject *argv[4];
23788
23789 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23790 --argc;
23791 if ((argc >= 1) && (argc <= 3)) {
23792 int _v = 0;
23793 if (argc > 1) {
23794 {
23795 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23796 _v = SWIG_CheckState(res);
23797 }
23798 if (!_v) goto check_1;
23799 }
23800 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23801 }
23802 check_1:
23803
23804 if ((argc >= 2) && (argc <= 3)) {
23805 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23806 }
23807
23808 fail:
23809 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23810 return NULL;
23811 }
23812
23813
23814 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23815 PyObject *resultobj = 0;
23816 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23817 void *argp1 = 0 ;
23818 int res1 = 0 ;
23819 PyObject *swig_obj[1] ;
23820
23821 if (!args) SWIG_fail;
23822 swig_obj[0] = args;
23823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23824 if (!SWIG_IsOK(res1)) {
23825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23826 }
23827 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23828 {
23829 PyThreadState* __tstate = wxPyBeginAllowThreads();
23830 delete arg1;
23831
23832 wxPyEndAllowThreads(__tstate);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 resultobj = SWIG_Py_Void();
23836 return resultobj;
23837 fail:
23838 return NULL;
23839 }
23840
23841
23842 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23843 PyObject *resultobj = 0;
23844 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23845 void *argp1 = 0 ;
23846 int res1 = 0 ;
23847 PyObject *swig_obj[1] ;
23848
23849 if (!args) SWIG_fail;
23850 swig_obj[0] = args;
23851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23852 if (!SWIG_IsOK(res1)) {
23853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23854 }
23855 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23856 {
23857 PyThreadState* __tstate = wxPyBeginAllowThreads();
23858 (arg1)->UnMask();
23859 wxPyEndAllowThreads(__tstate);
23860 if (PyErr_Occurred()) SWIG_fail;
23861 }
23862 resultobj = SWIG_Py_Void();
23863 return resultobj;
23864 fail:
23865 return NULL;
23866 }
23867
23868
23869 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23870 PyObject *obj;
23871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23872 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23873 return SWIG_Py_Void();
23874 }
23875
23876 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23877 return SWIG_Python_InitShadowInstance(args);
23878 }
23879
23880 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23881 PyObject *resultobj = 0;
23882 wxWindow *arg1 = (wxWindow *) 0 ;
23883 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23884 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23885 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23886 wxBufferedPaintDC *result = 0 ;
23887 void *argp1 = 0 ;
23888 int res1 = 0 ;
23889 void *argp2 = 0 ;
23890 int res2 = 0 ;
23891 int val3 ;
23892 int ecode3 = 0 ;
23893 PyObject * obj0 = 0 ;
23894 PyObject * obj1 = 0 ;
23895 PyObject * obj2 = 0 ;
23896 char * kwnames[] = {
23897 (char *) "window",(char *) "buffer",(char *) "style", NULL
23898 };
23899
23900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23902 if (!SWIG_IsOK(res1)) {
23903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23904 }
23905 arg1 = reinterpret_cast< wxWindow * >(argp1);
23906 if (obj1) {
23907 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23908 if (!SWIG_IsOK(res2)) {
23909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23910 }
23911 if (!argp2) {
23912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23913 }
23914 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23915 }
23916 if (obj2) {
23917 ecode3 = SWIG_AsVal_int(obj2, &val3);
23918 if (!SWIG_IsOK(ecode3)) {
23919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23920 }
23921 arg3 = static_cast< int >(val3);
23922 }
23923 {
23924 if (!wxPyCheckForApp()) SWIG_fail;
23925 PyThreadState* __tstate = wxPyBeginAllowThreads();
23926 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23927 wxPyEndAllowThreads(__tstate);
23928 if (PyErr_Occurred()) SWIG_fail;
23929 }
23930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23931 return resultobj;
23932 fail:
23933 return NULL;
23934 }
23935
23936
23937 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23938 PyObject *obj;
23939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23940 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23941 return SWIG_Py_Void();
23942 }
23943
23944 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23945 return SWIG_Python_InitShadowInstance(args);
23946 }
23947
23948 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23949 PyObject *resultobj = 0;
23950 wxScreenDC *result = 0 ;
23951
23952 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23953 {
23954 if (!wxPyCheckForApp()) SWIG_fail;
23955 PyThreadState* __tstate = wxPyBeginAllowThreads();
23956 result = (wxScreenDC *)new wxScreenDC();
23957 wxPyEndAllowThreads(__tstate);
23958 if (PyErr_Occurred()) SWIG_fail;
23959 }
23960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23961 return resultobj;
23962 fail:
23963 return NULL;
23964 }
23965
23966
23967 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23968 PyObject *resultobj = 0;
23969 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23970 wxWindow *arg2 = (wxWindow *) 0 ;
23971 bool result;
23972 void *argp1 = 0 ;
23973 int res1 = 0 ;
23974 void *argp2 = 0 ;
23975 int res2 = 0 ;
23976 PyObject * obj0 = 0 ;
23977 PyObject * obj1 = 0 ;
23978 char * kwnames[] = {
23979 (char *) "self",(char *) "window", NULL
23980 };
23981
23982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23984 if (!SWIG_IsOK(res1)) {
23985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23986 }
23987 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23988 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23989 if (!SWIG_IsOK(res2)) {
23990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23991 }
23992 arg2 = reinterpret_cast< wxWindow * >(argp2);
23993 {
23994 PyThreadState* __tstate = wxPyBeginAllowThreads();
23995 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23996 wxPyEndAllowThreads(__tstate);
23997 if (PyErr_Occurred()) SWIG_fail;
23998 }
23999 {
24000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24001 }
24002 return resultobj;
24003 fail:
24004 return NULL;
24005 }
24006
24007
24008 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24009 PyObject *resultobj = 0;
24010 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24011 wxRect *arg2 = (wxRect *) NULL ;
24012 bool result;
24013 void *argp1 = 0 ;
24014 int res1 = 0 ;
24015 void *argp2 = 0 ;
24016 int res2 = 0 ;
24017 PyObject * obj0 = 0 ;
24018 PyObject * obj1 = 0 ;
24019 char * kwnames[] = {
24020 (char *) "self",(char *) "rect", NULL
24021 };
24022
24023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24025 if (!SWIG_IsOK(res1)) {
24026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24027 }
24028 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24029 if (obj1) {
24030 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24031 if (!SWIG_IsOK(res2)) {
24032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24033 }
24034 arg2 = reinterpret_cast< wxRect * >(argp2);
24035 }
24036 {
24037 PyThreadState* __tstate = wxPyBeginAllowThreads();
24038 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24039 wxPyEndAllowThreads(__tstate);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 }
24042 {
24043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24044 }
24045 return resultobj;
24046 fail:
24047 return NULL;
24048 }
24049
24050
24051 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24052 PyObject *resultobj = 0;
24053 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24054 bool result;
24055 void *argp1 = 0 ;
24056 int res1 = 0 ;
24057 PyObject *swig_obj[1] ;
24058
24059 if (!args) SWIG_fail;
24060 swig_obj[0] = args;
24061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24062 if (!SWIG_IsOK(res1)) {
24063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24064 }
24065 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24066 {
24067 PyThreadState* __tstate = wxPyBeginAllowThreads();
24068 result = (bool)(arg1)->EndDrawingOnTop();
24069 wxPyEndAllowThreads(__tstate);
24070 if (PyErr_Occurred()) SWIG_fail;
24071 }
24072 {
24073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24074 }
24075 return resultobj;
24076 fail:
24077 return NULL;
24078 }
24079
24080
24081 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24082 PyObject *obj;
24083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24084 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24085 return SWIG_Py_Void();
24086 }
24087
24088 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24089 return SWIG_Python_InitShadowInstance(args);
24090 }
24091
24092 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24093 PyObject *resultobj = 0;
24094 wxWindow *arg1 = (wxWindow *) 0 ;
24095 wxClientDC *result = 0 ;
24096 void *argp1 = 0 ;
24097 int res1 = 0 ;
24098 PyObject * obj0 = 0 ;
24099 char * kwnames[] = {
24100 (char *) "win", NULL
24101 };
24102
24103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24105 if (!SWIG_IsOK(res1)) {
24106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24107 }
24108 arg1 = reinterpret_cast< wxWindow * >(argp1);
24109 {
24110 if (!wxPyCheckForApp()) SWIG_fail;
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 result = (wxClientDC *)new wxClientDC(arg1);
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24117 return resultobj;
24118 fail:
24119 return NULL;
24120 }
24121
24122
24123 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24124 PyObject *obj;
24125 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24126 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24127 return SWIG_Py_Void();
24128 }
24129
24130 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24131 return SWIG_Python_InitShadowInstance(args);
24132 }
24133
24134 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24135 PyObject *resultobj = 0;
24136 wxWindow *arg1 = (wxWindow *) 0 ;
24137 wxPaintDC *result = 0 ;
24138 void *argp1 = 0 ;
24139 int res1 = 0 ;
24140 PyObject * obj0 = 0 ;
24141 char * kwnames[] = {
24142 (char *) "win", NULL
24143 };
24144
24145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24147 if (!SWIG_IsOK(res1)) {
24148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24149 }
24150 arg1 = reinterpret_cast< wxWindow * >(argp1);
24151 {
24152 if (!wxPyCheckForApp()) SWIG_fail;
24153 PyThreadState* __tstate = wxPyBeginAllowThreads();
24154 result = (wxPaintDC *)new wxPaintDC(arg1);
24155 wxPyEndAllowThreads(__tstate);
24156 if (PyErr_Occurred()) SWIG_fail;
24157 }
24158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24159 return resultobj;
24160 fail:
24161 return NULL;
24162 }
24163
24164
24165 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24166 PyObject *obj;
24167 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24168 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24169 return SWIG_Py_Void();
24170 }
24171
24172 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24173 return SWIG_Python_InitShadowInstance(args);
24174 }
24175
24176 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24177 PyObject *resultobj = 0;
24178 wxWindow *arg1 = (wxWindow *) 0 ;
24179 wxWindowDC *result = 0 ;
24180 void *argp1 = 0 ;
24181 int res1 = 0 ;
24182 PyObject * obj0 = 0 ;
24183 char * kwnames[] = {
24184 (char *) "win", NULL
24185 };
24186
24187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24189 if (!SWIG_IsOK(res1)) {
24190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24191 }
24192 arg1 = reinterpret_cast< wxWindow * >(argp1);
24193 {
24194 if (!wxPyCheckForApp()) SWIG_fail;
24195 PyThreadState* __tstate = wxPyBeginAllowThreads();
24196 result = (wxWindowDC *)new wxWindowDC(arg1);
24197 wxPyEndAllowThreads(__tstate);
24198 if (PyErr_Occurred()) SWIG_fail;
24199 }
24200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24201 return resultobj;
24202 fail:
24203 return NULL;
24204 }
24205
24206
24207 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24208 PyObject *obj;
24209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24210 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24211 return SWIG_Py_Void();
24212 }
24213
24214 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24215 return SWIG_Python_InitShadowInstance(args);
24216 }
24217
24218 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24219 PyObject *resultobj = 0;
24220 wxDC *arg1 = 0 ;
24221 bool arg2 ;
24222 wxMirrorDC *result = 0 ;
24223 void *argp1 = 0 ;
24224 int res1 = 0 ;
24225 bool val2 ;
24226 int ecode2 = 0 ;
24227 PyObject * obj0 = 0 ;
24228 PyObject * obj1 = 0 ;
24229 char * kwnames[] = {
24230 (char *) "dc",(char *) "mirror", NULL
24231 };
24232
24233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24234 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24235 if (!SWIG_IsOK(res1)) {
24236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24237 }
24238 if (!argp1) {
24239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24240 }
24241 arg1 = reinterpret_cast< wxDC * >(argp1);
24242 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24243 if (!SWIG_IsOK(ecode2)) {
24244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24245 }
24246 arg2 = static_cast< bool >(val2);
24247 {
24248 if (!wxPyCheckForApp()) SWIG_fail;
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24262 PyObject *obj;
24263 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24264 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24265 return SWIG_Py_Void();
24266 }
24267
24268 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24269 return SWIG_Python_InitShadowInstance(args);
24270 }
24271
24272 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24273 PyObject *resultobj = 0;
24274 wxPrintData *arg1 = 0 ;
24275 wxPostScriptDC *result = 0 ;
24276 void *argp1 = 0 ;
24277 int res1 = 0 ;
24278 PyObject * obj0 = 0 ;
24279 char * kwnames[] = {
24280 (char *) "printData", NULL
24281 };
24282
24283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24284 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24285 if (!SWIG_IsOK(res1)) {
24286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24287 }
24288 if (!argp1) {
24289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24290 }
24291 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24292 {
24293 if (!wxPyCheckForApp()) SWIG_fail;
24294 PyThreadState* __tstate = wxPyBeginAllowThreads();
24295 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24296 wxPyEndAllowThreads(__tstate);
24297 if (PyErr_Occurred()) SWIG_fail;
24298 }
24299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24300 return resultobj;
24301 fail:
24302 return NULL;
24303 }
24304
24305
24306 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24307 PyObject *resultobj = 0;
24308 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24309 wxPrintData *result = 0 ;
24310 void *argp1 = 0 ;
24311 int res1 = 0 ;
24312 PyObject *swig_obj[1] ;
24313
24314 if (!args) SWIG_fail;
24315 swig_obj[0] = args;
24316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24317 if (!SWIG_IsOK(res1)) {
24318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24319 }
24320 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 {
24324 wxPrintData &_result_ref = (arg1)->GetPrintData();
24325 result = (wxPrintData *) &_result_ref;
24326 }
24327 wxPyEndAllowThreads(__tstate);
24328 if (PyErr_Occurred()) SWIG_fail;
24329 }
24330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24331 return resultobj;
24332 fail:
24333 return NULL;
24334 }
24335
24336
24337 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24338 PyObject *resultobj = 0;
24339 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24340 wxPrintData *arg2 = 0 ;
24341 void *argp1 = 0 ;
24342 int res1 = 0 ;
24343 void *argp2 = 0 ;
24344 int res2 = 0 ;
24345 PyObject * obj0 = 0 ;
24346 PyObject * obj1 = 0 ;
24347 char * kwnames[] = {
24348 (char *) "self",(char *) "data", NULL
24349 };
24350
24351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24353 if (!SWIG_IsOK(res1)) {
24354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24355 }
24356 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24358 if (!SWIG_IsOK(res2)) {
24359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24360 }
24361 if (!argp2) {
24362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24363 }
24364 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24365 {
24366 PyThreadState* __tstate = wxPyBeginAllowThreads();
24367 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24368 wxPyEndAllowThreads(__tstate);
24369 if (PyErr_Occurred()) SWIG_fail;
24370 }
24371 resultobj = SWIG_Py_Void();
24372 return resultobj;
24373 fail:
24374 return NULL;
24375 }
24376
24377
24378 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24379 PyObject *resultobj = 0;
24380 int arg1 ;
24381 int val1 ;
24382 int ecode1 = 0 ;
24383 PyObject * obj0 = 0 ;
24384 char * kwnames[] = {
24385 (char *) "ppi", NULL
24386 };
24387
24388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24389 ecode1 = SWIG_AsVal_int(obj0, &val1);
24390 if (!SWIG_IsOK(ecode1)) {
24391 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24392 }
24393 arg1 = static_cast< int >(val1);
24394 {
24395 PyThreadState* __tstate = wxPyBeginAllowThreads();
24396 wxPostScriptDC::SetResolution(arg1);
24397 wxPyEndAllowThreads(__tstate);
24398 if (PyErr_Occurred()) SWIG_fail;
24399 }
24400 resultobj = SWIG_Py_Void();
24401 return resultobj;
24402 fail:
24403 return NULL;
24404 }
24405
24406
24407 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24408 PyObject *resultobj = 0;
24409 int result;
24410
24411 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 result = (int)wxPostScriptDC::GetResolution();
24415 wxPyEndAllowThreads(__tstate);
24416 if (PyErr_Occurred()) SWIG_fail;
24417 }
24418 resultobj = SWIG_From_int(static_cast< int >(result));
24419 return resultobj;
24420 fail:
24421 return NULL;
24422 }
24423
24424
24425 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24426 PyObject *obj;
24427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24428 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24429 return SWIG_Py_Void();
24430 }
24431
24432 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24433 return SWIG_Python_InitShadowInstance(args);
24434 }
24435
24436 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24437 PyObject *resultobj = 0;
24438 wxString const &arg1_defvalue = wxPyEmptyString ;
24439 wxString *arg1 = (wxString *) &arg1_defvalue ;
24440 wxMetaFile *result = 0 ;
24441 bool temp1 = false ;
24442 PyObject * obj0 = 0 ;
24443 char * kwnames[] = {
24444 (char *) "filename", NULL
24445 };
24446
24447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24448 if (obj0) {
24449 {
24450 arg1 = wxString_in_helper(obj0);
24451 if (arg1 == NULL) SWIG_fail;
24452 temp1 = true;
24453 }
24454 }
24455 {
24456 if (!wxPyCheckForApp()) SWIG_fail;
24457 PyThreadState* __tstate = wxPyBeginAllowThreads();
24458 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24459 wxPyEndAllowThreads(__tstate);
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24463 {
24464 if (temp1)
24465 delete arg1;
24466 }
24467 return resultobj;
24468 fail:
24469 {
24470 if (temp1)
24471 delete arg1;
24472 }
24473 return NULL;
24474 }
24475
24476
24477 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24478 PyObject *resultobj = 0;
24479 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24480 void *argp1 = 0 ;
24481 int res1 = 0 ;
24482 PyObject *swig_obj[1] ;
24483
24484 if (!args) SWIG_fail;
24485 swig_obj[0] = args;
24486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24487 if (!SWIG_IsOK(res1)) {
24488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24489 }
24490 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24491 {
24492 PyThreadState* __tstate = wxPyBeginAllowThreads();
24493 delete arg1;
24494
24495 wxPyEndAllowThreads(__tstate);
24496 if (PyErr_Occurred()) SWIG_fail;
24497 }
24498 resultobj = SWIG_Py_Void();
24499 return resultobj;
24500 fail:
24501 return NULL;
24502 }
24503
24504
24505 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24506 PyObject *resultobj = 0;
24507 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24508 bool result;
24509 void *argp1 = 0 ;
24510 int res1 = 0 ;
24511 PyObject *swig_obj[1] ;
24512
24513 if (!args) SWIG_fail;
24514 swig_obj[0] = args;
24515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24516 if (!SWIG_IsOK(res1)) {
24517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24518 }
24519 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24520 {
24521 PyThreadState* __tstate = wxPyBeginAllowThreads();
24522 result = (bool)(arg1)->Ok();
24523 wxPyEndAllowThreads(__tstate);
24524 if (PyErr_Occurred()) SWIG_fail;
24525 }
24526 {
24527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24528 }
24529 return resultobj;
24530 fail:
24531 return NULL;
24532 }
24533
24534
24535 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24536 PyObject *resultobj = 0;
24537 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24538 int arg2 = (int) 0 ;
24539 int arg3 = (int) 0 ;
24540 bool result;
24541 void *argp1 = 0 ;
24542 int res1 = 0 ;
24543 int val2 ;
24544 int ecode2 = 0 ;
24545 int val3 ;
24546 int ecode3 = 0 ;
24547 PyObject * obj0 = 0 ;
24548 PyObject * obj1 = 0 ;
24549 PyObject * obj2 = 0 ;
24550 char * kwnames[] = {
24551 (char *) "self",(char *) "width",(char *) "height", NULL
24552 };
24553
24554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24556 if (!SWIG_IsOK(res1)) {
24557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24558 }
24559 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24560 if (obj1) {
24561 ecode2 = SWIG_AsVal_int(obj1, &val2);
24562 if (!SWIG_IsOK(ecode2)) {
24563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24564 }
24565 arg2 = static_cast< int >(val2);
24566 }
24567 if (obj2) {
24568 ecode3 = SWIG_AsVal_int(obj2, &val3);
24569 if (!SWIG_IsOK(ecode3)) {
24570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24571 }
24572 arg3 = static_cast< int >(val3);
24573 }
24574 {
24575 PyThreadState* __tstate = wxPyBeginAllowThreads();
24576 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24577 wxPyEndAllowThreads(__tstate);
24578 if (PyErr_Occurred()) SWIG_fail;
24579 }
24580 {
24581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24582 }
24583 return resultobj;
24584 fail:
24585 return NULL;
24586 }
24587
24588
24589 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24590 PyObject *resultobj = 0;
24591 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24592 wxSize result;
24593 void *argp1 = 0 ;
24594 int res1 = 0 ;
24595 PyObject *swig_obj[1] ;
24596
24597 if (!args) SWIG_fail;
24598 swig_obj[0] = args;
24599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24600 if (!SWIG_IsOK(res1)) {
24601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24602 }
24603 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24604 {
24605 PyThreadState* __tstate = wxPyBeginAllowThreads();
24606 result = (arg1)->GetSize();
24607 wxPyEndAllowThreads(__tstate);
24608 if (PyErr_Occurred()) SWIG_fail;
24609 }
24610 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24611 return resultobj;
24612 fail:
24613 return NULL;
24614 }
24615
24616
24617 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24618 PyObject *resultobj = 0;
24619 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24620 int result;
24621 void *argp1 = 0 ;
24622 int res1 = 0 ;
24623 PyObject *swig_obj[1] ;
24624
24625 if (!args) SWIG_fail;
24626 swig_obj[0] = args;
24627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24628 if (!SWIG_IsOK(res1)) {
24629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24630 }
24631 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24632 {
24633 PyThreadState* __tstate = wxPyBeginAllowThreads();
24634 result = (int)(arg1)->GetWidth();
24635 wxPyEndAllowThreads(__tstate);
24636 if (PyErr_Occurred()) SWIG_fail;
24637 }
24638 resultobj = SWIG_From_int(static_cast< int >(result));
24639 return resultobj;
24640 fail:
24641 return NULL;
24642 }
24643
24644
24645 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24646 PyObject *resultobj = 0;
24647 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24648 int result;
24649 void *argp1 = 0 ;
24650 int res1 = 0 ;
24651 PyObject *swig_obj[1] ;
24652
24653 if (!args) SWIG_fail;
24654 swig_obj[0] = args;
24655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24656 if (!SWIG_IsOK(res1)) {
24657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24658 }
24659 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24660 {
24661 PyThreadState* __tstate = wxPyBeginAllowThreads();
24662 result = (int)(arg1)->GetHeight();
24663 wxPyEndAllowThreads(__tstate);
24664 if (PyErr_Occurred()) SWIG_fail;
24665 }
24666 resultobj = SWIG_From_int(static_cast< int >(result));
24667 return resultobj;
24668 fail:
24669 return NULL;
24670 }
24671
24672
24673 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24674 PyObject *resultobj = 0;
24675 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24676 wxString *result = 0 ;
24677 void *argp1 = 0 ;
24678 int res1 = 0 ;
24679 PyObject *swig_obj[1] ;
24680
24681 if (!args) SWIG_fail;
24682 swig_obj[0] = args;
24683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24684 if (!SWIG_IsOK(res1)) {
24685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24686 }
24687 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24688 {
24689 PyThreadState* __tstate = wxPyBeginAllowThreads();
24690 {
24691 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24692 result = (wxString *) &_result_ref;
24693 }
24694 wxPyEndAllowThreads(__tstate);
24695 if (PyErr_Occurred()) SWIG_fail;
24696 }
24697 {
24698 #if wxUSE_UNICODE
24699 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24700 #else
24701 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24702 #endif
24703 }
24704 return resultobj;
24705 fail:
24706 return NULL;
24707 }
24708
24709
24710 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24711 PyObject *obj;
24712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24713 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24714 return SWIG_Py_Void();
24715 }
24716
24717 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24718 return SWIG_Python_InitShadowInstance(args);
24719 }
24720
24721 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24722 PyObject *resultobj = 0;
24723 wxString const &arg1_defvalue = wxPyEmptyString ;
24724 wxString *arg1 = (wxString *) &arg1_defvalue ;
24725 int arg2 = (int) 0 ;
24726 int arg3 = (int) 0 ;
24727 wxString const &arg4_defvalue = wxPyEmptyString ;
24728 wxString *arg4 = (wxString *) &arg4_defvalue ;
24729 wxMetaFileDC *result = 0 ;
24730 bool temp1 = false ;
24731 int val2 ;
24732 int ecode2 = 0 ;
24733 int val3 ;
24734 int ecode3 = 0 ;
24735 bool temp4 = false ;
24736 PyObject * obj0 = 0 ;
24737 PyObject * obj1 = 0 ;
24738 PyObject * obj2 = 0 ;
24739 PyObject * obj3 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24745 if (obj0) {
24746 {
24747 arg1 = wxString_in_helper(obj0);
24748 if (arg1 == NULL) SWIG_fail;
24749 temp1 = true;
24750 }
24751 }
24752 if (obj1) {
24753 ecode2 = SWIG_AsVal_int(obj1, &val2);
24754 if (!SWIG_IsOK(ecode2)) {
24755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24756 }
24757 arg2 = static_cast< int >(val2);
24758 }
24759 if (obj2) {
24760 ecode3 = SWIG_AsVal_int(obj2, &val3);
24761 if (!SWIG_IsOK(ecode3)) {
24762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24763 }
24764 arg3 = static_cast< int >(val3);
24765 }
24766 if (obj3) {
24767 {
24768 arg4 = wxString_in_helper(obj3);
24769 if (arg4 == NULL) SWIG_fail;
24770 temp4 = true;
24771 }
24772 }
24773 {
24774 if (!wxPyCheckForApp()) SWIG_fail;
24775 PyThreadState* __tstate = wxPyBeginAllowThreads();
24776 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24777 wxPyEndAllowThreads(__tstate);
24778 if (PyErr_Occurred()) SWIG_fail;
24779 }
24780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24781 {
24782 if (temp1)
24783 delete arg1;
24784 }
24785 {
24786 if (temp4)
24787 delete arg4;
24788 }
24789 return resultobj;
24790 fail:
24791 {
24792 if (temp1)
24793 delete arg1;
24794 }
24795 {
24796 if (temp4)
24797 delete arg4;
24798 }
24799 return NULL;
24800 }
24801
24802
24803 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24804 PyObject *resultobj = 0;
24805 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24806 wxMetaFile *result = 0 ;
24807 void *argp1 = 0 ;
24808 int res1 = 0 ;
24809 PyObject *swig_obj[1] ;
24810
24811 if (!args) SWIG_fail;
24812 swig_obj[0] = args;
24813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24814 if (!SWIG_IsOK(res1)) {
24815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24816 }
24817 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24818 {
24819 PyThreadState* __tstate = wxPyBeginAllowThreads();
24820 result = (wxMetaFile *)(arg1)->Close();
24821 wxPyEndAllowThreads(__tstate);
24822 if (PyErr_Occurred()) SWIG_fail;
24823 }
24824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24825 return resultobj;
24826 fail:
24827 return NULL;
24828 }
24829
24830
24831 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24832 PyObject *obj;
24833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24834 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24835 return SWIG_Py_Void();
24836 }
24837
24838 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24839 return SWIG_Python_InitShadowInstance(args);
24840 }
24841
24842 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24843 PyObject *resultobj = 0;
24844 wxPrintData *arg1 = 0 ;
24845 wxPrinterDC *result = 0 ;
24846 void *argp1 = 0 ;
24847 int res1 = 0 ;
24848 PyObject * obj0 = 0 ;
24849 char * kwnames[] = {
24850 (char *) "printData", NULL
24851 };
24852
24853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24854 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24855 if (!SWIG_IsOK(res1)) {
24856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24857 }
24858 if (!argp1) {
24859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24860 }
24861 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24862 {
24863 if (!wxPyCheckForApp()) SWIG_fail;
24864 PyThreadState* __tstate = wxPyBeginAllowThreads();
24865 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24866 wxPyEndAllowThreads(__tstate);
24867 if (PyErr_Occurred()) SWIG_fail;
24868 }
24869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24870 return resultobj;
24871 fail:
24872 return NULL;
24873 }
24874
24875
24876 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24877 PyObject *obj;
24878 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24879 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24880 return SWIG_Py_Void();
24881 }
24882
24883 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24884 return SWIG_Python_InitShadowInstance(args);
24885 }
24886
24887 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24888 PyObject *resultobj = 0;
24889 int arg1 ;
24890 int arg2 ;
24891 int arg3 = (int) true ;
24892 int arg4 = (int) 1 ;
24893 wxImageList *result = 0 ;
24894 int val1 ;
24895 int ecode1 = 0 ;
24896 int val2 ;
24897 int ecode2 = 0 ;
24898 int val3 ;
24899 int ecode3 = 0 ;
24900 int val4 ;
24901 int ecode4 = 0 ;
24902 PyObject * obj0 = 0 ;
24903 PyObject * obj1 = 0 ;
24904 PyObject * obj2 = 0 ;
24905 PyObject * obj3 = 0 ;
24906 char * kwnames[] = {
24907 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
24908 };
24909
24910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24911 ecode1 = SWIG_AsVal_int(obj0, &val1);
24912 if (!SWIG_IsOK(ecode1)) {
24913 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
24914 }
24915 arg1 = static_cast< int >(val1);
24916 ecode2 = SWIG_AsVal_int(obj1, &val2);
24917 if (!SWIG_IsOK(ecode2)) {
24918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
24919 }
24920 arg2 = static_cast< int >(val2);
24921 if (obj2) {
24922 ecode3 = SWIG_AsVal_int(obj2, &val3);
24923 if (!SWIG_IsOK(ecode3)) {
24924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
24925 }
24926 arg3 = static_cast< int >(val3);
24927 }
24928 if (obj3) {
24929 ecode4 = SWIG_AsVal_int(obj3, &val4);
24930 if (!SWIG_IsOK(ecode4)) {
24931 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
24932 }
24933 arg4 = static_cast< int >(val4);
24934 }
24935 {
24936 if (!wxPyCheckForApp()) SWIG_fail;
24937 PyThreadState* __tstate = wxPyBeginAllowThreads();
24938 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
24939 wxPyEndAllowThreads(__tstate);
24940 if (PyErr_Occurred()) SWIG_fail;
24941 }
24942 {
24943 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
24944 }
24945 return resultobj;
24946 fail:
24947 return NULL;
24948 }
24949
24950
24951 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24952 PyObject *resultobj = 0;
24953 wxImageList *arg1 = (wxImageList *) 0 ;
24954 void *argp1 = 0 ;
24955 int res1 = 0 ;
24956 PyObject *swig_obj[1] ;
24957
24958 if (!args) SWIG_fail;
24959 swig_obj[0] = args;
24960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24961 if (!SWIG_IsOK(res1)) {
24962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24963 }
24964 arg1 = reinterpret_cast< wxImageList * >(argp1);
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 delete arg1;
24968
24969 wxPyEndAllowThreads(__tstate);
24970 if (PyErr_Occurred()) SWIG_fail;
24971 }
24972 resultobj = SWIG_Py_Void();
24973 return resultobj;
24974 fail:
24975 return NULL;
24976 }
24977
24978
24979 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24980 PyObject *resultobj = 0;
24981 wxImageList *arg1 = (wxImageList *) 0 ;
24982 wxBitmap *arg2 = 0 ;
24983 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24984 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24985 int result;
24986 void *argp1 = 0 ;
24987 int res1 = 0 ;
24988 void *argp2 = 0 ;
24989 int res2 = 0 ;
24990 void *argp3 = 0 ;
24991 int res3 = 0 ;
24992 PyObject * obj0 = 0 ;
24993 PyObject * obj1 = 0 ;
24994 PyObject * obj2 = 0 ;
24995 char * kwnames[] = {
24996 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24997 };
24998
24999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25001 if (!SWIG_IsOK(res1)) {
25002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
25003 }
25004 arg1 = reinterpret_cast< wxImageList * >(argp1);
25005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25006 if (!SWIG_IsOK(res2)) {
25007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25008 }
25009 if (!argp2) {
25010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25011 }
25012 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25013 if (obj2) {
25014 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
25015 if (!SWIG_IsOK(res3)) {
25016 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25017 }
25018 if (!argp3) {
25019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25020 }
25021 arg3 = reinterpret_cast< wxBitmap * >(argp3);
25022 }
25023 {
25024 PyThreadState* __tstate = wxPyBeginAllowThreads();
25025 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 resultobj = SWIG_From_int(static_cast< int >(result));
25030 return resultobj;
25031 fail:
25032 return NULL;
25033 }
25034
25035
25036 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25037 PyObject *resultobj = 0;
25038 wxImageList *arg1 = (wxImageList *) 0 ;
25039 wxBitmap *arg2 = 0 ;
25040 wxColour *arg3 = 0 ;
25041 int result;
25042 void *argp1 = 0 ;
25043 int res1 = 0 ;
25044 void *argp2 = 0 ;
25045 int res2 = 0 ;
25046 wxColour temp3 ;
25047 PyObject * obj0 = 0 ;
25048 PyObject * obj1 = 0 ;
25049 PyObject * obj2 = 0 ;
25050 char * kwnames[] = {
25051 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
25052 };
25053
25054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25056 if (!SWIG_IsOK(res1)) {
25057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
25058 }
25059 arg1 = reinterpret_cast< wxImageList * >(argp1);
25060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25061 if (!SWIG_IsOK(res2)) {
25062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25063 }
25064 if (!argp2) {
25065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25066 }
25067 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25068 {
25069 arg3 = &temp3;
25070 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25071 }
25072 {
25073 PyThreadState* __tstate = wxPyBeginAllowThreads();
25074 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
25075 wxPyEndAllowThreads(__tstate);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 resultobj = SWIG_From_int(static_cast< int >(result));
25079 return resultobj;
25080 fail:
25081 return NULL;
25082 }
25083
25084
25085 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25086 PyObject *resultobj = 0;
25087 wxImageList *arg1 = (wxImageList *) 0 ;
25088 wxIcon *arg2 = 0 ;
25089 int result;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 void *argp2 = 0 ;
25093 int res2 = 0 ;
25094 PyObject * obj0 = 0 ;
25095 PyObject * obj1 = 0 ;
25096 char * kwnames[] = {
25097 (char *) "self",(char *) "icon", NULL
25098 };
25099
25100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
25101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25102 if (!SWIG_IsOK(res1)) {
25103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
25104 }
25105 arg1 = reinterpret_cast< wxImageList * >(argp1);
25106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
25107 if (!SWIG_IsOK(res2)) {
25108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25109 }
25110 if (!argp2) {
25111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25112 }
25113 arg2 = reinterpret_cast< wxIcon * >(argp2);
25114 {
25115 PyThreadState* __tstate = wxPyBeginAllowThreads();
25116 result = (int)(arg1)->Add((wxIcon const &)*arg2);
25117 wxPyEndAllowThreads(__tstate);
25118 if (PyErr_Occurred()) SWIG_fail;
25119 }
25120 resultobj = SWIG_From_int(static_cast< int >(result));
25121 return resultobj;
25122 fail:
25123 return NULL;
25124 }
25125
25126
25127 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25128 PyObject *resultobj = 0;
25129 wxImageList *arg1 = (wxImageList *) 0 ;
25130 int arg2 ;
25131 SwigValueWrapper<wxBitmap > result;
25132 void *argp1 = 0 ;
25133 int res1 = 0 ;
25134 int val2 ;
25135 int ecode2 = 0 ;
25136 PyObject * obj0 = 0 ;
25137 PyObject * obj1 = 0 ;
25138 char * kwnames[] = {
25139 (char *) "self",(char *) "index", NULL
25140 };
25141
25142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
25143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25144 if (!SWIG_IsOK(res1)) {
25145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
25146 }
25147 arg1 = reinterpret_cast< wxImageList * >(argp1);
25148 ecode2 = SWIG_AsVal_int(obj1, &val2);
25149 if (!SWIG_IsOK(ecode2)) {
25150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
25151 }
25152 arg2 = static_cast< int >(val2);
25153 {
25154 PyThreadState* __tstate = wxPyBeginAllowThreads();
25155 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
25156 wxPyEndAllowThreads(__tstate);
25157 if (PyErr_Occurred()) SWIG_fail;
25158 }
25159 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
25160 return resultobj;
25161 fail:
25162 return NULL;
25163 }
25164
25165
25166 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25167 PyObject *resultobj = 0;
25168 wxImageList *arg1 = (wxImageList *) 0 ;
25169 int arg2 ;
25170 wxIcon result;
25171 void *argp1 = 0 ;
25172 int res1 = 0 ;
25173 int val2 ;
25174 int ecode2 = 0 ;
25175 PyObject * obj0 = 0 ;
25176 PyObject * obj1 = 0 ;
25177 char * kwnames[] = {
25178 (char *) "self",(char *) "index", NULL
25179 };
25180
25181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
25182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25183 if (!SWIG_IsOK(res1)) {
25184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
25185 }
25186 arg1 = reinterpret_cast< wxImageList * >(argp1);
25187 ecode2 = SWIG_AsVal_int(obj1, &val2);
25188 if (!SWIG_IsOK(ecode2)) {
25189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
25190 }
25191 arg2 = static_cast< int >(val2);
25192 {
25193 PyThreadState* __tstate = wxPyBeginAllowThreads();
25194 result = ((wxImageList const *)arg1)->GetIcon(arg2);
25195 wxPyEndAllowThreads(__tstate);
25196 if (PyErr_Occurred()) SWIG_fail;
25197 }
25198 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
25199 return resultobj;
25200 fail:
25201 return NULL;
25202 }
25203
25204
25205 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25206 PyObject *resultobj = 0;
25207 wxImageList *arg1 = (wxImageList *) 0 ;
25208 int arg2 ;
25209 wxBitmap *arg3 = 0 ;
25210 wxBitmap const &arg4_defvalue = wxNullBitmap ;
25211 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
25212 bool result;
25213 void *argp1 = 0 ;
25214 int res1 = 0 ;
25215 int val2 ;
25216 int ecode2 = 0 ;
25217 void *argp3 = 0 ;
25218 int res3 = 0 ;
25219 void *argp4 = 0 ;
25220 int res4 = 0 ;
25221 PyObject * obj0 = 0 ;
25222 PyObject * obj1 = 0 ;
25223 PyObject * obj2 = 0 ;
25224 PyObject * obj3 = 0 ;
25225 char * kwnames[] = {
25226 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
25227 };
25228
25229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25231 if (!SWIG_IsOK(res1)) {
25232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
25233 }
25234 arg1 = reinterpret_cast< wxImageList * >(argp1);
25235 ecode2 = SWIG_AsVal_int(obj1, &val2);
25236 if (!SWIG_IsOK(ecode2)) {
25237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
25238 }
25239 arg2 = static_cast< int >(val2);
25240 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
25241 if (!SWIG_IsOK(res3)) {
25242 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25243 }
25244 if (!argp3) {
25245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25246 }
25247 arg3 = reinterpret_cast< wxBitmap * >(argp3);
25248 if (obj3) {
25249 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
25250 if (!SWIG_IsOK(res4)) {
25251 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
25252 }
25253 if (!argp4) {
25254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
25255 }
25256 arg4 = reinterpret_cast< wxBitmap * >(argp4);
25257 }
25258 {
25259 PyThreadState* __tstate = wxPyBeginAllowThreads();
25260 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
25261 wxPyEndAllowThreads(__tstate);
25262 if (PyErr_Occurred()) SWIG_fail;
25263 }
25264 {
25265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25266 }
25267 return resultobj;
25268 fail:
25269 return NULL;
25270 }
25271
25272
25273 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25274 PyObject *resultobj = 0;
25275 wxImageList *arg1 = (wxImageList *) 0 ;
25276 int arg2 ;
25277 wxDC *arg3 = 0 ;
25278 int arg4 ;
25279 int arg5 ;
25280 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
25281 bool arg7 = (bool) (bool)false ;
25282 bool result;
25283 void *argp1 = 0 ;
25284 int res1 = 0 ;
25285 int val2 ;
25286 int ecode2 = 0 ;
25287 void *argp3 = 0 ;
25288 int res3 = 0 ;
25289 int val4 ;
25290 int ecode4 = 0 ;
25291 int val5 ;
25292 int ecode5 = 0 ;
25293 int val6 ;
25294 int ecode6 = 0 ;
25295 bool val7 ;
25296 int ecode7 = 0 ;
25297 PyObject * obj0 = 0 ;
25298 PyObject * obj1 = 0 ;
25299 PyObject * obj2 = 0 ;
25300 PyObject * obj3 = 0 ;
25301 PyObject * obj4 = 0 ;
25302 PyObject * obj5 = 0 ;
25303 PyObject * obj6 = 0 ;
25304 char * kwnames[] = {
25305 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
25306 };
25307
25308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25310 if (!SWIG_IsOK(res1)) {
25311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
25312 }
25313 arg1 = reinterpret_cast< wxImageList * >(argp1);
25314 ecode2 = SWIG_AsVal_int(obj1, &val2);
25315 if (!SWIG_IsOK(ecode2)) {
25316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
25317 }
25318 arg2 = static_cast< int >(val2);
25319 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25320 if (!SWIG_IsOK(res3)) {
25321 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
25322 }
25323 if (!argp3) {
25324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
25325 }
25326 arg3 = reinterpret_cast< wxDC * >(argp3);
25327 ecode4 = SWIG_AsVal_int(obj3, &val4);
25328 if (!SWIG_IsOK(ecode4)) {
25329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
25330 }
25331 arg4 = static_cast< int >(val4);
25332 ecode5 = SWIG_AsVal_int(obj4, &val5);
25333 if (!SWIG_IsOK(ecode5)) {
25334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
25335 }
25336 arg5 = static_cast< int >(val5);
25337 if (obj5) {
25338 ecode6 = SWIG_AsVal_int(obj5, &val6);
25339 if (!SWIG_IsOK(ecode6)) {
25340 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
25341 }
25342 arg6 = static_cast< int >(val6);
25343 }
25344 if (obj6) {
25345 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25346 if (!SWIG_IsOK(ecode7)) {
25347 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
25348 }
25349 arg7 = static_cast< bool >(val7);
25350 }
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
25354 wxPyEndAllowThreads(__tstate);
25355 if (PyErr_Occurred()) SWIG_fail;
25356 }
25357 {
25358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25359 }
25360 return resultobj;
25361 fail:
25362 return NULL;
25363 }
25364
25365
25366 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25367 PyObject *resultobj = 0;
25368 wxImageList *arg1 = (wxImageList *) 0 ;
25369 int result;
25370 void *argp1 = 0 ;
25371 int res1 = 0 ;
25372 PyObject *swig_obj[1] ;
25373
25374 if (!args) SWIG_fail;
25375 swig_obj[0] = args;
25376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25377 if (!SWIG_IsOK(res1)) {
25378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
25379 }
25380 arg1 = reinterpret_cast< wxImageList * >(argp1);
25381 {
25382 PyThreadState* __tstate = wxPyBeginAllowThreads();
25383 result = (int)(arg1)->GetImageCount();
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
25387 resultobj = SWIG_From_int(static_cast< int >(result));
25388 return resultobj;
25389 fail:
25390 return NULL;
25391 }
25392
25393
25394 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25395 PyObject *resultobj = 0;
25396 wxImageList *arg1 = (wxImageList *) 0 ;
25397 int arg2 ;
25398 bool result;
25399 void *argp1 = 0 ;
25400 int res1 = 0 ;
25401 int val2 ;
25402 int ecode2 = 0 ;
25403 PyObject * obj0 = 0 ;
25404 PyObject * obj1 = 0 ;
25405 char * kwnames[] = {
25406 (char *) "self",(char *) "index", NULL
25407 };
25408
25409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
25410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25411 if (!SWIG_IsOK(res1)) {
25412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
25413 }
25414 arg1 = reinterpret_cast< wxImageList * >(argp1);
25415 ecode2 = SWIG_AsVal_int(obj1, &val2);
25416 if (!SWIG_IsOK(ecode2)) {
25417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
25418 }
25419 arg2 = static_cast< int >(val2);
25420 {
25421 PyThreadState* __tstate = wxPyBeginAllowThreads();
25422 result = (bool)(arg1)->Remove(arg2);
25423 wxPyEndAllowThreads(__tstate);
25424 if (PyErr_Occurred()) SWIG_fail;
25425 }
25426 {
25427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25428 }
25429 return resultobj;
25430 fail:
25431 return NULL;
25432 }
25433
25434
25435 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25436 PyObject *resultobj = 0;
25437 wxImageList *arg1 = (wxImageList *) 0 ;
25438 bool result;
25439 void *argp1 = 0 ;
25440 int res1 = 0 ;
25441 PyObject *swig_obj[1] ;
25442
25443 if (!args) SWIG_fail;
25444 swig_obj[0] = args;
25445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25446 if (!SWIG_IsOK(res1)) {
25447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
25448 }
25449 arg1 = reinterpret_cast< wxImageList * >(argp1);
25450 {
25451 PyThreadState* __tstate = wxPyBeginAllowThreads();
25452 result = (bool)(arg1)->RemoveAll();
25453 wxPyEndAllowThreads(__tstate);
25454 if (PyErr_Occurred()) SWIG_fail;
25455 }
25456 {
25457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25458 }
25459 return resultobj;
25460 fail:
25461 return NULL;
25462 }
25463
25464
25465 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25466 PyObject *resultobj = 0;
25467 wxImageList *arg1 = (wxImageList *) 0 ;
25468 int arg2 ;
25469 int *arg3 = 0 ;
25470 int *arg4 = 0 ;
25471 void *argp1 = 0 ;
25472 int res1 = 0 ;
25473 int val2 ;
25474 int ecode2 = 0 ;
25475 int temp3 ;
25476 int res3 = SWIG_TMPOBJ ;
25477 int temp4 ;
25478 int res4 = SWIG_TMPOBJ ;
25479 PyObject * obj0 = 0 ;
25480 PyObject * obj1 = 0 ;
25481 char * kwnames[] = {
25482 (char *) "self",(char *) "index", NULL
25483 };
25484
25485 arg3 = &temp3;
25486 arg4 = &temp4;
25487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
25488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25489 if (!SWIG_IsOK(res1)) {
25490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
25491 }
25492 arg1 = reinterpret_cast< wxImageList * >(argp1);
25493 ecode2 = SWIG_AsVal_int(obj1, &val2);
25494 if (!SWIG_IsOK(ecode2)) {
25495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
25496 }
25497 arg2 = static_cast< int >(val2);
25498 {
25499 PyThreadState* __tstate = wxPyBeginAllowThreads();
25500 (arg1)->GetSize(arg2,*arg3,*arg4);
25501 wxPyEndAllowThreads(__tstate);
25502 if (PyErr_Occurred()) SWIG_fail;
25503 }
25504 resultobj = SWIG_Py_Void();
25505 if (SWIG_IsTmpObj(res3)) {
25506 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
25507 } else {
25508 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25509 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
25510 }
25511 if (SWIG_IsTmpObj(res4)) {
25512 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
25513 } else {
25514 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25515 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
25516 }
25517 return resultobj;
25518 fail:
25519 return NULL;
25520 }
25521
25522
25523 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25524 PyObject *obj;
25525 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25526 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
25527 return SWIG_Py_Void();
25528 }
25529
25530 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25531 return SWIG_Python_InitShadowInstance(args);
25532 }
25533
25534 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25535 PyObject *resultobj = 0;
25536 wxStockGDI *result = 0 ;
25537
25538 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
25539 {
25540 PyThreadState* __tstate = wxPyBeginAllowThreads();
25541 result = (wxStockGDI *)new wxStockGDI();
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
25546 return resultobj;
25547 fail:
25548 return NULL;
25549 }
25550
25551
25552 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25553 PyObject *resultobj = 0;
25554 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25555 void *argp1 = 0 ;
25556 int res1 = 0 ;
25557 PyObject *swig_obj[1] ;
25558
25559 if (!args) SWIG_fail;
25560 swig_obj[0] = args;
25561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
25562 if (!SWIG_IsOK(res1)) {
25563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25564 }
25565 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25566 {
25567 PyThreadState* __tstate = wxPyBeginAllowThreads();
25568 delete arg1;
25569
25570 wxPyEndAllowThreads(__tstate);
25571 if (PyErr_Occurred()) SWIG_fail;
25572 }
25573 resultobj = SWIG_Py_Void();
25574 return resultobj;
25575 fail:
25576 return NULL;
25577 }
25578
25579
25580 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25581 PyObject *resultobj = 0;
25582
25583 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
25584 {
25585 PyThreadState* __tstate = wxPyBeginAllowThreads();
25586 wxStockGDI::DeleteAll();
25587 wxPyEndAllowThreads(__tstate);
25588 if (PyErr_Occurred()) SWIG_fail;
25589 }
25590 resultobj = SWIG_Py_Void();
25591 return resultobj;
25592 fail:
25593 return NULL;
25594 }
25595
25596
25597 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25598 PyObject *resultobj = 0;
25599 wxStockGDI *result = 0 ;
25600
25601 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
25602 {
25603 PyThreadState* __tstate = wxPyBeginAllowThreads();
25604 {
25605 wxStockGDI &_result_ref = wxStockGDI::instance();
25606 result = (wxStockGDI *) &_result_ref;
25607 }
25608 wxPyEndAllowThreads(__tstate);
25609 if (PyErr_Occurred()) SWIG_fail;
25610 }
25611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
25612 return resultobj;
25613 fail:
25614 return NULL;
25615 }
25616
25617
25618 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25619 PyObject *resultobj = 0;
25620 wxStockGDI::Item arg1 ;
25621 wxBrush *result = 0 ;
25622 int val1 ;
25623 int ecode1 = 0 ;
25624 PyObject * obj0 = 0 ;
25625 char * kwnames[] = {
25626 (char *) "item", NULL
25627 };
25628
25629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
25630 ecode1 = SWIG_AsVal_int(obj0, &val1);
25631 if (!SWIG_IsOK(ecode1)) {
25632 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25633 }
25634 arg1 = static_cast< wxStockGDI::Item >(val1);
25635 {
25636 PyThreadState* __tstate = wxPyBeginAllowThreads();
25637 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
25638 wxPyEndAllowThreads(__tstate);
25639 if (PyErr_Occurred()) SWIG_fail;
25640 }
25641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25642 return resultobj;
25643 fail:
25644 return NULL;
25645 }
25646
25647
25648 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25649 PyObject *resultobj = 0;
25650 wxStockGDI::Item arg1 ;
25651 wxColour *result = 0 ;
25652 int val1 ;
25653 int ecode1 = 0 ;
25654 PyObject * obj0 = 0 ;
25655 char * kwnames[] = {
25656 (char *) "item", NULL
25657 };
25658
25659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
25660 ecode1 = SWIG_AsVal_int(obj0, &val1);
25661 if (!SWIG_IsOK(ecode1)) {
25662 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25663 }
25664 arg1 = static_cast< wxStockGDI::Item >(val1);
25665 {
25666 PyThreadState* __tstate = wxPyBeginAllowThreads();
25667 result = (wxColour *)wxStockGDI::GetColour(arg1);
25668 wxPyEndAllowThreads(__tstate);
25669 if (PyErr_Occurred()) SWIG_fail;
25670 }
25671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
25672 return resultobj;
25673 fail:
25674 return NULL;
25675 }
25676
25677
25678 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25679 PyObject *resultobj = 0;
25680 wxStockGDI::Item arg1 ;
25681 wxCursor *result = 0 ;
25682 int val1 ;
25683 int ecode1 = 0 ;
25684 PyObject * obj0 = 0 ;
25685 char * kwnames[] = {
25686 (char *) "item", NULL
25687 };
25688
25689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
25690 ecode1 = SWIG_AsVal_int(obj0, &val1);
25691 if (!SWIG_IsOK(ecode1)) {
25692 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25693 }
25694 arg1 = static_cast< wxStockGDI::Item >(val1);
25695 {
25696 PyThreadState* __tstate = wxPyBeginAllowThreads();
25697 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
25698 wxPyEndAllowThreads(__tstate);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
25702 return resultobj;
25703 fail:
25704 return NULL;
25705 }
25706
25707
25708 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25709 PyObject *resultobj = 0;
25710 wxStockGDI::Item arg1 ;
25711 wxPen *result = 0 ;
25712 int val1 ;
25713 int ecode1 = 0 ;
25714 PyObject * obj0 = 0 ;
25715 char * kwnames[] = {
25716 (char *) "item", NULL
25717 };
25718
25719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
25720 ecode1 = SWIG_AsVal_int(obj0, &val1);
25721 if (!SWIG_IsOK(ecode1)) {
25722 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25723 }
25724 arg1 = static_cast< wxStockGDI::Item >(val1);
25725 {
25726 PyThreadState* __tstate = wxPyBeginAllowThreads();
25727 result = (wxPen *)wxStockGDI::GetPen(arg1);
25728 wxPyEndAllowThreads(__tstate);
25729 if (PyErr_Occurred()) SWIG_fail;
25730 }
25731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25732 return resultobj;
25733 fail:
25734 return NULL;
25735 }
25736
25737
25738 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25739 PyObject *resultobj = 0;
25740 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25741 wxStockGDI::Item arg2 ;
25742 wxFont *result = 0 ;
25743 void *argp1 = 0 ;
25744 int res1 = 0 ;
25745 int val2 ;
25746 int ecode2 = 0 ;
25747 PyObject * obj0 = 0 ;
25748 PyObject * obj1 = 0 ;
25749 char * kwnames[] = {
25750 (char *) "self",(char *) "item", NULL
25751 };
25752
25753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
25755 if (!SWIG_IsOK(res1)) {
25756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25757 }
25758 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25759 ecode2 = SWIG_AsVal_int(obj1, &val2);
25760 if (!SWIG_IsOK(ecode2)) {
25761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
25762 }
25763 arg2 = static_cast< wxStockGDI::Item >(val2);
25764 {
25765 PyThreadState* __tstate = wxPyBeginAllowThreads();
25766 result = (wxFont *)(arg1)->GetFont(arg2);
25767 wxPyEndAllowThreads(__tstate);
25768 if (PyErr_Occurred()) SWIG_fail;
25769 }
25770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25771 return resultobj;
25772 fail:
25773 return NULL;
25774 }
25775
25776
25777 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25778 PyObject *obj;
25779 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25780 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
25781 return SWIG_Py_Void();
25782 }
25783
25784 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25785 return SWIG_Python_InitShadowInstance(args);
25786 }
25787
25788 SWIGINTERN int NullBitmap_set(PyObject *) {
25789 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
25790 return 1;
25791 }
25792
25793
25794 SWIGINTERN PyObject *NullBitmap_get(void) {
25795 PyObject *pyobj = 0;
25796
25797 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
25798 return pyobj;
25799 }
25800
25801
25802 SWIGINTERN int NullIcon_set(PyObject *) {
25803 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
25804 return 1;
25805 }
25806
25807
25808 SWIGINTERN PyObject *NullIcon_get(void) {
25809 PyObject *pyobj = 0;
25810
25811 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
25812 return pyobj;
25813 }
25814
25815
25816 SWIGINTERN int NullCursor_set(PyObject *) {
25817 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
25818 return 1;
25819 }
25820
25821
25822 SWIGINTERN PyObject *NullCursor_get(void) {
25823 PyObject *pyobj = 0;
25824
25825 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
25826 return pyobj;
25827 }
25828
25829
25830 SWIGINTERN int NullPen_set(PyObject *) {
25831 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
25832 return 1;
25833 }
25834
25835
25836 SWIGINTERN PyObject *NullPen_get(void) {
25837 PyObject *pyobj = 0;
25838
25839 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
25840 return pyobj;
25841 }
25842
25843
25844 SWIGINTERN int NullBrush_set(PyObject *) {
25845 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
25846 return 1;
25847 }
25848
25849
25850 SWIGINTERN PyObject *NullBrush_get(void) {
25851 PyObject *pyobj = 0;
25852
25853 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
25854 return pyobj;
25855 }
25856
25857
25858 SWIGINTERN int NullPalette_set(PyObject *) {
25859 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
25860 return 1;
25861 }
25862
25863
25864 SWIGINTERN PyObject *NullPalette_get(void) {
25865 PyObject *pyobj = 0;
25866
25867 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
25868 return pyobj;
25869 }
25870
25871
25872 SWIGINTERN int NullFont_set(PyObject *) {
25873 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
25874 return 1;
25875 }
25876
25877
25878 SWIGINTERN PyObject *NullFont_get(void) {
25879 PyObject *pyobj = 0;
25880
25881 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
25882 return pyobj;
25883 }
25884
25885
25886 SWIGINTERN int NullColour_set(PyObject *) {
25887 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
25888 return 1;
25889 }
25890
25891
25892 SWIGINTERN PyObject *NullColour_get(void) {
25893 PyObject *pyobj = 0;
25894
25895 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
25896 return pyobj;
25897 }
25898
25899
25900 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25901 PyObject *resultobj = 0;
25902 wxGDIObjListBase *result = 0 ;
25903
25904 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
25905 {
25906 PyThreadState* __tstate = wxPyBeginAllowThreads();
25907 result = (wxGDIObjListBase *)new wxGDIObjListBase();
25908 wxPyEndAllowThreads(__tstate);
25909 if (PyErr_Occurred()) SWIG_fail;
25910 }
25911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
25912 return resultobj;
25913 fail:
25914 return NULL;
25915 }
25916
25917
25918 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25919 PyObject *resultobj = 0;
25920 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
25921 void *argp1 = 0 ;
25922 int res1 = 0 ;
25923 PyObject *swig_obj[1] ;
25924
25925 if (!args) SWIG_fail;
25926 swig_obj[0] = args;
25927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
25928 if (!SWIG_IsOK(res1)) {
25929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
25930 }
25931 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
25932 {
25933 PyThreadState* __tstate = wxPyBeginAllowThreads();
25934 delete arg1;
25935
25936 wxPyEndAllowThreads(__tstate);
25937 if (PyErr_Occurred()) SWIG_fail;
25938 }
25939 resultobj = SWIG_Py_Void();
25940 return resultobj;
25941 fail:
25942 return NULL;
25943 }
25944
25945
25946 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25947 PyObject *obj;
25948 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25949 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25950 return SWIG_Py_Void();
25951 }
25952
25953 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25954 return SWIG_Python_InitShadowInstance(args);
25955 }
25956
25957 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25958 PyObject *resultobj = 0;
25959 wxPenList *arg1 = (wxPenList *) 0 ;
25960 wxColour *arg2 = 0 ;
25961 int arg3 ;
25962 int arg4 ;
25963 wxPen *result = 0 ;
25964 void *argp1 = 0 ;
25965 int res1 = 0 ;
25966 wxColour temp2 ;
25967 int val3 ;
25968 int ecode3 = 0 ;
25969 int val4 ;
25970 int ecode4 = 0 ;
25971 PyObject * obj0 = 0 ;
25972 PyObject * obj1 = 0 ;
25973 PyObject * obj2 = 0 ;
25974 PyObject * obj3 = 0 ;
25975 char * kwnames[] = {
25976 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25977 };
25978
25979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25981 if (!SWIG_IsOK(res1)) {
25982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25983 }
25984 arg1 = reinterpret_cast< wxPenList * >(argp1);
25985 {
25986 arg2 = &temp2;
25987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25988 }
25989 ecode3 = SWIG_AsVal_int(obj2, &val3);
25990 if (!SWIG_IsOK(ecode3)) {
25991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25992 }
25993 arg3 = static_cast< int >(val3);
25994 ecode4 = SWIG_AsVal_int(obj3, &val4);
25995 if (!SWIG_IsOK(ecode4)) {
25996 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25997 }
25998 arg4 = static_cast< int >(val4);
25999 {
26000 PyThreadState* __tstate = wxPyBeginAllowThreads();
26001 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
26002 wxPyEndAllowThreads(__tstate);
26003 if (PyErr_Occurred()) SWIG_fail;
26004 }
26005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
26006 return resultobj;
26007 fail:
26008 return NULL;
26009 }
26010
26011
26012 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26013 PyObject *resultobj = 0;
26014 wxPenList *arg1 = (wxPenList *) 0 ;
26015 wxPen *arg2 = (wxPen *) 0 ;
26016 void *argp1 = 0 ;
26017 int res1 = 0 ;
26018 void *argp2 = 0 ;
26019 int res2 = 0 ;
26020 PyObject * obj0 = 0 ;
26021 PyObject * obj1 = 0 ;
26022 char * kwnames[] = {
26023 (char *) "self",(char *) "pen", NULL
26024 };
26025
26026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
26027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
26028 if (!SWIG_IsOK(res1)) {
26029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
26030 }
26031 arg1 = reinterpret_cast< wxPenList * >(argp1);
26032 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
26033 if (!SWIG_IsOK(res2)) {
26034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
26035 }
26036 arg2 = reinterpret_cast< wxPen * >(argp2);
26037 {
26038 PyThreadState* __tstate = wxPyBeginAllowThreads();
26039 (arg1)->AddPen(arg2);
26040 wxPyEndAllowThreads(__tstate);
26041 if (PyErr_Occurred()) SWIG_fail;
26042 }
26043 resultobj = SWIG_Py_Void();
26044 return resultobj;
26045 fail:
26046 return NULL;
26047 }
26048
26049
26050 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26051 PyObject *resultobj = 0;
26052 wxPenList *arg1 = (wxPenList *) 0 ;
26053 wxPen *arg2 = (wxPen *) 0 ;
26054 void *argp1 = 0 ;
26055 int res1 = 0 ;
26056 void *argp2 = 0 ;
26057 int res2 = 0 ;
26058 PyObject * obj0 = 0 ;
26059 PyObject * obj1 = 0 ;
26060 char * kwnames[] = {
26061 (char *) "self",(char *) "pen", NULL
26062 };
26063
26064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
26065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
26066 if (!SWIG_IsOK(res1)) {
26067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
26068 }
26069 arg1 = reinterpret_cast< wxPenList * >(argp1);
26070 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
26071 if (!SWIG_IsOK(res2)) {
26072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
26073 }
26074 arg2 = reinterpret_cast< wxPen * >(argp2);
26075 {
26076 PyThreadState* __tstate = wxPyBeginAllowThreads();
26077 (arg1)->RemovePen(arg2);
26078 wxPyEndAllowThreads(__tstate);
26079 if (PyErr_Occurred()) SWIG_fail;
26080 }
26081 resultobj = SWIG_Py_Void();
26082 return resultobj;
26083 fail:
26084 return NULL;
26085 }
26086
26087
26088 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26089 PyObject *obj;
26090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26091 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
26092 return SWIG_Py_Void();
26093 }
26094
26095 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26096 PyObject *resultobj = 0;
26097 wxBrushList *arg1 = (wxBrushList *) 0 ;
26098 wxColour *arg2 = 0 ;
26099 int arg3 = (int) wxSOLID ;
26100 wxBrush *result = 0 ;
26101 void *argp1 = 0 ;
26102 int res1 = 0 ;
26103 wxColour temp2 ;
26104 int val3 ;
26105 int ecode3 = 0 ;
26106 PyObject * obj0 = 0 ;
26107 PyObject * obj1 = 0 ;
26108 PyObject * obj2 = 0 ;
26109 char * kwnames[] = {
26110 (char *) "self",(char *) "colour",(char *) "style", NULL
26111 };
26112
26113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26115 if (!SWIG_IsOK(res1)) {
26116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26117 }
26118 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26119 {
26120 arg2 = &temp2;
26121 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26122 }
26123 if (obj2) {
26124 ecode3 = SWIG_AsVal_int(obj2, &val3);
26125 if (!SWIG_IsOK(ecode3)) {
26126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
26127 }
26128 arg3 = static_cast< int >(val3);
26129 }
26130 {
26131 PyThreadState* __tstate = wxPyBeginAllowThreads();
26132 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
26133 wxPyEndAllowThreads(__tstate);
26134 if (PyErr_Occurred()) SWIG_fail;
26135 }
26136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
26137 return resultobj;
26138 fail:
26139 return NULL;
26140 }
26141
26142
26143 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26144 PyObject *resultobj = 0;
26145 wxBrushList *arg1 = (wxBrushList *) 0 ;
26146 wxBrush *arg2 = (wxBrush *) 0 ;
26147 void *argp1 = 0 ;
26148 int res1 = 0 ;
26149 void *argp2 = 0 ;
26150 int res2 = 0 ;
26151 PyObject * obj0 = 0 ;
26152 PyObject * obj1 = 0 ;
26153 char * kwnames[] = {
26154 (char *) "self",(char *) "brush", NULL
26155 };
26156
26157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26159 if (!SWIG_IsOK(res1)) {
26160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26161 }
26162 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26163 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
26164 if (!SWIG_IsOK(res2)) {
26165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
26166 }
26167 arg2 = reinterpret_cast< wxBrush * >(argp2);
26168 {
26169 PyThreadState* __tstate = wxPyBeginAllowThreads();
26170 (arg1)->AddBrush(arg2);
26171 wxPyEndAllowThreads(__tstate);
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 resultobj = SWIG_Py_Void();
26175 return resultobj;
26176 fail:
26177 return NULL;
26178 }
26179
26180
26181 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26182 PyObject *resultobj = 0;
26183 wxBrushList *arg1 = (wxBrushList *) 0 ;
26184 wxBrush *arg2 = (wxBrush *) 0 ;
26185 void *argp1 = 0 ;
26186 int res1 = 0 ;
26187 void *argp2 = 0 ;
26188 int res2 = 0 ;
26189 PyObject * obj0 = 0 ;
26190 PyObject * obj1 = 0 ;
26191 char * kwnames[] = {
26192 (char *) "self",(char *) "brush", NULL
26193 };
26194
26195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26197 if (!SWIG_IsOK(res1)) {
26198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26199 }
26200 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
26202 if (!SWIG_IsOK(res2)) {
26203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
26204 }
26205 arg2 = reinterpret_cast< wxBrush * >(argp2);
26206 {
26207 PyThreadState* __tstate = wxPyBeginAllowThreads();
26208 (arg1)->RemoveBrush(arg2);
26209 wxPyEndAllowThreads(__tstate);
26210 if (PyErr_Occurred()) SWIG_fail;
26211 }
26212 resultobj = SWIG_Py_Void();
26213 return resultobj;
26214 fail:
26215 return NULL;
26216 }
26217
26218
26219 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26220 PyObject *obj;
26221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26222 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
26223 return SWIG_Py_Void();
26224 }
26225
26226 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26227 PyObject *resultobj = 0;
26228 wxFontList *arg1 = (wxFontList *) 0 ;
26229 int arg2 ;
26230 int arg3 ;
26231 int arg4 ;
26232 int arg5 ;
26233 bool arg6 = (bool) false ;
26234 wxString const &arg7_defvalue = wxPyEmptyString ;
26235 wxString *arg7 = (wxString *) &arg7_defvalue ;
26236 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
26237 wxFont *result = 0 ;
26238 void *argp1 = 0 ;
26239 int res1 = 0 ;
26240 int val2 ;
26241 int ecode2 = 0 ;
26242 int val3 ;
26243 int ecode3 = 0 ;
26244 int val4 ;
26245 int ecode4 = 0 ;
26246 int val5 ;
26247 int ecode5 = 0 ;
26248 bool val6 ;
26249 int ecode6 = 0 ;
26250 bool temp7 = false ;
26251 int val8 ;
26252 int ecode8 = 0 ;
26253 PyObject * obj0 = 0 ;
26254 PyObject * obj1 = 0 ;
26255 PyObject * obj2 = 0 ;
26256 PyObject * obj3 = 0 ;
26257 PyObject * obj4 = 0 ;
26258 PyObject * obj5 = 0 ;
26259 PyObject * obj6 = 0 ;
26260 PyObject * obj7 = 0 ;
26261 char * kwnames[] = {
26262 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
26263 };
26264
26265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26267 if (!SWIG_IsOK(res1)) {
26268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26269 }
26270 arg1 = reinterpret_cast< wxFontList * >(argp1);
26271 ecode2 = SWIG_AsVal_int(obj1, &val2);
26272 if (!SWIG_IsOK(ecode2)) {
26273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
26274 }
26275 arg2 = static_cast< int >(val2);
26276 ecode3 = SWIG_AsVal_int(obj2, &val3);
26277 if (!SWIG_IsOK(ecode3)) {
26278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
26279 }
26280 arg3 = static_cast< int >(val3);
26281 ecode4 = SWIG_AsVal_int(obj3, &val4);
26282 if (!SWIG_IsOK(ecode4)) {
26283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
26284 }
26285 arg4 = static_cast< int >(val4);
26286 ecode5 = SWIG_AsVal_int(obj4, &val5);
26287 if (!SWIG_IsOK(ecode5)) {
26288 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
26289 }
26290 arg5 = static_cast< int >(val5);
26291 if (obj5) {
26292 ecode6 = SWIG_AsVal_bool(obj5, &val6);
26293 if (!SWIG_IsOK(ecode6)) {
26294 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
26295 }
26296 arg6 = static_cast< bool >(val6);
26297 }
26298 if (obj6) {
26299 {
26300 arg7 = wxString_in_helper(obj6);
26301 if (arg7 == NULL) SWIG_fail;
26302 temp7 = true;
26303 }
26304 }
26305 if (obj7) {
26306 ecode8 = SWIG_AsVal_int(obj7, &val8);
26307 if (!SWIG_IsOK(ecode8)) {
26308 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
26309 }
26310 arg8 = static_cast< wxFontEncoding >(val8);
26311 }
26312 {
26313 PyThreadState* __tstate = wxPyBeginAllowThreads();
26314 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
26315 wxPyEndAllowThreads(__tstate);
26316 if (PyErr_Occurred()) SWIG_fail;
26317 }
26318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
26319 {
26320 if (temp7)
26321 delete arg7;
26322 }
26323 return resultobj;
26324 fail:
26325 {
26326 if (temp7)
26327 delete arg7;
26328 }
26329 return NULL;
26330 }
26331
26332
26333 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26334 PyObject *resultobj = 0;
26335 wxFontList *arg1 = (wxFontList *) 0 ;
26336 wxFont *arg2 = (wxFont *) 0 ;
26337 void *argp1 = 0 ;
26338 int res1 = 0 ;
26339 void *argp2 = 0 ;
26340 int res2 = 0 ;
26341 PyObject * obj0 = 0 ;
26342 PyObject * obj1 = 0 ;
26343 char * kwnames[] = {
26344 (char *) "self",(char *) "font", NULL
26345 };
26346
26347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
26348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26349 if (!SWIG_IsOK(res1)) {
26350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26351 }
26352 arg1 = reinterpret_cast< wxFontList * >(argp1);
26353 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26354 if (!SWIG_IsOK(res2)) {
26355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
26356 }
26357 arg2 = reinterpret_cast< wxFont * >(argp2);
26358 {
26359 PyThreadState* __tstate = wxPyBeginAllowThreads();
26360 (arg1)->AddFont(arg2);
26361 wxPyEndAllowThreads(__tstate);
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 resultobj = SWIG_Py_Void();
26365 return resultobj;
26366 fail:
26367 return NULL;
26368 }
26369
26370
26371 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26372 PyObject *resultobj = 0;
26373 wxFontList *arg1 = (wxFontList *) 0 ;
26374 wxFont *arg2 = (wxFont *) 0 ;
26375 void *argp1 = 0 ;
26376 int res1 = 0 ;
26377 void *argp2 = 0 ;
26378 int res2 = 0 ;
26379 PyObject * obj0 = 0 ;
26380 PyObject * obj1 = 0 ;
26381 char * kwnames[] = {
26382 (char *) "self",(char *) "font", NULL
26383 };
26384
26385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
26386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26387 if (!SWIG_IsOK(res1)) {
26388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26389 }
26390 arg1 = reinterpret_cast< wxFontList * >(argp1);
26391 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26392 if (!SWIG_IsOK(res2)) {
26393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
26394 }
26395 arg2 = reinterpret_cast< wxFont * >(argp2);
26396 {
26397 PyThreadState* __tstate = wxPyBeginAllowThreads();
26398 (arg1)->RemoveFont(arg2);
26399 wxPyEndAllowThreads(__tstate);
26400 if (PyErr_Occurred()) SWIG_fail;
26401 }
26402 resultobj = SWIG_Py_Void();
26403 return resultobj;
26404 fail:
26405 return NULL;
26406 }
26407
26408
26409 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26410 PyObject *obj;
26411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26412 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
26413 return SWIG_Py_Void();
26414 }
26415
26416 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26417 PyObject *resultobj = 0;
26418 wxColourDatabase *result = 0 ;
26419
26420 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
26421 {
26422 if (!wxPyCheckForApp()) SWIG_fail;
26423 PyThreadState* __tstate = wxPyBeginAllowThreads();
26424 result = (wxColourDatabase *)new wxColourDatabase();
26425 wxPyEndAllowThreads(__tstate);
26426 if (PyErr_Occurred()) SWIG_fail;
26427 }
26428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
26429 return resultobj;
26430 fail:
26431 return NULL;
26432 }
26433
26434
26435 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26436 PyObject *resultobj = 0;
26437 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26438 void *argp1 = 0 ;
26439 int res1 = 0 ;
26440 PyObject *swig_obj[1] ;
26441
26442 if (!args) SWIG_fail;
26443 swig_obj[0] = args;
26444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
26445 if (!SWIG_IsOK(res1)) {
26446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26447 }
26448 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26449 {
26450 PyThreadState* __tstate = wxPyBeginAllowThreads();
26451 delete arg1;
26452
26453 wxPyEndAllowThreads(__tstate);
26454 if (PyErr_Occurred()) SWIG_fail;
26455 }
26456 resultobj = SWIG_Py_Void();
26457 return resultobj;
26458 fail:
26459 return NULL;
26460 }
26461
26462
26463 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26464 PyObject *resultobj = 0;
26465 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26466 wxString *arg2 = 0 ;
26467 wxColour result;
26468 void *argp1 = 0 ;
26469 int res1 = 0 ;
26470 bool temp2 = false ;
26471 PyObject * obj0 = 0 ;
26472 PyObject * obj1 = 0 ;
26473 char * kwnames[] = {
26474 (char *) "self",(char *) "name", NULL
26475 };
26476
26477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
26478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26479 if (!SWIG_IsOK(res1)) {
26480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
26481 }
26482 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26483 {
26484 arg2 = wxString_in_helper(obj1);
26485 if (arg2 == NULL) SWIG_fail;
26486 temp2 = true;
26487 }
26488 {
26489 PyThreadState* __tstate = wxPyBeginAllowThreads();
26490 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
26491 wxPyEndAllowThreads(__tstate);
26492 if (PyErr_Occurred()) SWIG_fail;
26493 }
26494 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26495 {
26496 if (temp2)
26497 delete arg2;
26498 }
26499 return resultobj;
26500 fail:
26501 {
26502 if (temp2)
26503 delete arg2;
26504 }
26505 return NULL;
26506 }
26507
26508
26509 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26510 PyObject *resultobj = 0;
26511 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26512 wxColour *arg2 = 0 ;
26513 wxString result;
26514 void *argp1 = 0 ;
26515 int res1 = 0 ;
26516 wxColour temp2 ;
26517 PyObject * obj0 = 0 ;
26518 PyObject * obj1 = 0 ;
26519 char * kwnames[] = {
26520 (char *) "self",(char *) "colour", NULL
26521 };
26522
26523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
26524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26525 if (!SWIG_IsOK(res1)) {
26526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
26527 }
26528 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26529 {
26530 arg2 = &temp2;
26531 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26532 }
26533 {
26534 PyThreadState* __tstate = wxPyBeginAllowThreads();
26535 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
26536 wxPyEndAllowThreads(__tstate);
26537 if (PyErr_Occurred()) SWIG_fail;
26538 }
26539 {
26540 #if wxUSE_UNICODE
26541 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26542 #else
26543 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26544 #endif
26545 }
26546 return resultobj;
26547 fail:
26548 return NULL;
26549 }
26550
26551
26552 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26553 PyObject *resultobj = 0;
26554 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26555 wxString *arg2 = 0 ;
26556 wxColour *arg3 = 0 ;
26557 void *argp1 = 0 ;
26558 int res1 = 0 ;
26559 bool temp2 = false ;
26560 wxColour temp3 ;
26561 PyObject * obj0 = 0 ;
26562 PyObject * obj1 = 0 ;
26563 PyObject * obj2 = 0 ;
26564 char * kwnames[] = {
26565 (char *) "self",(char *) "name",(char *) "colour", NULL
26566 };
26567
26568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26570 if (!SWIG_IsOK(res1)) {
26571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26572 }
26573 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26574 {
26575 arg2 = wxString_in_helper(obj1);
26576 if (arg2 == NULL) SWIG_fail;
26577 temp2 = true;
26578 }
26579 {
26580 arg3 = &temp3;
26581 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26582 }
26583 {
26584 PyThreadState* __tstate = wxPyBeginAllowThreads();
26585 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
26586 wxPyEndAllowThreads(__tstate);
26587 if (PyErr_Occurred()) SWIG_fail;
26588 }
26589 resultobj = SWIG_Py_Void();
26590 {
26591 if (temp2)
26592 delete arg2;
26593 }
26594 return resultobj;
26595 fail:
26596 {
26597 if (temp2)
26598 delete arg2;
26599 }
26600 return NULL;
26601 }
26602
26603
26604 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26605 PyObject *resultobj = 0;
26606 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26607 wxString *arg2 = 0 ;
26608 int arg3 ;
26609 int arg4 ;
26610 int arg5 ;
26611 void *argp1 = 0 ;
26612 int res1 = 0 ;
26613 bool temp2 = false ;
26614 int val3 ;
26615 int ecode3 = 0 ;
26616 int val4 ;
26617 int ecode4 = 0 ;
26618 int val5 ;
26619 int ecode5 = 0 ;
26620 PyObject * obj0 = 0 ;
26621 PyObject * obj1 = 0 ;
26622 PyObject * obj2 = 0 ;
26623 PyObject * obj3 = 0 ;
26624 PyObject * obj4 = 0 ;
26625 char * kwnames[] = {
26626 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
26627 };
26628
26629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26631 if (!SWIG_IsOK(res1)) {
26632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26633 }
26634 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26635 {
26636 arg2 = wxString_in_helper(obj1);
26637 if (arg2 == NULL) SWIG_fail;
26638 temp2 = true;
26639 }
26640 ecode3 = SWIG_AsVal_int(obj2, &val3);
26641 if (!SWIG_IsOK(ecode3)) {
26642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
26643 }
26644 arg3 = static_cast< int >(val3);
26645 ecode4 = SWIG_AsVal_int(obj3, &val4);
26646 if (!SWIG_IsOK(ecode4)) {
26647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
26648 }
26649 arg4 = static_cast< int >(val4);
26650 ecode5 = SWIG_AsVal_int(obj4, &val5);
26651 if (!SWIG_IsOK(ecode5)) {
26652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
26653 }
26654 arg5 = static_cast< int >(val5);
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
26658 wxPyEndAllowThreads(__tstate);
26659 if (PyErr_Occurred()) SWIG_fail;
26660 }
26661 resultobj = SWIG_Py_Void();
26662 {
26663 if (temp2)
26664 delete arg2;
26665 }
26666 return resultobj;
26667 fail:
26668 {
26669 if (temp2)
26670 delete arg2;
26671 }
26672 return NULL;
26673 }
26674
26675
26676 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26677 PyObject *obj;
26678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26679 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
26680 return SWIG_Py_Void();
26681 }
26682
26683 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26684 return SWIG_Python_InitShadowInstance(args);
26685 }
26686
26687 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26688 PyObject *resultobj = 0;
26689 wxFontList *result = 0 ;
26690
26691 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
26692 {
26693 PyThreadState* __tstate = wxPyBeginAllowThreads();
26694 result = (wxFontList *)_wxPyInitTheFontList();
26695 wxPyEndAllowThreads(__tstate);
26696 if (PyErr_Occurred()) SWIG_fail;
26697 }
26698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
26699 return resultobj;
26700 fail:
26701 return NULL;
26702 }
26703
26704
26705 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26706 PyObject *resultobj = 0;
26707 wxPenList *result = 0 ;
26708
26709 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
26710 {
26711 PyThreadState* __tstate = wxPyBeginAllowThreads();
26712 result = (wxPenList *)_wxPyInitThePenList();
26713 wxPyEndAllowThreads(__tstate);
26714 if (PyErr_Occurred()) SWIG_fail;
26715 }
26716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
26717 return resultobj;
26718 fail:
26719 return NULL;
26720 }
26721
26722
26723 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26724 PyObject *resultobj = 0;
26725 wxBrushList *result = 0 ;
26726
26727 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
26728 {
26729 PyThreadState* __tstate = wxPyBeginAllowThreads();
26730 result = (wxBrushList *)_wxPyInitTheBrushList();
26731 wxPyEndAllowThreads(__tstate);
26732 if (PyErr_Occurred()) SWIG_fail;
26733 }
26734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
26735 return resultobj;
26736 fail:
26737 return NULL;
26738 }
26739
26740
26741 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26742 PyObject *resultobj = 0;
26743 wxColourDatabase *result = 0 ;
26744
26745 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
26746 {
26747 PyThreadState* __tstate = wxPyBeginAllowThreads();
26748 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
26749 wxPyEndAllowThreads(__tstate);
26750 if (PyErr_Occurred()) SWIG_fail;
26751 }
26752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26753 return resultobj;
26754 fail:
26755 return NULL;
26756 }
26757
26758
26759 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26760 PyObject *resultobj = 0;
26761 wxEffects *result = 0 ;
26762
26763 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
26764 {
26765 PyThreadState* __tstate = wxPyBeginAllowThreads();
26766 result = (wxEffects *)new wxEffects();
26767 wxPyEndAllowThreads(__tstate);
26768 if (PyErr_Occurred()) SWIG_fail;
26769 }
26770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
26771 return resultobj;
26772 fail:
26773 return NULL;
26774 }
26775
26776
26777 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26778 PyObject *resultobj = 0;
26779 wxEffects *arg1 = (wxEffects *) 0 ;
26780 wxColour result;
26781 void *argp1 = 0 ;
26782 int res1 = 0 ;
26783 PyObject *swig_obj[1] ;
26784
26785 if (!args) SWIG_fail;
26786 swig_obj[0] = args;
26787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26788 if (!SWIG_IsOK(res1)) {
26789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26790 }
26791 arg1 = reinterpret_cast< wxEffects * >(argp1);
26792 {
26793 PyThreadState* __tstate = wxPyBeginAllowThreads();
26794 result = ((wxEffects const *)arg1)->GetHighlightColour();
26795 wxPyEndAllowThreads(__tstate);
26796 if (PyErr_Occurred()) SWIG_fail;
26797 }
26798 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26799 return resultobj;
26800 fail:
26801 return NULL;
26802 }
26803
26804
26805 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26806 PyObject *resultobj = 0;
26807 wxEffects *arg1 = (wxEffects *) 0 ;
26808 wxColour result;
26809 void *argp1 = 0 ;
26810 int res1 = 0 ;
26811 PyObject *swig_obj[1] ;
26812
26813 if (!args) SWIG_fail;
26814 swig_obj[0] = args;
26815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26816 if (!SWIG_IsOK(res1)) {
26817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26818 }
26819 arg1 = reinterpret_cast< wxEffects * >(argp1);
26820 {
26821 PyThreadState* __tstate = wxPyBeginAllowThreads();
26822 result = ((wxEffects const *)arg1)->GetLightShadow();
26823 wxPyEndAllowThreads(__tstate);
26824 if (PyErr_Occurred()) SWIG_fail;
26825 }
26826 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26827 return resultobj;
26828 fail:
26829 return NULL;
26830 }
26831
26832
26833 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26834 PyObject *resultobj = 0;
26835 wxEffects *arg1 = (wxEffects *) 0 ;
26836 wxColour result;
26837 void *argp1 = 0 ;
26838 int res1 = 0 ;
26839 PyObject *swig_obj[1] ;
26840
26841 if (!args) SWIG_fail;
26842 swig_obj[0] = args;
26843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26844 if (!SWIG_IsOK(res1)) {
26845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26846 }
26847 arg1 = reinterpret_cast< wxEffects * >(argp1);
26848 {
26849 PyThreadState* __tstate = wxPyBeginAllowThreads();
26850 result = ((wxEffects const *)arg1)->GetFaceColour();
26851 wxPyEndAllowThreads(__tstate);
26852 if (PyErr_Occurred()) SWIG_fail;
26853 }
26854 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26855 return resultobj;
26856 fail:
26857 return NULL;
26858 }
26859
26860
26861 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26862 PyObject *resultobj = 0;
26863 wxEffects *arg1 = (wxEffects *) 0 ;
26864 wxColour result;
26865 void *argp1 = 0 ;
26866 int res1 = 0 ;
26867 PyObject *swig_obj[1] ;
26868
26869 if (!args) SWIG_fail;
26870 swig_obj[0] = args;
26871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26872 if (!SWIG_IsOK(res1)) {
26873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26874 }
26875 arg1 = reinterpret_cast< wxEffects * >(argp1);
26876 {
26877 PyThreadState* __tstate = wxPyBeginAllowThreads();
26878 result = ((wxEffects const *)arg1)->GetMediumShadow();
26879 wxPyEndAllowThreads(__tstate);
26880 if (PyErr_Occurred()) SWIG_fail;
26881 }
26882 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26883 return resultobj;
26884 fail:
26885 return NULL;
26886 }
26887
26888
26889 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26890 PyObject *resultobj = 0;
26891 wxEffects *arg1 = (wxEffects *) 0 ;
26892 wxColour result;
26893 void *argp1 = 0 ;
26894 int res1 = 0 ;
26895 PyObject *swig_obj[1] ;
26896
26897 if (!args) SWIG_fail;
26898 swig_obj[0] = args;
26899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26900 if (!SWIG_IsOK(res1)) {
26901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26902 }
26903 arg1 = reinterpret_cast< wxEffects * >(argp1);
26904 {
26905 PyThreadState* __tstate = wxPyBeginAllowThreads();
26906 result = ((wxEffects const *)arg1)->GetDarkShadow();
26907 wxPyEndAllowThreads(__tstate);
26908 if (PyErr_Occurred()) SWIG_fail;
26909 }
26910 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26911 return resultobj;
26912 fail:
26913 return NULL;
26914 }
26915
26916
26917 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26918 PyObject *resultobj = 0;
26919 wxEffects *arg1 = (wxEffects *) 0 ;
26920 wxColour *arg2 = 0 ;
26921 void *argp1 = 0 ;
26922 int res1 = 0 ;
26923 wxColour temp2 ;
26924 PyObject * obj0 = 0 ;
26925 PyObject * obj1 = 0 ;
26926 char * kwnames[] = {
26927 (char *) "self",(char *) "c", NULL
26928 };
26929
26930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
26931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26932 if (!SWIG_IsOK(res1)) {
26933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26934 }
26935 arg1 = reinterpret_cast< wxEffects * >(argp1);
26936 {
26937 arg2 = &temp2;
26938 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26939 }
26940 {
26941 PyThreadState* __tstate = wxPyBeginAllowThreads();
26942 (arg1)->SetHighlightColour((wxColour const &)*arg2);
26943 wxPyEndAllowThreads(__tstate);
26944 if (PyErr_Occurred()) SWIG_fail;
26945 }
26946 resultobj = SWIG_Py_Void();
26947 return resultobj;
26948 fail:
26949 return NULL;
26950 }
26951
26952
26953 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26954 PyObject *resultobj = 0;
26955 wxEffects *arg1 = (wxEffects *) 0 ;
26956 wxColour *arg2 = 0 ;
26957 void *argp1 = 0 ;
26958 int res1 = 0 ;
26959 wxColour temp2 ;
26960 PyObject * obj0 = 0 ;
26961 PyObject * obj1 = 0 ;
26962 char * kwnames[] = {
26963 (char *) "self",(char *) "c", NULL
26964 };
26965
26966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26968 if (!SWIG_IsOK(res1)) {
26969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26970 }
26971 arg1 = reinterpret_cast< wxEffects * >(argp1);
26972 {
26973 arg2 = &temp2;
26974 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26975 }
26976 {
26977 PyThreadState* __tstate = wxPyBeginAllowThreads();
26978 (arg1)->SetLightShadow((wxColour const &)*arg2);
26979 wxPyEndAllowThreads(__tstate);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 resultobj = SWIG_Py_Void();
26983 return resultobj;
26984 fail:
26985 return NULL;
26986 }
26987
26988
26989 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26990 PyObject *resultobj = 0;
26991 wxEffects *arg1 = (wxEffects *) 0 ;
26992 wxColour *arg2 = 0 ;
26993 void *argp1 = 0 ;
26994 int res1 = 0 ;
26995 wxColour temp2 ;
26996 PyObject * obj0 = 0 ;
26997 PyObject * obj1 = 0 ;
26998 char * kwnames[] = {
26999 (char *) "self",(char *) "c", NULL
27000 };
27001
27002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
27003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27004 if (!SWIG_IsOK(res1)) {
27005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
27006 }
27007 arg1 = reinterpret_cast< wxEffects * >(argp1);
27008 {
27009 arg2 = &temp2;
27010 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27011 }
27012 {
27013 PyThreadState* __tstate = wxPyBeginAllowThreads();
27014 (arg1)->SetFaceColour((wxColour const &)*arg2);
27015 wxPyEndAllowThreads(__tstate);
27016 if (PyErr_Occurred()) SWIG_fail;
27017 }
27018 resultobj = SWIG_Py_Void();
27019 return resultobj;
27020 fail:
27021 return NULL;
27022 }
27023
27024
27025 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27026 PyObject *resultobj = 0;
27027 wxEffects *arg1 = (wxEffects *) 0 ;
27028 wxColour *arg2 = 0 ;
27029 void *argp1 = 0 ;
27030 int res1 = 0 ;
27031 wxColour temp2 ;
27032 PyObject * obj0 = 0 ;
27033 PyObject * obj1 = 0 ;
27034 char * kwnames[] = {
27035 (char *) "self",(char *) "c", NULL
27036 };
27037
27038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
27039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27040 if (!SWIG_IsOK(res1)) {
27041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
27042 }
27043 arg1 = reinterpret_cast< wxEffects * >(argp1);
27044 {
27045 arg2 = &temp2;
27046 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27047 }
27048 {
27049 PyThreadState* __tstate = wxPyBeginAllowThreads();
27050 (arg1)->SetMediumShadow((wxColour const &)*arg2);
27051 wxPyEndAllowThreads(__tstate);
27052 if (PyErr_Occurred()) SWIG_fail;
27053 }
27054 resultobj = SWIG_Py_Void();
27055 return resultobj;
27056 fail:
27057 return NULL;
27058 }
27059
27060
27061 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27062 PyObject *resultobj = 0;
27063 wxEffects *arg1 = (wxEffects *) 0 ;
27064 wxColour *arg2 = 0 ;
27065 void *argp1 = 0 ;
27066 int res1 = 0 ;
27067 wxColour temp2 ;
27068 PyObject * obj0 = 0 ;
27069 PyObject * obj1 = 0 ;
27070 char * kwnames[] = {
27071 (char *) "self",(char *) "c", NULL
27072 };
27073
27074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
27075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27076 if (!SWIG_IsOK(res1)) {
27077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
27078 }
27079 arg1 = reinterpret_cast< wxEffects * >(argp1);
27080 {
27081 arg2 = &temp2;
27082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27083 }
27084 {
27085 PyThreadState* __tstate = wxPyBeginAllowThreads();
27086 (arg1)->SetDarkShadow((wxColour const &)*arg2);
27087 wxPyEndAllowThreads(__tstate);
27088 if (PyErr_Occurred()) SWIG_fail;
27089 }
27090 resultobj = SWIG_Py_Void();
27091 return resultobj;
27092 fail:
27093 return NULL;
27094 }
27095
27096
27097 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27098 PyObject *resultobj = 0;
27099 wxEffects *arg1 = (wxEffects *) 0 ;
27100 wxColour *arg2 = 0 ;
27101 wxColour *arg3 = 0 ;
27102 wxColour *arg4 = 0 ;
27103 wxColour *arg5 = 0 ;
27104 wxColour *arg6 = 0 ;
27105 void *argp1 = 0 ;
27106 int res1 = 0 ;
27107 wxColour temp2 ;
27108 wxColour temp3 ;
27109 wxColour temp4 ;
27110 wxColour temp5 ;
27111 wxColour temp6 ;
27112 PyObject * obj0 = 0 ;
27113 PyObject * obj1 = 0 ;
27114 PyObject * obj2 = 0 ;
27115 PyObject * obj3 = 0 ;
27116 PyObject * obj4 = 0 ;
27117 PyObject * obj5 = 0 ;
27118 char * kwnames[] = {
27119 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
27120 };
27121
27122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27124 if (!SWIG_IsOK(res1)) {
27125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
27126 }
27127 arg1 = reinterpret_cast< wxEffects * >(argp1);
27128 {
27129 arg2 = &temp2;
27130 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27131 }
27132 {
27133 arg3 = &temp3;
27134 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27135 }
27136 {
27137 arg4 = &temp4;
27138 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
27139 }
27140 {
27141 arg5 = &temp5;
27142 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
27143 }
27144 {
27145 arg6 = &temp6;
27146 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27147 }
27148 {
27149 PyThreadState* __tstate = wxPyBeginAllowThreads();
27150 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
27151 wxPyEndAllowThreads(__tstate);
27152 if (PyErr_Occurred()) SWIG_fail;
27153 }
27154 resultobj = SWIG_Py_Void();
27155 return resultobj;
27156 fail:
27157 return NULL;
27158 }
27159
27160
27161 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27162 PyObject *resultobj = 0;
27163 wxEffects *arg1 = (wxEffects *) 0 ;
27164 wxDC *arg2 = 0 ;
27165 wxRect *arg3 = 0 ;
27166 int arg4 = (int) 1 ;
27167 void *argp1 = 0 ;
27168 int res1 = 0 ;
27169 void *argp2 = 0 ;
27170 int res2 = 0 ;
27171 wxRect temp3 ;
27172 int val4 ;
27173 int ecode4 = 0 ;
27174 PyObject * obj0 = 0 ;
27175 PyObject * obj1 = 0 ;
27176 PyObject * obj2 = 0 ;
27177 PyObject * obj3 = 0 ;
27178 char * kwnames[] = {
27179 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
27180 };
27181
27182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27184 if (!SWIG_IsOK(res1)) {
27185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
27186 }
27187 arg1 = reinterpret_cast< wxEffects * >(argp1);
27188 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
27189 if (!SWIG_IsOK(res2)) {
27190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
27191 }
27192 if (!argp2) {
27193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
27194 }
27195 arg2 = reinterpret_cast< wxDC * >(argp2);
27196 {
27197 arg3 = &temp3;
27198 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27199 }
27200 if (obj3) {
27201 ecode4 = SWIG_AsVal_int(obj3, &val4);
27202 if (!SWIG_IsOK(ecode4)) {
27203 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
27204 }
27205 arg4 = static_cast< int >(val4);
27206 }
27207 {
27208 PyThreadState* __tstate = wxPyBeginAllowThreads();
27209 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
27210 wxPyEndAllowThreads(__tstate);
27211 if (PyErr_Occurred()) SWIG_fail;
27212 }
27213 resultobj = SWIG_Py_Void();
27214 return resultobj;
27215 fail:
27216 return NULL;
27217 }
27218
27219
27220 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27221 PyObject *resultobj = 0;
27222 wxEffects *arg1 = (wxEffects *) 0 ;
27223 wxRect *arg2 = 0 ;
27224 wxDC *arg3 = 0 ;
27225 wxBitmap *arg4 = 0 ;
27226 bool result;
27227 void *argp1 = 0 ;
27228 int res1 = 0 ;
27229 wxRect temp2 ;
27230 void *argp3 = 0 ;
27231 int res3 = 0 ;
27232 void *argp4 = 0 ;
27233 int res4 = 0 ;
27234 PyObject * obj0 = 0 ;
27235 PyObject * obj1 = 0 ;
27236 PyObject * obj2 = 0 ;
27237 PyObject * obj3 = 0 ;
27238 char * kwnames[] = {
27239 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
27240 };
27241
27242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27244 if (!SWIG_IsOK(res1)) {
27245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
27246 }
27247 arg1 = reinterpret_cast< wxEffects * >(argp1);
27248 {
27249 arg2 = &temp2;
27250 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27251 }
27252 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27253 if (!SWIG_IsOK(res3)) {
27254 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
27255 }
27256 if (!argp3) {
27257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
27258 }
27259 arg3 = reinterpret_cast< wxDC * >(argp3);
27260 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
27261 if (!SWIG_IsOK(res4)) {
27262 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
27263 }
27264 if (!argp4) {
27265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
27266 }
27267 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27268 {
27269 PyThreadState* __tstate = wxPyBeginAllowThreads();
27270 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
27271 wxPyEndAllowThreads(__tstate);
27272 if (PyErr_Occurred()) SWIG_fail;
27273 }
27274 {
27275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27276 }
27277 return resultobj;
27278 fail:
27279 return NULL;
27280 }
27281
27282
27283 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27284 PyObject *obj;
27285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27286 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
27287 return SWIG_Py_Void();
27288 }
27289
27290 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27291 return SWIG_Python_InitShadowInstance(args);
27292 }
27293
27294 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27295 PyObject *resultobj = 0;
27296 int arg1 ;
27297 int arg2 ;
27298 bool arg3 ;
27299 wxSplitterRenderParams *result = 0 ;
27300 int val1 ;
27301 int ecode1 = 0 ;
27302 int val2 ;
27303 int ecode2 = 0 ;
27304 bool val3 ;
27305 int ecode3 = 0 ;
27306 PyObject * obj0 = 0 ;
27307 PyObject * obj1 = 0 ;
27308 PyObject * obj2 = 0 ;
27309 char * kwnames[] = {
27310 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
27311 };
27312
27313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27314 ecode1 = SWIG_AsVal_int(obj0, &val1);
27315 if (!SWIG_IsOK(ecode1)) {
27316 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
27317 }
27318 arg1 = static_cast< int >(val1);
27319 ecode2 = SWIG_AsVal_int(obj1, &val2);
27320 if (!SWIG_IsOK(ecode2)) {
27321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
27322 }
27323 arg2 = static_cast< int >(val2);
27324 ecode3 = SWIG_AsVal_bool(obj2, &val3);
27325 if (!SWIG_IsOK(ecode3)) {
27326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
27327 }
27328 arg3 = static_cast< bool >(val3);
27329 {
27330 PyThreadState* __tstate = wxPyBeginAllowThreads();
27331 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
27332 wxPyEndAllowThreads(__tstate);
27333 if (PyErr_Occurred()) SWIG_fail;
27334 }
27335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
27336 return resultobj;
27337 fail:
27338 return NULL;
27339 }
27340
27341
27342 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27343 PyObject *resultobj = 0;
27344 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27345 void *argp1 = 0 ;
27346 int res1 = 0 ;
27347 PyObject *swig_obj[1] ;
27348
27349 if (!args) SWIG_fail;
27350 swig_obj[0] = args;
27351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
27352 if (!SWIG_IsOK(res1)) {
27353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27354 }
27355 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27356 {
27357 PyThreadState* __tstate = wxPyBeginAllowThreads();
27358 delete arg1;
27359
27360 wxPyEndAllowThreads(__tstate);
27361 if (PyErr_Occurred()) SWIG_fail;
27362 }
27363 resultobj = SWIG_Py_Void();
27364 return resultobj;
27365 fail:
27366 return NULL;
27367 }
27368
27369
27370 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27371 PyObject *resultobj = 0;
27372 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27373 int result;
27374 void *argp1 = 0 ;
27375 int res1 = 0 ;
27376 PyObject *swig_obj[1] ;
27377
27378 if (!args) SWIG_fail;
27379 swig_obj[0] = args;
27380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27381 if (!SWIG_IsOK(res1)) {
27382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27383 }
27384 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27385 result = (int)(int) ((arg1)->widthSash);
27386 resultobj = SWIG_From_int(static_cast< int >(result));
27387 return resultobj;
27388 fail:
27389 return NULL;
27390 }
27391
27392
27393 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27394 PyObject *resultobj = 0;
27395 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27396 int result;
27397 void *argp1 = 0 ;
27398 int res1 = 0 ;
27399 PyObject *swig_obj[1] ;
27400
27401 if (!args) SWIG_fail;
27402 swig_obj[0] = args;
27403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27404 if (!SWIG_IsOK(res1)) {
27405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27406 }
27407 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27408 result = (int)(int) ((arg1)->border);
27409 resultobj = SWIG_From_int(static_cast< int >(result));
27410 return resultobj;
27411 fail:
27412 return NULL;
27413 }
27414
27415
27416 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27417 PyObject *resultobj = 0;
27418 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27419 bool result;
27420 void *argp1 = 0 ;
27421 int res1 = 0 ;
27422 PyObject *swig_obj[1] ;
27423
27424 if (!args) SWIG_fail;
27425 swig_obj[0] = args;
27426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27427 if (!SWIG_IsOK(res1)) {
27428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27429 }
27430 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27431 result = (bool)(bool) ((arg1)->isHotSensitive);
27432 resultobj = SWIG_From_bool(static_cast< bool >(result));
27433 return resultobj;
27434 fail:
27435 return NULL;
27436 }
27437
27438
27439 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27440 PyObject *obj;
27441 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27442 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
27443 return SWIG_Py_Void();
27444 }
27445
27446 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27447 return SWIG_Python_InitShadowInstance(args);
27448 }
27449
27450 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27451 PyObject *resultobj = 0;
27452 wxHeaderButtonParams *result = 0 ;
27453
27454 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
27455 {
27456 PyThreadState* __tstate = wxPyBeginAllowThreads();
27457 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
27458 wxPyEndAllowThreads(__tstate);
27459 if (PyErr_Occurred()) SWIG_fail;
27460 }
27461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
27462 return resultobj;
27463 fail:
27464 return NULL;
27465 }
27466
27467
27468 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27469 PyObject *resultobj = 0;
27470 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27471 void *argp1 = 0 ;
27472 int res1 = 0 ;
27473 PyObject *swig_obj[1] ;
27474
27475 if (!args) SWIG_fail;
27476 swig_obj[0] = args;
27477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
27478 if (!SWIG_IsOK(res1)) {
27479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27480 }
27481 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27482 {
27483 PyThreadState* __tstate = wxPyBeginAllowThreads();
27484 delete arg1;
27485
27486 wxPyEndAllowThreads(__tstate);
27487 if (PyErr_Occurred()) SWIG_fail;
27488 }
27489 resultobj = SWIG_Py_Void();
27490 return resultobj;
27491 fail:
27492 return NULL;
27493 }
27494
27495
27496 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27497 PyObject *resultobj = 0;
27498 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27499 wxColour *arg2 = (wxColour *) 0 ;
27500 void *argp1 = 0 ;
27501 int res1 = 0 ;
27502 wxColour temp2 ;
27503 PyObject *swig_obj[2] ;
27504
27505 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
27506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27507 if (!SWIG_IsOK(res1)) {
27508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27509 }
27510 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27511 {
27512 arg2 = &temp2;
27513 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
27514 }
27515 if (arg1) (arg1)->m_arrowColour = *arg2;
27516
27517 resultobj = SWIG_Py_Void();
27518 return resultobj;
27519 fail:
27520 return NULL;
27521 }
27522
27523
27524 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27525 PyObject *resultobj = 0;
27526 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27527 wxColour *result = 0 ;
27528 void *argp1 = 0 ;
27529 int res1 = 0 ;
27530 PyObject *swig_obj[1] ;
27531
27532 if (!args) SWIG_fail;
27533 swig_obj[0] = args;
27534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27535 if (!SWIG_IsOK(res1)) {
27536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27537 }
27538 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27539 result = (wxColour *)& ((arg1)->m_arrowColour);
27540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27541 return resultobj;
27542 fail:
27543 return NULL;
27544 }
27545
27546
27547 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27548 PyObject *resultobj = 0;
27549 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27550 wxColour *arg2 = (wxColour *) 0 ;
27551 void *argp1 = 0 ;
27552 int res1 = 0 ;
27553 wxColour temp2 ;
27554 PyObject *swig_obj[2] ;
27555
27556 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
27557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27558 if (!SWIG_IsOK(res1)) {
27559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27560 }
27561 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27562 {
27563 arg2 = &temp2;
27564 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
27565 }
27566 if (arg1) (arg1)->m_selectionColour = *arg2;
27567
27568 resultobj = SWIG_Py_Void();
27569 return resultobj;
27570 fail:
27571 return NULL;
27572 }
27573
27574
27575 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27576 PyObject *resultobj = 0;
27577 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27578 wxColour *result = 0 ;
27579 void *argp1 = 0 ;
27580 int res1 = 0 ;
27581 PyObject *swig_obj[1] ;
27582
27583 if (!args) SWIG_fail;
27584 swig_obj[0] = args;
27585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27586 if (!SWIG_IsOK(res1)) {
27587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27588 }
27589 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27590 result = (wxColour *)& ((arg1)->m_selectionColour);
27591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27592 return resultobj;
27593 fail:
27594 return NULL;
27595 }
27596
27597
27598 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27599 PyObject *resultobj = 0;
27600 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27601 wxString *arg2 = (wxString *) 0 ;
27602 void *argp1 = 0 ;
27603 int res1 = 0 ;
27604 bool temp2 = false ;
27605 PyObject *swig_obj[2] ;
27606
27607 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
27608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27609 if (!SWIG_IsOK(res1)) {
27610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27611 }
27612 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27613 {
27614 arg2 = wxString_in_helper(swig_obj[1]);
27615 if (arg2 == NULL) SWIG_fail;
27616 temp2 = true;
27617 }
27618 if (arg1) (arg1)->m_labelText = *arg2;
27619
27620 resultobj = SWIG_Py_Void();
27621 {
27622 if (temp2)
27623 delete arg2;
27624 }
27625 return resultobj;
27626 fail:
27627 {
27628 if (temp2)
27629 delete arg2;
27630 }
27631 return NULL;
27632 }
27633
27634
27635 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27636 PyObject *resultobj = 0;
27637 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27638 wxString *result = 0 ;
27639 void *argp1 = 0 ;
27640 int res1 = 0 ;
27641 PyObject *swig_obj[1] ;
27642
27643 if (!args) SWIG_fail;
27644 swig_obj[0] = args;
27645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27646 if (!SWIG_IsOK(res1)) {
27647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27648 }
27649 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27650 result = (wxString *)& ((arg1)->m_labelText);
27651 {
27652 #if wxUSE_UNICODE
27653 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27654 #else
27655 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27656 #endif
27657 }
27658 return resultobj;
27659 fail:
27660 return NULL;
27661 }
27662
27663
27664 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27665 PyObject *resultobj = 0;
27666 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27667 wxFont *arg2 = (wxFont *) 0 ;
27668 void *argp1 = 0 ;
27669 int res1 = 0 ;
27670 void *argp2 = 0 ;
27671 int res2 = 0 ;
27672 PyObject *swig_obj[2] ;
27673
27674 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
27675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27676 if (!SWIG_IsOK(res1)) {
27677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27678 }
27679 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27680 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
27681 if (!SWIG_IsOK(res2)) {
27682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
27683 }
27684 arg2 = reinterpret_cast< wxFont * >(argp2);
27685 if (arg1) (arg1)->m_labelFont = *arg2;
27686
27687 resultobj = SWIG_Py_Void();
27688 return resultobj;
27689 fail:
27690 return NULL;
27691 }
27692
27693
27694 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27695 PyObject *resultobj = 0;
27696 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27697 wxFont *result = 0 ;
27698 void *argp1 = 0 ;
27699 int res1 = 0 ;
27700 PyObject *swig_obj[1] ;
27701
27702 if (!args) SWIG_fail;
27703 swig_obj[0] = args;
27704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27705 if (!SWIG_IsOK(res1)) {
27706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27707 }
27708 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27709 result = (wxFont *)& ((arg1)->m_labelFont);
27710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27711 return resultobj;
27712 fail:
27713 return NULL;
27714 }
27715
27716
27717 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27718 PyObject *resultobj = 0;
27719 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27720 wxColour *arg2 = (wxColour *) 0 ;
27721 void *argp1 = 0 ;
27722 int res1 = 0 ;
27723 wxColour temp2 ;
27724 PyObject *swig_obj[2] ;
27725
27726 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
27727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27728 if (!SWIG_IsOK(res1)) {
27729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27730 }
27731 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27732 {
27733 arg2 = &temp2;
27734 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
27735 }
27736 if (arg1) (arg1)->m_labelColour = *arg2;
27737
27738 resultobj = SWIG_Py_Void();
27739 return resultobj;
27740 fail:
27741 return NULL;
27742 }
27743
27744
27745 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27746 PyObject *resultobj = 0;
27747 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27748 wxColour *result = 0 ;
27749 void *argp1 = 0 ;
27750 int res1 = 0 ;
27751 PyObject *swig_obj[1] ;
27752
27753 if (!args) SWIG_fail;
27754 swig_obj[0] = args;
27755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27756 if (!SWIG_IsOK(res1)) {
27757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27758 }
27759 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27760 result = (wxColour *)& ((arg1)->m_labelColour);
27761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27762 return resultobj;
27763 fail:
27764 return NULL;
27765 }
27766
27767
27768 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27769 PyObject *resultobj = 0;
27770 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27771 wxBitmap *arg2 = (wxBitmap *) 0 ;
27772 void *argp1 = 0 ;
27773 int res1 = 0 ;
27774 void *argp2 = 0 ;
27775 int res2 = 0 ;
27776 PyObject *swig_obj[2] ;
27777
27778 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
27779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27780 if (!SWIG_IsOK(res1)) {
27781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27782 }
27783 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27784 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
27785 if (!SWIG_IsOK(res2)) {
27786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
27787 }
27788 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27789 if (arg1) (arg1)->m_labelBitmap = *arg2;
27790
27791 resultobj = SWIG_Py_Void();
27792 return resultobj;
27793 fail:
27794 return NULL;
27795 }
27796
27797
27798 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27799 PyObject *resultobj = 0;
27800 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27801 wxBitmap *result = 0 ;
27802 void *argp1 = 0 ;
27803 int res1 = 0 ;
27804 PyObject *swig_obj[1] ;
27805
27806 if (!args) SWIG_fail;
27807 swig_obj[0] = args;
27808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27809 if (!SWIG_IsOK(res1)) {
27810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27811 }
27812 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27813 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
27814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
27815 return resultobj;
27816 fail:
27817 return NULL;
27818 }
27819
27820
27821 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27822 PyObject *resultobj = 0;
27823 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27824 int arg2 ;
27825 void *argp1 = 0 ;
27826 int res1 = 0 ;
27827 int val2 ;
27828 int ecode2 = 0 ;
27829 PyObject *swig_obj[2] ;
27830
27831 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
27832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27833 if (!SWIG_IsOK(res1)) {
27834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27835 }
27836 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27837 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27838 if (!SWIG_IsOK(ecode2)) {
27839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
27840 }
27841 arg2 = static_cast< int >(val2);
27842 if (arg1) (arg1)->m_labelAlignment = arg2;
27843
27844 resultobj = SWIG_Py_Void();
27845 return resultobj;
27846 fail:
27847 return NULL;
27848 }
27849
27850
27851 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27852 PyObject *resultobj = 0;
27853 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27854 int result;
27855 void *argp1 = 0 ;
27856 int res1 = 0 ;
27857 PyObject *swig_obj[1] ;
27858
27859 if (!args) SWIG_fail;
27860 swig_obj[0] = args;
27861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27862 if (!SWIG_IsOK(res1)) {
27863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27864 }
27865 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27866 result = (int) ((arg1)->m_labelAlignment);
27867 resultobj = SWIG_From_int(static_cast< int >(result));
27868 return resultobj;
27869 fail:
27870 return NULL;
27871 }
27872
27873
27874 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27875 PyObject *obj;
27876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27877 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
27878 return SWIG_Py_Void();
27879 }
27880
27881 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27882 return SWIG_Python_InitShadowInstance(args);
27883 }
27884
27885 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27886 PyObject *resultobj = 0;
27887 int arg1 ;
27888 int arg2 ;
27889 wxRendererVersion *result = 0 ;
27890 int val1 ;
27891 int ecode1 = 0 ;
27892 int val2 ;
27893 int ecode2 = 0 ;
27894 PyObject * obj0 = 0 ;
27895 PyObject * obj1 = 0 ;
27896 char * kwnames[] = {
27897 (char *) "version_",(char *) "age_", NULL
27898 };
27899
27900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
27901 ecode1 = SWIG_AsVal_int(obj0, &val1);
27902 if (!SWIG_IsOK(ecode1)) {
27903 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
27904 }
27905 arg1 = static_cast< int >(val1);
27906 ecode2 = SWIG_AsVal_int(obj1, &val2);
27907 if (!SWIG_IsOK(ecode2)) {
27908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
27909 }
27910 arg2 = static_cast< int >(val2);
27911 {
27912 PyThreadState* __tstate = wxPyBeginAllowThreads();
27913 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
27914 wxPyEndAllowThreads(__tstate);
27915 if (PyErr_Occurred()) SWIG_fail;
27916 }
27917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
27918 return resultobj;
27919 fail:
27920 return NULL;
27921 }
27922
27923
27924 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27925 PyObject *resultobj = 0;
27926 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27927 void *argp1 = 0 ;
27928 int res1 = 0 ;
27929 PyObject *swig_obj[1] ;
27930
27931 if (!args) SWIG_fail;
27932 swig_obj[0] = args;
27933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
27934 if (!SWIG_IsOK(res1)) {
27935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27936 }
27937 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27938 {
27939 PyThreadState* __tstate = wxPyBeginAllowThreads();
27940 delete arg1;
27941
27942 wxPyEndAllowThreads(__tstate);
27943 if (PyErr_Occurred()) SWIG_fail;
27944 }
27945 resultobj = SWIG_Py_Void();
27946 return resultobj;
27947 fail:
27948 return NULL;
27949 }
27950
27951
27952 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27953 PyObject *resultobj = 0;
27954 wxRendererVersion *arg1 = 0 ;
27955 bool result;
27956 void *argp1 = 0 ;
27957 int res1 = 0 ;
27958 PyObject * obj0 = 0 ;
27959 char * kwnames[] = {
27960 (char *) "ver", NULL
27961 };
27962
27963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
27964 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
27965 if (!SWIG_IsOK(res1)) {
27966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27967 }
27968 if (!argp1) {
27969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27970 }
27971 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27972 {
27973 PyThreadState* __tstate = wxPyBeginAllowThreads();
27974 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
27975 wxPyEndAllowThreads(__tstate);
27976 if (PyErr_Occurred()) SWIG_fail;
27977 }
27978 {
27979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27980 }
27981 return resultobj;
27982 fail:
27983 return NULL;
27984 }
27985
27986
27987 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27988 PyObject *resultobj = 0;
27989 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27990 int result;
27991 void *argp1 = 0 ;
27992 int res1 = 0 ;
27993 PyObject *swig_obj[1] ;
27994
27995 if (!args) SWIG_fail;
27996 swig_obj[0] = args;
27997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27998 if (!SWIG_IsOK(res1)) {
27999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
28000 }
28001 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
28002 result = (int)(int) ((arg1)->version);
28003 resultobj = SWIG_From_int(static_cast< int >(result));
28004 return resultobj;
28005 fail:
28006 return NULL;
28007 }
28008
28009
28010 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28011 PyObject *resultobj = 0;
28012 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
28013 int result;
28014 void *argp1 = 0 ;
28015 int res1 = 0 ;
28016 PyObject *swig_obj[1] ;
28017
28018 if (!args) SWIG_fail;
28019 swig_obj[0] = args;
28020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
28021 if (!SWIG_IsOK(res1)) {
28022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
28023 }
28024 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
28025 result = (int)(int) ((arg1)->age);
28026 resultobj = SWIG_From_int(static_cast< int >(result));
28027 return resultobj;
28028 fail:
28029 return NULL;
28030 }
28031
28032
28033 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28034 PyObject *obj;
28035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28036 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
28037 return SWIG_Py_Void();
28038 }
28039
28040 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28041 return SWIG_Python_InitShadowInstance(args);
28042 }
28043
28044 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28045 PyObject *resultobj = 0;
28046 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28047 wxWindow *arg2 = (wxWindow *) 0 ;
28048 wxDC *arg3 = 0 ;
28049 wxRect *arg4 = 0 ;
28050 int arg5 = (int) 0 ;
28051 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
28052 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
28053 void *argp1 = 0 ;
28054 int res1 = 0 ;
28055 void *argp2 = 0 ;
28056 int res2 = 0 ;
28057 void *argp3 = 0 ;
28058 int res3 = 0 ;
28059 wxRect temp4 ;
28060 int val5 ;
28061 int ecode5 = 0 ;
28062 int val6 ;
28063 int ecode6 = 0 ;
28064 void *argp7 = 0 ;
28065 int res7 = 0 ;
28066 PyObject * obj0 = 0 ;
28067 PyObject * obj1 = 0 ;
28068 PyObject * obj2 = 0 ;
28069 PyObject * obj3 = 0 ;
28070 PyObject * obj4 = 0 ;
28071 PyObject * obj5 = 0 ;
28072 PyObject * obj6 = 0 ;
28073 char * kwnames[] = {
28074 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
28075 };
28076
28077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28079 if (!SWIG_IsOK(res1)) {
28080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28081 }
28082 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28084 if (!SWIG_IsOK(res2)) {
28085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28086 }
28087 arg2 = reinterpret_cast< wxWindow * >(argp2);
28088 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28089 if (!SWIG_IsOK(res3)) {
28090 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
28091 }
28092 if (!argp3) {
28093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
28094 }
28095 arg3 = reinterpret_cast< wxDC * >(argp3);
28096 {
28097 arg4 = &temp4;
28098 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28099 }
28100 if (obj4) {
28101 ecode5 = SWIG_AsVal_int(obj4, &val5);
28102 if (!SWIG_IsOK(ecode5)) {
28103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
28104 }
28105 arg5 = static_cast< int >(val5);
28106 }
28107 if (obj5) {
28108 ecode6 = SWIG_AsVal_int(obj5, &val6);
28109 if (!SWIG_IsOK(ecode6)) {
28110 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
28111 }
28112 arg6 = static_cast< wxHeaderSortIconType >(val6);
28113 }
28114 if (obj6) {
28115 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
28116 if (!SWIG_IsOK(res7)) {
28117 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
28118 }
28119 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
28120 }
28121 {
28122 PyThreadState* __tstate = wxPyBeginAllowThreads();
28123 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
28124 wxPyEndAllowThreads(__tstate);
28125 if (PyErr_Occurred()) SWIG_fail;
28126 }
28127 resultobj = SWIG_Py_Void();
28128 return resultobj;
28129 fail:
28130 return NULL;
28131 }
28132
28133
28134 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28135 PyObject *resultobj = 0;
28136 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28137 wxWindow *arg2 = (wxWindow *) 0 ;
28138 wxDC *arg3 = 0 ;
28139 wxRect *arg4 = 0 ;
28140 int arg5 = (int) 0 ;
28141 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
28142 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
28143 void *argp1 = 0 ;
28144 int res1 = 0 ;
28145 void *argp2 = 0 ;
28146 int res2 = 0 ;
28147 void *argp3 = 0 ;
28148 int res3 = 0 ;
28149 wxRect temp4 ;
28150 int val5 ;
28151 int ecode5 = 0 ;
28152 int val6 ;
28153 int ecode6 = 0 ;
28154 void *argp7 = 0 ;
28155 int res7 = 0 ;
28156 PyObject * obj0 = 0 ;
28157 PyObject * obj1 = 0 ;
28158 PyObject * obj2 = 0 ;
28159 PyObject * obj3 = 0 ;
28160 PyObject * obj4 = 0 ;
28161 PyObject * obj5 = 0 ;
28162 PyObject * obj6 = 0 ;
28163 char * kwnames[] = {
28164 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
28165 };
28166
28167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28169 if (!SWIG_IsOK(res1)) {
28170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28171 }
28172 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28173 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28174 if (!SWIG_IsOK(res2)) {
28175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
28176 }
28177 arg2 = reinterpret_cast< wxWindow * >(argp2);
28178 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28179 if (!SWIG_IsOK(res3)) {
28180 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
28181 }
28182 if (!argp3) {
28183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
28184 }
28185 arg3 = reinterpret_cast< wxDC * >(argp3);
28186 {
28187 arg4 = &temp4;
28188 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28189 }
28190 if (obj4) {
28191 ecode5 = SWIG_AsVal_int(obj4, &val5);
28192 if (!SWIG_IsOK(ecode5)) {
28193 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
28194 }
28195 arg5 = static_cast< int >(val5);
28196 }
28197 if (obj5) {
28198 ecode6 = SWIG_AsVal_int(obj5, &val6);
28199 if (!SWIG_IsOK(ecode6)) {
28200 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
28201 }
28202 arg6 = static_cast< wxHeaderSortIconType >(val6);
28203 }
28204 if (obj6) {
28205 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
28206 if (!SWIG_IsOK(res7)) {
28207 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
28208 }
28209 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
28210 }
28211 {
28212 PyThreadState* __tstate = wxPyBeginAllowThreads();
28213 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
28214 wxPyEndAllowThreads(__tstate);
28215 if (PyErr_Occurred()) SWIG_fail;
28216 }
28217 resultobj = SWIG_Py_Void();
28218 return resultobj;
28219 fail:
28220 return NULL;
28221 }
28222
28223
28224 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28225 PyObject *resultobj = 0;
28226 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28227 wxWindow *arg2 = (wxWindow *) 0 ;
28228 int result;
28229 void *argp1 = 0 ;
28230 int res1 = 0 ;
28231 void *argp2 = 0 ;
28232 int res2 = 0 ;
28233 PyObject * obj0 = 0 ;
28234 PyObject * obj1 = 0 ;
28235 char * kwnames[] = {
28236 (char *) "self",(char *) "win", NULL
28237 };
28238
28239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
28240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28241 if (!SWIG_IsOK(res1)) {
28242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28243 }
28244 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28245 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28246 if (!SWIG_IsOK(res2)) {
28247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
28248 }
28249 arg2 = reinterpret_cast< wxWindow * >(argp2);
28250 {
28251 PyThreadState* __tstate = wxPyBeginAllowThreads();
28252 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
28253 wxPyEndAllowThreads(__tstate);
28254 if (PyErr_Occurred()) SWIG_fail;
28255 }
28256 resultobj = SWIG_From_int(static_cast< int >(result));
28257 return resultobj;
28258 fail:
28259 return NULL;
28260 }
28261
28262
28263 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28264 PyObject *resultobj = 0;
28265 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28266 wxWindow *arg2 = (wxWindow *) 0 ;
28267 wxDC *arg3 = 0 ;
28268 wxRect *arg4 = 0 ;
28269 int arg5 = (int) 0 ;
28270 void *argp1 = 0 ;
28271 int res1 = 0 ;
28272 void *argp2 = 0 ;
28273 int res2 = 0 ;
28274 void *argp3 = 0 ;
28275 int res3 = 0 ;
28276 wxRect temp4 ;
28277 int val5 ;
28278 int ecode5 = 0 ;
28279 PyObject * obj0 = 0 ;
28280 PyObject * obj1 = 0 ;
28281 PyObject * obj2 = 0 ;
28282 PyObject * obj3 = 0 ;
28283 PyObject * obj4 = 0 ;
28284 char * kwnames[] = {
28285 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28286 };
28287
28288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28290 if (!SWIG_IsOK(res1)) {
28291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28292 }
28293 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28295 if (!SWIG_IsOK(res2)) {
28296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28297 }
28298 arg2 = reinterpret_cast< wxWindow * >(argp2);
28299 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28300 if (!SWIG_IsOK(res3)) {
28301 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
28302 }
28303 if (!argp3) {
28304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
28305 }
28306 arg3 = reinterpret_cast< wxDC * >(argp3);
28307 {
28308 arg4 = &temp4;
28309 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28310 }
28311 if (obj4) {
28312 ecode5 = SWIG_AsVal_int(obj4, &val5);
28313 if (!SWIG_IsOK(ecode5)) {
28314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
28315 }
28316 arg5 = static_cast< int >(val5);
28317 }
28318 {
28319 PyThreadState* __tstate = wxPyBeginAllowThreads();
28320 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28321 wxPyEndAllowThreads(__tstate);
28322 if (PyErr_Occurred()) SWIG_fail;
28323 }
28324 resultobj = SWIG_Py_Void();
28325 return resultobj;
28326 fail:
28327 return NULL;
28328 }
28329
28330
28331 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28332 PyObject *resultobj = 0;
28333 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28334 wxWindow *arg2 = (wxWindow *) 0 ;
28335 wxDC *arg3 = 0 ;
28336 wxRect *arg4 = 0 ;
28337 int arg5 = (int) 0 ;
28338 void *argp1 = 0 ;
28339 int res1 = 0 ;
28340 void *argp2 = 0 ;
28341 int res2 = 0 ;
28342 void *argp3 = 0 ;
28343 int res3 = 0 ;
28344 wxRect temp4 ;
28345 int val5 ;
28346 int ecode5 = 0 ;
28347 PyObject * obj0 = 0 ;
28348 PyObject * obj1 = 0 ;
28349 PyObject * obj2 = 0 ;
28350 PyObject * obj3 = 0 ;
28351 PyObject * obj4 = 0 ;
28352 char * kwnames[] = {
28353 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28354 };
28355
28356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28358 if (!SWIG_IsOK(res1)) {
28359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28360 }
28361 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28363 if (!SWIG_IsOK(res2)) {
28364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
28365 }
28366 arg2 = reinterpret_cast< wxWindow * >(argp2);
28367 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28368 if (!SWIG_IsOK(res3)) {
28369 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
28370 }
28371 if (!argp3) {
28372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
28373 }
28374 arg3 = reinterpret_cast< wxDC * >(argp3);
28375 {
28376 arg4 = &temp4;
28377 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28378 }
28379 if (obj4) {
28380 ecode5 = SWIG_AsVal_int(obj4, &val5);
28381 if (!SWIG_IsOK(ecode5)) {
28382 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
28383 }
28384 arg5 = static_cast< int >(val5);
28385 }
28386 {
28387 PyThreadState* __tstate = wxPyBeginAllowThreads();
28388 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
28389 wxPyEndAllowThreads(__tstate);
28390 if (PyErr_Occurred()) SWIG_fail;
28391 }
28392 resultobj = SWIG_Py_Void();
28393 return resultobj;
28394 fail:
28395 return NULL;
28396 }
28397
28398
28399 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28400 PyObject *resultobj = 0;
28401 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28402 wxWindow *arg2 = (wxWindow *) 0 ;
28403 wxDC *arg3 = 0 ;
28404 wxSize *arg4 = 0 ;
28405 int arg5 ;
28406 wxOrientation arg6 ;
28407 int arg7 = (int) 0 ;
28408 void *argp1 = 0 ;
28409 int res1 = 0 ;
28410 void *argp2 = 0 ;
28411 int res2 = 0 ;
28412 void *argp3 = 0 ;
28413 int res3 = 0 ;
28414 wxSize temp4 ;
28415 int val5 ;
28416 int ecode5 = 0 ;
28417 int val6 ;
28418 int ecode6 = 0 ;
28419 int val7 ;
28420 int ecode7 = 0 ;
28421 PyObject * obj0 = 0 ;
28422 PyObject * obj1 = 0 ;
28423 PyObject * obj2 = 0 ;
28424 PyObject * obj3 = 0 ;
28425 PyObject * obj4 = 0 ;
28426 PyObject * obj5 = 0 ;
28427 PyObject * obj6 = 0 ;
28428 char * kwnames[] = {
28429 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
28430 };
28431
28432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28434 if (!SWIG_IsOK(res1)) {
28435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28436 }
28437 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28438 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28439 if (!SWIG_IsOK(res2)) {
28440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
28441 }
28442 arg2 = reinterpret_cast< wxWindow * >(argp2);
28443 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28444 if (!SWIG_IsOK(res3)) {
28445 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
28446 }
28447 if (!argp3) {
28448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
28449 }
28450 arg3 = reinterpret_cast< wxDC * >(argp3);
28451 {
28452 arg4 = &temp4;
28453 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28454 }
28455 ecode5 = SWIG_AsVal_int(obj4, &val5);
28456 if (!SWIG_IsOK(ecode5)) {
28457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
28458 }
28459 arg5 = static_cast< int >(val5);
28460 ecode6 = SWIG_AsVal_int(obj5, &val6);
28461 if (!SWIG_IsOK(ecode6)) {
28462 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
28463 }
28464 arg6 = static_cast< wxOrientation >(val6);
28465 if (obj6) {
28466 ecode7 = SWIG_AsVal_int(obj6, &val7);
28467 if (!SWIG_IsOK(ecode7)) {
28468 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
28469 }
28470 arg7 = static_cast< int >(val7);
28471 }
28472 {
28473 PyThreadState* __tstate = wxPyBeginAllowThreads();
28474 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
28475 wxPyEndAllowThreads(__tstate);
28476 if (PyErr_Occurred()) SWIG_fail;
28477 }
28478 resultobj = SWIG_Py_Void();
28479 return resultobj;
28480 fail:
28481 return NULL;
28482 }
28483
28484
28485 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28486 PyObject *resultobj = 0;
28487 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28488 wxWindow *arg2 = (wxWindow *) 0 ;
28489 wxDC *arg3 = 0 ;
28490 wxRect *arg4 = 0 ;
28491 int arg5 = (int) 0 ;
28492 void *argp1 = 0 ;
28493 int res1 = 0 ;
28494 void *argp2 = 0 ;
28495 int res2 = 0 ;
28496 void *argp3 = 0 ;
28497 int res3 = 0 ;
28498 wxRect temp4 ;
28499 int val5 ;
28500 int ecode5 = 0 ;
28501 PyObject * obj0 = 0 ;
28502 PyObject * obj1 = 0 ;
28503 PyObject * obj2 = 0 ;
28504 PyObject * obj3 = 0 ;
28505 PyObject * obj4 = 0 ;
28506 char * kwnames[] = {
28507 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28508 };
28509
28510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28512 if (!SWIG_IsOK(res1)) {
28513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28514 }
28515 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28517 if (!SWIG_IsOK(res2)) {
28518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28519 }
28520 arg2 = reinterpret_cast< wxWindow * >(argp2);
28521 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28522 if (!SWIG_IsOK(res3)) {
28523 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
28524 }
28525 if (!argp3) {
28526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
28527 }
28528 arg3 = reinterpret_cast< wxDC * >(argp3);
28529 {
28530 arg4 = &temp4;
28531 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28532 }
28533 if (obj4) {
28534 ecode5 = SWIG_AsVal_int(obj4, &val5);
28535 if (!SWIG_IsOK(ecode5)) {
28536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
28537 }
28538 arg5 = static_cast< int >(val5);
28539 }
28540 {
28541 PyThreadState* __tstate = wxPyBeginAllowThreads();
28542 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28543 wxPyEndAllowThreads(__tstate);
28544 if (PyErr_Occurred()) SWIG_fail;
28545 }
28546 resultobj = SWIG_Py_Void();
28547 return resultobj;
28548 fail:
28549 return NULL;
28550 }
28551
28552
28553 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28554 PyObject *resultobj = 0;
28555 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28556 wxWindow *arg2 = (wxWindow *) 0 ;
28557 wxDC *arg3 = 0 ;
28558 wxRect *arg4 = 0 ;
28559 int arg5 = (int) 0 ;
28560 void *argp1 = 0 ;
28561 int res1 = 0 ;
28562 void *argp2 = 0 ;
28563 int res2 = 0 ;
28564 void *argp3 = 0 ;
28565 int res3 = 0 ;
28566 wxRect temp4 ;
28567 int val5 ;
28568 int ecode5 = 0 ;
28569 PyObject * obj0 = 0 ;
28570 PyObject * obj1 = 0 ;
28571 PyObject * obj2 = 0 ;
28572 PyObject * obj3 = 0 ;
28573 PyObject * obj4 = 0 ;
28574 char * kwnames[] = {
28575 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28576 };
28577
28578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28580 if (!SWIG_IsOK(res1)) {
28581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28582 }
28583 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28585 if (!SWIG_IsOK(res2)) {
28586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
28587 }
28588 arg2 = reinterpret_cast< wxWindow * >(argp2);
28589 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28590 if (!SWIG_IsOK(res3)) {
28591 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
28592 }
28593 if (!argp3) {
28594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
28595 }
28596 arg3 = reinterpret_cast< wxDC * >(argp3);
28597 {
28598 arg4 = &temp4;
28599 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28600 }
28601 if (obj4) {
28602 ecode5 = SWIG_AsVal_int(obj4, &val5);
28603 if (!SWIG_IsOK(ecode5)) {
28604 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
28605 }
28606 arg5 = static_cast< int >(val5);
28607 }
28608 {
28609 PyThreadState* __tstate = wxPyBeginAllowThreads();
28610 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
28611 wxPyEndAllowThreads(__tstate);
28612 if (PyErr_Occurred()) SWIG_fail;
28613 }
28614 resultobj = SWIG_Py_Void();
28615 return resultobj;
28616 fail:
28617 return NULL;
28618 }
28619
28620
28621 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28622 PyObject *resultobj = 0;
28623 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28624 wxWindow *arg2 = (wxWindow *) 0 ;
28625 wxDC *arg3 = 0 ;
28626 wxRect *arg4 = 0 ;
28627 int arg5 = (int) 0 ;
28628 void *argp1 = 0 ;
28629 int res1 = 0 ;
28630 void *argp2 = 0 ;
28631 int res2 = 0 ;
28632 void *argp3 = 0 ;
28633 int res3 = 0 ;
28634 wxRect temp4 ;
28635 int val5 ;
28636 int ecode5 = 0 ;
28637 PyObject * obj0 = 0 ;
28638 PyObject * obj1 = 0 ;
28639 PyObject * obj2 = 0 ;
28640 PyObject * obj3 = 0 ;
28641 PyObject * obj4 = 0 ;
28642 char * kwnames[] = {
28643 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28644 };
28645
28646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28648 if (!SWIG_IsOK(res1)) {
28649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28650 }
28651 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28653 if (!SWIG_IsOK(res2)) {
28654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
28655 }
28656 arg2 = reinterpret_cast< wxWindow * >(argp2);
28657 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28658 if (!SWIG_IsOK(res3)) {
28659 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
28660 }
28661 if (!argp3) {
28662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
28663 }
28664 arg3 = reinterpret_cast< wxDC * >(argp3);
28665 {
28666 arg4 = &temp4;
28667 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28668 }
28669 if (obj4) {
28670 ecode5 = SWIG_AsVal_int(obj4, &val5);
28671 if (!SWIG_IsOK(ecode5)) {
28672 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
28673 }
28674 arg5 = static_cast< int >(val5);
28675 }
28676 {
28677 PyThreadState* __tstate = wxPyBeginAllowThreads();
28678 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
28679 wxPyEndAllowThreads(__tstate);
28680 if (PyErr_Occurred()) SWIG_fail;
28681 }
28682 resultobj = SWIG_Py_Void();
28683 return resultobj;
28684 fail:
28685 return NULL;
28686 }
28687
28688
28689 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28690 PyObject *resultobj = 0;
28691 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28692 wxWindow *arg2 = (wxWindow *) 0 ;
28693 wxDC *arg3 = 0 ;
28694 wxRect *arg4 = 0 ;
28695 int arg5 = (int) 0 ;
28696 void *argp1 = 0 ;
28697 int res1 = 0 ;
28698 void *argp2 = 0 ;
28699 int res2 = 0 ;
28700 void *argp3 = 0 ;
28701 int res3 = 0 ;
28702 wxRect temp4 ;
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 *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28712 };
28713
28714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28716 if (!SWIG_IsOK(res1)) {
28717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28718 }
28719 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28720 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28721 if (!SWIG_IsOK(res2)) {
28722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28723 }
28724 arg2 = reinterpret_cast< wxWindow * >(argp2);
28725 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28726 if (!SWIG_IsOK(res3)) {
28727 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
28728 }
28729 if (!argp3) {
28730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
28731 }
28732 arg3 = reinterpret_cast< wxDC * >(argp3);
28733 {
28734 arg4 = &temp4;
28735 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28736 }
28737 if (obj4) {
28738 ecode5 = SWIG_AsVal_int(obj4, &val5);
28739 if (!SWIG_IsOK(ecode5)) {
28740 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
28741 }
28742 arg5 = static_cast< int >(val5);
28743 }
28744 {
28745 PyThreadState* __tstate = wxPyBeginAllowThreads();
28746 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28747 wxPyEndAllowThreads(__tstate);
28748 if (PyErr_Occurred()) SWIG_fail;
28749 }
28750 resultobj = SWIG_Py_Void();
28751 return resultobj;
28752 fail:
28753 return NULL;
28754 }
28755
28756
28757 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28758 PyObject *resultobj = 0;
28759 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28760 wxWindow *arg2 = (wxWindow *) 0 ;
28761 wxDC *arg3 = 0 ;
28762 wxRect *arg4 = 0 ;
28763 int arg5 = (int) 0 ;
28764 void *argp1 = 0 ;
28765 int res1 = 0 ;
28766 void *argp2 = 0 ;
28767 int res2 = 0 ;
28768 void *argp3 = 0 ;
28769 int res3 = 0 ;
28770 wxRect temp4 ;
28771 int val5 ;
28772 int ecode5 = 0 ;
28773 PyObject * obj0 = 0 ;
28774 PyObject * obj1 = 0 ;
28775 PyObject * obj2 = 0 ;
28776 PyObject * obj3 = 0 ;
28777 PyObject * obj4 = 0 ;
28778 char * kwnames[] = {
28779 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28780 };
28781
28782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28784 if (!SWIG_IsOK(res1)) {
28785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28786 }
28787 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28788 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28789 if (!SWIG_IsOK(res2)) {
28790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
28791 }
28792 arg2 = reinterpret_cast< wxWindow * >(argp2);
28793 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28794 if (!SWIG_IsOK(res3)) {
28795 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28796 }
28797 if (!argp3) {
28798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28799 }
28800 arg3 = reinterpret_cast< wxDC * >(argp3);
28801 {
28802 arg4 = &temp4;
28803 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28804 }
28805 if (obj4) {
28806 ecode5 = SWIG_AsVal_int(obj4, &val5);
28807 if (!SWIG_IsOK(ecode5)) {
28808 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
28809 }
28810 arg5 = static_cast< int >(val5);
28811 }
28812 {
28813 PyThreadState* __tstate = wxPyBeginAllowThreads();
28814 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
28815 wxPyEndAllowThreads(__tstate);
28816 if (PyErr_Occurred()) SWIG_fail;
28817 }
28818 resultobj = SWIG_Py_Void();
28819 return resultobj;
28820 fail:
28821 return NULL;
28822 }
28823
28824
28825 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28826 PyObject *resultobj = 0;
28827 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28828 wxWindow *arg2 = (wxWindow *) 0 ;
28829 SwigValueWrapper<wxSplitterRenderParams > result;
28830 void *argp1 = 0 ;
28831 int res1 = 0 ;
28832 void *argp2 = 0 ;
28833 int res2 = 0 ;
28834 PyObject * obj0 = 0 ;
28835 PyObject * obj1 = 0 ;
28836 char * kwnames[] = {
28837 (char *) "self",(char *) "win", NULL
28838 };
28839
28840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
28841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28842 if (!SWIG_IsOK(res1)) {
28843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28844 }
28845 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28846 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28847 if (!SWIG_IsOK(res2)) {
28848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
28849 }
28850 arg2 = reinterpret_cast< wxWindow * >(argp2);
28851 {
28852 PyThreadState* __tstate = wxPyBeginAllowThreads();
28853 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
28854 wxPyEndAllowThreads(__tstate);
28855 if (PyErr_Occurred()) SWIG_fail;
28856 }
28857 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
28858 return resultobj;
28859 fail:
28860 return NULL;
28861 }
28862
28863
28864 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28865 PyObject *resultobj = 0;
28866 wxRendererNative *result = 0 ;
28867
28868 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
28869 {
28870 if (!wxPyCheckForApp()) SWIG_fail;
28871 PyThreadState* __tstate = wxPyBeginAllowThreads();
28872 {
28873 wxRendererNative &_result_ref = wxRendererNative::Get();
28874 result = (wxRendererNative *) &_result_ref;
28875 }
28876 wxPyEndAllowThreads(__tstate);
28877 if (PyErr_Occurred()) SWIG_fail;
28878 }
28879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28880 return resultobj;
28881 fail:
28882 return NULL;
28883 }
28884
28885
28886 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28887 PyObject *resultobj = 0;
28888 wxRendererNative *result = 0 ;
28889
28890 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
28891 {
28892 if (!wxPyCheckForApp()) SWIG_fail;
28893 PyThreadState* __tstate = wxPyBeginAllowThreads();
28894 {
28895 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
28896 result = (wxRendererNative *) &_result_ref;
28897 }
28898 wxPyEndAllowThreads(__tstate);
28899 if (PyErr_Occurred()) SWIG_fail;
28900 }
28901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28902 return resultobj;
28903 fail:
28904 return NULL;
28905 }
28906
28907
28908 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28909 PyObject *resultobj = 0;
28910 wxRendererNative *result = 0 ;
28911
28912 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
28913 {
28914 if (!wxPyCheckForApp()) SWIG_fail;
28915 PyThreadState* __tstate = wxPyBeginAllowThreads();
28916 {
28917 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
28918 result = (wxRendererNative *) &_result_ref;
28919 }
28920 wxPyEndAllowThreads(__tstate);
28921 if (PyErr_Occurred()) SWIG_fail;
28922 }
28923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28924 return resultobj;
28925 fail:
28926 return NULL;
28927 }
28928
28929
28930 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28931 PyObject *resultobj = 0;
28932 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28933 wxRendererNative *result = 0 ;
28934 void *argp1 = 0 ;
28935 int res1 = 0 ;
28936 PyObject * obj0 = 0 ;
28937 char * kwnames[] = {
28938 (char *) "renderer", NULL
28939 };
28940
28941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
28942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28943 if (!SWIG_IsOK(res1)) {
28944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28945 }
28946 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28947 {
28948 if (!wxPyCheckForApp()) SWIG_fail;
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 result = (wxRendererNative *)wxRendererNative::Set(arg1);
28951 wxPyEndAllowThreads(__tstate);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28955 return resultobj;
28956 fail:
28957 return NULL;
28958 }
28959
28960
28961 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28962 PyObject *resultobj = 0;
28963 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28964 SwigValueWrapper<wxRendererVersion > result;
28965 void *argp1 = 0 ;
28966 int res1 = 0 ;
28967 PyObject *swig_obj[1] ;
28968
28969 if (!args) SWIG_fail;
28970 swig_obj[0] = args;
28971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28972 if (!SWIG_IsOK(res1)) {
28973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
28974 }
28975 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28976 {
28977 PyThreadState* __tstate = wxPyBeginAllowThreads();
28978 result = ((wxRendererNative const *)arg1)->GetVersion();
28979 wxPyEndAllowThreads(__tstate);
28980 if (PyErr_Occurred()) SWIG_fail;
28981 }
28982 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
28983 return resultobj;
28984 fail:
28985 return NULL;
28986 }
28987
28988
28989 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28990 PyObject *obj;
28991 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28992 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
28993 return SWIG_Py_Void();
28994 }
28995
28996 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28997 PyObject *resultobj = 0;
28998 wxPseudoDC *result = 0 ;
28999
29000 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
29001 {
29002 PyThreadState* __tstate = wxPyBeginAllowThreads();
29003 result = (wxPseudoDC *)new wxPseudoDC();
29004 wxPyEndAllowThreads(__tstate);
29005 if (PyErr_Occurred()) SWIG_fail;
29006 }
29007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
29008 return resultobj;
29009 fail:
29010 return NULL;
29011 }
29012
29013
29014 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29015 PyObject *resultobj = 0;
29016 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29017 void *argp1 = 0 ;
29018 int res1 = 0 ;
29019 PyObject *swig_obj[1] ;
29020
29021 if (!args) SWIG_fail;
29022 swig_obj[0] = args;
29023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29024 if (!SWIG_IsOK(res1)) {
29025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29026 }
29027 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29028 {
29029 PyThreadState* __tstate = wxPyBeginAllowThreads();
29030 (arg1)->BeginDrawing();
29031 wxPyEndAllowThreads(__tstate);
29032 if (PyErr_Occurred()) SWIG_fail;
29033 }
29034 resultobj = SWIG_Py_Void();
29035 return resultobj;
29036 fail:
29037 return NULL;
29038 }
29039
29040
29041 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29042 PyObject *resultobj = 0;
29043 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29044 void *argp1 = 0 ;
29045 int res1 = 0 ;
29046 PyObject *swig_obj[1] ;
29047
29048 if (!args) SWIG_fail;
29049 swig_obj[0] = args;
29050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29051 if (!SWIG_IsOK(res1)) {
29052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29053 }
29054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29055 {
29056 PyThreadState* __tstate = wxPyBeginAllowThreads();
29057 (arg1)->EndDrawing();
29058 wxPyEndAllowThreads(__tstate);
29059 if (PyErr_Occurred()) SWIG_fail;
29060 }
29061 resultobj = SWIG_Py_Void();
29062 return resultobj;
29063 fail:
29064 return NULL;
29065 }
29066
29067
29068 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29069 PyObject *resultobj = 0;
29070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29071 void *argp1 = 0 ;
29072 int res1 = 0 ;
29073 PyObject *swig_obj[1] ;
29074
29075 if (!args) SWIG_fail;
29076 swig_obj[0] = args;
29077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
29078 if (!SWIG_IsOK(res1)) {
29079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29080 }
29081 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29082 {
29083 PyThreadState* __tstate = wxPyBeginAllowThreads();
29084 delete arg1;
29085
29086 wxPyEndAllowThreads(__tstate);
29087 if (PyErr_Occurred()) SWIG_fail;
29088 }
29089 resultobj = SWIG_Py_Void();
29090 return resultobj;
29091 fail:
29092 return NULL;
29093 }
29094
29095
29096 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29097 PyObject *resultobj = 0;
29098 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29099 void *argp1 = 0 ;
29100 int res1 = 0 ;
29101 PyObject *swig_obj[1] ;
29102
29103 if (!args) SWIG_fail;
29104 swig_obj[0] = args;
29105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29106 if (!SWIG_IsOK(res1)) {
29107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29108 }
29109 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29110 {
29111 PyThreadState* __tstate = wxPyBeginAllowThreads();
29112 (arg1)->RemoveAll();
29113 wxPyEndAllowThreads(__tstate);
29114 if (PyErr_Occurred()) SWIG_fail;
29115 }
29116 resultobj = SWIG_Py_Void();
29117 return resultobj;
29118 fail:
29119 return NULL;
29120 }
29121
29122
29123 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29124 PyObject *resultobj = 0;
29125 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29126 int result;
29127 void *argp1 = 0 ;
29128 int res1 = 0 ;
29129 PyObject *swig_obj[1] ;
29130
29131 if (!args) SWIG_fail;
29132 swig_obj[0] = args;
29133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29134 if (!SWIG_IsOK(res1)) {
29135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29136 }
29137 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29138 {
29139 PyThreadState* __tstate = wxPyBeginAllowThreads();
29140 result = (int)(arg1)->GetLen();
29141 wxPyEndAllowThreads(__tstate);
29142 if (PyErr_Occurred()) SWIG_fail;
29143 }
29144 resultobj = SWIG_From_int(static_cast< int >(result));
29145 return resultobj;
29146 fail:
29147 return NULL;
29148 }
29149
29150
29151 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29152 PyObject *resultobj = 0;
29153 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29154 int arg2 ;
29155 void *argp1 = 0 ;
29156 int res1 = 0 ;
29157 int val2 ;
29158 int ecode2 = 0 ;
29159 PyObject * obj0 = 0 ;
29160 PyObject * obj1 = 0 ;
29161 char * kwnames[] = {
29162 (char *) "self",(char *) "id", NULL
29163 };
29164
29165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
29166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29167 if (!SWIG_IsOK(res1)) {
29168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29169 }
29170 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29171 ecode2 = SWIG_AsVal_int(obj1, &val2);
29172 if (!SWIG_IsOK(ecode2)) {
29173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
29174 }
29175 arg2 = static_cast< int >(val2);
29176 {
29177 PyThreadState* __tstate = wxPyBeginAllowThreads();
29178 (arg1)->SetId(arg2);
29179 wxPyEndAllowThreads(__tstate);
29180 if (PyErr_Occurred()) SWIG_fail;
29181 }
29182 resultobj = SWIG_Py_Void();
29183 return resultobj;
29184 fail:
29185 return NULL;
29186 }
29187
29188
29189 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29190 PyObject *resultobj = 0;
29191 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29192 int arg2 ;
29193 void *argp1 = 0 ;
29194 int res1 = 0 ;
29195 int val2 ;
29196 int ecode2 = 0 ;
29197 PyObject * obj0 = 0 ;
29198 PyObject * obj1 = 0 ;
29199 char * kwnames[] = {
29200 (char *) "self",(char *) "id", NULL
29201 };
29202
29203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
29204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29205 if (!SWIG_IsOK(res1)) {
29206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29207 }
29208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29209 ecode2 = SWIG_AsVal_int(obj1, &val2);
29210 if (!SWIG_IsOK(ecode2)) {
29211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
29212 }
29213 arg2 = static_cast< int >(val2);
29214 {
29215 PyThreadState* __tstate = wxPyBeginAllowThreads();
29216 (arg1)->ClearId(arg2);
29217 wxPyEndAllowThreads(__tstate);
29218 if (PyErr_Occurred()) SWIG_fail;
29219 }
29220 resultobj = SWIG_Py_Void();
29221 return resultobj;
29222 fail:
29223 return NULL;
29224 }
29225
29226
29227 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29228 PyObject *resultobj = 0;
29229 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29230 int arg2 ;
29231 void *argp1 = 0 ;
29232 int res1 = 0 ;
29233 int val2 ;
29234 int ecode2 = 0 ;
29235 PyObject * obj0 = 0 ;
29236 PyObject * obj1 = 0 ;
29237 char * kwnames[] = {
29238 (char *) "self",(char *) "id", NULL
29239 };
29240
29241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
29242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29243 if (!SWIG_IsOK(res1)) {
29244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29245 }
29246 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29247 ecode2 = SWIG_AsVal_int(obj1, &val2);
29248 if (!SWIG_IsOK(ecode2)) {
29249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
29250 }
29251 arg2 = static_cast< int >(val2);
29252 {
29253 PyThreadState* __tstate = wxPyBeginAllowThreads();
29254 (arg1)->RemoveId(arg2);
29255 wxPyEndAllowThreads(__tstate);
29256 if (PyErr_Occurred()) SWIG_fail;
29257 }
29258 resultobj = SWIG_Py_Void();
29259 return resultobj;
29260 fail:
29261 return NULL;
29262 }
29263
29264
29265 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29266 PyObject *resultobj = 0;
29267 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29268 int arg2 ;
29269 int arg3 ;
29270 int arg4 ;
29271 void *argp1 = 0 ;
29272 int res1 = 0 ;
29273 int val2 ;
29274 int ecode2 = 0 ;
29275 int val3 ;
29276 int ecode3 = 0 ;
29277 int val4 ;
29278 int ecode4 = 0 ;
29279 PyObject * obj0 = 0 ;
29280 PyObject * obj1 = 0 ;
29281 PyObject * obj2 = 0 ;
29282 PyObject * obj3 = 0 ;
29283 char * kwnames[] = {
29284 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
29285 };
29286
29287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29289 if (!SWIG_IsOK(res1)) {
29290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29291 }
29292 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29293 ecode2 = SWIG_AsVal_int(obj1, &val2);
29294 if (!SWIG_IsOK(ecode2)) {
29295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
29296 }
29297 arg2 = static_cast< int >(val2);
29298 ecode3 = SWIG_AsVal_int(obj2, &val3);
29299 if (!SWIG_IsOK(ecode3)) {
29300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
29301 }
29302 arg3 = static_cast< int >(val3);
29303 ecode4 = SWIG_AsVal_int(obj3, &val4);
29304 if (!SWIG_IsOK(ecode4)) {
29305 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
29306 }
29307 arg4 = static_cast< int >(val4);
29308 {
29309 PyThreadState* __tstate = wxPyBeginAllowThreads();
29310 (arg1)->TranslateId(arg2,arg3,arg4);
29311 wxPyEndAllowThreads(__tstate);
29312 if (PyErr_Occurred()) SWIG_fail;
29313 }
29314 resultobj = SWIG_Py_Void();
29315 return resultobj;
29316 fail:
29317 return NULL;
29318 }
29319
29320
29321 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29322 PyObject *resultobj = 0;
29323 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29324 int arg2 ;
29325 wxDC *arg3 = (wxDC *) 0 ;
29326 void *argp1 = 0 ;
29327 int res1 = 0 ;
29328 int val2 ;
29329 int ecode2 = 0 ;
29330 void *argp3 = 0 ;
29331 int res3 = 0 ;
29332 PyObject * obj0 = 0 ;
29333 PyObject * obj1 = 0 ;
29334 PyObject * obj2 = 0 ;
29335 char * kwnames[] = {
29336 (char *) "self",(char *) "id",(char *) "dc", NULL
29337 };
29338
29339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29341 if (!SWIG_IsOK(res1)) {
29342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29343 }
29344 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29345 ecode2 = SWIG_AsVal_int(obj1, &val2);
29346 if (!SWIG_IsOK(ecode2)) {
29347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
29348 }
29349 arg2 = static_cast< int >(val2);
29350 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
29351 if (!SWIG_IsOK(res3)) {
29352 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
29353 }
29354 arg3 = reinterpret_cast< wxDC * >(argp3);
29355 {
29356 PyThreadState* __tstate = wxPyBeginAllowThreads();
29357 (arg1)->DrawIdToDC(arg2,arg3);
29358 wxPyEndAllowThreads(__tstate);
29359 if (PyErr_Occurred()) SWIG_fail;
29360 }
29361 resultobj = SWIG_Py_Void();
29362 return resultobj;
29363 fail:
29364 return NULL;
29365 }
29366
29367
29368 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29369 PyObject *resultobj = 0;
29370 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29371 int arg2 ;
29372 wxRect *arg3 = 0 ;
29373 void *argp1 = 0 ;
29374 int res1 = 0 ;
29375 int val2 ;
29376 int ecode2 = 0 ;
29377 wxRect temp3 ;
29378 PyObject * obj0 = 0 ;
29379 PyObject * obj1 = 0 ;
29380 PyObject * obj2 = 0 ;
29381 char * kwnames[] = {
29382 (char *) "self",(char *) "id",(char *) "rect", NULL
29383 };
29384
29385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29387 if (!SWIG_IsOK(res1)) {
29388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29389 }
29390 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29391 ecode2 = SWIG_AsVal_int(obj1, &val2);
29392 if (!SWIG_IsOK(ecode2)) {
29393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
29394 }
29395 arg2 = static_cast< int >(val2);
29396 {
29397 arg3 = &temp3;
29398 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29399 }
29400 {
29401 PyThreadState* __tstate = wxPyBeginAllowThreads();
29402 (arg1)->SetIdBounds(arg2,*arg3);
29403 wxPyEndAllowThreads(__tstate);
29404 if (PyErr_Occurred()) SWIG_fail;
29405 }
29406 resultobj = SWIG_Py_Void();
29407 return resultobj;
29408 fail:
29409 return NULL;
29410 }
29411
29412
29413 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29414 PyObject *resultobj = 0;
29415 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29416 int arg2 ;
29417 wxRect result;
29418 void *argp1 = 0 ;
29419 int res1 = 0 ;
29420 int val2 ;
29421 int ecode2 = 0 ;
29422 PyObject * obj0 = 0 ;
29423 PyObject * obj1 = 0 ;
29424 char * kwnames[] = {
29425 (char *) "self",(char *) "id", NULL
29426 };
29427
29428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
29429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29430 if (!SWIG_IsOK(res1)) {
29431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29432 }
29433 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29434 ecode2 = SWIG_AsVal_int(obj1, &val2);
29435 if (!SWIG_IsOK(ecode2)) {
29436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
29437 }
29438 arg2 = static_cast< int >(val2);
29439 {
29440 PyThreadState* __tstate = wxPyBeginAllowThreads();
29441 result = wxPseudoDC_GetIdBounds(arg1,arg2);
29442 wxPyEndAllowThreads(__tstate);
29443 if (PyErr_Occurred()) SWIG_fail;
29444 }
29445 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29446 return resultobj;
29447 fail:
29448 return NULL;
29449 }
29450
29451
29452 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29453 PyObject *resultobj = 0;
29454 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29455 wxDC *arg2 = (wxDC *) 0 ;
29456 wxRect *arg3 = 0 ;
29457 void *argp1 = 0 ;
29458 int res1 = 0 ;
29459 void *argp2 = 0 ;
29460 int res2 = 0 ;
29461 wxRect temp3 ;
29462 PyObject * obj0 = 0 ;
29463 PyObject * obj1 = 0 ;
29464 PyObject * obj2 = 0 ;
29465 char * kwnames[] = {
29466 (char *) "self",(char *) "dc",(char *) "rect", NULL
29467 };
29468
29469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29471 if (!SWIG_IsOK(res1)) {
29472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29473 }
29474 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29475 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
29476 if (!SWIG_IsOK(res2)) {
29477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
29478 }
29479 arg2 = reinterpret_cast< wxDC * >(argp2);
29480 {
29481 arg3 = &temp3;
29482 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29483 }
29484 {
29485 PyThreadState* __tstate = wxPyBeginAllowThreads();
29486 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
29487 wxPyEndAllowThreads(__tstate);
29488 if (PyErr_Occurred()) SWIG_fail;
29489 }
29490 resultobj = SWIG_Py_Void();
29491 return resultobj;
29492 fail:
29493 return NULL;
29494 }
29495
29496
29497 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29498 PyObject *resultobj = 0;
29499 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29500 wxDC *arg2 = (wxDC *) 0 ;
29501 wxRegion *arg3 = 0 ;
29502 void *argp1 = 0 ;
29503 int res1 = 0 ;
29504 void *argp2 = 0 ;
29505 int res2 = 0 ;
29506 void *argp3 = 0 ;
29507 int res3 = 0 ;
29508 PyObject * obj0 = 0 ;
29509 PyObject * obj1 = 0 ;
29510 PyObject * obj2 = 0 ;
29511 char * kwnames[] = {
29512 (char *) "self",(char *) "dc",(char *) "region", NULL
29513 };
29514
29515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29517 if (!SWIG_IsOK(res1)) {
29518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29519 }
29520 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29521 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
29522 if (!SWIG_IsOK(res2)) {
29523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
29524 }
29525 arg2 = reinterpret_cast< wxDC * >(argp2);
29526 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
29527 if (!SWIG_IsOK(res3)) {
29528 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
29529 }
29530 if (!argp3) {
29531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
29532 }
29533 arg3 = reinterpret_cast< wxRegion * >(argp3);
29534 {
29535 PyThreadState* __tstate = wxPyBeginAllowThreads();
29536 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
29537 wxPyEndAllowThreads(__tstate);
29538 if (PyErr_Occurred()) SWIG_fail;
29539 }
29540 resultobj = SWIG_Py_Void();
29541 return resultobj;
29542 fail:
29543 return NULL;
29544 }
29545
29546
29547 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29548 PyObject *resultobj = 0;
29549 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29550 wxDC *arg2 = (wxDC *) 0 ;
29551 void *argp1 = 0 ;
29552 int res1 = 0 ;
29553 void *argp2 = 0 ;
29554 int res2 = 0 ;
29555 PyObject * obj0 = 0 ;
29556 PyObject * obj1 = 0 ;
29557 char * kwnames[] = {
29558 (char *) "self",(char *) "dc", NULL
29559 };
29560
29561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
29562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29563 if (!SWIG_IsOK(res1)) {
29564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29565 }
29566 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
29568 if (!SWIG_IsOK(res2)) {
29569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
29570 }
29571 arg2 = reinterpret_cast< wxDC * >(argp2);
29572 {
29573 PyThreadState* __tstate = wxPyBeginAllowThreads();
29574 (arg1)->DrawToDC(arg2);
29575 wxPyEndAllowThreads(__tstate);
29576 if (PyErr_Occurred()) SWIG_fail;
29577 }
29578 resultobj = SWIG_Py_Void();
29579 return resultobj;
29580 fail:
29581 return NULL;
29582 }
29583
29584
29585 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29586 PyObject *resultobj = 0;
29587 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29588 int arg2 ;
29589 int arg3 ;
29590 wxColour *arg4 = 0 ;
29591 int arg5 = (int) wxFLOOD_SURFACE ;
29592 void *argp1 = 0 ;
29593 int res1 = 0 ;
29594 int val2 ;
29595 int ecode2 = 0 ;
29596 int val3 ;
29597 int ecode3 = 0 ;
29598 wxColour temp4 ;
29599 int val5 ;
29600 int ecode5 = 0 ;
29601 PyObject * obj0 = 0 ;
29602 PyObject * obj1 = 0 ;
29603 PyObject * obj2 = 0 ;
29604 PyObject * obj3 = 0 ;
29605 PyObject * obj4 = 0 ;
29606 char * kwnames[] = {
29607 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
29608 };
29609
29610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29612 if (!SWIG_IsOK(res1)) {
29613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29614 }
29615 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29616 ecode2 = SWIG_AsVal_int(obj1, &val2);
29617 if (!SWIG_IsOK(ecode2)) {
29618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
29619 }
29620 arg2 = static_cast< int >(val2);
29621 ecode3 = SWIG_AsVal_int(obj2, &val3);
29622 if (!SWIG_IsOK(ecode3)) {
29623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
29624 }
29625 arg3 = static_cast< int >(val3);
29626 {
29627 arg4 = &temp4;
29628 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29629 }
29630 if (obj4) {
29631 ecode5 = SWIG_AsVal_int(obj4, &val5);
29632 if (!SWIG_IsOK(ecode5)) {
29633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
29634 }
29635 arg5 = static_cast< int >(val5);
29636 }
29637 {
29638 PyThreadState* __tstate = wxPyBeginAllowThreads();
29639 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
29640 wxPyEndAllowThreads(__tstate);
29641 if (PyErr_Occurred()) SWIG_fail;
29642 }
29643 resultobj = SWIG_Py_Void();
29644 return resultobj;
29645 fail:
29646 return NULL;
29647 }
29648
29649
29650 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29651 PyObject *resultobj = 0;
29652 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29653 wxPoint *arg2 = 0 ;
29654 wxColour *arg3 = 0 ;
29655 int arg4 = (int) wxFLOOD_SURFACE ;
29656 void *argp1 = 0 ;
29657 int res1 = 0 ;
29658 wxPoint temp2 ;
29659 wxColour temp3 ;
29660 int val4 ;
29661 int ecode4 = 0 ;
29662 PyObject * obj0 = 0 ;
29663 PyObject * obj1 = 0 ;
29664 PyObject * obj2 = 0 ;
29665 PyObject * obj3 = 0 ;
29666 char * kwnames[] = {
29667 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
29668 };
29669
29670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29672 if (!SWIG_IsOK(res1)) {
29673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29674 }
29675 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29676 {
29677 arg2 = &temp2;
29678 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29679 }
29680 {
29681 arg3 = &temp3;
29682 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29683 }
29684 if (obj3) {
29685 ecode4 = SWIG_AsVal_int(obj3, &val4);
29686 if (!SWIG_IsOK(ecode4)) {
29687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
29688 }
29689 arg4 = static_cast< int >(val4);
29690 }
29691 {
29692 PyThreadState* __tstate = wxPyBeginAllowThreads();
29693 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
29694 wxPyEndAllowThreads(__tstate);
29695 if (PyErr_Occurred()) SWIG_fail;
29696 }
29697 resultobj = SWIG_Py_Void();
29698 return resultobj;
29699 fail:
29700 return NULL;
29701 }
29702
29703
29704 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29705 PyObject *resultobj = 0;
29706 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29707 int arg2 ;
29708 int arg3 ;
29709 int arg4 ;
29710 int arg5 ;
29711 void *argp1 = 0 ;
29712 int res1 = 0 ;
29713 int val2 ;
29714 int ecode2 = 0 ;
29715 int val3 ;
29716 int ecode3 = 0 ;
29717 int val4 ;
29718 int ecode4 = 0 ;
29719 int val5 ;
29720 int ecode5 = 0 ;
29721 PyObject * obj0 = 0 ;
29722 PyObject * obj1 = 0 ;
29723 PyObject * obj2 = 0 ;
29724 PyObject * obj3 = 0 ;
29725 PyObject * obj4 = 0 ;
29726 char * kwnames[] = {
29727 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29728 };
29729
29730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29732 if (!SWIG_IsOK(res1)) {
29733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29734 }
29735 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29736 ecode2 = SWIG_AsVal_int(obj1, &val2);
29737 if (!SWIG_IsOK(ecode2)) {
29738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
29739 }
29740 arg2 = static_cast< int >(val2);
29741 ecode3 = SWIG_AsVal_int(obj2, &val3);
29742 if (!SWIG_IsOK(ecode3)) {
29743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
29744 }
29745 arg3 = static_cast< int >(val3);
29746 ecode4 = SWIG_AsVal_int(obj3, &val4);
29747 if (!SWIG_IsOK(ecode4)) {
29748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
29749 }
29750 arg4 = static_cast< int >(val4);
29751 ecode5 = SWIG_AsVal_int(obj4, &val5);
29752 if (!SWIG_IsOK(ecode5)) {
29753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
29754 }
29755 arg5 = static_cast< int >(val5);
29756 {
29757 PyThreadState* __tstate = wxPyBeginAllowThreads();
29758 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
29759 wxPyEndAllowThreads(__tstate);
29760 if (PyErr_Occurred()) SWIG_fail;
29761 }
29762 resultobj = SWIG_Py_Void();
29763 return resultobj;
29764 fail:
29765 return NULL;
29766 }
29767
29768
29769 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29770 PyObject *resultobj = 0;
29771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29772 wxPoint *arg2 = 0 ;
29773 wxPoint *arg3 = 0 ;
29774 void *argp1 = 0 ;
29775 int res1 = 0 ;
29776 wxPoint temp2 ;
29777 wxPoint temp3 ;
29778 PyObject * obj0 = 0 ;
29779 PyObject * obj1 = 0 ;
29780 PyObject * obj2 = 0 ;
29781 char * kwnames[] = {
29782 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
29783 };
29784
29785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29787 if (!SWIG_IsOK(res1)) {
29788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29789 }
29790 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29791 {
29792 arg2 = &temp2;
29793 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29794 }
29795 {
29796 arg3 = &temp3;
29797 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29798 }
29799 {
29800 PyThreadState* __tstate = wxPyBeginAllowThreads();
29801 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
29802 wxPyEndAllowThreads(__tstate);
29803 if (PyErr_Occurred()) SWIG_fail;
29804 }
29805 resultobj = SWIG_Py_Void();
29806 return resultobj;
29807 fail:
29808 return NULL;
29809 }
29810
29811
29812 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29813 PyObject *resultobj = 0;
29814 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29815 int arg2 ;
29816 int arg3 ;
29817 void *argp1 = 0 ;
29818 int res1 = 0 ;
29819 int val2 ;
29820 int ecode2 = 0 ;
29821 int val3 ;
29822 int ecode3 = 0 ;
29823 PyObject * obj0 = 0 ;
29824 PyObject * obj1 = 0 ;
29825 PyObject * obj2 = 0 ;
29826 char * kwnames[] = {
29827 (char *) "self",(char *) "x",(char *) "y", NULL
29828 };
29829
29830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29832 if (!SWIG_IsOK(res1)) {
29833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29834 }
29835 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29836 ecode2 = SWIG_AsVal_int(obj1, &val2);
29837 if (!SWIG_IsOK(ecode2)) {
29838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
29839 }
29840 arg2 = static_cast< int >(val2);
29841 ecode3 = SWIG_AsVal_int(obj2, &val3);
29842 if (!SWIG_IsOK(ecode3)) {
29843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
29844 }
29845 arg3 = static_cast< int >(val3);
29846 {
29847 PyThreadState* __tstate = wxPyBeginAllowThreads();
29848 (arg1)->CrossHair(arg2,arg3);
29849 wxPyEndAllowThreads(__tstate);
29850 if (PyErr_Occurred()) SWIG_fail;
29851 }
29852 resultobj = SWIG_Py_Void();
29853 return resultobj;
29854 fail:
29855 return NULL;
29856 }
29857
29858
29859 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29860 PyObject *resultobj = 0;
29861 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29862 wxPoint *arg2 = 0 ;
29863 void *argp1 = 0 ;
29864 int res1 = 0 ;
29865 wxPoint temp2 ;
29866 PyObject * obj0 = 0 ;
29867 PyObject * obj1 = 0 ;
29868 char * kwnames[] = {
29869 (char *) "self",(char *) "pt", NULL
29870 };
29871
29872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29874 if (!SWIG_IsOK(res1)) {
29875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29876 }
29877 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29878 {
29879 arg2 = &temp2;
29880 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29881 }
29882 {
29883 PyThreadState* __tstate = wxPyBeginAllowThreads();
29884 (arg1)->CrossHair((wxPoint const &)*arg2);
29885 wxPyEndAllowThreads(__tstate);
29886 if (PyErr_Occurred()) SWIG_fail;
29887 }
29888 resultobj = SWIG_Py_Void();
29889 return resultobj;
29890 fail:
29891 return NULL;
29892 }
29893
29894
29895 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29896 PyObject *resultobj = 0;
29897 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29898 int arg2 ;
29899 int arg3 ;
29900 int arg4 ;
29901 int arg5 ;
29902 int arg6 ;
29903 int arg7 ;
29904 void *argp1 = 0 ;
29905 int res1 = 0 ;
29906 int val2 ;
29907 int ecode2 = 0 ;
29908 int val3 ;
29909 int ecode3 = 0 ;
29910 int val4 ;
29911 int ecode4 = 0 ;
29912 int val5 ;
29913 int ecode5 = 0 ;
29914 int val6 ;
29915 int ecode6 = 0 ;
29916 int val7 ;
29917 int ecode7 = 0 ;
29918 PyObject * obj0 = 0 ;
29919 PyObject * obj1 = 0 ;
29920 PyObject * obj2 = 0 ;
29921 PyObject * obj3 = 0 ;
29922 PyObject * obj4 = 0 ;
29923 PyObject * obj5 = 0 ;
29924 PyObject * obj6 = 0 ;
29925 char * kwnames[] = {
29926 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
29927 };
29928
29929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29931 if (!SWIG_IsOK(res1)) {
29932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29933 }
29934 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29935 ecode2 = SWIG_AsVal_int(obj1, &val2);
29936 if (!SWIG_IsOK(ecode2)) {
29937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
29938 }
29939 arg2 = static_cast< int >(val2);
29940 ecode3 = SWIG_AsVal_int(obj2, &val3);
29941 if (!SWIG_IsOK(ecode3)) {
29942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
29943 }
29944 arg3 = static_cast< int >(val3);
29945 ecode4 = SWIG_AsVal_int(obj3, &val4);
29946 if (!SWIG_IsOK(ecode4)) {
29947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
29948 }
29949 arg4 = static_cast< int >(val4);
29950 ecode5 = SWIG_AsVal_int(obj4, &val5);
29951 if (!SWIG_IsOK(ecode5)) {
29952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
29953 }
29954 arg5 = static_cast< int >(val5);
29955 ecode6 = SWIG_AsVal_int(obj5, &val6);
29956 if (!SWIG_IsOK(ecode6)) {
29957 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
29958 }
29959 arg6 = static_cast< int >(val6);
29960 ecode7 = SWIG_AsVal_int(obj6, &val7);
29961 if (!SWIG_IsOK(ecode7)) {
29962 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
29963 }
29964 arg7 = static_cast< int >(val7);
29965 {
29966 PyThreadState* __tstate = wxPyBeginAllowThreads();
29967 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
29968 wxPyEndAllowThreads(__tstate);
29969 if (PyErr_Occurred()) SWIG_fail;
29970 }
29971 resultobj = SWIG_Py_Void();
29972 return resultobj;
29973 fail:
29974 return NULL;
29975 }
29976
29977
29978 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29979 PyObject *resultobj = 0;
29980 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29981 wxPoint *arg2 = 0 ;
29982 wxPoint *arg3 = 0 ;
29983 wxPoint *arg4 = 0 ;
29984 void *argp1 = 0 ;
29985 int res1 = 0 ;
29986 wxPoint temp2 ;
29987 wxPoint temp3 ;
29988 wxPoint temp4 ;
29989 PyObject * obj0 = 0 ;
29990 PyObject * obj1 = 0 ;
29991 PyObject * obj2 = 0 ;
29992 PyObject * obj3 = 0 ;
29993 char * kwnames[] = {
29994 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
29995 };
29996
29997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29999 if (!SWIG_IsOK(res1)) {
30000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30001 }
30002 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30003 {
30004 arg2 = &temp2;
30005 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30006 }
30007 {
30008 arg3 = &temp3;
30009 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30010 }
30011 {
30012 arg4 = &temp4;
30013 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
30014 }
30015 {
30016 PyThreadState* __tstate = wxPyBeginAllowThreads();
30017 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
30018 wxPyEndAllowThreads(__tstate);
30019 if (PyErr_Occurred()) SWIG_fail;
30020 }
30021 resultobj = SWIG_Py_Void();
30022 return resultobj;
30023 fail:
30024 return NULL;
30025 }
30026
30027
30028 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30029 PyObject *resultobj = 0;
30030 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30031 int arg2 ;
30032 int arg3 ;
30033 int arg4 ;
30034 int arg5 ;
30035 void *argp1 = 0 ;
30036 int res1 = 0 ;
30037 int val2 ;
30038 int ecode2 = 0 ;
30039 int val3 ;
30040 int ecode3 = 0 ;
30041 int val4 ;
30042 int ecode4 = 0 ;
30043 int val5 ;
30044 int ecode5 = 0 ;
30045 PyObject * obj0 = 0 ;
30046 PyObject * obj1 = 0 ;
30047 PyObject * obj2 = 0 ;
30048 PyObject * obj3 = 0 ;
30049 PyObject * obj4 = 0 ;
30050 char * kwnames[] = {
30051 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30052 };
30053
30054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30056 if (!SWIG_IsOK(res1)) {
30057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30058 }
30059 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30060 ecode2 = SWIG_AsVal_int(obj1, &val2);
30061 if (!SWIG_IsOK(ecode2)) {
30062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
30063 }
30064 arg2 = static_cast< int >(val2);
30065 ecode3 = SWIG_AsVal_int(obj2, &val3);
30066 if (!SWIG_IsOK(ecode3)) {
30067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
30068 }
30069 arg3 = static_cast< int >(val3);
30070 ecode4 = SWIG_AsVal_int(obj3, &val4);
30071 if (!SWIG_IsOK(ecode4)) {
30072 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
30073 }
30074 arg4 = static_cast< int >(val4);
30075 ecode5 = SWIG_AsVal_int(obj4, &val5);
30076 if (!SWIG_IsOK(ecode5)) {
30077 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
30078 }
30079 arg5 = static_cast< int >(val5);
30080 {
30081 PyThreadState* __tstate = wxPyBeginAllowThreads();
30082 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
30083 wxPyEndAllowThreads(__tstate);
30084 if (PyErr_Occurred()) SWIG_fail;
30085 }
30086 resultobj = SWIG_Py_Void();
30087 return resultobj;
30088 fail:
30089 return NULL;
30090 }
30091
30092
30093 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30094 PyObject *resultobj = 0;
30095 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30096 wxRect *arg2 = 0 ;
30097 void *argp1 = 0 ;
30098 int res1 = 0 ;
30099 wxRect temp2 ;
30100 PyObject * obj0 = 0 ;
30101 PyObject * obj1 = 0 ;
30102 char * kwnames[] = {
30103 (char *) "self",(char *) "rect", NULL
30104 };
30105
30106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
30107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30108 if (!SWIG_IsOK(res1)) {
30109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30110 }
30111 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30112 {
30113 arg2 = &temp2;
30114 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30115 }
30116 {
30117 PyThreadState* __tstate = wxPyBeginAllowThreads();
30118 (arg1)->DrawCheckMark((wxRect const &)*arg2);
30119 wxPyEndAllowThreads(__tstate);
30120 if (PyErr_Occurred()) SWIG_fail;
30121 }
30122 resultobj = SWIG_Py_Void();
30123 return resultobj;
30124 fail:
30125 return NULL;
30126 }
30127
30128
30129 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30130 PyObject *resultobj = 0;
30131 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30132 int arg2 ;
30133 int arg3 ;
30134 int arg4 ;
30135 int arg5 ;
30136 double arg6 ;
30137 double arg7 ;
30138 void *argp1 = 0 ;
30139 int res1 = 0 ;
30140 int val2 ;
30141 int ecode2 = 0 ;
30142 int val3 ;
30143 int ecode3 = 0 ;
30144 int val4 ;
30145 int ecode4 = 0 ;
30146 int val5 ;
30147 int ecode5 = 0 ;
30148 double val6 ;
30149 int ecode6 = 0 ;
30150 double val7 ;
30151 int ecode7 = 0 ;
30152 PyObject * obj0 = 0 ;
30153 PyObject * obj1 = 0 ;
30154 PyObject * obj2 = 0 ;
30155 PyObject * obj3 = 0 ;
30156 PyObject * obj4 = 0 ;
30157 PyObject * obj5 = 0 ;
30158 PyObject * obj6 = 0 ;
30159 char * kwnames[] = {
30160 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
30161 };
30162
30163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30165 if (!SWIG_IsOK(res1)) {
30166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30167 }
30168 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30169 ecode2 = SWIG_AsVal_int(obj1, &val2);
30170 if (!SWIG_IsOK(ecode2)) {
30171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
30172 }
30173 arg2 = static_cast< int >(val2);
30174 ecode3 = SWIG_AsVal_int(obj2, &val3);
30175 if (!SWIG_IsOK(ecode3)) {
30176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
30177 }
30178 arg3 = static_cast< int >(val3);
30179 ecode4 = SWIG_AsVal_int(obj3, &val4);
30180 if (!SWIG_IsOK(ecode4)) {
30181 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
30182 }
30183 arg4 = static_cast< int >(val4);
30184 ecode5 = SWIG_AsVal_int(obj4, &val5);
30185 if (!SWIG_IsOK(ecode5)) {
30186 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
30187 }
30188 arg5 = static_cast< int >(val5);
30189 ecode6 = SWIG_AsVal_double(obj5, &val6);
30190 if (!SWIG_IsOK(ecode6)) {
30191 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
30192 }
30193 arg6 = static_cast< double >(val6);
30194 ecode7 = SWIG_AsVal_double(obj6, &val7);
30195 if (!SWIG_IsOK(ecode7)) {
30196 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
30197 }
30198 arg7 = static_cast< double >(val7);
30199 {
30200 PyThreadState* __tstate = wxPyBeginAllowThreads();
30201 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
30202 wxPyEndAllowThreads(__tstate);
30203 if (PyErr_Occurred()) SWIG_fail;
30204 }
30205 resultobj = SWIG_Py_Void();
30206 return resultobj;
30207 fail:
30208 return NULL;
30209 }
30210
30211
30212 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30213 PyObject *resultobj = 0;
30214 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30215 wxPoint *arg2 = 0 ;
30216 wxSize *arg3 = 0 ;
30217 double arg4 ;
30218 double arg5 ;
30219 void *argp1 = 0 ;
30220 int res1 = 0 ;
30221 wxPoint temp2 ;
30222 wxSize temp3 ;
30223 double val4 ;
30224 int ecode4 = 0 ;
30225 double val5 ;
30226 int ecode5 = 0 ;
30227 PyObject * obj0 = 0 ;
30228 PyObject * obj1 = 0 ;
30229 PyObject * obj2 = 0 ;
30230 PyObject * obj3 = 0 ;
30231 PyObject * obj4 = 0 ;
30232 char * kwnames[] = {
30233 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
30234 };
30235
30236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30238 if (!SWIG_IsOK(res1)) {
30239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30240 }
30241 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30242 {
30243 arg2 = &temp2;
30244 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30245 }
30246 {
30247 arg3 = &temp3;
30248 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30249 }
30250 ecode4 = SWIG_AsVal_double(obj3, &val4);
30251 if (!SWIG_IsOK(ecode4)) {
30252 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
30253 }
30254 arg4 = static_cast< double >(val4);
30255 ecode5 = SWIG_AsVal_double(obj4, &val5);
30256 if (!SWIG_IsOK(ecode5)) {
30257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
30258 }
30259 arg5 = static_cast< double >(val5);
30260 {
30261 PyThreadState* __tstate = wxPyBeginAllowThreads();
30262 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
30263 wxPyEndAllowThreads(__tstate);
30264 if (PyErr_Occurred()) SWIG_fail;
30265 }
30266 resultobj = SWIG_Py_Void();
30267 return resultobj;
30268 fail:
30269 return NULL;
30270 }
30271
30272
30273 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30274 PyObject *resultobj = 0;
30275 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30276 int arg2 ;
30277 int arg3 ;
30278 void *argp1 = 0 ;
30279 int res1 = 0 ;
30280 int val2 ;
30281 int ecode2 = 0 ;
30282 int val3 ;
30283 int ecode3 = 0 ;
30284 PyObject * obj0 = 0 ;
30285 PyObject * obj1 = 0 ;
30286 PyObject * obj2 = 0 ;
30287 char * kwnames[] = {
30288 (char *) "self",(char *) "x",(char *) "y", NULL
30289 };
30290
30291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30293 if (!SWIG_IsOK(res1)) {
30294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30295 }
30296 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30297 ecode2 = SWIG_AsVal_int(obj1, &val2);
30298 if (!SWIG_IsOK(ecode2)) {
30299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
30300 }
30301 arg2 = static_cast< int >(val2);
30302 ecode3 = SWIG_AsVal_int(obj2, &val3);
30303 if (!SWIG_IsOK(ecode3)) {
30304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
30305 }
30306 arg3 = static_cast< int >(val3);
30307 {
30308 PyThreadState* __tstate = wxPyBeginAllowThreads();
30309 (arg1)->DrawPoint(arg2,arg3);
30310 wxPyEndAllowThreads(__tstate);
30311 if (PyErr_Occurred()) SWIG_fail;
30312 }
30313 resultobj = SWIG_Py_Void();
30314 return resultobj;
30315 fail:
30316 return NULL;
30317 }
30318
30319
30320 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30321 PyObject *resultobj = 0;
30322 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30323 wxPoint *arg2 = 0 ;
30324 void *argp1 = 0 ;
30325 int res1 = 0 ;
30326 wxPoint temp2 ;
30327 PyObject * obj0 = 0 ;
30328 PyObject * obj1 = 0 ;
30329 char * kwnames[] = {
30330 (char *) "self",(char *) "pt", NULL
30331 };
30332
30333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
30334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30335 if (!SWIG_IsOK(res1)) {
30336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30337 }
30338 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30339 {
30340 arg2 = &temp2;
30341 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30342 }
30343 {
30344 PyThreadState* __tstate = wxPyBeginAllowThreads();
30345 (arg1)->DrawPoint((wxPoint const &)*arg2);
30346 wxPyEndAllowThreads(__tstate);
30347 if (PyErr_Occurred()) SWIG_fail;
30348 }
30349 resultobj = SWIG_Py_Void();
30350 return resultobj;
30351 fail:
30352 return NULL;
30353 }
30354
30355
30356 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30357 PyObject *resultobj = 0;
30358 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30359 int arg2 ;
30360 int arg3 ;
30361 int arg4 ;
30362 int arg5 ;
30363 void *argp1 = 0 ;
30364 int res1 = 0 ;
30365 int val2 ;
30366 int ecode2 = 0 ;
30367 int val3 ;
30368 int ecode3 = 0 ;
30369 int val4 ;
30370 int ecode4 = 0 ;
30371 int val5 ;
30372 int ecode5 = 0 ;
30373 PyObject * obj0 = 0 ;
30374 PyObject * obj1 = 0 ;
30375 PyObject * obj2 = 0 ;
30376 PyObject * obj3 = 0 ;
30377 PyObject * obj4 = 0 ;
30378 char * kwnames[] = {
30379 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30380 };
30381
30382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30384 if (!SWIG_IsOK(res1)) {
30385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30386 }
30387 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30388 ecode2 = SWIG_AsVal_int(obj1, &val2);
30389 if (!SWIG_IsOK(ecode2)) {
30390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
30391 }
30392 arg2 = static_cast< int >(val2);
30393 ecode3 = SWIG_AsVal_int(obj2, &val3);
30394 if (!SWIG_IsOK(ecode3)) {
30395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
30396 }
30397 arg3 = static_cast< int >(val3);
30398 ecode4 = SWIG_AsVal_int(obj3, &val4);
30399 if (!SWIG_IsOK(ecode4)) {
30400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
30401 }
30402 arg4 = static_cast< int >(val4);
30403 ecode5 = SWIG_AsVal_int(obj4, &val5);
30404 if (!SWIG_IsOK(ecode5)) {
30405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
30406 }
30407 arg5 = static_cast< int >(val5);
30408 {
30409 PyThreadState* __tstate = wxPyBeginAllowThreads();
30410 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30411 wxPyEndAllowThreads(__tstate);
30412 if (PyErr_Occurred()) SWIG_fail;
30413 }
30414 resultobj = SWIG_Py_Void();
30415 return resultobj;
30416 fail:
30417 return NULL;
30418 }
30419
30420
30421 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30422 PyObject *resultobj = 0;
30423 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30424 wxRect *arg2 = 0 ;
30425 void *argp1 = 0 ;
30426 int res1 = 0 ;
30427 wxRect temp2 ;
30428 PyObject * obj0 = 0 ;
30429 PyObject * obj1 = 0 ;
30430 char * kwnames[] = {
30431 (char *) "self",(char *) "rect", NULL
30432 };
30433
30434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
30435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30436 if (!SWIG_IsOK(res1)) {
30437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30438 }
30439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30440 {
30441 arg2 = &temp2;
30442 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30443 }
30444 {
30445 PyThreadState* __tstate = wxPyBeginAllowThreads();
30446 (arg1)->DrawRectangle((wxRect const &)*arg2);
30447 wxPyEndAllowThreads(__tstate);
30448 if (PyErr_Occurred()) SWIG_fail;
30449 }
30450 resultobj = SWIG_Py_Void();
30451 return resultobj;
30452 fail:
30453 return NULL;
30454 }
30455
30456
30457 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30458 PyObject *resultobj = 0;
30459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30460 wxPoint *arg2 = 0 ;
30461 wxSize *arg3 = 0 ;
30462 void *argp1 = 0 ;
30463 int res1 = 0 ;
30464 wxPoint temp2 ;
30465 wxSize temp3 ;
30466 PyObject * obj0 = 0 ;
30467 PyObject * obj1 = 0 ;
30468 PyObject * obj2 = 0 ;
30469 char * kwnames[] = {
30470 (char *) "self",(char *) "pt",(char *) "sz", NULL
30471 };
30472
30473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30475 if (!SWIG_IsOK(res1)) {
30476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30477 }
30478 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30479 {
30480 arg2 = &temp2;
30481 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30482 }
30483 {
30484 arg3 = &temp3;
30485 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30486 }
30487 {
30488 PyThreadState* __tstate = wxPyBeginAllowThreads();
30489 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
30490 wxPyEndAllowThreads(__tstate);
30491 if (PyErr_Occurred()) SWIG_fail;
30492 }
30493 resultobj = SWIG_Py_Void();
30494 return resultobj;
30495 fail:
30496 return NULL;
30497 }
30498
30499
30500 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30501 PyObject *resultobj = 0;
30502 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30503 int arg2 ;
30504 int arg3 ;
30505 int arg4 ;
30506 int arg5 ;
30507 double arg6 ;
30508 void *argp1 = 0 ;
30509 int res1 = 0 ;
30510 int val2 ;
30511 int ecode2 = 0 ;
30512 int val3 ;
30513 int ecode3 = 0 ;
30514 int val4 ;
30515 int ecode4 = 0 ;
30516 int val5 ;
30517 int ecode5 = 0 ;
30518 double val6 ;
30519 int ecode6 = 0 ;
30520 PyObject * obj0 = 0 ;
30521 PyObject * obj1 = 0 ;
30522 PyObject * obj2 = 0 ;
30523 PyObject * obj3 = 0 ;
30524 PyObject * obj4 = 0 ;
30525 PyObject * obj5 = 0 ;
30526 char * kwnames[] = {
30527 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
30528 };
30529
30530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30532 if (!SWIG_IsOK(res1)) {
30533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30534 }
30535 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30536 ecode2 = SWIG_AsVal_int(obj1, &val2);
30537 if (!SWIG_IsOK(ecode2)) {
30538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
30539 }
30540 arg2 = static_cast< int >(val2);
30541 ecode3 = SWIG_AsVal_int(obj2, &val3);
30542 if (!SWIG_IsOK(ecode3)) {
30543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
30544 }
30545 arg3 = static_cast< int >(val3);
30546 ecode4 = SWIG_AsVal_int(obj3, &val4);
30547 if (!SWIG_IsOK(ecode4)) {
30548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
30549 }
30550 arg4 = static_cast< int >(val4);
30551 ecode5 = SWIG_AsVal_int(obj4, &val5);
30552 if (!SWIG_IsOK(ecode5)) {
30553 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
30554 }
30555 arg5 = static_cast< int >(val5);
30556 ecode6 = SWIG_AsVal_double(obj5, &val6);
30557 if (!SWIG_IsOK(ecode6)) {
30558 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
30559 }
30560 arg6 = static_cast< double >(val6);
30561 {
30562 PyThreadState* __tstate = wxPyBeginAllowThreads();
30563 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30564 wxPyEndAllowThreads(__tstate);
30565 if (PyErr_Occurred()) SWIG_fail;
30566 }
30567 resultobj = SWIG_Py_Void();
30568 return resultobj;
30569 fail:
30570 return NULL;
30571 }
30572
30573
30574 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30575 PyObject *resultobj = 0;
30576 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30577 wxRect *arg2 = 0 ;
30578 double arg3 ;
30579 void *argp1 = 0 ;
30580 int res1 = 0 ;
30581 wxRect temp2 ;
30582 double val3 ;
30583 int ecode3 = 0 ;
30584 PyObject * obj0 = 0 ;
30585 PyObject * obj1 = 0 ;
30586 PyObject * obj2 = 0 ;
30587 char * kwnames[] = {
30588 (char *) "self",(char *) "r",(char *) "radius", NULL
30589 };
30590
30591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30593 if (!SWIG_IsOK(res1)) {
30594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30595 }
30596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30597 {
30598 arg2 = &temp2;
30599 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30600 }
30601 ecode3 = SWIG_AsVal_double(obj2, &val3);
30602 if (!SWIG_IsOK(ecode3)) {
30603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
30604 }
30605 arg3 = static_cast< double >(val3);
30606 {
30607 PyThreadState* __tstate = wxPyBeginAllowThreads();
30608 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
30609 wxPyEndAllowThreads(__tstate);
30610 if (PyErr_Occurred()) SWIG_fail;
30611 }
30612 resultobj = SWIG_Py_Void();
30613 return resultobj;
30614 fail:
30615 return NULL;
30616 }
30617
30618
30619 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30620 PyObject *resultobj = 0;
30621 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30622 wxPoint *arg2 = 0 ;
30623 wxSize *arg3 = 0 ;
30624 double arg4 ;
30625 void *argp1 = 0 ;
30626 int res1 = 0 ;
30627 wxPoint temp2 ;
30628 wxSize temp3 ;
30629 double val4 ;
30630 int ecode4 = 0 ;
30631 PyObject * obj0 = 0 ;
30632 PyObject * obj1 = 0 ;
30633 PyObject * obj2 = 0 ;
30634 PyObject * obj3 = 0 ;
30635 char * kwnames[] = {
30636 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
30637 };
30638
30639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30641 if (!SWIG_IsOK(res1)) {
30642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30643 }
30644 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30645 {
30646 arg2 = &temp2;
30647 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30648 }
30649 {
30650 arg3 = &temp3;
30651 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30652 }
30653 ecode4 = SWIG_AsVal_double(obj3, &val4);
30654 if (!SWIG_IsOK(ecode4)) {
30655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
30656 }
30657 arg4 = static_cast< double >(val4);
30658 {
30659 PyThreadState* __tstate = wxPyBeginAllowThreads();
30660 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
30661 wxPyEndAllowThreads(__tstate);
30662 if (PyErr_Occurred()) SWIG_fail;
30663 }
30664 resultobj = SWIG_Py_Void();
30665 return resultobj;
30666 fail:
30667 return NULL;
30668 }
30669
30670
30671 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30672 PyObject *resultobj = 0;
30673 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30674 int arg2 ;
30675 int arg3 ;
30676 int arg4 ;
30677 void *argp1 = 0 ;
30678 int res1 = 0 ;
30679 int val2 ;
30680 int ecode2 = 0 ;
30681 int val3 ;
30682 int ecode3 = 0 ;
30683 int val4 ;
30684 int ecode4 = 0 ;
30685 PyObject * obj0 = 0 ;
30686 PyObject * obj1 = 0 ;
30687 PyObject * obj2 = 0 ;
30688 PyObject * obj3 = 0 ;
30689 char * kwnames[] = {
30690 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
30691 };
30692
30693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30695 if (!SWIG_IsOK(res1)) {
30696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30697 }
30698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30699 ecode2 = SWIG_AsVal_int(obj1, &val2);
30700 if (!SWIG_IsOK(ecode2)) {
30701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
30702 }
30703 arg2 = static_cast< int >(val2);
30704 ecode3 = SWIG_AsVal_int(obj2, &val3);
30705 if (!SWIG_IsOK(ecode3)) {
30706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
30707 }
30708 arg3 = static_cast< int >(val3);
30709 ecode4 = SWIG_AsVal_int(obj3, &val4);
30710 if (!SWIG_IsOK(ecode4)) {
30711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
30712 }
30713 arg4 = static_cast< int >(val4);
30714 {
30715 PyThreadState* __tstate = wxPyBeginAllowThreads();
30716 (arg1)->DrawCircle(arg2,arg3,arg4);
30717 wxPyEndAllowThreads(__tstate);
30718 if (PyErr_Occurred()) SWIG_fail;
30719 }
30720 resultobj = SWIG_Py_Void();
30721 return resultobj;
30722 fail:
30723 return NULL;
30724 }
30725
30726
30727 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30728 PyObject *resultobj = 0;
30729 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30730 wxPoint *arg2 = 0 ;
30731 int arg3 ;
30732 void *argp1 = 0 ;
30733 int res1 = 0 ;
30734 wxPoint temp2 ;
30735 int val3 ;
30736 int ecode3 = 0 ;
30737 PyObject * obj0 = 0 ;
30738 PyObject * obj1 = 0 ;
30739 PyObject * obj2 = 0 ;
30740 char * kwnames[] = {
30741 (char *) "self",(char *) "pt",(char *) "radius", NULL
30742 };
30743
30744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30746 if (!SWIG_IsOK(res1)) {
30747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30748 }
30749 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30750 {
30751 arg2 = &temp2;
30752 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30753 }
30754 ecode3 = SWIG_AsVal_int(obj2, &val3);
30755 if (!SWIG_IsOK(ecode3)) {
30756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
30757 }
30758 arg3 = static_cast< int >(val3);
30759 {
30760 PyThreadState* __tstate = wxPyBeginAllowThreads();
30761 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
30762 wxPyEndAllowThreads(__tstate);
30763 if (PyErr_Occurred()) SWIG_fail;
30764 }
30765 resultobj = SWIG_Py_Void();
30766 return resultobj;
30767 fail:
30768 return NULL;
30769 }
30770
30771
30772 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30773 PyObject *resultobj = 0;
30774 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30775 int arg2 ;
30776 int arg3 ;
30777 int arg4 ;
30778 int arg5 ;
30779 void *argp1 = 0 ;
30780 int res1 = 0 ;
30781 int val2 ;
30782 int ecode2 = 0 ;
30783 int val3 ;
30784 int ecode3 = 0 ;
30785 int val4 ;
30786 int ecode4 = 0 ;
30787 int val5 ;
30788 int ecode5 = 0 ;
30789 PyObject * obj0 = 0 ;
30790 PyObject * obj1 = 0 ;
30791 PyObject * obj2 = 0 ;
30792 PyObject * obj3 = 0 ;
30793 PyObject * obj4 = 0 ;
30794 char * kwnames[] = {
30795 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30796 };
30797
30798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30800 if (!SWIG_IsOK(res1)) {
30801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30802 }
30803 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30804 ecode2 = SWIG_AsVal_int(obj1, &val2);
30805 if (!SWIG_IsOK(ecode2)) {
30806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
30807 }
30808 arg2 = static_cast< int >(val2);
30809 ecode3 = SWIG_AsVal_int(obj2, &val3);
30810 if (!SWIG_IsOK(ecode3)) {
30811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
30812 }
30813 arg3 = static_cast< int >(val3);
30814 ecode4 = SWIG_AsVal_int(obj3, &val4);
30815 if (!SWIG_IsOK(ecode4)) {
30816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
30817 }
30818 arg4 = static_cast< int >(val4);
30819 ecode5 = SWIG_AsVal_int(obj4, &val5);
30820 if (!SWIG_IsOK(ecode5)) {
30821 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
30822 }
30823 arg5 = static_cast< int >(val5);
30824 {
30825 PyThreadState* __tstate = wxPyBeginAllowThreads();
30826 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30827 wxPyEndAllowThreads(__tstate);
30828 if (PyErr_Occurred()) SWIG_fail;
30829 }
30830 resultobj = SWIG_Py_Void();
30831 return resultobj;
30832 fail:
30833 return NULL;
30834 }
30835
30836
30837 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30838 PyObject *resultobj = 0;
30839 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30840 wxRect *arg2 = 0 ;
30841 void *argp1 = 0 ;
30842 int res1 = 0 ;
30843 wxRect temp2 ;
30844 PyObject * obj0 = 0 ;
30845 PyObject * obj1 = 0 ;
30846 char * kwnames[] = {
30847 (char *) "self",(char *) "rect", NULL
30848 };
30849
30850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
30851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30852 if (!SWIG_IsOK(res1)) {
30853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30854 }
30855 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30856 {
30857 arg2 = &temp2;
30858 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30859 }
30860 {
30861 PyThreadState* __tstate = wxPyBeginAllowThreads();
30862 (arg1)->DrawEllipse((wxRect const &)*arg2);
30863 wxPyEndAllowThreads(__tstate);
30864 if (PyErr_Occurred()) SWIG_fail;
30865 }
30866 resultobj = SWIG_Py_Void();
30867 return resultobj;
30868 fail:
30869 return NULL;
30870 }
30871
30872
30873 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30874 PyObject *resultobj = 0;
30875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30876 wxPoint *arg2 = 0 ;
30877 wxSize *arg3 = 0 ;
30878 void *argp1 = 0 ;
30879 int res1 = 0 ;
30880 wxPoint temp2 ;
30881 wxSize temp3 ;
30882 PyObject * obj0 = 0 ;
30883 PyObject * obj1 = 0 ;
30884 PyObject * obj2 = 0 ;
30885 char * kwnames[] = {
30886 (char *) "self",(char *) "pt",(char *) "sz", NULL
30887 };
30888
30889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30891 if (!SWIG_IsOK(res1)) {
30892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30893 }
30894 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30895 {
30896 arg2 = &temp2;
30897 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30898 }
30899 {
30900 arg3 = &temp3;
30901 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30902 }
30903 {
30904 PyThreadState* __tstate = wxPyBeginAllowThreads();
30905 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
30906 wxPyEndAllowThreads(__tstate);
30907 if (PyErr_Occurred()) SWIG_fail;
30908 }
30909 resultobj = SWIG_Py_Void();
30910 return resultobj;
30911 fail:
30912 return NULL;
30913 }
30914
30915
30916 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30917 PyObject *resultobj = 0;
30918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30919 wxIcon *arg2 = 0 ;
30920 int arg3 ;
30921 int arg4 ;
30922 void *argp1 = 0 ;
30923 int res1 = 0 ;
30924 void *argp2 = 0 ;
30925 int res2 = 0 ;
30926 int val3 ;
30927 int ecode3 = 0 ;
30928 int val4 ;
30929 int ecode4 = 0 ;
30930 PyObject * obj0 = 0 ;
30931 PyObject * obj1 = 0 ;
30932 PyObject * obj2 = 0 ;
30933 PyObject * obj3 = 0 ;
30934 char * kwnames[] = {
30935 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
30936 };
30937
30938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30940 if (!SWIG_IsOK(res1)) {
30941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30942 }
30943 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30945 if (!SWIG_IsOK(res2)) {
30946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30947 }
30948 if (!argp2) {
30949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30950 }
30951 arg2 = reinterpret_cast< wxIcon * >(argp2);
30952 ecode3 = SWIG_AsVal_int(obj2, &val3);
30953 if (!SWIG_IsOK(ecode3)) {
30954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
30955 }
30956 arg3 = static_cast< int >(val3);
30957 ecode4 = SWIG_AsVal_int(obj3, &val4);
30958 if (!SWIG_IsOK(ecode4)) {
30959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
30960 }
30961 arg4 = static_cast< int >(val4);
30962 {
30963 PyThreadState* __tstate = wxPyBeginAllowThreads();
30964 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
30965 wxPyEndAllowThreads(__tstate);
30966 if (PyErr_Occurred()) SWIG_fail;
30967 }
30968 resultobj = SWIG_Py_Void();
30969 return resultobj;
30970 fail:
30971 return NULL;
30972 }
30973
30974
30975 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30976 PyObject *resultobj = 0;
30977 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30978 wxIcon *arg2 = 0 ;
30979 wxPoint *arg3 = 0 ;
30980 void *argp1 = 0 ;
30981 int res1 = 0 ;
30982 void *argp2 = 0 ;
30983 int res2 = 0 ;
30984 wxPoint temp3 ;
30985 PyObject * obj0 = 0 ;
30986 PyObject * obj1 = 0 ;
30987 PyObject * obj2 = 0 ;
30988 char * kwnames[] = {
30989 (char *) "self",(char *) "icon",(char *) "pt", NULL
30990 };
30991
30992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30994 if (!SWIG_IsOK(res1)) {
30995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30996 }
30997 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30999 if (!SWIG_IsOK(res2)) {
31000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
31001 }
31002 if (!argp2) {
31003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
31004 }
31005 arg2 = reinterpret_cast< wxIcon * >(argp2);
31006 {
31007 arg3 = &temp3;
31008 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31009 }
31010 {
31011 PyThreadState* __tstate = wxPyBeginAllowThreads();
31012 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
31013 wxPyEndAllowThreads(__tstate);
31014 if (PyErr_Occurred()) SWIG_fail;
31015 }
31016 resultobj = SWIG_Py_Void();
31017 return resultobj;
31018 fail:
31019 return NULL;
31020 }
31021
31022
31023 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31024 PyObject *resultobj = 0;
31025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31026 wxBitmap *arg2 = 0 ;
31027 int arg3 ;
31028 int arg4 ;
31029 bool arg5 = (bool) false ;
31030 void *argp1 = 0 ;
31031 int res1 = 0 ;
31032 void *argp2 = 0 ;
31033 int res2 = 0 ;
31034 int val3 ;
31035 int ecode3 = 0 ;
31036 int val4 ;
31037 int ecode4 = 0 ;
31038 bool val5 ;
31039 int ecode5 = 0 ;
31040 PyObject * obj0 = 0 ;
31041 PyObject * obj1 = 0 ;
31042 PyObject * obj2 = 0 ;
31043 PyObject * obj3 = 0 ;
31044 PyObject * obj4 = 0 ;
31045 char * kwnames[] = {
31046 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
31047 };
31048
31049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31051 if (!SWIG_IsOK(res1)) {
31052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31053 }
31054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31056 if (!SWIG_IsOK(res2)) {
31057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31058 }
31059 if (!argp2) {
31060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31061 }
31062 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31063 ecode3 = SWIG_AsVal_int(obj2, &val3);
31064 if (!SWIG_IsOK(ecode3)) {
31065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
31066 }
31067 arg3 = static_cast< int >(val3);
31068 ecode4 = SWIG_AsVal_int(obj3, &val4);
31069 if (!SWIG_IsOK(ecode4)) {
31070 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
31071 }
31072 arg4 = static_cast< int >(val4);
31073 if (obj4) {
31074 ecode5 = SWIG_AsVal_bool(obj4, &val5);
31075 if (!SWIG_IsOK(ecode5)) {
31076 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
31077 }
31078 arg5 = static_cast< bool >(val5);
31079 }
31080 {
31081 PyThreadState* __tstate = wxPyBeginAllowThreads();
31082 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
31083 wxPyEndAllowThreads(__tstate);
31084 if (PyErr_Occurred()) SWIG_fail;
31085 }
31086 resultobj = SWIG_Py_Void();
31087 return resultobj;
31088 fail:
31089 return NULL;
31090 }
31091
31092
31093 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31094 PyObject *resultobj = 0;
31095 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31096 wxBitmap *arg2 = 0 ;
31097 wxPoint *arg3 = 0 ;
31098 bool arg4 = (bool) false ;
31099 void *argp1 = 0 ;
31100 int res1 = 0 ;
31101 void *argp2 = 0 ;
31102 int res2 = 0 ;
31103 wxPoint temp3 ;
31104 bool val4 ;
31105 int ecode4 = 0 ;
31106 PyObject * obj0 = 0 ;
31107 PyObject * obj1 = 0 ;
31108 PyObject * obj2 = 0 ;
31109 PyObject * obj3 = 0 ;
31110 char * kwnames[] = {
31111 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
31112 };
31113
31114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31116 if (!SWIG_IsOK(res1)) {
31117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31118 }
31119 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31121 if (!SWIG_IsOK(res2)) {
31122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31123 }
31124 if (!argp2) {
31125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31126 }
31127 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31128 {
31129 arg3 = &temp3;
31130 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31131 }
31132 if (obj3) {
31133 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31134 if (!SWIG_IsOK(ecode4)) {
31135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
31136 }
31137 arg4 = static_cast< bool >(val4);
31138 }
31139 {
31140 PyThreadState* __tstate = wxPyBeginAllowThreads();
31141 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
31142 wxPyEndAllowThreads(__tstate);
31143 if (PyErr_Occurred()) SWIG_fail;
31144 }
31145 resultobj = SWIG_Py_Void();
31146 return resultobj;
31147 fail:
31148 return NULL;
31149 }
31150
31151
31152 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31153 PyObject *resultobj = 0;
31154 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31155 wxString *arg2 = 0 ;
31156 int arg3 ;
31157 int arg4 ;
31158 void *argp1 = 0 ;
31159 int res1 = 0 ;
31160 bool temp2 = false ;
31161 int val3 ;
31162 int ecode3 = 0 ;
31163 int val4 ;
31164 int ecode4 = 0 ;
31165 PyObject * obj0 = 0 ;
31166 PyObject * obj1 = 0 ;
31167 PyObject * obj2 = 0 ;
31168 PyObject * obj3 = 0 ;
31169 char * kwnames[] = {
31170 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
31171 };
31172
31173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31175 if (!SWIG_IsOK(res1)) {
31176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31177 }
31178 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31179 {
31180 arg2 = wxString_in_helper(obj1);
31181 if (arg2 == NULL) SWIG_fail;
31182 temp2 = true;
31183 }
31184 ecode3 = SWIG_AsVal_int(obj2, &val3);
31185 if (!SWIG_IsOK(ecode3)) {
31186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
31187 }
31188 arg3 = static_cast< int >(val3);
31189 ecode4 = SWIG_AsVal_int(obj3, &val4);
31190 if (!SWIG_IsOK(ecode4)) {
31191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
31192 }
31193 arg4 = static_cast< int >(val4);
31194 {
31195 PyThreadState* __tstate = wxPyBeginAllowThreads();
31196 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
31197 wxPyEndAllowThreads(__tstate);
31198 if (PyErr_Occurred()) SWIG_fail;
31199 }
31200 resultobj = SWIG_Py_Void();
31201 {
31202 if (temp2)
31203 delete arg2;
31204 }
31205 return resultobj;
31206 fail:
31207 {
31208 if (temp2)
31209 delete arg2;
31210 }
31211 return NULL;
31212 }
31213
31214
31215 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31216 PyObject *resultobj = 0;
31217 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31218 wxString *arg2 = 0 ;
31219 wxPoint *arg3 = 0 ;
31220 void *argp1 = 0 ;
31221 int res1 = 0 ;
31222 bool temp2 = false ;
31223 wxPoint temp3 ;
31224 PyObject * obj0 = 0 ;
31225 PyObject * obj1 = 0 ;
31226 PyObject * obj2 = 0 ;
31227 char * kwnames[] = {
31228 (char *) "self",(char *) "text",(char *) "pt", NULL
31229 };
31230
31231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31233 if (!SWIG_IsOK(res1)) {
31234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31235 }
31236 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31237 {
31238 arg2 = wxString_in_helper(obj1);
31239 if (arg2 == NULL) SWIG_fail;
31240 temp2 = true;
31241 }
31242 {
31243 arg3 = &temp3;
31244 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31245 }
31246 {
31247 PyThreadState* __tstate = wxPyBeginAllowThreads();
31248 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
31249 wxPyEndAllowThreads(__tstate);
31250 if (PyErr_Occurred()) SWIG_fail;
31251 }
31252 resultobj = SWIG_Py_Void();
31253 {
31254 if (temp2)
31255 delete arg2;
31256 }
31257 return resultobj;
31258 fail:
31259 {
31260 if (temp2)
31261 delete arg2;
31262 }
31263 return NULL;
31264 }
31265
31266
31267 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31268 PyObject *resultobj = 0;
31269 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31270 wxString *arg2 = 0 ;
31271 int arg3 ;
31272 int arg4 ;
31273 double arg5 ;
31274 void *argp1 = 0 ;
31275 int res1 = 0 ;
31276 bool temp2 = false ;
31277 int val3 ;
31278 int ecode3 = 0 ;
31279 int val4 ;
31280 int ecode4 = 0 ;
31281 double val5 ;
31282 int ecode5 = 0 ;
31283 PyObject * obj0 = 0 ;
31284 PyObject * obj1 = 0 ;
31285 PyObject * obj2 = 0 ;
31286 PyObject * obj3 = 0 ;
31287 PyObject * obj4 = 0 ;
31288 char * kwnames[] = {
31289 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
31290 };
31291
31292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31294 if (!SWIG_IsOK(res1)) {
31295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31296 }
31297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31298 {
31299 arg2 = wxString_in_helper(obj1);
31300 if (arg2 == NULL) SWIG_fail;
31301 temp2 = true;
31302 }
31303 ecode3 = SWIG_AsVal_int(obj2, &val3);
31304 if (!SWIG_IsOK(ecode3)) {
31305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
31306 }
31307 arg3 = static_cast< int >(val3);
31308 ecode4 = SWIG_AsVal_int(obj3, &val4);
31309 if (!SWIG_IsOK(ecode4)) {
31310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
31311 }
31312 arg4 = static_cast< int >(val4);
31313 ecode5 = SWIG_AsVal_double(obj4, &val5);
31314 if (!SWIG_IsOK(ecode5)) {
31315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
31316 }
31317 arg5 = static_cast< double >(val5);
31318 {
31319 PyThreadState* __tstate = wxPyBeginAllowThreads();
31320 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
31321 wxPyEndAllowThreads(__tstate);
31322 if (PyErr_Occurred()) SWIG_fail;
31323 }
31324 resultobj = SWIG_Py_Void();
31325 {
31326 if (temp2)
31327 delete arg2;
31328 }
31329 return resultobj;
31330 fail:
31331 {
31332 if (temp2)
31333 delete arg2;
31334 }
31335 return NULL;
31336 }
31337
31338
31339 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31340 PyObject *resultobj = 0;
31341 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31342 wxString *arg2 = 0 ;
31343 wxPoint *arg3 = 0 ;
31344 double arg4 ;
31345 void *argp1 = 0 ;
31346 int res1 = 0 ;
31347 bool temp2 = false ;
31348 wxPoint temp3 ;
31349 double val4 ;
31350 int ecode4 = 0 ;
31351 PyObject * obj0 = 0 ;
31352 PyObject * obj1 = 0 ;
31353 PyObject * obj2 = 0 ;
31354 PyObject * obj3 = 0 ;
31355 char * kwnames[] = {
31356 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
31357 };
31358
31359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31361 if (!SWIG_IsOK(res1)) {
31362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31363 }
31364 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31365 {
31366 arg2 = wxString_in_helper(obj1);
31367 if (arg2 == NULL) SWIG_fail;
31368 temp2 = true;
31369 }
31370 {
31371 arg3 = &temp3;
31372 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31373 }
31374 ecode4 = SWIG_AsVal_double(obj3, &val4);
31375 if (!SWIG_IsOK(ecode4)) {
31376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
31377 }
31378 arg4 = static_cast< double >(val4);
31379 {
31380 PyThreadState* __tstate = wxPyBeginAllowThreads();
31381 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
31382 wxPyEndAllowThreads(__tstate);
31383 if (PyErr_Occurred()) SWIG_fail;
31384 }
31385 resultobj = SWIG_Py_Void();
31386 {
31387 if (temp2)
31388 delete arg2;
31389 }
31390 return resultobj;
31391 fail:
31392 {
31393 if (temp2)
31394 delete arg2;
31395 }
31396 return NULL;
31397 }
31398
31399
31400 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31401 PyObject *resultobj = 0;
31402 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31403 int arg2 ;
31404 wxPoint *arg3 = (wxPoint *) 0 ;
31405 int arg4 = (int) 0 ;
31406 int arg5 = (int) 0 ;
31407 void *argp1 = 0 ;
31408 int res1 = 0 ;
31409 int val4 ;
31410 int ecode4 = 0 ;
31411 int val5 ;
31412 int ecode5 = 0 ;
31413 PyObject * obj0 = 0 ;
31414 PyObject * obj1 = 0 ;
31415 PyObject * obj2 = 0 ;
31416 PyObject * obj3 = 0 ;
31417 char * kwnames[] = {
31418 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
31419 };
31420
31421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31423 if (!SWIG_IsOK(res1)) {
31424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31425 }
31426 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31427 {
31428 arg3 = wxPoint_LIST_helper(obj1, &arg2);
31429 if (arg3 == NULL) SWIG_fail;
31430 }
31431 if (obj2) {
31432 ecode4 = SWIG_AsVal_int(obj2, &val4);
31433 if (!SWIG_IsOK(ecode4)) {
31434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
31435 }
31436 arg4 = static_cast< int >(val4);
31437 }
31438 if (obj3) {
31439 ecode5 = SWIG_AsVal_int(obj3, &val5);
31440 if (!SWIG_IsOK(ecode5)) {
31441 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
31442 }
31443 arg5 = static_cast< int >(val5);
31444 }
31445 {
31446 PyThreadState* __tstate = wxPyBeginAllowThreads();
31447 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
31448 wxPyEndAllowThreads(__tstate);
31449 if (PyErr_Occurred()) SWIG_fail;
31450 }
31451 resultobj = SWIG_Py_Void();
31452 {
31453 if (arg3) delete [] arg3;
31454 }
31455 return resultobj;
31456 fail:
31457 {
31458 if (arg3) delete [] arg3;
31459 }
31460 return NULL;
31461 }
31462
31463
31464 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31465 PyObject *resultobj = 0;
31466 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31467 int arg2 ;
31468 wxPoint *arg3 = (wxPoint *) 0 ;
31469 int arg4 = (int) 0 ;
31470 int arg5 = (int) 0 ;
31471 int arg6 = (int) wxODDEVEN_RULE ;
31472 void *argp1 = 0 ;
31473 int res1 = 0 ;
31474 int val4 ;
31475 int ecode4 = 0 ;
31476 int val5 ;
31477 int ecode5 = 0 ;
31478 int val6 ;
31479 int ecode6 = 0 ;
31480 PyObject * obj0 = 0 ;
31481 PyObject * obj1 = 0 ;
31482 PyObject * obj2 = 0 ;
31483 PyObject * obj3 = 0 ;
31484 PyObject * obj4 = 0 ;
31485 char * kwnames[] = {
31486 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
31487 };
31488
31489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31491 if (!SWIG_IsOK(res1)) {
31492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31493 }
31494 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31495 {
31496 arg3 = wxPoint_LIST_helper(obj1, &arg2);
31497 if (arg3 == NULL) SWIG_fail;
31498 }
31499 if (obj2) {
31500 ecode4 = SWIG_AsVal_int(obj2, &val4);
31501 if (!SWIG_IsOK(ecode4)) {
31502 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
31503 }
31504 arg4 = static_cast< int >(val4);
31505 }
31506 if (obj3) {
31507 ecode5 = SWIG_AsVal_int(obj3, &val5);
31508 if (!SWIG_IsOK(ecode5)) {
31509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
31510 }
31511 arg5 = static_cast< int >(val5);
31512 }
31513 if (obj4) {
31514 ecode6 = SWIG_AsVal_int(obj4, &val6);
31515 if (!SWIG_IsOK(ecode6)) {
31516 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
31517 }
31518 arg6 = static_cast< int >(val6);
31519 }
31520 {
31521 PyThreadState* __tstate = wxPyBeginAllowThreads();
31522 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
31523 wxPyEndAllowThreads(__tstate);
31524 if (PyErr_Occurred()) SWIG_fail;
31525 }
31526 resultobj = SWIG_Py_Void();
31527 {
31528 if (arg3) delete [] arg3;
31529 }
31530 return resultobj;
31531 fail:
31532 {
31533 if (arg3) delete [] arg3;
31534 }
31535 return NULL;
31536 }
31537
31538
31539 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31540 PyObject *resultobj = 0;
31541 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31542 wxString *arg2 = 0 ;
31543 wxRect *arg3 = 0 ;
31544 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
31545 int arg5 = (int) -1 ;
31546 void *argp1 = 0 ;
31547 int res1 = 0 ;
31548 bool temp2 = false ;
31549 wxRect temp3 ;
31550 int val4 ;
31551 int ecode4 = 0 ;
31552 int val5 ;
31553 int ecode5 = 0 ;
31554 PyObject * obj0 = 0 ;
31555 PyObject * obj1 = 0 ;
31556 PyObject * obj2 = 0 ;
31557 PyObject * obj3 = 0 ;
31558 PyObject * obj4 = 0 ;
31559 char * kwnames[] = {
31560 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
31561 };
31562
31563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31565 if (!SWIG_IsOK(res1)) {
31566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31567 }
31568 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31569 {
31570 arg2 = wxString_in_helper(obj1);
31571 if (arg2 == NULL) SWIG_fail;
31572 temp2 = true;
31573 }
31574 {
31575 arg3 = &temp3;
31576 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31577 }
31578 if (obj3) {
31579 ecode4 = SWIG_AsVal_int(obj3, &val4);
31580 if (!SWIG_IsOK(ecode4)) {
31581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
31582 }
31583 arg4 = static_cast< int >(val4);
31584 }
31585 if (obj4) {
31586 ecode5 = SWIG_AsVal_int(obj4, &val5);
31587 if (!SWIG_IsOK(ecode5)) {
31588 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
31589 }
31590 arg5 = static_cast< int >(val5);
31591 }
31592 {
31593 PyThreadState* __tstate = wxPyBeginAllowThreads();
31594 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
31595 wxPyEndAllowThreads(__tstate);
31596 if (PyErr_Occurred()) SWIG_fail;
31597 }
31598 resultobj = SWIG_Py_Void();
31599 {
31600 if (temp2)
31601 delete arg2;
31602 }
31603 return resultobj;
31604 fail:
31605 {
31606 if (temp2)
31607 delete arg2;
31608 }
31609 return NULL;
31610 }
31611
31612
31613 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31614 PyObject *resultobj = 0;
31615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31616 wxString *arg2 = 0 ;
31617 wxBitmap *arg3 = 0 ;
31618 wxRect *arg4 = 0 ;
31619 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
31620 int arg6 = (int) -1 ;
31621 void *argp1 = 0 ;
31622 int res1 = 0 ;
31623 bool temp2 = false ;
31624 void *argp3 = 0 ;
31625 int res3 = 0 ;
31626 wxRect temp4 ;
31627 int val5 ;
31628 int ecode5 = 0 ;
31629 int val6 ;
31630 int ecode6 = 0 ;
31631 PyObject * obj0 = 0 ;
31632 PyObject * obj1 = 0 ;
31633 PyObject * obj2 = 0 ;
31634 PyObject * obj3 = 0 ;
31635 PyObject * obj4 = 0 ;
31636 PyObject * obj5 = 0 ;
31637 char * kwnames[] = {
31638 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
31639 };
31640
31641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
31642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31643 if (!SWIG_IsOK(res1)) {
31644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31645 }
31646 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31647 {
31648 arg2 = wxString_in_helper(obj1);
31649 if (arg2 == NULL) SWIG_fail;
31650 temp2 = true;
31651 }
31652 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31653 if (!SWIG_IsOK(res3)) {
31654 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31655 }
31656 if (!argp3) {
31657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31658 }
31659 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31660 {
31661 arg4 = &temp4;
31662 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31663 }
31664 if (obj4) {
31665 ecode5 = SWIG_AsVal_int(obj4, &val5);
31666 if (!SWIG_IsOK(ecode5)) {
31667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
31668 }
31669 arg5 = static_cast< int >(val5);
31670 }
31671 if (obj5) {
31672 ecode6 = SWIG_AsVal_int(obj5, &val6);
31673 if (!SWIG_IsOK(ecode6)) {
31674 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
31675 }
31676 arg6 = static_cast< int >(val6);
31677 }
31678 {
31679 PyThreadState* __tstate = wxPyBeginAllowThreads();
31680 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
31681 wxPyEndAllowThreads(__tstate);
31682 if (PyErr_Occurred()) SWIG_fail;
31683 }
31684 resultobj = SWIG_Py_Void();
31685 {
31686 if (temp2)
31687 delete arg2;
31688 }
31689 return resultobj;
31690 fail:
31691 {
31692 if (temp2)
31693 delete arg2;
31694 }
31695 return NULL;
31696 }
31697
31698
31699 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31700 PyObject *resultobj = 0;
31701 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31702 int arg2 ;
31703 wxPoint *arg3 = (wxPoint *) 0 ;
31704 void *argp1 = 0 ;
31705 int res1 = 0 ;
31706 PyObject * obj0 = 0 ;
31707 PyObject * obj1 = 0 ;
31708 char * kwnames[] = {
31709 (char *) "self",(char *) "points", NULL
31710 };
31711
31712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
31713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31714 if (!SWIG_IsOK(res1)) {
31715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31716 }
31717 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31718 {
31719 arg3 = wxPoint_LIST_helper(obj1, &arg2);
31720 if (arg3 == NULL) SWIG_fail;
31721 }
31722 {
31723 PyThreadState* __tstate = wxPyBeginAllowThreads();
31724 (arg1)->DrawSpline(arg2,arg3);
31725 wxPyEndAllowThreads(__tstate);
31726 if (PyErr_Occurred()) SWIG_fail;
31727 }
31728 resultobj = SWIG_Py_Void();
31729 {
31730 if (arg3) delete [] arg3;
31731 }
31732 return resultobj;
31733 fail:
31734 {
31735 if (arg3) delete [] arg3;
31736 }
31737 return NULL;
31738 }
31739
31740
31741 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31742 PyObject *resultobj = 0;
31743 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31744 void *argp1 = 0 ;
31745 int res1 = 0 ;
31746 PyObject *swig_obj[1] ;
31747
31748 if (!args) SWIG_fail;
31749 swig_obj[0] = args;
31750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31751 if (!SWIG_IsOK(res1)) {
31752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31753 }
31754 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31755 {
31756 PyThreadState* __tstate = wxPyBeginAllowThreads();
31757 (arg1)->Clear();
31758 wxPyEndAllowThreads(__tstate);
31759 if (PyErr_Occurred()) SWIG_fail;
31760 }
31761 resultobj = SWIG_Py_Void();
31762 return resultobj;
31763 fail:
31764 return NULL;
31765 }
31766
31767
31768 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31769 PyObject *resultobj = 0;
31770 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31771 wxFont *arg2 = 0 ;
31772 void *argp1 = 0 ;
31773 int res1 = 0 ;
31774 void *argp2 = 0 ;
31775 int res2 = 0 ;
31776 PyObject * obj0 = 0 ;
31777 PyObject * obj1 = 0 ;
31778 char * kwnames[] = {
31779 (char *) "self",(char *) "font", NULL
31780 };
31781
31782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31784 if (!SWIG_IsOK(res1)) {
31785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31786 }
31787 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31788 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31789 if (!SWIG_IsOK(res2)) {
31790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31791 }
31792 if (!argp2) {
31793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31794 }
31795 arg2 = reinterpret_cast< wxFont * >(argp2);
31796 {
31797 PyThreadState* __tstate = wxPyBeginAllowThreads();
31798 (arg1)->SetFont((wxFont const &)*arg2);
31799 wxPyEndAllowThreads(__tstate);
31800 if (PyErr_Occurred()) SWIG_fail;
31801 }
31802 resultobj = SWIG_Py_Void();
31803 return resultobj;
31804 fail:
31805 return NULL;
31806 }
31807
31808
31809 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31810 PyObject *resultobj = 0;
31811 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31812 wxPen *arg2 = 0 ;
31813 void *argp1 = 0 ;
31814 int res1 = 0 ;
31815 void *argp2 = 0 ;
31816 int res2 = 0 ;
31817 PyObject * obj0 = 0 ;
31818 PyObject * obj1 = 0 ;
31819 char * kwnames[] = {
31820 (char *) "self",(char *) "pen", NULL
31821 };
31822
31823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
31824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31825 if (!SWIG_IsOK(res1)) {
31826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31827 }
31828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31830 if (!SWIG_IsOK(res2)) {
31831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31832 }
31833 if (!argp2) {
31834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31835 }
31836 arg2 = reinterpret_cast< wxPen * >(argp2);
31837 {
31838 PyThreadState* __tstate = wxPyBeginAllowThreads();
31839 (arg1)->SetPen((wxPen const &)*arg2);
31840 wxPyEndAllowThreads(__tstate);
31841 if (PyErr_Occurred()) SWIG_fail;
31842 }
31843 resultobj = SWIG_Py_Void();
31844 return resultobj;
31845 fail:
31846 return NULL;
31847 }
31848
31849
31850 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31851 PyObject *resultobj = 0;
31852 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31853 wxBrush *arg2 = 0 ;
31854 void *argp1 = 0 ;
31855 int res1 = 0 ;
31856 void *argp2 = 0 ;
31857 int res2 = 0 ;
31858 PyObject * obj0 = 0 ;
31859 PyObject * obj1 = 0 ;
31860 char * kwnames[] = {
31861 (char *) "self",(char *) "brush", NULL
31862 };
31863
31864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31866 if (!SWIG_IsOK(res1)) {
31867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31868 }
31869 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31871 if (!SWIG_IsOK(res2)) {
31872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31873 }
31874 if (!argp2) {
31875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31876 }
31877 arg2 = reinterpret_cast< wxBrush * >(argp2);
31878 {
31879 PyThreadState* __tstate = wxPyBeginAllowThreads();
31880 (arg1)->SetBrush((wxBrush const &)*arg2);
31881 wxPyEndAllowThreads(__tstate);
31882 if (PyErr_Occurred()) SWIG_fail;
31883 }
31884 resultobj = SWIG_Py_Void();
31885 return resultobj;
31886 fail:
31887 return NULL;
31888 }
31889
31890
31891 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31892 PyObject *resultobj = 0;
31893 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31894 wxBrush *arg2 = 0 ;
31895 void *argp1 = 0 ;
31896 int res1 = 0 ;
31897 void *argp2 = 0 ;
31898 int res2 = 0 ;
31899 PyObject * obj0 = 0 ;
31900 PyObject * obj1 = 0 ;
31901 char * kwnames[] = {
31902 (char *) "self",(char *) "brush", NULL
31903 };
31904
31905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31907 if (!SWIG_IsOK(res1)) {
31908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31909 }
31910 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31911 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31912 if (!SWIG_IsOK(res2)) {
31913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31914 }
31915 if (!argp2) {
31916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31917 }
31918 arg2 = reinterpret_cast< wxBrush * >(argp2);
31919 {
31920 PyThreadState* __tstate = wxPyBeginAllowThreads();
31921 (arg1)->SetBackground((wxBrush const &)*arg2);
31922 wxPyEndAllowThreads(__tstate);
31923 if (PyErr_Occurred()) SWIG_fail;
31924 }
31925 resultobj = SWIG_Py_Void();
31926 return resultobj;
31927 fail:
31928 return NULL;
31929 }
31930
31931
31932 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31933 PyObject *resultobj = 0;
31934 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31935 int arg2 ;
31936 void *argp1 = 0 ;
31937 int res1 = 0 ;
31938 int val2 ;
31939 int ecode2 = 0 ;
31940 PyObject * obj0 = 0 ;
31941 PyObject * obj1 = 0 ;
31942 char * kwnames[] = {
31943 (char *) "self",(char *) "mode", NULL
31944 };
31945
31946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
31947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31948 if (!SWIG_IsOK(res1)) {
31949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31950 }
31951 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31952 ecode2 = SWIG_AsVal_int(obj1, &val2);
31953 if (!SWIG_IsOK(ecode2)) {
31954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
31955 }
31956 arg2 = static_cast< int >(val2);
31957 {
31958 PyThreadState* __tstate = wxPyBeginAllowThreads();
31959 (arg1)->SetBackgroundMode(arg2);
31960 wxPyEndAllowThreads(__tstate);
31961 if (PyErr_Occurred()) SWIG_fail;
31962 }
31963 resultobj = SWIG_Py_Void();
31964 return resultobj;
31965 fail:
31966 return NULL;
31967 }
31968
31969
31970 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31971 PyObject *resultobj = 0;
31972 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31973 wxPalette *arg2 = 0 ;
31974 void *argp1 = 0 ;
31975 int res1 = 0 ;
31976 void *argp2 = 0 ;
31977 int res2 = 0 ;
31978 PyObject * obj0 = 0 ;
31979 PyObject * obj1 = 0 ;
31980 char * kwnames[] = {
31981 (char *) "self",(char *) "palette", NULL
31982 };
31983
31984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
31985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31986 if (!SWIG_IsOK(res1)) {
31987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31988 }
31989 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
31991 if (!SWIG_IsOK(res2)) {
31992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31993 }
31994 if (!argp2) {
31995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31996 }
31997 arg2 = reinterpret_cast< wxPalette * >(argp2);
31998 {
31999 PyThreadState* __tstate = wxPyBeginAllowThreads();
32000 (arg1)->SetPalette((wxPalette const &)*arg2);
32001 wxPyEndAllowThreads(__tstate);
32002 if (PyErr_Occurred()) SWIG_fail;
32003 }
32004 resultobj = SWIG_Py_Void();
32005 return resultobj;
32006 fail:
32007 return NULL;
32008 }
32009
32010
32011 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32012 PyObject *resultobj = 0;
32013 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32014 wxColour *arg2 = 0 ;
32015 void *argp1 = 0 ;
32016 int res1 = 0 ;
32017 wxColour temp2 ;
32018 PyObject * obj0 = 0 ;
32019 PyObject * obj1 = 0 ;
32020 char * kwnames[] = {
32021 (char *) "self",(char *) "colour", NULL
32022 };
32023
32024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
32025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32026 if (!SWIG_IsOK(res1)) {
32027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32028 }
32029 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32030 {
32031 arg2 = &temp2;
32032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32033 }
32034 {
32035 PyThreadState* __tstate = wxPyBeginAllowThreads();
32036 (arg1)->SetTextForeground((wxColour const &)*arg2);
32037 wxPyEndAllowThreads(__tstate);
32038 if (PyErr_Occurred()) SWIG_fail;
32039 }
32040 resultobj = SWIG_Py_Void();
32041 return resultobj;
32042 fail:
32043 return NULL;
32044 }
32045
32046
32047 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32048 PyObject *resultobj = 0;
32049 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32050 wxColour *arg2 = 0 ;
32051 void *argp1 = 0 ;
32052 int res1 = 0 ;
32053 wxColour temp2 ;
32054 PyObject * obj0 = 0 ;
32055 PyObject * obj1 = 0 ;
32056 char * kwnames[] = {
32057 (char *) "self",(char *) "colour", NULL
32058 };
32059
32060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
32061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32062 if (!SWIG_IsOK(res1)) {
32063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32064 }
32065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32066 {
32067 arg2 = &temp2;
32068 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32069 }
32070 {
32071 PyThreadState* __tstate = wxPyBeginAllowThreads();
32072 (arg1)->SetTextBackground((wxColour const &)*arg2);
32073 wxPyEndAllowThreads(__tstate);
32074 if (PyErr_Occurred()) SWIG_fail;
32075 }
32076 resultobj = SWIG_Py_Void();
32077 return resultobj;
32078 fail:
32079 return NULL;
32080 }
32081
32082
32083 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32084 PyObject *resultobj = 0;
32085 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32086 int arg2 ;
32087 void *argp1 = 0 ;
32088 int res1 = 0 ;
32089 int val2 ;
32090 int ecode2 = 0 ;
32091 PyObject * obj0 = 0 ;
32092 PyObject * obj1 = 0 ;
32093 char * kwnames[] = {
32094 (char *) "self",(char *) "function", NULL
32095 };
32096
32097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
32098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32099 if (!SWIG_IsOK(res1)) {
32100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32101 }
32102 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32103 ecode2 = SWIG_AsVal_int(obj1, &val2);
32104 if (!SWIG_IsOK(ecode2)) {
32105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
32106 }
32107 arg2 = static_cast< int >(val2);
32108 {
32109 PyThreadState* __tstate = wxPyBeginAllowThreads();
32110 (arg1)->SetLogicalFunction(arg2);
32111 wxPyEndAllowThreads(__tstate);
32112 if (PyErr_Occurred()) SWIG_fail;
32113 }
32114 resultobj = SWIG_Py_Void();
32115 return resultobj;
32116 fail:
32117 return NULL;
32118 }
32119
32120
32121 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32122 PyObject *obj;
32123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32124 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
32125 return SWIG_Py_Void();
32126 }
32127
32128 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32129 return SWIG_Python_InitShadowInstance(args);
32130 }
32131
32132 static PyMethodDef SwigMethods[] = {
32133 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
32134 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
32135 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
32136 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
32137 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
32138 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
32139 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
32140 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
32141 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
32142 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
32143 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
32144 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
32145 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
32146 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
32147 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32148 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
32149 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
32150 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
32151 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
32152 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
32153 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
32154 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
32155 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
32156 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
32157 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
32158 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
32159 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
32160 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
32161 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
32162 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
32163 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
32164 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
32165 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
32166 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
32167 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
32168 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
32169 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
32170 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
32171 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
32172 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
32173 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
32174 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
32175 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32176 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
32177 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
32178 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
32179 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
32180 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
32181 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
32182 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
32183 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
32184 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
32185 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
32186 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
32187 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
32188 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
32189 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
32190 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32191 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
32192 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32193 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
32194 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
32195 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
32196 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
32197 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
32198 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
32199 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
32200 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
32201 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
32202 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32203 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
32204 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32205 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32206 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
32207 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
32208 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
32209 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
32210 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
32211 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
32212 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
32213 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
32214 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
32215 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
32216 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
32217 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
32218 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
32219 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
32220 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32221 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
32222 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
32223 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
32224 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32225 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32226 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
32227 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
32228 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32229 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32230 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32231 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
32232 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
32233 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
32234 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
32235 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
32236 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
32237 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
32238 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
32239 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
32240 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
32241 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
32242 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
32243 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
32244 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
32245 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
32246 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
32247 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
32248 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
32249 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
32250 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
32251 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
32252 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
32253 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
32254 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
32255 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
32256 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
32257 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
32258 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
32259 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
32260 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32261 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
32262 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
32263 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
32264 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
32265 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
32266 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
32267 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
32268 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
32269 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
32270 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
32271 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
32272 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
32273 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
32274 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
32275 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
32276 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
32277 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
32278 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
32279 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
32280 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32281 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
32282 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
32283 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
32284 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
32285 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
32286 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
32287 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
32288 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
32289 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
32290 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
32291 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
32292 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32293 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
32294 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
32295 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
32296 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
32297 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
32298 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
32299 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
32300 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
32301 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
32302 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
32303 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32304 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32305 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32306 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
32307 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
32308 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
32309 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
32310 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
32311 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
32312 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
32313 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
32314 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
32315 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
32316 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
32317 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
32318 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
32319 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32320 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
32321 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32322 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
32323 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32324 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
32325 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
32326 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
32327 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
32328 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32329 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
32330 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
32331 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
32332 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
32333 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
32334 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
32335 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
32336 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
32337 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
32338 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32339 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32340 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
32341 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
32342 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
32343 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32344 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
32345 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
32346 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
32347 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
32348 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
32349 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
32350 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32351 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
32352 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
32353 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
32354 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
32355 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
32356 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32357 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
32358 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
32359 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
32360 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
32361 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32362 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
32363 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
32364 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32365 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
32366 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
32367 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32368 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
32369 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32370 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
32371 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
32372 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
32373 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
32374 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
32375 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
32376 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
32377 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
32378 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
32379 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
32380 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
32381 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
32382 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
32383 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
32384 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
32385 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
32386 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
32387 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
32388 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
32389 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
32390 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
32391 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
32392 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
32393 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
32394 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
32395 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
32396 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
32397 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
32398 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
32399 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
32400 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32401 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
32402 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
32403 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
32404 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
32405 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
32406 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
32407 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32408 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
32409 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
32410 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
32411 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
32412 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
32413 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
32414 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
32415 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
32416 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
32417 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
32418 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
32419 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
32420 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
32421 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
32422 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
32423 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
32424 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
32425 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32426 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32427 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
32428 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
32429 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
32430 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32431 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32432 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
32433 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32434 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
32435 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
32436 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
32437 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
32438 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
32439 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32440 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
32441 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
32442 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
32443 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
32444 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
32445 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
32446 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
32447 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32448 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
32449 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
32450 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
32451 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
32452 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
32453 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
32454 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
32455 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
32456 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
32457 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
32458 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
32459 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
32460 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
32461 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
32462 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
32463 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
32464 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
32465 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
32466 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
32467 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
32468 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32469 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
32470 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
32471 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
32472 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
32473 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
32474 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
32475 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32476 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32477 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
32478 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
32479 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
32480 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
32481 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
32482 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
32483 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
32484 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
32485 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32486 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
32487 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
32488 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
32489 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
32490 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32491 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
32492 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
32493 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
32494 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
32495 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
32496 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
32497 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
32498 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
32499 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
32500 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
32501 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
32502 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
32503 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
32504 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
32505 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
32506 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
32507 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
32508 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
32509 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
32510 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
32511 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
32512 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
32513 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
32514 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
32515 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
32516 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
32517 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
32518 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
32519 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
32520 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
32521 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32522 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
32523 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32524 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
32525 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
32526 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
32527 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
32528 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
32529 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
32530 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
32531 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32532 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
32533 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
32534 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
32535 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
32536 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
32537 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
32538 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
32539 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
32540 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
32541 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
32542 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
32543 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
32544 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
32545 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
32546 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
32547 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
32548 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
32549 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32550 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
32551 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
32552 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
32553 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32554 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
32555 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32556 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
32557 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32558 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
32559 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32560 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
32561 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
32562 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
32563 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32564 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32565 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32566 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32567 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32568 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32569 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32570 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32571 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32572 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
32573 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32574 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
32575 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
32576 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32577 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32578 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32579 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32580 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32581 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
32582 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32583 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
32584 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32585 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
32586 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32587 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32588 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32589 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32590 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
32591 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
32592 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
32593 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32594 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32595 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
32596 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
32597 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
32598 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
32599 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
32600 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
32601 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32602 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32603 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32604 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32605 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
32606 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32607 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
32608 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
32609 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
32610 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
32611 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
32612 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
32613 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
32614 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
32615 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
32616 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
32617 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
32618 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
32619 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
32620 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
32621 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
32622 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
32623 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
32624 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
32625 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
32626 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
32627 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
32628 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
32629 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
32630 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
32631 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
32632 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
32633 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
32634 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
32635 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
32636 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
32637 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
32638 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
32639 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
32640 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
32641 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32642 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
32643 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
32644 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
32645 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
32646 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
32647 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
32648 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
32649 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
32650 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
32651 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32652 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
32653 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
32654 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
32655 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32656 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
32657 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
32658 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
32659 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
32660 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
32661 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32662 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
32663 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
32664 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
32665 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
32666 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
32667 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
32668 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
32669 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
32670 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
32671 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
32672 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
32673 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
32674 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
32675 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
32676 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
32677 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
32678 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
32679 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
32680 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
32681 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
32682 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
32683 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
32684 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
32685 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
32686 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
32687 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
32688 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
32689 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
32690 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
32691 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
32692 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
32693 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
32694 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
32695 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
32696 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
32697 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
32698 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
32699 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
32700 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
32701 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
32702 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
32703 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
32704 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
32705 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
32706 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
32707 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
32708 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
32709 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
32710 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
32711 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
32712 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
32713 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
32714 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
32715 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
32716 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
32717 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
32718 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
32719 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
32720 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
32721 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
32722 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
32723 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
32724 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
32725 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
32726 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
32727 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
32728 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
32729 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
32730 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
32731 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
32732 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
32733 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
32734 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
32735 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32736 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32737 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32738 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
32739 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
32740 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
32741 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
32742 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
32743 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32744 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
32745 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
32746 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
32747 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
32748 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
32749 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
32750 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32751 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32752 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32753 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32754 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32755 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
32756 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
32757 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
32758 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
32759 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
32760 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
32761 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
32762 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
32763 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
32764 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
32765 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32766 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32767 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32768 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
32769 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
32770 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
32771 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
32772 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
32773 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
32774 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
32775 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
32776 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
32777 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
32778 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
32779 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
32780 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
32781 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
32782 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
32783 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
32784 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
32785 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
32786 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
32787 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
32788 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
32789 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
32790 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
32791 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
32792 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32793 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
32794 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32795 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32796 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32797 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
32798 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32799 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
32800 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
32801 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
32802 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
32803 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
32804 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
32805 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
32806 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
32807 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
32808 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
32809 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
32810 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
32811 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
32812 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
32813 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
32814 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
32815 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
32816 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
32817 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
32818 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
32819 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
32820 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
32821 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
32822 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
32823 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
32824 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
32825 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
32826 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32827 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
32828 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
32829 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
32830 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
32831 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
32832 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
32833 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
32834 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
32835 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
32836 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
32837 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
32838 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
32839 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
32840 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
32841 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
32842 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
32843 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
32844 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
32845 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
32846 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
32847 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
32848 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32849 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
32850 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
32851 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
32852 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
32853 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
32854 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
32855 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
32856 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
32857 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
32858 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
32859 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
32860 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
32861 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32862 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32863 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32864 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
32865 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
32866 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32867 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
32868 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32869 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
32870 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32871 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
32872 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32873 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
32874 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32875 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
32876 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
32877 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
32878 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32879 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32880 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32881 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32882 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32883 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32884 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32885 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32886 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32887 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
32888 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32889 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
32890 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
32891 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32892 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32893 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32894 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32895 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32896 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
32897 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32898 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
32899 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32900 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
32901 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
32902 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32903 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32904 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
32905 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
32906 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32907 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32908 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32909 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32910 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
32911 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32912 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
32913 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32914 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
32915 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
32916 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
32917 { NULL, NULL, 0, NULL }
32918 };
32919
32920
32921 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32922
32923 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
32924 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
32925 }
32926 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
32927 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
32928 }
32929 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
32930 return (void *)((wxLocale *) ((wxPyLocale *) x));
32931 }
32932 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
32933 return (void *)((wxGDIObject *) ((wxIcon *) x));
32934 }
32935 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
32936 return (void *)((wxGDIObject *) ((wxPalette *) x));
32937 }
32938 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
32939 return (void *)((wxGDIObject *) ((wxPen *) x));
32940 }
32941 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
32942 return (void *)((wxGDIObject *) ((wxFont *) x));
32943 }
32944 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
32945 return (void *)((wxGDIObject *) ((wxCursor *) x));
32946 }
32947 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
32948 return (void *)((wxGDIObject *) ((wxBitmap *) x));
32949 }
32950 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
32951 return (void *)((wxGDIObject *) ((wxRegion *) x));
32952 }
32953 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
32954 return (void *)((wxGDIObject *) ((wxBrush *) x));
32955 }
32956 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
32957 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
32958 }
32959 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
32960 return (void *)((wxDC *) ((wxScreenDC *) x));
32961 }
32962 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
32963 return (void *)((wxDC *) ((wxMirrorDC *) x));
32964 }
32965 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
32966 return (void *)((wxDC *) ((wxMemoryDC *) x));
32967 }
32968 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
32969 return (void *)((wxDC *) ((wxWindowDC *) x));
32970 }
32971 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
32972 return (void *)((wxDC *) ((wxMetaFileDC *) x));
32973 }
32974 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
32975 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32976 }
32977 static void *_p_wxClientDCTo_p_wxDC(void *x) {
32978 return (void *)((wxDC *) ((wxClientDC *) x));
32979 }
32980 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
32981 return (void *)((wxDC *) ((wxPaintDC *) x));
32982 }
32983 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
32984 return (void *)((wxDC *) ((wxPostScriptDC *) x));
32985 }
32986 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
32987 return (void *)((wxDC *) ((wxPrinterDC *) x));
32988 }
32989 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
32990 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
32991 }
32992 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
32993 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
32994 }
32995 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
32996 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
32997 }
32998 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
32999 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
33000 }
33001 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
33002 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
33003 }
33004 static void *_p_wxPenTo_p_wxObject(void *x) {
33005 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
33006 }
33007 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
33008 return (void *)((wxObject *) ((wxRegionIterator *) x));
33009 }
33010 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
33011 return (void *)((wxObject *) ((wxSizerItem *) x));
33012 }
33013 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
33014 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
33015 }
33016 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
33017 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
33018 }
33019 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
33020 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
33021 }
33022 static void *_p_wxIconTo_p_wxObject(void *x) {
33023 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
33024 }
33025 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
33026 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
33027 }
33028 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
33029 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
33030 }
33031 static void *_p_wxSizerTo_p_wxObject(void *x) {
33032 return (void *)((wxObject *) ((wxSizer *) x));
33033 }
33034 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
33035 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
33036 }
33037 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
33038 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
33039 }
33040 static void *_p_wxEventTo_p_wxObject(void *x) {
33041 return (void *)((wxObject *) ((wxEvent *) x));
33042 }
33043 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
33044 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33045 }
33046 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33047 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33048 }
33049 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33050 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33051 }
33052 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
33053 return (void *)((wxObject *) ((wxPseudoDC *) x));
33054 }
33055 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
33056 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
33057 }
33058 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33059 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33060 }
33061 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33062 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33063 }
33064 static void *_p_wxDCTo_p_wxObject(void *x) {
33065 return (void *)((wxObject *) ((wxDC *) x));
33066 }
33067 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33068 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33069 }
33070 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33071 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33072 }
33073 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33074 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33075 }
33076 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33077 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33078 }
33079 static void *_p_wxControlTo_p_wxObject(void *x) {
33080 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33081 }
33082 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33083 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33084 }
33085 static void *_p_wxClientDCTo_p_wxObject(void *x) {
33086 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
33087 }
33088 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33089 return (void *)((wxObject *) ((wxFSFile *) x));
33090 }
33091 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
33092 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
33093 }
33094 static void *_p_wxRegionTo_p_wxObject(void *x) {
33095 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
33096 }
33097 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33098 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33099 }
33100 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
33101 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
33102 }
33103 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
33104 return (void *)((wxObject *) ((wxGDIObject *) x));
33105 }
33106 static void *_p_wxEffectsTo_p_wxObject(void *x) {
33107 return (void *)((wxObject *) ((wxEffects *) x));
33108 }
33109 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33110 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33111 }
33112 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33113 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33114 }
33115 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
33116 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
33117 }
33118 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33119 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33120 }
33121 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33122 return (void *)((wxObject *) ((wxMenuItem *) x));
33123 }
33124 static void *_p_wxDateEventTo_p_wxObject(void *x) {
33125 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
33126 }
33127 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33128 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33129 }
33130 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33131 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33132 }
33133 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33134 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33135 }
33136 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33137 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33138 }
33139 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33140 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33141 }
33142 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33143 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33144 }
33145 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33146 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33147 }
33148 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33149 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33150 }
33151 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33152 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33153 }
33154 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33155 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33156 }
33157 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33158 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33159 }
33160 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33161 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33162 }
33163 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33164 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33165 }
33166 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33167 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33168 }
33169 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33170 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33171 }
33172 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33173 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33174 }
33175 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33176 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33177 }
33178 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
33179 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
33180 }
33181 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33182 return (void *)((wxObject *) ((wxImageHandler *) x));
33183 }
33184 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33185 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33186 }
33187 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33188 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33189 }
33190 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33191 return (void *)((wxObject *) ((wxEvtHandler *) x));
33192 }
33193 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
33194 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
33195 }
33196 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
33197 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
33198 }
33199 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
33200 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
33201 }
33202 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
33203 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
33204 }
33205 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
33206 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
33207 }
33208 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
33209 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
33210 }
33211 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33212 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33213 }
33214 static void *_p_wxImageTo_p_wxObject(void *x) {
33215 return (void *)((wxObject *) ((wxImage *) x));
33216 }
33217 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33218 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33219 }
33220 static void *_p_wxPaletteTo_p_wxObject(void *x) {
33221 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
33222 }
33223 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
33224 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
33225 }
33226 static void *_p_wxImageListTo_p_wxObject(void *x) {
33227 return (void *)((wxObject *) ((wxImageList *) x));
33228 }
33229 static void *_p_wxCursorTo_p_wxObject(void *x) {
33230 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
33231 }
33232 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
33233 return (void *)((wxObject *) ((wxEncodingConverter *) x));
33234 }
33235 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
33236 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
33237 }
33238 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33239 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33240 }
33241 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33242 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33243 }
33244 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33245 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33246 }
33247 static void *_p_wxWindowTo_p_wxObject(void *x) {
33248 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33249 }
33250 static void *_p_wxMenuTo_p_wxObject(void *x) {
33251 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33252 }
33253 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33254 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33255 }
33256 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
33257 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
33258 }
33259 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33260 return (void *)((wxObject *) ((wxFileSystem *) x));
33261 }
33262 static void *_p_wxBitmapTo_p_wxObject(void *x) {
33263 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
33264 }
33265 static void *_p_wxMaskTo_p_wxObject(void *x) {
33266 return (void *)((wxObject *) ((wxMask *) x));
33267 }
33268 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33269 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33270 }
33271 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33272 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33273 }
33274 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33275 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33276 }
33277 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33278 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33279 }
33280 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33281 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33282 }
33283 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33284 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33285 }
33286 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33287 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33288 }
33289 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33290 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33291 }
33292 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33293 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33294 }
33295 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33296 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33297 }
33298 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33299 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33300 }
33301 static void *_p_wxFontTo_p_wxObject(void *x) {
33302 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
33303 }
33304 static void *_p_wxBrushTo_p_wxObject(void *x) {
33305 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
33306 }
33307 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
33308 return (void *)((wxObject *) ((wxMetaFile *) x));
33309 }
33310 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33311 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33312 }
33313 static void *_p_wxColourTo_p_wxObject(void *x) {
33314 return (void *)((wxObject *) ((wxColour *) x));
33315 }
33316 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33317 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33318 }
33319 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33320 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33321 }
33322 static void *_p_wxControlTo_p_wxWindow(void *x) {
33323 return (void *)((wxWindow *) ((wxControl *) x));
33324 }
33325 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33326 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33327 }
33328 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33329 return (void *)((wxWindow *) ((wxMenuBar *) x));
33330 }
33331 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
33332 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
33333 }
33334 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
33335 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
33336 }
33337 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
33338 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
33339 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
33340 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};
33341 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
33342 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
33343 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
33344 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
33345 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
33346 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
33347 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
33348 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
33349 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
33350 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
33351 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
33352 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
33353 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
33354 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
33355 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
33356 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
33357 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
33358 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
33359 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
33360 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
33361 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
33362 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
33363 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
33364 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
33365 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
33366 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
33367 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
33368 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
33369 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
33370 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
33371 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
33372 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
33373 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
33374 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
33375 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
33376 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
33377 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
33378 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
33379 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
33380 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
33381 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
33382 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
33383 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
33384 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
33385 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
33386 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
33387 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
33388 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
33389 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
33390 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
33391 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
33392 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
33393 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
33394 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
33395 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
33396 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
33397 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
33398 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
33399 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
33400 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
33401 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
33402 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
33403 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
33404 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
33405 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
33406 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
33407 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
33408 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
33409 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
33410 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
33411 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
33412 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
33413 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
33414 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
33415 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
33416 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
33417 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
33418 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
33419 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
33420 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
33421 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
33422 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
33423 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
33424 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
33425 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
33426 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
33427 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
33428 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
33429 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
33430 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
33431 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
33432 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
33433 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
33434 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
33435 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
33436 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
33437 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
33438 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
33439 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
33440 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
33441 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
33442 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
33443 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
33444 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
33445 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
33446 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
33447 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
33448 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
33449 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
33450 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
33451 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
33452 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
33453 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
33454 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
33455 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
33456 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
33457 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
33458 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
33459 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
33460 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
33461 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
33462 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
33463 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
33464 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
33465 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
33466 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
33467 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
33468 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
33469 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
33470 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
33471 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
33472 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
33473 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
33474 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
33475 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
33476 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
33477 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
33478 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
33479 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
33480 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
33481 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
33482 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
33483 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
33484 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
33485 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
33486
33487 static swig_type_info *swig_type_initial[] = {
33488 &_swigt__p_buffer,
33489 &_swigt__p_char,
33490 &_swigt__p_double,
33491 &_swigt__p_form_ops_t,
33492 &_swigt__p_int,
33493 &_swigt__p_unsigned_char,
33494 &_swigt__p_unsigned_int,
33495 &_swigt__p_unsigned_long,
33496 &_swigt__p_wxANIHandler,
33497 &_swigt__p_wxAcceleratorTable,
33498 &_swigt__p_wxActivateEvent,
33499 &_swigt__p_wxAlphaPixelData,
33500 &_swigt__p_wxAlphaPixelData_Accessor,
33501 &_swigt__p_wxBMPHandler,
33502 &_swigt__p_wxBitmap,
33503 &_swigt__p_wxBoxSizer,
33504 &_swigt__p_wxBrush,
33505 &_swigt__p_wxBrushList,
33506 &_swigt__p_wxBufferedDC,
33507 &_swigt__p_wxBufferedPaintDC,
33508 &_swigt__p_wxCURHandler,
33509 &_swigt__p_wxChar,
33510 &_swigt__p_wxChildFocusEvent,
33511 &_swigt__p_wxClientDC,
33512 &_swigt__p_wxClipboardTextEvent,
33513 &_swigt__p_wxCloseEvent,
33514 &_swigt__p_wxColour,
33515 &_swigt__p_wxColourDatabase,
33516 &_swigt__p_wxCommandEvent,
33517 &_swigt__p_wxContextMenuEvent,
33518 &_swigt__p_wxControl,
33519 &_swigt__p_wxControlWithItems,
33520 &_swigt__p_wxCursor,
33521 &_swigt__p_wxDC,
33522 &_swigt__p_wxDash,
33523 &_swigt__p_wxDateEvent,
33524 &_swigt__p_wxDisplayChangedEvent,
33525 &_swigt__p_wxDropFilesEvent,
33526 &_swigt__p_wxDuplexMode,
33527 &_swigt__p_wxEffects,
33528 &_swigt__p_wxEncodingConverter,
33529 &_swigt__p_wxEraseEvent,
33530 &_swigt__p_wxEvent,
33531 &_swigt__p_wxEvtHandler,
33532 &_swigt__p_wxFSFile,
33533 &_swigt__p_wxFileSystem,
33534 &_swigt__p_wxFlexGridSizer,
33535 &_swigt__p_wxFocusEvent,
33536 &_swigt__p_wxFont,
33537 &_swigt__p_wxFontList,
33538 &_swigt__p_wxFontMapper,
33539 &_swigt__p_wxGBSizerItem,
33540 &_swigt__p_wxGDIObjListBase,
33541 &_swigt__p_wxGDIObject,
33542 &_swigt__p_wxGIFHandler,
33543 &_swigt__p_wxGridBagSizer,
33544 &_swigt__p_wxGridSizer,
33545 &_swigt__p_wxHeaderButtonParams,
33546 &_swigt__p_wxICOHandler,
33547 &_swigt__p_wxIcon,
33548 &_swigt__p_wxIconBundle,
33549 &_swigt__p_wxIconLocation,
33550 &_swigt__p_wxIconizeEvent,
33551 &_swigt__p_wxIdleEvent,
33552 &_swigt__p_wxImage,
33553 &_swigt__p_wxImageHandler,
33554 &_swigt__p_wxImageList,
33555 &_swigt__p_wxIndividualLayoutConstraint,
33556 &_swigt__p_wxInitDialogEvent,
33557 &_swigt__p_wxJPEGHandler,
33558 &_swigt__p_wxKeyEvent,
33559 &_swigt__p_wxLanguageInfo,
33560 &_swigt__p_wxLayoutConstraints,
33561 &_swigt__p_wxLocale,
33562 &_swigt__p_wxMask,
33563 &_swigt__p_wxMaximizeEvent,
33564 &_swigt__p_wxMemoryDC,
33565 &_swigt__p_wxMenu,
33566 &_swigt__p_wxMenuBar,
33567 &_swigt__p_wxMenuEvent,
33568 &_swigt__p_wxMenuItem,
33569 &_swigt__p_wxMetaFile,
33570 &_swigt__p_wxMetaFileDC,
33571 &_swigt__p_wxMirrorDC,
33572 &_swigt__p_wxMouseCaptureChangedEvent,
33573 &_swigt__p_wxMouseCaptureLostEvent,
33574 &_swigt__p_wxMouseEvent,
33575 &_swigt__p_wxMoveEvent,
33576 &_swigt__p_wxNativeEncodingInfo,
33577 &_swigt__p_wxNativeFontInfo,
33578 &_swigt__p_wxNativePixelData,
33579 &_swigt__p_wxNativePixelData_Accessor,
33580 &_swigt__p_wxNavigationKeyEvent,
33581 &_swigt__p_wxNcPaintEvent,
33582 &_swigt__p_wxNotifyEvent,
33583 &_swigt__p_wxObject,
33584 &_swigt__p_wxPCXHandler,
33585 &_swigt__p_wxPNGHandler,
33586 &_swigt__p_wxPNMHandler,
33587 &_swigt__p_wxPaintDC,
33588 &_swigt__p_wxPaintEvent,
33589 &_swigt__p_wxPalette,
33590 &_swigt__p_wxPaletteChangedEvent,
33591 &_swigt__p_wxPaperSize,
33592 &_swigt__p_wxPen,
33593 &_swigt__p_wxPenList,
33594 &_swigt__p_wxPixelDataBase,
33595 &_swigt__p_wxPoint,
33596 &_swigt__p_wxPostScriptDC,
33597 &_swigt__p_wxPrintData,
33598 &_swigt__p_wxPrinterDC,
33599 &_swigt__p_wxPseudoDC,
33600 &_swigt__p_wxPyApp,
33601 &_swigt__p_wxPyCommandEvent,
33602 &_swigt__p_wxPyEvent,
33603 &_swigt__p_wxPyFontEnumerator,
33604 &_swigt__p_wxPyImageHandler,
33605 &_swigt__p_wxPyLocale,
33606 &_swigt__p_wxPySizer,
33607 &_swigt__p_wxPyValidator,
33608 &_swigt__p_wxQueryNewPaletteEvent,
33609 &_swigt__p_wxRect,
33610 &_swigt__p_wxRegion,
33611 &_swigt__p_wxRegionIterator,
33612 &_swigt__p_wxRendererNative,
33613 &_swigt__p_wxRendererVersion,
33614 &_swigt__p_wxScreenDC,
33615 &_swigt__p_wxScrollEvent,
33616 &_swigt__p_wxScrollWinEvent,
33617 &_swigt__p_wxSetCursorEvent,
33618 &_swigt__p_wxShowEvent,
33619 &_swigt__p_wxSize,
33620 &_swigt__p_wxSizeEvent,
33621 &_swigt__p_wxSizer,
33622 &_swigt__p_wxSizerItem,
33623 &_swigt__p_wxSplitterRenderParams,
33624 &_swigt__p_wxStaticBoxSizer,
33625 &_swigt__p_wxStdDialogButtonSizer,
33626 &_swigt__p_wxStockGDI,
33627 &_swigt__p_wxString,
33628 &_swigt__p_wxSysColourChangedEvent,
33629 &_swigt__p_wxTIFFHandler,
33630 &_swigt__p_wxUpdateUIEvent,
33631 &_swigt__p_wxValidator,
33632 &_swigt__p_wxWindow,
33633 &_swigt__p_wxWindowCreateEvent,
33634 &_swigt__p_wxWindowDC,
33635 &_swigt__p_wxWindowDestroyEvent,
33636 &_swigt__p_wxXPMHandler,
33637 };
33638
33639 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
33640 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
33641 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
33642 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
33643 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
33644 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
33645 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
33646 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
33647 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
33648 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
33649 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
33650 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
33651 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
33652 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}};
33653 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
33654 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
33655 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
33656 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
33657 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
33658 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
33659 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
33660 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
33661 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
33662 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
33663 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
33664 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
33665 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
33666 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
33667 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}};
33668 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}};
33669 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
33670 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
33671 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
33672 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
33673 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
33674 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
33675 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
33676 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}};
33677 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
33678 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}};
33679 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
33680 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
33681 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
33682 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
33683 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
33684 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
33685 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
33686 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
33687 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
33688 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
33689 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
33690 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
33691 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
33692 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
33693 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
33694 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
33695 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
33696 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
33697 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
33698 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
33699 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
33700 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
33701 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
33702 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
33703 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
33704 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33705 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33706 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33707 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33708 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
33709 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
33710 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
33711 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
33712 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
33713 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
33714 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
33715 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
33716 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
33717 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
33718 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
33719 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
33720 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33721 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33722 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33723 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
33724 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
33725 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
33726 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
33727 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
33728 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
33729 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
33730 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
33731 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
33732 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
33733 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
33734 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
33735 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
33736 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
33737 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
33738 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
33739 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
33740 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
33741 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
33742 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
33743 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
33744 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
33745 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
33746 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
33747 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
33748 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
33749 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
33750 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
33751 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
33752 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
33753 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
33754 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
33755 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
33756 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
33757 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
33758 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
33759 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
33760 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
33761 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
33762 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_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_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}};
33763 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
33764 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
33765 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
33766 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
33767 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
33768 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}};
33769 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
33770 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
33771 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
33772 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
33773 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
33774 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
33775 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
33776 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
33777 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
33778 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
33779 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
33780 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
33781 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
33782 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
33783 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
33784 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
33785 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
33786 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}};
33787 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
33788
33789 static swig_cast_info *swig_cast_initial[] = {
33790 _swigc__p_buffer,
33791 _swigc__p_char,
33792 _swigc__p_double,
33793 _swigc__p_form_ops_t,
33794 _swigc__p_int,
33795 _swigc__p_unsigned_char,
33796 _swigc__p_unsigned_int,
33797 _swigc__p_unsigned_long,
33798 _swigc__p_wxANIHandler,
33799 _swigc__p_wxAcceleratorTable,
33800 _swigc__p_wxActivateEvent,
33801 _swigc__p_wxAlphaPixelData,
33802 _swigc__p_wxAlphaPixelData_Accessor,
33803 _swigc__p_wxBMPHandler,
33804 _swigc__p_wxBitmap,
33805 _swigc__p_wxBoxSizer,
33806 _swigc__p_wxBrush,
33807 _swigc__p_wxBrushList,
33808 _swigc__p_wxBufferedDC,
33809 _swigc__p_wxBufferedPaintDC,
33810 _swigc__p_wxCURHandler,
33811 _swigc__p_wxChar,
33812 _swigc__p_wxChildFocusEvent,
33813 _swigc__p_wxClientDC,
33814 _swigc__p_wxClipboardTextEvent,
33815 _swigc__p_wxCloseEvent,
33816 _swigc__p_wxColour,
33817 _swigc__p_wxColourDatabase,
33818 _swigc__p_wxCommandEvent,
33819 _swigc__p_wxContextMenuEvent,
33820 _swigc__p_wxControl,
33821 _swigc__p_wxControlWithItems,
33822 _swigc__p_wxCursor,
33823 _swigc__p_wxDC,
33824 _swigc__p_wxDash,
33825 _swigc__p_wxDateEvent,
33826 _swigc__p_wxDisplayChangedEvent,
33827 _swigc__p_wxDropFilesEvent,
33828 _swigc__p_wxDuplexMode,
33829 _swigc__p_wxEffects,
33830 _swigc__p_wxEncodingConverter,
33831 _swigc__p_wxEraseEvent,
33832 _swigc__p_wxEvent,
33833 _swigc__p_wxEvtHandler,
33834 _swigc__p_wxFSFile,
33835 _swigc__p_wxFileSystem,
33836 _swigc__p_wxFlexGridSizer,
33837 _swigc__p_wxFocusEvent,
33838 _swigc__p_wxFont,
33839 _swigc__p_wxFontList,
33840 _swigc__p_wxFontMapper,
33841 _swigc__p_wxGBSizerItem,
33842 _swigc__p_wxGDIObjListBase,
33843 _swigc__p_wxGDIObject,
33844 _swigc__p_wxGIFHandler,
33845 _swigc__p_wxGridBagSizer,
33846 _swigc__p_wxGridSizer,
33847 _swigc__p_wxHeaderButtonParams,
33848 _swigc__p_wxICOHandler,
33849 _swigc__p_wxIcon,
33850 _swigc__p_wxIconBundle,
33851 _swigc__p_wxIconLocation,
33852 _swigc__p_wxIconizeEvent,
33853 _swigc__p_wxIdleEvent,
33854 _swigc__p_wxImage,
33855 _swigc__p_wxImageHandler,
33856 _swigc__p_wxImageList,
33857 _swigc__p_wxIndividualLayoutConstraint,
33858 _swigc__p_wxInitDialogEvent,
33859 _swigc__p_wxJPEGHandler,
33860 _swigc__p_wxKeyEvent,
33861 _swigc__p_wxLanguageInfo,
33862 _swigc__p_wxLayoutConstraints,
33863 _swigc__p_wxLocale,
33864 _swigc__p_wxMask,
33865 _swigc__p_wxMaximizeEvent,
33866 _swigc__p_wxMemoryDC,
33867 _swigc__p_wxMenu,
33868 _swigc__p_wxMenuBar,
33869 _swigc__p_wxMenuEvent,
33870 _swigc__p_wxMenuItem,
33871 _swigc__p_wxMetaFile,
33872 _swigc__p_wxMetaFileDC,
33873 _swigc__p_wxMirrorDC,
33874 _swigc__p_wxMouseCaptureChangedEvent,
33875 _swigc__p_wxMouseCaptureLostEvent,
33876 _swigc__p_wxMouseEvent,
33877 _swigc__p_wxMoveEvent,
33878 _swigc__p_wxNativeEncodingInfo,
33879 _swigc__p_wxNativeFontInfo,
33880 _swigc__p_wxNativePixelData,
33881 _swigc__p_wxNativePixelData_Accessor,
33882 _swigc__p_wxNavigationKeyEvent,
33883 _swigc__p_wxNcPaintEvent,
33884 _swigc__p_wxNotifyEvent,
33885 _swigc__p_wxObject,
33886 _swigc__p_wxPCXHandler,
33887 _swigc__p_wxPNGHandler,
33888 _swigc__p_wxPNMHandler,
33889 _swigc__p_wxPaintDC,
33890 _swigc__p_wxPaintEvent,
33891 _swigc__p_wxPalette,
33892 _swigc__p_wxPaletteChangedEvent,
33893 _swigc__p_wxPaperSize,
33894 _swigc__p_wxPen,
33895 _swigc__p_wxPenList,
33896 _swigc__p_wxPixelDataBase,
33897 _swigc__p_wxPoint,
33898 _swigc__p_wxPostScriptDC,
33899 _swigc__p_wxPrintData,
33900 _swigc__p_wxPrinterDC,
33901 _swigc__p_wxPseudoDC,
33902 _swigc__p_wxPyApp,
33903 _swigc__p_wxPyCommandEvent,
33904 _swigc__p_wxPyEvent,
33905 _swigc__p_wxPyFontEnumerator,
33906 _swigc__p_wxPyImageHandler,
33907 _swigc__p_wxPyLocale,
33908 _swigc__p_wxPySizer,
33909 _swigc__p_wxPyValidator,
33910 _swigc__p_wxQueryNewPaletteEvent,
33911 _swigc__p_wxRect,
33912 _swigc__p_wxRegion,
33913 _swigc__p_wxRegionIterator,
33914 _swigc__p_wxRendererNative,
33915 _swigc__p_wxRendererVersion,
33916 _swigc__p_wxScreenDC,
33917 _swigc__p_wxScrollEvent,
33918 _swigc__p_wxScrollWinEvent,
33919 _swigc__p_wxSetCursorEvent,
33920 _swigc__p_wxShowEvent,
33921 _swigc__p_wxSize,
33922 _swigc__p_wxSizeEvent,
33923 _swigc__p_wxSizer,
33924 _swigc__p_wxSizerItem,
33925 _swigc__p_wxSplitterRenderParams,
33926 _swigc__p_wxStaticBoxSizer,
33927 _swigc__p_wxStdDialogButtonSizer,
33928 _swigc__p_wxStockGDI,
33929 _swigc__p_wxString,
33930 _swigc__p_wxSysColourChangedEvent,
33931 _swigc__p_wxTIFFHandler,
33932 _swigc__p_wxUpdateUIEvent,
33933 _swigc__p_wxValidator,
33934 _swigc__p_wxWindow,
33935 _swigc__p_wxWindowCreateEvent,
33936 _swigc__p_wxWindowDC,
33937 _swigc__p_wxWindowDestroyEvent,
33938 _swigc__p_wxXPMHandler,
33939 };
33940
33941
33942 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33943
33944 static swig_const_info swig_const_table[] = {
33945 {0, 0, 0, 0.0, 0, 0}};
33946
33947 #ifdef __cplusplus
33948 }
33949 #endif
33950 /* -----------------------------------------------------------------------------
33951 * Type initialization:
33952 * This problem is tough by the requirement that no dynamic
33953 * memory is used. Also, since swig_type_info structures store pointers to
33954 * swig_cast_info structures and swig_cast_info structures store pointers back
33955 * to swig_type_info structures, we need some lookup code at initialization.
33956 * The idea is that swig generates all the structures that are needed.
33957 * The runtime then collects these partially filled structures.
33958 * The SWIG_InitializeModule function takes these initial arrays out of
33959 * swig_module, and does all the lookup, filling in the swig_module.types
33960 * array with the correct data and linking the correct swig_cast_info
33961 * structures together.
33962 *
33963 * The generated swig_type_info structures are assigned staticly to an initial
33964 * array. We just loop though that array, and handle each type individually.
33965 * First we lookup if this type has been already loaded, and if so, use the
33966 * loaded structure instead of the generated one. Then we have to fill in the
33967 * cast linked list. The cast data is initially stored in something like a
33968 * two-dimensional array. Each row corresponds to a type (there are the same
33969 * number of rows as there are in the swig_type_initial array). Each entry in
33970 * a column is one of the swig_cast_info structures for that type.
33971 * The cast_initial array is actually an array of arrays, because each row has
33972 * a variable number of columns. So to actually build the cast linked list,
33973 * we find the array of casts associated with the type, and loop through it
33974 * adding the casts to the list. The one last trick we need to do is making
33975 * sure the type pointer in the swig_cast_info struct is correct.
33976 *
33977 * First off, we lookup the cast->type name to see if it is already loaded.
33978 * There are three cases to handle:
33979 * 1) If the cast->type has already been loaded AND the type we are adding
33980 * casting info to has not been loaded (it is in this module), THEN we
33981 * replace the cast->type pointer with the type pointer that has already
33982 * been loaded.
33983 * 2) If BOTH types (the one we are adding casting info to, and the
33984 * cast->type) are loaded, THEN the cast info has already been loaded by
33985 * the previous module so we just ignore it.
33986 * 3) Finally, if cast->type has not already been loaded, then we add that
33987 * swig_cast_info to the linked list (because the cast->type) pointer will
33988 * be correct.
33989 * ----------------------------------------------------------------------------- */
33990
33991 #ifdef __cplusplus
33992 extern "C" {
33993 #if 0
33994 } /* c-mode */
33995 #endif
33996 #endif
33997
33998 #if 0
33999 #define SWIGRUNTIME_DEBUG
34000 #endif
34001
34002 SWIGRUNTIME void
34003 SWIG_InitializeModule(void *clientdata) {
34004 size_t i;
34005 swig_module_info *module_head;
34006 static int init_run = 0;
34007
34008 clientdata = clientdata;
34009
34010 if (init_run) return;
34011 init_run = 1;
34012
34013 /* Initialize the swig_module */
34014 swig_module.type_initial = swig_type_initial;
34015 swig_module.cast_initial = swig_cast_initial;
34016
34017 /* Try and load any already created modules */
34018 module_head = SWIG_GetModule(clientdata);
34019 if (module_head) {
34020 swig_module.next = module_head->next;
34021 module_head->next = &swig_module;
34022 } else {
34023 /* This is the first module loaded */
34024 swig_module.next = &swig_module;
34025 SWIG_SetModule(clientdata, &swig_module);
34026 }
34027
34028 /* Now work on filling in swig_module.types */
34029 #ifdef SWIGRUNTIME_DEBUG
34030 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
34031 #endif
34032 for (i = 0; i < swig_module.size; ++i) {
34033 swig_type_info *type = 0;
34034 swig_type_info *ret;
34035 swig_cast_info *cast;
34036
34037 #ifdef SWIGRUNTIME_DEBUG
34038 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
34039 #endif
34040
34041 /* if there is another module already loaded */
34042 if (swig_module.next != &swig_module) {
34043 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
34044 }
34045 if (type) {
34046 /* Overwrite clientdata field */
34047 #ifdef SWIGRUNTIME_DEBUG
34048 printf("SWIG_InitializeModule: found type %s\n", type->name);
34049 #endif
34050 if (swig_module.type_initial[i]->clientdata) {
34051 type->clientdata = swig_module.type_initial[i]->clientdata;
34052 #ifdef SWIGRUNTIME_DEBUG
34053 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
34054 #endif
34055 }
34056 } else {
34057 type = swig_module.type_initial[i];
34058 }
34059
34060 /* Insert casting types */
34061 cast = swig_module.cast_initial[i];
34062 while (cast->type) {
34063 /* Don't need to add information already in the list */
34064 ret = 0;
34065 #ifdef SWIGRUNTIME_DEBUG
34066 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
34067 #endif
34068 if (swig_module.next != &swig_module) {
34069 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
34070 #ifdef SWIGRUNTIME_DEBUG
34071 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
34072 #endif
34073 }
34074 if (ret) {
34075 if (type == swig_module.type_initial[i]) {
34076 #ifdef SWIGRUNTIME_DEBUG
34077 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
34078 #endif
34079 cast->type = ret;
34080 ret = 0;
34081 } else {
34082 /* Check for casting already in the list */
34083 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
34084 #ifdef SWIGRUNTIME_DEBUG
34085 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
34086 #endif
34087 if (!ocast) ret = 0;
34088 }
34089 }
34090
34091 if (!ret) {
34092 #ifdef SWIGRUNTIME_DEBUG
34093 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
34094 #endif
34095 if (type->cast) {
34096 type->cast->prev = cast;
34097 cast->next = type->cast;
34098 }
34099 type->cast = cast;
34100 }
34101 cast++;
34102 }
34103 /* Set entry in modules->types array equal to the type */
34104 swig_module.types[i] = type;
34105 }
34106 swig_module.types[i] = 0;
34107
34108 #ifdef SWIGRUNTIME_DEBUG
34109 printf("**** SWIG_InitializeModule: Cast List ******\n");
34110 for (i = 0; i < swig_module.size; ++i) {
34111 int j = 0;
34112 swig_cast_info *cast = swig_module.cast_initial[i];
34113 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
34114 while (cast->type) {
34115 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
34116 cast++;
34117 ++j;
34118 }
34119 printf("---- Total casts: %d\n",j);
34120 }
34121 printf("**** SWIG_InitializeModule: Cast List ******\n");
34122 #endif
34123 }
34124
34125 /* This function will propagate the clientdata field of type to
34126 * any new swig_type_info structures that have been added into the list
34127 * of equivalent types. It is like calling
34128 * SWIG_TypeClientData(type, clientdata) a second time.
34129 */
34130 SWIGRUNTIME void
34131 SWIG_PropagateClientData(void) {
34132 size_t i;
34133 swig_cast_info *equiv;
34134 static int init_run = 0;
34135
34136 if (init_run) return;
34137 init_run = 1;
34138
34139 for (i = 0; i < swig_module.size; i++) {
34140 if (swig_module.types[i]->clientdata) {
34141 equiv = swig_module.types[i]->cast;
34142 while (equiv) {
34143 if (!equiv->converter) {
34144 if (equiv->type && !equiv->type->clientdata)
34145 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
34146 }
34147 equiv = equiv->next;
34148 }
34149 }
34150 }
34151 }
34152
34153 #ifdef __cplusplus
34154 #if 0
34155 {
34156 /* c-mode */
34157 #endif
34158 }
34159 #endif
34160
34161
34162
34163 #ifdef __cplusplus
34164 extern "C" {
34165 #endif
34166
34167 /* Python-specific SWIG API */
34168 #define SWIG_newvarlink() SWIG_Python_newvarlink()
34169 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
34170 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
34171
34172 /* -----------------------------------------------------------------------------
34173 * global variable support code.
34174 * ----------------------------------------------------------------------------- */
34175
34176 typedef struct swig_globalvar {
34177 char *name; /* Name of global variable */
34178 PyObject *(*get_attr)(void); /* Return the current value */
34179 int (*set_attr)(PyObject *); /* Set the value */
34180 struct swig_globalvar *next;
34181 } swig_globalvar;
34182
34183 typedef struct swig_varlinkobject {
34184 PyObject_HEAD
34185 swig_globalvar *vars;
34186 } swig_varlinkobject;
34187
34188 SWIGINTERN PyObject *
34189 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
34190 return PyString_FromString("<Swig global variables>");
34191 }
34192
34193 SWIGINTERN PyObject *
34194 swig_varlink_str(swig_varlinkobject *v) {
34195 PyObject *str = PyString_FromString("(");
34196 swig_globalvar *var;
34197 for (var = v->vars; var; var=var->next) {
34198 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
34199 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
34200 }
34201 PyString_ConcatAndDel(&str,PyString_FromString(")"));
34202 return str;
34203 }
34204
34205 SWIGINTERN int
34206 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
34207 PyObject *str = swig_varlink_str(v);
34208 fprintf(fp,"Swig global variables ");
34209 fprintf(fp,"%s\n", PyString_AsString(str));
34210 Py_DECREF(str);
34211 return 0;
34212 }
34213
34214 SWIGINTERN void
34215 swig_varlink_dealloc(swig_varlinkobject *v) {
34216 swig_globalvar *var = v->vars;
34217 while (var) {
34218 swig_globalvar *n = var->next;
34219 free(var->name);
34220 free(var);
34221 var = n;
34222 }
34223 }
34224
34225 SWIGINTERN PyObject *
34226 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
34227 PyObject *res = NULL;
34228 swig_globalvar *var = v->vars;
34229 while (var) {
34230 if (strcmp(var->name,n) == 0) {
34231 res = (*var->get_attr)();
34232 break;
34233 }
34234 var = var->next;
34235 }
34236 if (res == NULL && !PyErr_Occurred()) {
34237 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
34238 }
34239 return res;
34240 }
34241
34242 SWIGINTERN int
34243 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
34244 int res = 1;
34245 swig_globalvar *var = v->vars;
34246 while (var) {
34247 if (strcmp(var->name,n) == 0) {
34248 res = (*var->set_attr)(p);
34249 break;
34250 }
34251 var = var->next;
34252 }
34253 if (res == 1 && !PyErr_Occurred()) {
34254 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
34255 }
34256 return res;
34257 }
34258
34259 SWIGINTERN PyTypeObject*
34260 swig_varlink_type(void) {
34261 static char varlink__doc__[] = "Swig var link object";
34262 static PyTypeObject varlink_type;
34263 static int type_init = 0;
34264 if (!type_init) {
34265 const PyTypeObject tmp
34266 = {
34267 PyObject_HEAD_INIT(NULL)
34268 0, /* Number of items in variable part (ob_size) */
34269 (char *)"swigvarlink", /* Type name (tp_name) */
34270 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
34271 0, /* Itemsize (tp_itemsize) */
34272 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
34273 (printfunc) swig_varlink_print, /* Print (tp_print) */
34274 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
34275 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
34276 0, /* tp_compare */
34277 (reprfunc) swig_varlink_repr, /* tp_repr */
34278 0, /* tp_as_number */
34279 0, /* tp_as_sequence */
34280 0, /* tp_as_mapping */
34281 0, /* tp_hash */
34282 0, /* tp_call */
34283 (reprfunc)swig_varlink_str, /* tp_str */
34284 0, /* tp_getattro */
34285 0, /* tp_setattro */
34286 0, /* tp_as_buffer */
34287 0, /* tp_flags */
34288 varlink__doc__, /* tp_doc */
34289 0, /* tp_traverse */
34290 0, /* tp_clear */
34291 0, /* tp_richcompare */
34292 0, /* tp_weaklistoffset */
34293 #if PY_VERSION_HEX >= 0x02020000
34294 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
34295 #endif
34296 #if PY_VERSION_HEX >= 0x02030000
34297 0, /* tp_del */
34298 #endif
34299 #ifdef COUNT_ALLOCS
34300 0,0,0,0 /* tp_alloc -> tp_next */
34301 #endif
34302 };
34303 varlink_type = tmp;
34304 varlink_type.ob_type = &PyType_Type;
34305 type_init = 1;
34306 }
34307 return &varlink_type;
34308 }
34309
34310 /* Create a variable linking object for use later */
34311 SWIGINTERN PyObject *
34312 SWIG_Python_newvarlink(void) {
34313 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
34314 if (result) {
34315 result->vars = 0;
34316 }
34317 return ((PyObject*) result);
34318 }
34319
34320 SWIGINTERN void
34321 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
34322 swig_varlinkobject *v = (swig_varlinkobject *) p;
34323 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
34324 if (gv) {
34325 size_t size = strlen(name)+1;
34326 gv->name = (char *)malloc(size);
34327 if (gv->name) {
34328 strncpy(gv->name,name,size);
34329 gv->get_attr = get_attr;
34330 gv->set_attr = set_attr;
34331 gv->next = v->vars;
34332 }
34333 }
34334 v->vars = gv;
34335 }
34336
34337 SWIGINTERN PyObject *
34338 SWIG_globals() {
34339 static PyObject *_SWIG_globals = 0;
34340 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
34341 return _SWIG_globals;
34342 }
34343
34344 /* -----------------------------------------------------------------------------
34345 * constants/methods manipulation
34346 * ----------------------------------------------------------------------------- */
34347
34348 /* Install Constants */
34349 SWIGINTERN void
34350 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
34351 PyObject *obj = 0;
34352 size_t i;
34353 for (i = 0; constants[i].type; ++i) {
34354 switch(constants[i].type) {
34355 case SWIG_PY_POINTER:
34356 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
34357 break;
34358 case SWIG_PY_BINARY:
34359 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
34360 break;
34361 default:
34362 obj = 0;
34363 break;
34364 }
34365 if (obj) {
34366 PyDict_SetItemString(d, constants[i].name, obj);
34367 Py_DECREF(obj);
34368 }
34369 }
34370 }
34371
34372 /* -----------------------------------------------------------------------------*/
34373 /* Fix SwigMethods to carry the callback ptrs when needed */
34374 /* -----------------------------------------------------------------------------*/
34375
34376 SWIGINTERN void
34377 SWIG_Python_FixMethods(PyMethodDef *methods,
34378 swig_const_info *const_table,
34379 swig_type_info **types,
34380 swig_type_info **types_initial) {
34381 size_t i;
34382 for (i = 0; methods[i].ml_name; ++i) {
34383 const char *c = methods[i].ml_doc;
34384 if (c && (c = strstr(c, "swig_ptr: "))) {
34385 int j;
34386 swig_const_info *ci = 0;
34387 const char *name = c + 10;
34388 for (j = 0; const_table[j].type; ++j) {
34389 if (strncmp(const_table[j].name, name,
34390 strlen(const_table[j].name)) == 0) {
34391 ci = &(const_table[j]);
34392 break;
34393 }
34394 }
34395 if (ci) {
34396 size_t shift = (ci->ptype) - types;
34397 swig_type_info *ty = types_initial[shift];
34398 size_t ldoc = (c - methods[i].ml_doc);
34399 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
34400 char *ndoc = (char*)malloc(ldoc + lptr + 10);
34401 if (ndoc) {
34402 char *buff = ndoc;
34403 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
34404 if (ptr) {
34405 strncpy(buff, methods[i].ml_doc, ldoc);
34406 buff += ldoc;
34407 strncpy(buff, "swig_ptr: ", 10);
34408 buff += 10;
34409 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
34410 methods[i].ml_doc = ndoc;
34411 }
34412 }
34413 }
34414 }
34415 }
34416 }
34417
34418 #ifdef __cplusplus
34419 }
34420 #endif
34421
34422 /* -----------------------------------------------------------------------------*
34423 * Partial Init method
34424 * -----------------------------------------------------------------------------*/
34425
34426 #ifdef __cplusplus
34427 extern "C"
34428 #endif
34429 SWIGEXPORT void SWIG_init(void) {
34430 PyObject *m, *d;
34431
34432 /* Fix SwigMethods to carry the callback ptrs when needed */
34433 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
34434
34435 m = Py_InitModule((char *) SWIG_name, SwigMethods);
34436 d = PyModule_GetDict(m);
34437
34438 SWIG_InitializeModule(0);
34439 SWIG_InstallConstants(d,swig_const_table);
34440
34441
34442 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
34443 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
34444 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
34445 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
34446 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
34447 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
34448 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
34449 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
34450 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
34451 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
34452 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
34453 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
34454 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
34455 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
34456 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
34457 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
34458 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
34459 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
34460 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
34461 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
34462 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
34463 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
34464 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
34465 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
34466 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
34467 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
34468 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
34469 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
34470 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
34471 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
34472 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
34473 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
34474 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
34475 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
34476 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
34477 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
34478 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
34479 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
34480 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
34481 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
34482 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
34483 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
34484 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
34485 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
34486 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
34487 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
34488 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
34489 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
34490 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
34491 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
34492 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
34493 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
34494 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
34495 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
34496 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
34497 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
34498 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
34499 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
34500 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
34501 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
34502 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
34503 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
34504 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
34505 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
34506 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
34507 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
34508 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
34509 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
34510 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
34511 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
34512 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
34513 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
34514 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
34515 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
34516 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
34517 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
34518 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
34519 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
34520 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
34521 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
34522 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
34523 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
34524 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
34525 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
34526 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
34527 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
34528 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
34529 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
34530 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
34531 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
34532 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
34533 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
34534 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
34535 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
34536 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
34537 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
34538 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
34539 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
34540 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
34541 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
34542 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
34543 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
34544 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
34545 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
34546 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
34547 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
34548 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
34549 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
34550 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
34551 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
34552 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
34553 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
34554 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
34555 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
34556 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
34557 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
34558 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
34559 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
34560 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
34561 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
34562 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
34563 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
34564 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
34565 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
34566 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
34567 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
34568 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
34569 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
34570 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
34571 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
34572 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
34573 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
34574
34575 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
34576
34577 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
34578 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
34579 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
34580 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
34581 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
34582 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
34583 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
34584 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
34585 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
34586 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
34587 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
34588 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
34589 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
34590 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
34591 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
34592 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
34593 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
34594 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
34595 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
34596 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
34597 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
34598 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
34599 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
34600 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
34601 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
34602 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
34603 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
34604 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
34605 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
34606 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
34607 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
34608 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
34609 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
34610 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
34611 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
34612 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
34613 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
34614 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
34615 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
34616 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
34617 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
34618 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
34619 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
34620 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
34621 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
34622 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
34623 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
34624 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
34625 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
34626 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
34627 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
34628 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
34629 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
34630 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
34631 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
34632 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
34633 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
34634 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
34635 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
34636 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
34637 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
34638 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
34639 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
34640 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
34641 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
34642 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
34643 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
34644 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
34645 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
34646 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
34647 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
34648 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
34649 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
34650 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
34651 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
34652 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
34653 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
34654 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
34655 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
34656 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
34657 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
34658 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
34659 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
34660 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
34661 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
34662 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
34663 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
34664 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
34665 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
34666 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
34667 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
34668 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
34669 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
34670 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
34671 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
34672 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
34673 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
34674 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
34675 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
34676 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
34677 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
34678 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
34679 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
34680 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
34681 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
34682 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
34683 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
34684 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
34685 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
34686 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
34687 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
34688 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
34689 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
34690 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
34691 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
34692 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
34693 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
34694 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
34695 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
34696 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
34697 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
34698 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
34699 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
34700 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
34701 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
34702 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
34703 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
34704 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
34705 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
34706 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
34707 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
34708 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
34709 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
34710 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
34711 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
34712 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
34713 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
34714 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
34715 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
34716 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
34717 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
34718 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
34719 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
34720 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
34721 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
34722 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
34723 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
34724 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
34725 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
34726 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
34727 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
34728 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
34729 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
34730 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
34731 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
34732 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
34733 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
34734 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
34735 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
34736 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
34737 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
34738 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
34739 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
34740 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
34741 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
34742 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
34743 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
34744 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
34745 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
34746 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
34747 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
34748 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
34749 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
34750 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
34751 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
34752 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
34753 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
34754 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
34755 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
34756 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
34757 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
34758 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
34759 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
34760 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
34761 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
34762 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
34763 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
34764 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
34765 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
34766 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
34767 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
34768 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
34769 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
34770 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
34771 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
34772 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
34773 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
34774 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
34775 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
34776 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
34777 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
34778 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
34779 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
34780 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
34781 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
34782 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
34783 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
34784 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
34785 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
34786 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
34787 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
34788 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
34789 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
34790 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
34791 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
34792 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
34793 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
34794 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
34795 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
34796 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
34797 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
34798 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
34799 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
34800 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
34801 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
34802 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
34803 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
34804 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
34805 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
34806 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
34807 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
34808 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
34809 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
34810 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
34811 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
34812 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
34813 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
34814 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
34815 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
34816 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
34817 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
34818 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
34819 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
34820 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
34821 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
34822 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
34823 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
34824 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
34825 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
34826 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
34827 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
34828 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
34829 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
34830 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
34831 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
34832 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
34833 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
34834 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
34835 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
34836 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
34837 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
34838 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
34839 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
34840 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
34841 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
34842 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
34843 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
34844 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
34845 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
34846 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
34847 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
34848 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
34849 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
34850 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
34851 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
34852 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
34853 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
34854 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
34855 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
34856 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
34857 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
34858 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
34859 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
34860 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
34861 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
34862 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
34863 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
34864 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
34865 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
34866 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
34867 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
34868 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
34869 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
34870 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
34871 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
34872 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
34873 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
34874 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
34875 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
34876 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
34877 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
34878 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
34879 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
34880 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
34881 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
34882 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
34883 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
34884 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
34885 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
34886 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
34887 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
34888 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
34889 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
34890 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
34891 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
34892 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
34893 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
34894 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
34895 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
34896
34897 // Work around a chicken/egg problem in drawlist.cpp
34898 wxPyDrawList_SetAPIPtr();
34899
34900 }
34901