]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
Change wx.DC inheritance hierarchy to match reality
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_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 wxSize wxBitmap_GetSize(wxBitmap *self){
2947 wxSize size(self->GetWidth(), self->GetHeight());
2948 return size;
2949 }
2950 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2951 wxMask *mask = new wxMask(*self, colour);
2952 self->SetMask(mask);
2953 }
2954 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2955 self->SetWidth(size.x);
2956 self->SetHeight(size.y);
2957 }
2958 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2959 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2960
2961 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2962 // appears to me that the other platforms are already doing it, so I'll just
2963 // automatically do it for wxMSW here.
2964 #ifdef __WXMSW__
2965 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2966 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2967 #else
2968 #define wxPy_premultiply(p, a) (p)
2969 #define wxPy_unpremultiply(p, a) (p)
2970 #endif
2971
2972
2973 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2974 buffer data, int DATASIZE,
2975 buffer alpha, int ALPHASIZE)
2976 {
2977 if (DATASIZE != width*height*3) {
2978 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2979 return NULL;
2980 }
2981
2982 if (ALPHASIZE != width*height) {
2983 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2984 return NULL;
2985 }
2986
2987 wxBitmap* bmp = new wxBitmap(width, height, 32);
2988 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2989 if (! pixData) {
2990 // raise an exception...
2991 wxPyErr_SetString(PyExc_RuntimeError,
2992 "Failed to gain raw access to bitmap data.");
2993 return NULL;
2994 }
2995
2996 pixData.UseAlpha();
2997 wxAlphaPixelData::Iterator p(pixData);
2998 for (int y=0; y<height; y++) {
2999 wxAlphaPixelData::Iterator rowStart = p;
3000 for (int x=0; x<width; x++) {
3001 byte a = *(alpha++);
3002 p.Red() = wxPy_premultiply(*(data++), a);
3003 p.Green() = wxPy_premultiply(*(data++), a);
3004 p.Blue() = wxPy_premultiply(*(data++), a);
3005 p.Alpha() = a;
3006 ++p;
3007 }
3008 p = rowStart;
3009 p.OffsetY(pixData, 1);
3010 }
3011 return bmp;
3012 }
3013
3014 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3015 {
3016 if (DATASIZE != width*height*3) {
3017 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3018 return NULL;
3019 }
3020
3021 wxBitmap* bmp = new wxBitmap(width, height, 24);
3022 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return NULL;
3028 }
3029
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 return bmp;
3043 }
3044
3045
3046 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3047 {
3048 if (DATASIZE != width*height*4) {
3049 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3050 return NULL;
3051 }
3052
3053 wxBitmap* bmp = new wxBitmap(width, height, 32);
3054 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3055 if (! pixData) {
3056 // raise an exception...
3057 wxPyErr_SetString(PyExc_RuntimeError,
3058 "Failed to gain raw access to bitmap data.");
3059 return NULL;
3060 }
3061
3062 pixData.UseAlpha();
3063 wxAlphaPixelData::Iterator p(pixData);
3064 for (int y=0; y<height; y++) {
3065 wxAlphaPixelData::Iterator rowStart = p;
3066 for (int x=0; x<width; x++) {
3067 byte a = data[3];
3068 p.Red() = wxPy_premultiply(*(data++), a);
3069 p.Green() = wxPy_premultiply(*(data++), a);
3070 p.Blue() = wxPy_premultiply(*(data++), a);
3071 p.Alpha() = a; data++;
3072 ++p;
3073 }
3074 p = rowStart;
3075 p.OffsetY(pixData, 1);
3076 }
3077 return bmp;
3078 }
3079
3080
3081 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3082
3083 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3084 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3085 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3086 self->Red() = red;
3087 self->Green() = green;
3088 self->Blue() = blue;
3089 }
3090 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3091 PyObject* rv = PyTuple_New(3);
3092 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3093 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3094 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3095 return rv;
3096 }
3097
3098 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3099
3100 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3101 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3102 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3103 self->Red() = wxPy_premultiply(red, alpha);
3104 self->Green() = wxPy_premultiply(green, alpha);
3105 self->Blue() = wxPy_premultiply(blue, alpha);
3106 self->Alpha() = alpha;
3107 }
3108 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3109 PyObject* rv = PyTuple_New(4);
3110 int red = self->Red();
3111 int green = self->Green();
3112 int blue = self->Blue();
3113 int alpha = self->Alpha();
3114
3115 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3116 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3117 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3118 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3119 return rv;
3120 }
3121 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3122 if ( !colour.Ok() )
3123 return new wxMask(bitmap, *wxBLACK);
3124 else
3125 return new wxMask(bitmap, colour);
3126 }
3127
3128 #include <wx/iconbndl.h>
3129
3130 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3131 wxIcon* icon = new wxIcon();
3132 icon->CopyFromBitmap(bmp);
3133 return icon;
3134 }
3135 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3136 char** cArray = NULL;
3137 wxIcon* icon;
3138
3139 cArray = ConvertListOfStrings(listOfStrings);
3140 if (! cArray)
3141 return NULL;
3142 icon = new wxIcon(cArray);
3143 delete [] cArray;
3144 return icon;
3145 }
3146 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3147
3148
3149
3150 return new wxIconLocation(*filename);
3151
3152 }
3153 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3154
3155
3156
3157 // do nothing
3158
3159 }
3160 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3161
3162
3163
3164 return -1;
3165
3166 }
3167 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3168 #ifdef __WXGTK__
3169 wxImage img(cursorName, type);
3170 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3171 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3172 return new wxCursor(img);
3173 #else
3174 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3175 #endif
3176 }
3177
3178
3179 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3180 (*self) ++;
3181 }
3182 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3183 return self->operator bool();
3184 }
3185
3186 #include <wx/fontutil.h>
3187 #include <wx/fontmap.h>
3188 #include <wx/fontenum.h>
3189
3190 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3191 return self->ToString();
3192 }
3193
3194 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3195 static wxNativeEncodingInfo info;
3196 if ( wxGetNativeFontEncoding(encoding, &info) )
3197 return &info;
3198 else
3199 return NULL;
3200 }
3201
3202
3203 SWIGINTERNINLINE PyObject *
3204 SWIG_From_size_t (size_t value)
3205 {
3206 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3207 }
3208
3209
3210 SWIGINTERNINLINE int
3211 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3212 {
3213 unsigned long v;
3214 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3215 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3216 return res;
3217 }
3218
3219 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3220 wxFontEncoding alt_enc;
3221 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3222 return PyInt_FromLong(alt_enc);
3223 else {
3224 Py_INCREF(Py_None);
3225 return Py_None;
3226 }
3227 }
3228 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3229 wxNativeFontInfo nfi;
3230 nfi.FromString(info);
3231 return new wxFont(nfi);
3232 }
3233 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3234 return wxFont::New(pointSize, family, flags, face, encoding);
3235 }
3236 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3237 return wxFontBase::New(pixelSize, family,
3238 style, weight, underlined,
3239 face, encoding);
3240 }
3241 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3242 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3243 }
3244 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3245 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3246
3247 class wxPyFontEnumerator : public wxFontEnumerator {
3248 public:
3249 wxPyFontEnumerator() {}
3250 ~wxPyFontEnumerator() {}
3251
3252 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3253 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3254
3255 PYPRIVATE;
3256 };
3257
3258 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3259 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3260
3261
3262 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3263 PyObject* ret;
3264 wxArrayString arr = wxFontEnumerator::GetEncodings();
3265 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3266 ret = wxArrayString2PyList_helper(arr);
3267 wxPyEndBlockThreads(blocked);
3268 return ret;
3269 }
3270 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3271 PyObject* ret;
3272 wxArrayString arr = wxFontEnumerator::GetFacenames();
3273 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3274 ret = wxArrayString2PyList_helper(arr);
3275 wxPyEndBlockThreads(blocked);
3276 return ret;
3277 }
3278
3279 #include <locale.h>
3280
3281 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3282 wxLocale* loc;
3283 if (language == -1)
3284 loc = new wxLocale();
3285 else
3286 loc = new wxLocale(language, flags);
3287 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3288 // for the floating point conversions and such to work right.
3289 #if PY_VERSION_HEX < 0x02040000
3290 setlocale(LC_NUMERIC, "C");
3291 #endif
3292 return loc;
3293 }
3294 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3295 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3296 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3297 // for the floating point conversions and such to work right.
3298 #if PY_VERSION_HEX < 0x02040000
3299 setlocale(LC_NUMERIC, "C");
3300 #endif
3301 return rc;
3302 }
3303 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3304 bool rc = self->Init(language, flags);
3305 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3306 // for the floating point conversions and such to work right.
3307 #if PY_VERSION_HEX < 0x02040000
3308 setlocale(LC_NUMERIC, "C");
3309 #endif
3310 return rc;
3311 }
3312
3313 class wxPyLocale : public wxLocale
3314 {
3315 public:
3316 wxPyLocale();
3317
3318 wxPyLocale(const wxChar *szName, // name (for messages)
3319 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3320 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3321 bool bLoadDefault = true, // preload wxstd.mo?
3322 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3323
3324 wxPyLocale(int language, // wxLanguage id or custom language
3325 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3326
3327 ~wxPyLocale();
3328
3329 virtual const wxChar *GetString(const wxChar *szOrigString,
3330 const wxChar *szDomain = NULL) const;
3331 virtual const wxChar *GetString(const wxChar *szOrigString,
3332 const wxChar *szOrigString2, size_t n,
3333 const wxChar *szDomain = NULL) const;
3334
3335 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3336 const wxChar *szDomain = NULL) const;
3337 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3338 const wxChar *szOrigString2, size_t n,
3339 const wxChar *szDomain = NULL) const;
3340
3341 PYPRIVATE;
3342 private:
3343 DECLARE_NO_COPY_CLASS(wxPyLocale)
3344 };
3345
3346 wxPyLocale::wxPyLocale() : wxLocale()
3347 {
3348 }
3349
3350 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3351 const wxChar *szShort, // dir prefix (for msg files)
3352 const wxChar *szLocale, // locale (for setlocale)
3353 bool bLoadDefault, // preload wxstd.mo?
3354 bool bConvertEncoding) // convert Win<->Unix if necessary?
3355 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3356 {
3357 }
3358
3359 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3360 int flags) : wxLocale(language, flags)
3361 {
3362 }
3363
3364 wxPyLocale::~wxPyLocale()
3365 {
3366 }
3367
3368 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3369 const wxChar *szDomain) const
3370 {
3371 wxChar *str = GetSingularString(szOrigString, szDomain);
3372 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3373 }
3374
3375 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3376 const wxChar *szOrigString2, size_t n,
3377 const wxChar *szDomain) const
3378 {
3379 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3380 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3381 }
3382
3383 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3384 const wxChar *szDomain) const
3385 {
3386 bool found;
3387 static wxString str;
3388 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.
3389 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3390 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3391 PyObject* param1 = wx2PyString(szOrigString);
3392 PyObject* param2 = wx2PyString(szDomain);
3393 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3394 Py_DECREF(param1);
3395 Py_DECREF(param2);
3396 if (ret) {
3397 str = Py2wxString(ret);
3398 Py_DECREF(ret);
3399 }
3400 }
3401 wxPyEndBlockThreads(blocked);
3402 return (found ? (wxChar*)str.c_str() : NULL);
3403 }
3404
3405 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3406 const wxChar *szOrigString2, size_t n,
3407 const wxChar *szDomain) const
3408 {
3409 bool found;
3410 static wxString str;
3411 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.
3412 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3413 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3414 PyObject* param1 = wx2PyString(szOrigString);
3415 PyObject* param2 = wx2PyString(szOrigString2);
3416 PyObject* param4 = wx2PyString(szDomain);
3417 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3418 Py_DECREF(param1);
3419 Py_DECREF(param2);
3420 Py_DECREF(param4);
3421 if( ret) {
3422 str = Py2wxString(ret);
3423 Py_DECREF(ret);
3424 }
3425 }
3426 wxPyEndBlockThreads(blocked);
3427 return (found ? (wxChar*)str.c_str() : NULL);
3428 }
3429
3430 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3431 wxPyLocale* loc;
3432 if (language == -1)
3433 loc = new wxPyLocale();
3434 else
3435 loc = new wxPyLocale(language, flags);
3436 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3437 // for the floating point conversions and such to work right.
3438 #if PY_VERSION_HEX < 0x02040000
3439 setlocale(LC_NUMERIC, "C");
3440 #endif
3441 return loc;
3442 }
3443
3444 #include "wx/wxPython/pydrawxxx.h"
3445
3446 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3447 wxColour col;
3448 self->GetPixel(x, y, &col);
3449 return col;
3450 }
3451 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3452 wxColour col;
3453 self->GetPixel(pt, &col);
3454 return col;
3455 }
3456
3457 SWIGINTERN int
3458 SWIG_AsVal_double (PyObject *obj, double* val)
3459 {
3460 if (PyNumber_Check(obj)) {
3461 if (val) *val = PyFloat_AsDouble(obj);
3462 return SWIG_OK;
3463 }
3464 return SWIG_TypeError;
3465 }
3466
3467 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3468 wxRect rv;
3469 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3470 return rv;
3471 }
3472 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3473 wxRect rect;
3474 self->GetClippingBox(rect);
3475 return rect;
3476 }
3477 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3478 wxArrayInt widths;
3479 self->GetPartialTextExtents(text, widths);
3480 return widths;
3481 }
3482
3483 #define SWIG_From_double PyFloat_FromDouble
3484
3485 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3486 self->SetLogicalOrigin(point.x, point.y);
3487 }
3488 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3489 self->SetDeviceOrigin(point.x, point.y);
3490 }
3491 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3492 self->CalcBoundingBox(point.x, point.y);
3493 }
3494 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3495 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3496 }
3497 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3498 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3499 }
3500 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3501 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3502 }
3503 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3504 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3505 }
3506 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3507 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3508 }
3509 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3510 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3511 }
3512
3513 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3514 *x1 = dc->MinX();
3515 *y1 = dc->MinY();
3516 *x2 = dc->MaxX();
3517 *y2 = dc->MaxY();
3518 }
3519
3520
3521 #include <wx/dcbuffer.h>
3522
3523
3524 #include <wx/dcps.h>
3525
3526
3527 class wxMetaFile : public wxObject {
3528 public:
3529 wxMetaFile(const wxString&)
3530 { wxPyRaiseNotImplemented(); }
3531 };
3532
3533 class wxMetaFileDC : public wxClientDC {
3534 public:
3535 wxMetaFileDC(const wxString&, int, int, const wxString&)
3536 { wxPyRaiseNotImplemented(); }
3537 };
3538
3539
3540
3541 class wxPrinterDC : public wxClientDC {
3542 public:
3543 wxPrinterDC(const wxPrintData&)
3544 { wxPyRaiseNotImplemented(); }
3545
3546 };
3547
3548
3549
3550 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3551 self->AddColour(name, wxColour(red, green, blue));
3552 }
3553
3554 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3555 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3556 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3557 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3558
3559
3560 #include <wx/effects.h>
3561
3562
3563 #include "wx/renderer.h"
3564
3565
3566 SWIGINTERNINLINE PyObject*
3567 SWIG_From_bool (bool value)
3568 {
3569 return PyBool_FromLong(value ? 1 : 0);
3570 }
3571
3572
3573 #include "wx/wxPython/pseudodc.h"
3574
3575 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3576 wxRect rect;
3577 self->GetIdBounds(id, rect);
3578 return rect;
3579 }
3580 #ifdef __cplusplus
3581 extern "C" {
3582 #endif
3583 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3584 PyObject *resultobj = 0;
3585 wxGDIObject *result = 0 ;
3586
3587 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3588 {
3589 if (!wxPyCheckForApp()) SWIG_fail;
3590 PyThreadState* __tstate = wxPyBeginAllowThreads();
3591 result = (wxGDIObject *)new wxGDIObject();
3592 wxPyEndAllowThreads(__tstate);
3593 if (PyErr_Occurred()) SWIG_fail;
3594 }
3595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3596 return resultobj;
3597 fail:
3598 return NULL;
3599 }
3600
3601
3602 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3603 PyObject *resultobj = 0;
3604 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3605 void *argp1 = 0 ;
3606 int res1 = 0 ;
3607 PyObject *swig_obj[1] ;
3608
3609 if (!args) SWIG_fail;
3610 swig_obj[0] = args;
3611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3612 if (!SWIG_IsOK(res1)) {
3613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3614 }
3615 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 delete arg1;
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 resultobj = SWIG_Py_Void();
3624 return resultobj;
3625 fail:
3626 return NULL;
3627 }
3628
3629
3630 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3631 PyObject *resultobj = 0;
3632 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3633 bool result;
3634 void *argp1 = 0 ;
3635 int res1 = 0 ;
3636 PyObject *swig_obj[1] ;
3637
3638 if (!args) SWIG_fail;
3639 swig_obj[0] = args;
3640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3641 if (!SWIG_IsOK(res1)) {
3642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3643 }
3644 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3645 {
3646 PyThreadState* __tstate = wxPyBeginAllowThreads();
3647 result = (bool)(arg1)->IsNull();
3648 wxPyEndAllowThreads(__tstate);
3649 if (PyErr_Occurred()) SWIG_fail;
3650 }
3651 {
3652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3653 }
3654 return resultobj;
3655 fail:
3656 return NULL;
3657 }
3658
3659
3660 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3661 PyObject *obj;
3662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3663 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3664 return SWIG_Py_Void();
3665 }
3666
3667 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3668 return SWIG_Python_InitShadowInstance(args);
3669 }
3670
3671 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3672 PyObject *resultobj = 0;
3673 byte arg1 = (byte) 0 ;
3674 byte arg2 = (byte) 0 ;
3675 byte arg3 = (byte) 0 ;
3676 byte arg4 = (byte) wxALPHA_OPAQUE ;
3677 wxColour *result = 0 ;
3678 unsigned char val1 ;
3679 int ecode1 = 0 ;
3680 unsigned char val2 ;
3681 int ecode2 = 0 ;
3682 unsigned char val3 ;
3683 int ecode3 = 0 ;
3684 unsigned char val4 ;
3685 int ecode4 = 0 ;
3686 PyObject * obj0 = 0 ;
3687 PyObject * obj1 = 0 ;
3688 PyObject * obj2 = 0 ;
3689 PyObject * obj3 = 0 ;
3690 char * kwnames[] = {
3691 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3692 };
3693
3694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3695 if (obj0) {
3696 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3697 if (!SWIG_IsOK(ecode1)) {
3698 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3699 }
3700 arg1 = static_cast< byte >(val1);
3701 }
3702 if (obj1) {
3703 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3704 if (!SWIG_IsOK(ecode2)) {
3705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3706 }
3707 arg2 = static_cast< byte >(val2);
3708 }
3709 if (obj2) {
3710 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3711 if (!SWIG_IsOK(ecode3)) {
3712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3713 }
3714 arg3 = static_cast< byte >(val3);
3715 }
3716 if (obj3) {
3717 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3718 if (!SWIG_IsOK(ecode4)) {
3719 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3720 }
3721 arg4 = static_cast< byte >(val4);
3722 }
3723 {
3724 PyThreadState* __tstate = wxPyBeginAllowThreads();
3725 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3730 return resultobj;
3731 fail:
3732 return NULL;
3733 }
3734
3735
3736 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3737 PyObject *resultobj = 0;
3738 wxString *arg1 = 0 ;
3739 wxColour *result = 0 ;
3740 bool temp1 = false ;
3741 PyObject * obj0 = 0 ;
3742 char * kwnames[] = {
3743 (char *) "colorName", NULL
3744 };
3745
3746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3747 {
3748 arg1 = wxString_in_helper(obj0);
3749 if (arg1 == NULL) SWIG_fail;
3750 temp1 = true;
3751 }
3752 {
3753 if (!wxPyCheckForApp()) SWIG_fail;
3754 PyThreadState* __tstate = wxPyBeginAllowThreads();
3755 result = (wxColour *)new wxColour((wxString const &)*arg1);
3756 wxPyEndAllowThreads(__tstate);
3757 if (PyErr_Occurred()) SWIG_fail;
3758 }
3759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3760 {
3761 if (temp1)
3762 delete arg1;
3763 }
3764 return resultobj;
3765 fail:
3766 {
3767 if (temp1)
3768 delete arg1;
3769 }
3770 return NULL;
3771 }
3772
3773
3774 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj = 0;
3776 unsigned long arg1 ;
3777 wxColour *result = 0 ;
3778 unsigned long val1 ;
3779 int ecode1 = 0 ;
3780 PyObject * obj0 = 0 ;
3781 char * kwnames[] = {
3782 (char *) "colRGB", NULL
3783 };
3784
3785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3786 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3787 if (!SWIG_IsOK(ecode1)) {
3788 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3789 }
3790 arg1 = static_cast< unsigned long >(val1);
3791 {
3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
3793 result = (wxColour *)new wxColour(arg1);
3794 wxPyEndAllowThreads(__tstate);
3795 if (PyErr_Occurred()) SWIG_fail;
3796 }
3797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3798 return resultobj;
3799 fail:
3800 return NULL;
3801 }
3802
3803
3804 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3805 PyObject *resultobj = 0;
3806 wxColour *arg1 = (wxColour *) 0 ;
3807 void *argp1 = 0 ;
3808 int res1 = 0 ;
3809 PyObject *swig_obj[1] ;
3810
3811 if (!args) SWIG_fail;
3812 swig_obj[0] = args;
3813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3814 if (!SWIG_IsOK(res1)) {
3815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3816 }
3817 arg1 = reinterpret_cast< wxColour * >(argp1);
3818 {
3819 PyThreadState* __tstate = wxPyBeginAllowThreads();
3820 delete arg1;
3821
3822 wxPyEndAllowThreads(__tstate);
3823 if (PyErr_Occurred()) SWIG_fail;
3824 }
3825 resultobj = SWIG_Py_Void();
3826 return resultobj;
3827 fail:
3828 return NULL;
3829 }
3830
3831
3832 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3833 PyObject *resultobj = 0;
3834 wxColour *arg1 = (wxColour *) 0 ;
3835 byte result;
3836 void *argp1 = 0 ;
3837 int res1 = 0 ;
3838 PyObject *swig_obj[1] ;
3839
3840 if (!args) SWIG_fail;
3841 swig_obj[0] = args;
3842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3843 if (!SWIG_IsOK(res1)) {
3844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3845 }
3846 arg1 = reinterpret_cast< wxColour * >(argp1);
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 result = (byte)(arg1)->Red();
3850 wxPyEndAllowThreads(__tstate);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
3853 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3854 return resultobj;
3855 fail:
3856 return NULL;
3857 }
3858
3859
3860 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3861 PyObject *resultobj = 0;
3862 wxColour *arg1 = (wxColour *) 0 ;
3863 byte result;
3864 void *argp1 = 0 ;
3865 int res1 = 0 ;
3866 PyObject *swig_obj[1] ;
3867
3868 if (!args) SWIG_fail;
3869 swig_obj[0] = args;
3870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3871 if (!SWIG_IsOK(res1)) {
3872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3873 }
3874 arg1 = reinterpret_cast< wxColour * >(argp1);
3875 {
3876 PyThreadState* __tstate = wxPyBeginAllowThreads();
3877 result = (byte)(arg1)->Green();
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 }
3881 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3882 return resultobj;
3883 fail:
3884 return NULL;
3885 }
3886
3887
3888 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3889 PyObject *resultobj = 0;
3890 wxColour *arg1 = (wxColour *) 0 ;
3891 byte result;
3892 void *argp1 = 0 ;
3893 int res1 = 0 ;
3894 PyObject *swig_obj[1] ;
3895
3896 if (!args) SWIG_fail;
3897 swig_obj[0] = args;
3898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3899 if (!SWIG_IsOK(res1)) {
3900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3901 }
3902 arg1 = reinterpret_cast< wxColour * >(argp1);
3903 {
3904 PyThreadState* __tstate = wxPyBeginAllowThreads();
3905 result = (byte)(arg1)->Blue();
3906 wxPyEndAllowThreads(__tstate);
3907 if (PyErr_Occurred()) SWIG_fail;
3908 }
3909 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3910 return resultobj;
3911 fail:
3912 return NULL;
3913 }
3914
3915
3916 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3917 PyObject *resultobj = 0;
3918 wxColour *arg1 = (wxColour *) 0 ;
3919 byte result;
3920 void *argp1 = 0 ;
3921 int res1 = 0 ;
3922 PyObject *swig_obj[1] ;
3923
3924 if (!args) SWIG_fail;
3925 swig_obj[0] = args;
3926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3927 if (!SWIG_IsOK(res1)) {
3928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3929 }
3930 arg1 = reinterpret_cast< wxColour * >(argp1);
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 result = (byte)(arg1)->Alpha();
3934 wxPyEndAllowThreads(__tstate);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3938 return resultobj;
3939 fail:
3940 return NULL;
3941 }
3942
3943
3944 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945 PyObject *resultobj = 0;
3946 wxColour *arg1 = (wxColour *) 0 ;
3947 bool result;
3948 void *argp1 = 0 ;
3949 int res1 = 0 ;
3950 PyObject *swig_obj[1] ;
3951
3952 if (!args) SWIG_fail;
3953 swig_obj[0] = args;
3954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3955 if (!SWIG_IsOK(res1)) {
3956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3957 }
3958 arg1 = reinterpret_cast< wxColour * >(argp1);
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 result = (bool)(arg1)->Ok();
3962 wxPyEndAllowThreads(__tstate);
3963 if (PyErr_Occurred()) SWIG_fail;
3964 }
3965 {
3966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3967 }
3968 return resultobj;
3969 fail:
3970 return NULL;
3971 }
3972
3973
3974 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3975 PyObject *resultobj = 0;
3976 wxColour *arg1 = (wxColour *) 0 ;
3977 byte arg2 ;
3978 byte arg3 ;
3979 byte arg4 ;
3980 byte arg5 = (byte) wxALPHA_OPAQUE ;
3981 void *argp1 = 0 ;
3982 int res1 = 0 ;
3983 unsigned char val2 ;
3984 int ecode2 = 0 ;
3985 unsigned char val3 ;
3986 int ecode3 = 0 ;
3987 unsigned char val4 ;
3988 int ecode4 = 0 ;
3989 unsigned char val5 ;
3990 int ecode5 = 0 ;
3991 PyObject * obj0 = 0 ;
3992 PyObject * obj1 = 0 ;
3993 PyObject * obj2 = 0 ;
3994 PyObject * obj3 = 0 ;
3995 PyObject * obj4 = 0 ;
3996 char * kwnames[] = {
3997 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3998 };
3999
4000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4002 if (!SWIG_IsOK(res1)) {
4003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4004 }
4005 arg1 = reinterpret_cast< wxColour * >(argp1);
4006 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4007 if (!SWIG_IsOK(ecode2)) {
4008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4009 }
4010 arg2 = static_cast< byte >(val2);
4011 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4012 if (!SWIG_IsOK(ecode3)) {
4013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4014 }
4015 arg3 = static_cast< byte >(val3);
4016 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4017 if (!SWIG_IsOK(ecode4)) {
4018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4019 }
4020 arg4 = static_cast< byte >(val4);
4021 if (obj4) {
4022 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4023 if (!SWIG_IsOK(ecode5)) {
4024 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4025 }
4026 arg5 = static_cast< byte >(val5);
4027 }
4028 {
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 (arg1)->Set(arg2,arg3,arg4,arg5);
4031 wxPyEndAllowThreads(__tstate);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 }
4034 resultobj = SWIG_Py_Void();
4035 return resultobj;
4036 fail:
4037 return NULL;
4038 }
4039
4040
4041 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4042 PyObject *resultobj = 0;
4043 wxColour *arg1 = (wxColour *) 0 ;
4044 unsigned long arg2 ;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 unsigned long val2 ;
4048 int ecode2 = 0 ;
4049 PyObject * obj0 = 0 ;
4050 PyObject * obj1 = 0 ;
4051 char * kwnames[] = {
4052 (char *) "self",(char *) "colRGB", NULL
4053 };
4054
4055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4057 if (!SWIG_IsOK(res1)) {
4058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4059 }
4060 arg1 = reinterpret_cast< wxColour * >(argp1);
4061 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4062 if (!SWIG_IsOK(ecode2)) {
4063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4064 }
4065 arg2 = static_cast< unsigned long >(val2);
4066 {
4067 PyThreadState* __tstate = wxPyBeginAllowThreads();
4068 (arg1)->Set(arg2);
4069 wxPyEndAllowThreads(__tstate);
4070 if (PyErr_Occurred()) SWIG_fail;
4071 }
4072 resultobj = SWIG_Py_Void();
4073 return resultobj;
4074 fail:
4075 return NULL;
4076 }
4077
4078
4079 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4080 PyObject *resultobj = 0;
4081 wxColour *arg1 = (wxColour *) 0 ;
4082 wxString *arg2 = 0 ;
4083 void *argp1 = 0 ;
4084 int res1 = 0 ;
4085 bool temp2 = false ;
4086 PyObject * obj0 = 0 ;
4087 PyObject * obj1 = 0 ;
4088 char * kwnames[] = {
4089 (char *) "self",(char *) "colourName", NULL
4090 };
4091
4092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4094 if (!SWIG_IsOK(res1)) {
4095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4096 }
4097 arg1 = reinterpret_cast< wxColour * >(argp1);
4098 {
4099 arg2 = wxString_in_helper(obj1);
4100 if (arg2 == NULL) SWIG_fail;
4101 temp2 = true;
4102 }
4103 {
4104 PyThreadState* __tstate = wxPyBeginAllowThreads();
4105 (arg1)->InitFromName((wxString const &)*arg2);
4106 wxPyEndAllowThreads(__tstate);
4107 if (PyErr_Occurred()) SWIG_fail;
4108 }
4109 resultobj = SWIG_Py_Void();
4110 {
4111 if (temp2)
4112 delete arg2;
4113 }
4114 return resultobj;
4115 fail:
4116 {
4117 if (temp2)
4118 delete arg2;
4119 }
4120 return NULL;
4121 }
4122
4123
4124 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4125 PyObject *resultobj = 0;
4126 wxColour *arg1 = (wxColour *) 0 ;
4127 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4128 wxString result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 long val2 ;
4132 int ecode2 = 0 ;
4133 PyObject * obj0 = 0 ;
4134 PyObject * obj1 = 0 ;
4135 char * kwnames[] = {
4136 (char *) "self",(char *) "flags", NULL
4137 };
4138
4139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4141 if (!SWIG_IsOK(res1)) {
4142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4143 }
4144 arg1 = reinterpret_cast< wxColour * >(argp1);
4145 if (obj1) {
4146 ecode2 = SWIG_AsVal_long(obj1, &val2);
4147 if (!SWIG_IsOK(ecode2)) {
4148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4149 }
4150 arg2 = static_cast< long >(val2);
4151 }
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 result = ((wxColour const *)arg1)->GetAsString(arg2);
4155 wxPyEndAllowThreads(__tstate);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 {
4159 #if wxUSE_UNICODE
4160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4161 #else
4162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4163 #endif
4164 }
4165 return resultobj;
4166 fail:
4167 return NULL;
4168 }
4169
4170
4171 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4172 PyObject *resultobj = 0;
4173 wxColour *arg1 = (wxColour *) 0 ;
4174 long result;
4175 void *argp1 = 0 ;
4176 int res1 = 0 ;
4177 PyObject *swig_obj[1] ;
4178
4179 if (!args) SWIG_fail;
4180 swig_obj[0] = args;
4181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4182 if (!SWIG_IsOK(res1)) {
4183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4184 }
4185 arg1 = reinterpret_cast< wxColour * >(argp1);
4186 {
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 result = (long)((wxColour const *)arg1)->GetPixel();
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = SWIG_From_long(static_cast< long >(result));
4193 return resultobj;
4194 fail:
4195 return NULL;
4196 }
4197
4198
4199 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4200 PyObject *resultobj = 0;
4201 wxColour *arg1 = (wxColour *) 0 ;
4202 PyObject *arg2 = (PyObject *) 0 ;
4203 bool result;
4204 void *argp1 = 0 ;
4205 int res1 = 0 ;
4206 PyObject * obj0 = 0 ;
4207 PyObject * obj1 = 0 ;
4208 char * kwnames[] = {
4209 (char *) "self",(char *) "other", NULL
4210 };
4211
4212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4214 if (!SWIG_IsOK(res1)) {
4215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4216 }
4217 arg1 = reinterpret_cast< wxColour * >(argp1);
4218 arg2 = obj1;
4219 {
4220 result = (bool)wxColour___eq__(arg1,arg2);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 {
4224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4225 }
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj = 0;
4234 wxColour *arg1 = (wxColour *) 0 ;
4235 PyObject *arg2 = (PyObject *) 0 ;
4236 bool result;
4237 void *argp1 = 0 ;
4238 int res1 = 0 ;
4239 PyObject * obj0 = 0 ;
4240 PyObject * obj1 = 0 ;
4241 char * kwnames[] = {
4242 (char *) "self",(char *) "other", NULL
4243 };
4244
4245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4247 if (!SWIG_IsOK(res1)) {
4248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4249 }
4250 arg1 = reinterpret_cast< wxColour * >(argp1);
4251 arg2 = obj1;
4252 {
4253 result = (bool)wxColour___ne__(arg1,arg2);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 {
4257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4258 }
4259 return resultobj;
4260 fail:
4261 return NULL;
4262 }
4263
4264
4265 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4266 PyObject *resultobj = 0;
4267 wxColour *arg1 = (wxColour *) 0 ;
4268 bool arg2 = (bool) false ;
4269 PyObject *result = 0 ;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 bool val2 ;
4273 int ecode2 = 0 ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 char * kwnames[] = {
4277 (char *) "self",(char *) "includeAlpha", NULL
4278 };
4279
4280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4282 if (!SWIG_IsOK(res1)) {
4283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4284 }
4285 arg1 = reinterpret_cast< wxColour * >(argp1);
4286 if (obj1) {
4287 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4288 if (!SWIG_IsOK(ecode2)) {
4289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4290 }
4291 arg2 = static_cast< bool >(val2);
4292 }
4293 {
4294 result = (PyObject *)wxColour_Get(arg1,arg2);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = result;
4298 return resultobj;
4299 fail:
4300 return NULL;
4301 }
4302
4303
4304 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4305 PyObject *resultobj = 0;
4306 wxColour *arg1 = (wxColour *) 0 ;
4307 unsigned long result;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 PyObject *swig_obj[1] ;
4311
4312 if (!args) SWIG_fail;
4313 swig_obj[0] = args;
4314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4315 if (!SWIG_IsOK(res1)) {
4316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4317 }
4318 arg1 = reinterpret_cast< wxColour * >(argp1);
4319 {
4320 result = (unsigned long)wxColour_GetRGB(arg1);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4324 return resultobj;
4325 fail:
4326 return NULL;
4327 }
4328
4329
4330 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4331 PyObject *obj;
4332 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4333 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4334 return SWIG_Py_Void();
4335 }
4336
4337 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4338 return SWIG_Python_InitShadowInstance(args);
4339 }
4340
4341 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj = 0;
4343 int arg1 ;
4344 unsigned char *arg2 = (unsigned char *) 0 ;
4345 unsigned char *arg3 = (unsigned char *) 0 ;
4346 unsigned char *arg4 = (unsigned char *) 0 ;
4347 wxPalette *result = 0 ;
4348 int val1 ;
4349 int ecode1 = 0 ;
4350 void *argp2 = 0 ;
4351 int res2 = 0 ;
4352 void *argp3 = 0 ;
4353 int res3 = 0 ;
4354 void *argp4 = 0 ;
4355 int res4 = 0 ;
4356 PyObject * obj0 = 0 ;
4357 PyObject * obj1 = 0 ;
4358 PyObject * obj2 = 0 ;
4359 PyObject * obj3 = 0 ;
4360 char * kwnames[] = {
4361 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4362 };
4363
4364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4365 ecode1 = SWIG_AsVal_int(obj0, &val1);
4366 if (!SWIG_IsOK(ecode1)) {
4367 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4368 }
4369 arg1 = static_cast< int >(val1);
4370 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4371 if (!SWIG_IsOK(res2)) {
4372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4373 }
4374 arg2 = reinterpret_cast< unsigned char * >(argp2);
4375 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4376 if (!SWIG_IsOK(res3)) {
4377 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4378 }
4379 arg3 = reinterpret_cast< unsigned char * >(argp3);
4380 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4381 if (!SWIG_IsOK(res4)) {
4382 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4383 }
4384 arg4 = reinterpret_cast< unsigned char * >(argp4);
4385 {
4386 if (!wxPyCheckForApp()) SWIG_fail;
4387 PyThreadState* __tstate = wxPyBeginAllowThreads();
4388 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4400 PyObject *resultobj = 0;
4401 wxPalette *arg1 = (wxPalette *) 0 ;
4402 void *argp1 = 0 ;
4403 int res1 = 0 ;
4404 PyObject *swig_obj[1] ;
4405
4406 if (!args) SWIG_fail;
4407 swig_obj[0] = args;
4408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4409 if (!SWIG_IsOK(res1)) {
4410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4411 }
4412 arg1 = reinterpret_cast< wxPalette * >(argp1);
4413 {
4414 PyThreadState* __tstate = wxPyBeginAllowThreads();
4415 delete arg1;
4416
4417 wxPyEndAllowThreads(__tstate);
4418 if (PyErr_Occurred()) SWIG_fail;
4419 }
4420 resultobj = SWIG_Py_Void();
4421 return resultobj;
4422 fail:
4423 return NULL;
4424 }
4425
4426
4427 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4428 PyObject *resultobj = 0;
4429 wxPalette *arg1 = (wxPalette *) 0 ;
4430 byte arg2 ;
4431 byte arg3 ;
4432 byte arg4 ;
4433 int result;
4434 void *argp1 = 0 ;
4435 int res1 = 0 ;
4436 unsigned char val2 ;
4437 int ecode2 = 0 ;
4438 unsigned char val3 ;
4439 int ecode3 = 0 ;
4440 unsigned char val4 ;
4441 int ecode4 = 0 ;
4442 PyObject * obj0 = 0 ;
4443 PyObject * obj1 = 0 ;
4444 PyObject * obj2 = 0 ;
4445 PyObject * obj3 = 0 ;
4446 char * kwnames[] = {
4447 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4448 };
4449
4450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4452 if (!SWIG_IsOK(res1)) {
4453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4454 }
4455 arg1 = reinterpret_cast< wxPalette * >(argp1);
4456 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4457 if (!SWIG_IsOK(ecode2)) {
4458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4459 }
4460 arg2 = static_cast< byte >(val2);
4461 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4462 if (!SWIG_IsOK(ecode3)) {
4463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4464 }
4465 arg3 = static_cast< byte >(val3);
4466 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4467 if (!SWIG_IsOK(ecode4)) {
4468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4469 }
4470 arg4 = static_cast< byte >(val4);
4471 {
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4474 wxPyEndAllowThreads(__tstate);
4475 if (PyErr_Occurred()) SWIG_fail;
4476 }
4477 resultobj = SWIG_From_int(static_cast< int >(result));
4478 return resultobj;
4479 fail:
4480 return NULL;
4481 }
4482
4483
4484 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4485 PyObject *resultobj = 0;
4486 wxPalette *arg1 = (wxPalette *) 0 ;
4487 int arg2 ;
4488 byte *arg3 = (byte *) 0 ;
4489 byte *arg4 = (byte *) 0 ;
4490 byte *arg5 = (byte *) 0 ;
4491 bool result;
4492 void *argp1 = 0 ;
4493 int res1 = 0 ;
4494 int val2 ;
4495 int ecode2 = 0 ;
4496 byte temp3 ;
4497 int res3 = SWIG_TMPOBJ ;
4498 byte temp4 ;
4499 int res4 = SWIG_TMPOBJ ;
4500 byte temp5 ;
4501 int res5 = SWIG_TMPOBJ ;
4502 PyObject * obj0 = 0 ;
4503 PyObject * obj1 = 0 ;
4504 char * kwnames[] = {
4505 (char *) "self",(char *) "pixel", NULL
4506 };
4507
4508 arg3 = &temp3;
4509 arg4 = &temp4;
4510 arg5 = &temp5;
4511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4513 if (!SWIG_IsOK(res1)) {
4514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4515 }
4516 arg1 = reinterpret_cast< wxPalette * >(argp1);
4517 ecode2 = SWIG_AsVal_int(obj1, &val2);
4518 if (!SWIG_IsOK(ecode2)) {
4519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4520 }
4521 arg2 = static_cast< int >(val2);
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4525 wxPyEndAllowThreads(__tstate);
4526 if (PyErr_Occurred()) SWIG_fail;
4527 }
4528 {
4529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4530 }
4531 if (SWIG_IsTmpObj(res3)) {
4532 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4533 } else {
4534 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4535 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4536 }
4537 if (SWIG_IsTmpObj(res4)) {
4538 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4539 } else {
4540 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4541 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4542 }
4543 if (SWIG_IsTmpObj(res5)) {
4544 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4545 } else {
4546 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4547 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4548 }
4549 return resultobj;
4550 fail:
4551 return NULL;
4552 }
4553
4554
4555 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4556 PyObject *resultobj = 0;
4557 wxPalette *arg1 = (wxPalette *) 0 ;
4558 int result;
4559 void *argp1 = 0 ;
4560 int res1 = 0 ;
4561 PyObject *swig_obj[1] ;
4562
4563 if (!args) SWIG_fail;
4564 swig_obj[0] = args;
4565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4566 if (!SWIG_IsOK(res1)) {
4567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4568 }
4569 arg1 = reinterpret_cast< wxPalette * >(argp1);
4570 {
4571 PyThreadState* __tstate = wxPyBeginAllowThreads();
4572 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4573 wxPyEndAllowThreads(__tstate);
4574 if (PyErr_Occurred()) SWIG_fail;
4575 }
4576 resultobj = SWIG_From_int(static_cast< int >(result));
4577 return resultobj;
4578 fail:
4579 return NULL;
4580 }
4581
4582
4583 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4584 PyObject *resultobj = 0;
4585 wxPalette *arg1 = (wxPalette *) 0 ;
4586 bool result;
4587 void *argp1 = 0 ;
4588 int res1 = 0 ;
4589 PyObject *swig_obj[1] ;
4590
4591 if (!args) SWIG_fail;
4592 swig_obj[0] = args;
4593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4594 if (!SWIG_IsOK(res1)) {
4595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4596 }
4597 arg1 = reinterpret_cast< wxPalette * >(argp1);
4598 {
4599 PyThreadState* __tstate = wxPyBeginAllowThreads();
4600 result = (bool)(arg1)->Ok();
4601 wxPyEndAllowThreads(__tstate);
4602 if (PyErr_Occurred()) SWIG_fail;
4603 }
4604 {
4605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4606 }
4607 return resultobj;
4608 fail:
4609 return NULL;
4610 }
4611
4612
4613 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4614 PyObject *obj;
4615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4616 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4617 return SWIG_Py_Void();
4618 }
4619
4620 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4621 return SWIG_Python_InitShadowInstance(args);
4622 }
4623
4624 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4625 PyObject *resultobj = 0;
4626 wxColour *arg1 = 0 ;
4627 int arg2 = (int) 1 ;
4628 int arg3 = (int) wxSOLID ;
4629 wxPen *result = 0 ;
4630 wxColour temp1 ;
4631 int val2 ;
4632 int ecode2 = 0 ;
4633 int val3 ;
4634 int ecode3 = 0 ;
4635 PyObject * obj0 = 0 ;
4636 PyObject * obj1 = 0 ;
4637 PyObject * obj2 = 0 ;
4638 char * kwnames[] = {
4639 (char *) "colour",(char *) "width",(char *) "style", NULL
4640 };
4641
4642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4643 {
4644 arg1 = &temp1;
4645 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4646 }
4647 if (obj1) {
4648 ecode2 = SWIG_AsVal_int(obj1, &val2);
4649 if (!SWIG_IsOK(ecode2)) {
4650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4651 }
4652 arg2 = static_cast< int >(val2);
4653 }
4654 if (obj2) {
4655 ecode3 = SWIG_AsVal_int(obj2, &val3);
4656 if (!SWIG_IsOK(ecode3)) {
4657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4658 }
4659 arg3 = static_cast< int >(val3);
4660 }
4661 {
4662 if (!wxPyCheckForApp()) SWIG_fail;
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4669 return resultobj;
4670 fail:
4671 return NULL;
4672 }
4673
4674
4675 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4676 PyObject *resultobj = 0;
4677 wxPen *arg1 = (wxPen *) 0 ;
4678 void *argp1 = 0 ;
4679 int res1 = 0 ;
4680 PyObject *swig_obj[1] ;
4681
4682 if (!args) SWIG_fail;
4683 swig_obj[0] = args;
4684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4685 if (!SWIG_IsOK(res1)) {
4686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4687 }
4688 arg1 = reinterpret_cast< wxPen * >(argp1);
4689 {
4690 PyThreadState* __tstate = wxPyBeginAllowThreads();
4691 delete arg1;
4692
4693 wxPyEndAllowThreads(__tstate);
4694 if (PyErr_Occurred()) SWIG_fail;
4695 }
4696 resultobj = SWIG_Py_Void();
4697 return resultobj;
4698 fail:
4699 return NULL;
4700 }
4701
4702
4703 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4704 PyObject *resultobj = 0;
4705 wxPen *arg1 = (wxPen *) 0 ;
4706 int result;
4707 void *argp1 = 0 ;
4708 int res1 = 0 ;
4709 PyObject *swig_obj[1] ;
4710
4711 if (!args) SWIG_fail;
4712 swig_obj[0] = args;
4713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4714 if (!SWIG_IsOK(res1)) {
4715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4716 }
4717 arg1 = reinterpret_cast< wxPen * >(argp1);
4718 {
4719 PyThreadState* __tstate = wxPyBeginAllowThreads();
4720 result = (int)(arg1)->GetCap();
4721 wxPyEndAllowThreads(__tstate);
4722 if (PyErr_Occurred()) SWIG_fail;
4723 }
4724 resultobj = SWIG_From_int(static_cast< int >(result));
4725 return resultobj;
4726 fail:
4727 return NULL;
4728 }
4729
4730
4731 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4732 PyObject *resultobj = 0;
4733 wxPen *arg1 = (wxPen *) 0 ;
4734 wxColour result;
4735 void *argp1 = 0 ;
4736 int res1 = 0 ;
4737 PyObject *swig_obj[1] ;
4738
4739 if (!args) SWIG_fail;
4740 swig_obj[0] = args;
4741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4742 if (!SWIG_IsOK(res1)) {
4743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4744 }
4745 arg1 = reinterpret_cast< wxPen * >(argp1);
4746 {
4747 PyThreadState* __tstate = wxPyBeginAllowThreads();
4748 result = (arg1)->GetColour();
4749 wxPyEndAllowThreads(__tstate);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4760 PyObject *resultobj = 0;
4761 wxPen *arg1 = (wxPen *) 0 ;
4762 int result;
4763 void *argp1 = 0 ;
4764 int res1 = 0 ;
4765 PyObject *swig_obj[1] ;
4766
4767 if (!args) SWIG_fail;
4768 swig_obj[0] = args;
4769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4770 if (!SWIG_IsOK(res1)) {
4771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4772 }
4773 arg1 = reinterpret_cast< wxPen * >(argp1);
4774 {
4775 PyThreadState* __tstate = wxPyBeginAllowThreads();
4776 result = (int)(arg1)->GetJoin();
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 resultobj = SWIG_From_int(static_cast< int >(result));
4781 return resultobj;
4782 fail:
4783 return NULL;
4784 }
4785
4786
4787 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4788 PyObject *resultobj = 0;
4789 wxPen *arg1 = (wxPen *) 0 ;
4790 int result;
4791 void *argp1 = 0 ;
4792 int res1 = 0 ;
4793 PyObject *swig_obj[1] ;
4794
4795 if (!args) SWIG_fail;
4796 swig_obj[0] = args;
4797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4798 if (!SWIG_IsOK(res1)) {
4799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4800 }
4801 arg1 = reinterpret_cast< wxPen * >(argp1);
4802 {
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 result = (int)(arg1)->GetStyle();
4805 wxPyEndAllowThreads(__tstate);
4806 if (PyErr_Occurred()) SWIG_fail;
4807 }
4808 resultobj = SWIG_From_int(static_cast< int >(result));
4809 return resultobj;
4810 fail:
4811 return NULL;
4812 }
4813
4814
4815 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4816 PyObject *resultobj = 0;
4817 wxPen *arg1 = (wxPen *) 0 ;
4818 int result;
4819 void *argp1 = 0 ;
4820 int res1 = 0 ;
4821 PyObject *swig_obj[1] ;
4822
4823 if (!args) SWIG_fail;
4824 swig_obj[0] = args;
4825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4826 if (!SWIG_IsOK(res1)) {
4827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4828 }
4829 arg1 = reinterpret_cast< wxPen * >(argp1);
4830 {
4831 PyThreadState* __tstate = wxPyBeginAllowThreads();
4832 result = (int)(arg1)->GetWidth();
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 resultobj = SWIG_From_int(static_cast< int >(result));
4837 return resultobj;
4838 fail:
4839 return NULL;
4840 }
4841
4842
4843 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4844 PyObject *resultobj = 0;
4845 wxPen *arg1 = (wxPen *) 0 ;
4846 bool result;
4847 void *argp1 = 0 ;
4848 int res1 = 0 ;
4849 PyObject *swig_obj[1] ;
4850
4851 if (!args) SWIG_fail;
4852 swig_obj[0] = args;
4853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4854 if (!SWIG_IsOK(res1)) {
4855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4856 }
4857 arg1 = reinterpret_cast< wxPen * >(argp1);
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 result = (bool)(arg1)->Ok();
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 {
4865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4866 }
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4874 PyObject *resultobj = 0;
4875 wxPen *arg1 = (wxPen *) 0 ;
4876 int arg2 ;
4877 void *argp1 = 0 ;
4878 int res1 = 0 ;
4879 int val2 ;
4880 int ecode2 = 0 ;
4881 PyObject * obj0 = 0 ;
4882 PyObject * obj1 = 0 ;
4883 char * kwnames[] = {
4884 (char *) "self",(char *) "cap_style", NULL
4885 };
4886
4887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4889 if (!SWIG_IsOK(res1)) {
4890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4891 }
4892 arg1 = reinterpret_cast< wxPen * >(argp1);
4893 ecode2 = SWIG_AsVal_int(obj1, &val2);
4894 if (!SWIG_IsOK(ecode2)) {
4895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4896 }
4897 arg2 = static_cast< int >(val2);
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 (arg1)->SetCap(arg2);
4901 wxPyEndAllowThreads(__tstate);
4902 if (PyErr_Occurred()) SWIG_fail;
4903 }
4904 resultobj = SWIG_Py_Void();
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj = 0;
4913 wxPen *arg1 = (wxPen *) 0 ;
4914 wxColour *arg2 = 0 ;
4915 void *argp1 = 0 ;
4916 int res1 = 0 ;
4917 wxColour temp2 ;
4918 PyObject * obj0 = 0 ;
4919 PyObject * obj1 = 0 ;
4920 char * kwnames[] = {
4921 (char *) "self",(char *) "colour", NULL
4922 };
4923
4924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4926 if (!SWIG_IsOK(res1)) {
4927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4928 }
4929 arg1 = reinterpret_cast< wxPen * >(argp1);
4930 {
4931 arg2 = &temp2;
4932 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4933 }
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 (arg1)->SetColour(*arg2);
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 resultobj = SWIG_Py_Void();
4941 return resultobj;
4942 fail:
4943 return NULL;
4944 }
4945
4946
4947 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4948 PyObject *resultobj = 0;
4949 wxPen *arg1 = (wxPen *) 0 ;
4950 int arg2 ;
4951 void *argp1 = 0 ;
4952 int res1 = 0 ;
4953 int val2 ;
4954 int ecode2 = 0 ;
4955 PyObject * obj0 = 0 ;
4956 PyObject * obj1 = 0 ;
4957 char * kwnames[] = {
4958 (char *) "self",(char *) "join_style", NULL
4959 };
4960
4961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4963 if (!SWIG_IsOK(res1)) {
4964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4965 }
4966 arg1 = reinterpret_cast< wxPen * >(argp1);
4967 ecode2 = SWIG_AsVal_int(obj1, &val2);
4968 if (!SWIG_IsOK(ecode2)) {
4969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4970 }
4971 arg2 = static_cast< int >(val2);
4972 {
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
4974 (arg1)->SetJoin(arg2);
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 resultobj = SWIG_Py_Void();
4979 return resultobj;
4980 fail:
4981 return NULL;
4982 }
4983
4984
4985 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4986 PyObject *resultobj = 0;
4987 wxPen *arg1 = (wxPen *) 0 ;
4988 int arg2 ;
4989 void *argp1 = 0 ;
4990 int res1 = 0 ;
4991 int val2 ;
4992 int ecode2 = 0 ;
4993 PyObject * obj0 = 0 ;
4994 PyObject * obj1 = 0 ;
4995 char * kwnames[] = {
4996 (char *) "self",(char *) "style", NULL
4997 };
4998
4999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5001 if (!SWIG_IsOK(res1)) {
5002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5003 }
5004 arg1 = reinterpret_cast< wxPen * >(argp1);
5005 ecode2 = SWIG_AsVal_int(obj1, &val2);
5006 if (!SWIG_IsOK(ecode2)) {
5007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5008 }
5009 arg2 = static_cast< int >(val2);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 (arg1)->SetStyle(arg2);
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 resultobj = SWIG_Py_Void();
5017 return resultobj;
5018 fail:
5019 return NULL;
5020 }
5021
5022
5023 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj = 0;
5025 wxPen *arg1 = (wxPen *) 0 ;
5026 int arg2 ;
5027 void *argp1 = 0 ;
5028 int res1 = 0 ;
5029 int val2 ;
5030 int ecode2 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 PyObject * obj1 = 0 ;
5033 char * kwnames[] = {
5034 (char *) "self",(char *) "width", NULL
5035 };
5036
5037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5039 if (!SWIG_IsOK(res1)) {
5040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5041 }
5042 arg1 = reinterpret_cast< wxPen * >(argp1);
5043 ecode2 = SWIG_AsVal_int(obj1, &val2);
5044 if (!SWIG_IsOK(ecode2)) {
5045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5046 }
5047 arg2 = static_cast< int >(val2);
5048 {
5049 PyThreadState* __tstate = wxPyBeginAllowThreads();
5050 (arg1)->SetWidth(arg2);
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_Py_Void();
5055 return resultobj;
5056 fail:
5057 return NULL;
5058 }
5059
5060
5061 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj = 0;
5063 wxPen *arg1 = (wxPen *) 0 ;
5064 int arg2 ;
5065 wxDash *arg3 = (wxDash *) 0 ;
5066 void *argp1 = 0 ;
5067 int res1 = 0 ;
5068 PyObject * obj0 = 0 ;
5069 PyObject * obj1 = 0 ;
5070 char * kwnames[] = {
5071 (char *) "self",(char *) "dashes", NULL
5072 };
5073
5074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5076 if (!SWIG_IsOK(res1)) {
5077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5078 }
5079 arg1 = reinterpret_cast< wxPen * >(argp1);
5080 {
5081 arg2 = PyList_Size(obj1);
5082 arg3 = (wxDash*)byte_LIST_helper(obj1);
5083 if (arg3 == NULL) SWIG_fail;
5084 }
5085 {
5086 PyThreadState* __tstate = wxPyBeginAllowThreads();
5087 (arg1)->SetDashes(arg2,arg3);
5088 wxPyEndAllowThreads(__tstate);
5089 if (PyErr_Occurred()) SWIG_fail;
5090 }
5091 resultobj = SWIG_Py_Void();
5092 {
5093 if (arg3) delete [] arg3;
5094 }
5095 return resultobj;
5096 fail:
5097 {
5098 if (arg3) delete [] arg3;
5099 }
5100 return NULL;
5101 }
5102
5103
5104 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5105 PyObject *resultobj = 0;
5106 wxPen *arg1 = (wxPen *) 0 ;
5107 PyObject *result = 0 ;
5108 void *argp1 = 0 ;
5109 int res1 = 0 ;
5110 PyObject *swig_obj[1] ;
5111
5112 if (!args) SWIG_fail;
5113 swig_obj[0] = args;
5114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5115 if (!SWIG_IsOK(res1)) {
5116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5117 }
5118 arg1 = reinterpret_cast< wxPen * >(argp1);
5119 {
5120 PyThreadState* __tstate = wxPyBeginAllowThreads();
5121 result = (PyObject *)wxPen_GetDashes(arg1);
5122 wxPyEndAllowThreads(__tstate);
5123 if (PyErr_Occurred()) SWIG_fail;
5124 }
5125 resultobj = result;
5126 return resultobj;
5127 fail:
5128 return NULL;
5129 }
5130
5131
5132 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5133 PyObject *resultobj = 0;
5134 wxPen *arg1 = (wxPen *) 0 ;
5135 PyObject *arg2 = (PyObject *) 0 ;
5136 PyObject *arg3 = (PyObject *) 0 ;
5137 void *argp1 = 0 ;
5138 int res1 = 0 ;
5139 PyObject * obj0 = 0 ;
5140 PyObject * obj1 = 0 ;
5141 PyObject * obj2 = 0 ;
5142 char * kwnames[] = {
5143 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5144 };
5145
5146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5148 if (!SWIG_IsOK(res1)) {
5149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5150 }
5151 arg1 = reinterpret_cast< wxPen * >(argp1);
5152 arg2 = obj1;
5153 arg3 = obj2;
5154 {
5155 PyThreadState* __tstate = wxPyBeginAllowThreads();
5156 wxPen__SetDashes(arg1,arg2,arg3);
5157 wxPyEndAllowThreads(__tstate);
5158 if (PyErr_Occurred()) SWIG_fail;
5159 }
5160 resultobj = SWIG_Py_Void();
5161 return resultobj;
5162 fail:
5163 return NULL;
5164 }
5165
5166
5167 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5168 PyObject *resultobj = 0;
5169 wxPen *arg1 = (wxPen *) 0 ;
5170 int result;
5171 void *argp1 = 0 ;
5172 int res1 = 0 ;
5173 PyObject *swig_obj[1] ;
5174
5175 if (!args) SWIG_fail;
5176 swig_obj[0] = args;
5177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5178 if (!SWIG_IsOK(res1)) {
5179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5180 }
5181 arg1 = reinterpret_cast< wxPen * >(argp1);
5182 {
5183 PyThreadState* __tstate = wxPyBeginAllowThreads();
5184 result = (int)((wxPen const *)arg1)->GetDashCount();
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 resultobj = SWIG_From_int(static_cast< int >(result));
5189 return resultobj;
5190 fail:
5191 return NULL;
5192 }
5193
5194
5195 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5196 PyObject *resultobj = 0;
5197 wxPen *arg1 = (wxPen *) 0 ;
5198 wxPen *arg2 = (wxPen *) 0 ;
5199 bool result;
5200 void *argp1 = 0 ;
5201 int res1 = 0 ;
5202 void *argp2 = 0 ;
5203 int res2 = 0 ;
5204 PyObject * obj0 = 0 ;
5205 PyObject * obj1 = 0 ;
5206 char * kwnames[] = {
5207 (char *) "self",(char *) "other", NULL
5208 };
5209
5210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5212 if (!SWIG_IsOK(res1)) {
5213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5214 }
5215 arg1 = reinterpret_cast< wxPen * >(argp1);
5216 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5217 if (!SWIG_IsOK(res2)) {
5218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5219 }
5220 arg2 = reinterpret_cast< wxPen * >(argp2);
5221 {
5222 PyThreadState* __tstate = wxPyBeginAllowThreads();
5223 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5224 wxPyEndAllowThreads(__tstate);
5225 if (PyErr_Occurred()) SWIG_fail;
5226 }
5227 {
5228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5229 }
5230 return resultobj;
5231 fail:
5232 return NULL;
5233 }
5234
5235
5236 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5237 PyObject *resultobj = 0;
5238 wxPen *arg1 = (wxPen *) 0 ;
5239 wxPen *arg2 = (wxPen *) 0 ;
5240 bool result;
5241 void *argp1 = 0 ;
5242 int res1 = 0 ;
5243 void *argp2 = 0 ;
5244 int res2 = 0 ;
5245 PyObject * obj0 = 0 ;
5246 PyObject * obj1 = 0 ;
5247 char * kwnames[] = {
5248 (char *) "self",(char *) "other", NULL
5249 };
5250
5251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5253 if (!SWIG_IsOK(res1)) {
5254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5255 }
5256 arg1 = reinterpret_cast< wxPen * >(argp1);
5257 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5258 if (!SWIG_IsOK(res2)) {
5259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5260 }
5261 arg2 = reinterpret_cast< wxPen * >(argp2);
5262 {
5263 PyThreadState* __tstate = wxPyBeginAllowThreads();
5264 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5265 wxPyEndAllowThreads(__tstate);
5266 if (PyErr_Occurred()) SWIG_fail;
5267 }
5268 {
5269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5270 }
5271 return resultobj;
5272 fail:
5273 return NULL;
5274 }
5275
5276
5277 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5278 PyObject *obj;
5279 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5280 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5281 return SWIG_Py_Void();
5282 }
5283
5284 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5285 return SWIG_Python_InitShadowInstance(args);
5286 }
5287
5288 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5289 PyObject *resultobj = 0;
5290 wxColour *arg1 = 0 ;
5291 int arg2 = (int) wxSOLID ;
5292 wxBrush *result = 0 ;
5293 wxColour temp1 ;
5294 int val2 ;
5295 int ecode2 = 0 ;
5296 PyObject * obj0 = 0 ;
5297 PyObject * obj1 = 0 ;
5298 char * kwnames[] = {
5299 (char *) "colour",(char *) "style", NULL
5300 };
5301
5302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5303 {
5304 arg1 = &temp1;
5305 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5306 }
5307 if (obj1) {
5308 ecode2 = SWIG_AsVal_int(obj1, &val2);
5309 if (!SWIG_IsOK(ecode2)) {
5310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5311 }
5312 arg2 = static_cast< int >(val2);
5313 }
5314 {
5315 if (!wxPyCheckForApp()) SWIG_fail;
5316 PyThreadState* __tstate = wxPyBeginAllowThreads();
5317 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5318 wxPyEndAllowThreads(__tstate);
5319 if (PyErr_Occurred()) SWIG_fail;
5320 }
5321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5322 return resultobj;
5323 fail:
5324 return NULL;
5325 }
5326
5327
5328 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5329 PyObject *resultobj = 0;
5330 wxBitmap *arg1 = 0 ;
5331 wxBrush *result = 0 ;
5332 void *argp1 = 0 ;
5333 int res1 = 0 ;
5334 PyObject * obj0 = 0 ;
5335 char * kwnames[] = {
5336 (char *) "stippleBitmap", NULL
5337 };
5338
5339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5340 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5341 if (!SWIG_IsOK(res1)) {
5342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5343 }
5344 if (!argp1) {
5345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5346 }
5347 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5348 {
5349 if (!wxPyCheckForApp()) SWIG_fail;
5350 PyThreadState* __tstate = wxPyBeginAllowThreads();
5351 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5352 wxPyEndAllowThreads(__tstate);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 }
5355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5356 return resultobj;
5357 fail:
5358 return NULL;
5359 }
5360
5361
5362 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5363 PyObject *resultobj = 0;
5364 wxBrush *arg1 = (wxBrush *) 0 ;
5365 void *argp1 = 0 ;
5366 int res1 = 0 ;
5367 PyObject *swig_obj[1] ;
5368
5369 if (!args) SWIG_fail;
5370 swig_obj[0] = args;
5371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5372 if (!SWIG_IsOK(res1)) {
5373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5374 }
5375 arg1 = reinterpret_cast< wxBrush * >(argp1);
5376 {
5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
5378 delete arg1;
5379
5380 wxPyEndAllowThreads(__tstate);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 resultobj = SWIG_Py_Void();
5384 return resultobj;
5385 fail:
5386 return NULL;
5387 }
5388
5389
5390 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5391 PyObject *resultobj = 0;
5392 wxBrush *arg1 = (wxBrush *) 0 ;
5393 wxColour *arg2 = 0 ;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 wxColour temp2 ;
5397 PyObject * obj0 = 0 ;
5398 PyObject * obj1 = 0 ;
5399 char * kwnames[] = {
5400 (char *) "self",(char *) "col", NULL
5401 };
5402
5403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5405 if (!SWIG_IsOK(res1)) {
5406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5407 }
5408 arg1 = reinterpret_cast< wxBrush * >(argp1);
5409 {
5410 arg2 = &temp2;
5411 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5412 }
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 (arg1)->SetColour((wxColour const &)*arg2);
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 resultobj = SWIG_Py_Void();
5420 return resultobj;
5421 fail:
5422 return NULL;
5423 }
5424
5425
5426 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5427 PyObject *resultobj = 0;
5428 wxBrush *arg1 = (wxBrush *) 0 ;
5429 int arg2 ;
5430 void *argp1 = 0 ;
5431 int res1 = 0 ;
5432 int val2 ;
5433 int ecode2 = 0 ;
5434 PyObject * obj0 = 0 ;
5435 PyObject * obj1 = 0 ;
5436 char * kwnames[] = {
5437 (char *) "self",(char *) "style", NULL
5438 };
5439
5440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5442 if (!SWIG_IsOK(res1)) {
5443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5444 }
5445 arg1 = reinterpret_cast< wxBrush * >(argp1);
5446 ecode2 = SWIG_AsVal_int(obj1, &val2);
5447 if (!SWIG_IsOK(ecode2)) {
5448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5449 }
5450 arg2 = static_cast< int >(val2);
5451 {
5452 PyThreadState* __tstate = wxPyBeginAllowThreads();
5453 (arg1)->SetStyle(arg2);
5454 wxPyEndAllowThreads(__tstate);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 }
5457 resultobj = SWIG_Py_Void();
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5465 PyObject *resultobj = 0;
5466 wxBrush *arg1 = (wxBrush *) 0 ;
5467 wxBitmap *arg2 = 0 ;
5468 void *argp1 = 0 ;
5469 int res1 = 0 ;
5470 void *argp2 = 0 ;
5471 int res2 = 0 ;
5472 PyObject * obj0 = 0 ;
5473 PyObject * obj1 = 0 ;
5474 char * kwnames[] = {
5475 (char *) "self",(char *) "stipple", NULL
5476 };
5477
5478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5480 if (!SWIG_IsOK(res1)) {
5481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5482 }
5483 arg1 = reinterpret_cast< wxBrush * >(argp1);
5484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5485 if (!SWIG_IsOK(res2)) {
5486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5487 }
5488 if (!argp2) {
5489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5490 }
5491 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5492 {
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 (arg1)->SetStipple((wxBitmap const &)*arg2);
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 resultobj = SWIG_Py_Void();
5499 return resultobj;
5500 fail:
5501 return NULL;
5502 }
5503
5504
5505 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5506 PyObject *resultobj = 0;
5507 wxBrush *arg1 = (wxBrush *) 0 ;
5508 wxColour result;
5509 void *argp1 = 0 ;
5510 int res1 = 0 ;
5511 PyObject *swig_obj[1] ;
5512
5513 if (!args) SWIG_fail;
5514 swig_obj[0] = args;
5515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5516 if (!SWIG_IsOK(res1)) {
5517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5518 }
5519 arg1 = reinterpret_cast< wxBrush * >(argp1);
5520 {
5521 PyThreadState* __tstate = wxPyBeginAllowThreads();
5522 result = ((wxBrush const *)arg1)->GetColour();
5523 wxPyEndAllowThreads(__tstate);
5524 if (PyErr_Occurred()) SWIG_fail;
5525 }
5526 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5527 return resultobj;
5528 fail:
5529 return NULL;
5530 }
5531
5532
5533 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5534 PyObject *resultobj = 0;
5535 wxBrush *arg1 = (wxBrush *) 0 ;
5536 int result;
5537 void *argp1 = 0 ;
5538 int res1 = 0 ;
5539 PyObject *swig_obj[1] ;
5540
5541 if (!args) SWIG_fail;
5542 swig_obj[0] = args;
5543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5544 if (!SWIG_IsOK(res1)) {
5545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5546 }
5547 arg1 = reinterpret_cast< wxBrush * >(argp1);
5548 {
5549 PyThreadState* __tstate = wxPyBeginAllowThreads();
5550 result = (int)((wxBrush const *)arg1)->GetStyle();
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 }
5554 resultobj = SWIG_From_int(static_cast< int >(result));
5555 return resultobj;
5556 fail:
5557 return NULL;
5558 }
5559
5560
5561 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5562 PyObject *resultobj = 0;
5563 wxBrush *arg1 = (wxBrush *) 0 ;
5564 wxBitmap *result = 0 ;
5565 void *argp1 = 0 ;
5566 int res1 = 0 ;
5567 PyObject *swig_obj[1] ;
5568
5569 if (!args) SWIG_fail;
5570 swig_obj[0] = args;
5571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5572 if (!SWIG_IsOK(res1)) {
5573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5574 }
5575 arg1 = reinterpret_cast< wxBrush * >(argp1);
5576 {
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5583 return resultobj;
5584 fail:
5585 return NULL;
5586 }
5587
5588
5589 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5590 PyObject *resultobj = 0;
5591 wxBrush *arg1 = (wxBrush *) 0 ;
5592 bool result;
5593 void *argp1 = 0 ;
5594 int res1 = 0 ;
5595 PyObject *swig_obj[1] ;
5596
5597 if (!args) SWIG_fail;
5598 swig_obj[0] = args;
5599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5600 if (!SWIG_IsOK(res1)) {
5601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5602 }
5603 arg1 = reinterpret_cast< wxBrush * >(argp1);
5604 {
5605 PyThreadState* __tstate = wxPyBeginAllowThreads();
5606 result = (bool)((wxBrush const *)arg1)->IsHatch();
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) SWIG_fail;
5609 }
5610 {
5611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5612 }
5613 return resultobj;
5614 fail:
5615 return NULL;
5616 }
5617
5618
5619 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5620 PyObject *resultobj = 0;
5621 wxBrush *arg1 = (wxBrush *) 0 ;
5622 bool result;
5623 void *argp1 = 0 ;
5624 int res1 = 0 ;
5625 PyObject *swig_obj[1] ;
5626
5627 if (!args) SWIG_fail;
5628 swig_obj[0] = args;
5629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5630 if (!SWIG_IsOK(res1)) {
5631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5632 }
5633 arg1 = reinterpret_cast< wxBrush * >(argp1);
5634 {
5635 PyThreadState* __tstate = wxPyBeginAllowThreads();
5636 result = (bool)(arg1)->Ok();
5637 wxPyEndAllowThreads(__tstate);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 {
5641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5642 }
5643 return resultobj;
5644 fail:
5645 return NULL;
5646 }
5647
5648
5649 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5650 PyObject *obj;
5651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5652 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5653 return SWIG_Py_Void();
5654 }
5655
5656 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5657 return SWIG_Python_InitShadowInstance(args);
5658 }
5659
5660 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5661 PyObject *resultobj = 0;
5662 wxString *arg1 = 0 ;
5663 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5664 wxBitmap *result = 0 ;
5665 bool temp1 = false ;
5666 int val2 ;
5667 int ecode2 = 0 ;
5668 PyObject * obj0 = 0 ;
5669 PyObject * obj1 = 0 ;
5670 char * kwnames[] = {
5671 (char *) "name",(char *) "type", NULL
5672 };
5673
5674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5675 {
5676 arg1 = wxString_in_helper(obj0);
5677 if (arg1 == NULL) SWIG_fail;
5678 temp1 = true;
5679 }
5680 if (obj1) {
5681 ecode2 = SWIG_AsVal_int(obj1, &val2);
5682 if (!SWIG_IsOK(ecode2)) {
5683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5684 }
5685 arg2 = static_cast< wxBitmapType >(val2);
5686 }
5687 {
5688 if (!wxPyCheckForApp()) SWIG_fail;
5689 PyThreadState* __tstate = wxPyBeginAllowThreads();
5690 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5691 wxPyEndAllowThreads(__tstate);
5692 if (PyErr_Occurred()) SWIG_fail;
5693 }
5694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5695 {
5696 if (temp1)
5697 delete arg1;
5698 }
5699 return resultobj;
5700 fail:
5701 {
5702 if (temp1)
5703 delete arg1;
5704 }
5705 return NULL;
5706 }
5707
5708
5709 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5710 PyObject *resultobj = 0;
5711 wxBitmap *arg1 = (wxBitmap *) 0 ;
5712 void *argp1 = 0 ;
5713 int res1 = 0 ;
5714 PyObject *swig_obj[1] ;
5715
5716 if (!args) SWIG_fail;
5717 swig_obj[0] = args;
5718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5719 if (!SWIG_IsOK(res1)) {
5720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5721 }
5722 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5723 {
5724 delete arg1;
5725
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_Py_Void();
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5736 PyObject *resultobj = 0;
5737 int arg1 ;
5738 int arg2 ;
5739 int arg3 = (int) -1 ;
5740 wxBitmap *result = 0 ;
5741 int val1 ;
5742 int ecode1 = 0 ;
5743 int val2 ;
5744 int ecode2 = 0 ;
5745 int val3 ;
5746 int ecode3 = 0 ;
5747 PyObject * obj0 = 0 ;
5748 PyObject * obj1 = 0 ;
5749 PyObject * obj2 = 0 ;
5750 char * kwnames[] = {
5751 (char *) "width",(char *) "height",(char *) "depth", NULL
5752 };
5753
5754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5755 ecode1 = SWIG_AsVal_int(obj0, &val1);
5756 if (!SWIG_IsOK(ecode1)) {
5757 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5758 }
5759 arg1 = static_cast< int >(val1);
5760 ecode2 = SWIG_AsVal_int(obj1, &val2);
5761 if (!SWIG_IsOK(ecode2)) {
5762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5763 }
5764 arg2 = static_cast< int >(val2);
5765 if (obj2) {
5766 ecode3 = SWIG_AsVal_int(obj2, &val3);
5767 if (!SWIG_IsOK(ecode3)) {
5768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5769 }
5770 arg3 = static_cast< int >(val3);
5771 }
5772 {
5773 if (!wxPyCheckForApp()) SWIG_fail;
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5787 PyObject *resultobj = 0;
5788 wxIcon *arg1 = 0 ;
5789 wxBitmap *result = 0 ;
5790 void *argp1 = 0 ;
5791 int res1 = 0 ;
5792 PyObject * obj0 = 0 ;
5793 char * kwnames[] = {
5794 (char *) "icon", NULL
5795 };
5796
5797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5798 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5799 if (!SWIG_IsOK(res1)) {
5800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5801 }
5802 if (!argp1) {
5803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5804 }
5805 arg1 = reinterpret_cast< wxIcon * >(argp1);
5806 {
5807 if (!wxPyCheckForApp()) SWIG_fail;
5808 PyThreadState* __tstate = wxPyBeginAllowThreads();
5809 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5810 wxPyEndAllowThreads(__tstate);
5811 if (PyErr_Occurred()) SWIG_fail;
5812 }
5813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5814 return resultobj;
5815 fail:
5816 return NULL;
5817 }
5818
5819
5820 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5821 PyObject *resultobj = 0;
5822 wxImage *arg1 = 0 ;
5823 int arg2 = (int) -1 ;
5824 wxBitmap *result = 0 ;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 int val2 ;
5828 int ecode2 = 0 ;
5829 PyObject * obj0 = 0 ;
5830 PyObject * obj1 = 0 ;
5831 char * kwnames[] = {
5832 (char *) "image",(char *) "depth", NULL
5833 };
5834
5835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5836 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5837 if (!SWIG_IsOK(res1)) {
5838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5839 }
5840 if (!argp1) {
5841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5842 }
5843 arg1 = reinterpret_cast< wxImage * >(argp1);
5844 if (obj1) {
5845 ecode2 = SWIG_AsVal_int(obj1, &val2);
5846 if (!SWIG_IsOK(ecode2)) {
5847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5848 }
5849 arg2 = static_cast< int >(val2);
5850 }
5851 {
5852 if (!wxPyCheckForApp()) SWIG_fail;
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5859 return resultobj;
5860 fail:
5861 return NULL;
5862 }
5863
5864
5865 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5866 PyObject *resultobj = 0;
5867 PyObject *arg1 = (PyObject *) 0 ;
5868 wxBitmap *result = 0 ;
5869 PyObject * obj0 = 0 ;
5870 char * kwnames[] = {
5871 (char *) "listOfStrings", NULL
5872 };
5873
5874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5875 arg1 = obj0;
5876 {
5877 if (!wxPyCheckForApp()) SWIG_fail;
5878 PyThreadState* __tstate = wxPyBeginAllowThreads();
5879 result = (wxBitmap *)new_wxBitmap(arg1);
5880 wxPyEndAllowThreads(__tstate);
5881 if (PyErr_Occurred()) SWIG_fail;
5882 }
5883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5884 return resultobj;
5885 fail:
5886 return NULL;
5887 }
5888
5889
5890 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5891 PyObject *resultobj = 0;
5892 PyObject *arg1 = (PyObject *) 0 ;
5893 int arg2 ;
5894 int arg3 ;
5895 int arg4 = (int) 1 ;
5896 wxBitmap *result = 0 ;
5897 int val2 ;
5898 int ecode2 = 0 ;
5899 int val3 ;
5900 int ecode3 = 0 ;
5901 int val4 ;
5902 int ecode4 = 0 ;
5903 PyObject * obj0 = 0 ;
5904 PyObject * obj1 = 0 ;
5905 PyObject * obj2 = 0 ;
5906 PyObject * obj3 = 0 ;
5907 char * kwnames[] = {
5908 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5909 };
5910
5911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5912 arg1 = obj0;
5913 ecode2 = SWIG_AsVal_int(obj1, &val2);
5914 if (!SWIG_IsOK(ecode2)) {
5915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5916 }
5917 arg2 = static_cast< int >(val2);
5918 ecode3 = SWIG_AsVal_int(obj2, &val3);
5919 if (!SWIG_IsOK(ecode3)) {
5920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5921 }
5922 arg3 = static_cast< int >(val3);
5923 if (obj3) {
5924 ecode4 = SWIG_AsVal_int(obj3, &val4);
5925 if (!SWIG_IsOK(ecode4)) {
5926 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5927 }
5928 arg4 = static_cast< int >(val4);
5929 }
5930 {
5931 if (!wxPyCheckForApp()) SWIG_fail;
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5938 return resultobj;
5939 fail:
5940 return NULL;
5941 }
5942
5943
5944 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5945 PyObject *resultobj = 0;
5946 wxBitmap *arg1 = (wxBitmap *) 0 ;
5947 bool result;
5948 void *argp1 = 0 ;
5949 int res1 = 0 ;
5950 PyObject *swig_obj[1] ;
5951
5952 if (!args) SWIG_fail;
5953 swig_obj[0] = args;
5954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5955 if (!SWIG_IsOK(res1)) {
5956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5957 }
5958 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5959 {
5960 result = (bool)(arg1)->Ok();
5961 if (PyErr_Occurred()) SWIG_fail;
5962 }
5963 {
5964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5965 }
5966 return resultobj;
5967 fail:
5968 return NULL;
5969 }
5970
5971
5972 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5973 PyObject *resultobj = 0;
5974 wxBitmap *arg1 = (wxBitmap *) 0 ;
5975 int result;
5976 void *argp1 = 0 ;
5977 int res1 = 0 ;
5978 PyObject *swig_obj[1] ;
5979
5980 if (!args) SWIG_fail;
5981 swig_obj[0] = args;
5982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5983 if (!SWIG_IsOK(res1)) {
5984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5985 }
5986 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5987 {
5988 result = (int)(arg1)->GetWidth();
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 resultobj = SWIG_From_int(static_cast< int >(result));
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5999 PyObject *resultobj = 0;
6000 wxBitmap *arg1 = (wxBitmap *) 0 ;
6001 int result;
6002 void *argp1 = 0 ;
6003 int res1 = 0 ;
6004 PyObject *swig_obj[1] ;
6005
6006 if (!args) SWIG_fail;
6007 swig_obj[0] = args;
6008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6009 if (!SWIG_IsOK(res1)) {
6010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6011 }
6012 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6013 {
6014 result = (int)(arg1)->GetHeight();
6015 if (PyErr_Occurred()) SWIG_fail;
6016 }
6017 resultobj = SWIG_From_int(static_cast< int >(result));
6018 return resultobj;
6019 fail:
6020 return NULL;
6021 }
6022
6023
6024 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6025 PyObject *resultobj = 0;
6026 wxBitmap *arg1 = (wxBitmap *) 0 ;
6027 int result;
6028 void *argp1 = 0 ;
6029 int res1 = 0 ;
6030 PyObject *swig_obj[1] ;
6031
6032 if (!args) SWIG_fail;
6033 swig_obj[0] = args;
6034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6035 if (!SWIG_IsOK(res1)) {
6036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6037 }
6038 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6039 {
6040 result = (int)(arg1)->GetDepth();
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 resultobj = SWIG_From_int(static_cast< int >(result));
6044 return resultobj;
6045 fail:
6046 return NULL;
6047 }
6048
6049
6050 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6051 PyObject *resultobj = 0;
6052 wxBitmap *arg1 = (wxBitmap *) 0 ;
6053 wxSize result;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 PyObject *swig_obj[1] ;
6057
6058 if (!args) SWIG_fail;
6059 swig_obj[0] = args;
6060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6061 if (!SWIG_IsOK(res1)) {
6062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6063 }
6064 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6065 {
6066 result = wxBitmap_GetSize(arg1);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6070 return resultobj;
6071 fail:
6072 return NULL;
6073 }
6074
6075
6076 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6077 PyObject *resultobj = 0;
6078 wxBitmap *arg1 = (wxBitmap *) 0 ;
6079 SwigValueWrapper<wxImage > result;
6080 void *argp1 = 0 ;
6081 int res1 = 0 ;
6082 PyObject *swig_obj[1] ;
6083
6084 if (!args) SWIG_fail;
6085 swig_obj[0] = args;
6086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6087 if (!SWIG_IsOK(res1)) {
6088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6089 }
6090 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6091 {
6092 result = ((wxBitmap const *)arg1)->ConvertToImage();
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6103 PyObject *resultobj = 0;
6104 wxBitmap *arg1 = (wxBitmap *) 0 ;
6105 wxMask *result = 0 ;
6106 void *argp1 = 0 ;
6107 int res1 = 0 ;
6108 PyObject *swig_obj[1] ;
6109
6110 if (!args) SWIG_fail;
6111 swig_obj[0] = args;
6112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6113 if (!SWIG_IsOK(res1)) {
6114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6115 }
6116 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6117 {
6118 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6122 return resultobj;
6123 fail:
6124 return NULL;
6125 }
6126
6127
6128 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6129 PyObject *resultobj = 0;
6130 wxBitmap *arg1 = (wxBitmap *) 0 ;
6131 wxMask *arg2 = (wxMask *) 0 ;
6132 void *argp1 = 0 ;
6133 int res1 = 0 ;
6134 int res2 = 0 ;
6135 PyObject * obj0 = 0 ;
6136 PyObject * obj1 = 0 ;
6137 char * kwnames[] = {
6138 (char *) "self",(char *) "mask", NULL
6139 };
6140
6141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6143 if (!SWIG_IsOK(res1)) {
6144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6145 }
6146 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6147 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6148 if (!SWIG_IsOK(res2)) {
6149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6150 }
6151 {
6152 (arg1)->SetMask(arg2);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_Py_Void();
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj = 0;
6164 wxBitmap *arg1 = (wxBitmap *) 0 ;
6165 wxColour *arg2 = 0 ;
6166 void *argp1 = 0 ;
6167 int res1 = 0 ;
6168 wxColour temp2 ;
6169 PyObject * obj0 = 0 ;
6170 PyObject * obj1 = 0 ;
6171 char * kwnames[] = {
6172 (char *) "self",(char *) "colour", NULL
6173 };
6174
6175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6177 if (!SWIG_IsOK(res1)) {
6178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6179 }
6180 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6181 {
6182 arg2 = &temp2;
6183 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6184 }
6185 {
6186 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 resultobj = SWIG_Py_Void();
6190 return resultobj;
6191 fail:
6192 return NULL;
6193 }
6194
6195
6196 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6197 PyObject *resultobj = 0;
6198 wxBitmap *arg1 = (wxBitmap *) 0 ;
6199 wxRect *arg2 = 0 ;
6200 SwigValueWrapper<wxBitmap > result;
6201 void *argp1 = 0 ;
6202 int res1 = 0 ;
6203 wxRect temp2 ;
6204 PyObject * obj0 = 0 ;
6205 PyObject * obj1 = 0 ;
6206 char * kwnames[] = {
6207 (char *) "self",(char *) "rect", NULL
6208 };
6209
6210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6214 }
6215 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6216 {
6217 arg2 = &temp2;
6218 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6219 }
6220 {
6221 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6232 PyObject *resultobj = 0;
6233 wxBitmap *arg1 = (wxBitmap *) 0 ;
6234 wxString *arg2 = 0 ;
6235 wxBitmapType arg3 ;
6236 wxPalette *arg4 = (wxPalette *) NULL ;
6237 bool result;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 bool temp2 = false ;
6241 int val3 ;
6242 int ecode3 = 0 ;
6243 void *argp4 = 0 ;
6244 int res4 = 0 ;
6245 PyObject * obj0 = 0 ;
6246 PyObject * obj1 = 0 ;
6247 PyObject * obj2 = 0 ;
6248 PyObject * obj3 = 0 ;
6249 char * kwnames[] = {
6250 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6251 };
6252
6253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6255 if (!SWIG_IsOK(res1)) {
6256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6257 }
6258 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6259 {
6260 arg2 = wxString_in_helper(obj1);
6261 if (arg2 == NULL) SWIG_fail;
6262 temp2 = true;
6263 }
6264 ecode3 = SWIG_AsVal_int(obj2, &val3);
6265 if (!SWIG_IsOK(ecode3)) {
6266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6267 }
6268 arg3 = static_cast< wxBitmapType >(val3);
6269 if (obj3) {
6270 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6271 if (!SWIG_IsOK(res4)) {
6272 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6273 }
6274 arg4 = reinterpret_cast< wxPalette * >(argp4);
6275 }
6276 {
6277 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 {
6281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6282 }
6283 {
6284 if (temp2)
6285 delete arg2;
6286 }
6287 return resultobj;
6288 fail:
6289 {
6290 if (temp2)
6291 delete arg2;
6292 }
6293 return NULL;
6294 }
6295
6296
6297 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6298 PyObject *resultobj = 0;
6299 wxBitmap *arg1 = (wxBitmap *) 0 ;
6300 wxString *arg2 = 0 ;
6301 wxBitmapType arg3 ;
6302 bool result;
6303 void *argp1 = 0 ;
6304 int res1 = 0 ;
6305 bool temp2 = false ;
6306 int val3 ;
6307 int ecode3 = 0 ;
6308 PyObject * obj0 = 0 ;
6309 PyObject * obj1 = 0 ;
6310 PyObject * obj2 = 0 ;
6311 char * kwnames[] = {
6312 (char *) "self",(char *) "name",(char *) "type", NULL
6313 };
6314
6315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6317 if (!SWIG_IsOK(res1)) {
6318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6319 }
6320 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6321 {
6322 arg2 = wxString_in_helper(obj1);
6323 if (arg2 == NULL) SWIG_fail;
6324 temp2 = true;
6325 }
6326 ecode3 = SWIG_AsVal_int(obj2, &val3);
6327 if (!SWIG_IsOK(ecode3)) {
6328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6329 }
6330 arg3 = static_cast< wxBitmapType >(val3);
6331 {
6332 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6333 if (PyErr_Occurred()) SWIG_fail;
6334 }
6335 {
6336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6337 }
6338 {
6339 if (temp2)
6340 delete arg2;
6341 }
6342 return resultobj;
6343 fail:
6344 {
6345 if (temp2)
6346 delete arg2;
6347 }
6348 return NULL;
6349 }
6350
6351
6352 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6353 PyObject *resultobj = 0;
6354 wxBitmap *arg1 = (wxBitmap *) 0 ;
6355 wxPalette *result = 0 ;
6356 void *argp1 = 0 ;
6357 int res1 = 0 ;
6358 PyObject *swig_obj[1] ;
6359
6360 if (!args) SWIG_fail;
6361 swig_obj[0] = args;
6362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6363 if (!SWIG_IsOK(res1)) {
6364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6365 }
6366 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6367 {
6368 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6369 if (PyErr_Occurred()) SWIG_fail;
6370 }
6371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6372 return resultobj;
6373 fail:
6374 return NULL;
6375 }
6376
6377
6378 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6379 PyObject *resultobj = 0;
6380 wxBitmap *arg1 = (wxBitmap *) 0 ;
6381 wxIcon *arg2 = 0 ;
6382 bool result;
6383 void *argp1 = 0 ;
6384 int res1 = 0 ;
6385 void *argp2 = 0 ;
6386 int res2 = 0 ;
6387 PyObject * obj0 = 0 ;
6388 PyObject * obj1 = 0 ;
6389 char * kwnames[] = {
6390 (char *) "self",(char *) "icon", NULL
6391 };
6392
6393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6395 if (!SWIG_IsOK(res1)) {
6396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6397 }
6398 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6399 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6400 if (!SWIG_IsOK(res2)) {
6401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6402 }
6403 if (!argp2) {
6404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6405 }
6406 arg2 = reinterpret_cast< wxIcon * >(argp2);
6407 {
6408 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 {
6412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6413 }
6414 return resultobj;
6415 fail:
6416 return NULL;
6417 }
6418
6419
6420 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6421 PyObject *resultobj = 0;
6422 wxBitmap *arg1 = (wxBitmap *) 0 ;
6423 int arg2 ;
6424 void *argp1 = 0 ;
6425 int res1 = 0 ;
6426 int val2 ;
6427 int ecode2 = 0 ;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 char * kwnames[] = {
6431 (char *) "self",(char *) "height", NULL
6432 };
6433
6434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6438 }
6439 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6440 ecode2 = SWIG_AsVal_int(obj1, &val2);
6441 if (!SWIG_IsOK(ecode2)) {
6442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6443 }
6444 arg2 = static_cast< int >(val2);
6445 {
6446 (arg1)->SetHeight(arg2);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 resultobj = SWIG_Py_Void();
6450 return resultobj;
6451 fail:
6452 return NULL;
6453 }
6454
6455
6456 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6457 PyObject *resultobj = 0;
6458 wxBitmap *arg1 = (wxBitmap *) 0 ;
6459 int arg2 ;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 int val2 ;
6463 int ecode2 = 0 ;
6464 PyObject * obj0 = 0 ;
6465 PyObject * obj1 = 0 ;
6466 char * kwnames[] = {
6467 (char *) "self",(char *) "width", NULL
6468 };
6469
6470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6472 if (!SWIG_IsOK(res1)) {
6473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6474 }
6475 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6476 ecode2 = SWIG_AsVal_int(obj1, &val2);
6477 if (!SWIG_IsOK(ecode2)) {
6478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6479 }
6480 arg2 = static_cast< int >(val2);
6481 {
6482 (arg1)->SetWidth(arg2);
6483 if (PyErr_Occurred()) SWIG_fail;
6484 }
6485 resultobj = SWIG_Py_Void();
6486 return resultobj;
6487 fail:
6488 return NULL;
6489 }
6490
6491
6492 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6493 PyObject *resultobj = 0;
6494 wxBitmap *arg1 = (wxBitmap *) 0 ;
6495 int arg2 ;
6496 void *argp1 = 0 ;
6497 int res1 = 0 ;
6498 int val2 ;
6499 int ecode2 = 0 ;
6500 PyObject * obj0 = 0 ;
6501 PyObject * obj1 = 0 ;
6502 char * kwnames[] = {
6503 (char *) "self",(char *) "depth", NULL
6504 };
6505
6506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6508 if (!SWIG_IsOK(res1)) {
6509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6510 }
6511 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6512 ecode2 = SWIG_AsVal_int(obj1, &val2);
6513 if (!SWIG_IsOK(ecode2)) {
6514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6515 }
6516 arg2 = static_cast< int >(val2);
6517 {
6518 (arg1)->SetDepth(arg2);
6519 if (PyErr_Occurred()) SWIG_fail;
6520 }
6521 resultobj = SWIG_Py_Void();
6522 return resultobj;
6523 fail:
6524 return NULL;
6525 }
6526
6527
6528 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6529 PyObject *resultobj = 0;
6530 wxBitmap *arg1 = (wxBitmap *) 0 ;
6531 wxSize *arg2 = 0 ;
6532 void *argp1 = 0 ;
6533 int res1 = 0 ;
6534 wxSize temp2 ;
6535 PyObject * obj0 = 0 ;
6536 PyObject * obj1 = 0 ;
6537 char * kwnames[] = {
6538 (char *) "self",(char *) "size", NULL
6539 };
6540
6541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6543 if (!SWIG_IsOK(res1)) {
6544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6545 }
6546 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6547 {
6548 arg2 = &temp2;
6549 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6550 }
6551 {
6552 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_Py_Void();
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = 0;
6564 wxBitmap *arg1 = (wxBitmap *) 0 ;
6565 wxBitmap *arg2 = (wxBitmap *) 0 ;
6566 bool result;
6567 void *argp1 = 0 ;
6568 int res1 = 0 ;
6569 void *argp2 = 0 ;
6570 int res2 = 0 ;
6571 PyObject * obj0 = 0 ;
6572 PyObject * obj1 = 0 ;
6573 char * kwnames[] = {
6574 (char *) "self",(char *) "other", NULL
6575 };
6576
6577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6581 }
6582 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6584 if (!SWIG_IsOK(res2)) {
6585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6586 }
6587 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6588 {
6589 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 {
6593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6594 }
6595 return resultobj;
6596 fail:
6597 return NULL;
6598 }
6599
6600
6601 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6602 PyObject *resultobj = 0;
6603 wxBitmap *arg1 = (wxBitmap *) 0 ;
6604 wxBitmap *arg2 = (wxBitmap *) 0 ;
6605 bool result;
6606 void *argp1 = 0 ;
6607 int res1 = 0 ;
6608 void *argp2 = 0 ;
6609 int res2 = 0 ;
6610 PyObject * obj0 = 0 ;
6611 PyObject * obj1 = 0 ;
6612 char * kwnames[] = {
6613 (char *) "self",(char *) "other", NULL
6614 };
6615
6616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6618 if (!SWIG_IsOK(res1)) {
6619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6620 }
6621 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6623 if (!SWIG_IsOK(res2)) {
6624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6625 }
6626 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6627 {
6628 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 {
6632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6633 }
6634 return resultobj;
6635 fail:
6636 return NULL;
6637 }
6638
6639
6640 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6641 PyObject *obj;
6642 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6643 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6644 return SWIG_Py_Void();
6645 }
6646
6647 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6648 return SWIG_Python_InitShadowInstance(args);
6649 }
6650
6651 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6652 PyObject *resultobj = 0;
6653 int arg1 ;
6654 int arg2 ;
6655 buffer arg3 ;
6656 int arg4 ;
6657 buffer arg5 ;
6658 int arg6 ;
6659 wxBitmap *result = 0 ;
6660 int val1 ;
6661 int ecode1 = 0 ;
6662 int val2 ;
6663 int ecode2 = 0 ;
6664 Py_ssize_t temp3 ;
6665 Py_ssize_t temp5 ;
6666 PyObject * obj0 = 0 ;
6667 PyObject * obj1 = 0 ;
6668 PyObject * obj2 = 0 ;
6669 PyObject * obj3 = 0 ;
6670 char * kwnames[] = {
6671 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6672 };
6673
6674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6675 ecode1 = SWIG_AsVal_int(obj0, &val1);
6676 if (!SWIG_IsOK(ecode1)) {
6677 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6678 }
6679 arg1 = static_cast< int >(val1);
6680 ecode2 = SWIG_AsVal_int(obj1, &val2);
6681 if (!SWIG_IsOK(ecode2)) {
6682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6683 }
6684 arg2 = static_cast< int >(val2);
6685 {
6686 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6687 arg4 = (int)temp3;
6688 }
6689 {
6690 if (obj3 != Py_None) {
6691 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6692 arg6 = (int)temp5;
6693 }
6694 }
6695 {
6696 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6700 return resultobj;
6701 fail:
6702 return NULL;
6703 }
6704
6705
6706 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6707 PyObject *resultobj = 0;
6708 int arg1 ;
6709 int arg2 ;
6710 buffer arg3 ;
6711 int arg4 ;
6712 wxBitmap *result = 0 ;
6713 int val1 ;
6714 int ecode1 = 0 ;
6715 int val2 ;
6716 int ecode2 = 0 ;
6717 Py_ssize_t temp3 ;
6718 PyObject * obj0 = 0 ;
6719 PyObject * obj1 = 0 ;
6720 PyObject * obj2 = 0 ;
6721 char * kwnames[] = {
6722 (char *) "width",(char *) "height",(char *) "data", NULL
6723 };
6724
6725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6726 ecode1 = SWIG_AsVal_int(obj0, &val1);
6727 if (!SWIG_IsOK(ecode1)) {
6728 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6729 }
6730 arg1 = static_cast< int >(val1);
6731 ecode2 = SWIG_AsVal_int(obj1, &val2);
6732 if (!SWIG_IsOK(ecode2)) {
6733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6734 }
6735 arg2 = static_cast< int >(val2);
6736 {
6737 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6738 arg4 = (int)temp3;
6739 }
6740 {
6741 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6742 if (PyErr_Occurred()) SWIG_fail;
6743 }
6744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6745 return resultobj;
6746 fail:
6747 return NULL;
6748 }
6749
6750
6751 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6752 PyObject *resultobj = 0;
6753 int arg1 ;
6754 int arg2 ;
6755 buffer arg3 ;
6756 int arg4 ;
6757 wxBitmap *result = 0 ;
6758 int val1 ;
6759 int ecode1 = 0 ;
6760 int val2 ;
6761 int ecode2 = 0 ;
6762 Py_ssize_t temp3 ;
6763 PyObject * obj0 = 0 ;
6764 PyObject * obj1 = 0 ;
6765 PyObject * obj2 = 0 ;
6766 char * kwnames[] = {
6767 (char *) "width",(char *) "height",(char *) "data", NULL
6768 };
6769
6770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6771 ecode1 = SWIG_AsVal_int(obj0, &val1);
6772 if (!SWIG_IsOK(ecode1)) {
6773 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6774 }
6775 arg1 = static_cast< int >(val1);
6776 ecode2 = SWIG_AsVal_int(obj1, &val2);
6777 if (!SWIG_IsOK(ecode2)) {
6778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6779 }
6780 arg2 = static_cast< int >(val2);
6781 {
6782 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6783 arg4 = (int)temp3;
6784 }
6785 {
6786 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6787 if (PyErr_Occurred()) SWIG_fail;
6788 }
6789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6790 return resultobj;
6791 fail:
6792 return NULL;
6793 }
6794
6795
6796 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6797 PyObject *resultobj = 0;
6798 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6799 wxPoint result;
6800 void *argp1 = 0 ;
6801 int res1 = 0 ;
6802 PyObject *swig_obj[1] ;
6803
6804 if (!args) SWIG_fail;
6805 swig_obj[0] = args;
6806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6807 if (!SWIG_IsOK(res1)) {
6808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6809 }
6810 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6811 {
6812 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6816 return resultobj;
6817 fail:
6818 return NULL;
6819 }
6820
6821
6822 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6823 PyObject *resultobj = 0;
6824 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6825 int result;
6826 void *argp1 = 0 ;
6827 int res1 = 0 ;
6828 PyObject *swig_obj[1] ;
6829
6830 if (!args) SWIG_fail;
6831 swig_obj[0] = args;
6832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6833 if (!SWIG_IsOK(res1)) {
6834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6835 }
6836 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6837 {
6838 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 resultobj = SWIG_From_int(static_cast< int >(result));
6842 return resultobj;
6843 fail:
6844 return NULL;
6845 }
6846
6847
6848 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6849 PyObject *resultobj = 0;
6850 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6851 int result;
6852 void *argp1 = 0 ;
6853 int res1 = 0 ;
6854 PyObject *swig_obj[1] ;
6855
6856 if (!args) SWIG_fail;
6857 swig_obj[0] = args;
6858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6859 if (!SWIG_IsOK(res1)) {
6860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6861 }
6862 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6863 {
6864 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
6865 if (PyErr_Occurred()) SWIG_fail;
6866 }
6867 resultobj = SWIG_From_int(static_cast< int >(result));
6868 return resultobj;
6869 fail:
6870 return NULL;
6871 }
6872
6873
6874 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6875 PyObject *resultobj = 0;
6876 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6877 wxSize result;
6878 void *argp1 = 0 ;
6879 int res1 = 0 ;
6880 PyObject *swig_obj[1] ;
6881
6882 if (!args) SWIG_fail;
6883 swig_obj[0] = args;
6884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6885 if (!SWIG_IsOK(res1)) {
6886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6887 }
6888 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6889 {
6890 result = ((wxPixelDataBase const *)arg1)->GetSize();
6891 if (PyErr_Occurred()) SWIG_fail;
6892 }
6893 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6894 return resultobj;
6895 fail:
6896 return NULL;
6897 }
6898
6899
6900 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6901 PyObject *resultobj = 0;
6902 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6903 int result;
6904 void *argp1 = 0 ;
6905 int res1 = 0 ;
6906 PyObject *swig_obj[1] ;
6907
6908 if (!args) SWIG_fail;
6909 swig_obj[0] = args;
6910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6911 if (!SWIG_IsOK(res1)) {
6912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6913 }
6914 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6915 {
6916 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 resultobj = SWIG_From_int(static_cast< int >(result));
6920 return resultobj;
6921 fail:
6922 return NULL;
6923 }
6924
6925
6926 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6927 PyObject *obj;
6928 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6929 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
6930 return SWIG_Py_Void();
6931 }
6932
6933 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6934 PyObject *resultobj = 0;
6935 wxBitmap *arg1 = 0 ;
6936 wxNativePixelData *result = 0 ;
6937 void *argp1 = 0 ;
6938 int res1 = 0 ;
6939
6940 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6942 if (!SWIG_IsOK(res1)) {
6943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6944 }
6945 if (!argp1) {
6946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6947 }
6948 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6949 {
6950 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
6951 if (PyErr_Occurred()) SWIG_fail;
6952 }
6953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6954 return resultobj;
6955 fail:
6956 return NULL;
6957 }
6958
6959
6960 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6961 PyObject *resultobj = 0;
6962 wxBitmap *arg1 = 0 ;
6963 wxRect *arg2 = 0 ;
6964 wxNativePixelData *result = 0 ;
6965 void *argp1 = 0 ;
6966 int res1 = 0 ;
6967 wxRect temp2 ;
6968
6969 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6971 if (!SWIG_IsOK(res1)) {
6972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6973 }
6974 if (!argp1) {
6975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6976 }
6977 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6978 {
6979 arg2 = &temp2;
6980 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
6981 }
6982 {
6983 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6987 return resultobj;
6988 fail:
6989 return NULL;
6990 }
6991
6992
6993 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6994 PyObject *resultobj = 0;
6995 wxBitmap *arg1 = 0 ;
6996 wxPoint *arg2 = 0 ;
6997 wxSize *arg3 = 0 ;
6998 wxNativePixelData *result = 0 ;
6999 void *argp1 = 0 ;
7000 int res1 = 0 ;
7001 wxPoint temp2 ;
7002 wxSize temp3 ;
7003
7004 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7006 if (!SWIG_IsOK(res1)) {
7007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7008 }
7009 if (!argp1) {
7010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7011 }
7012 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7013 {
7014 arg2 = &temp2;
7015 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7016 }
7017 {
7018 arg3 = &temp3;
7019 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7020 }
7021 {
7022 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7026 return resultobj;
7027 fail:
7028 return NULL;
7029 }
7030
7031
7032 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7033 int argc;
7034 PyObject *argv[4];
7035
7036 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7037 --argc;
7038 if (argc == 1) {
7039 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7040 }
7041 if (argc == 2) {
7042 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7043 }
7044 if (argc == 3) {
7045 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7046 }
7047
7048 fail:
7049 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7050 return NULL;
7051 }
7052
7053
7054 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7055 PyObject *resultobj = 0;
7056 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7057 void *argp1 = 0 ;
7058 int res1 = 0 ;
7059 PyObject *swig_obj[1] ;
7060
7061 if (!args) SWIG_fail;
7062 swig_obj[0] = args;
7063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7066 }
7067 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7068 {
7069 delete arg1;
7070
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 resultobj = SWIG_Py_Void();
7074 return resultobj;
7075 fail:
7076 return NULL;
7077 }
7078
7079
7080 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7081 PyObject *resultobj = 0;
7082 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7083 wxNativePixelData_Accessor result;
7084 void *argp1 = 0 ;
7085 int res1 = 0 ;
7086 PyObject *swig_obj[1] ;
7087
7088 if (!args) SWIG_fail;
7089 swig_obj[0] = args;
7090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7091 if (!SWIG_IsOK(res1)) {
7092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7093 }
7094 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7095 {
7096 result = ((wxNativePixelData const *)arg1)->GetPixels();
7097 if (PyErr_Occurred()) SWIG_fail;
7098 }
7099 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7100 return resultobj;
7101 fail:
7102 return NULL;
7103 }
7104
7105
7106 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7107 PyObject *resultobj = 0;
7108 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7109 void *argp1 = 0 ;
7110 int res1 = 0 ;
7111 PyObject *swig_obj[1] ;
7112
7113 if (!args) SWIG_fail;
7114 swig_obj[0] = args;
7115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7116 if (!SWIG_IsOK(res1)) {
7117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7118 }
7119 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7120 {
7121 (arg1)->UseAlpha();
7122 if (PyErr_Occurred()) SWIG_fail;
7123 }
7124 resultobj = SWIG_Py_Void();
7125 return resultobj;
7126 fail:
7127 return NULL;
7128 }
7129
7130
7131 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7132 PyObject *resultobj = 0;
7133 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7134 bool result;
7135 void *argp1 = 0 ;
7136 int res1 = 0 ;
7137 PyObject *swig_obj[1] ;
7138
7139 if (!args) SWIG_fail;
7140 swig_obj[0] = args;
7141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7144 }
7145 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7146 {
7147 result = (bool)wxNativePixelData___nonzero__(arg1);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 {
7151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7152 }
7153 return resultobj;
7154 fail:
7155 return NULL;
7156 }
7157
7158
7159 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7160 PyObject *obj;
7161 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7162 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7163 return SWIG_Py_Void();
7164 }
7165
7166 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7167 return SWIG_Python_InitShadowInstance(args);
7168 }
7169
7170 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7171 PyObject *resultobj = 0;
7172 wxNativePixelData *arg1 = 0 ;
7173 wxNativePixelData_Accessor *result = 0 ;
7174 void *argp1 = 0 ;
7175 int res1 = 0 ;
7176
7177 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7181 }
7182 if (!argp1) {
7183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7184 }
7185 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7186 {
7187 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7191 return resultobj;
7192 fail:
7193 return NULL;
7194 }
7195
7196
7197 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7198 PyObject *resultobj = 0;
7199 wxBitmap *arg1 = 0 ;
7200 wxNativePixelData *arg2 = 0 ;
7201 wxNativePixelData_Accessor *result = 0 ;
7202 void *argp1 = 0 ;
7203 int res1 = 0 ;
7204 void *argp2 = 0 ;
7205 int res2 = 0 ;
7206
7207 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7209 if (!SWIG_IsOK(res1)) {
7210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7211 }
7212 if (!argp1) {
7213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7214 }
7215 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7216 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7217 if (!SWIG_IsOK(res2)) {
7218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7219 }
7220 if (!argp2) {
7221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7222 }
7223 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7224 {
7225 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7229 return resultobj;
7230 fail:
7231 return NULL;
7232 }
7233
7234
7235 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7236 PyObject *resultobj = 0;
7237 wxNativePixelData_Accessor *result = 0 ;
7238
7239 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7240 {
7241 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7245 return resultobj;
7246 fail:
7247 return NULL;
7248 }
7249
7250
7251 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7252 int argc;
7253 PyObject *argv[3];
7254
7255 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7256 --argc;
7257 if (argc == 0) {
7258 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7259 }
7260 if (argc == 1) {
7261 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7262 }
7263 if (argc == 2) {
7264 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7265 }
7266
7267 fail:
7268 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7269 return NULL;
7270 }
7271
7272
7273 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7274 PyObject *resultobj = 0;
7275 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 PyObject *swig_obj[1] ;
7279
7280 if (!args) SWIG_fail;
7281 swig_obj[0] = args;
7282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7283 if (!SWIG_IsOK(res1)) {
7284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7285 }
7286 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7287 {
7288 delete arg1;
7289
7290 if (PyErr_Occurred()) SWIG_fail;
7291 }
7292 resultobj = SWIG_Py_Void();
7293 return resultobj;
7294 fail:
7295 return NULL;
7296 }
7297
7298
7299 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7300 PyObject *resultobj = 0;
7301 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7302 wxNativePixelData *arg2 = 0 ;
7303 void *argp1 = 0 ;
7304 int res1 = 0 ;
7305 void *argp2 = 0 ;
7306 int res2 = 0 ;
7307 PyObject * obj0 = 0 ;
7308 PyObject * obj1 = 0 ;
7309 char * kwnames[] = {
7310 (char *) "self",(char *) "data", NULL
7311 };
7312
7313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7315 if (!SWIG_IsOK(res1)) {
7316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7317 }
7318 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7320 if (!SWIG_IsOK(res2)) {
7321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7322 }
7323 if (!argp2) {
7324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7325 }
7326 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7327 {
7328 (arg1)->Reset((wxNativePixelData const &)*arg2);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_Py_Void();
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7339 PyObject *resultobj = 0;
7340 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7341 bool result;
7342 void *argp1 = 0 ;
7343 int res1 = 0 ;
7344 PyObject *swig_obj[1] ;
7345
7346 if (!args) SWIG_fail;
7347 swig_obj[0] = args;
7348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7349 if (!SWIG_IsOK(res1)) {
7350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7351 }
7352 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7353 {
7354 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 {
7358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7359 }
7360 return resultobj;
7361 fail:
7362 return NULL;
7363 }
7364
7365
7366 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7367 PyObject *resultobj = 0;
7368 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7369 void *argp1 = 0 ;
7370 int res1 = 0 ;
7371 PyObject *swig_obj[1] ;
7372
7373 if (!args) SWIG_fail;
7374 swig_obj[0] = args;
7375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7376 if (!SWIG_IsOK(res1)) {
7377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7378 }
7379 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7380 {
7381 wxNativePixelData_Accessor_nextPixel(arg1);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_Py_Void();
7385 return resultobj;
7386 fail:
7387 return NULL;
7388 }
7389
7390
7391 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7392 PyObject *resultobj = 0;
7393 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7394 wxNativePixelData *arg2 = 0 ;
7395 int arg3 ;
7396 int arg4 ;
7397 void *argp1 = 0 ;
7398 int res1 = 0 ;
7399 void *argp2 = 0 ;
7400 int res2 = 0 ;
7401 int val3 ;
7402 int ecode3 = 0 ;
7403 int val4 ;
7404 int ecode4 = 0 ;
7405 PyObject * obj0 = 0 ;
7406 PyObject * obj1 = 0 ;
7407 PyObject * obj2 = 0 ;
7408 PyObject * obj3 = 0 ;
7409 char * kwnames[] = {
7410 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7411 };
7412
7413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7415 if (!SWIG_IsOK(res1)) {
7416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7417 }
7418 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7420 if (!SWIG_IsOK(res2)) {
7421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7422 }
7423 if (!argp2) {
7424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7425 }
7426 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7427 ecode3 = SWIG_AsVal_int(obj2, &val3);
7428 if (!SWIG_IsOK(ecode3)) {
7429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7430 }
7431 arg3 = static_cast< int >(val3);
7432 ecode4 = SWIG_AsVal_int(obj3, &val4);
7433 if (!SWIG_IsOK(ecode4)) {
7434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7435 }
7436 arg4 = static_cast< int >(val4);
7437 {
7438 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 resultobj = SWIG_Py_Void();
7442 return resultobj;
7443 fail:
7444 return NULL;
7445 }
7446
7447
7448 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj = 0;
7450 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7451 wxNativePixelData *arg2 = 0 ;
7452 int arg3 ;
7453 void *argp1 = 0 ;
7454 int res1 = 0 ;
7455 void *argp2 = 0 ;
7456 int res2 = 0 ;
7457 int val3 ;
7458 int ecode3 = 0 ;
7459 PyObject * obj0 = 0 ;
7460 PyObject * obj1 = 0 ;
7461 PyObject * obj2 = 0 ;
7462 char * kwnames[] = {
7463 (char *) "self",(char *) "data",(char *) "x", NULL
7464 };
7465
7466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7468 if (!SWIG_IsOK(res1)) {
7469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7470 }
7471 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7473 if (!SWIG_IsOK(res2)) {
7474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7475 }
7476 if (!argp2) {
7477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7478 }
7479 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7480 ecode3 = SWIG_AsVal_int(obj2, &val3);
7481 if (!SWIG_IsOK(ecode3)) {
7482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7483 }
7484 arg3 = static_cast< int >(val3);
7485 {
7486 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7487 if (PyErr_Occurred()) SWIG_fail;
7488 }
7489 resultobj = SWIG_Py_Void();
7490 return resultobj;
7491 fail:
7492 return NULL;
7493 }
7494
7495
7496 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7497 PyObject *resultobj = 0;
7498 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7499 wxNativePixelData *arg2 = 0 ;
7500 int arg3 ;
7501 void *argp1 = 0 ;
7502 int res1 = 0 ;
7503 void *argp2 = 0 ;
7504 int res2 = 0 ;
7505 int val3 ;
7506 int ecode3 = 0 ;
7507 PyObject * obj0 = 0 ;
7508 PyObject * obj1 = 0 ;
7509 PyObject * obj2 = 0 ;
7510 char * kwnames[] = {
7511 (char *) "self",(char *) "data",(char *) "y", NULL
7512 };
7513
7514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7516 if (!SWIG_IsOK(res1)) {
7517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7518 }
7519 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7521 if (!SWIG_IsOK(res2)) {
7522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7523 }
7524 if (!argp2) {
7525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7526 }
7527 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7528 ecode3 = SWIG_AsVal_int(obj2, &val3);
7529 if (!SWIG_IsOK(ecode3)) {
7530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7531 }
7532 arg3 = static_cast< int >(val3);
7533 {
7534 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 resultobj = SWIG_Py_Void();
7538 return resultobj;
7539 fail:
7540 return NULL;
7541 }
7542
7543
7544 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7545 PyObject *resultobj = 0;
7546 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7547 wxNativePixelData *arg2 = 0 ;
7548 int arg3 ;
7549 int arg4 ;
7550 void *argp1 = 0 ;
7551 int res1 = 0 ;
7552 void *argp2 = 0 ;
7553 int res2 = 0 ;
7554 int val3 ;
7555 int ecode3 = 0 ;
7556 int val4 ;
7557 int ecode4 = 0 ;
7558 PyObject * obj0 = 0 ;
7559 PyObject * obj1 = 0 ;
7560 PyObject * obj2 = 0 ;
7561 PyObject * obj3 = 0 ;
7562 char * kwnames[] = {
7563 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7564 };
7565
7566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7568 if (!SWIG_IsOK(res1)) {
7569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7570 }
7571 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7573 if (!SWIG_IsOK(res2)) {
7574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7575 }
7576 if (!argp2) {
7577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7578 }
7579 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7580 ecode3 = SWIG_AsVal_int(obj2, &val3);
7581 if (!SWIG_IsOK(ecode3)) {
7582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7583 }
7584 arg3 = static_cast< int >(val3);
7585 ecode4 = SWIG_AsVal_int(obj3, &val4);
7586 if (!SWIG_IsOK(ecode4)) {
7587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7588 }
7589 arg4 = static_cast< int >(val4);
7590 {
7591 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7592 if (PyErr_Occurred()) SWIG_fail;
7593 }
7594 resultobj = SWIG_Py_Void();
7595 return resultobj;
7596 fail:
7597 return NULL;
7598 }
7599
7600
7601 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7602 PyObject *resultobj = 0;
7603 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7604 byte arg2 ;
7605 byte arg3 ;
7606 byte arg4 ;
7607 void *argp1 = 0 ;
7608 int res1 = 0 ;
7609 unsigned char val2 ;
7610 int ecode2 = 0 ;
7611 unsigned char val3 ;
7612 int ecode3 = 0 ;
7613 unsigned char val4 ;
7614 int ecode4 = 0 ;
7615 PyObject * obj0 = 0 ;
7616 PyObject * obj1 = 0 ;
7617 PyObject * obj2 = 0 ;
7618 PyObject * obj3 = 0 ;
7619 char * kwnames[] = {
7620 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7621 };
7622
7623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7625 if (!SWIG_IsOK(res1)) {
7626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7627 }
7628 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7629 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7630 if (!SWIG_IsOK(ecode2)) {
7631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7632 }
7633 arg2 = static_cast< byte >(val2);
7634 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7635 if (!SWIG_IsOK(ecode3)) {
7636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7637 }
7638 arg3 = static_cast< byte >(val3);
7639 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7640 if (!SWIG_IsOK(ecode4)) {
7641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7642 }
7643 arg4 = static_cast< byte >(val4);
7644 {
7645 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7646 if (PyErr_Occurred()) SWIG_fail;
7647 }
7648 resultobj = SWIG_Py_Void();
7649 return resultobj;
7650 fail:
7651 return NULL;
7652 }
7653
7654
7655 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7656 PyObject *resultobj = 0;
7657 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7658 PyObject *result = 0 ;
7659 void *argp1 = 0 ;
7660 int res1 = 0 ;
7661 PyObject *swig_obj[1] ;
7662
7663 if (!args) SWIG_fail;
7664 swig_obj[0] = args;
7665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7666 if (!SWIG_IsOK(res1)) {
7667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7668 }
7669 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7670 {
7671 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 resultobj = result;
7675 return resultobj;
7676 fail:
7677 return NULL;
7678 }
7679
7680
7681 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7682 PyObject *obj;
7683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7684 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7685 return SWIG_Py_Void();
7686 }
7687
7688 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7689 return SWIG_Python_InitShadowInstance(args);
7690 }
7691
7692 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7693 PyObject *resultobj = 0;
7694 wxBitmap *arg1 = 0 ;
7695 wxAlphaPixelData *result = 0 ;
7696 void *argp1 = 0 ;
7697 int res1 = 0 ;
7698
7699 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7701 if (!SWIG_IsOK(res1)) {
7702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7703 }
7704 if (!argp1) {
7705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7706 }
7707 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7708 {
7709 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7710 if (PyErr_Occurred()) SWIG_fail;
7711 }
7712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7713 return resultobj;
7714 fail:
7715 return NULL;
7716 }
7717
7718
7719 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7720 PyObject *resultobj = 0;
7721 wxBitmap *arg1 = 0 ;
7722 wxRect *arg2 = 0 ;
7723 wxAlphaPixelData *result = 0 ;
7724 void *argp1 = 0 ;
7725 int res1 = 0 ;
7726 wxRect temp2 ;
7727
7728 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7730 if (!SWIG_IsOK(res1)) {
7731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7732 }
7733 if (!argp1) {
7734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7735 }
7736 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7737 {
7738 arg2 = &temp2;
7739 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7740 }
7741 {
7742 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 }
7745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7753 PyObject *resultobj = 0;
7754 wxBitmap *arg1 = 0 ;
7755 wxPoint *arg2 = 0 ;
7756 wxSize *arg3 = 0 ;
7757 wxAlphaPixelData *result = 0 ;
7758 void *argp1 = 0 ;
7759 int res1 = 0 ;
7760 wxPoint temp2 ;
7761 wxSize temp3 ;
7762
7763 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7765 if (!SWIG_IsOK(res1)) {
7766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7767 }
7768 if (!argp1) {
7769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7770 }
7771 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7772 {
7773 arg2 = &temp2;
7774 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7775 }
7776 {
7777 arg3 = &temp3;
7778 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7779 }
7780 {
7781 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 }
7784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7785 return resultobj;
7786 fail:
7787 return NULL;
7788 }
7789
7790
7791 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7792 int argc;
7793 PyObject *argv[4];
7794
7795 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7796 --argc;
7797 if (argc == 1) {
7798 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7799 }
7800 if (argc == 2) {
7801 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7802 }
7803 if (argc == 3) {
7804 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7805 }
7806
7807 fail:
7808 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7809 return NULL;
7810 }
7811
7812
7813 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7814 PyObject *resultobj = 0;
7815 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7816 void *argp1 = 0 ;
7817 int res1 = 0 ;
7818 PyObject *swig_obj[1] ;
7819
7820 if (!args) SWIG_fail;
7821 swig_obj[0] = args;
7822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7823 if (!SWIG_IsOK(res1)) {
7824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7825 }
7826 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7827 {
7828 delete arg1;
7829
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 resultobj = SWIG_Py_Void();
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7840 PyObject *resultobj = 0;
7841 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7842 wxAlphaPixelData_Accessor result;
7843 void *argp1 = 0 ;
7844 int res1 = 0 ;
7845 PyObject *swig_obj[1] ;
7846
7847 if (!args) SWIG_fail;
7848 swig_obj[0] = args;
7849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7850 if (!SWIG_IsOK(res1)) {
7851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7852 }
7853 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7854 {
7855 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
7858 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
7859 return resultobj;
7860 fail:
7861 return NULL;
7862 }
7863
7864
7865 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7866 PyObject *resultobj = 0;
7867 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7868 void *argp1 = 0 ;
7869 int res1 = 0 ;
7870 PyObject *swig_obj[1] ;
7871
7872 if (!args) SWIG_fail;
7873 swig_obj[0] = args;
7874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7875 if (!SWIG_IsOK(res1)) {
7876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7877 }
7878 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7879 {
7880 (arg1)->UseAlpha();
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 resultobj = SWIG_Py_Void();
7884 return resultobj;
7885 fail:
7886 return NULL;
7887 }
7888
7889
7890 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7891 PyObject *resultobj = 0;
7892 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7893 bool result;
7894 void *argp1 = 0 ;
7895 int res1 = 0 ;
7896 PyObject *swig_obj[1] ;
7897
7898 if (!args) SWIG_fail;
7899 swig_obj[0] = args;
7900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7901 if (!SWIG_IsOK(res1)) {
7902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7903 }
7904 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7905 {
7906 result = (bool)wxAlphaPixelData___nonzero__(arg1);
7907 if (PyErr_Occurred()) SWIG_fail;
7908 }
7909 {
7910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7911 }
7912 return resultobj;
7913 fail:
7914 return NULL;
7915 }
7916
7917
7918 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7919 PyObject *obj;
7920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7921 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
7922 return SWIG_Py_Void();
7923 }
7924
7925 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7926 return SWIG_Python_InitShadowInstance(args);
7927 }
7928
7929 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7930 PyObject *resultobj = 0;
7931 wxAlphaPixelData *arg1 = 0 ;
7932 wxAlphaPixelData_Accessor *result = 0 ;
7933 void *argp1 = 0 ;
7934 int res1 = 0 ;
7935
7936 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
7938 if (!SWIG_IsOK(res1)) {
7939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7940 }
7941 if (!argp1) {
7942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7943 }
7944 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7945 {
7946 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7950 return resultobj;
7951 fail:
7952 return NULL;
7953 }
7954
7955
7956 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7957 PyObject *resultobj = 0;
7958 wxBitmap *arg1 = 0 ;
7959 wxAlphaPixelData *arg2 = 0 ;
7960 wxAlphaPixelData_Accessor *result = 0 ;
7961 void *argp1 = 0 ;
7962 int res1 = 0 ;
7963 void *argp2 = 0 ;
7964 int res2 = 0 ;
7965
7966 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7968 if (!SWIG_IsOK(res1)) {
7969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7970 }
7971 if (!argp1) {
7972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7973 }
7974 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7975 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
7976 if (!SWIG_IsOK(res2)) {
7977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
7978 }
7979 if (!argp2) {
7980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
7981 }
7982 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
7983 {
7984 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7995 PyObject *resultobj = 0;
7996 wxAlphaPixelData_Accessor *result = 0 ;
7997
7998 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7999 {
8000 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8001 if (PyErr_Occurred()) SWIG_fail;
8002 }
8003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8004 return resultobj;
8005 fail:
8006 return NULL;
8007 }
8008
8009
8010 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8011 int argc;
8012 PyObject *argv[3];
8013
8014 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8015 --argc;
8016 if (argc == 0) {
8017 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8018 }
8019 if (argc == 1) {
8020 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8021 }
8022 if (argc == 2) {
8023 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8024 }
8025
8026 fail:
8027 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8028 return NULL;
8029 }
8030
8031
8032 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8033 PyObject *resultobj = 0;
8034 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8035 void *argp1 = 0 ;
8036 int res1 = 0 ;
8037 PyObject *swig_obj[1] ;
8038
8039 if (!args) SWIG_fail;
8040 swig_obj[0] = args;
8041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8042 if (!SWIG_IsOK(res1)) {
8043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8044 }
8045 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8046 {
8047 delete arg1;
8048
8049 if (PyErr_Occurred()) SWIG_fail;
8050 }
8051 resultobj = SWIG_Py_Void();
8052 return resultobj;
8053 fail:
8054 return NULL;
8055 }
8056
8057
8058 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8059 PyObject *resultobj = 0;
8060 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8061 wxAlphaPixelData *arg2 = 0 ;
8062 void *argp1 = 0 ;
8063 int res1 = 0 ;
8064 void *argp2 = 0 ;
8065 int res2 = 0 ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 char * kwnames[] = {
8069 (char *) "self",(char *) "data", NULL
8070 };
8071
8072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8074 if (!SWIG_IsOK(res1)) {
8075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8076 }
8077 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8079 if (!SWIG_IsOK(res2)) {
8080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8081 }
8082 if (!argp2) {
8083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8084 }
8085 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8086 {
8087 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8088 if (PyErr_Occurred()) SWIG_fail;
8089 }
8090 resultobj = SWIG_Py_Void();
8091 return resultobj;
8092 fail:
8093 return NULL;
8094 }
8095
8096
8097 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8098 PyObject *resultobj = 0;
8099 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8100 bool result;
8101 void *argp1 = 0 ;
8102 int res1 = 0 ;
8103 PyObject *swig_obj[1] ;
8104
8105 if (!args) SWIG_fail;
8106 swig_obj[0] = args;
8107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8108 if (!SWIG_IsOK(res1)) {
8109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8110 }
8111 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8112 {
8113 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8114 if (PyErr_Occurred()) SWIG_fail;
8115 }
8116 {
8117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8118 }
8119 return resultobj;
8120 fail:
8121 return NULL;
8122 }
8123
8124
8125 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8126 PyObject *resultobj = 0;
8127 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8128 void *argp1 = 0 ;
8129 int res1 = 0 ;
8130 PyObject *swig_obj[1] ;
8131
8132 if (!args) SWIG_fail;
8133 swig_obj[0] = args;
8134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8135 if (!SWIG_IsOK(res1)) {
8136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8137 }
8138 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8139 {
8140 wxAlphaPixelData_Accessor_nextPixel(arg1);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_Py_Void();
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj = 0;
8152 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8153 wxAlphaPixelData *arg2 = 0 ;
8154 int arg3 ;
8155 int arg4 ;
8156 void *argp1 = 0 ;
8157 int res1 = 0 ;
8158 void *argp2 = 0 ;
8159 int res2 = 0 ;
8160 int val3 ;
8161 int ecode3 = 0 ;
8162 int val4 ;
8163 int ecode4 = 0 ;
8164 PyObject * obj0 = 0 ;
8165 PyObject * obj1 = 0 ;
8166 PyObject * obj2 = 0 ;
8167 PyObject * obj3 = 0 ;
8168 char * kwnames[] = {
8169 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8170 };
8171
8172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8174 if (!SWIG_IsOK(res1)) {
8175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8176 }
8177 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8179 if (!SWIG_IsOK(res2)) {
8180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8181 }
8182 if (!argp2) {
8183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8184 }
8185 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8186 ecode3 = SWIG_AsVal_int(obj2, &val3);
8187 if (!SWIG_IsOK(ecode3)) {
8188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8189 }
8190 arg3 = static_cast< int >(val3);
8191 ecode4 = SWIG_AsVal_int(obj3, &val4);
8192 if (!SWIG_IsOK(ecode4)) {
8193 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8194 }
8195 arg4 = static_cast< int >(val4);
8196 {
8197 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 resultobj = SWIG_Py_Void();
8201 return resultobj;
8202 fail:
8203 return NULL;
8204 }
8205
8206
8207 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8208 PyObject *resultobj = 0;
8209 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8210 wxAlphaPixelData *arg2 = 0 ;
8211 int arg3 ;
8212 void *argp1 = 0 ;
8213 int res1 = 0 ;
8214 void *argp2 = 0 ;
8215 int res2 = 0 ;
8216 int val3 ;
8217 int ecode3 = 0 ;
8218 PyObject * obj0 = 0 ;
8219 PyObject * obj1 = 0 ;
8220 PyObject * obj2 = 0 ;
8221 char * kwnames[] = {
8222 (char *) "self",(char *) "data",(char *) "x", NULL
8223 };
8224
8225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8227 if (!SWIG_IsOK(res1)) {
8228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8229 }
8230 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8231 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8232 if (!SWIG_IsOK(res2)) {
8233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8234 }
8235 if (!argp2) {
8236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8237 }
8238 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8239 ecode3 = SWIG_AsVal_int(obj2, &val3);
8240 if (!SWIG_IsOK(ecode3)) {
8241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8242 }
8243 arg3 = static_cast< int >(val3);
8244 {
8245 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 resultobj = SWIG_Py_Void();
8249 return resultobj;
8250 fail:
8251 return NULL;
8252 }
8253
8254
8255 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8256 PyObject *resultobj = 0;
8257 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8258 wxAlphaPixelData *arg2 = 0 ;
8259 int arg3 ;
8260 void *argp1 = 0 ;
8261 int res1 = 0 ;
8262 void *argp2 = 0 ;
8263 int res2 = 0 ;
8264 int val3 ;
8265 int ecode3 = 0 ;
8266 PyObject * obj0 = 0 ;
8267 PyObject * obj1 = 0 ;
8268 PyObject * obj2 = 0 ;
8269 char * kwnames[] = {
8270 (char *) "self",(char *) "data",(char *) "y", NULL
8271 };
8272
8273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8275 if (!SWIG_IsOK(res1)) {
8276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8277 }
8278 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8280 if (!SWIG_IsOK(res2)) {
8281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8282 }
8283 if (!argp2) {
8284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8285 }
8286 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8287 ecode3 = SWIG_AsVal_int(obj2, &val3);
8288 if (!SWIG_IsOK(ecode3)) {
8289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8290 }
8291 arg3 = static_cast< int >(val3);
8292 {
8293 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8294 if (PyErr_Occurred()) SWIG_fail;
8295 }
8296 resultobj = SWIG_Py_Void();
8297 return resultobj;
8298 fail:
8299 return NULL;
8300 }
8301
8302
8303 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8304 PyObject *resultobj = 0;
8305 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8306 wxAlphaPixelData *arg2 = 0 ;
8307 int arg3 ;
8308 int arg4 ;
8309 void *argp1 = 0 ;
8310 int res1 = 0 ;
8311 void *argp2 = 0 ;
8312 int res2 = 0 ;
8313 int val3 ;
8314 int ecode3 = 0 ;
8315 int val4 ;
8316 int ecode4 = 0 ;
8317 PyObject * obj0 = 0 ;
8318 PyObject * obj1 = 0 ;
8319 PyObject * obj2 = 0 ;
8320 PyObject * obj3 = 0 ;
8321 char * kwnames[] = {
8322 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8323 };
8324
8325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8329 }
8330 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8332 if (!SWIG_IsOK(res2)) {
8333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8334 }
8335 if (!argp2) {
8336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8337 }
8338 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8339 ecode3 = SWIG_AsVal_int(obj2, &val3);
8340 if (!SWIG_IsOK(ecode3)) {
8341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8342 }
8343 arg3 = static_cast< int >(val3);
8344 ecode4 = SWIG_AsVal_int(obj3, &val4);
8345 if (!SWIG_IsOK(ecode4)) {
8346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8347 }
8348 arg4 = static_cast< int >(val4);
8349 {
8350 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 resultobj = SWIG_Py_Void();
8354 return resultobj;
8355 fail:
8356 return NULL;
8357 }
8358
8359
8360 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8361 PyObject *resultobj = 0;
8362 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8363 byte arg2 ;
8364 byte arg3 ;
8365 byte arg4 ;
8366 byte arg5 ;
8367 void *argp1 = 0 ;
8368 int res1 = 0 ;
8369 unsigned char val2 ;
8370 int ecode2 = 0 ;
8371 unsigned char val3 ;
8372 int ecode3 = 0 ;
8373 unsigned char val4 ;
8374 int ecode4 = 0 ;
8375 unsigned char val5 ;
8376 int ecode5 = 0 ;
8377 PyObject * obj0 = 0 ;
8378 PyObject * obj1 = 0 ;
8379 PyObject * obj2 = 0 ;
8380 PyObject * obj3 = 0 ;
8381 PyObject * obj4 = 0 ;
8382 char * kwnames[] = {
8383 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8384 };
8385
8386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8388 if (!SWIG_IsOK(res1)) {
8389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8390 }
8391 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8392 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8393 if (!SWIG_IsOK(ecode2)) {
8394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8395 }
8396 arg2 = static_cast< byte >(val2);
8397 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8398 if (!SWIG_IsOK(ecode3)) {
8399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8400 }
8401 arg3 = static_cast< byte >(val3);
8402 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8403 if (!SWIG_IsOK(ecode4)) {
8404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8405 }
8406 arg4 = static_cast< byte >(val4);
8407 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8408 if (!SWIG_IsOK(ecode5)) {
8409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8410 }
8411 arg5 = static_cast< byte >(val5);
8412 {
8413 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8414 if (PyErr_Occurred()) SWIG_fail;
8415 }
8416 resultobj = SWIG_Py_Void();
8417 return resultobj;
8418 fail:
8419 return NULL;
8420 }
8421
8422
8423 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8424 PyObject *resultobj = 0;
8425 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8426 PyObject *result = 0 ;
8427 void *argp1 = 0 ;
8428 int res1 = 0 ;
8429 PyObject *swig_obj[1] ;
8430
8431 if (!args) SWIG_fail;
8432 swig_obj[0] = args;
8433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8434 if (!SWIG_IsOK(res1)) {
8435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8436 }
8437 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8438 {
8439 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 resultobj = result;
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8450 PyObject *obj;
8451 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8452 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8453 return SWIG_Py_Void();
8454 }
8455
8456 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8457 return SWIG_Python_InitShadowInstance(args);
8458 }
8459
8460 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8461 PyObject *resultobj = 0;
8462 wxBitmap *arg1 = 0 ;
8463 wxColour const &arg2_defvalue = wxNullColour ;
8464 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8465 wxMask *result = 0 ;
8466 void *argp1 = 0 ;
8467 int res1 = 0 ;
8468 wxColour temp2 ;
8469 PyObject * obj0 = 0 ;
8470 PyObject * obj1 = 0 ;
8471 char * kwnames[] = {
8472 (char *) "bitmap",(char *) "colour", NULL
8473 };
8474
8475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8476 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8477 if (!SWIG_IsOK(res1)) {
8478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8479 }
8480 if (!argp1) {
8481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8482 }
8483 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8484 if (obj1) {
8485 {
8486 arg2 = &temp2;
8487 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8488 }
8489 }
8490 {
8491 if (!wxPyCheckForApp()) SWIG_fail;
8492 PyThreadState* __tstate = wxPyBeginAllowThreads();
8493 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8494 wxPyEndAllowThreads(__tstate);
8495 if (PyErr_Occurred()) SWIG_fail;
8496 }
8497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8498 return resultobj;
8499 fail:
8500 return NULL;
8501 }
8502
8503
8504 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8505 PyObject *resultobj = 0;
8506 wxMask *arg1 = (wxMask *) 0 ;
8507 void *argp1 = 0 ;
8508 int res1 = 0 ;
8509 PyObject *swig_obj[1] ;
8510
8511 if (!args) SWIG_fail;
8512 swig_obj[0] = args;
8513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8514 if (!SWIG_IsOK(res1)) {
8515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8516 }
8517 arg1 = reinterpret_cast< wxMask * >(argp1);
8518 {
8519 delete arg1;
8520
8521 if (PyErr_Occurred()) SWIG_fail;
8522 }
8523 resultobj = SWIG_Py_Void();
8524 return resultobj;
8525 fail:
8526 return NULL;
8527 }
8528
8529
8530 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8531 PyObject *obj;
8532 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8533 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8534 return SWIG_Py_Void();
8535 }
8536
8537 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8538 return SWIG_Python_InitShadowInstance(args);
8539 }
8540
8541 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8542 PyObject *resultobj = 0;
8543 wxString *arg1 = 0 ;
8544 wxBitmapType arg2 ;
8545 int arg3 = (int) -1 ;
8546 int arg4 = (int) -1 ;
8547 wxIcon *result = 0 ;
8548 bool temp1 = false ;
8549 int val2 ;
8550 int ecode2 = 0 ;
8551 int val3 ;
8552 int ecode3 = 0 ;
8553 int val4 ;
8554 int ecode4 = 0 ;
8555 PyObject * obj0 = 0 ;
8556 PyObject * obj1 = 0 ;
8557 PyObject * obj2 = 0 ;
8558 PyObject * obj3 = 0 ;
8559 char * kwnames[] = {
8560 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8561 };
8562
8563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8564 {
8565 arg1 = wxString_in_helper(obj0);
8566 if (arg1 == NULL) SWIG_fail;
8567 temp1 = true;
8568 }
8569 ecode2 = SWIG_AsVal_int(obj1, &val2);
8570 if (!SWIG_IsOK(ecode2)) {
8571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8572 }
8573 arg2 = static_cast< wxBitmapType >(val2);
8574 if (obj2) {
8575 ecode3 = SWIG_AsVal_int(obj2, &val3);
8576 if (!SWIG_IsOK(ecode3)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8578 }
8579 arg3 = static_cast< int >(val3);
8580 }
8581 if (obj3) {
8582 ecode4 = SWIG_AsVal_int(obj3, &val4);
8583 if (!SWIG_IsOK(ecode4)) {
8584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8585 }
8586 arg4 = static_cast< int >(val4);
8587 }
8588 {
8589 if (!wxPyCheckForApp()) SWIG_fail;
8590 PyThreadState* __tstate = wxPyBeginAllowThreads();
8591 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8592 wxPyEndAllowThreads(__tstate);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8596 {
8597 if (temp1)
8598 delete arg1;
8599 }
8600 return resultobj;
8601 fail:
8602 {
8603 if (temp1)
8604 delete arg1;
8605 }
8606 return NULL;
8607 }
8608
8609
8610 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8611 PyObject *resultobj = 0;
8612 wxIcon *arg1 = (wxIcon *) 0 ;
8613 void *argp1 = 0 ;
8614 int res1 = 0 ;
8615 PyObject *swig_obj[1] ;
8616
8617 if (!args) SWIG_fail;
8618 swig_obj[0] = args;
8619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8620 if (!SWIG_IsOK(res1)) {
8621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8622 }
8623 arg1 = reinterpret_cast< wxIcon * >(argp1);
8624 {
8625 PyThreadState* __tstate = wxPyBeginAllowThreads();
8626 delete arg1;
8627
8628 wxPyEndAllowThreads(__tstate);
8629 if (PyErr_Occurred()) SWIG_fail;
8630 }
8631 resultobj = SWIG_Py_Void();
8632 return resultobj;
8633 fail:
8634 return NULL;
8635 }
8636
8637
8638 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8639 PyObject *resultobj = 0;
8640 wxIcon *result = 0 ;
8641
8642 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8643 {
8644 if (!wxPyCheckForApp()) SWIG_fail;
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 result = (wxIcon *)new wxIcon();
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8651 return resultobj;
8652 fail:
8653 return NULL;
8654 }
8655
8656
8657 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8658 PyObject *resultobj = 0;
8659 wxIconLocation *arg1 = 0 ;
8660 wxIcon *result = 0 ;
8661 void *argp1 = 0 ;
8662 int res1 = 0 ;
8663 PyObject * obj0 = 0 ;
8664 char * kwnames[] = {
8665 (char *) "loc", NULL
8666 };
8667
8668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8669 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8670 if (!SWIG_IsOK(res1)) {
8671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8672 }
8673 if (!argp1) {
8674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8675 }
8676 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8677 {
8678 if (!wxPyCheckForApp()) SWIG_fail;
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8681 wxPyEndAllowThreads(__tstate);
8682 if (PyErr_Occurred()) SWIG_fail;
8683 }
8684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8685 return resultobj;
8686 fail:
8687 return NULL;
8688 }
8689
8690
8691 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8692 PyObject *resultobj = 0;
8693 wxBitmap *arg1 = 0 ;
8694 wxIcon *result = 0 ;
8695 void *argp1 = 0 ;
8696 int res1 = 0 ;
8697 PyObject * obj0 = 0 ;
8698 char * kwnames[] = {
8699 (char *) "bmp", NULL
8700 };
8701
8702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8703 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8704 if (!SWIG_IsOK(res1)) {
8705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8706 }
8707 if (!argp1) {
8708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8709 }
8710 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8711 {
8712 if (!wxPyCheckForApp()) SWIG_fail;
8713 PyThreadState* __tstate = wxPyBeginAllowThreads();
8714 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 }
8718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8719 return resultobj;
8720 fail:
8721 return NULL;
8722 }
8723
8724
8725 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj = 0;
8727 PyObject *arg1 = (PyObject *) 0 ;
8728 wxIcon *result = 0 ;
8729 PyObject * obj0 = 0 ;
8730 char * kwnames[] = {
8731 (char *) "listOfStrings", NULL
8732 };
8733
8734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8735 arg1 = obj0;
8736 {
8737 if (!wxPyCheckForApp()) SWIG_fail;
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 result = (wxIcon *)new_wxIcon(arg1);
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8744 return resultobj;
8745 fail:
8746 return NULL;
8747 }
8748
8749
8750 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8751 PyObject *resultobj = 0;
8752 wxIcon *arg1 = (wxIcon *) 0 ;
8753 wxString *arg2 = 0 ;
8754 wxBitmapType arg3 ;
8755 bool result;
8756 void *argp1 = 0 ;
8757 int res1 = 0 ;
8758 bool temp2 = false ;
8759 int val3 ;
8760 int ecode3 = 0 ;
8761 PyObject * obj0 = 0 ;
8762 PyObject * obj1 = 0 ;
8763 PyObject * obj2 = 0 ;
8764 char * kwnames[] = {
8765 (char *) "self",(char *) "name",(char *) "type", NULL
8766 };
8767
8768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8770 if (!SWIG_IsOK(res1)) {
8771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8772 }
8773 arg1 = reinterpret_cast< wxIcon * >(argp1);
8774 {
8775 arg2 = wxString_in_helper(obj1);
8776 if (arg2 == NULL) SWIG_fail;
8777 temp2 = true;
8778 }
8779 ecode3 = SWIG_AsVal_int(obj2, &val3);
8780 if (!SWIG_IsOK(ecode3)) {
8781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8782 }
8783 arg3 = static_cast< wxBitmapType >(val3);
8784 {
8785 PyThreadState* __tstate = wxPyBeginAllowThreads();
8786 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8787 wxPyEndAllowThreads(__tstate);
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
8790 {
8791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8792 }
8793 {
8794 if (temp2)
8795 delete arg2;
8796 }
8797 return resultobj;
8798 fail:
8799 {
8800 if (temp2)
8801 delete arg2;
8802 }
8803 return NULL;
8804 }
8805
8806
8807 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8808 PyObject *resultobj = 0;
8809 wxIcon *arg1 = (wxIcon *) 0 ;
8810 bool result;
8811 void *argp1 = 0 ;
8812 int res1 = 0 ;
8813 PyObject *swig_obj[1] ;
8814
8815 if (!args) SWIG_fail;
8816 swig_obj[0] = args;
8817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8818 if (!SWIG_IsOK(res1)) {
8819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8820 }
8821 arg1 = reinterpret_cast< wxIcon * >(argp1);
8822 {
8823 PyThreadState* __tstate = wxPyBeginAllowThreads();
8824 result = (bool)(arg1)->Ok();
8825 wxPyEndAllowThreads(__tstate);
8826 if (PyErr_Occurred()) SWIG_fail;
8827 }
8828 {
8829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8830 }
8831 return resultobj;
8832 fail:
8833 return NULL;
8834 }
8835
8836
8837 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8838 PyObject *resultobj = 0;
8839 wxIcon *arg1 = (wxIcon *) 0 ;
8840 int result;
8841 void *argp1 = 0 ;
8842 int res1 = 0 ;
8843 PyObject *swig_obj[1] ;
8844
8845 if (!args) SWIG_fail;
8846 swig_obj[0] = args;
8847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8848 if (!SWIG_IsOK(res1)) {
8849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8850 }
8851 arg1 = reinterpret_cast< wxIcon * >(argp1);
8852 {
8853 PyThreadState* __tstate = wxPyBeginAllowThreads();
8854 result = (int)(arg1)->GetWidth();
8855 wxPyEndAllowThreads(__tstate);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 resultobj = SWIG_From_int(static_cast< int >(result));
8859 return resultobj;
8860 fail:
8861 return NULL;
8862 }
8863
8864
8865 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8866 PyObject *resultobj = 0;
8867 wxIcon *arg1 = (wxIcon *) 0 ;
8868 int result;
8869 void *argp1 = 0 ;
8870 int res1 = 0 ;
8871 PyObject *swig_obj[1] ;
8872
8873 if (!args) SWIG_fail;
8874 swig_obj[0] = args;
8875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8876 if (!SWIG_IsOK(res1)) {
8877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8878 }
8879 arg1 = reinterpret_cast< wxIcon * >(argp1);
8880 {
8881 PyThreadState* __tstate = wxPyBeginAllowThreads();
8882 result = (int)(arg1)->GetHeight();
8883 wxPyEndAllowThreads(__tstate);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 resultobj = SWIG_From_int(static_cast< int >(result));
8887 return resultobj;
8888 fail:
8889 return NULL;
8890 }
8891
8892
8893 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8894 PyObject *resultobj = 0;
8895 wxIcon *arg1 = (wxIcon *) 0 ;
8896 int result;
8897 void *argp1 = 0 ;
8898 int res1 = 0 ;
8899 PyObject *swig_obj[1] ;
8900
8901 if (!args) SWIG_fail;
8902 swig_obj[0] = args;
8903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8904 if (!SWIG_IsOK(res1)) {
8905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8906 }
8907 arg1 = reinterpret_cast< wxIcon * >(argp1);
8908 {
8909 PyThreadState* __tstate = wxPyBeginAllowThreads();
8910 result = (int)(arg1)->GetDepth();
8911 wxPyEndAllowThreads(__tstate);
8912 if (PyErr_Occurred()) SWIG_fail;
8913 }
8914 resultobj = SWIG_From_int(static_cast< int >(result));
8915 return resultobj;
8916 fail:
8917 return NULL;
8918 }
8919
8920
8921 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8922 PyObject *resultobj = 0;
8923 wxIcon *arg1 = (wxIcon *) 0 ;
8924 int arg2 ;
8925 void *argp1 = 0 ;
8926 int res1 = 0 ;
8927 int val2 ;
8928 int ecode2 = 0 ;
8929 PyObject * obj0 = 0 ;
8930 PyObject * obj1 = 0 ;
8931 char * kwnames[] = {
8932 (char *) "self",(char *) "w", NULL
8933 };
8934
8935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8937 if (!SWIG_IsOK(res1)) {
8938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8939 }
8940 arg1 = reinterpret_cast< wxIcon * >(argp1);
8941 ecode2 = SWIG_AsVal_int(obj1, &val2);
8942 if (!SWIG_IsOK(ecode2)) {
8943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
8944 }
8945 arg2 = static_cast< int >(val2);
8946 {
8947 PyThreadState* __tstate = wxPyBeginAllowThreads();
8948 (arg1)->SetWidth(arg2);
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 resultobj = SWIG_Py_Void();
8953 return resultobj;
8954 fail:
8955 return NULL;
8956 }
8957
8958
8959 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8960 PyObject *resultobj = 0;
8961 wxIcon *arg1 = (wxIcon *) 0 ;
8962 int arg2 ;
8963 void *argp1 = 0 ;
8964 int res1 = 0 ;
8965 int val2 ;
8966 int ecode2 = 0 ;
8967 PyObject * obj0 = 0 ;
8968 PyObject * obj1 = 0 ;
8969 char * kwnames[] = {
8970 (char *) "self",(char *) "h", NULL
8971 };
8972
8973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8975 if (!SWIG_IsOK(res1)) {
8976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8977 }
8978 arg1 = reinterpret_cast< wxIcon * >(argp1);
8979 ecode2 = SWIG_AsVal_int(obj1, &val2);
8980 if (!SWIG_IsOK(ecode2)) {
8981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
8982 }
8983 arg2 = static_cast< int >(val2);
8984 {
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 (arg1)->SetHeight(arg2);
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 resultobj = SWIG_Py_Void();
8991 return resultobj;
8992 fail:
8993 return NULL;
8994 }
8995
8996
8997 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj = 0;
8999 wxIcon *arg1 = (wxIcon *) 0 ;
9000 int arg2 ;
9001 void *argp1 = 0 ;
9002 int res1 = 0 ;
9003 int val2 ;
9004 int ecode2 = 0 ;
9005 PyObject * obj0 = 0 ;
9006 PyObject * obj1 = 0 ;
9007 char * kwnames[] = {
9008 (char *) "self",(char *) "d", NULL
9009 };
9010
9011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9013 if (!SWIG_IsOK(res1)) {
9014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9015 }
9016 arg1 = reinterpret_cast< wxIcon * >(argp1);
9017 ecode2 = SWIG_AsVal_int(obj1, &val2);
9018 if (!SWIG_IsOK(ecode2)) {
9019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9020 }
9021 arg2 = static_cast< int >(val2);
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 (arg1)->SetDepth(arg2);
9025 wxPyEndAllowThreads(__tstate);
9026 if (PyErr_Occurred()) SWIG_fail;
9027 }
9028 resultobj = SWIG_Py_Void();
9029 return resultobj;
9030 fail:
9031 return NULL;
9032 }
9033
9034
9035 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9036 PyObject *resultobj = 0;
9037 wxIcon *arg1 = (wxIcon *) 0 ;
9038 wxBitmap *arg2 = 0 ;
9039 void *argp1 = 0 ;
9040 int res1 = 0 ;
9041 void *argp2 = 0 ;
9042 int res2 = 0 ;
9043 PyObject * obj0 = 0 ;
9044 PyObject * obj1 = 0 ;
9045 char * kwnames[] = {
9046 (char *) "self",(char *) "bmp", NULL
9047 };
9048
9049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9051 if (!SWIG_IsOK(res1)) {
9052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9053 }
9054 arg1 = reinterpret_cast< wxIcon * >(argp1);
9055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9056 if (!SWIG_IsOK(res2)) {
9057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9058 }
9059 if (!argp2) {
9060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9061 }
9062 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9063 {
9064 PyThreadState* __tstate = wxPyBeginAllowThreads();
9065 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9066 wxPyEndAllowThreads(__tstate);
9067 if (PyErr_Occurred()) SWIG_fail;
9068 }
9069 resultobj = SWIG_Py_Void();
9070 return resultobj;
9071 fail:
9072 return NULL;
9073 }
9074
9075
9076 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9077 PyObject *obj;
9078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9079 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9080 return SWIG_Py_Void();
9081 }
9082
9083 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9084 return SWIG_Python_InitShadowInstance(args);
9085 }
9086
9087 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj = 0;
9089 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9090 int arg2 = (int) 0 ;
9091 wxIconLocation *result = 0 ;
9092 bool temp1 = false ;
9093 int val2 ;
9094 int ecode2 = 0 ;
9095 PyObject * obj0 = 0 ;
9096 PyObject * obj1 = 0 ;
9097 char * kwnames[] = {
9098 (char *) "filename",(char *) "num", NULL
9099 };
9100
9101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9102 if (obj0) {
9103 {
9104 arg1 = wxString_in_helper(obj0);
9105 if (arg1 == NULL) SWIG_fail;
9106 temp1 = true;
9107 }
9108 }
9109 if (obj1) {
9110 ecode2 = SWIG_AsVal_int(obj1, &val2);
9111 if (!SWIG_IsOK(ecode2)) {
9112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9113 }
9114 arg2 = static_cast< int >(val2);
9115 }
9116 {
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9123 {
9124 if (temp1)
9125 delete arg1;
9126 }
9127 return resultobj;
9128 fail:
9129 {
9130 if (temp1)
9131 delete arg1;
9132 }
9133 return NULL;
9134 }
9135
9136
9137 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9138 PyObject *resultobj = 0;
9139 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9140 void *argp1 = 0 ;
9141 int res1 = 0 ;
9142 PyObject *swig_obj[1] ;
9143
9144 if (!args) SWIG_fail;
9145 swig_obj[0] = args;
9146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9147 if (!SWIG_IsOK(res1)) {
9148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9149 }
9150 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 delete arg1;
9154
9155 wxPyEndAllowThreads(__tstate);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
9158 resultobj = SWIG_Py_Void();
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9166 PyObject *resultobj = 0;
9167 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9168 bool result;
9169 void *argp1 = 0 ;
9170 int res1 = 0 ;
9171 PyObject *swig_obj[1] ;
9172
9173 if (!args) SWIG_fail;
9174 swig_obj[0] = args;
9175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9176 if (!SWIG_IsOK(res1)) {
9177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9178 }
9179 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9180 {
9181 PyThreadState* __tstate = wxPyBeginAllowThreads();
9182 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9183 wxPyEndAllowThreads(__tstate);
9184 if (PyErr_Occurred()) SWIG_fail;
9185 }
9186 {
9187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9188 }
9189 return resultobj;
9190 fail:
9191 return NULL;
9192 }
9193
9194
9195 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj = 0;
9197 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9198 wxString *arg2 = 0 ;
9199 void *argp1 = 0 ;
9200 int res1 = 0 ;
9201 bool temp2 = false ;
9202 PyObject * obj0 = 0 ;
9203 PyObject * obj1 = 0 ;
9204 char * kwnames[] = {
9205 (char *) "self",(char *) "filename", NULL
9206 };
9207
9208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9210 if (!SWIG_IsOK(res1)) {
9211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9212 }
9213 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9214 {
9215 arg2 = wxString_in_helper(obj1);
9216 if (arg2 == NULL) SWIG_fail;
9217 temp2 = true;
9218 }
9219 {
9220 PyThreadState* __tstate = wxPyBeginAllowThreads();
9221 (arg1)->SetFileName((wxString const &)*arg2);
9222 wxPyEndAllowThreads(__tstate);
9223 if (PyErr_Occurred()) SWIG_fail;
9224 }
9225 resultobj = SWIG_Py_Void();
9226 {
9227 if (temp2)
9228 delete arg2;
9229 }
9230 return resultobj;
9231 fail:
9232 {
9233 if (temp2)
9234 delete arg2;
9235 }
9236 return NULL;
9237 }
9238
9239
9240 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9241 PyObject *resultobj = 0;
9242 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9243 wxString *result = 0 ;
9244 void *argp1 = 0 ;
9245 int res1 = 0 ;
9246 PyObject *swig_obj[1] ;
9247
9248 if (!args) SWIG_fail;
9249 swig_obj[0] = args;
9250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9251 if (!SWIG_IsOK(res1)) {
9252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9253 }
9254 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 {
9258 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9259 result = (wxString *) &_result_ref;
9260 }
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 {
9265 #if wxUSE_UNICODE
9266 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9267 #else
9268 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9269 #endif
9270 }
9271 return resultobj;
9272 fail:
9273 return NULL;
9274 }
9275
9276
9277 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9278 PyObject *resultobj = 0;
9279 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9280 int arg2 ;
9281 void *argp1 = 0 ;
9282 int res1 = 0 ;
9283 int val2 ;
9284 int ecode2 = 0 ;
9285 PyObject * obj0 = 0 ;
9286 PyObject * obj1 = 0 ;
9287 char * kwnames[] = {
9288 (char *) "self",(char *) "num", NULL
9289 };
9290
9291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9293 if (!SWIG_IsOK(res1)) {
9294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9295 }
9296 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9297 ecode2 = SWIG_AsVal_int(obj1, &val2);
9298 if (!SWIG_IsOK(ecode2)) {
9299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9300 }
9301 arg2 = static_cast< int >(val2);
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 wxIconLocation_SetIndex(arg1,arg2);
9305 wxPyEndAllowThreads(__tstate);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 resultobj = SWIG_Py_Void();
9309 return resultobj;
9310 fail:
9311 return NULL;
9312 }
9313
9314
9315 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9316 PyObject *resultobj = 0;
9317 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9318 int result;
9319 void *argp1 = 0 ;
9320 int res1 = 0 ;
9321 PyObject *swig_obj[1] ;
9322
9323 if (!args) SWIG_fail;
9324 swig_obj[0] = args;
9325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9326 if (!SWIG_IsOK(res1)) {
9327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9328 }
9329 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9330 {
9331 PyThreadState* __tstate = wxPyBeginAllowThreads();
9332 result = (int)wxIconLocation_GetIndex(arg1);
9333 wxPyEndAllowThreads(__tstate);
9334 if (PyErr_Occurred()) SWIG_fail;
9335 }
9336 resultobj = SWIG_From_int(static_cast< int >(result));
9337 return resultobj;
9338 fail:
9339 return NULL;
9340 }
9341
9342
9343 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9344 PyObject *obj;
9345 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9346 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9347 return SWIG_Py_Void();
9348 }
9349
9350 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9351 return SWIG_Python_InitShadowInstance(args);
9352 }
9353
9354 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9355 PyObject *resultobj = 0;
9356 wxIconBundle *result = 0 ;
9357
9358 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 result = (wxIconBundle *)new wxIconBundle();
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9366 return resultobj;
9367 fail:
9368 return NULL;
9369 }
9370
9371
9372 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj = 0;
9374 wxString *arg1 = 0 ;
9375 long arg2 ;
9376 wxIconBundle *result = 0 ;
9377 bool temp1 = false ;
9378 long val2 ;
9379 int ecode2 = 0 ;
9380 PyObject * obj0 = 0 ;
9381 PyObject * obj1 = 0 ;
9382 char * kwnames[] = {
9383 (char *) "file",(char *) "type", NULL
9384 };
9385
9386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9387 {
9388 arg1 = wxString_in_helper(obj0);
9389 if (arg1 == NULL) SWIG_fail;
9390 temp1 = true;
9391 }
9392 ecode2 = SWIG_AsVal_long(obj1, &val2);
9393 if (!SWIG_IsOK(ecode2)) {
9394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9395 }
9396 arg2 = static_cast< long >(val2);
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9404 {
9405 if (temp1)
9406 delete arg1;
9407 }
9408 return resultobj;
9409 fail:
9410 {
9411 if (temp1)
9412 delete arg1;
9413 }
9414 return NULL;
9415 }
9416
9417
9418 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj = 0;
9420 wxIcon *arg1 = 0 ;
9421 wxIconBundle *result = 0 ;
9422 void *argp1 = 0 ;
9423 int res1 = 0 ;
9424 PyObject * obj0 = 0 ;
9425 char * kwnames[] = {
9426 (char *) "icon", NULL
9427 };
9428
9429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9430 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9431 if (!SWIG_IsOK(res1)) {
9432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9433 }
9434 if (!argp1) {
9435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9436 }
9437 arg1 = reinterpret_cast< wxIcon * >(argp1);
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9441 wxPyEndAllowThreads(__tstate);
9442 if (PyErr_Occurred()) SWIG_fail;
9443 }
9444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9445 return resultobj;
9446 fail:
9447 return NULL;
9448 }
9449
9450
9451 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9452 PyObject *resultobj = 0;
9453 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9454 void *argp1 = 0 ;
9455 int res1 = 0 ;
9456 PyObject *swig_obj[1] ;
9457
9458 if (!args) SWIG_fail;
9459 swig_obj[0] = args;
9460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9461 if (!SWIG_IsOK(res1)) {
9462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9463 }
9464 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
9467 delete arg1;
9468
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 resultobj = SWIG_Py_Void();
9473 return resultobj;
9474 fail:
9475 return NULL;
9476 }
9477
9478
9479 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9480 PyObject *resultobj = 0;
9481 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9482 wxIcon *arg2 = 0 ;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 void *argp2 = 0 ;
9486 int res2 = 0 ;
9487 PyObject * obj0 = 0 ;
9488 PyObject * obj1 = 0 ;
9489 char * kwnames[] = {
9490 (char *) "self",(char *) "icon", NULL
9491 };
9492
9493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9495 if (!SWIG_IsOK(res1)) {
9496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9497 }
9498 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9499 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9500 if (!SWIG_IsOK(res2)) {
9501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9502 }
9503 if (!argp2) {
9504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9505 }
9506 arg2 = reinterpret_cast< wxIcon * >(argp2);
9507 {
9508 PyThreadState* __tstate = wxPyBeginAllowThreads();
9509 (arg1)->AddIcon((wxIcon const &)*arg2);
9510 wxPyEndAllowThreads(__tstate);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 resultobj = SWIG_Py_Void();
9514 return resultobj;
9515 fail:
9516 return NULL;
9517 }
9518
9519
9520 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj = 0;
9522 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9523 wxString *arg2 = 0 ;
9524 long arg3 ;
9525 void *argp1 = 0 ;
9526 int res1 = 0 ;
9527 bool temp2 = false ;
9528 long val3 ;
9529 int ecode3 = 0 ;
9530 PyObject * obj0 = 0 ;
9531 PyObject * obj1 = 0 ;
9532 PyObject * obj2 = 0 ;
9533 char * kwnames[] = {
9534 (char *) "self",(char *) "file",(char *) "type", NULL
9535 };
9536
9537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9539 if (!SWIG_IsOK(res1)) {
9540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9541 }
9542 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9543 {
9544 arg2 = wxString_in_helper(obj1);
9545 if (arg2 == NULL) SWIG_fail;
9546 temp2 = true;
9547 }
9548 ecode3 = SWIG_AsVal_long(obj2, &val3);
9549 if (!SWIG_IsOK(ecode3)) {
9550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9551 }
9552 arg3 = static_cast< long >(val3);
9553 {
9554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9555 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_Py_Void();
9560 {
9561 if (temp2)
9562 delete arg2;
9563 }
9564 return resultobj;
9565 fail:
9566 {
9567 if (temp2)
9568 delete arg2;
9569 }
9570 return NULL;
9571 }
9572
9573
9574 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9575 PyObject *resultobj = 0;
9576 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9577 wxSize *arg2 = 0 ;
9578 wxIcon *result = 0 ;
9579 void *argp1 = 0 ;
9580 int res1 = 0 ;
9581 wxSize temp2 ;
9582 PyObject * obj0 = 0 ;
9583 PyObject * obj1 = 0 ;
9584 char * kwnames[] = {
9585 (char *) "self",(char *) "size", NULL
9586 };
9587
9588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9590 if (!SWIG_IsOK(res1)) {
9591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9592 }
9593 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9594 {
9595 arg2 = &temp2;
9596 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9597 }
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 {
9601 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9602 result = (wxIcon *) &_result_ref;
9603 }
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 {
9608 wxIcon* resultptr = new wxIcon(*result);
9609 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9610 }
9611 return resultobj;
9612 fail:
9613 return NULL;
9614 }
9615
9616
9617 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9618 PyObject *obj;
9619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9620 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9621 return SWIG_Py_Void();
9622 }
9623
9624 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9625 return SWIG_Python_InitShadowInstance(args);
9626 }
9627
9628 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9629 PyObject *resultobj = 0;
9630 wxString *arg1 = 0 ;
9631 long arg2 ;
9632 int arg3 = (int) 0 ;
9633 int arg4 = (int) 0 ;
9634 wxCursor *result = 0 ;
9635 bool temp1 = false ;
9636 long val2 ;
9637 int ecode2 = 0 ;
9638 int val3 ;
9639 int ecode3 = 0 ;
9640 int val4 ;
9641 int ecode4 = 0 ;
9642 PyObject * obj0 = 0 ;
9643 PyObject * obj1 = 0 ;
9644 PyObject * obj2 = 0 ;
9645 PyObject * obj3 = 0 ;
9646 char * kwnames[] = {
9647 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9648 };
9649
9650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9651 {
9652 arg1 = wxString_in_helper(obj0);
9653 if (arg1 == NULL) SWIG_fail;
9654 temp1 = true;
9655 }
9656 ecode2 = SWIG_AsVal_long(obj1, &val2);
9657 if (!SWIG_IsOK(ecode2)) {
9658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9659 }
9660 arg2 = static_cast< long >(val2);
9661 if (obj2) {
9662 ecode3 = SWIG_AsVal_int(obj2, &val3);
9663 if (!SWIG_IsOK(ecode3)) {
9664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9665 }
9666 arg3 = static_cast< int >(val3);
9667 }
9668 if (obj3) {
9669 ecode4 = SWIG_AsVal_int(obj3, &val4);
9670 if (!SWIG_IsOK(ecode4)) {
9671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9672 }
9673 arg4 = static_cast< int >(val4);
9674 }
9675 {
9676 if (!wxPyCheckForApp()) SWIG_fail;
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9683 {
9684 if (temp1)
9685 delete arg1;
9686 }
9687 return resultobj;
9688 fail:
9689 {
9690 if (temp1)
9691 delete arg1;
9692 }
9693 return NULL;
9694 }
9695
9696
9697 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9698 PyObject *resultobj = 0;
9699 wxCursor *arg1 = (wxCursor *) 0 ;
9700 void *argp1 = 0 ;
9701 int res1 = 0 ;
9702 PyObject *swig_obj[1] ;
9703
9704 if (!args) SWIG_fail;
9705 swig_obj[0] = args;
9706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9707 if (!SWIG_IsOK(res1)) {
9708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9709 }
9710 arg1 = reinterpret_cast< wxCursor * >(argp1);
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 delete arg1;
9714
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 resultobj = SWIG_Py_Void();
9719 return resultobj;
9720 fail:
9721 return NULL;
9722 }
9723
9724
9725 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj = 0;
9727 int arg1 ;
9728 wxCursor *result = 0 ;
9729 int val1 ;
9730 int ecode1 = 0 ;
9731 PyObject * obj0 = 0 ;
9732 char * kwnames[] = {
9733 (char *) "id", NULL
9734 };
9735
9736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9737 ecode1 = SWIG_AsVal_int(obj0, &val1);
9738 if (!SWIG_IsOK(ecode1)) {
9739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9740 }
9741 arg1 = static_cast< int >(val1);
9742 {
9743 if (!wxPyCheckForApp()) SWIG_fail;
9744 PyThreadState* __tstate = wxPyBeginAllowThreads();
9745 result = (wxCursor *)new wxCursor(arg1);
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9750 return resultobj;
9751 fail:
9752 return NULL;
9753 }
9754
9755
9756 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj = 0;
9758 wxImage *arg1 = 0 ;
9759 wxCursor *result = 0 ;
9760 void *argp1 = 0 ;
9761 int res1 = 0 ;
9762 PyObject * obj0 = 0 ;
9763 char * kwnames[] = {
9764 (char *) "image", NULL
9765 };
9766
9767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9768 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9769 if (!SWIG_IsOK(res1)) {
9770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9771 }
9772 if (!argp1) {
9773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9774 }
9775 arg1 = reinterpret_cast< wxImage * >(argp1);
9776 {
9777 if (!wxPyCheckForApp()) SWIG_fail;
9778 PyThreadState* __tstate = wxPyBeginAllowThreads();
9779 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9791 PyObject *resultobj = 0;
9792 wxCursor *arg1 = (wxCursor *) 0 ;
9793 bool result;
9794 void *argp1 = 0 ;
9795 int res1 = 0 ;
9796 PyObject *swig_obj[1] ;
9797
9798 if (!args) SWIG_fail;
9799 swig_obj[0] = args;
9800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9801 if (!SWIG_IsOK(res1)) {
9802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9803 }
9804 arg1 = reinterpret_cast< wxCursor * >(argp1);
9805 {
9806 PyThreadState* __tstate = wxPyBeginAllowThreads();
9807 result = (bool)(arg1)->Ok();
9808 wxPyEndAllowThreads(__tstate);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 {
9812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9813 }
9814 return resultobj;
9815 fail:
9816 return NULL;
9817 }
9818
9819
9820 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9821 PyObject *obj;
9822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9823 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9824 return SWIG_Py_Void();
9825 }
9826
9827 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9828 return SWIG_Python_InitShadowInstance(args);
9829 }
9830
9831 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj = 0;
9833 int arg1 = (int) 0 ;
9834 int arg2 = (int) 0 ;
9835 int arg3 = (int) 0 ;
9836 int arg4 = (int) 0 ;
9837 wxRegion *result = 0 ;
9838 int val1 ;
9839 int ecode1 = 0 ;
9840 int val2 ;
9841 int ecode2 = 0 ;
9842 int val3 ;
9843 int ecode3 = 0 ;
9844 int val4 ;
9845 int ecode4 = 0 ;
9846 PyObject * obj0 = 0 ;
9847 PyObject * obj1 = 0 ;
9848 PyObject * obj2 = 0 ;
9849 PyObject * obj3 = 0 ;
9850 char * kwnames[] = {
9851 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9852 };
9853
9854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9855 if (obj0) {
9856 ecode1 = SWIG_AsVal_int(obj0, &val1);
9857 if (!SWIG_IsOK(ecode1)) {
9858 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9859 }
9860 arg1 = static_cast< int >(val1);
9861 }
9862 if (obj1) {
9863 ecode2 = SWIG_AsVal_int(obj1, &val2);
9864 if (!SWIG_IsOK(ecode2)) {
9865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9866 }
9867 arg2 = static_cast< int >(val2);
9868 }
9869 if (obj2) {
9870 ecode3 = SWIG_AsVal_int(obj2, &val3);
9871 if (!SWIG_IsOK(ecode3)) {
9872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9873 }
9874 arg3 = static_cast< int >(val3);
9875 }
9876 if (obj3) {
9877 ecode4 = SWIG_AsVal_int(obj3, &val4);
9878 if (!SWIG_IsOK(ecode4)) {
9879 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
9880 }
9881 arg4 = static_cast< int >(val4);
9882 }
9883 {
9884 if (!wxPyCheckForApp()) SWIG_fail;
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
9886 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj = 0;
9899 wxBitmap *arg1 = 0 ;
9900 wxRegion *result = 0 ;
9901 void *argp1 = 0 ;
9902 int res1 = 0 ;
9903 PyObject * obj0 = 0 ;
9904 char * kwnames[] = {
9905 (char *) "bmp", NULL
9906 };
9907
9908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
9909 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9910 if (!SWIG_IsOK(res1)) {
9911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9912 }
9913 if (!argp1) {
9914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9915 }
9916 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9917 {
9918 if (!wxPyCheckForApp()) SWIG_fail;
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9925 return resultobj;
9926 fail:
9927 return NULL;
9928 }
9929
9930
9931 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9932 PyObject *resultobj = 0;
9933 wxBitmap *arg1 = 0 ;
9934 wxColour *arg2 = 0 ;
9935 int arg3 = (int) 0 ;
9936 wxRegion *result = 0 ;
9937 void *argp1 = 0 ;
9938 int res1 = 0 ;
9939 wxColour temp2 ;
9940 int val3 ;
9941 int ecode3 = 0 ;
9942 PyObject * obj0 = 0 ;
9943 PyObject * obj1 = 0 ;
9944 PyObject * obj2 = 0 ;
9945 char * kwnames[] = {
9946 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9947 };
9948
9949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9950 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9951 if (!SWIG_IsOK(res1)) {
9952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9953 }
9954 if (!argp1) {
9955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9956 }
9957 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9958 {
9959 arg2 = &temp2;
9960 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9961 }
9962 if (obj2) {
9963 ecode3 = SWIG_AsVal_int(obj2, &val3);
9964 if (!SWIG_IsOK(ecode3)) {
9965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
9966 }
9967 arg3 = static_cast< int >(val3);
9968 }
9969 {
9970 if (!wxPyCheckForApp()) SWIG_fail;
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
9973 wxPyEndAllowThreads(__tstate);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9977 return resultobj;
9978 fail:
9979 return NULL;
9980 }
9981
9982
9983 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj = 0;
9985 int arg1 ;
9986 wxPoint *arg2 = (wxPoint *) 0 ;
9987 int arg3 = (int) wxWINDING_RULE ;
9988 wxRegion *result = 0 ;
9989 int val3 ;
9990 int ecode3 = 0 ;
9991 PyObject * obj0 = 0 ;
9992 PyObject * obj1 = 0 ;
9993 char * kwnames[] = {
9994 (char *) "points",(char *) "fillStyle", NULL
9995 };
9996
9997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
9998 {
9999 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10000 if (arg2 == NULL) SWIG_fail;
10001 }
10002 if (obj1) {
10003 ecode3 = SWIG_AsVal_int(obj1, &val3);
10004 if (!SWIG_IsOK(ecode3)) {
10005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10006 }
10007 arg3 = static_cast< int >(val3);
10008 }
10009 {
10010 if (!wxPyCheckForApp()) SWIG_fail;
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10017 {
10018 if (arg2) delete [] arg2;
10019 }
10020 return resultobj;
10021 fail:
10022 {
10023 if (arg2) delete [] arg2;
10024 }
10025 return NULL;
10026 }
10027
10028
10029 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10030 PyObject *resultobj = 0;
10031 wxRegion *arg1 = (wxRegion *) 0 ;
10032 void *argp1 = 0 ;
10033 int res1 = 0 ;
10034 PyObject *swig_obj[1] ;
10035
10036 if (!args) SWIG_fail;
10037 swig_obj[0] = args;
10038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10041 }
10042 arg1 = reinterpret_cast< wxRegion * >(argp1);
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 delete arg1;
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = SWIG_Py_Void();
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10058 PyObject *resultobj = 0;
10059 wxRegion *arg1 = (wxRegion *) 0 ;
10060 void *argp1 = 0 ;
10061 int res1 = 0 ;
10062 PyObject *swig_obj[1] ;
10063
10064 if (!args) SWIG_fail;
10065 swig_obj[0] = args;
10066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10067 if (!SWIG_IsOK(res1)) {
10068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10069 }
10070 arg1 = reinterpret_cast< wxRegion * >(argp1);
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 (arg1)->Clear();
10074 wxPyEndAllowThreads(__tstate);
10075 if (PyErr_Occurred()) SWIG_fail;
10076 }
10077 resultobj = SWIG_Py_Void();
10078 return resultobj;
10079 fail:
10080 return NULL;
10081 }
10082
10083
10084 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10085 PyObject *resultobj = 0;
10086 wxRegion *arg1 = (wxRegion *) 0 ;
10087 int arg2 ;
10088 int arg3 ;
10089 bool result;
10090 void *argp1 = 0 ;
10091 int res1 = 0 ;
10092 int val2 ;
10093 int ecode2 = 0 ;
10094 int val3 ;
10095 int ecode3 = 0 ;
10096 PyObject * obj0 = 0 ;
10097 PyObject * obj1 = 0 ;
10098 PyObject * obj2 = 0 ;
10099 char * kwnames[] = {
10100 (char *) "self",(char *) "x",(char *) "y", NULL
10101 };
10102
10103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10105 if (!SWIG_IsOK(res1)) {
10106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10107 }
10108 arg1 = reinterpret_cast< wxRegion * >(argp1);
10109 ecode2 = SWIG_AsVal_int(obj1, &val2);
10110 if (!SWIG_IsOK(ecode2)) {
10111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10112 }
10113 arg2 = static_cast< int >(val2);
10114 ecode3 = SWIG_AsVal_int(obj2, &val3);
10115 if (!SWIG_IsOK(ecode3)) {
10116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10117 }
10118 arg3 = static_cast< int >(val3);
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 result = (bool)(arg1)->Offset(arg2,arg3);
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 {
10126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10127 }
10128 return resultobj;
10129 fail:
10130 return NULL;
10131 }
10132
10133
10134 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10135 PyObject *resultobj = 0;
10136 wxRegion *arg1 = (wxRegion *) 0 ;
10137 int arg2 ;
10138 int arg3 ;
10139 wxRegionContain result;
10140 void *argp1 = 0 ;
10141 int res1 = 0 ;
10142 int val2 ;
10143 int ecode2 = 0 ;
10144 int val3 ;
10145 int ecode3 = 0 ;
10146 PyObject * obj0 = 0 ;
10147 PyObject * obj1 = 0 ;
10148 PyObject * obj2 = 0 ;
10149 char * kwnames[] = {
10150 (char *) "self",(char *) "x",(char *) "y", NULL
10151 };
10152
10153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10155 if (!SWIG_IsOK(res1)) {
10156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10157 }
10158 arg1 = reinterpret_cast< wxRegion * >(argp1);
10159 ecode2 = SWIG_AsVal_int(obj1, &val2);
10160 if (!SWIG_IsOK(ecode2)) {
10161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10162 }
10163 arg2 = static_cast< int >(val2);
10164 ecode3 = SWIG_AsVal_int(obj2, &val3);
10165 if (!SWIG_IsOK(ecode3)) {
10166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10167 }
10168 arg3 = static_cast< int >(val3);
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 resultobj = SWIG_From_int(static_cast< int >(result));
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj = 0;
10184 wxRegion *arg1 = (wxRegion *) 0 ;
10185 wxPoint *arg2 = 0 ;
10186 wxRegionContain result;
10187 void *argp1 = 0 ;
10188 int res1 = 0 ;
10189 wxPoint temp2 ;
10190 PyObject * obj0 = 0 ;
10191 PyObject * obj1 = 0 ;
10192 char * kwnames[] = {
10193 (char *) "self",(char *) "pt", NULL
10194 };
10195
10196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10198 if (!SWIG_IsOK(res1)) {
10199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10200 }
10201 arg1 = reinterpret_cast< wxRegion * >(argp1);
10202 {
10203 arg2 = &temp2;
10204 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10205 }
10206 {
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 resultobj = SWIG_From_int(static_cast< int >(result));
10213 return resultobj;
10214 fail:
10215 return NULL;
10216 }
10217
10218
10219 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10220 PyObject *resultobj = 0;
10221 wxRegion *arg1 = (wxRegion *) 0 ;
10222 wxRect *arg2 = 0 ;
10223 wxRegionContain result;
10224 void *argp1 = 0 ;
10225 int res1 = 0 ;
10226 wxRect temp2 ;
10227 PyObject * obj0 = 0 ;
10228 PyObject * obj1 = 0 ;
10229 char * kwnames[] = {
10230 (char *) "self",(char *) "rect", NULL
10231 };
10232
10233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10235 if (!SWIG_IsOK(res1)) {
10236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10237 }
10238 arg1 = reinterpret_cast< wxRegion * >(argp1);
10239 {
10240 arg2 = &temp2;
10241 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10242 }
10243 {
10244 PyThreadState* __tstate = wxPyBeginAllowThreads();
10245 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 resultobj = SWIG_From_int(static_cast< int >(result));
10250 return resultobj;
10251 fail:
10252 return NULL;
10253 }
10254
10255
10256 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj = 0;
10258 wxRegion *arg1 = (wxRegion *) 0 ;
10259 int arg2 ;
10260 int arg3 ;
10261 int arg4 ;
10262 int arg5 ;
10263 wxRegionContain result;
10264 void *argp1 = 0 ;
10265 int res1 = 0 ;
10266 int val2 ;
10267 int ecode2 = 0 ;
10268 int val3 ;
10269 int ecode3 = 0 ;
10270 int val4 ;
10271 int ecode4 = 0 ;
10272 int val5 ;
10273 int ecode5 = 0 ;
10274 PyObject * obj0 = 0 ;
10275 PyObject * obj1 = 0 ;
10276 PyObject * obj2 = 0 ;
10277 PyObject * obj3 = 0 ;
10278 PyObject * obj4 = 0 ;
10279 char * kwnames[] = {
10280 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10281 };
10282
10283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10285 if (!SWIG_IsOK(res1)) {
10286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10287 }
10288 arg1 = reinterpret_cast< wxRegion * >(argp1);
10289 ecode2 = SWIG_AsVal_int(obj1, &val2);
10290 if (!SWIG_IsOK(ecode2)) {
10291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10292 }
10293 arg2 = static_cast< int >(val2);
10294 ecode3 = SWIG_AsVal_int(obj2, &val3);
10295 if (!SWIG_IsOK(ecode3)) {
10296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10297 }
10298 arg3 = static_cast< int >(val3);
10299 ecode4 = SWIG_AsVal_int(obj3, &val4);
10300 if (!SWIG_IsOK(ecode4)) {
10301 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10302 }
10303 arg4 = static_cast< int >(val4);
10304 ecode5 = SWIG_AsVal_int(obj4, &val5);
10305 if (!SWIG_IsOK(ecode5)) {
10306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10307 }
10308 arg5 = static_cast< int >(val5);
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 resultobj = SWIG_From_int(static_cast< int >(result));
10316 return resultobj;
10317 fail:
10318 return NULL;
10319 }
10320
10321
10322 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10323 PyObject *resultobj = 0;
10324 wxRegion *arg1 = (wxRegion *) 0 ;
10325 wxRect result;
10326 void *argp1 = 0 ;
10327 int res1 = 0 ;
10328 PyObject *swig_obj[1] ;
10329
10330 if (!args) SWIG_fail;
10331 swig_obj[0] = args;
10332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10333 if (!SWIG_IsOK(res1)) {
10334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10335 }
10336 arg1 = reinterpret_cast< wxRegion * >(argp1);
10337 {
10338 PyThreadState* __tstate = wxPyBeginAllowThreads();
10339 result = (arg1)->GetBox();
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10344 return resultobj;
10345 fail:
10346 return NULL;
10347 }
10348
10349
10350 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10351 PyObject *resultobj = 0;
10352 wxRegion *arg1 = (wxRegion *) 0 ;
10353 int arg2 ;
10354 int arg3 ;
10355 int arg4 ;
10356 int arg5 ;
10357 bool result;
10358 void *argp1 = 0 ;
10359 int res1 = 0 ;
10360 int val2 ;
10361 int ecode2 = 0 ;
10362 int val3 ;
10363 int ecode3 = 0 ;
10364 int val4 ;
10365 int ecode4 = 0 ;
10366 int val5 ;
10367 int ecode5 = 0 ;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 PyObject * obj2 = 0 ;
10371 PyObject * obj3 = 0 ;
10372 PyObject * obj4 = 0 ;
10373 char * kwnames[] = {
10374 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10375 };
10376
10377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10379 if (!SWIG_IsOK(res1)) {
10380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10381 }
10382 arg1 = reinterpret_cast< wxRegion * >(argp1);
10383 ecode2 = SWIG_AsVal_int(obj1, &val2);
10384 if (!SWIG_IsOK(ecode2)) {
10385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10386 }
10387 arg2 = static_cast< int >(val2);
10388 ecode3 = SWIG_AsVal_int(obj2, &val3);
10389 if (!SWIG_IsOK(ecode3)) {
10390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10391 }
10392 arg3 = static_cast< int >(val3);
10393 ecode4 = SWIG_AsVal_int(obj3, &val4);
10394 if (!SWIG_IsOK(ecode4)) {
10395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10396 }
10397 arg4 = static_cast< int >(val4);
10398 ecode5 = SWIG_AsVal_int(obj4, &val5);
10399 if (!SWIG_IsOK(ecode5)) {
10400 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10401 }
10402 arg5 = static_cast< int >(val5);
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 {
10410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10411 }
10412 return resultobj;
10413 fail:
10414 return NULL;
10415 }
10416
10417
10418 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10419 PyObject *resultobj = 0;
10420 wxRegion *arg1 = (wxRegion *) 0 ;
10421 wxRect *arg2 = 0 ;
10422 bool result;
10423 void *argp1 = 0 ;
10424 int res1 = 0 ;
10425 wxRect temp2 ;
10426 PyObject * obj0 = 0 ;
10427 PyObject * obj1 = 0 ;
10428 char * kwnames[] = {
10429 (char *) "self",(char *) "rect", NULL
10430 };
10431
10432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10434 if (!SWIG_IsOK(res1)) {
10435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10436 }
10437 arg1 = reinterpret_cast< wxRegion * >(argp1);
10438 {
10439 arg2 = &temp2;
10440 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10441 }
10442 {
10443 PyThreadState* __tstate = wxPyBeginAllowThreads();
10444 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10445 wxPyEndAllowThreads(__tstate);
10446 if (PyErr_Occurred()) SWIG_fail;
10447 }
10448 {
10449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10450 }
10451 return resultobj;
10452 fail:
10453 return NULL;
10454 }
10455
10456
10457 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10458 PyObject *resultobj = 0;
10459 wxRegion *arg1 = (wxRegion *) 0 ;
10460 wxRegion *arg2 = 0 ;
10461 bool result;
10462 void *argp1 = 0 ;
10463 int res1 = 0 ;
10464 void *argp2 = 0 ;
10465 int res2 = 0 ;
10466 PyObject * obj0 = 0 ;
10467 PyObject * obj1 = 0 ;
10468 char * kwnames[] = {
10469 (char *) "self",(char *) "region", NULL
10470 };
10471
10472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10474 if (!SWIG_IsOK(res1)) {
10475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10476 }
10477 arg1 = reinterpret_cast< wxRegion * >(argp1);
10478 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10479 if (!SWIG_IsOK(res2)) {
10480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10481 }
10482 if (!argp2) {
10483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10484 }
10485 arg2 = reinterpret_cast< wxRegion * >(argp2);
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
10488 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 {
10493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10494 }
10495 return resultobj;
10496 fail:
10497 return NULL;
10498 }
10499
10500
10501 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10502 PyObject *resultobj = 0;
10503 wxRegion *arg1 = (wxRegion *) 0 ;
10504 bool result;
10505 void *argp1 = 0 ;
10506 int res1 = 0 ;
10507 PyObject *swig_obj[1] ;
10508
10509 if (!args) SWIG_fail;
10510 swig_obj[0] = args;
10511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10512 if (!SWIG_IsOK(res1)) {
10513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10514 }
10515 arg1 = reinterpret_cast< wxRegion * >(argp1);
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 result = (bool)(arg1)->IsEmpty();
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 {
10523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10524 }
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj = 0;
10533 wxRegion *arg1 = (wxRegion *) 0 ;
10534 wxRegion *arg2 = 0 ;
10535 bool result;
10536 void *argp1 = 0 ;
10537 int res1 = 0 ;
10538 void *argp2 = 0 ;
10539 int res2 = 0 ;
10540 PyObject * obj0 = 0 ;
10541 PyObject * obj1 = 0 ;
10542 char * kwnames[] = {
10543 (char *) "self",(char *) "region", NULL
10544 };
10545
10546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10548 if (!SWIG_IsOK(res1)) {
10549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10550 }
10551 arg1 = reinterpret_cast< wxRegion * >(argp1);
10552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10553 if (!SWIG_IsOK(res2)) {
10554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10555 }
10556 if (!argp2) {
10557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10558 }
10559 arg2 = reinterpret_cast< wxRegion * >(argp2);
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 {
10567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10568 }
10569 return resultobj;
10570 fail:
10571 return NULL;
10572 }
10573
10574
10575 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10576 PyObject *resultobj = 0;
10577 wxRegion *arg1 = (wxRegion *) 0 ;
10578 int arg2 ;
10579 int arg3 ;
10580 int arg4 ;
10581 int arg5 ;
10582 bool result;
10583 void *argp1 = 0 ;
10584 int res1 = 0 ;
10585 int val2 ;
10586 int ecode2 = 0 ;
10587 int val3 ;
10588 int ecode3 = 0 ;
10589 int val4 ;
10590 int ecode4 = 0 ;
10591 int val5 ;
10592 int ecode5 = 0 ;
10593 PyObject * obj0 = 0 ;
10594 PyObject * obj1 = 0 ;
10595 PyObject * obj2 = 0 ;
10596 PyObject * obj3 = 0 ;
10597 PyObject * obj4 = 0 ;
10598 char * kwnames[] = {
10599 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10600 };
10601
10602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10604 if (!SWIG_IsOK(res1)) {
10605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10606 }
10607 arg1 = reinterpret_cast< wxRegion * >(argp1);
10608 ecode2 = SWIG_AsVal_int(obj1, &val2);
10609 if (!SWIG_IsOK(ecode2)) {
10610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10611 }
10612 arg2 = static_cast< int >(val2);
10613 ecode3 = SWIG_AsVal_int(obj2, &val3);
10614 if (!SWIG_IsOK(ecode3)) {
10615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10616 }
10617 arg3 = static_cast< int >(val3);
10618 ecode4 = SWIG_AsVal_int(obj3, &val4);
10619 if (!SWIG_IsOK(ecode4)) {
10620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10621 }
10622 arg4 = static_cast< int >(val4);
10623 ecode5 = SWIG_AsVal_int(obj4, &val5);
10624 if (!SWIG_IsOK(ecode5)) {
10625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10626 }
10627 arg5 = static_cast< int >(val5);
10628 {
10629 PyThreadState* __tstate = wxPyBeginAllowThreads();
10630 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 {
10635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10636 }
10637 return resultobj;
10638 fail:
10639 return NULL;
10640 }
10641
10642
10643 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10644 PyObject *resultobj = 0;
10645 wxRegion *arg1 = (wxRegion *) 0 ;
10646 wxRect *arg2 = 0 ;
10647 bool result;
10648 void *argp1 = 0 ;
10649 int res1 = 0 ;
10650 wxRect temp2 ;
10651 PyObject * obj0 = 0 ;
10652 PyObject * obj1 = 0 ;
10653 char * kwnames[] = {
10654 (char *) "self",(char *) "rect", NULL
10655 };
10656
10657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10659 if (!SWIG_IsOK(res1)) {
10660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10661 }
10662 arg1 = reinterpret_cast< wxRegion * >(argp1);
10663 {
10664 arg2 = &temp2;
10665 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10666 }
10667 {
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
10669 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 {
10674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10675 }
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxRegion *arg1 = (wxRegion *) 0 ;
10685 wxRegion *arg2 = 0 ;
10686 bool result;
10687 void *argp1 = 0 ;
10688 int res1 = 0 ;
10689 void *argp2 = 0 ;
10690 int res2 = 0 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 char * kwnames[] = {
10694 (char *) "self",(char *) "region", NULL
10695 };
10696
10697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10699 if (!SWIG_IsOK(res1)) {
10700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10701 }
10702 arg1 = reinterpret_cast< wxRegion * >(argp1);
10703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10704 if (!SWIG_IsOK(res2)) {
10705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10706 }
10707 if (!argp2) {
10708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10709 }
10710 arg2 = reinterpret_cast< wxRegion * >(argp2);
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10714 wxPyEndAllowThreads(__tstate);
10715 if (PyErr_Occurred()) SWIG_fail;
10716 }
10717 {
10718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10719 }
10720 return resultobj;
10721 fail:
10722 return NULL;
10723 }
10724
10725
10726 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10727 PyObject *resultobj = 0;
10728 wxRegion *arg1 = (wxRegion *) 0 ;
10729 int arg2 ;
10730 int arg3 ;
10731 int arg4 ;
10732 int arg5 ;
10733 bool result;
10734 void *argp1 = 0 ;
10735 int res1 = 0 ;
10736 int val2 ;
10737 int ecode2 = 0 ;
10738 int val3 ;
10739 int ecode3 = 0 ;
10740 int val4 ;
10741 int ecode4 = 0 ;
10742 int val5 ;
10743 int ecode5 = 0 ;
10744 PyObject * obj0 = 0 ;
10745 PyObject * obj1 = 0 ;
10746 PyObject * obj2 = 0 ;
10747 PyObject * obj3 = 0 ;
10748 PyObject * obj4 = 0 ;
10749 char * kwnames[] = {
10750 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10751 };
10752
10753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10755 if (!SWIG_IsOK(res1)) {
10756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10757 }
10758 arg1 = reinterpret_cast< wxRegion * >(argp1);
10759 ecode2 = SWIG_AsVal_int(obj1, &val2);
10760 if (!SWIG_IsOK(ecode2)) {
10761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10762 }
10763 arg2 = static_cast< int >(val2);
10764 ecode3 = SWIG_AsVal_int(obj2, &val3);
10765 if (!SWIG_IsOK(ecode3)) {
10766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10767 }
10768 arg3 = static_cast< int >(val3);
10769 ecode4 = SWIG_AsVal_int(obj3, &val4);
10770 if (!SWIG_IsOK(ecode4)) {
10771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10772 }
10773 arg4 = static_cast< int >(val4);
10774 ecode5 = SWIG_AsVal_int(obj4, &val5);
10775 if (!SWIG_IsOK(ecode5)) {
10776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10777 }
10778 arg5 = static_cast< int >(val5);
10779 {
10780 PyThreadState* __tstate = wxPyBeginAllowThreads();
10781 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10782 wxPyEndAllowThreads(__tstate);
10783 if (PyErr_Occurred()) SWIG_fail;
10784 }
10785 {
10786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10787 }
10788 return resultobj;
10789 fail:
10790 return NULL;
10791 }
10792
10793
10794 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10795 PyObject *resultobj = 0;
10796 wxRegion *arg1 = (wxRegion *) 0 ;
10797 wxRect *arg2 = 0 ;
10798 bool result;
10799 void *argp1 = 0 ;
10800 int res1 = 0 ;
10801 wxRect temp2 ;
10802 PyObject * obj0 = 0 ;
10803 PyObject * obj1 = 0 ;
10804 char * kwnames[] = {
10805 (char *) "self",(char *) "rect", NULL
10806 };
10807
10808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10810 if (!SWIG_IsOK(res1)) {
10811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10812 }
10813 arg1 = reinterpret_cast< wxRegion * >(argp1);
10814 {
10815 arg2 = &temp2;
10816 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10817 }
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 {
10825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10826 }
10827 return resultobj;
10828 fail:
10829 return NULL;
10830 }
10831
10832
10833 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10834 PyObject *resultobj = 0;
10835 wxRegion *arg1 = (wxRegion *) 0 ;
10836 wxRegion *arg2 = 0 ;
10837 bool result;
10838 void *argp1 = 0 ;
10839 int res1 = 0 ;
10840 void *argp2 = 0 ;
10841 int res2 = 0 ;
10842 PyObject * obj0 = 0 ;
10843 PyObject * obj1 = 0 ;
10844 char * kwnames[] = {
10845 (char *) "self",(char *) "region", NULL
10846 };
10847
10848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10850 if (!SWIG_IsOK(res1)) {
10851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10852 }
10853 arg1 = reinterpret_cast< wxRegion * >(argp1);
10854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10855 if (!SWIG_IsOK(res2)) {
10856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10857 }
10858 if (!argp2) {
10859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10860 }
10861 arg2 = reinterpret_cast< wxRegion * >(argp2);
10862 {
10863 PyThreadState* __tstate = wxPyBeginAllowThreads();
10864 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 {
10869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10870 }
10871 return resultobj;
10872 fail:
10873 return NULL;
10874 }
10875
10876
10877 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10878 PyObject *resultobj = 0;
10879 wxRegion *arg1 = (wxRegion *) 0 ;
10880 int arg2 ;
10881 int arg3 ;
10882 int arg4 ;
10883 int arg5 ;
10884 bool result;
10885 void *argp1 = 0 ;
10886 int res1 = 0 ;
10887 int val2 ;
10888 int ecode2 = 0 ;
10889 int val3 ;
10890 int ecode3 = 0 ;
10891 int val4 ;
10892 int ecode4 = 0 ;
10893 int val5 ;
10894 int ecode5 = 0 ;
10895 PyObject * obj0 = 0 ;
10896 PyObject * obj1 = 0 ;
10897 PyObject * obj2 = 0 ;
10898 PyObject * obj3 = 0 ;
10899 PyObject * obj4 = 0 ;
10900 char * kwnames[] = {
10901 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10902 };
10903
10904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10906 if (!SWIG_IsOK(res1)) {
10907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
10908 }
10909 arg1 = reinterpret_cast< wxRegion * >(argp1);
10910 ecode2 = SWIG_AsVal_int(obj1, &val2);
10911 if (!SWIG_IsOK(ecode2)) {
10912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
10913 }
10914 arg2 = static_cast< int >(val2);
10915 ecode3 = SWIG_AsVal_int(obj2, &val3);
10916 if (!SWIG_IsOK(ecode3)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
10918 }
10919 arg3 = static_cast< int >(val3);
10920 ecode4 = SWIG_AsVal_int(obj3, &val4);
10921 if (!SWIG_IsOK(ecode4)) {
10922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
10923 }
10924 arg4 = static_cast< int >(val4);
10925 ecode5 = SWIG_AsVal_int(obj4, &val5);
10926 if (!SWIG_IsOK(ecode5)) {
10927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
10928 }
10929 arg5 = static_cast< int >(val5);
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 {
10937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10938 }
10939 return resultobj;
10940 fail:
10941 return NULL;
10942 }
10943
10944
10945 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10946 PyObject *resultobj = 0;
10947 wxRegion *arg1 = (wxRegion *) 0 ;
10948 wxRect *arg2 = 0 ;
10949 bool result;
10950 void *argp1 = 0 ;
10951 int res1 = 0 ;
10952 wxRect temp2 ;
10953 PyObject * obj0 = 0 ;
10954 PyObject * obj1 = 0 ;
10955 char * kwnames[] = {
10956 (char *) "self",(char *) "rect", NULL
10957 };
10958
10959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
10960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10961 if (!SWIG_IsOK(res1)) {
10962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10963 }
10964 arg1 = reinterpret_cast< wxRegion * >(argp1);
10965 {
10966 arg2 = &temp2;
10967 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10968 }
10969 {
10970 PyThreadState* __tstate = wxPyBeginAllowThreads();
10971 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
10972 wxPyEndAllowThreads(__tstate);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 }
10975 {
10976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10977 }
10978 return resultobj;
10979 fail:
10980 return NULL;
10981 }
10982
10983
10984 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj = 0;
10986 wxRegion *arg1 = (wxRegion *) 0 ;
10987 wxRegion *arg2 = 0 ;
10988 bool result;
10989 void *argp1 = 0 ;
10990 int res1 = 0 ;
10991 void *argp2 = 0 ;
10992 int res2 = 0 ;
10993 PyObject * obj0 = 0 ;
10994 PyObject * obj1 = 0 ;
10995 char * kwnames[] = {
10996 (char *) "self",(char *) "region", NULL
10997 };
10998
10999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11001 if (!SWIG_IsOK(res1)) {
11002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11003 }
11004 arg1 = reinterpret_cast< wxRegion * >(argp1);
11005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11006 if (!SWIG_IsOK(res2)) {
11007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11008 }
11009 if (!argp2) {
11010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11011 }
11012 arg2 = reinterpret_cast< wxRegion * >(argp2);
11013 {
11014 PyThreadState* __tstate = wxPyBeginAllowThreads();
11015 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11016 wxPyEndAllowThreads(__tstate);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 }
11019 {
11020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11021 }
11022 return resultobj;
11023 fail:
11024 return NULL;
11025 }
11026
11027
11028 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11029 PyObject *resultobj = 0;
11030 wxRegion *arg1 = (wxRegion *) 0 ;
11031 SwigValueWrapper<wxBitmap > result;
11032 void *argp1 = 0 ;
11033 int res1 = 0 ;
11034 PyObject *swig_obj[1] ;
11035
11036 if (!args) SWIG_fail;
11037 swig_obj[0] = args;
11038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11039 if (!SWIG_IsOK(res1)) {
11040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11041 }
11042 arg1 = reinterpret_cast< wxRegion * >(argp1);
11043 {
11044 PyThreadState* __tstate = wxPyBeginAllowThreads();
11045 result = (arg1)->ConvertToBitmap();
11046 wxPyEndAllowThreads(__tstate);
11047 if (PyErr_Occurred()) SWIG_fail;
11048 }
11049 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11050 return resultobj;
11051 fail:
11052 return NULL;
11053 }
11054
11055
11056 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11057 PyObject *resultobj = 0;
11058 wxRegion *arg1 = (wxRegion *) 0 ;
11059 wxBitmap *arg2 = 0 ;
11060 bool result;
11061 void *argp1 = 0 ;
11062 int res1 = 0 ;
11063 void *argp2 = 0 ;
11064 int res2 = 0 ;
11065 PyObject * obj0 = 0 ;
11066 PyObject * obj1 = 0 ;
11067 char * kwnames[] = {
11068 (char *) "self",(char *) "bmp", NULL
11069 };
11070
11071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11073 if (!SWIG_IsOK(res1)) {
11074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11075 }
11076 arg1 = reinterpret_cast< wxRegion * >(argp1);
11077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11078 if (!SWIG_IsOK(res2)) {
11079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11080 }
11081 if (!argp2) {
11082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11083 }
11084 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11088 wxPyEndAllowThreads(__tstate);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 }
11091 {
11092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11093 }
11094 return resultobj;
11095 fail:
11096 return NULL;
11097 }
11098
11099
11100 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11101 PyObject *resultobj = 0;
11102 wxRegion *arg1 = (wxRegion *) 0 ;
11103 wxBitmap *arg2 = 0 ;
11104 wxColour *arg3 = 0 ;
11105 int arg4 = (int) 0 ;
11106 bool result;
11107 void *argp1 = 0 ;
11108 int res1 = 0 ;
11109 void *argp2 = 0 ;
11110 int res2 = 0 ;
11111 wxColour temp3 ;
11112 int val4 ;
11113 int ecode4 = 0 ;
11114 PyObject * obj0 = 0 ;
11115 PyObject * obj1 = 0 ;
11116 PyObject * obj2 = 0 ;
11117 PyObject * obj3 = 0 ;
11118 char * kwnames[] = {
11119 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11120 };
11121
11122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11126 }
11127 arg1 = reinterpret_cast< wxRegion * >(argp1);
11128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11129 if (!SWIG_IsOK(res2)) {
11130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11131 }
11132 if (!argp2) {
11133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11134 }
11135 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11136 {
11137 arg3 = &temp3;
11138 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11139 }
11140 if (obj3) {
11141 ecode4 = SWIG_AsVal_int(obj3, &val4);
11142 if (!SWIG_IsOK(ecode4)) {
11143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11144 }
11145 arg4 = static_cast< int >(val4);
11146 }
11147 {
11148 PyThreadState* __tstate = wxPyBeginAllowThreads();
11149 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 }
11153 {
11154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11155 }
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11163 PyObject *obj;
11164 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11165 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11166 return SWIG_Py_Void();
11167 }
11168
11169 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11170 return SWIG_Python_InitShadowInstance(args);
11171 }
11172
11173 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11174 PyObject *resultobj = 0;
11175 wxRegion *arg1 = 0 ;
11176 wxRegionIterator *result = 0 ;
11177 void *argp1 = 0 ;
11178 int res1 = 0 ;
11179 PyObject * obj0 = 0 ;
11180 char * kwnames[] = {
11181 (char *) "region", NULL
11182 };
11183
11184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11185 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11186 if (!SWIG_IsOK(res1)) {
11187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11188 }
11189 if (!argp1) {
11190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11191 }
11192 arg1 = reinterpret_cast< wxRegion * >(argp1);
11193 {
11194 if (!wxPyCheckForApp()) SWIG_fail;
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11197 wxPyEndAllowThreads(__tstate);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 }
11200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11201 return resultobj;
11202 fail:
11203 return NULL;
11204 }
11205
11206
11207 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11208 PyObject *resultobj = 0;
11209 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11210 void *argp1 = 0 ;
11211 int res1 = 0 ;
11212 PyObject *swig_obj[1] ;
11213
11214 if (!args) SWIG_fail;
11215 swig_obj[0] = args;
11216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11217 if (!SWIG_IsOK(res1)) {
11218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11219 }
11220 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11221 {
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 delete arg1;
11224
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 }
11228 resultobj = SWIG_Py_Void();
11229 return resultobj;
11230 fail:
11231 return NULL;
11232 }
11233
11234
11235 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11236 PyObject *resultobj = 0;
11237 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11238 int result;
11239 void *argp1 = 0 ;
11240 int res1 = 0 ;
11241 PyObject *swig_obj[1] ;
11242
11243 if (!args) SWIG_fail;
11244 swig_obj[0] = args;
11245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11246 if (!SWIG_IsOK(res1)) {
11247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11248 }
11249 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11250 {
11251 PyThreadState* __tstate = wxPyBeginAllowThreads();
11252 result = (int)(arg1)->GetX();
11253 wxPyEndAllowThreads(__tstate);
11254 if (PyErr_Occurred()) SWIG_fail;
11255 }
11256 resultobj = SWIG_From_int(static_cast< int >(result));
11257 return resultobj;
11258 fail:
11259 return NULL;
11260 }
11261
11262
11263 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11264 PyObject *resultobj = 0;
11265 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11266 int result;
11267 void *argp1 = 0 ;
11268 int res1 = 0 ;
11269 PyObject *swig_obj[1] ;
11270
11271 if (!args) SWIG_fail;
11272 swig_obj[0] = args;
11273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11274 if (!SWIG_IsOK(res1)) {
11275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11276 }
11277 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11278 {
11279 PyThreadState* __tstate = wxPyBeginAllowThreads();
11280 result = (int)(arg1)->GetY();
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 resultobj = SWIG_From_int(static_cast< int >(result));
11285 return resultobj;
11286 fail:
11287 return NULL;
11288 }
11289
11290
11291 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11292 PyObject *resultobj = 0;
11293 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11294 int result;
11295 void *argp1 = 0 ;
11296 int res1 = 0 ;
11297 PyObject *swig_obj[1] ;
11298
11299 if (!args) SWIG_fail;
11300 swig_obj[0] = args;
11301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11302 if (!SWIG_IsOK(res1)) {
11303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11304 }
11305 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 result = (int)(arg1)->GetW();
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 resultobj = SWIG_From_int(static_cast< int >(result));
11313 return resultobj;
11314 fail:
11315 return NULL;
11316 }
11317
11318
11319 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11320 PyObject *resultobj = 0;
11321 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11322 int result;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 PyObject *swig_obj[1] ;
11326
11327 if (!args) SWIG_fail;
11328 swig_obj[0] = args;
11329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11330 if (!SWIG_IsOK(res1)) {
11331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11332 }
11333 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 result = (int)(arg1)->GetWidth();
11337 wxPyEndAllowThreads(__tstate);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 resultobj = SWIG_From_int(static_cast< int >(result));
11341 return resultobj;
11342 fail:
11343 return NULL;
11344 }
11345
11346
11347 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11348 PyObject *resultobj = 0;
11349 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11350 int result;
11351 void *argp1 = 0 ;
11352 int res1 = 0 ;
11353 PyObject *swig_obj[1] ;
11354
11355 if (!args) SWIG_fail;
11356 swig_obj[0] = args;
11357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11358 if (!SWIG_IsOK(res1)) {
11359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11360 }
11361 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (int)(arg1)->GetH();
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 resultobj = SWIG_From_int(static_cast< int >(result));
11369 return resultobj;
11370 fail:
11371 return NULL;
11372 }
11373
11374
11375 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11376 PyObject *resultobj = 0;
11377 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11378 int result;
11379 void *argp1 = 0 ;
11380 int res1 = 0 ;
11381 PyObject *swig_obj[1] ;
11382
11383 if (!args) SWIG_fail;
11384 swig_obj[0] = args;
11385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11386 if (!SWIG_IsOK(res1)) {
11387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11388 }
11389 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 result = (int)(arg1)->GetHeight();
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 resultobj = SWIG_From_int(static_cast< int >(result));
11397 return resultobj;
11398 fail:
11399 return NULL;
11400 }
11401
11402
11403 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11404 PyObject *resultobj = 0;
11405 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11406 wxRect result;
11407 void *argp1 = 0 ;
11408 int res1 = 0 ;
11409 PyObject *swig_obj[1] ;
11410
11411 if (!args) SWIG_fail;
11412 swig_obj[0] = args;
11413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11414 if (!SWIG_IsOK(res1)) {
11415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11416 }
11417 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = (arg1)->GetRect();
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11425 return resultobj;
11426 fail:
11427 return NULL;
11428 }
11429
11430
11431 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11432 PyObject *resultobj = 0;
11433 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11434 bool result;
11435 void *argp1 = 0 ;
11436 int res1 = 0 ;
11437 PyObject *swig_obj[1] ;
11438
11439 if (!args) SWIG_fail;
11440 swig_obj[0] = args;
11441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11442 if (!SWIG_IsOK(res1)) {
11443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11444 }
11445 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11446 {
11447 PyThreadState* __tstate = wxPyBeginAllowThreads();
11448 result = (bool)(arg1)->HaveRects();
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 {
11453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11454 }
11455 return resultobj;
11456 fail:
11457 return NULL;
11458 }
11459
11460
11461 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11462 PyObject *resultobj = 0;
11463 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11464 void *argp1 = 0 ;
11465 int res1 = 0 ;
11466 PyObject *swig_obj[1] ;
11467
11468 if (!args) SWIG_fail;
11469 swig_obj[0] = args;
11470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11471 if (!SWIG_IsOK(res1)) {
11472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11473 }
11474 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 (arg1)->Reset();
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 resultobj = SWIG_Py_Void();
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11489 PyObject *resultobj = 0;
11490 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11491 void *argp1 = 0 ;
11492 int res1 = 0 ;
11493 PyObject *swig_obj[1] ;
11494
11495 if (!args) SWIG_fail;
11496 swig_obj[0] = args;
11497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11498 if (!SWIG_IsOK(res1)) {
11499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11500 }
11501 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11502 {
11503 PyThreadState* __tstate = wxPyBeginAllowThreads();
11504 wxRegionIterator_Next(arg1);
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 resultobj = SWIG_Py_Void();
11509 return resultobj;
11510 fail:
11511 return NULL;
11512 }
11513
11514
11515 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11516 PyObject *resultobj = 0;
11517 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11518 bool result;
11519 void *argp1 = 0 ;
11520 int res1 = 0 ;
11521 PyObject *swig_obj[1] ;
11522
11523 if (!args) SWIG_fail;
11524 swig_obj[0] = args;
11525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11526 if (!SWIG_IsOK(res1)) {
11527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11528 }
11529 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = (bool)wxRegionIterator___nonzero__(arg1);
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 {
11537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11538 }
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11546 PyObject *obj;
11547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11548 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11549 return SWIG_Py_Void();
11550 }
11551
11552 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11553 return SWIG_Python_InitShadowInstance(args);
11554 }
11555
11556 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11557 PyObject *resultobj = 0;
11558 wxNativeFontInfo *result = 0 ;
11559
11560 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11561 {
11562 PyThreadState* __tstate = wxPyBeginAllowThreads();
11563 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11568 return resultobj;
11569 fail:
11570 return NULL;
11571 }
11572
11573
11574 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11575 PyObject *resultobj = 0;
11576 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11577 void *argp1 = 0 ;
11578 int res1 = 0 ;
11579 PyObject *swig_obj[1] ;
11580
11581 if (!args) SWIG_fail;
11582 swig_obj[0] = args;
11583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11584 if (!SWIG_IsOK(res1)) {
11585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11586 }
11587 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 delete arg1;
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 resultobj = SWIG_Py_Void();
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11603 PyObject *resultobj = 0;
11604 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11605 void *argp1 = 0 ;
11606 int res1 = 0 ;
11607 PyObject *swig_obj[1] ;
11608
11609 if (!args) SWIG_fail;
11610 swig_obj[0] = args;
11611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11612 if (!SWIG_IsOK(res1)) {
11613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11614 }
11615 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 (arg1)->Init();
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 resultobj = SWIG_Py_Void();
11623 return resultobj;
11624 fail:
11625 return NULL;
11626 }
11627
11628
11629 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11630 PyObject *resultobj = 0;
11631 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11632 wxFont *arg2 = 0 ;
11633 void *argp1 = 0 ;
11634 int res1 = 0 ;
11635 void *argp2 = 0 ;
11636 int res2 = 0 ;
11637 PyObject * obj0 = 0 ;
11638 PyObject * obj1 = 0 ;
11639 char * kwnames[] = {
11640 (char *) "self",(char *) "font", NULL
11641 };
11642
11643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11645 if (!SWIG_IsOK(res1)) {
11646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11647 }
11648 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11650 if (!SWIG_IsOK(res2)) {
11651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11652 }
11653 if (!argp2) {
11654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11655 }
11656 arg2 = reinterpret_cast< wxFont * >(argp2);
11657 {
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 (arg1)->InitFromFont((wxFont const &)*arg2);
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 resultobj = SWIG_Py_Void();
11664 return resultobj;
11665 fail:
11666 return NULL;
11667 }
11668
11669
11670 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11671 PyObject *resultobj = 0;
11672 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11673 int result;
11674 void *argp1 = 0 ;
11675 int res1 = 0 ;
11676 PyObject *swig_obj[1] ;
11677
11678 if (!args) SWIG_fail;
11679 swig_obj[0] = args;
11680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11681 if (!SWIG_IsOK(res1)) {
11682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11683 }
11684 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11685 {
11686 PyThreadState* __tstate = wxPyBeginAllowThreads();
11687 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11688 wxPyEndAllowThreads(__tstate);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 }
11691 resultobj = SWIG_From_int(static_cast< int >(result));
11692 return resultobj;
11693 fail:
11694 return NULL;
11695 }
11696
11697
11698 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11699 PyObject *resultobj = 0;
11700 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11701 wxFontStyle result;
11702 void *argp1 = 0 ;
11703 int res1 = 0 ;
11704 PyObject *swig_obj[1] ;
11705
11706 if (!args) SWIG_fail;
11707 swig_obj[0] = args;
11708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11709 if (!SWIG_IsOK(res1)) {
11710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11711 }
11712 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11713 {
11714 PyThreadState* __tstate = wxPyBeginAllowThreads();
11715 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11716 wxPyEndAllowThreads(__tstate);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 }
11719 resultobj = SWIG_From_int(static_cast< int >(result));
11720 return resultobj;
11721 fail:
11722 return NULL;
11723 }
11724
11725
11726 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11727 PyObject *resultobj = 0;
11728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11729 wxFontWeight result;
11730 void *argp1 = 0 ;
11731 int res1 = 0 ;
11732 PyObject *swig_obj[1] ;
11733
11734 if (!args) SWIG_fail;
11735 swig_obj[0] = args;
11736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11737 if (!SWIG_IsOK(res1)) {
11738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11739 }
11740 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 resultobj = SWIG_From_int(static_cast< int >(result));
11748 return resultobj;
11749 fail:
11750 return NULL;
11751 }
11752
11753
11754 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11755 PyObject *resultobj = 0;
11756 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11757 bool result;
11758 void *argp1 = 0 ;
11759 int res1 = 0 ;
11760 PyObject *swig_obj[1] ;
11761
11762 if (!args) SWIG_fail;
11763 swig_obj[0] = args;
11764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11765 if (!SWIG_IsOK(res1)) {
11766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11767 }
11768 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11769 {
11770 PyThreadState* __tstate = wxPyBeginAllowThreads();
11771 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11772 wxPyEndAllowThreads(__tstate);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 }
11775 {
11776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11777 }
11778 return resultobj;
11779 fail:
11780 return NULL;
11781 }
11782
11783
11784 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11785 PyObject *resultobj = 0;
11786 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11787 wxString result;
11788 void *argp1 = 0 ;
11789 int res1 = 0 ;
11790 PyObject *swig_obj[1] ;
11791
11792 if (!args) SWIG_fail;
11793 swig_obj[0] = args;
11794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11795 if (!SWIG_IsOK(res1)) {
11796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11797 }
11798 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11799 {
11800 PyThreadState* __tstate = wxPyBeginAllowThreads();
11801 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11802 wxPyEndAllowThreads(__tstate);
11803 if (PyErr_Occurred()) SWIG_fail;
11804 }
11805 {
11806 #if wxUSE_UNICODE
11807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11808 #else
11809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11810 #endif
11811 }
11812 return resultobj;
11813 fail:
11814 return NULL;
11815 }
11816
11817
11818 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11819 PyObject *resultobj = 0;
11820 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11821 wxFontFamily result;
11822 void *argp1 = 0 ;
11823 int res1 = 0 ;
11824 PyObject *swig_obj[1] ;
11825
11826 if (!args) SWIG_fail;
11827 swig_obj[0] = args;
11828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11829 if (!SWIG_IsOK(res1)) {
11830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11831 }
11832 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11833 {
11834 PyThreadState* __tstate = wxPyBeginAllowThreads();
11835 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11836 wxPyEndAllowThreads(__tstate);
11837 if (PyErr_Occurred()) SWIG_fail;
11838 }
11839 resultobj = SWIG_From_int(static_cast< int >(result));
11840 return resultobj;
11841 fail:
11842 return NULL;
11843 }
11844
11845
11846 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11847 PyObject *resultobj = 0;
11848 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11849 wxFontEncoding result;
11850 void *argp1 = 0 ;
11851 int res1 = 0 ;
11852 PyObject *swig_obj[1] ;
11853
11854 if (!args) SWIG_fail;
11855 swig_obj[0] = args;
11856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11857 if (!SWIG_IsOK(res1)) {
11858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11859 }
11860 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11861 {
11862 PyThreadState* __tstate = wxPyBeginAllowThreads();
11863 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11864 wxPyEndAllowThreads(__tstate);
11865 if (PyErr_Occurred()) SWIG_fail;
11866 }
11867 resultobj = SWIG_From_int(static_cast< int >(result));
11868 return resultobj;
11869 fail:
11870 return NULL;
11871 }
11872
11873
11874 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11875 PyObject *resultobj = 0;
11876 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11877 int arg2 ;
11878 void *argp1 = 0 ;
11879 int res1 = 0 ;
11880 int val2 ;
11881 int ecode2 = 0 ;
11882 PyObject * obj0 = 0 ;
11883 PyObject * obj1 = 0 ;
11884 char * kwnames[] = {
11885 (char *) "self",(char *) "pointsize", NULL
11886 };
11887
11888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11890 if (!SWIG_IsOK(res1)) {
11891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11892 }
11893 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11894 ecode2 = SWIG_AsVal_int(obj1, &val2);
11895 if (!SWIG_IsOK(ecode2)) {
11896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
11897 }
11898 arg2 = static_cast< int >(val2);
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 (arg1)->SetPointSize(arg2);
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 resultobj = SWIG_Py_Void();
11906 return resultobj;
11907 fail:
11908 return NULL;
11909 }
11910
11911
11912 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11913 PyObject *resultobj = 0;
11914 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11915 wxFontStyle arg2 ;
11916 void *argp1 = 0 ;
11917 int res1 = 0 ;
11918 int val2 ;
11919 int ecode2 = 0 ;
11920 PyObject * obj0 = 0 ;
11921 PyObject * obj1 = 0 ;
11922 char * kwnames[] = {
11923 (char *) "self",(char *) "style", NULL
11924 };
11925
11926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
11927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11928 if (!SWIG_IsOK(res1)) {
11929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11930 }
11931 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11932 ecode2 = SWIG_AsVal_int(obj1, &val2);
11933 if (!SWIG_IsOK(ecode2)) {
11934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
11935 }
11936 arg2 = static_cast< wxFontStyle >(val2);
11937 {
11938 PyThreadState* __tstate = wxPyBeginAllowThreads();
11939 (arg1)->SetStyle(arg2);
11940 wxPyEndAllowThreads(__tstate);
11941 if (PyErr_Occurred()) SWIG_fail;
11942 }
11943 resultobj = SWIG_Py_Void();
11944 return resultobj;
11945 fail:
11946 return NULL;
11947 }
11948
11949
11950 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11951 PyObject *resultobj = 0;
11952 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11953 wxFontWeight arg2 ;
11954 void *argp1 = 0 ;
11955 int res1 = 0 ;
11956 int val2 ;
11957 int ecode2 = 0 ;
11958 PyObject * obj0 = 0 ;
11959 PyObject * obj1 = 0 ;
11960 char * kwnames[] = {
11961 (char *) "self",(char *) "weight", NULL
11962 };
11963
11964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
11965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11966 if (!SWIG_IsOK(res1)) {
11967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11968 }
11969 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11970 ecode2 = SWIG_AsVal_int(obj1, &val2);
11971 if (!SWIG_IsOK(ecode2)) {
11972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
11973 }
11974 arg2 = static_cast< wxFontWeight >(val2);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 (arg1)->SetWeight(arg2);
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 resultobj = SWIG_Py_Void();
11982 return resultobj;
11983 fail:
11984 return NULL;
11985 }
11986
11987
11988 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11989 PyObject *resultobj = 0;
11990 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11991 bool arg2 ;
11992 void *argp1 = 0 ;
11993 int res1 = 0 ;
11994 bool val2 ;
11995 int ecode2 = 0 ;
11996 PyObject * obj0 = 0 ;
11997 PyObject * obj1 = 0 ;
11998 char * kwnames[] = {
11999 (char *) "self",(char *) "underlined", NULL
12000 };
12001
12002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12004 if (!SWIG_IsOK(res1)) {
12005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12006 }
12007 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12008 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12009 if (!SWIG_IsOK(ecode2)) {
12010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12011 }
12012 arg2 = static_cast< bool >(val2);
12013 {
12014 PyThreadState* __tstate = wxPyBeginAllowThreads();
12015 (arg1)->SetUnderlined(arg2);
12016 wxPyEndAllowThreads(__tstate);
12017 if (PyErr_Occurred()) SWIG_fail;
12018 }
12019 resultobj = SWIG_Py_Void();
12020 return resultobj;
12021 fail:
12022 return NULL;
12023 }
12024
12025
12026 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12027 PyObject *resultobj = 0;
12028 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12029 wxString arg2 ;
12030 bool result;
12031 void *argp1 = 0 ;
12032 int res1 = 0 ;
12033 PyObject * obj0 = 0 ;
12034 PyObject * obj1 = 0 ;
12035 char * kwnames[] = {
12036 (char *) "self",(char *) "facename", NULL
12037 };
12038
12039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12043 }
12044 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12045 {
12046 wxString* sptr = wxString_in_helper(obj1);
12047 if (sptr == NULL) SWIG_fail;
12048 arg2 = *sptr;
12049 delete sptr;
12050 }
12051 {
12052 PyThreadState* __tstate = wxPyBeginAllowThreads();
12053 result = (bool)(arg1)->SetFaceName(arg2);
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 {
12058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12059 }
12060 return resultobj;
12061 fail:
12062 return NULL;
12063 }
12064
12065
12066 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12067 PyObject *resultobj = 0;
12068 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12069 wxFontFamily arg2 ;
12070 void *argp1 = 0 ;
12071 int res1 = 0 ;
12072 int val2 ;
12073 int ecode2 = 0 ;
12074 PyObject * obj0 = 0 ;
12075 PyObject * obj1 = 0 ;
12076 char * kwnames[] = {
12077 (char *) "self",(char *) "family", NULL
12078 };
12079
12080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12082 if (!SWIG_IsOK(res1)) {
12083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12084 }
12085 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12086 ecode2 = SWIG_AsVal_int(obj1, &val2);
12087 if (!SWIG_IsOK(ecode2)) {
12088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12089 }
12090 arg2 = static_cast< wxFontFamily >(val2);
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 (arg1)->SetFamily(arg2);
12094 wxPyEndAllowThreads(__tstate);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 resultobj = SWIG_Py_Void();
12098 return resultobj;
12099 fail:
12100 return NULL;
12101 }
12102
12103
12104 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12105 PyObject *resultobj = 0;
12106 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12107 wxFontEncoding arg2 ;
12108 void *argp1 = 0 ;
12109 int res1 = 0 ;
12110 int val2 ;
12111 int ecode2 = 0 ;
12112 PyObject * obj0 = 0 ;
12113 PyObject * obj1 = 0 ;
12114 char * kwnames[] = {
12115 (char *) "self",(char *) "encoding", NULL
12116 };
12117
12118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12120 if (!SWIG_IsOK(res1)) {
12121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12122 }
12123 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12124 ecode2 = SWIG_AsVal_int(obj1, &val2);
12125 if (!SWIG_IsOK(ecode2)) {
12126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12127 }
12128 arg2 = static_cast< wxFontEncoding >(val2);
12129 {
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 (arg1)->SetEncoding(arg2);
12132 wxPyEndAllowThreads(__tstate);
12133 if (PyErr_Occurred()) SWIG_fail;
12134 }
12135 resultobj = SWIG_Py_Void();
12136 return resultobj;
12137 fail:
12138 return NULL;
12139 }
12140
12141
12142 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12143 PyObject *resultobj = 0;
12144 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12145 wxString *arg2 = 0 ;
12146 bool result;
12147 void *argp1 = 0 ;
12148 int res1 = 0 ;
12149 bool temp2 = false ;
12150 PyObject * obj0 = 0 ;
12151 PyObject * obj1 = 0 ;
12152 char * kwnames[] = {
12153 (char *) "self",(char *) "s", NULL
12154 };
12155
12156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12158 if (!SWIG_IsOK(res1)) {
12159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12160 }
12161 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12162 {
12163 arg2 = wxString_in_helper(obj1);
12164 if (arg2 == NULL) SWIG_fail;
12165 temp2 = true;
12166 }
12167 {
12168 PyThreadState* __tstate = wxPyBeginAllowThreads();
12169 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12170 wxPyEndAllowThreads(__tstate);
12171 if (PyErr_Occurred()) SWIG_fail;
12172 }
12173 {
12174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12175 }
12176 {
12177 if (temp2)
12178 delete arg2;
12179 }
12180 return resultobj;
12181 fail:
12182 {
12183 if (temp2)
12184 delete arg2;
12185 }
12186 return NULL;
12187 }
12188
12189
12190 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12191 PyObject *resultobj = 0;
12192 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12193 wxString result;
12194 void *argp1 = 0 ;
12195 int res1 = 0 ;
12196 PyObject *swig_obj[1] ;
12197
12198 if (!args) SWIG_fail;
12199 swig_obj[0] = args;
12200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12201 if (!SWIG_IsOK(res1)) {
12202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12203 }
12204 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12205 {
12206 PyThreadState* __tstate = wxPyBeginAllowThreads();
12207 result = ((wxNativeFontInfo const *)arg1)->ToString();
12208 wxPyEndAllowThreads(__tstate);
12209 if (PyErr_Occurred()) SWIG_fail;
12210 }
12211 {
12212 #if wxUSE_UNICODE
12213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12214 #else
12215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12216 #endif
12217 }
12218 return resultobj;
12219 fail:
12220 return NULL;
12221 }
12222
12223
12224 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12225 PyObject *resultobj = 0;
12226 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12227 wxString result;
12228 void *argp1 = 0 ;
12229 int res1 = 0 ;
12230 PyObject *swig_obj[1] ;
12231
12232 if (!args) SWIG_fail;
12233 swig_obj[0] = args;
12234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12235 if (!SWIG_IsOK(res1)) {
12236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12237 }
12238 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12239 {
12240 PyThreadState* __tstate = wxPyBeginAllowThreads();
12241 result = wxNativeFontInfo___str__(arg1);
12242 wxPyEndAllowThreads(__tstate);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 }
12245 {
12246 #if wxUSE_UNICODE
12247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12248 #else
12249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12250 #endif
12251 }
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj = 0;
12260 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12261 wxString *arg2 = 0 ;
12262 bool result;
12263 void *argp1 = 0 ;
12264 int res1 = 0 ;
12265 bool temp2 = false ;
12266 PyObject * obj0 = 0 ;
12267 PyObject * obj1 = 0 ;
12268 char * kwnames[] = {
12269 (char *) "self",(char *) "s", NULL
12270 };
12271
12272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12274 if (!SWIG_IsOK(res1)) {
12275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12276 }
12277 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12278 {
12279 arg2 = wxString_in_helper(obj1);
12280 if (arg2 == NULL) SWIG_fail;
12281 temp2 = true;
12282 }
12283 {
12284 PyThreadState* __tstate = wxPyBeginAllowThreads();
12285 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12286 wxPyEndAllowThreads(__tstate);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 {
12290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12291 }
12292 {
12293 if (temp2)
12294 delete arg2;
12295 }
12296 return resultobj;
12297 fail:
12298 {
12299 if (temp2)
12300 delete arg2;
12301 }
12302 return NULL;
12303 }
12304
12305
12306 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12307 PyObject *resultobj = 0;
12308 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12309 wxString result;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12319 }
12320 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 {
12328 #if wxUSE_UNICODE
12329 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12330 #else
12331 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12332 #endif
12333 }
12334 return resultobj;
12335 fail:
12336 return NULL;
12337 }
12338
12339
12340 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12341 PyObject *obj;
12342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12343 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12344 return SWIG_Py_Void();
12345 }
12346
12347 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12348 return SWIG_Python_InitShadowInstance(args);
12349 }
12350
12351 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12352 PyObject *resultobj = 0;
12353 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12354 wxString *arg2 = (wxString *) 0 ;
12355 void *argp1 = 0 ;
12356 int res1 = 0 ;
12357 bool temp2 = false ;
12358 PyObject *swig_obj[2] ;
12359
12360 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12362 if (!SWIG_IsOK(res1)) {
12363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12364 }
12365 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12366 {
12367 arg2 = wxString_in_helper(swig_obj[1]);
12368 if (arg2 == NULL) SWIG_fail;
12369 temp2 = true;
12370 }
12371 if (arg1) (arg1)->facename = *arg2;
12372
12373 resultobj = SWIG_Py_Void();
12374 {
12375 if (temp2)
12376 delete arg2;
12377 }
12378 return resultobj;
12379 fail:
12380 {
12381 if (temp2)
12382 delete arg2;
12383 }
12384 return NULL;
12385 }
12386
12387
12388 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12389 PyObject *resultobj = 0;
12390 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12391 wxString *result = 0 ;
12392 void *argp1 = 0 ;
12393 int res1 = 0 ;
12394 PyObject *swig_obj[1] ;
12395
12396 if (!args) SWIG_fail;
12397 swig_obj[0] = args;
12398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12399 if (!SWIG_IsOK(res1)) {
12400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12401 }
12402 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12403 result = (wxString *)& ((arg1)->facename);
12404 {
12405 #if wxUSE_UNICODE
12406 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12407 #else
12408 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12409 #endif
12410 }
12411 return resultobj;
12412 fail:
12413 return NULL;
12414 }
12415
12416
12417 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12418 PyObject *resultobj = 0;
12419 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12420 wxFontEncoding arg2 ;
12421 void *argp1 = 0 ;
12422 int res1 = 0 ;
12423 int val2 ;
12424 int ecode2 = 0 ;
12425 PyObject *swig_obj[2] ;
12426
12427 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12429 if (!SWIG_IsOK(res1)) {
12430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12431 }
12432 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12433 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12434 if (!SWIG_IsOK(ecode2)) {
12435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12436 }
12437 arg2 = static_cast< wxFontEncoding >(val2);
12438 if (arg1) (arg1)->encoding = arg2;
12439
12440 resultobj = SWIG_Py_Void();
12441 return resultobj;
12442 fail:
12443 return NULL;
12444 }
12445
12446
12447 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12448 PyObject *resultobj = 0;
12449 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12450 wxFontEncoding result;
12451 void *argp1 = 0 ;
12452 int res1 = 0 ;
12453 PyObject *swig_obj[1] ;
12454
12455 if (!args) SWIG_fail;
12456 swig_obj[0] = args;
12457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12458 if (!SWIG_IsOK(res1)) {
12459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12460 }
12461 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12462 result = (wxFontEncoding) ((arg1)->encoding);
12463 resultobj = SWIG_From_int(static_cast< int >(result));
12464 return resultobj;
12465 fail:
12466 return NULL;
12467 }
12468
12469
12470 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12471 PyObject *resultobj = 0;
12472 wxNativeEncodingInfo *result = 0 ;
12473
12474 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12478 wxPyEndAllowThreads(__tstate);
12479 if (PyErr_Occurred()) SWIG_fail;
12480 }
12481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12482 return resultobj;
12483 fail:
12484 return NULL;
12485 }
12486
12487
12488 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12489 PyObject *resultobj = 0;
12490 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12491 void *argp1 = 0 ;
12492 int res1 = 0 ;
12493 PyObject *swig_obj[1] ;
12494
12495 if (!args) SWIG_fail;
12496 swig_obj[0] = args;
12497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12498 if (!SWIG_IsOK(res1)) {
12499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12500 }
12501 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 delete arg1;
12505
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 resultobj = SWIG_Py_Void();
12510 return resultobj;
12511 fail:
12512 return NULL;
12513 }
12514
12515
12516 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12517 PyObject *resultobj = 0;
12518 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12519 wxString *arg2 = 0 ;
12520 bool result;
12521 void *argp1 = 0 ;
12522 int res1 = 0 ;
12523 bool temp2 = false ;
12524 PyObject * obj0 = 0 ;
12525 PyObject * obj1 = 0 ;
12526 char * kwnames[] = {
12527 (char *) "self",(char *) "s", NULL
12528 };
12529
12530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12532 if (!SWIG_IsOK(res1)) {
12533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12534 }
12535 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12536 {
12537 arg2 = wxString_in_helper(obj1);
12538 if (arg2 == NULL) SWIG_fail;
12539 temp2 = true;
12540 }
12541 {
12542 PyThreadState* __tstate = wxPyBeginAllowThreads();
12543 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12544 wxPyEndAllowThreads(__tstate);
12545 if (PyErr_Occurred()) SWIG_fail;
12546 }
12547 {
12548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12549 }
12550 {
12551 if (temp2)
12552 delete arg2;
12553 }
12554 return resultobj;
12555 fail:
12556 {
12557 if (temp2)
12558 delete arg2;
12559 }
12560 return NULL;
12561 }
12562
12563
12564 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12565 PyObject *resultobj = 0;
12566 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12567 wxString result;
12568 void *argp1 = 0 ;
12569 int res1 = 0 ;
12570 PyObject *swig_obj[1] ;
12571
12572 if (!args) SWIG_fail;
12573 swig_obj[0] = args;
12574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12575 if (!SWIG_IsOK(res1)) {
12576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12577 }
12578 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12579 {
12580 PyThreadState* __tstate = wxPyBeginAllowThreads();
12581 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12582 wxPyEndAllowThreads(__tstate);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 }
12585 {
12586 #if wxUSE_UNICODE
12587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12588 #else
12589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12590 #endif
12591 }
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12599 PyObject *obj;
12600 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12601 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12602 return SWIG_Py_Void();
12603 }
12604
12605 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12606 return SWIG_Python_InitShadowInstance(args);
12607 }
12608
12609 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12610 PyObject *resultobj = 0;
12611 wxFontEncoding arg1 ;
12612 wxNativeEncodingInfo *result = 0 ;
12613 int val1 ;
12614 int ecode1 = 0 ;
12615 PyObject * obj0 = 0 ;
12616 char * kwnames[] = {
12617 (char *) "encoding", NULL
12618 };
12619
12620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12621 ecode1 = SWIG_AsVal_int(obj0, &val1);
12622 if (!SWIG_IsOK(ecode1)) {
12623 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12624 }
12625 arg1 = static_cast< wxFontEncoding >(val1);
12626 {
12627 PyThreadState* __tstate = wxPyBeginAllowThreads();
12628 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12633 return resultobj;
12634 fail:
12635 return NULL;
12636 }
12637
12638
12639 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12640 PyObject *resultobj = 0;
12641 wxNativeEncodingInfo *arg1 = 0 ;
12642 bool result;
12643 void *argp1 = 0 ;
12644 int res1 = 0 ;
12645 PyObject * obj0 = 0 ;
12646 char * kwnames[] = {
12647 (char *) "info", NULL
12648 };
12649
12650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12651 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12652 if (!SWIG_IsOK(res1)) {
12653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12654 }
12655 if (!argp1) {
12656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12657 }
12658 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 {
12666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12667 }
12668 return resultobj;
12669 fail:
12670 return NULL;
12671 }
12672
12673
12674 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12675 PyObject *resultobj = 0;
12676 wxFontMapper *result = 0 ;
12677
12678 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12679 {
12680 PyThreadState* __tstate = wxPyBeginAllowThreads();
12681 result = (wxFontMapper *)new wxFontMapper();
12682 wxPyEndAllowThreads(__tstate);
12683 if (PyErr_Occurred()) SWIG_fail;
12684 }
12685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12686 return resultobj;
12687 fail:
12688 return NULL;
12689 }
12690
12691
12692 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12693 PyObject *resultobj = 0;
12694 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12695 void *argp1 = 0 ;
12696 int res1 = 0 ;
12697 PyObject *swig_obj[1] ;
12698
12699 if (!args) SWIG_fail;
12700 swig_obj[0] = args;
12701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12702 if (!SWIG_IsOK(res1)) {
12703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12704 }
12705 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12706 {
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
12708 delete arg1;
12709
12710 wxPyEndAllowThreads(__tstate);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 }
12713 resultobj = SWIG_Py_Void();
12714 return resultobj;
12715 fail:
12716 return NULL;
12717 }
12718
12719
12720 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12721 PyObject *resultobj = 0;
12722 wxFontMapper *result = 0 ;
12723
12724 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 result = (wxFontMapper *)wxFontMapper::Get();
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12732 return resultobj;
12733 fail:
12734 return NULL;
12735 }
12736
12737
12738 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12739 PyObject *resultobj = 0;
12740 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12741 wxFontMapper *result = 0 ;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 PyObject * obj0 = 0 ;
12745 char * kwnames[] = {
12746 (char *) "mapper", NULL
12747 };
12748
12749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12751 if (!SWIG_IsOK(res1)) {
12752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12753 }
12754 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12755 {
12756 PyThreadState* __tstate = wxPyBeginAllowThreads();
12757 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12762 return resultobj;
12763 fail:
12764 return NULL;
12765 }
12766
12767
12768 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj = 0;
12770 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12771 wxString *arg2 = 0 ;
12772 bool arg3 = (bool) true ;
12773 wxFontEncoding result;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 bool temp2 = false ;
12777 bool val3 ;
12778 int ecode3 = 0 ;
12779 PyObject * obj0 = 0 ;
12780 PyObject * obj1 = 0 ;
12781 PyObject * obj2 = 0 ;
12782 char * kwnames[] = {
12783 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12784 };
12785
12786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12788 if (!SWIG_IsOK(res1)) {
12789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12790 }
12791 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12792 {
12793 arg2 = wxString_in_helper(obj1);
12794 if (arg2 == NULL) SWIG_fail;
12795 temp2 = true;
12796 }
12797 if (obj2) {
12798 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12799 if (!SWIG_IsOK(ecode3)) {
12800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12801 }
12802 arg3 = static_cast< bool >(val3);
12803 }
12804 {
12805 PyThreadState* __tstate = wxPyBeginAllowThreads();
12806 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12807 wxPyEndAllowThreads(__tstate);
12808 if (PyErr_Occurred()) SWIG_fail;
12809 }
12810 resultobj = SWIG_From_int(static_cast< int >(result));
12811 {
12812 if (temp2)
12813 delete arg2;
12814 }
12815 return resultobj;
12816 fail:
12817 {
12818 if (temp2)
12819 delete arg2;
12820 }
12821 return NULL;
12822 }
12823
12824
12825 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12826 PyObject *resultobj = 0;
12827 size_t result;
12828
12829 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12830 {
12831 PyThreadState* __tstate = wxPyBeginAllowThreads();
12832 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12833 wxPyEndAllowThreads(__tstate);
12834 if (PyErr_Occurred()) SWIG_fail;
12835 }
12836 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12837 return resultobj;
12838 fail:
12839 return NULL;
12840 }
12841
12842
12843 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12844 PyObject *resultobj = 0;
12845 size_t arg1 ;
12846 wxFontEncoding result;
12847 size_t val1 ;
12848 int ecode1 = 0 ;
12849 PyObject * obj0 = 0 ;
12850 char * kwnames[] = {
12851 (char *) "n", NULL
12852 };
12853
12854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12855 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12856 if (!SWIG_IsOK(ecode1)) {
12857 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12858 }
12859 arg1 = static_cast< size_t >(val1);
12860 {
12861 PyThreadState* __tstate = wxPyBeginAllowThreads();
12862 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12863 wxPyEndAllowThreads(__tstate);
12864 if (PyErr_Occurred()) SWIG_fail;
12865 }
12866 resultobj = SWIG_From_int(static_cast< int >(result));
12867 return resultobj;
12868 fail:
12869 return NULL;
12870 }
12871
12872
12873 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12874 PyObject *resultobj = 0;
12875 wxFontEncoding arg1 ;
12876 wxString result;
12877 int val1 ;
12878 int ecode1 = 0 ;
12879 PyObject * obj0 = 0 ;
12880 char * kwnames[] = {
12881 (char *) "encoding", NULL
12882 };
12883
12884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
12885 ecode1 = SWIG_AsVal_int(obj0, &val1);
12886 if (!SWIG_IsOK(ecode1)) {
12887 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12888 }
12889 arg1 = static_cast< wxFontEncoding >(val1);
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 result = wxFontMapper::GetEncodingName(arg1);
12893 wxPyEndAllowThreads(__tstate);
12894 if (PyErr_Occurred()) SWIG_fail;
12895 }
12896 {
12897 #if wxUSE_UNICODE
12898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12899 #else
12900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12901 #endif
12902 }
12903 return resultobj;
12904 fail:
12905 return NULL;
12906 }
12907
12908
12909 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12910 PyObject *resultobj = 0;
12911 wxFontEncoding arg1 ;
12912 wxString result;
12913 int val1 ;
12914 int ecode1 = 0 ;
12915 PyObject * obj0 = 0 ;
12916 char * kwnames[] = {
12917 (char *) "encoding", NULL
12918 };
12919
12920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
12921 ecode1 = SWIG_AsVal_int(obj0, &val1);
12922 if (!SWIG_IsOK(ecode1)) {
12923 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12924 }
12925 arg1 = static_cast< wxFontEncoding >(val1);
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 result = wxFontMapper::GetEncodingDescription(arg1);
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 {
12933 #if wxUSE_UNICODE
12934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12935 #else
12936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12937 #endif
12938 }
12939 return resultobj;
12940 fail:
12941 return NULL;
12942 }
12943
12944
12945 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12946 PyObject *resultobj = 0;
12947 wxString *arg1 = 0 ;
12948 wxFontEncoding result;
12949 bool temp1 = false ;
12950 PyObject * obj0 = 0 ;
12951 char * kwnames[] = {
12952 (char *) "name", NULL
12953 };
12954
12955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
12956 {
12957 arg1 = wxString_in_helper(obj0);
12958 if (arg1 == NULL) SWIG_fail;
12959 temp1 = true;
12960 }
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 resultobj = SWIG_From_int(static_cast< int >(result));
12968 {
12969 if (temp1)
12970 delete arg1;
12971 }
12972 return resultobj;
12973 fail:
12974 {
12975 if (temp1)
12976 delete arg1;
12977 }
12978 return NULL;
12979 }
12980
12981
12982 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12983 PyObject *resultobj = 0;
12984 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12985 wxString *arg2 = 0 ;
12986 void *argp1 = 0 ;
12987 int res1 = 0 ;
12988 bool temp2 = false ;
12989 PyObject * obj0 = 0 ;
12990 PyObject * obj1 = 0 ;
12991 char * kwnames[] = {
12992 (char *) "self",(char *) "prefix", NULL
12993 };
12994
12995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
12996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12997 if (!SWIG_IsOK(res1)) {
12998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12999 }
13000 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13001 {
13002 arg2 = wxString_in_helper(obj1);
13003 if (arg2 == NULL) SWIG_fail;
13004 temp2 = true;
13005 }
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 (arg1)->SetConfigPath((wxString const &)*arg2);
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 resultobj = SWIG_Py_Void();
13013 {
13014 if (temp2)
13015 delete arg2;
13016 }
13017 return resultobj;
13018 fail:
13019 {
13020 if (temp2)
13021 delete arg2;
13022 }
13023 return NULL;
13024 }
13025
13026
13027 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13028 PyObject *resultobj = 0;
13029 wxString result;
13030
13031 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = wxFontMapper::GetDefaultConfigPath();
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 {
13039 #if wxUSE_UNICODE
13040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13041 #else
13042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13043 #endif
13044 }
13045 return resultobj;
13046 fail:
13047 return NULL;
13048 }
13049
13050
13051 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13052 PyObject *resultobj = 0;
13053 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13054 wxFontEncoding arg2 ;
13055 wxString const &arg3_defvalue = wxPyEmptyString ;
13056 wxString *arg3 = (wxString *) &arg3_defvalue ;
13057 bool arg4 = (bool) true ;
13058 PyObject *result = 0 ;
13059 void *argp1 = 0 ;
13060 int res1 = 0 ;
13061 int val2 ;
13062 int ecode2 = 0 ;
13063 bool temp3 = false ;
13064 bool val4 ;
13065 int ecode4 = 0 ;
13066 PyObject * obj0 = 0 ;
13067 PyObject * obj1 = 0 ;
13068 PyObject * obj2 = 0 ;
13069 PyObject * obj3 = 0 ;
13070 char * kwnames[] = {
13071 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13072 };
13073
13074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13076 if (!SWIG_IsOK(res1)) {
13077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13078 }
13079 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13080 ecode2 = SWIG_AsVal_int(obj1, &val2);
13081 if (!SWIG_IsOK(ecode2)) {
13082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13083 }
13084 arg2 = static_cast< wxFontEncoding >(val2);
13085 if (obj2) {
13086 {
13087 arg3 = wxString_in_helper(obj2);
13088 if (arg3 == NULL) SWIG_fail;
13089 temp3 = true;
13090 }
13091 }
13092 if (obj3) {
13093 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13094 if (!SWIG_IsOK(ecode4)) {
13095 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13096 }
13097 arg4 = static_cast< bool >(val4);
13098 }
13099 {
13100 PyThreadState* __tstate = wxPyBeginAllowThreads();
13101 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13102 wxPyEndAllowThreads(__tstate);
13103 if (PyErr_Occurred()) SWIG_fail;
13104 }
13105 resultobj = result;
13106 {
13107 if (temp3)
13108 delete arg3;
13109 }
13110 return resultobj;
13111 fail:
13112 {
13113 if (temp3)
13114 delete arg3;
13115 }
13116 return NULL;
13117 }
13118
13119
13120 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13121 PyObject *resultobj = 0;
13122 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13123 wxFontEncoding arg2 ;
13124 wxString const &arg3_defvalue = wxPyEmptyString ;
13125 wxString *arg3 = (wxString *) &arg3_defvalue ;
13126 bool result;
13127 void *argp1 = 0 ;
13128 int res1 = 0 ;
13129 int val2 ;
13130 int ecode2 = 0 ;
13131 bool temp3 = false ;
13132 PyObject * obj0 = 0 ;
13133 PyObject * obj1 = 0 ;
13134 PyObject * obj2 = 0 ;
13135 char * kwnames[] = {
13136 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13137 };
13138
13139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13141 if (!SWIG_IsOK(res1)) {
13142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13143 }
13144 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13145 ecode2 = SWIG_AsVal_int(obj1, &val2);
13146 if (!SWIG_IsOK(ecode2)) {
13147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13148 }
13149 arg2 = static_cast< wxFontEncoding >(val2);
13150 if (obj2) {
13151 {
13152 arg3 = wxString_in_helper(obj2);
13153 if (arg3 == NULL) SWIG_fail;
13154 temp3 = true;
13155 }
13156 }
13157 {
13158 PyThreadState* __tstate = wxPyBeginAllowThreads();
13159 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
13163 {
13164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13165 }
13166 {
13167 if (temp3)
13168 delete arg3;
13169 }
13170 return resultobj;
13171 fail:
13172 {
13173 if (temp3)
13174 delete arg3;
13175 }
13176 return NULL;
13177 }
13178
13179
13180 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13181 PyObject *resultobj = 0;
13182 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13183 wxWindow *arg2 = (wxWindow *) 0 ;
13184 void *argp1 = 0 ;
13185 int res1 = 0 ;
13186 void *argp2 = 0 ;
13187 int res2 = 0 ;
13188 PyObject * obj0 = 0 ;
13189 PyObject * obj1 = 0 ;
13190 char * kwnames[] = {
13191 (char *) "self",(char *) "parent", NULL
13192 };
13193
13194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13196 if (!SWIG_IsOK(res1)) {
13197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13198 }
13199 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13200 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13201 if (!SWIG_IsOK(res2)) {
13202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13203 }
13204 arg2 = reinterpret_cast< wxWindow * >(argp2);
13205 {
13206 PyThreadState* __tstate = wxPyBeginAllowThreads();
13207 (arg1)->SetDialogParent(arg2);
13208 wxPyEndAllowThreads(__tstate);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 }
13211 resultobj = SWIG_Py_Void();
13212 return resultobj;
13213 fail:
13214 return NULL;
13215 }
13216
13217
13218 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13219 PyObject *resultobj = 0;
13220 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13221 wxString *arg2 = 0 ;
13222 void *argp1 = 0 ;
13223 int res1 = 0 ;
13224 bool temp2 = false ;
13225 PyObject * obj0 = 0 ;
13226 PyObject * obj1 = 0 ;
13227 char * kwnames[] = {
13228 (char *) "self",(char *) "title", NULL
13229 };
13230
13231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13233 if (!SWIG_IsOK(res1)) {
13234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13235 }
13236 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13237 {
13238 arg2 = wxString_in_helper(obj1);
13239 if (arg2 == NULL) SWIG_fail;
13240 temp2 = true;
13241 }
13242 {
13243 PyThreadState* __tstate = wxPyBeginAllowThreads();
13244 (arg1)->SetDialogTitle((wxString const &)*arg2);
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = SWIG_Py_Void();
13249 {
13250 if (temp2)
13251 delete arg2;
13252 }
13253 return resultobj;
13254 fail:
13255 {
13256 if (temp2)
13257 delete arg2;
13258 }
13259 return NULL;
13260 }
13261
13262
13263 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13264 PyObject *obj;
13265 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13266 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13267 return SWIG_Py_Void();
13268 }
13269
13270 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13271 return SWIG_Python_InitShadowInstance(args);
13272 }
13273
13274 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13275 PyObject *resultobj = 0;
13276 int arg1 ;
13277 int arg2 ;
13278 int arg3 ;
13279 int arg4 ;
13280 bool arg5 = (bool) false ;
13281 wxString const &arg6_defvalue = wxPyEmptyString ;
13282 wxString *arg6 = (wxString *) &arg6_defvalue ;
13283 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13284 wxFont *result = 0 ;
13285 int val1 ;
13286 int ecode1 = 0 ;
13287 int val2 ;
13288 int ecode2 = 0 ;
13289 int val3 ;
13290 int ecode3 = 0 ;
13291 int val4 ;
13292 int ecode4 = 0 ;
13293 bool val5 ;
13294 int ecode5 = 0 ;
13295 bool temp6 = false ;
13296 int val7 ;
13297 int ecode7 = 0 ;
13298 PyObject * obj0 = 0 ;
13299 PyObject * obj1 = 0 ;
13300 PyObject * obj2 = 0 ;
13301 PyObject * obj3 = 0 ;
13302 PyObject * obj4 = 0 ;
13303 PyObject * obj5 = 0 ;
13304 PyObject * obj6 = 0 ;
13305 char * kwnames[] = {
13306 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13307 };
13308
13309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13310 ecode1 = SWIG_AsVal_int(obj0, &val1);
13311 if (!SWIG_IsOK(ecode1)) {
13312 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13313 }
13314 arg1 = static_cast< int >(val1);
13315 ecode2 = SWIG_AsVal_int(obj1, &val2);
13316 if (!SWIG_IsOK(ecode2)) {
13317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13318 }
13319 arg2 = static_cast< int >(val2);
13320 ecode3 = SWIG_AsVal_int(obj2, &val3);
13321 if (!SWIG_IsOK(ecode3)) {
13322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13323 }
13324 arg3 = static_cast< int >(val3);
13325 ecode4 = SWIG_AsVal_int(obj3, &val4);
13326 if (!SWIG_IsOK(ecode4)) {
13327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13328 }
13329 arg4 = static_cast< int >(val4);
13330 if (obj4) {
13331 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13332 if (!SWIG_IsOK(ecode5)) {
13333 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13334 }
13335 arg5 = static_cast< bool >(val5);
13336 }
13337 if (obj5) {
13338 {
13339 arg6 = wxString_in_helper(obj5);
13340 if (arg6 == NULL) SWIG_fail;
13341 temp6 = true;
13342 }
13343 }
13344 if (obj6) {
13345 ecode7 = SWIG_AsVal_int(obj6, &val7);
13346 if (!SWIG_IsOK(ecode7)) {
13347 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13348 }
13349 arg7 = static_cast< wxFontEncoding >(val7);
13350 }
13351 {
13352 if (!wxPyCheckForApp()) SWIG_fail;
13353 PyThreadState* __tstate = wxPyBeginAllowThreads();
13354 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13355 wxPyEndAllowThreads(__tstate);
13356 if (PyErr_Occurred()) SWIG_fail;
13357 }
13358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13359 {
13360 if (temp6)
13361 delete arg6;
13362 }
13363 return resultobj;
13364 fail:
13365 {
13366 if (temp6)
13367 delete arg6;
13368 }
13369 return NULL;
13370 }
13371
13372
13373 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13374 PyObject *resultobj = 0;
13375 wxFont *arg1 = (wxFont *) 0 ;
13376 void *argp1 = 0 ;
13377 int res1 = 0 ;
13378 PyObject *swig_obj[1] ;
13379
13380 if (!args) SWIG_fail;
13381 swig_obj[0] = args;
13382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13383 if (!SWIG_IsOK(res1)) {
13384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13385 }
13386 arg1 = reinterpret_cast< wxFont * >(argp1);
13387 {
13388 PyThreadState* __tstate = wxPyBeginAllowThreads();
13389 delete arg1;
13390
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 resultobj = SWIG_Py_Void();
13395 return resultobj;
13396 fail:
13397 return NULL;
13398 }
13399
13400
13401 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13402 PyObject *resultobj = 0;
13403 wxNativeFontInfo *arg1 = 0 ;
13404 wxFont *result = 0 ;
13405 void *argp1 = 0 ;
13406 int res1 = 0 ;
13407 PyObject * obj0 = 0 ;
13408 char * kwnames[] = {
13409 (char *) "info", NULL
13410 };
13411
13412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13413 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13414 if (!SWIG_IsOK(res1)) {
13415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13416 }
13417 if (!argp1) {
13418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13419 }
13420 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13421 {
13422 if (!wxPyCheckForApp()) SWIG_fail;
13423 PyThreadState* __tstate = wxPyBeginAllowThreads();
13424 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13425 wxPyEndAllowThreads(__tstate);
13426 if (PyErr_Occurred()) SWIG_fail;
13427 }
13428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13429 return resultobj;
13430 fail:
13431 return NULL;
13432 }
13433
13434
13435 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13436 PyObject *resultobj = 0;
13437 wxString *arg1 = 0 ;
13438 wxFont *result = 0 ;
13439 bool temp1 = false ;
13440 PyObject * obj0 = 0 ;
13441 char * kwnames[] = {
13442 (char *) "info", NULL
13443 };
13444
13445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13446 {
13447 arg1 = wxString_in_helper(obj0);
13448 if (arg1 == NULL) SWIG_fail;
13449 temp1 = true;
13450 }
13451 {
13452 if (!wxPyCheckForApp()) SWIG_fail;
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
13454 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13455 wxPyEndAllowThreads(__tstate);
13456 if (PyErr_Occurred()) SWIG_fail;
13457 }
13458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13459 {
13460 if (temp1)
13461 delete arg1;
13462 }
13463 return resultobj;
13464 fail:
13465 {
13466 if (temp1)
13467 delete arg1;
13468 }
13469 return NULL;
13470 }
13471
13472
13473 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13474 PyObject *resultobj = 0;
13475 int arg1 ;
13476 wxFontFamily arg2 ;
13477 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13478 wxString const &arg4_defvalue = wxPyEmptyString ;
13479 wxString *arg4 = (wxString *) &arg4_defvalue ;
13480 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13481 wxFont *result = 0 ;
13482 int val1 ;
13483 int ecode1 = 0 ;
13484 int val2 ;
13485 int ecode2 = 0 ;
13486 int val3 ;
13487 int ecode3 = 0 ;
13488 bool temp4 = false ;
13489 int val5 ;
13490 int ecode5 = 0 ;
13491 PyObject * obj0 = 0 ;
13492 PyObject * obj1 = 0 ;
13493 PyObject * obj2 = 0 ;
13494 PyObject * obj3 = 0 ;
13495 PyObject * obj4 = 0 ;
13496 char * kwnames[] = {
13497 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13498 };
13499
13500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13501 ecode1 = SWIG_AsVal_int(obj0, &val1);
13502 if (!SWIG_IsOK(ecode1)) {
13503 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13504 }
13505 arg1 = static_cast< int >(val1);
13506 ecode2 = SWIG_AsVal_int(obj1, &val2);
13507 if (!SWIG_IsOK(ecode2)) {
13508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13509 }
13510 arg2 = static_cast< wxFontFamily >(val2);
13511 if (obj2) {
13512 ecode3 = SWIG_AsVal_int(obj2, &val3);
13513 if (!SWIG_IsOK(ecode3)) {
13514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13515 }
13516 arg3 = static_cast< int >(val3);
13517 }
13518 if (obj3) {
13519 {
13520 arg4 = wxString_in_helper(obj3);
13521 if (arg4 == NULL) SWIG_fail;
13522 temp4 = true;
13523 }
13524 }
13525 if (obj4) {
13526 ecode5 = SWIG_AsVal_int(obj4, &val5);
13527 if (!SWIG_IsOK(ecode5)) {
13528 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13529 }
13530 arg5 = static_cast< wxFontEncoding >(val5);
13531 }
13532 {
13533 if (!wxPyCheckForApp()) SWIG_fail;
13534 PyThreadState* __tstate = wxPyBeginAllowThreads();
13535 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13536 wxPyEndAllowThreads(__tstate);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13540 {
13541 if (temp4)
13542 delete arg4;
13543 }
13544 return resultobj;
13545 fail:
13546 {
13547 if (temp4)
13548 delete arg4;
13549 }
13550 return NULL;
13551 }
13552
13553
13554 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13555 PyObject *resultobj = 0;
13556 wxSize *arg1 = 0 ;
13557 int arg2 ;
13558 int arg3 ;
13559 int arg4 ;
13560 bool arg5 = (bool) false ;
13561 wxString const &arg6_defvalue = wxEmptyString ;
13562 wxString *arg6 = (wxString *) &arg6_defvalue ;
13563 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13564 wxFont *result = 0 ;
13565 wxSize temp1 ;
13566 int val2 ;
13567 int ecode2 = 0 ;
13568 int val3 ;
13569 int ecode3 = 0 ;
13570 int val4 ;
13571 int ecode4 = 0 ;
13572 bool val5 ;
13573 int ecode5 = 0 ;
13574 bool temp6 = false ;
13575 int val7 ;
13576 int ecode7 = 0 ;
13577 PyObject * obj0 = 0 ;
13578 PyObject * obj1 = 0 ;
13579 PyObject * obj2 = 0 ;
13580 PyObject * obj3 = 0 ;
13581 PyObject * obj4 = 0 ;
13582 PyObject * obj5 = 0 ;
13583 PyObject * obj6 = 0 ;
13584 char * kwnames[] = {
13585 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13586 };
13587
13588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13589 {
13590 arg1 = &temp1;
13591 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13592 }
13593 ecode2 = SWIG_AsVal_int(obj1, &val2);
13594 if (!SWIG_IsOK(ecode2)) {
13595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13596 }
13597 arg2 = static_cast< int >(val2);
13598 ecode3 = SWIG_AsVal_int(obj2, &val3);
13599 if (!SWIG_IsOK(ecode3)) {
13600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13601 }
13602 arg3 = static_cast< int >(val3);
13603 ecode4 = SWIG_AsVal_int(obj3, &val4);
13604 if (!SWIG_IsOK(ecode4)) {
13605 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13606 }
13607 arg4 = static_cast< int >(val4);
13608 if (obj4) {
13609 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13610 if (!SWIG_IsOK(ecode5)) {
13611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13612 }
13613 arg5 = static_cast< bool >(val5);
13614 }
13615 if (obj5) {
13616 {
13617 arg6 = wxString_in_helper(obj5);
13618 if (arg6 == NULL) SWIG_fail;
13619 temp6 = true;
13620 }
13621 }
13622 if (obj6) {
13623 ecode7 = SWIG_AsVal_int(obj6, &val7);
13624 if (!SWIG_IsOK(ecode7)) {
13625 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13626 }
13627 arg7 = static_cast< wxFontEncoding >(val7);
13628 }
13629 {
13630 if (!wxPyCheckForApp()) SWIG_fail;
13631 PyThreadState* __tstate = wxPyBeginAllowThreads();
13632 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13633 wxPyEndAllowThreads(__tstate);
13634 if (PyErr_Occurred()) SWIG_fail;
13635 }
13636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13637 {
13638 if (temp6)
13639 delete arg6;
13640 }
13641 return resultobj;
13642 fail:
13643 {
13644 if (temp6)
13645 delete arg6;
13646 }
13647 return NULL;
13648 }
13649
13650
13651 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13652 PyObject *resultobj = 0;
13653 wxSize *arg1 = 0 ;
13654 wxFontFamily arg2 ;
13655 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13656 wxString const &arg4_defvalue = wxEmptyString ;
13657 wxString *arg4 = (wxString *) &arg4_defvalue ;
13658 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13659 wxFont *result = 0 ;
13660 wxSize temp1 ;
13661 int val2 ;
13662 int ecode2 = 0 ;
13663 int val3 ;
13664 int ecode3 = 0 ;
13665 bool temp4 = false ;
13666 int val5 ;
13667 int ecode5 = 0 ;
13668 PyObject * obj0 = 0 ;
13669 PyObject * obj1 = 0 ;
13670 PyObject * obj2 = 0 ;
13671 PyObject * obj3 = 0 ;
13672 PyObject * obj4 = 0 ;
13673 char * kwnames[] = {
13674 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13675 };
13676
13677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13678 {
13679 arg1 = &temp1;
13680 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13681 }
13682 ecode2 = SWIG_AsVal_int(obj1, &val2);
13683 if (!SWIG_IsOK(ecode2)) {
13684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13685 }
13686 arg2 = static_cast< wxFontFamily >(val2);
13687 if (obj2) {
13688 ecode3 = SWIG_AsVal_int(obj2, &val3);
13689 if (!SWIG_IsOK(ecode3)) {
13690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13691 }
13692 arg3 = static_cast< int >(val3);
13693 }
13694 if (obj3) {
13695 {
13696 arg4 = wxString_in_helper(obj3);
13697 if (arg4 == NULL) SWIG_fail;
13698 temp4 = true;
13699 }
13700 }
13701 if (obj4) {
13702 ecode5 = SWIG_AsVal_int(obj4, &val5);
13703 if (!SWIG_IsOK(ecode5)) {
13704 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13705 }
13706 arg5 = static_cast< wxFontEncoding >(val5);
13707 }
13708 {
13709 if (!wxPyCheckForApp()) SWIG_fail;
13710 PyThreadState* __tstate = wxPyBeginAllowThreads();
13711 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13712 wxPyEndAllowThreads(__tstate);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 }
13715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13716 {
13717 if (temp4)
13718 delete arg4;
13719 }
13720 return resultobj;
13721 fail:
13722 {
13723 if (temp4)
13724 delete arg4;
13725 }
13726 return NULL;
13727 }
13728
13729
13730 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13731 PyObject *resultobj = 0;
13732 wxFont *arg1 = (wxFont *) 0 ;
13733 bool result;
13734 void *argp1 = 0 ;
13735 int res1 = 0 ;
13736 PyObject *swig_obj[1] ;
13737
13738 if (!args) SWIG_fail;
13739 swig_obj[0] = args;
13740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13741 if (!SWIG_IsOK(res1)) {
13742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13743 }
13744 arg1 = reinterpret_cast< wxFont * >(argp1);
13745 {
13746 PyThreadState* __tstate = wxPyBeginAllowThreads();
13747 result = (bool)((wxFont const *)arg1)->Ok();
13748 wxPyEndAllowThreads(__tstate);
13749 if (PyErr_Occurred()) SWIG_fail;
13750 }
13751 {
13752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13753 }
13754 return resultobj;
13755 fail:
13756 return NULL;
13757 }
13758
13759
13760 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13761 PyObject *resultobj = 0;
13762 wxFont *arg1 = (wxFont *) 0 ;
13763 wxFont *arg2 = (wxFont *) 0 ;
13764 bool result;
13765 void *argp1 = 0 ;
13766 int res1 = 0 ;
13767 void *argp2 = 0 ;
13768 int res2 = 0 ;
13769 PyObject * obj0 = 0 ;
13770 PyObject * obj1 = 0 ;
13771 char * kwnames[] = {
13772 (char *) "self",(char *) "other", NULL
13773 };
13774
13775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13777 if (!SWIG_IsOK(res1)) {
13778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13779 }
13780 arg1 = reinterpret_cast< wxFont * >(argp1);
13781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13782 if (!SWIG_IsOK(res2)) {
13783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13784 }
13785 arg2 = reinterpret_cast< wxFont * >(argp2);
13786 {
13787 PyThreadState* __tstate = wxPyBeginAllowThreads();
13788 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13789 wxPyEndAllowThreads(__tstate);
13790 if (PyErr_Occurred()) SWIG_fail;
13791 }
13792 {
13793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13794 }
13795 return resultobj;
13796 fail:
13797 return NULL;
13798 }
13799
13800
13801 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13802 PyObject *resultobj = 0;
13803 wxFont *arg1 = (wxFont *) 0 ;
13804 wxFont *arg2 = (wxFont *) 0 ;
13805 bool result;
13806 void *argp1 = 0 ;
13807 int res1 = 0 ;
13808 void *argp2 = 0 ;
13809 int res2 = 0 ;
13810 PyObject * obj0 = 0 ;
13811 PyObject * obj1 = 0 ;
13812 char * kwnames[] = {
13813 (char *) "self",(char *) "other", NULL
13814 };
13815
13816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13818 if (!SWIG_IsOK(res1)) {
13819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13820 }
13821 arg1 = reinterpret_cast< wxFont * >(argp1);
13822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13823 if (!SWIG_IsOK(res2)) {
13824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13825 }
13826 arg2 = reinterpret_cast< wxFont * >(argp2);
13827 {
13828 PyThreadState* __tstate = wxPyBeginAllowThreads();
13829 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13830 wxPyEndAllowThreads(__tstate);
13831 if (PyErr_Occurred()) SWIG_fail;
13832 }
13833 {
13834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13835 }
13836 return resultobj;
13837 fail:
13838 return NULL;
13839 }
13840
13841
13842 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13843 PyObject *resultobj = 0;
13844 wxFont *arg1 = (wxFont *) 0 ;
13845 int result;
13846 void *argp1 = 0 ;
13847 int res1 = 0 ;
13848 PyObject *swig_obj[1] ;
13849
13850 if (!args) SWIG_fail;
13851 swig_obj[0] = args;
13852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13853 if (!SWIG_IsOK(res1)) {
13854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13855 }
13856 arg1 = reinterpret_cast< wxFont * >(argp1);
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 result = (int)((wxFont const *)arg1)->GetPointSize();
13860 wxPyEndAllowThreads(__tstate);
13861 if (PyErr_Occurred()) SWIG_fail;
13862 }
13863 resultobj = SWIG_From_int(static_cast< int >(result));
13864 return resultobj;
13865 fail:
13866 return NULL;
13867 }
13868
13869
13870 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13871 PyObject *resultobj = 0;
13872 wxFont *arg1 = (wxFont *) 0 ;
13873 wxSize result;
13874 void *argp1 = 0 ;
13875 int res1 = 0 ;
13876 PyObject *swig_obj[1] ;
13877
13878 if (!args) SWIG_fail;
13879 swig_obj[0] = args;
13880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13881 if (!SWIG_IsOK(res1)) {
13882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13883 }
13884 arg1 = reinterpret_cast< wxFont * >(argp1);
13885 {
13886 PyThreadState* __tstate = wxPyBeginAllowThreads();
13887 result = ((wxFont const *)arg1)->GetPixelSize();
13888 wxPyEndAllowThreads(__tstate);
13889 if (PyErr_Occurred()) SWIG_fail;
13890 }
13891 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
13892 return resultobj;
13893 fail:
13894 return NULL;
13895 }
13896
13897
13898 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13899 PyObject *resultobj = 0;
13900 wxFont *arg1 = (wxFont *) 0 ;
13901 bool result;
13902 void *argp1 = 0 ;
13903 int res1 = 0 ;
13904 PyObject *swig_obj[1] ;
13905
13906 if (!args) SWIG_fail;
13907 swig_obj[0] = args;
13908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13909 if (!SWIG_IsOK(res1)) {
13910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
13911 }
13912 arg1 = reinterpret_cast< wxFont * >(argp1);
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
13915 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
13916 wxPyEndAllowThreads(__tstate);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 }
13919 {
13920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13921 }
13922 return resultobj;
13923 fail:
13924 return NULL;
13925 }
13926
13927
13928 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13929 PyObject *resultobj = 0;
13930 wxFont *arg1 = (wxFont *) 0 ;
13931 int result;
13932 void *argp1 = 0 ;
13933 int res1 = 0 ;
13934 PyObject *swig_obj[1] ;
13935
13936 if (!args) SWIG_fail;
13937 swig_obj[0] = args;
13938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13939 if (!SWIG_IsOK(res1)) {
13940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
13941 }
13942 arg1 = reinterpret_cast< wxFont * >(argp1);
13943 {
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 result = (int)((wxFont const *)arg1)->GetFamily();
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 resultobj = SWIG_From_int(static_cast< int >(result));
13950 return resultobj;
13951 fail:
13952 return NULL;
13953 }
13954
13955
13956 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13957 PyObject *resultobj = 0;
13958 wxFont *arg1 = (wxFont *) 0 ;
13959 int result;
13960 void *argp1 = 0 ;
13961 int res1 = 0 ;
13962 PyObject *swig_obj[1] ;
13963
13964 if (!args) SWIG_fail;
13965 swig_obj[0] = args;
13966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13967 if (!SWIG_IsOK(res1)) {
13968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
13969 }
13970 arg1 = reinterpret_cast< wxFont * >(argp1);
13971 {
13972 PyThreadState* __tstate = wxPyBeginAllowThreads();
13973 result = (int)((wxFont const *)arg1)->GetStyle();
13974 wxPyEndAllowThreads(__tstate);
13975 if (PyErr_Occurred()) SWIG_fail;
13976 }
13977 resultobj = SWIG_From_int(static_cast< int >(result));
13978 return resultobj;
13979 fail:
13980 return NULL;
13981 }
13982
13983
13984 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13985 PyObject *resultobj = 0;
13986 wxFont *arg1 = (wxFont *) 0 ;
13987 int result;
13988 void *argp1 = 0 ;
13989 int res1 = 0 ;
13990 PyObject *swig_obj[1] ;
13991
13992 if (!args) SWIG_fail;
13993 swig_obj[0] = args;
13994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13995 if (!SWIG_IsOK(res1)) {
13996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
13997 }
13998 arg1 = reinterpret_cast< wxFont * >(argp1);
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
14001 result = (int)((wxFont const *)arg1)->GetWeight();
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 resultobj = SWIG_From_int(static_cast< int >(result));
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14013 PyObject *resultobj = 0;
14014 wxFont *arg1 = (wxFont *) 0 ;
14015 bool result;
14016 void *argp1 = 0 ;
14017 int res1 = 0 ;
14018 PyObject *swig_obj[1] ;
14019
14020 if (!args) SWIG_fail;
14021 swig_obj[0] = args;
14022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14023 if (!SWIG_IsOK(res1)) {
14024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14025 }
14026 arg1 = reinterpret_cast< wxFont * >(argp1);
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14030 wxPyEndAllowThreads(__tstate);
14031 if (PyErr_Occurred()) SWIG_fail;
14032 }
14033 {
14034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14035 }
14036 return resultobj;
14037 fail:
14038 return NULL;
14039 }
14040
14041
14042 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14043 PyObject *resultobj = 0;
14044 wxFont *arg1 = (wxFont *) 0 ;
14045 wxString result;
14046 void *argp1 = 0 ;
14047 int res1 = 0 ;
14048 PyObject *swig_obj[1] ;
14049
14050 if (!args) SWIG_fail;
14051 swig_obj[0] = args;
14052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14053 if (!SWIG_IsOK(res1)) {
14054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14055 }
14056 arg1 = reinterpret_cast< wxFont * >(argp1);
14057 {
14058 PyThreadState* __tstate = wxPyBeginAllowThreads();
14059 result = ((wxFont const *)arg1)->GetFaceName();
14060 wxPyEndAllowThreads(__tstate);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 }
14063 {
14064 #if wxUSE_UNICODE
14065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14066 #else
14067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14068 #endif
14069 }
14070 return resultobj;
14071 fail:
14072 return NULL;
14073 }
14074
14075
14076 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14077 PyObject *resultobj = 0;
14078 wxFont *arg1 = (wxFont *) 0 ;
14079 wxFontEncoding result;
14080 void *argp1 = 0 ;
14081 int res1 = 0 ;
14082 PyObject *swig_obj[1] ;
14083
14084 if (!args) SWIG_fail;
14085 swig_obj[0] = args;
14086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14087 if (!SWIG_IsOK(res1)) {
14088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14089 }
14090 arg1 = reinterpret_cast< wxFont * >(argp1);
14091 {
14092 PyThreadState* __tstate = wxPyBeginAllowThreads();
14093 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14094 wxPyEndAllowThreads(__tstate);
14095 if (PyErr_Occurred()) SWIG_fail;
14096 }
14097 resultobj = SWIG_From_int(static_cast< int >(result));
14098 return resultobj;
14099 fail:
14100 return NULL;
14101 }
14102
14103
14104 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14105 PyObject *resultobj = 0;
14106 wxFont *arg1 = (wxFont *) 0 ;
14107 wxNativeFontInfo *result = 0 ;
14108 void *argp1 = 0 ;
14109 int res1 = 0 ;
14110 PyObject *swig_obj[1] ;
14111
14112 if (!args) SWIG_fail;
14113 swig_obj[0] = args;
14114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14115 if (!SWIG_IsOK(res1)) {
14116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14117 }
14118 arg1 = reinterpret_cast< wxFont * >(argp1);
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14122 wxPyEndAllowThreads(__tstate);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14126 return resultobj;
14127 fail:
14128 return NULL;
14129 }
14130
14131
14132 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14133 PyObject *resultobj = 0;
14134 wxFont *arg1 = (wxFont *) 0 ;
14135 bool result;
14136 void *argp1 = 0 ;
14137 int res1 = 0 ;
14138 PyObject *swig_obj[1] ;
14139
14140 if (!args) SWIG_fail;
14141 swig_obj[0] = args;
14142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14143 if (!SWIG_IsOK(res1)) {
14144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14145 }
14146 arg1 = reinterpret_cast< wxFont * >(argp1);
14147 {
14148 PyThreadState* __tstate = wxPyBeginAllowThreads();
14149 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14150 wxPyEndAllowThreads(__tstate);
14151 if (PyErr_Occurred()) SWIG_fail;
14152 }
14153 {
14154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14155 }
14156 return resultobj;
14157 fail:
14158 return NULL;
14159 }
14160
14161
14162 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14163 PyObject *resultobj = 0;
14164 wxFont *arg1 = (wxFont *) 0 ;
14165 wxString result;
14166 void *argp1 = 0 ;
14167 int res1 = 0 ;
14168 PyObject *swig_obj[1] ;
14169
14170 if (!args) SWIG_fail;
14171 swig_obj[0] = args;
14172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14173 if (!SWIG_IsOK(res1)) {
14174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14175 }
14176 arg1 = reinterpret_cast< wxFont * >(argp1);
14177 {
14178 PyThreadState* __tstate = wxPyBeginAllowThreads();
14179 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14180 wxPyEndAllowThreads(__tstate);
14181 if (PyErr_Occurred()) SWIG_fail;
14182 }
14183 {
14184 #if wxUSE_UNICODE
14185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14186 #else
14187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14188 #endif
14189 }
14190 return resultobj;
14191 fail:
14192 return NULL;
14193 }
14194
14195
14196 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14197 PyObject *resultobj = 0;
14198 wxFont *arg1 = (wxFont *) 0 ;
14199 wxString result;
14200 void *argp1 = 0 ;
14201 int res1 = 0 ;
14202 PyObject *swig_obj[1] ;
14203
14204 if (!args) SWIG_fail;
14205 swig_obj[0] = args;
14206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14207 if (!SWIG_IsOK(res1)) {
14208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14209 }
14210 arg1 = reinterpret_cast< wxFont * >(argp1);
14211 {
14212 PyThreadState* __tstate = wxPyBeginAllowThreads();
14213 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14214 wxPyEndAllowThreads(__tstate);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 }
14217 {
14218 #if wxUSE_UNICODE
14219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14220 #else
14221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14222 #endif
14223 }
14224 return resultobj;
14225 fail:
14226 return NULL;
14227 }
14228
14229
14230 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14231 PyObject *resultobj = 0;
14232 wxFont *arg1 = (wxFont *) 0 ;
14233 int arg2 ;
14234 void *argp1 = 0 ;
14235 int res1 = 0 ;
14236 int val2 ;
14237 int ecode2 = 0 ;
14238 PyObject * obj0 = 0 ;
14239 PyObject * obj1 = 0 ;
14240 char * kwnames[] = {
14241 (char *) "self",(char *) "pointSize", NULL
14242 };
14243
14244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14246 if (!SWIG_IsOK(res1)) {
14247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14248 }
14249 arg1 = reinterpret_cast< wxFont * >(argp1);
14250 ecode2 = SWIG_AsVal_int(obj1, &val2);
14251 if (!SWIG_IsOK(ecode2)) {
14252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14253 }
14254 arg2 = static_cast< int >(val2);
14255 {
14256 PyThreadState* __tstate = wxPyBeginAllowThreads();
14257 (arg1)->SetPointSize(arg2);
14258 wxPyEndAllowThreads(__tstate);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 }
14261 resultobj = SWIG_Py_Void();
14262 return resultobj;
14263 fail:
14264 return NULL;
14265 }
14266
14267
14268 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14269 PyObject *resultobj = 0;
14270 wxFont *arg1 = (wxFont *) 0 ;
14271 wxSize *arg2 = 0 ;
14272 void *argp1 = 0 ;
14273 int res1 = 0 ;
14274 wxSize temp2 ;
14275 PyObject * obj0 = 0 ;
14276 PyObject * obj1 = 0 ;
14277 char * kwnames[] = {
14278 (char *) "self",(char *) "pixelSize", NULL
14279 };
14280
14281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14283 if (!SWIG_IsOK(res1)) {
14284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14285 }
14286 arg1 = reinterpret_cast< wxFont * >(argp1);
14287 {
14288 arg2 = &temp2;
14289 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14290 }
14291 {
14292 PyThreadState* __tstate = wxPyBeginAllowThreads();
14293 (arg1)->SetPixelSize((wxSize const &)*arg2);
14294 wxPyEndAllowThreads(__tstate);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 resultobj = SWIG_Py_Void();
14298 return resultobj;
14299 fail:
14300 return NULL;
14301 }
14302
14303
14304 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14305 PyObject *resultobj = 0;
14306 wxFont *arg1 = (wxFont *) 0 ;
14307 int arg2 ;
14308 void *argp1 = 0 ;
14309 int res1 = 0 ;
14310 int val2 ;
14311 int ecode2 = 0 ;
14312 PyObject * obj0 = 0 ;
14313 PyObject * obj1 = 0 ;
14314 char * kwnames[] = {
14315 (char *) "self",(char *) "family", NULL
14316 };
14317
14318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14320 if (!SWIG_IsOK(res1)) {
14321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14322 }
14323 arg1 = reinterpret_cast< wxFont * >(argp1);
14324 ecode2 = SWIG_AsVal_int(obj1, &val2);
14325 if (!SWIG_IsOK(ecode2)) {
14326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14327 }
14328 arg2 = static_cast< int >(val2);
14329 {
14330 PyThreadState* __tstate = wxPyBeginAllowThreads();
14331 (arg1)->SetFamily(arg2);
14332 wxPyEndAllowThreads(__tstate);
14333 if (PyErr_Occurred()) SWIG_fail;
14334 }
14335 resultobj = SWIG_Py_Void();
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14343 PyObject *resultobj = 0;
14344 wxFont *arg1 = (wxFont *) 0 ;
14345 int arg2 ;
14346 void *argp1 = 0 ;
14347 int res1 = 0 ;
14348 int val2 ;
14349 int ecode2 = 0 ;
14350 PyObject * obj0 = 0 ;
14351 PyObject * obj1 = 0 ;
14352 char * kwnames[] = {
14353 (char *) "self",(char *) "style", NULL
14354 };
14355
14356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14358 if (!SWIG_IsOK(res1)) {
14359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14360 }
14361 arg1 = reinterpret_cast< wxFont * >(argp1);
14362 ecode2 = SWIG_AsVal_int(obj1, &val2);
14363 if (!SWIG_IsOK(ecode2)) {
14364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14365 }
14366 arg2 = static_cast< int >(val2);
14367 {
14368 PyThreadState* __tstate = wxPyBeginAllowThreads();
14369 (arg1)->SetStyle(arg2);
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
14373 resultobj = SWIG_Py_Void();
14374 return resultobj;
14375 fail:
14376 return NULL;
14377 }
14378
14379
14380 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14381 PyObject *resultobj = 0;
14382 wxFont *arg1 = (wxFont *) 0 ;
14383 int arg2 ;
14384 void *argp1 = 0 ;
14385 int res1 = 0 ;
14386 int val2 ;
14387 int ecode2 = 0 ;
14388 PyObject * obj0 = 0 ;
14389 PyObject * obj1 = 0 ;
14390 char * kwnames[] = {
14391 (char *) "self",(char *) "weight", NULL
14392 };
14393
14394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14396 if (!SWIG_IsOK(res1)) {
14397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14398 }
14399 arg1 = reinterpret_cast< wxFont * >(argp1);
14400 ecode2 = SWIG_AsVal_int(obj1, &val2);
14401 if (!SWIG_IsOK(ecode2)) {
14402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14403 }
14404 arg2 = static_cast< int >(val2);
14405 {
14406 PyThreadState* __tstate = wxPyBeginAllowThreads();
14407 (arg1)->SetWeight(arg2);
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 resultobj = SWIG_Py_Void();
14412 return resultobj;
14413 fail:
14414 return NULL;
14415 }
14416
14417
14418 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14419 PyObject *resultobj = 0;
14420 wxFont *arg1 = (wxFont *) 0 ;
14421 wxString *arg2 = 0 ;
14422 bool result;
14423 void *argp1 = 0 ;
14424 int res1 = 0 ;
14425 bool temp2 = false ;
14426 PyObject * obj0 = 0 ;
14427 PyObject * obj1 = 0 ;
14428 char * kwnames[] = {
14429 (char *) "self",(char *) "faceName", NULL
14430 };
14431
14432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14434 if (!SWIG_IsOK(res1)) {
14435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14436 }
14437 arg1 = reinterpret_cast< wxFont * >(argp1);
14438 {
14439 arg2 = wxString_in_helper(obj1);
14440 if (arg2 == NULL) SWIG_fail;
14441 temp2 = true;
14442 }
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 {
14450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14451 }
14452 {
14453 if (temp2)
14454 delete arg2;
14455 }
14456 return resultobj;
14457 fail:
14458 {
14459 if (temp2)
14460 delete arg2;
14461 }
14462 return NULL;
14463 }
14464
14465
14466 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14467 PyObject *resultobj = 0;
14468 wxFont *arg1 = (wxFont *) 0 ;
14469 bool arg2 ;
14470 void *argp1 = 0 ;
14471 int res1 = 0 ;
14472 bool val2 ;
14473 int ecode2 = 0 ;
14474 PyObject * obj0 = 0 ;
14475 PyObject * obj1 = 0 ;
14476 char * kwnames[] = {
14477 (char *) "self",(char *) "underlined", NULL
14478 };
14479
14480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14482 if (!SWIG_IsOK(res1)) {
14483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14484 }
14485 arg1 = reinterpret_cast< wxFont * >(argp1);
14486 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14487 if (!SWIG_IsOK(ecode2)) {
14488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14489 }
14490 arg2 = static_cast< bool >(val2);
14491 {
14492 PyThreadState* __tstate = wxPyBeginAllowThreads();
14493 (arg1)->SetUnderlined(arg2);
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 resultobj = SWIG_Py_Void();
14498 return resultobj;
14499 fail:
14500 return NULL;
14501 }
14502
14503
14504 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14505 PyObject *resultobj = 0;
14506 wxFont *arg1 = (wxFont *) 0 ;
14507 wxFontEncoding arg2 ;
14508 void *argp1 = 0 ;
14509 int res1 = 0 ;
14510 int val2 ;
14511 int ecode2 = 0 ;
14512 PyObject * obj0 = 0 ;
14513 PyObject * obj1 = 0 ;
14514 char * kwnames[] = {
14515 (char *) "self",(char *) "encoding", NULL
14516 };
14517
14518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14520 if (!SWIG_IsOK(res1)) {
14521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14522 }
14523 arg1 = reinterpret_cast< wxFont * >(argp1);
14524 ecode2 = SWIG_AsVal_int(obj1, &val2);
14525 if (!SWIG_IsOK(ecode2)) {
14526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14527 }
14528 arg2 = static_cast< wxFontEncoding >(val2);
14529 {
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 (arg1)->SetEncoding(arg2);
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 resultobj = SWIG_Py_Void();
14536 return resultobj;
14537 fail:
14538 return NULL;
14539 }
14540
14541
14542 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14543 PyObject *resultobj = 0;
14544 wxFont *arg1 = (wxFont *) 0 ;
14545 wxNativeFontInfo *arg2 = 0 ;
14546 void *argp1 = 0 ;
14547 int res1 = 0 ;
14548 void *argp2 = 0 ;
14549 int res2 = 0 ;
14550 PyObject * obj0 = 0 ;
14551 PyObject * obj1 = 0 ;
14552 char * kwnames[] = {
14553 (char *) "self",(char *) "info", NULL
14554 };
14555
14556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14558 if (!SWIG_IsOK(res1)) {
14559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14560 }
14561 arg1 = reinterpret_cast< wxFont * >(argp1);
14562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14563 if (!SWIG_IsOK(res2)) {
14564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14565 }
14566 if (!argp2) {
14567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14568 }
14569 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 resultobj = SWIG_Py_Void();
14577 return resultobj;
14578 fail:
14579 return NULL;
14580 }
14581
14582
14583 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14584 PyObject *resultobj = 0;
14585 wxFont *arg1 = (wxFont *) 0 ;
14586 wxString *arg2 = 0 ;
14587 bool result;
14588 void *argp1 = 0 ;
14589 int res1 = 0 ;
14590 bool temp2 = false ;
14591 PyObject * obj0 = 0 ;
14592 PyObject * obj1 = 0 ;
14593 char * kwnames[] = {
14594 (char *) "self",(char *) "info", NULL
14595 };
14596
14597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14599 if (!SWIG_IsOK(res1)) {
14600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14601 }
14602 arg1 = reinterpret_cast< wxFont * >(argp1);
14603 {
14604 arg2 = wxString_in_helper(obj1);
14605 if (arg2 == NULL) SWIG_fail;
14606 temp2 = true;
14607 }
14608 {
14609 PyThreadState* __tstate = wxPyBeginAllowThreads();
14610 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14611 wxPyEndAllowThreads(__tstate);
14612 if (PyErr_Occurred()) SWIG_fail;
14613 }
14614 {
14615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14616 }
14617 {
14618 if (temp2)
14619 delete arg2;
14620 }
14621 return resultobj;
14622 fail:
14623 {
14624 if (temp2)
14625 delete arg2;
14626 }
14627 return NULL;
14628 }
14629
14630
14631 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj = 0;
14633 wxFont *arg1 = (wxFont *) 0 ;
14634 wxString *arg2 = 0 ;
14635 bool result;
14636 void *argp1 = 0 ;
14637 int res1 = 0 ;
14638 bool temp2 = false ;
14639 PyObject * obj0 = 0 ;
14640 PyObject * obj1 = 0 ;
14641 char * kwnames[] = {
14642 (char *) "self",(char *) "info", NULL
14643 };
14644
14645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14647 if (!SWIG_IsOK(res1)) {
14648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14649 }
14650 arg1 = reinterpret_cast< wxFont * >(argp1);
14651 {
14652 arg2 = wxString_in_helper(obj1);
14653 if (arg2 == NULL) SWIG_fail;
14654 temp2 = true;
14655 }
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 {
14663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14664 }
14665 {
14666 if (temp2)
14667 delete arg2;
14668 }
14669 return resultobj;
14670 fail:
14671 {
14672 if (temp2)
14673 delete arg2;
14674 }
14675 return NULL;
14676 }
14677
14678
14679 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14680 PyObject *resultobj = 0;
14681 wxFont *arg1 = (wxFont *) 0 ;
14682 wxString result;
14683 void *argp1 = 0 ;
14684 int res1 = 0 ;
14685 PyObject *swig_obj[1] ;
14686
14687 if (!args) SWIG_fail;
14688 swig_obj[0] = args;
14689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14690 if (!SWIG_IsOK(res1)) {
14691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14692 }
14693 arg1 = reinterpret_cast< wxFont * >(argp1);
14694 {
14695 PyThreadState* __tstate = wxPyBeginAllowThreads();
14696 result = ((wxFont const *)arg1)->GetFamilyString();
14697 wxPyEndAllowThreads(__tstate);
14698 if (PyErr_Occurred()) SWIG_fail;
14699 }
14700 {
14701 #if wxUSE_UNICODE
14702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14703 #else
14704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14705 #endif
14706 }
14707 return resultobj;
14708 fail:
14709 return NULL;
14710 }
14711
14712
14713 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14714 PyObject *resultobj = 0;
14715 wxFont *arg1 = (wxFont *) 0 ;
14716 wxString result;
14717 void *argp1 = 0 ;
14718 int res1 = 0 ;
14719 PyObject *swig_obj[1] ;
14720
14721 if (!args) SWIG_fail;
14722 swig_obj[0] = args;
14723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14724 if (!SWIG_IsOK(res1)) {
14725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14726 }
14727 arg1 = reinterpret_cast< wxFont * >(argp1);
14728 {
14729 PyThreadState* __tstate = wxPyBeginAllowThreads();
14730 result = ((wxFont const *)arg1)->GetStyleString();
14731 wxPyEndAllowThreads(__tstate);
14732 if (PyErr_Occurred()) SWIG_fail;
14733 }
14734 {
14735 #if wxUSE_UNICODE
14736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14737 #else
14738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14739 #endif
14740 }
14741 return resultobj;
14742 fail:
14743 return NULL;
14744 }
14745
14746
14747 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14748 PyObject *resultobj = 0;
14749 wxFont *arg1 = (wxFont *) 0 ;
14750 wxString result;
14751 void *argp1 = 0 ;
14752 int res1 = 0 ;
14753 PyObject *swig_obj[1] ;
14754
14755 if (!args) SWIG_fail;
14756 swig_obj[0] = args;
14757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14758 if (!SWIG_IsOK(res1)) {
14759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14760 }
14761 arg1 = reinterpret_cast< wxFont * >(argp1);
14762 {
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 result = ((wxFont const *)arg1)->GetWeightString();
14765 wxPyEndAllowThreads(__tstate);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 {
14769 #if wxUSE_UNICODE
14770 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14771 #else
14772 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14773 #endif
14774 }
14775 return resultobj;
14776 fail:
14777 return NULL;
14778 }
14779
14780
14781 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14782 PyObject *resultobj = 0;
14783 wxFont *arg1 = (wxFont *) 0 ;
14784 bool arg2 = (bool) true ;
14785 void *argp1 = 0 ;
14786 int res1 = 0 ;
14787 bool val2 ;
14788 int ecode2 = 0 ;
14789 PyObject * obj0 = 0 ;
14790 PyObject * obj1 = 0 ;
14791 char * kwnames[] = {
14792 (char *) "self",(char *) "no", NULL
14793 };
14794
14795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14797 if (!SWIG_IsOK(res1)) {
14798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14799 }
14800 arg1 = reinterpret_cast< wxFont * >(argp1);
14801 if (obj1) {
14802 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14803 if (!SWIG_IsOK(ecode2)) {
14804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14805 }
14806 arg2 = static_cast< bool >(val2);
14807 }
14808 {
14809 PyThreadState* __tstate = wxPyBeginAllowThreads();
14810 (arg1)->SetNoAntiAliasing(arg2);
14811 wxPyEndAllowThreads(__tstate);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 }
14814 resultobj = SWIG_Py_Void();
14815 return resultobj;
14816 fail:
14817 return NULL;
14818 }
14819
14820
14821 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14822 PyObject *resultobj = 0;
14823 wxFont *arg1 = (wxFont *) 0 ;
14824 bool result;
14825 void *argp1 = 0 ;
14826 int res1 = 0 ;
14827 PyObject *swig_obj[1] ;
14828
14829 if (!args) SWIG_fail;
14830 swig_obj[0] = args;
14831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14832 if (!SWIG_IsOK(res1)) {
14833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14834 }
14835 arg1 = reinterpret_cast< wxFont * >(argp1);
14836 {
14837 PyThreadState* __tstate = wxPyBeginAllowThreads();
14838 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14839 wxPyEndAllowThreads(__tstate);
14840 if (PyErr_Occurred()) SWIG_fail;
14841 }
14842 {
14843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14844 }
14845 return resultobj;
14846 fail:
14847 return NULL;
14848 }
14849
14850
14851 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14852 PyObject *resultobj = 0;
14853 wxFontEncoding result;
14854
14855 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14856 {
14857 if (!wxPyCheckForApp()) SWIG_fail;
14858 PyThreadState* __tstate = wxPyBeginAllowThreads();
14859 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14860 wxPyEndAllowThreads(__tstate);
14861 if (PyErr_Occurred()) SWIG_fail;
14862 }
14863 resultobj = SWIG_From_int(static_cast< int >(result));
14864 return resultobj;
14865 fail:
14866 return NULL;
14867 }
14868
14869
14870 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14871 PyObject *resultobj = 0;
14872 wxFontEncoding arg1 ;
14873 int val1 ;
14874 int ecode1 = 0 ;
14875 PyObject * obj0 = 0 ;
14876 char * kwnames[] = {
14877 (char *) "encoding", NULL
14878 };
14879
14880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
14881 ecode1 = SWIG_AsVal_int(obj0, &val1);
14882 if (!SWIG_IsOK(ecode1)) {
14883 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14884 }
14885 arg1 = static_cast< wxFontEncoding >(val1);
14886 {
14887 if (!wxPyCheckForApp()) SWIG_fail;
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 wxFont::SetDefaultEncoding(arg1);
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 resultobj = SWIG_Py_Void();
14894 return resultobj;
14895 fail:
14896 return NULL;
14897 }
14898
14899
14900 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14901 PyObject *obj;
14902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14903 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
14904 return SWIG_Py_Void();
14905 }
14906
14907 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14908 return SWIG_Python_InitShadowInstance(args);
14909 }
14910
14911 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14912 PyObject *resultobj = 0;
14913 wxPyFontEnumerator *result = 0 ;
14914
14915 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
14916 {
14917 if (!wxPyCheckForApp()) SWIG_fail;
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
14920 wxPyEndAllowThreads(__tstate);
14921 if (PyErr_Occurred()) SWIG_fail;
14922 }
14923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
14924 return resultobj;
14925 fail:
14926 return NULL;
14927 }
14928
14929
14930 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14931 PyObject *resultobj = 0;
14932 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14933 void *argp1 = 0 ;
14934 int res1 = 0 ;
14935 PyObject *swig_obj[1] ;
14936
14937 if (!args) SWIG_fail;
14938 swig_obj[0] = args;
14939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
14940 if (!SWIG_IsOK(res1)) {
14941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14942 }
14943 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 delete arg1;
14947
14948 wxPyEndAllowThreads(__tstate);
14949 if (PyErr_Occurred()) SWIG_fail;
14950 }
14951 resultobj = SWIG_Py_Void();
14952 return resultobj;
14953 fail:
14954 return NULL;
14955 }
14956
14957
14958 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14959 PyObject *resultobj = 0;
14960 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14961 PyObject *arg2 = (PyObject *) 0 ;
14962 PyObject *arg3 = (PyObject *) 0 ;
14963 bool arg4 ;
14964 void *argp1 = 0 ;
14965 int res1 = 0 ;
14966 bool val4 ;
14967 int ecode4 = 0 ;
14968 PyObject * obj0 = 0 ;
14969 PyObject * obj1 = 0 ;
14970 PyObject * obj2 = 0 ;
14971 PyObject * obj3 = 0 ;
14972 char * kwnames[] = {
14973 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
14974 };
14975
14976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14978 if (!SWIG_IsOK(res1)) {
14979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14980 }
14981 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14982 arg2 = obj1;
14983 arg3 = obj2;
14984 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14985 if (!SWIG_IsOK(ecode4)) {
14986 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
14987 }
14988 arg4 = static_cast< bool >(val4);
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
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_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj = 0;
15004 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15005 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15006 bool arg3 = (bool) false ;
15007 bool result;
15008 void *argp1 = 0 ;
15009 int res1 = 0 ;
15010 int val2 ;
15011 int ecode2 = 0 ;
15012 bool val3 ;
15013 int ecode3 = 0 ;
15014 PyObject * obj0 = 0 ;
15015 PyObject * obj1 = 0 ;
15016 PyObject * obj2 = 0 ;
15017 char * kwnames[] = {
15018 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15019 };
15020
15021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15023 if (!SWIG_IsOK(res1)) {
15024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15025 }
15026 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15027 if (obj1) {
15028 ecode2 = SWIG_AsVal_int(obj1, &val2);
15029 if (!SWIG_IsOK(ecode2)) {
15030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15031 }
15032 arg2 = static_cast< wxFontEncoding >(val2);
15033 }
15034 if (obj2) {
15035 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15036 if (!SWIG_IsOK(ecode3)) {
15037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15038 }
15039 arg3 = static_cast< bool >(val3);
15040 }
15041 {
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 {
15048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15049 }
15050 return resultobj;
15051 fail:
15052 return NULL;
15053 }
15054
15055
15056 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15057 PyObject *resultobj = 0;
15058 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15059 wxString const &arg2_defvalue = wxPyEmptyString ;
15060 wxString *arg2 = (wxString *) &arg2_defvalue ;
15061 bool result;
15062 void *argp1 = 0 ;
15063 int res1 = 0 ;
15064 bool temp2 = false ;
15065 PyObject * obj0 = 0 ;
15066 PyObject * obj1 = 0 ;
15067 char * kwnames[] = {
15068 (char *) "self",(char *) "facename", NULL
15069 };
15070
15071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15073 if (!SWIG_IsOK(res1)) {
15074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15075 }
15076 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15077 if (obj1) {
15078 {
15079 arg2 = wxString_in_helper(obj1);
15080 if (arg2 == NULL) SWIG_fail;
15081 temp2 = true;
15082 }
15083 }
15084 {
15085 PyThreadState* __tstate = wxPyBeginAllowThreads();
15086 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15087 wxPyEndAllowThreads(__tstate);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 {
15091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15092 }
15093 {
15094 if (temp2)
15095 delete arg2;
15096 }
15097 return resultobj;
15098 fail:
15099 {
15100 if (temp2)
15101 delete arg2;
15102 }
15103 return NULL;
15104 }
15105
15106
15107 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15108 PyObject *resultobj = 0;
15109 PyObject *result = 0 ;
15110
15111 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15112 {
15113 PyThreadState* __tstate = wxPyBeginAllowThreads();
15114 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 resultobj = result;
15119 return resultobj;
15120 fail:
15121 return NULL;
15122 }
15123
15124
15125 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15126 PyObject *resultobj = 0;
15127 PyObject *result = 0 ;
15128
15129 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15130 {
15131 PyThreadState* __tstate = wxPyBeginAllowThreads();
15132 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 resultobj = result;
15137 return resultobj;
15138 fail:
15139 return NULL;
15140 }
15141
15142
15143 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15144 PyObject *resultobj = 0;
15145 wxString *arg1 = 0 ;
15146 bool result;
15147 bool temp1 = false ;
15148 PyObject * obj0 = 0 ;
15149 char * kwnames[] = {
15150 (char *) "str", NULL
15151 };
15152
15153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15154 {
15155 arg1 = wxString_in_helper(obj0);
15156 if (arg1 == NULL) SWIG_fail;
15157 temp1 = true;
15158 }
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15162 wxPyEndAllowThreads(__tstate);
15163 if (PyErr_Occurred()) SWIG_fail;
15164 }
15165 {
15166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15167 }
15168 {
15169 if (temp1)
15170 delete arg1;
15171 }
15172 return resultobj;
15173 fail:
15174 {
15175 if (temp1)
15176 delete arg1;
15177 }
15178 return NULL;
15179 }
15180
15181
15182 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15183 PyObject *obj;
15184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15185 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15186 return SWIG_Py_Void();
15187 }
15188
15189 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15190 return SWIG_Python_InitShadowInstance(args);
15191 }
15192
15193 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15194 PyObject *resultobj = 0;
15195 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15196 int arg2 ;
15197 void *argp1 = 0 ;
15198 int res1 = 0 ;
15199 int val2 ;
15200 int ecode2 = 0 ;
15201 PyObject *swig_obj[2] ;
15202
15203 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15205 if (!SWIG_IsOK(res1)) {
15206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15207 }
15208 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15209 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15210 if (!SWIG_IsOK(ecode2)) {
15211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15212 }
15213 arg2 = static_cast< int >(val2);
15214 if (arg1) (arg1)->Language = arg2;
15215
15216 resultobj = SWIG_Py_Void();
15217 return resultobj;
15218 fail:
15219 return NULL;
15220 }
15221
15222
15223 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15224 PyObject *resultobj = 0;
15225 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15226 int result;
15227 void *argp1 = 0 ;
15228 int res1 = 0 ;
15229 PyObject *swig_obj[1] ;
15230
15231 if (!args) SWIG_fail;
15232 swig_obj[0] = args;
15233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15234 if (!SWIG_IsOK(res1)) {
15235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15236 }
15237 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15238 result = (int) ((arg1)->Language);
15239 resultobj = SWIG_From_int(static_cast< int >(result));
15240 return resultobj;
15241 fail:
15242 return NULL;
15243 }
15244
15245
15246 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15247 PyObject *resultobj = 0;
15248 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15249 wxString *arg2 = (wxString *) 0 ;
15250 void *argp1 = 0 ;
15251 int res1 = 0 ;
15252 bool temp2 = false ;
15253 PyObject *swig_obj[2] ;
15254
15255 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15257 if (!SWIG_IsOK(res1)) {
15258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15259 }
15260 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15261 {
15262 arg2 = wxString_in_helper(swig_obj[1]);
15263 if (arg2 == NULL) SWIG_fail;
15264 temp2 = true;
15265 }
15266 if (arg1) (arg1)->CanonicalName = *arg2;
15267
15268 resultobj = SWIG_Py_Void();
15269 {
15270 if (temp2)
15271 delete arg2;
15272 }
15273 return resultobj;
15274 fail:
15275 {
15276 if (temp2)
15277 delete arg2;
15278 }
15279 return NULL;
15280 }
15281
15282
15283 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15284 PyObject *resultobj = 0;
15285 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15286 wxString *result = 0 ;
15287 void *argp1 = 0 ;
15288 int res1 = 0 ;
15289 PyObject *swig_obj[1] ;
15290
15291 if (!args) SWIG_fail;
15292 swig_obj[0] = args;
15293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15294 if (!SWIG_IsOK(res1)) {
15295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15296 }
15297 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15298 result = (wxString *)& ((arg1)->CanonicalName);
15299 {
15300 #if wxUSE_UNICODE
15301 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15302 #else
15303 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15304 #endif
15305 }
15306 return resultobj;
15307 fail:
15308 return NULL;
15309 }
15310
15311
15312 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15313 PyObject *resultobj = 0;
15314 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15315 wxString *arg2 = (wxString *) 0 ;
15316 void *argp1 = 0 ;
15317 int res1 = 0 ;
15318 bool temp2 = false ;
15319 PyObject *swig_obj[2] ;
15320
15321 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15323 if (!SWIG_IsOK(res1)) {
15324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15325 }
15326 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15327 {
15328 arg2 = wxString_in_helper(swig_obj[1]);
15329 if (arg2 == NULL) SWIG_fail;
15330 temp2 = true;
15331 }
15332 if (arg1) (arg1)->Description = *arg2;
15333
15334 resultobj = SWIG_Py_Void();
15335 {
15336 if (temp2)
15337 delete arg2;
15338 }
15339 return resultobj;
15340 fail:
15341 {
15342 if (temp2)
15343 delete arg2;
15344 }
15345 return NULL;
15346 }
15347
15348
15349 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15350 PyObject *resultobj = 0;
15351 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15352 wxString *result = 0 ;
15353 void *argp1 = 0 ;
15354 int res1 = 0 ;
15355 PyObject *swig_obj[1] ;
15356
15357 if (!args) SWIG_fail;
15358 swig_obj[0] = args;
15359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15360 if (!SWIG_IsOK(res1)) {
15361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15362 }
15363 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15364 result = (wxString *)& ((arg1)->Description);
15365 {
15366 #if wxUSE_UNICODE
15367 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15368 #else
15369 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15370 #endif
15371 }
15372 return resultobj;
15373 fail:
15374 return NULL;
15375 }
15376
15377
15378 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15379 PyObject *obj;
15380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15381 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15382 return SWIG_Py_Void();
15383 }
15384
15385 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15386 PyObject *resultobj = 0;
15387 int arg1 = (int) -1 ;
15388 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15389 wxLocale *result = 0 ;
15390 int val1 ;
15391 int ecode1 = 0 ;
15392 int val2 ;
15393 int ecode2 = 0 ;
15394 PyObject * obj0 = 0 ;
15395 PyObject * obj1 = 0 ;
15396 char * kwnames[] = {
15397 (char *) "language",(char *) "flags", NULL
15398 };
15399
15400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15401 if (obj0) {
15402 ecode1 = SWIG_AsVal_int(obj0, &val1);
15403 if (!SWIG_IsOK(ecode1)) {
15404 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15405 }
15406 arg1 = static_cast< int >(val1);
15407 }
15408 if (obj1) {
15409 ecode2 = SWIG_AsVal_int(obj1, &val2);
15410 if (!SWIG_IsOK(ecode2)) {
15411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15412 }
15413 arg2 = static_cast< int >(val2);
15414 }
15415 {
15416 PyThreadState* __tstate = wxPyBeginAllowThreads();
15417 result = (wxLocale *)new_wxLocale(arg1,arg2);
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15422 return resultobj;
15423 fail:
15424 return NULL;
15425 }
15426
15427
15428 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15429 PyObject *resultobj = 0;
15430 wxLocale *arg1 = (wxLocale *) 0 ;
15431 void *argp1 = 0 ;
15432 int res1 = 0 ;
15433 PyObject *swig_obj[1] ;
15434
15435 if (!args) SWIG_fail;
15436 swig_obj[0] = args;
15437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15438 if (!SWIG_IsOK(res1)) {
15439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15440 }
15441 arg1 = reinterpret_cast< wxLocale * >(argp1);
15442 {
15443 PyThreadState* __tstate = wxPyBeginAllowThreads();
15444 delete arg1;
15445
15446 wxPyEndAllowThreads(__tstate);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 }
15449 resultobj = SWIG_Py_Void();
15450 return resultobj;
15451 fail:
15452 return NULL;
15453 }
15454
15455
15456 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15457 PyObject *resultobj = 0;
15458 wxLocale *arg1 = (wxLocale *) 0 ;
15459 wxString *arg2 = 0 ;
15460 wxString const &arg3_defvalue = wxPyEmptyString ;
15461 wxString *arg3 = (wxString *) &arg3_defvalue ;
15462 wxString const &arg4_defvalue = wxPyEmptyString ;
15463 wxString *arg4 = (wxString *) &arg4_defvalue ;
15464 bool arg5 = (bool) true ;
15465 bool arg6 = (bool) false ;
15466 bool result;
15467 void *argp1 = 0 ;
15468 int res1 = 0 ;
15469 bool temp2 = false ;
15470 bool temp3 = false ;
15471 bool temp4 = false ;
15472 bool val5 ;
15473 int ecode5 = 0 ;
15474 bool val6 ;
15475 int ecode6 = 0 ;
15476 PyObject * obj0 = 0 ;
15477 PyObject * obj1 = 0 ;
15478 PyObject * obj2 = 0 ;
15479 PyObject * obj3 = 0 ;
15480 PyObject * obj4 = 0 ;
15481 PyObject * obj5 = 0 ;
15482 char * kwnames[] = {
15483 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15484 };
15485
15486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15488 if (!SWIG_IsOK(res1)) {
15489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15490 }
15491 arg1 = reinterpret_cast< wxLocale * >(argp1);
15492 {
15493 arg2 = wxString_in_helper(obj1);
15494 if (arg2 == NULL) SWIG_fail;
15495 temp2 = true;
15496 }
15497 if (obj2) {
15498 {
15499 arg3 = wxString_in_helper(obj2);
15500 if (arg3 == NULL) SWIG_fail;
15501 temp3 = true;
15502 }
15503 }
15504 if (obj3) {
15505 {
15506 arg4 = wxString_in_helper(obj3);
15507 if (arg4 == NULL) SWIG_fail;
15508 temp4 = true;
15509 }
15510 }
15511 if (obj4) {
15512 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15513 if (!SWIG_IsOK(ecode5)) {
15514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15515 }
15516 arg5 = static_cast< bool >(val5);
15517 }
15518 if (obj5) {
15519 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15520 if (!SWIG_IsOK(ecode6)) {
15521 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15522 }
15523 arg6 = static_cast< bool >(val6);
15524 }
15525 {
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15528 wxPyEndAllowThreads(__tstate);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 {
15532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15533 }
15534 {
15535 if (temp2)
15536 delete arg2;
15537 }
15538 {
15539 if (temp3)
15540 delete arg3;
15541 }
15542 {
15543 if (temp4)
15544 delete arg4;
15545 }
15546 return resultobj;
15547 fail:
15548 {
15549 if (temp2)
15550 delete arg2;
15551 }
15552 {
15553 if (temp3)
15554 delete arg3;
15555 }
15556 {
15557 if (temp4)
15558 delete arg4;
15559 }
15560 return NULL;
15561 }
15562
15563
15564 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15565 PyObject *resultobj = 0;
15566 wxLocale *arg1 = (wxLocale *) 0 ;
15567 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15568 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15569 bool result;
15570 void *argp1 = 0 ;
15571 int res1 = 0 ;
15572 int val2 ;
15573 int ecode2 = 0 ;
15574 int val3 ;
15575 int ecode3 = 0 ;
15576 PyObject * obj0 = 0 ;
15577 PyObject * obj1 = 0 ;
15578 PyObject * obj2 = 0 ;
15579 char * kwnames[] = {
15580 (char *) "self",(char *) "language",(char *) "flags", NULL
15581 };
15582
15583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15585 if (!SWIG_IsOK(res1)) {
15586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15587 }
15588 arg1 = reinterpret_cast< wxLocale * >(argp1);
15589 if (obj1) {
15590 ecode2 = SWIG_AsVal_int(obj1, &val2);
15591 if (!SWIG_IsOK(ecode2)) {
15592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15593 }
15594 arg2 = static_cast< int >(val2);
15595 }
15596 if (obj2) {
15597 ecode3 = SWIG_AsVal_int(obj2, &val3);
15598 if (!SWIG_IsOK(ecode3)) {
15599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15600 }
15601 arg3 = static_cast< int >(val3);
15602 }
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
15605 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15606 wxPyEndAllowThreads(__tstate);
15607 if (PyErr_Occurred()) SWIG_fail;
15608 }
15609 {
15610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15611 }
15612 return resultobj;
15613 fail:
15614 return NULL;
15615 }
15616
15617
15618 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15619 PyObject *resultobj = 0;
15620 int result;
15621
15622 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 result = (int)wxLocale::GetSystemLanguage();
15626 wxPyEndAllowThreads(__tstate);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 resultobj = SWIG_From_int(static_cast< int >(result));
15630 return resultobj;
15631 fail:
15632 return NULL;
15633 }
15634
15635
15636 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15637 PyObject *resultobj = 0;
15638 wxFontEncoding result;
15639
15640 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15641 {
15642 PyThreadState* __tstate = wxPyBeginAllowThreads();
15643 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15644 wxPyEndAllowThreads(__tstate);
15645 if (PyErr_Occurred()) SWIG_fail;
15646 }
15647 resultobj = SWIG_From_int(static_cast< int >(result));
15648 return resultobj;
15649 fail:
15650 return NULL;
15651 }
15652
15653
15654 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15655 PyObject *resultobj = 0;
15656 wxString result;
15657
15658 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15659 {
15660 PyThreadState* __tstate = wxPyBeginAllowThreads();
15661 result = wxLocale::GetSystemEncodingName();
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 {
15666 #if wxUSE_UNICODE
15667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15668 #else
15669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15670 #endif
15671 }
15672 return resultobj;
15673 fail:
15674 return NULL;
15675 }
15676
15677
15678 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15679 PyObject *resultobj = 0;
15680 wxLocale *arg1 = (wxLocale *) 0 ;
15681 bool result;
15682 void *argp1 = 0 ;
15683 int res1 = 0 ;
15684 PyObject *swig_obj[1] ;
15685
15686 if (!args) SWIG_fail;
15687 swig_obj[0] = args;
15688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15689 if (!SWIG_IsOK(res1)) {
15690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15691 }
15692 arg1 = reinterpret_cast< wxLocale * >(argp1);
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 result = (bool)((wxLocale const *)arg1)->IsOk();
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 {
15700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15701 }
15702 return resultobj;
15703 fail:
15704 return NULL;
15705 }
15706
15707
15708 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15709 PyObject *resultobj = 0;
15710 wxLocale *arg1 = (wxLocale *) 0 ;
15711 wxString result;
15712 void *argp1 = 0 ;
15713 int res1 = 0 ;
15714 PyObject *swig_obj[1] ;
15715
15716 if (!args) SWIG_fail;
15717 swig_obj[0] = args;
15718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15719 if (!SWIG_IsOK(res1)) {
15720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15721 }
15722 arg1 = reinterpret_cast< wxLocale * >(argp1);
15723 {
15724 PyThreadState* __tstate = wxPyBeginAllowThreads();
15725 result = ((wxLocale const *)arg1)->GetLocale();
15726 wxPyEndAllowThreads(__tstate);
15727 if (PyErr_Occurred()) SWIG_fail;
15728 }
15729 {
15730 #if wxUSE_UNICODE
15731 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15732 #else
15733 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15734 #endif
15735 }
15736 return resultobj;
15737 fail:
15738 return NULL;
15739 }
15740
15741
15742 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15743 PyObject *resultobj = 0;
15744 wxLocale *arg1 = (wxLocale *) 0 ;
15745 int result;
15746 void *argp1 = 0 ;
15747 int res1 = 0 ;
15748 PyObject *swig_obj[1] ;
15749
15750 if (!args) SWIG_fail;
15751 swig_obj[0] = args;
15752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15753 if (!SWIG_IsOK(res1)) {
15754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15755 }
15756 arg1 = reinterpret_cast< wxLocale * >(argp1);
15757 {
15758 PyThreadState* __tstate = wxPyBeginAllowThreads();
15759 result = (int)((wxLocale const *)arg1)->GetLanguage();
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15763 resultobj = SWIG_From_int(static_cast< int >(result));
15764 return resultobj;
15765 fail:
15766 return NULL;
15767 }
15768
15769
15770 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15771 PyObject *resultobj = 0;
15772 wxLocale *arg1 = (wxLocale *) 0 ;
15773 wxString result;
15774 void *argp1 = 0 ;
15775 int res1 = 0 ;
15776 PyObject *swig_obj[1] ;
15777
15778 if (!args) SWIG_fail;
15779 swig_obj[0] = args;
15780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15781 if (!SWIG_IsOK(res1)) {
15782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15783 }
15784 arg1 = reinterpret_cast< wxLocale * >(argp1);
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
15787 result = ((wxLocale const *)arg1)->GetSysName();
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 {
15792 #if wxUSE_UNICODE
15793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15794 #else
15795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15796 #endif
15797 }
15798 return resultobj;
15799 fail:
15800 return NULL;
15801 }
15802
15803
15804 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15805 PyObject *resultobj = 0;
15806 wxLocale *arg1 = (wxLocale *) 0 ;
15807 wxString result;
15808 void *argp1 = 0 ;
15809 int res1 = 0 ;
15810 PyObject *swig_obj[1] ;
15811
15812 if (!args) SWIG_fail;
15813 swig_obj[0] = args;
15814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15815 if (!SWIG_IsOK(res1)) {
15816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15817 }
15818 arg1 = reinterpret_cast< wxLocale * >(argp1);
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 result = ((wxLocale const *)arg1)->GetCanonicalName();
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 {
15826 #if wxUSE_UNICODE
15827 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15828 #else
15829 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15830 #endif
15831 }
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj = 0;
15840 wxString *arg1 = 0 ;
15841 bool temp1 = false ;
15842 PyObject * obj0 = 0 ;
15843 char * kwnames[] = {
15844 (char *) "prefix", NULL
15845 };
15846
15847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15848 {
15849 arg1 = wxString_in_helper(obj0);
15850 if (arg1 == NULL) SWIG_fail;
15851 temp1 = true;
15852 }
15853 {
15854 PyThreadState* __tstate = wxPyBeginAllowThreads();
15855 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
15859 resultobj = SWIG_Py_Void();
15860 {
15861 if (temp1)
15862 delete arg1;
15863 }
15864 return resultobj;
15865 fail:
15866 {
15867 if (temp1)
15868 delete arg1;
15869 }
15870 return NULL;
15871 }
15872
15873
15874 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15875 PyObject *resultobj = 0;
15876 wxLocale *arg1 = (wxLocale *) 0 ;
15877 wxString *arg2 = 0 ;
15878 bool result;
15879 void *argp1 = 0 ;
15880 int res1 = 0 ;
15881 bool temp2 = false ;
15882 PyObject * obj0 = 0 ;
15883 PyObject * obj1 = 0 ;
15884 char * kwnames[] = {
15885 (char *) "self",(char *) "szDomain", NULL
15886 };
15887
15888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
15889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15890 if (!SWIG_IsOK(res1)) {
15891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
15892 }
15893 arg1 = reinterpret_cast< wxLocale * >(argp1);
15894 {
15895 arg2 = wxString_in_helper(obj1);
15896 if (arg2 == NULL) SWIG_fail;
15897 temp2 = true;
15898 }
15899 {
15900 PyThreadState* __tstate = wxPyBeginAllowThreads();
15901 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
15902 wxPyEndAllowThreads(__tstate);
15903 if (PyErr_Occurred()) SWIG_fail;
15904 }
15905 {
15906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15907 }
15908 {
15909 if (temp2)
15910 delete arg2;
15911 }
15912 return resultobj;
15913 fail:
15914 {
15915 if (temp2)
15916 delete arg2;
15917 }
15918 return NULL;
15919 }
15920
15921
15922 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15923 PyObject *resultobj = 0;
15924 int arg1 ;
15925 bool result;
15926 int val1 ;
15927 int ecode1 = 0 ;
15928 PyObject * obj0 = 0 ;
15929 char * kwnames[] = {
15930 (char *) "lang", NULL
15931 };
15932
15933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
15934 ecode1 = SWIG_AsVal_int(obj0, &val1);
15935 if (!SWIG_IsOK(ecode1)) {
15936 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
15937 }
15938 arg1 = static_cast< int >(val1);
15939 {
15940 PyThreadState* __tstate = wxPyBeginAllowThreads();
15941 result = (bool)wxLocale::IsAvailable(arg1);
15942 wxPyEndAllowThreads(__tstate);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 {
15946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15947 }
15948 return resultobj;
15949 fail:
15950 return NULL;
15951 }
15952
15953
15954 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15955 PyObject *resultobj = 0;
15956 wxLocale *arg1 = (wxLocale *) 0 ;
15957 wxString *arg2 = 0 ;
15958 bool result;
15959 void *argp1 = 0 ;
15960 int res1 = 0 ;
15961 bool temp2 = false ;
15962 PyObject * obj0 = 0 ;
15963 PyObject * obj1 = 0 ;
15964 char * kwnames[] = {
15965 (char *) "self",(char *) "szDomain", NULL
15966 };
15967
15968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
15969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15970 if (!SWIG_IsOK(res1)) {
15971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
15972 }
15973 arg1 = reinterpret_cast< wxLocale * >(argp1);
15974 {
15975 arg2 = wxString_in_helper(obj1);
15976 if (arg2 == NULL) SWIG_fail;
15977 temp2 = true;
15978 }
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 {
15986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15987 }
15988 {
15989 if (temp2)
15990 delete arg2;
15991 }
15992 return resultobj;
15993 fail:
15994 {
15995 if (temp2)
15996 delete arg2;
15997 }
15998 return NULL;
15999 }
16000
16001
16002 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16003 PyObject *resultobj = 0;
16004 int arg1 ;
16005 wxLanguageInfo *result = 0 ;
16006 int val1 ;
16007 int ecode1 = 0 ;
16008 PyObject * obj0 = 0 ;
16009 char * kwnames[] = {
16010 (char *) "lang", NULL
16011 };
16012
16013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16014 ecode1 = SWIG_AsVal_int(obj0, &val1);
16015 if (!SWIG_IsOK(ecode1)) {
16016 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16017 }
16018 arg1 = static_cast< int >(val1);
16019 {
16020 PyThreadState* __tstate = wxPyBeginAllowThreads();
16021 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16022 wxPyEndAllowThreads(__tstate);
16023 if (PyErr_Occurred()) SWIG_fail;
16024 }
16025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16026 return resultobj;
16027 fail:
16028 return NULL;
16029 }
16030
16031
16032 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16033 PyObject *resultobj = 0;
16034 int arg1 ;
16035 wxString result;
16036 int val1 ;
16037 int ecode1 = 0 ;
16038 PyObject * obj0 = 0 ;
16039 char * kwnames[] = {
16040 (char *) "lang", NULL
16041 };
16042
16043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16044 ecode1 = SWIG_AsVal_int(obj0, &val1);
16045 if (!SWIG_IsOK(ecode1)) {
16046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16047 }
16048 arg1 = static_cast< int >(val1);
16049 {
16050 PyThreadState* __tstate = wxPyBeginAllowThreads();
16051 result = wxLocale::GetLanguageName(arg1);
16052 wxPyEndAllowThreads(__tstate);
16053 if (PyErr_Occurred()) SWIG_fail;
16054 }
16055 {
16056 #if wxUSE_UNICODE
16057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16058 #else
16059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16060 #endif
16061 }
16062 return resultobj;
16063 fail:
16064 return NULL;
16065 }
16066
16067
16068 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16069 PyObject *resultobj = 0;
16070 wxString *arg1 = 0 ;
16071 wxLanguageInfo *result = 0 ;
16072 bool temp1 = false ;
16073 PyObject * obj0 = 0 ;
16074 char * kwnames[] = {
16075 (char *) "locale", NULL
16076 };
16077
16078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16079 {
16080 arg1 = wxString_in_helper(obj0);
16081 if (arg1 == NULL) SWIG_fail;
16082 temp1 = true;
16083 }
16084 {
16085 PyThreadState* __tstate = wxPyBeginAllowThreads();
16086 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16087 wxPyEndAllowThreads(__tstate);
16088 if (PyErr_Occurred()) SWIG_fail;
16089 }
16090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16091 {
16092 if (temp1)
16093 delete arg1;
16094 }
16095 return resultobj;
16096 fail:
16097 {
16098 if (temp1)
16099 delete arg1;
16100 }
16101 return NULL;
16102 }
16103
16104
16105 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16106 PyObject *resultobj = 0;
16107 wxLanguageInfo *arg1 = 0 ;
16108 void *argp1 = 0 ;
16109 int res1 = 0 ;
16110 PyObject * obj0 = 0 ;
16111 char * kwnames[] = {
16112 (char *) "info", NULL
16113 };
16114
16115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16116 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16117 if (!SWIG_IsOK(res1)) {
16118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16119 }
16120 if (!argp1) {
16121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16122 }
16123 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16124 {
16125 PyThreadState* __tstate = wxPyBeginAllowThreads();
16126 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16127 wxPyEndAllowThreads(__tstate);
16128 if (PyErr_Occurred()) SWIG_fail;
16129 }
16130 resultobj = SWIG_Py_Void();
16131 return resultobj;
16132 fail:
16133 return NULL;
16134 }
16135
16136
16137 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16138 PyObject *resultobj = 0;
16139 wxLocale *arg1 = (wxLocale *) 0 ;
16140 wxString *arg2 = 0 ;
16141 wxString const &arg3_defvalue = wxPyEmptyString ;
16142 wxString *arg3 = (wxString *) &arg3_defvalue ;
16143 wxString result;
16144 void *argp1 = 0 ;
16145 int res1 = 0 ;
16146 bool temp2 = false ;
16147 bool temp3 = false ;
16148 PyObject * obj0 = 0 ;
16149 PyObject * obj1 = 0 ;
16150 PyObject * obj2 = 0 ;
16151 char * kwnames[] = {
16152 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16153 };
16154
16155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16157 if (!SWIG_IsOK(res1)) {
16158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16159 }
16160 arg1 = reinterpret_cast< wxLocale * >(argp1);
16161 {
16162 arg2 = wxString_in_helper(obj1);
16163 if (arg2 == NULL) SWIG_fail;
16164 temp2 = true;
16165 }
16166 if (obj2) {
16167 {
16168 arg3 = wxString_in_helper(obj2);
16169 if (arg3 == NULL) SWIG_fail;
16170 temp3 = true;
16171 }
16172 }
16173 {
16174 PyThreadState* __tstate = wxPyBeginAllowThreads();
16175 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16176 wxPyEndAllowThreads(__tstate);
16177 if (PyErr_Occurred()) SWIG_fail;
16178 }
16179 {
16180 #if wxUSE_UNICODE
16181 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16182 #else
16183 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16184 #endif
16185 }
16186 {
16187 if (temp2)
16188 delete arg2;
16189 }
16190 {
16191 if (temp3)
16192 delete arg3;
16193 }
16194 return resultobj;
16195 fail:
16196 {
16197 if (temp2)
16198 delete arg2;
16199 }
16200 {
16201 if (temp3)
16202 delete arg3;
16203 }
16204 return NULL;
16205 }
16206
16207
16208 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16209 PyObject *resultobj = 0;
16210 wxLocale *arg1 = (wxLocale *) 0 ;
16211 wxString *result = 0 ;
16212 void *argp1 = 0 ;
16213 int res1 = 0 ;
16214 PyObject *swig_obj[1] ;
16215
16216 if (!args) SWIG_fail;
16217 swig_obj[0] = args;
16218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16219 if (!SWIG_IsOK(res1)) {
16220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16221 }
16222 arg1 = reinterpret_cast< wxLocale * >(argp1);
16223 {
16224 PyThreadState* __tstate = wxPyBeginAllowThreads();
16225 {
16226 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16227 result = (wxString *) &_result_ref;
16228 }
16229 wxPyEndAllowThreads(__tstate);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 }
16232 {
16233 #if wxUSE_UNICODE
16234 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16235 #else
16236 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16237 #endif
16238 }
16239 return resultobj;
16240 fail:
16241 return NULL;
16242 }
16243
16244
16245 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16246 PyObject *obj;
16247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16248 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16249 return SWIG_Py_Void();
16250 }
16251
16252 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16253 return SWIG_Python_InitShadowInstance(args);
16254 }
16255
16256 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16257 PyObject *resultobj = 0;
16258 int arg1 = (int) -1 ;
16259 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16260 wxPyLocale *result = 0 ;
16261 int val1 ;
16262 int ecode1 = 0 ;
16263 int val2 ;
16264 int ecode2 = 0 ;
16265 PyObject * obj0 = 0 ;
16266 PyObject * obj1 = 0 ;
16267 char * kwnames[] = {
16268 (char *) "language",(char *) "flags", NULL
16269 };
16270
16271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16272 if (obj0) {
16273 ecode1 = SWIG_AsVal_int(obj0, &val1);
16274 if (!SWIG_IsOK(ecode1)) {
16275 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16276 }
16277 arg1 = static_cast< int >(val1);
16278 }
16279 if (obj1) {
16280 ecode2 = SWIG_AsVal_int(obj1, &val2);
16281 if (!SWIG_IsOK(ecode2)) {
16282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16283 }
16284 arg2 = static_cast< int >(val2);
16285 }
16286 {
16287 PyThreadState* __tstate = wxPyBeginAllowThreads();
16288 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16289 wxPyEndAllowThreads(__tstate);
16290 if (PyErr_Occurred()) SWIG_fail;
16291 }
16292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16293 return resultobj;
16294 fail:
16295 return NULL;
16296 }
16297
16298
16299 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16300 PyObject *resultobj = 0;
16301 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16302 void *argp1 = 0 ;
16303 int res1 = 0 ;
16304 PyObject *swig_obj[1] ;
16305
16306 if (!args) SWIG_fail;
16307 swig_obj[0] = args;
16308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16309 if (!SWIG_IsOK(res1)) {
16310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16311 }
16312 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16313 {
16314 PyThreadState* __tstate = wxPyBeginAllowThreads();
16315 delete arg1;
16316
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 resultobj = SWIG_Py_Void();
16321 return resultobj;
16322 fail:
16323 return NULL;
16324 }
16325
16326
16327 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj = 0;
16329 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16330 PyObject *arg2 = (PyObject *) 0 ;
16331 PyObject *arg3 = (PyObject *) 0 ;
16332 void *argp1 = 0 ;
16333 int res1 = 0 ;
16334 PyObject * obj0 = 0 ;
16335 PyObject * obj1 = 0 ;
16336 PyObject * obj2 = 0 ;
16337 char * kwnames[] = {
16338 (char *) "self",(char *) "self",(char *) "_class", NULL
16339 };
16340
16341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16343 if (!SWIG_IsOK(res1)) {
16344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16345 }
16346 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16347 arg2 = obj1;
16348 arg3 = obj2;
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 (arg1)->_setCallbackInfo(arg2,arg3);
16352 wxPyEndAllowThreads(__tstate);
16353 if (PyErr_Occurred()) SWIG_fail;
16354 }
16355 resultobj = SWIG_Py_Void();
16356 return resultobj;
16357 fail:
16358 return NULL;
16359 }
16360
16361
16362 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj = 0;
16364 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16365 wxChar *arg2 = (wxChar *) 0 ;
16366 wxChar *arg3 = (wxChar *) NULL ;
16367 wxChar *result = 0 ;
16368 void *argp1 = 0 ;
16369 int res1 = 0 ;
16370 void *argp2 = 0 ;
16371 int res2 = 0 ;
16372 void *argp3 = 0 ;
16373 int res3 = 0 ;
16374 PyObject * obj0 = 0 ;
16375 PyObject * obj1 = 0 ;
16376 PyObject * obj2 = 0 ;
16377 char * kwnames[] = {
16378 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16379 };
16380
16381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16383 if (!SWIG_IsOK(res1)) {
16384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16385 }
16386 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16388 if (!SWIG_IsOK(res2)) {
16389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16390 }
16391 arg2 = reinterpret_cast< wxChar * >(argp2);
16392 if (obj2) {
16393 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16394 if (!SWIG_IsOK(res3)) {
16395 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16396 }
16397 arg3 = reinterpret_cast< wxChar * >(argp3);
16398 }
16399 {
16400 PyThreadState* __tstate = wxPyBeginAllowThreads();
16401 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16402 wxPyEndAllowThreads(__tstate);
16403 if (PyErr_Occurred()) SWIG_fail;
16404 }
16405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16406 return resultobj;
16407 fail:
16408 return NULL;
16409 }
16410
16411
16412 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16413 PyObject *resultobj = 0;
16414 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16415 wxChar *arg2 = (wxChar *) 0 ;
16416 wxChar *arg3 = (wxChar *) 0 ;
16417 size_t arg4 ;
16418 wxChar *arg5 = (wxChar *) NULL ;
16419 wxChar *result = 0 ;
16420 void *argp1 = 0 ;
16421 int res1 = 0 ;
16422 void *argp2 = 0 ;
16423 int res2 = 0 ;
16424 void *argp3 = 0 ;
16425 int res3 = 0 ;
16426 size_t val4 ;
16427 int ecode4 = 0 ;
16428 void *argp5 = 0 ;
16429 int res5 = 0 ;
16430 PyObject * obj0 = 0 ;
16431 PyObject * obj1 = 0 ;
16432 PyObject * obj2 = 0 ;
16433 PyObject * obj3 = 0 ;
16434 PyObject * obj4 = 0 ;
16435 char * kwnames[] = {
16436 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16437 };
16438
16439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16441 if (!SWIG_IsOK(res1)) {
16442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16443 }
16444 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16445 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16446 if (!SWIG_IsOK(res2)) {
16447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16448 }
16449 arg2 = reinterpret_cast< wxChar * >(argp2);
16450 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16451 if (!SWIG_IsOK(res3)) {
16452 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16453 }
16454 arg3 = reinterpret_cast< wxChar * >(argp3);
16455 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16456 if (!SWIG_IsOK(ecode4)) {
16457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16458 }
16459 arg4 = static_cast< size_t >(val4);
16460 if (obj4) {
16461 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16462 if (!SWIG_IsOK(res5)) {
16463 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16464 }
16465 arg5 = reinterpret_cast< wxChar * >(argp5);
16466 }
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16481 PyObject *obj;
16482 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16483 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16484 return SWIG_Py_Void();
16485 }
16486
16487 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16488 return SWIG_Python_InitShadowInstance(args);
16489 }
16490
16491 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16492 PyObject *resultobj = 0;
16493 wxLocale *result = 0 ;
16494
16495 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16496 {
16497 PyThreadState* __tstate = wxPyBeginAllowThreads();
16498 result = (wxLocale *)wxGetLocale();
16499 wxPyEndAllowThreads(__tstate);
16500 if (PyErr_Occurred()) SWIG_fail;
16501 }
16502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16503 return resultobj;
16504 fail:
16505 return NULL;
16506 }
16507
16508
16509 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16510 PyObject *resultobj = 0;
16511 wxString *arg1 = 0 ;
16512 wxString result;
16513 bool temp1 = false ;
16514
16515 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16516 {
16517 arg1 = wxString_in_helper(swig_obj[0]);
16518 if (arg1 == NULL) SWIG_fail;
16519 temp1 = true;
16520 }
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 result = wxGetTranslation((wxString const &)*arg1);
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 {
16528 #if wxUSE_UNICODE
16529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16530 #else
16531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16532 #endif
16533 }
16534 {
16535 if (temp1)
16536 delete arg1;
16537 }
16538 return resultobj;
16539 fail:
16540 {
16541 if (temp1)
16542 delete arg1;
16543 }
16544 return NULL;
16545 }
16546
16547
16548 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16549 PyObject *resultobj = 0;
16550 wxString *arg1 = 0 ;
16551 wxString *arg2 = 0 ;
16552 wxString result;
16553 bool temp1 = false ;
16554 bool temp2 = false ;
16555
16556 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16557 {
16558 arg1 = wxString_in_helper(swig_obj[0]);
16559 if (arg1 == NULL) SWIG_fail;
16560 temp1 = true;
16561 }
16562 {
16563 arg2 = wxString_in_helper(swig_obj[1]);
16564 if (arg2 == NULL) SWIG_fail;
16565 temp2 = true;
16566 }
16567 {
16568 PyThreadState* __tstate = wxPyBeginAllowThreads();
16569 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16570 wxPyEndAllowThreads(__tstate);
16571 if (PyErr_Occurred()) SWIG_fail;
16572 }
16573 {
16574 #if wxUSE_UNICODE
16575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16576 #else
16577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16578 #endif
16579 }
16580 {
16581 if (temp1)
16582 delete arg1;
16583 }
16584 {
16585 if (temp2)
16586 delete arg2;
16587 }
16588 return resultobj;
16589 fail:
16590 {
16591 if (temp1)
16592 delete arg1;
16593 }
16594 {
16595 if (temp2)
16596 delete arg2;
16597 }
16598 return NULL;
16599 }
16600
16601
16602 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16603 PyObject *resultobj = 0;
16604 wxString *arg1 = 0 ;
16605 wxString *arg2 = 0 ;
16606 size_t arg3 ;
16607 wxString result;
16608 bool temp1 = false ;
16609 bool temp2 = false ;
16610 size_t val3 ;
16611 int ecode3 = 0 ;
16612
16613 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16614 {
16615 arg1 = wxString_in_helper(swig_obj[0]);
16616 if (arg1 == NULL) SWIG_fail;
16617 temp1 = true;
16618 }
16619 {
16620 arg2 = wxString_in_helper(swig_obj[1]);
16621 if (arg2 == NULL) SWIG_fail;
16622 temp2 = true;
16623 }
16624 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16625 if (!SWIG_IsOK(ecode3)) {
16626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16627 }
16628 arg3 = static_cast< size_t >(val3);
16629 {
16630 PyThreadState* __tstate = wxPyBeginAllowThreads();
16631 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16632 wxPyEndAllowThreads(__tstate);
16633 if (PyErr_Occurred()) SWIG_fail;
16634 }
16635 {
16636 #if wxUSE_UNICODE
16637 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16638 #else
16639 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16640 #endif
16641 }
16642 {
16643 if (temp1)
16644 delete arg1;
16645 }
16646 {
16647 if (temp2)
16648 delete arg2;
16649 }
16650 return resultobj;
16651 fail:
16652 {
16653 if (temp1)
16654 delete arg1;
16655 }
16656 {
16657 if (temp2)
16658 delete arg2;
16659 }
16660 return NULL;
16661 }
16662
16663
16664 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16665 PyObject *resultobj = 0;
16666 wxString *arg1 = 0 ;
16667 wxString *arg2 = 0 ;
16668 size_t arg3 ;
16669 wxString *arg4 = 0 ;
16670 wxString result;
16671 bool temp1 = false ;
16672 bool temp2 = false ;
16673 size_t val3 ;
16674 int ecode3 = 0 ;
16675 bool temp4 = false ;
16676
16677 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16678 {
16679 arg1 = wxString_in_helper(swig_obj[0]);
16680 if (arg1 == NULL) SWIG_fail;
16681 temp1 = true;
16682 }
16683 {
16684 arg2 = wxString_in_helper(swig_obj[1]);
16685 if (arg2 == NULL) SWIG_fail;
16686 temp2 = true;
16687 }
16688 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16689 if (!SWIG_IsOK(ecode3)) {
16690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16691 }
16692 arg3 = static_cast< size_t >(val3);
16693 {
16694 arg4 = wxString_in_helper(swig_obj[3]);
16695 if (arg4 == NULL) SWIG_fail;
16696 temp4 = true;
16697 }
16698 {
16699 PyThreadState* __tstate = wxPyBeginAllowThreads();
16700 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16701 wxPyEndAllowThreads(__tstate);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 {
16705 #if wxUSE_UNICODE
16706 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16707 #else
16708 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16709 #endif
16710 }
16711 {
16712 if (temp1)
16713 delete arg1;
16714 }
16715 {
16716 if (temp2)
16717 delete arg2;
16718 }
16719 {
16720 if (temp4)
16721 delete arg4;
16722 }
16723 return resultobj;
16724 fail:
16725 {
16726 if (temp1)
16727 delete arg1;
16728 }
16729 {
16730 if (temp2)
16731 delete arg2;
16732 }
16733 {
16734 if (temp4)
16735 delete arg4;
16736 }
16737 return NULL;
16738 }
16739
16740
16741 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16742 int argc;
16743 PyObject *argv[5];
16744
16745 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16746 --argc;
16747 if (argc == 1) {
16748 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16749 }
16750 if (argc == 2) {
16751 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16752 }
16753 if (argc == 3) {
16754 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16755 }
16756 if (argc == 4) {
16757 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16758 }
16759
16760 fail:
16761 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16762 return NULL;
16763 }
16764
16765
16766 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16767 PyObject *resultobj = 0;
16768 wxEncodingConverter *result = 0 ;
16769
16770 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16771 {
16772 PyThreadState* __tstate = wxPyBeginAllowThreads();
16773 result = (wxEncodingConverter *)new wxEncodingConverter();
16774 wxPyEndAllowThreads(__tstate);
16775 if (PyErr_Occurred()) SWIG_fail;
16776 }
16777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16778 return resultobj;
16779 fail:
16780 return NULL;
16781 }
16782
16783
16784 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16785 PyObject *resultobj = 0;
16786 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16787 void *argp1 = 0 ;
16788 int res1 = 0 ;
16789 PyObject *swig_obj[1] ;
16790
16791 if (!args) SWIG_fail;
16792 swig_obj[0] = args;
16793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16794 if (!SWIG_IsOK(res1)) {
16795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16796 }
16797 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 delete arg1;
16801
16802 wxPyEndAllowThreads(__tstate);
16803 if (PyErr_Occurred()) SWIG_fail;
16804 }
16805 resultobj = SWIG_Py_Void();
16806 return resultobj;
16807 fail:
16808 return NULL;
16809 }
16810
16811
16812 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16813 PyObject *resultobj = 0;
16814 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16815 wxFontEncoding arg2 ;
16816 wxFontEncoding arg3 ;
16817 int arg4 = (int) wxCONVERT_STRICT ;
16818 bool result;
16819 void *argp1 = 0 ;
16820 int res1 = 0 ;
16821 int val2 ;
16822 int ecode2 = 0 ;
16823 int val3 ;
16824 int ecode3 = 0 ;
16825 int val4 ;
16826 int ecode4 = 0 ;
16827 PyObject * obj0 = 0 ;
16828 PyObject * obj1 = 0 ;
16829 PyObject * obj2 = 0 ;
16830 PyObject * obj3 = 0 ;
16831 char * kwnames[] = {
16832 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16833 };
16834
16835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16837 if (!SWIG_IsOK(res1)) {
16838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16839 }
16840 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16841 ecode2 = SWIG_AsVal_int(obj1, &val2);
16842 if (!SWIG_IsOK(ecode2)) {
16843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16844 }
16845 arg2 = static_cast< wxFontEncoding >(val2);
16846 ecode3 = SWIG_AsVal_int(obj2, &val3);
16847 if (!SWIG_IsOK(ecode3)) {
16848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16849 }
16850 arg3 = static_cast< wxFontEncoding >(val3);
16851 if (obj3) {
16852 ecode4 = SWIG_AsVal_int(obj3, &val4);
16853 if (!SWIG_IsOK(ecode4)) {
16854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16855 }
16856 arg4 = static_cast< int >(val4);
16857 }
16858 {
16859 PyThreadState* __tstate = wxPyBeginAllowThreads();
16860 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16861 wxPyEndAllowThreads(__tstate);
16862 if (PyErr_Occurred()) SWIG_fail;
16863 }
16864 {
16865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16866 }
16867 return resultobj;
16868 fail:
16869 return NULL;
16870 }
16871
16872
16873 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj = 0;
16875 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16876 wxString *arg2 = 0 ;
16877 wxString result;
16878 void *argp1 = 0 ;
16879 int res1 = 0 ;
16880 bool temp2 = false ;
16881 PyObject * obj0 = 0 ;
16882 PyObject * obj1 = 0 ;
16883 char * kwnames[] = {
16884 (char *) "self",(char *) "input", NULL
16885 };
16886
16887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
16888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16889 if (!SWIG_IsOK(res1)) {
16890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16891 }
16892 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16893 {
16894 arg2 = wxString_in_helper(obj1);
16895 if (arg2 == NULL) SWIG_fail;
16896 temp2 = true;
16897 }
16898 {
16899 PyThreadState* __tstate = wxPyBeginAllowThreads();
16900 result = (arg1)->Convert((wxString const &)*arg2);
16901 wxPyEndAllowThreads(__tstate);
16902 if (PyErr_Occurred()) SWIG_fail;
16903 }
16904 {
16905 #if wxUSE_UNICODE
16906 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16907 #else
16908 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16909 #endif
16910 }
16911 {
16912 if (temp2)
16913 delete arg2;
16914 }
16915 return resultobj;
16916 fail:
16917 {
16918 if (temp2)
16919 delete arg2;
16920 }
16921 return NULL;
16922 }
16923
16924
16925 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16926 PyObject *resultobj = 0;
16927 wxFontEncoding arg1 ;
16928 int arg2 = (int) wxPLATFORM_CURRENT ;
16929 wxFontEncodingArray result;
16930 int val1 ;
16931 int ecode1 = 0 ;
16932 int val2 ;
16933 int ecode2 = 0 ;
16934 PyObject * obj0 = 0 ;
16935 PyObject * obj1 = 0 ;
16936 char * kwnames[] = {
16937 (char *) "enc",(char *) "platform", NULL
16938 };
16939
16940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
16941 ecode1 = SWIG_AsVal_int(obj0, &val1);
16942 if (!SWIG_IsOK(ecode1)) {
16943 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16944 }
16945 arg1 = static_cast< wxFontEncoding >(val1);
16946 if (obj1) {
16947 ecode2 = SWIG_AsVal_int(obj1, &val2);
16948 if (!SWIG_IsOK(ecode2)) {
16949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
16950 }
16951 arg2 = static_cast< int >(val2);
16952 }
16953 {
16954 PyThreadState* __tstate = wxPyBeginAllowThreads();
16955 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
16956 wxPyEndAllowThreads(__tstate);
16957 if (PyErr_Occurred()) SWIG_fail;
16958 }
16959 {
16960 resultobj = PyList_New(0);
16961 for (size_t i=0; i < (&result)->GetCount(); i++) {
16962 PyObject* number = PyInt_FromLong((&result)->Item(i));
16963 PyList_Append(resultobj, number);
16964 Py_DECREF(number);
16965 }
16966 }
16967 return resultobj;
16968 fail:
16969 return NULL;
16970 }
16971
16972
16973 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16974 PyObject *resultobj = 0;
16975 wxFontEncoding arg1 ;
16976 wxFontEncodingArray result;
16977 int val1 ;
16978 int ecode1 = 0 ;
16979 PyObject * obj0 = 0 ;
16980 char * kwnames[] = {
16981 (char *) "enc", NULL
16982 };
16983
16984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
16985 ecode1 = SWIG_AsVal_int(obj0, &val1);
16986 if (!SWIG_IsOK(ecode1)) {
16987 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16988 }
16989 arg1 = static_cast< wxFontEncoding >(val1);
16990 {
16991 PyThreadState* __tstate = wxPyBeginAllowThreads();
16992 result = wxEncodingConverter::GetAllEquivalents(arg1);
16993 wxPyEndAllowThreads(__tstate);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
16997 resultobj = PyList_New(0);
16998 for (size_t i=0; i < (&result)->GetCount(); i++) {
16999 PyObject* number = PyInt_FromLong((&result)->Item(i));
17000 PyList_Append(resultobj, number);
17001 Py_DECREF(number);
17002 }
17003 }
17004 return resultobj;
17005 fail:
17006 return NULL;
17007 }
17008
17009
17010 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17011 PyObject *resultobj = 0;
17012 wxFontEncoding arg1 ;
17013 wxFontEncoding arg2 ;
17014 bool result;
17015 int val1 ;
17016 int ecode1 = 0 ;
17017 int val2 ;
17018 int ecode2 = 0 ;
17019 PyObject * obj0 = 0 ;
17020 PyObject * obj1 = 0 ;
17021 char * kwnames[] = {
17022 (char *) "encIn",(char *) "encOut", NULL
17023 };
17024
17025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17026 ecode1 = SWIG_AsVal_int(obj0, &val1);
17027 if (!SWIG_IsOK(ecode1)) {
17028 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17029 }
17030 arg1 = static_cast< wxFontEncoding >(val1);
17031 ecode2 = SWIG_AsVal_int(obj1, &val2);
17032 if (!SWIG_IsOK(ecode2)) {
17033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17034 }
17035 arg2 = static_cast< wxFontEncoding >(val2);
17036 {
17037 PyThreadState* __tstate = wxPyBeginAllowThreads();
17038 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17039 wxPyEndAllowThreads(__tstate);
17040 if (PyErr_Occurred()) SWIG_fail;
17041 }
17042 {
17043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17044 }
17045 return resultobj;
17046 fail:
17047 return NULL;
17048 }
17049
17050
17051 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17052 PyObject *obj;
17053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17054 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17055 return SWIG_Py_Void();
17056 }
17057
17058 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17059 return SWIG_Python_InitShadowInstance(args);
17060 }
17061
17062 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17063 PyObject *resultobj = 0;
17064 wxDC *arg1 = (wxDC *) 0 ;
17065 void *argp1 = 0 ;
17066 int res1 = 0 ;
17067 PyObject *swig_obj[1] ;
17068
17069 if (!args) SWIG_fail;
17070 swig_obj[0] = args;
17071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17072 if (!SWIG_IsOK(res1)) {
17073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17074 }
17075 arg1 = reinterpret_cast< wxDC * >(argp1);
17076 {
17077 PyThreadState* __tstate = wxPyBeginAllowThreads();
17078 delete arg1;
17079
17080 wxPyEndAllowThreads(__tstate);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 }
17083 resultobj = SWIG_Py_Void();
17084 return resultobj;
17085 fail:
17086 return NULL;
17087 }
17088
17089
17090 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17091 PyObject *resultobj = 0;
17092 wxDC *arg1 = (wxDC *) 0 ;
17093 int arg2 ;
17094 int arg3 ;
17095 wxColour *arg4 = 0 ;
17096 int arg5 = (int) wxFLOOD_SURFACE ;
17097 bool result;
17098 void *argp1 = 0 ;
17099 int res1 = 0 ;
17100 int val2 ;
17101 int ecode2 = 0 ;
17102 int val3 ;
17103 int ecode3 = 0 ;
17104 wxColour temp4 ;
17105 int val5 ;
17106 int ecode5 = 0 ;
17107 PyObject * obj0 = 0 ;
17108 PyObject * obj1 = 0 ;
17109 PyObject * obj2 = 0 ;
17110 PyObject * obj3 = 0 ;
17111 PyObject * obj4 = 0 ;
17112 char * kwnames[] = {
17113 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17114 };
17115
17116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17118 if (!SWIG_IsOK(res1)) {
17119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17120 }
17121 arg1 = reinterpret_cast< wxDC * >(argp1);
17122 ecode2 = SWIG_AsVal_int(obj1, &val2);
17123 if (!SWIG_IsOK(ecode2)) {
17124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17125 }
17126 arg2 = static_cast< int >(val2);
17127 ecode3 = SWIG_AsVal_int(obj2, &val3);
17128 if (!SWIG_IsOK(ecode3)) {
17129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17130 }
17131 arg3 = static_cast< int >(val3);
17132 {
17133 arg4 = &temp4;
17134 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17135 }
17136 if (obj4) {
17137 ecode5 = SWIG_AsVal_int(obj4, &val5);
17138 if (!SWIG_IsOK(ecode5)) {
17139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17140 }
17141 arg5 = static_cast< int >(val5);
17142 }
17143 {
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
17145 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 {
17150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17151 }
17152 return resultobj;
17153 fail:
17154 return NULL;
17155 }
17156
17157
17158 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17159 PyObject *resultobj = 0;
17160 wxDC *arg1 = (wxDC *) 0 ;
17161 wxPoint *arg2 = 0 ;
17162 wxColour *arg3 = 0 ;
17163 int arg4 = (int) wxFLOOD_SURFACE ;
17164 bool result;
17165 void *argp1 = 0 ;
17166 int res1 = 0 ;
17167 wxPoint temp2 ;
17168 wxColour temp3 ;
17169 int val4 ;
17170 int ecode4 = 0 ;
17171 PyObject * obj0 = 0 ;
17172 PyObject * obj1 = 0 ;
17173 PyObject * obj2 = 0 ;
17174 PyObject * obj3 = 0 ;
17175 char * kwnames[] = {
17176 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17177 };
17178
17179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17181 if (!SWIG_IsOK(res1)) {
17182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17183 }
17184 arg1 = reinterpret_cast< wxDC * >(argp1);
17185 {
17186 arg2 = &temp2;
17187 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17188 }
17189 {
17190 arg3 = &temp3;
17191 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17192 }
17193 if (obj3) {
17194 ecode4 = SWIG_AsVal_int(obj3, &val4);
17195 if (!SWIG_IsOK(ecode4)) {
17196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17197 }
17198 arg4 = static_cast< int >(val4);
17199 }
17200 {
17201 PyThreadState* __tstate = wxPyBeginAllowThreads();
17202 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
17206 {
17207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17208 }
17209 return resultobj;
17210 fail:
17211 return NULL;
17212 }
17213
17214
17215 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17216 PyObject *resultobj = 0;
17217 wxDC *arg1 = (wxDC *) 0 ;
17218 wxRect *arg2 = 0 ;
17219 wxColour *arg3 = 0 ;
17220 wxColour *arg4 = 0 ;
17221 wxPoint *arg5 = 0 ;
17222 void *argp1 = 0 ;
17223 int res1 = 0 ;
17224 wxRect temp2 ;
17225 wxColour temp3 ;
17226 wxColour temp4 ;
17227 wxPoint temp5 ;
17228 PyObject * obj0 = 0 ;
17229 PyObject * obj1 = 0 ;
17230 PyObject * obj2 = 0 ;
17231 PyObject * obj3 = 0 ;
17232 PyObject * obj4 = 0 ;
17233 char * kwnames[] = {
17234 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17235 };
17236
17237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17239 if (!SWIG_IsOK(res1)) {
17240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17241 }
17242 arg1 = reinterpret_cast< wxDC * >(argp1);
17243 {
17244 arg2 = &temp2;
17245 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17246 }
17247 {
17248 arg3 = &temp3;
17249 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17250 }
17251 {
17252 arg4 = &temp4;
17253 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17254 }
17255 {
17256 arg5 = &temp5;
17257 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17258 }
17259 {
17260 PyThreadState* __tstate = wxPyBeginAllowThreads();
17261 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17262 wxPyEndAllowThreads(__tstate);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 resultobj = SWIG_Py_Void();
17266 return resultobj;
17267 fail:
17268 return NULL;
17269 }
17270
17271
17272 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17273 PyObject *resultobj = 0;
17274 wxDC *arg1 = (wxDC *) 0 ;
17275 wxRect *arg2 = 0 ;
17276 wxColour *arg3 = 0 ;
17277 wxColour *arg4 = 0 ;
17278 wxDirection arg5 = (wxDirection) wxEAST ;
17279 void *argp1 = 0 ;
17280 int res1 = 0 ;
17281 wxRect temp2 ;
17282 wxColour temp3 ;
17283 wxColour temp4 ;
17284 int val5 ;
17285 int ecode5 = 0 ;
17286 PyObject * obj0 = 0 ;
17287 PyObject * obj1 = 0 ;
17288 PyObject * obj2 = 0 ;
17289 PyObject * obj3 = 0 ;
17290 PyObject * obj4 = 0 ;
17291 char * kwnames[] = {
17292 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17293 };
17294
17295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17297 if (!SWIG_IsOK(res1)) {
17298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17299 }
17300 arg1 = reinterpret_cast< wxDC * >(argp1);
17301 {
17302 arg2 = &temp2;
17303 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17304 }
17305 {
17306 arg3 = &temp3;
17307 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17308 }
17309 {
17310 arg4 = &temp4;
17311 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17312 }
17313 if (obj4) {
17314 ecode5 = SWIG_AsVal_int(obj4, &val5);
17315 if (!SWIG_IsOK(ecode5)) {
17316 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17317 }
17318 arg5 = static_cast< wxDirection >(val5);
17319 }
17320 {
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17323 wxPyEndAllowThreads(__tstate);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 }
17326 resultobj = SWIG_Py_Void();
17327 return resultobj;
17328 fail:
17329 return NULL;
17330 }
17331
17332
17333 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17334 PyObject *resultobj = 0;
17335 wxDC *arg1 = (wxDC *) 0 ;
17336 int arg2 ;
17337 int arg3 ;
17338 wxColour result;
17339 void *argp1 = 0 ;
17340 int res1 = 0 ;
17341 int val2 ;
17342 int ecode2 = 0 ;
17343 int val3 ;
17344 int ecode3 = 0 ;
17345 PyObject * obj0 = 0 ;
17346 PyObject * obj1 = 0 ;
17347 PyObject * obj2 = 0 ;
17348 char * kwnames[] = {
17349 (char *) "self",(char *) "x",(char *) "y", NULL
17350 };
17351
17352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17354 if (!SWIG_IsOK(res1)) {
17355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17356 }
17357 arg1 = reinterpret_cast< wxDC * >(argp1);
17358 ecode2 = SWIG_AsVal_int(obj1, &val2);
17359 if (!SWIG_IsOK(ecode2)) {
17360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17361 }
17362 arg2 = static_cast< int >(val2);
17363 ecode3 = SWIG_AsVal_int(obj2, &val3);
17364 if (!SWIG_IsOK(ecode3)) {
17365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17366 }
17367 arg3 = static_cast< int >(val3);
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 result = wxDC_GetPixel(arg1,arg2,arg3);
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17375 return resultobj;
17376 fail:
17377 return NULL;
17378 }
17379
17380
17381 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17382 PyObject *resultobj = 0;
17383 wxDC *arg1 = (wxDC *) 0 ;
17384 wxPoint *arg2 = 0 ;
17385 wxColour result;
17386 void *argp1 = 0 ;
17387 int res1 = 0 ;
17388 wxPoint temp2 ;
17389 PyObject * obj0 = 0 ;
17390 PyObject * obj1 = 0 ;
17391 char * kwnames[] = {
17392 (char *) "self",(char *) "pt", NULL
17393 };
17394
17395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17397 if (!SWIG_IsOK(res1)) {
17398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17399 }
17400 arg1 = reinterpret_cast< wxDC * >(argp1);
17401 {
17402 arg2 = &temp2;
17403 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17404 }
17405 {
17406 PyThreadState* __tstate = wxPyBeginAllowThreads();
17407 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17408 wxPyEndAllowThreads(__tstate);
17409 if (PyErr_Occurred()) SWIG_fail;
17410 }
17411 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17412 return resultobj;
17413 fail:
17414 return NULL;
17415 }
17416
17417
17418 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17419 PyObject *resultobj = 0;
17420 wxDC *arg1 = (wxDC *) 0 ;
17421 int arg2 ;
17422 int arg3 ;
17423 int arg4 ;
17424 int arg5 ;
17425 void *argp1 = 0 ;
17426 int res1 = 0 ;
17427 int val2 ;
17428 int ecode2 = 0 ;
17429 int val3 ;
17430 int ecode3 = 0 ;
17431 int val4 ;
17432 int ecode4 = 0 ;
17433 int val5 ;
17434 int ecode5 = 0 ;
17435 PyObject * obj0 = 0 ;
17436 PyObject * obj1 = 0 ;
17437 PyObject * obj2 = 0 ;
17438 PyObject * obj3 = 0 ;
17439 PyObject * obj4 = 0 ;
17440 char * kwnames[] = {
17441 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17442 };
17443
17444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17446 if (!SWIG_IsOK(res1)) {
17447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17448 }
17449 arg1 = reinterpret_cast< wxDC * >(argp1);
17450 ecode2 = SWIG_AsVal_int(obj1, &val2);
17451 if (!SWIG_IsOK(ecode2)) {
17452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17453 }
17454 arg2 = static_cast< int >(val2);
17455 ecode3 = SWIG_AsVal_int(obj2, &val3);
17456 if (!SWIG_IsOK(ecode3)) {
17457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17458 }
17459 arg3 = static_cast< int >(val3);
17460 ecode4 = SWIG_AsVal_int(obj3, &val4);
17461 if (!SWIG_IsOK(ecode4)) {
17462 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17463 }
17464 arg4 = static_cast< int >(val4);
17465 ecode5 = SWIG_AsVal_int(obj4, &val5);
17466 if (!SWIG_IsOK(ecode5)) {
17467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17468 }
17469 arg5 = static_cast< int >(val5);
17470 {
17471 PyThreadState* __tstate = wxPyBeginAllowThreads();
17472 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17473 wxPyEndAllowThreads(__tstate);
17474 if (PyErr_Occurred()) SWIG_fail;
17475 }
17476 resultobj = SWIG_Py_Void();
17477 return resultobj;
17478 fail:
17479 return NULL;
17480 }
17481
17482
17483 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17484 PyObject *resultobj = 0;
17485 wxDC *arg1 = (wxDC *) 0 ;
17486 wxPoint *arg2 = 0 ;
17487 wxPoint *arg3 = 0 ;
17488 void *argp1 = 0 ;
17489 int res1 = 0 ;
17490 wxPoint temp2 ;
17491 wxPoint temp3 ;
17492 PyObject * obj0 = 0 ;
17493 PyObject * obj1 = 0 ;
17494 PyObject * obj2 = 0 ;
17495 char * kwnames[] = {
17496 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17497 };
17498
17499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17501 if (!SWIG_IsOK(res1)) {
17502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17503 }
17504 arg1 = reinterpret_cast< wxDC * >(argp1);
17505 {
17506 arg2 = &temp2;
17507 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17508 }
17509 {
17510 arg3 = &temp3;
17511 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17512 }
17513 {
17514 PyThreadState* __tstate = wxPyBeginAllowThreads();
17515 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17516 wxPyEndAllowThreads(__tstate);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 resultobj = SWIG_Py_Void();
17520 return resultobj;
17521 fail:
17522 return NULL;
17523 }
17524
17525
17526 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17527 PyObject *resultobj = 0;
17528 wxDC *arg1 = (wxDC *) 0 ;
17529 int arg2 ;
17530 int arg3 ;
17531 void *argp1 = 0 ;
17532 int res1 = 0 ;
17533 int val2 ;
17534 int ecode2 = 0 ;
17535 int val3 ;
17536 int ecode3 = 0 ;
17537 PyObject * obj0 = 0 ;
17538 PyObject * obj1 = 0 ;
17539 PyObject * obj2 = 0 ;
17540 char * kwnames[] = {
17541 (char *) "self",(char *) "x",(char *) "y", NULL
17542 };
17543
17544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17546 if (!SWIG_IsOK(res1)) {
17547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17548 }
17549 arg1 = reinterpret_cast< wxDC * >(argp1);
17550 ecode2 = SWIG_AsVal_int(obj1, &val2);
17551 if (!SWIG_IsOK(ecode2)) {
17552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17553 }
17554 arg2 = static_cast< int >(val2);
17555 ecode3 = SWIG_AsVal_int(obj2, &val3);
17556 if (!SWIG_IsOK(ecode3)) {
17557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17558 }
17559 arg3 = static_cast< int >(val3);
17560 {
17561 PyThreadState* __tstate = wxPyBeginAllowThreads();
17562 (arg1)->CrossHair(arg2,arg3);
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 resultobj = SWIG_Py_Void();
17567 return resultobj;
17568 fail:
17569 return NULL;
17570 }
17571
17572
17573 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17574 PyObject *resultobj = 0;
17575 wxDC *arg1 = (wxDC *) 0 ;
17576 wxPoint *arg2 = 0 ;
17577 void *argp1 = 0 ;
17578 int res1 = 0 ;
17579 wxPoint temp2 ;
17580 PyObject * obj0 = 0 ;
17581 PyObject * obj1 = 0 ;
17582 char * kwnames[] = {
17583 (char *) "self",(char *) "pt", NULL
17584 };
17585
17586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17588 if (!SWIG_IsOK(res1)) {
17589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17590 }
17591 arg1 = reinterpret_cast< wxDC * >(argp1);
17592 {
17593 arg2 = &temp2;
17594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17595 }
17596 {
17597 PyThreadState* __tstate = wxPyBeginAllowThreads();
17598 (arg1)->CrossHair((wxPoint const &)*arg2);
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 resultobj = SWIG_Py_Void();
17603 return resultobj;
17604 fail:
17605 return NULL;
17606 }
17607
17608
17609 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17610 PyObject *resultobj = 0;
17611 wxDC *arg1 = (wxDC *) 0 ;
17612 int arg2 ;
17613 int arg3 ;
17614 int arg4 ;
17615 int arg5 ;
17616 int arg6 ;
17617 int arg7 ;
17618 void *argp1 = 0 ;
17619 int res1 = 0 ;
17620 int val2 ;
17621 int ecode2 = 0 ;
17622 int val3 ;
17623 int ecode3 = 0 ;
17624 int val4 ;
17625 int ecode4 = 0 ;
17626 int val5 ;
17627 int ecode5 = 0 ;
17628 int val6 ;
17629 int ecode6 = 0 ;
17630 int val7 ;
17631 int ecode7 = 0 ;
17632 PyObject * obj0 = 0 ;
17633 PyObject * obj1 = 0 ;
17634 PyObject * obj2 = 0 ;
17635 PyObject * obj3 = 0 ;
17636 PyObject * obj4 = 0 ;
17637 PyObject * obj5 = 0 ;
17638 PyObject * obj6 = 0 ;
17639 char * kwnames[] = {
17640 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17641 };
17642
17643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17645 if (!SWIG_IsOK(res1)) {
17646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17647 }
17648 arg1 = reinterpret_cast< wxDC * >(argp1);
17649 ecode2 = SWIG_AsVal_int(obj1, &val2);
17650 if (!SWIG_IsOK(ecode2)) {
17651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17652 }
17653 arg2 = static_cast< int >(val2);
17654 ecode3 = SWIG_AsVal_int(obj2, &val3);
17655 if (!SWIG_IsOK(ecode3)) {
17656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17657 }
17658 arg3 = static_cast< int >(val3);
17659 ecode4 = SWIG_AsVal_int(obj3, &val4);
17660 if (!SWIG_IsOK(ecode4)) {
17661 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17662 }
17663 arg4 = static_cast< int >(val4);
17664 ecode5 = SWIG_AsVal_int(obj4, &val5);
17665 if (!SWIG_IsOK(ecode5)) {
17666 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17667 }
17668 arg5 = static_cast< int >(val5);
17669 ecode6 = SWIG_AsVal_int(obj5, &val6);
17670 if (!SWIG_IsOK(ecode6)) {
17671 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17672 }
17673 arg6 = static_cast< int >(val6);
17674 ecode7 = SWIG_AsVal_int(obj6, &val7);
17675 if (!SWIG_IsOK(ecode7)) {
17676 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17677 }
17678 arg7 = static_cast< int >(val7);
17679 {
17680 PyThreadState* __tstate = wxPyBeginAllowThreads();
17681 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17682 wxPyEndAllowThreads(__tstate);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 resultobj = SWIG_Py_Void();
17686 return resultobj;
17687 fail:
17688 return NULL;
17689 }
17690
17691
17692 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17693 PyObject *resultobj = 0;
17694 wxDC *arg1 = (wxDC *) 0 ;
17695 wxPoint *arg2 = 0 ;
17696 wxPoint *arg3 = 0 ;
17697 wxPoint *arg4 = 0 ;
17698 void *argp1 = 0 ;
17699 int res1 = 0 ;
17700 wxPoint temp2 ;
17701 wxPoint temp3 ;
17702 wxPoint temp4 ;
17703 PyObject * obj0 = 0 ;
17704 PyObject * obj1 = 0 ;
17705 PyObject * obj2 = 0 ;
17706 PyObject * obj3 = 0 ;
17707 char * kwnames[] = {
17708 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17709 };
17710
17711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17713 if (!SWIG_IsOK(res1)) {
17714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17715 }
17716 arg1 = reinterpret_cast< wxDC * >(argp1);
17717 {
17718 arg2 = &temp2;
17719 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17720 }
17721 {
17722 arg3 = &temp3;
17723 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17724 }
17725 {
17726 arg4 = &temp4;
17727 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17728 }
17729 {
17730 PyThreadState* __tstate = wxPyBeginAllowThreads();
17731 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17732 wxPyEndAllowThreads(__tstate);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 }
17735 resultobj = SWIG_Py_Void();
17736 return resultobj;
17737 fail:
17738 return NULL;
17739 }
17740
17741
17742 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17743 PyObject *resultobj = 0;
17744 wxDC *arg1 = (wxDC *) 0 ;
17745 int arg2 ;
17746 int arg3 ;
17747 int arg4 ;
17748 int arg5 ;
17749 void *argp1 = 0 ;
17750 int res1 = 0 ;
17751 int val2 ;
17752 int ecode2 = 0 ;
17753 int val3 ;
17754 int ecode3 = 0 ;
17755 int val4 ;
17756 int ecode4 = 0 ;
17757 int val5 ;
17758 int ecode5 = 0 ;
17759 PyObject * obj0 = 0 ;
17760 PyObject * obj1 = 0 ;
17761 PyObject * obj2 = 0 ;
17762 PyObject * obj3 = 0 ;
17763 PyObject * obj4 = 0 ;
17764 char * kwnames[] = {
17765 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17766 };
17767
17768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17770 if (!SWIG_IsOK(res1)) {
17771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17772 }
17773 arg1 = reinterpret_cast< wxDC * >(argp1);
17774 ecode2 = SWIG_AsVal_int(obj1, &val2);
17775 if (!SWIG_IsOK(ecode2)) {
17776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17777 }
17778 arg2 = static_cast< int >(val2);
17779 ecode3 = SWIG_AsVal_int(obj2, &val3);
17780 if (!SWIG_IsOK(ecode3)) {
17781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17782 }
17783 arg3 = static_cast< int >(val3);
17784 ecode4 = SWIG_AsVal_int(obj3, &val4);
17785 if (!SWIG_IsOK(ecode4)) {
17786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17787 }
17788 arg4 = static_cast< int >(val4);
17789 ecode5 = SWIG_AsVal_int(obj4, &val5);
17790 if (!SWIG_IsOK(ecode5)) {
17791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17792 }
17793 arg5 = static_cast< int >(val5);
17794 {
17795 PyThreadState* __tstate = wxPyBeginAllowThreads();
17796 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17797 wxPyEndAllowThreads(__tstate);
17798 if (PyErr_Occurred()) SWIG_fail;
17799 }
17800 resultobj = SWIG_Py_Void();
17801 return resultobj;
17802 fail:
17803 return NULL;
17804 }
17805
17806
17807 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17808 PyObject *resultobj = 0;
17809 wxDC *arg1 = (wxDC *) 0 ;
17810 wxRect *arg2 = 0 ;
17811 void *argp1 = 0 ;
17812 int res1 = 0 ;
17813 wxRect temp2 ;
17814 PyObject * obj0 = 0 ;
17815 PyObject * obj1 = 0 ;
17816 char * kwnames[] = {
17817 (char *) "self",(char *) "rect", NULL
17818 };
17819
17820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17822 if (!SWIG_IsOK(res1)) {
17823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17824 }
17825 arg1 = reinterpret_cast< wxDC * >(argp1);
17826 {
17827 arg2 = &temp2;
17828 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17829 }
17830 {
17831 PyThreadState* __tstate = wxPyBeginAllowThreads();
17832 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17833 wxPyEndAllowThreads(__tstate);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 resultobj = SWIG_Py_Void();
17837 return resultobj;
17838 fail:
17839 return NULL;
17840 }
17841
17842
17843 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17844 PyObject *resultobj = 0;
17845 wxDC *arg1 = (wxDC *) 0 ;
17846 int arg2 ;
17847 int arg3 ;
17848 int arg4 ;
17849 int arg5 ;
17850 double arg6 ;
17851 double arg7 ;
17852 void *argp1 = 0 ;
17853 int res1 = 0 ;
17854 int val2 ;
17855 int ecode2 = 0 ;
17856 int val3 ;
17857 int ecode3 = 0 ;
17858 int val4 ;
17859 int ecode4 = 0 ;
17860 int val5 ;
17861 int ecode5 = 0 ;
17862 double val6 ;
17863 int ecode6 = 0 ;
17864 double val7 ;
17865 int ecode7 = 0 ;
17866 PyObject * obj0 = 0 ;
17867 PyObject * obj1 = 0 ;
17868 PyObject * obj2 = 0 ;
17869 PyObject * obj3 = 0 ;
17870 PyObject * obj4 = 0 ;
17871 PyObject * obj5 = 0 ;
17872 PyObject * obj6 = 0 ;
17873 char * kwnames[] = {
17874 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17875 };
17876
17877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17879 if (!SWIG_IsOK(res1)) {
17880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
17881 }
17882 arg1 = reinterpret_cast< wxDC * >(argp1);
17883 ecode2 = SWIG_AsVal_int(obj1, &val2);
17884 if (!SWIG_IsOK(ecode2)) {
17885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
17886 }
17887 arg2 = static_cast< int >(val2);
17888 ecode3 = SWIG_AsVal_int(obj2, &val3);
17889 if (!SWIG_IsOK(ecode3)) {
17890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
17891 }
17892 arg3 = static_cast< int >(val3);
17893 ecode4 = SWIG_AsVal_int(obj3, &val4);
17894 if (!SWIG_IsOK(ecode4)) {
17895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
17896 }
17897 arg4 = static_cast< int >(val4);
17898 ecode5 = SWIG_AsVal_int(obj4, &val5);
17899 if (!SWIG_IsOK(ecode5)) {
17900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
17901 }
17902 arg5 = static_cast< int >(val5);
17903 ecode6 = SWIG_AsVal_double(obj5, &val6);
17904 if (!SWIG_IsOK(ecode6)) {
17905 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
17906 }
17907 arg6 = static_cast< double >(val6);
17908 ecode7 = SWIG_AsVal_double(obj6, &val7);
17909 if (!SWIG_IsOK(ecode7)) {
17910 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
17911 }
17912 arg7 = static_cast< double >(val7);
17913 {
17914 PyThreadState* __tstate = wxPyBeginAllowThreads();
17915 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
17916 wxPyEndAllowThreads(__tstate);
17917 if (PyErr_Occurred()) SWIG_fail;
17918 }
17919 resultobj = SWIG_Py_Void();
17920 return resultobj;
17921 fail:
17922 return NULL;
17923 }
17924
17925
17926 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17927 PyObject *resultobj = 0;
17928 wxDC *arg1 = (wxDC *) 0 ;
17929 wxPoint *arg2 = 0 ;
17930 wxSize *arg3 = 0 ;
17931 double arg4 ;
17932 double arg5 ;
17933 void *argp1 = 0 ;
17934 int res1 = 0 ;
17935 wxPoint temp2 ;
17936 wxSize temp3 ;
17937 double val4 ;
17938 int ecode4 = 0 ;
17939 double val5 ;
17940 int ecode5 = 0 ;
17941 PyObject * obj0 = 0 ;
17942 PyObject * obj1 = 0 ;
17943 PyObject * obj2 = 0 ;
17944 PyObject * obj3 = 0 ;
17945 PyObject * obj4 = 0 ;
17946 char * kwnames[] = {
17947 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
17948 };
17949
17950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17952 if (!SWIG_IsOK(res1)) {
17953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17954 }
17955 arg1 = reinterpret_cast< wxDC * >(argp1);
17956 {
17957 arg2 = &temp2;
17958 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17959 }
17960 {
17961 arg3 = &temp3;
17962 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17963 }
17964 ecode4 = SWIG_AsVal_double(obj3, &val4);
17965 if (!SWIG_IsOK(ecode4)) {
17966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
17967 }
17968 arg4 = static_cast< double >(val4);
17969 ecode5 = SWIG_AsVal_double(obj4, &val5);
17970 if (!SWIG_IsOK(ecode5)) {
17971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
17972 }
17973 arg5 = static_cast< double >(val5);
17974 {
17975 PyThreadState* __tstate = wxPyBeginAllowThreads();
17976 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
17977 wxPyEndAllowThreads(__tstate);
17978 if (PyErr_Occurred()) SWIG_fail;
17979 }
17980 resultobj = SWIG_Py_Void();
17981 return resultobj;
17982 fail:
17983 return NULL;
17984 }
17985
17986
17987 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17988 PyObject *resultobj = 0;
17989 wxDC *arg1 = (wxDC *) 0 ;
17990 int arg2 ;
17991 int arg3 ;
17992 void *argp1 = 0 ;
17993 int res1 = 0 ;
17994 int val2 ;
17995 int ecode2 = 0 ;
17996 int val3 ;
17997 int ecode3 = 0 ;
17998 PyObject * obj0 = 0 ;
17999 PyObject * obj1 = 0 ;
18000 PyObject * obj2 = 0 ;
18001 char * kwnames[] = {
18002 (char *) "self",(char *) "x",(char *) "y", NULL
18003 };
18004
18005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18007 if (!SWIG_IsOK(res1)) {
18008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18009 }
18010 arg1 = reinterpret_cast< wxDC * >(argp1);
18011 ecode2 = SWIG_AsVal_int(obj1, &val2);
18012 if (!SWIG_IsOK(ecode2)) {
18013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18014 }
18015 arg2 = static_cast< int >(val2);
18016 ecode3 = SWIG_AsVal_int(obj2, &val3);
18017 if (!SWIG_IsOK(ecode3)) {
18018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18019 }
18020 arg3 = static_cast< int >(val3);
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 (arg1)->DrawPoint(arg2,arg3);
18024 wxPyEndAllowThreads(__tstate);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 resultobj = SWIG_Py_Void();
18028 return resultobj;
18029 fail:
18030 return NULL;
18031 }
18032
18033
18034 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18035 PyObject *resultobj = 0;
18036 wxDC *arg1 = (wxDC *) 0 ;
18037 wxPoint *arg2 = 0 ;
18038 void *argp1 = 0 ;
18039 int res1 = 0 ;
18040 wxPoint temp2 ;
18041 PyObject * obj0 = 0 ;
18042 PyObject * obj1 = 0 ;
18043 char * kwnames[] = {
18044 (char *) "self",(char *) "pt", NULL
18045 };
18046
18047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18049 if (!SWIG_IsOK(res1)) {
18050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18051 }
18052 arg1 = reinterpret_cast< wxDC * >(argp1);
18053 {
18054 arg2 = &temp2;
18055 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18056 }
18057 {
18058 PyThreadState* __tstate = wxPyBeginAllowThreads();
18059 (arg1)->DrawPoint((wxPoint const &)*arg2);
18060 wxPyEndAllowThreads(__tstate);
18061 if (PyErr_Occurred()) SWIG_fail;
18062 }
18063 resultobj = SWIG_Py_Void();
18064 return resultobj;
18065 fail:
18066 return NULL;
18067 }
18068
18069
18070 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18071 PyObject *resultobj = 0;
18072 wxDC *arg1 = (wxDC *) 0 ;
18073 int arg2 ;
18074 int arg3 ;
18075 int arg4 ;
18076 int arg5 ;
18077 void *argp1 = 0 ;
18078 int res1 = 0 ;
18079 int val2 ;
18080 int ecode2 = 0 ;
18081 int val3 ;
18082 int ecode3 = 0 ;
18083 int val4 ;
18084 int ecode4 = 0 ;
18085 int val5 ;
18086 int ecode5 = 0 ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 PyObject * obj2 = 0 ;
18090 PyObject * obj3 = 0 ;
18091 PyObject * obj4 = 0 ;
18092 char * kwnames[] = {
18093 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18094 };
18095
18096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18098 if (!SWIG_IsOK(res1)) {
18099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18100 }
18101 arg1 = reinterpret_cast< wxDC * >(argp1);
18102 ecode2 = SWIG_AsVal_int(obj1, &val2);
18103 if (!SWIG_IsOK(ecode2)) {
18104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18105 }
18106 arg2 = static_cast< int >(val2);
18107 ecode3 = SWIG_AsVal_int(obj2, &val3);
18108 if (!SWIG_IsOK(ecode3)) {
18109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18110 }
18111 arg3 = static_cast< int >(val3);
18112 ecode4 = SWIG_AsVal_int(obj3, &val4);
18113 if (!SWIG_IsOK(ecode4)) {
18114 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18115 }
18116 arg4 = static_cast< int >(val4);
18117 ecode5 = SWIG_AsVal_int(obj4, &val5);
18118 if (!SWIG_IsOK(ecode5)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18120 }
18121 arg5 = static_cast< int >(val5);
18122 {
18123 PyThreadState* __tstate = wxPyBeginAllowThreads();
18124 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18125 wxPyEndAllowThreads(__tstate);
18126 if (PyErr_Occurred()) SWIG_fail;
18127 }
18128 resultobj = SWIG_Py_Void();
18129 return resultobj;
18130 fail:
18131 return NULL;
18132 }
18133
18134
18135 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18136 PyObject *resultobj = 0;
18137 wxDC *arg1 = (wxDC *) 0 ;
18138 wxRect *arg2 = 0 ;
18139 void *argp1 = 0 ;
18140 int res1 = 0 ;
18141 wxRect temp2 ;
18142 PyObject * obj0 = 0 ;
18143 PyObject * obj1 = 0 ;
18144 char * kwnames[] = {
18145 (char *) "self",(char *) "rect", NULL
18146 };
18147
18148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18150 if (!SWIG_IsOK(res1)) {
18151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18152 }
18153 arg1 = reinterpret_cast< wxDC * >(argp1);
18154 {
18155 arg2 = &temp2;
18156 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18157 }
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 (arg1)->DrawRectangle((wxRect const &)*arg2);
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = SWIG_Py_Void();
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj = 0;
18173 wxDC *arg1 = (wxDC *) 0 ;
18174 wxPoint *arg2 = 0 ;
18175 wxSize *arg3 = 0 ;
18176 void *argp1 = 0 ;
18177 int res1 = 0 ;
18178 wxPoint temp2 ;
18179 wxSize temp3 ;
18180 PyObject * obj0 = 0 ;
18181 PyObject * obj1 = 0 ;
18182 PyObject * obj2 = 0 ;
18183 char * kwnames[] = {
18184 (char *) "self",(char *) "pt",(char *) "sz", NULL
18185 };
18186
18187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18189 if (!SWIG_IsOK(res1)) {
18190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18191 }
18192 arg1 = reinterpret_cast< wxDC * >(argp1);
18193 {
18194 arg2 = &temp2;
18195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18196 }
18197 {
18198 arg3 = &temp3;
18199 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18200 }
18201 {
18202 PyThreadState* __tstate = wxPyBeginAllowThreads();
18203 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18204 wxPyEndAllowThreads(__tstate);
18205 if (PyErr_Occurred()) SWIG_fail;
18206 }
18207 resultobj = SWIG_Py_Void();
18208 return resultobj;
18209 fail:
18210 return NULL;
18211 }
18212
18213
18214 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18215 PyObject *resultobj = 0;
18216 wxDC *arg1 = (wxDC *) 0 ;
18217 int arg2 ;
18218 int arg3 ;
18219 int arg4 ;
18220 int arg5 ;
18221 double arg6 ;
18222 void *argp1 = 0 ;
18223 int res1 = 0 ;
18224 int val2 ;
18225 int ecode2 = 0 ;
18226 int val3 ;
18227 int ecode3 = 0 ;
18228 int val4 ;
18229 int ecode4 = 0 ;
18230 int val5 ;
18231 int ecode5 = 0 ;
18232 double val6 ;
18233 int ecode6 = 0 ;
18234 PyObject * obj0 = 0 ;
18235 PyObject * obj1 = 0 ;
18236 PyObject * obj2 = 0 ;
18237 PyObject * obj3 = 0 ;
18238 PyObject * obj4 = 0 ;
18239 PyObject * obj5 = 0 ;
18240 char * kwnames[] = {
18241 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18242 };
18243
18244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18246 if (!SWIG_IsOK(res1)) {
18247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18248 }
18249 arg1 = reinterpret_cast< wxDC * >(argp1);
18250 ecode2 = SWIG_AsVal_int(obj1, &val2);
18251 if (!SWIG_IsOK(ecode2)) {
18252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18253 }
18254 arg2 = static_cast< int >(val2);
18255 ecode3 = SWIG_AsVal_int(obj2, &val3);
18256 if (!SWIG_IsOK(ecode3)) {
18257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18258 }
18259 arg3 = static_cast< int >(val3);
18260 ecode4 = SWIG_AsVal_int(obj3, &val4);
18261 if (!SWIG_IsOK(ecode4)) {
18262 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18263 }
18264 arg4 = static_cast< int >(val4);
18265 ecode5 = SWIG_AsVal_int(obj4, &val5);
18266 if (!SWIG_IsOK(ecode5)) {
18267 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18268 }
18269 arg5 = static_cast< int >(val5);
18270 ecode6 = SWIG_AsVal_double(obj5, &val6);
18271 if (!SWIG_IsOK(ecode6)) {
18272 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18273 }
18274 arg6 = static_cast< double >(val6);
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 resultobj = SWIG_Py_Void();
18282 return resultobj;
18283 fail:
18284 return NULL;
18285 }
18286
18287
18288 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18289 PyObject *resultobj = 0;
18290 wxDC *arg1 = (wxDC *) 0 ;
18291 wxRect *arg2 = 0 ;
18292 double arg3 ;
18293 void *argp1 = 0 ;
18294 int res1 = 0 ;
18295 wxRect temp2 ;
18296 double val3 ;
18297 int ecode3 = 0 ;
18298 PyObject * obj0 = 0 ;
18299 PyObject * obj1 = 0 ;
18300 PyObject * obj2 = 0 ;
18301 char * kwnames[] = {
18302 (char *) "self",(char *) "r",(char *) "radius", NULL
18303 };
18304
18305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18307 if (!SWIG_IsOK(res1)) {
18308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18309 }
18310 arg1 = reinterpret_cast< wxDC * >(argp1);
18311 {
18312 arg2 = &temp2;
18313 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18314 }
18315 ecode3 = SWIG_AsVal_double(obj2, &val3);
18316 if (!SWIG_IsOK(ecode3)) {
18317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18318 }
18319 arg3 = static_cast< double >(val3);
18320 {
18321 PyThreadState* __tstate = wxPyBeginAllowThreads();
18322 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18323 wxPyEndAllowThreads(__tstate);
18324 if (PyErr_Occurred()) SWIG_fail;
18325 }
18326 resultobj = SWIG_Py_Void();
18327 return resultobj;
18328 fail:
18329 return NULL;
18330 }
18331
18332
18333 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18334 PyObject *resultobj = 0;
18335 wxDC *arg1 = (wxDC *) 0 ;
18336 wxPoint *arg2 = 0 ;
18337 wxSize *arg3 = 0 ;
18338 double arg4 ;
18339 void *argp1 = 0 ;
18340 int res1 = 0 ;
18341 wxPoint temp2 ;
18342 wxSize temp3 ;
18343 double val4 ;
18344 int ecode4 = 0 ;
18345 PyObject * obj0 = 0 ;
18346 PyObject * obj1 = 0 ;
18347 PyObject * obj2 = 0 ;
18348 PyObject * obj3 = 0 ;
18349 char * kwnames[] = {
18350 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18351 };
18352
18353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18355 if (!SWIG_IsOK(res1)) {
18356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18357 }
18358 arg1 = reinterpret_cast< wxDC * >(argp1);
18359 {
18360 arg2 = &temp2;
18361 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18362 }
18363 {
18364 arg3 = &temp3;
18365 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18366 }
18367 ecode4 = SWIG_AsVal_double(obj3, &val4);
18368 if (!SWIG_IsOK(ecode4)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18370 }
18371 arg4 = static_cast< double >(val4);
18372 {
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 resultobj = SWIG_Py_Void();
18379 return resultobj;
18380 fail:
18381 return NULL;
18382 }
18383
18384
18385 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18386 PyObject *resultobj = 0;
18387 wxDC *arg1 = (wxDC *) 0 ;
18388 int arg2 ;
18389 int arg3 ;
18390 int arg4 ;
18391 void *argp1 = 0 ;
18392 int res1 = 0 ;
18393 int val2 ;
18394 int ecode2 = 0 ;
18395 int val3 ;
18396 int ecode3 = 0 ;
18397 int val4 ;
18398 int ecode4 = 0 ;
18399 PyObject * obj0 = 0 ;
18400 PyObject * obj1 = 0 ;
18401 PyObject * obj2 = 0 ;
18402 PyObject * obj3 = 0 ;
18403 char * kwnames[] = {
18404 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18405 };
18406
18407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18409 if (!SWIG_IsOK(res1)) {
18410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18411 }
18412 arg1 = reinterpret_cast< wxDC * >(argp1);
18413 ecode2 = SWIG_AsVal_int(obj1, &val2);
18414 if (!SWIG_IsOK(ecode2)) {
18415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18416 }
18417 arg2 = static_cast< int >(val2);
18418 ecode3 = SWIG_AsVal_int(obj2, &val3);
18419 if (!SWIG_IsOK(ecode3)) {
18420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18421 }
18422 arg3 = static_cast< int >(val3);
18423 ecode4 = SWIG_AsVal_int(obj3, &val4);
18424 if (!SWIG_IsOK(ecode4)) {
18425 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18426 }
18427 arg4 = static_cast< int >(val4);
18428 {
18429 PyThreadState* __tstate = wxPyBeginAllowThreads();
18430 (arg1)->DrawCircle(arg2,arg3,arg4);
18431 wxPyEndAllowThreads(__tstate);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 }
18434 resultobj = SWIG_Py_Void();
18435 return resultobj;
18436 fail:
18437 return NULL;
18438 }
18439
18440
18441 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18442 PyObject *resultobj = 0;
18443 wxDC *arg1 = (wxDC *) 0 ;
18444 wxPoint *arg2 = 0 ;
18445 int arg3 ;
18446 void *argp1 = 0 ;
18447 int res1 = 0 ;
18448 wxPoint temp2 ;
18449 int val3 ;
18450 int ecode3 = 0 ;
18451 PyObject * obj0 = 0 ;
18452 PyObject * obj1 = 0 ;
18453 PyObject * obj2 = 0 ;
18454 char * kwnames[] = {
18455 (char *) "self",(char *) "pt",(char *) "radius", NULL
18456 };
18457
18458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18460 if (!SWIG_IsOK(res1)) {
18461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18462 }
18463 arg1 = reinterpret_cast< wxDC * >(argp1);
18464 {
18465 arg2 = &temp2;
18466 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18467 }
18468 ecode3 = SWIG_AsVal_int(obj2, &val3);
18469 if (!SWIG_IsOK(ecode3)) {
18470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18471 }
18472 arg3 = static_cast< int >(val3);
18473 {
18474 PyThreadState* __tstate = wxPyBeginAllowThreads();
18475 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18476 wxPyEndAllowThreads(__tstate);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 resultobj = SWIG_Py_Void();
18480 return resultobj;
18481 fail:
18482 return NULL;
18483 }
18484
18485
18486 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18487 PyObject *resultobj = 0;
18488 wxDC *arg1 = (wxDC *) 0 ;
18489 int arg2 ;
18490 int arg3 ;
18491 int arg4 ;
18492 int arg5 ;
18493 void *argp1 = 0 ;
18494 int res1 = 0 ;
18495 int val2 ;
18496 int ecode2 = 0 ;
18497 int val3 ;
18498 int ecode3 = 0 ;
18499 int val4 ;
18500 int ecode4 = 0 ;
18501 int val5 ;
18502 int ecode5 = 0 ;
18503 PyObject * obj0 = 0 ;
18504 PyObject * obj1 = 0 ;
18505 PyObject * obj2 = 0 ;
18506 PyObject * obj3 = 0 ;
18507 PyObject * obj4 = 0 ;
18508 char * kwnames[] = {
18509 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18510 };
18511
18512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18514 if (!SWIG_IsOK(res1)) {
18515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18516 }
18517 arg1 = reinterpret_cast< wxDC * >(argp1);
18518 ecode2 = SWIG_AsVal_int(obj1, &val2);
18519 if (!SWIG_IsOK(ecode2)) {
18520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18521 }
18522 arg2 = static_cast< int >(val2);
18523 ecode3 = SWIG_AsVal_int(obj2, &val3);
18524 if (!SWIG_IsOK(ecode3)) {
18525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18526 }
18527 arg3 = static_cast< int >(val3);
18528 ecode4 = SWIG_AsVal_int(obj3, &val4);
18529 if (!SWIG_IsOK(ecode4)) {
18530 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18531 }
18532 arg4 = static_cast< int >(val4);
18533 ecode5 = SWIG_AsVal_int(obj4, &val5);
18534 if (!SWIG_IsOK(ecode5)) {
18535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18536 }
18537 arg5 = static_cast< int >(val5);
18538 {
18539 PyThreadState* __tstate = wxPyBeginAllowThreads();
18540 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18541 wxPyEndAllowThreads(__tstate);
18542 if (PyErr_Occurred()) SWIG_fail;
18543 }
18544 resultobj = SWIG_Py_Void();
18545 return resultobj;
18546 fail:
18547 return NULL;
18548 }
18549
18550
18551 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18552 PyObject *resultobj = 0;
18553 wxDC *arg1 = (wxDC *) 0 ;
18554 wxRect *arg2 = 0 ;
18555 void *argp1 = 0 ;
18556 int res1 = 0 ;
18557 wxRect temp2 ;
18558 PyObject * obj0 = 0 ;
18559 PyObject * obj1 = 0 ;
18560 char * kwnames[] = {
18561 (char *) "self",(char *) "rect", NULL
18562 };
18563
18564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18566 if (!SWIG_IsOK(res1)) {
18567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18568 }
18569 arg1 = reinterpret_cast< wxDC * >(argp1);
18570 {
18571 arg2 = &temp2;
18572 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18573 }
18574 {
18575 PyThreadState* __tstate = wxPyBeginAllowThreads();
18576 (arg1)->DrawEllipse((wxRect const &)*arg2);
18577 wxPyEndAllowThreads(__tstate);
18578 if (PyErr_Occurred()) SWIG_fail;
18579 }
18580 resultobj = SWIG_Py_Void();
18581 return resultobj;
18582 fail:
18583 return NULL;
18584 }
18585
18586
18587 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18588 PyObject *resultobj = 0;
18589 wxDC *arg1 = (wxDC *) 0 ;
18590 wxPoint *arg2 = 0 ;
18591 wxSize *arg3 = 0 ;
18592 void *argp1 = 0 ;
18593 int res1 = 0 ;
18594 wxPoint temp2 ;
18595 wxSize temp3 ;
18596 PyObject * obj0 = 0 ;
18597 PyObject * obj1 = 0 ;
18598 PyObject * obj2 = 0 ;
18599 char * kwnames[] = {
18600 (char *) "self",(char *) "pt",(char *) "sz", NULL
18601 };
18602
18603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18605 if (!SWIG_IsOK(res1)) {
18606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18607 }
18608 arg1 = reinterpret_cast< wxDC * >(argp1);
18609 {
18610 arg2 = &temp2;
18611 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18612 }
18613 {
18614 arg3 = &temp3;
18615 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18616 }
18617 {
18618 PyThreadState* __tstate = wxPyBeginAllowThreads();
18619 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18620 wxPyEndAllowThreads(__tstate);
18621 if (PyErr_Occurred()) SWIG_fail;
18622 }
18623 resultobj = SWIG_Py_Void();
18624 return resultobj;
18625 fail:
18626 return NULL;
18627 }
18628
18629
18630 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18631 PyObject *resultobj = 0;
18632 wxDC *arg1 = (wxDC *) 0 ;
18633 wxIcon *arg2 = 0 ;
18634 int arg3 ;
18635 int arg4 ;
18636 void *argp1 = 0 ;
18637 int res1 = 0 ;
18638 void *argp2 = 0 ;
18639 int res2 = 0 ;
18640 int val3 ;
18641 int ecode3 = 0 ;
18642 int val4 ;
18643 int ecode4 = 0 ;
18644 PyObject * obj0 = 0 ;
18645 PyObject * obj1 = 0 ;
18646 PyObject * obj2 = 0 ;
18647 PyObject * obj3 = 0 ;
18648 char * kwnames[] = {
18649 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18650 };
18651
18652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18654 if (!SWIG_IsOK(res1)) {
18655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18656 }
18657 arg1 = reinterpret_cast< wxDC * >(argp1);
18658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18659 if (!SWIG_IsOK(res2)) {
18660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18661 }
18662 if (!argp2) {
18663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18664 }
18665 arg2 = reinterpret_cast< wxIcon * >(argp2);
18666 ecode3 = SWIG_AsVal_int(obj2, &val3);
18667 if (!SWIG_IsOK(ecode3)) {
18668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18669 }
18670 arg3 = static_cast< int >(val3);
18671 ecode4 = SWIG_AsVal_int(obj3, &val4);
18672 if (!SWIG_IsOK(ecode4)) {
18673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18674 }
18675 arg4 = static_cast< int >(val4);
18676 {
18677 PyThreadState* __tstate = wxPyBeginAllowThreads();
18678 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 resultobj = SWIG_Py_Void();
18683 return resultobj;
18684 fail:
18685 return NULL;
18686 }
18687
18688
18689 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18690 PyObject *resultobj = 0;
18691 wxDC *arg1 = (wxDC *) 0 ;
18692 wxIcon *arg2 = 0 ;
18693 wxPoint *arg3 = 0 ;
18694 void *argp1 = 0 ;
18695 int res1 = 0 ;
18696 void *argp2 = 0 ;
18697 int res2 = 0 ;
18698 wxPoint temp3 ;
18699 PyObject * obj0 = 0 ;
18700 PyObject * obj1 = 0 ;
18701 PyObject * obj2 = 0 ;
18702 char * kwnames[] = {
18703 (char *) "self",(char *) "icon",(char *) "pt", NULL
18704 };
18705
18706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18708 if (!SWIG_IsOK(res1)) {
18709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18710 }
18711 arg1 = reinterpret_cast< wxDC * >(argp1);
18712 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18713 if (!SWIG_IsOK(res2)) {
18714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18715 }
18716 if (!argp2) {
18717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18718 }
18719 arg2 = reinterpret_cast< wxIcon * >(argp2);
18720 {
18721 arg3 = &temp3;
18722 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18723 }
18724 {
18725 PyThreadState* __tstate = wxPyBeginAllowThreads();
18726 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 resultobj = SWIG_Py_Void();
18731 return resultobj;
18732 fail:
18733 return NULL;
18734 }
18735
18736
18737 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj = 0;
18739 wxDC *arg1 = (wxDC *) 0 ;
18740 wxBitmap *arg2 = 0 ;
18741 int arg3 ;
18742 int arg4 ;
18743 bool arg5 = (bool) false ;
18744 void *argp1 = 0 ;
18745 int res1 = 0 ;
18746 void *argp2 = 0 ;
18747 int res2 = 0 ;
18748 int val3 ;
18749 int ecode3 = 0 ;
18750 int val4 ;
18751 int ecode4 = 0 ;
18752 bool val5 ;
18753 int ecode5 = 0 ;
18754 PyObject * obj0 = 0 ;
18755 PyObject * obj1 = 0 ;
18756 PyObject * obj2 = 0 ;
18757 PyObject * obj3 = 0 ;
18758 PyObject * obj4 = 0 ;
18759 char * kwnames[] = {
18760 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18761 };
18762
18763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18765 if (!SWIG_IsOK(res1)) {
18766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18767 }
18768 arg1 = reinterpret_cast< wxDC * >(argp1);
18769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18770 if (!SWIG_IsOK(res2)) {
18771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18772 }
18773 if (!argp2) {
18774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18775 }
18776 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18777 ecode3 = SWIG_AsVal_int(obj2, &val3);
18778 if (!SWIG_IsOK(ecode3)) {
18779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18780 }
18781 arg3 = static_cast< int >(val3);
18782 ecode4 = SWIG_AsVal_int(obj3, &val4);
18783 if (!SWIG_IsOK(ecode4)) {
18784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18785 }
18786 arg4 = static_cast< int >(val4);
18787 if (obj4) {
18788 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18789 if (!SWIG_IsOK(ecode5)) {
18790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18791 }
18792 arg5 = static_cast< bool >(val5);
18793 }
18794 {
18795 PyThreadState* __tstate = wxPyBeginAllowThreads();
18796 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18797 wxPyEndAllowThreads(__tstate);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 resultobj = SWIG_Py_Void();
18801 return resultobj;
18802 fail:
18803 return NULL;
18804 }
18805
18806
18807 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18808 PyObject *resultobj = 0;
18809 wxDC *arg1 = (wxDC *) 0 ;
18810 wxBitmap *arg2 = 0 ;
18811 wxPoint *arg3 = 0 ;
18812 bool arg4 = (bool) false ;
18813 void *argp1 = 0 ;
18814 int res1 = 0 ;
18815 void *argp2 = 0 ;
18816 int res2 = 0 ;
18817 wxPoint temp3 ;
18818 bool val4 ;
18819 int ecode4 = 0 ;
18820 PyObject * obj0 = 0 ;
18821 PyObject * obj1 = 0 ;
18822 PyObject * obj2 = 0 ;
18823 PyObject * obj3 = 0 ;
18824 char * kwnames[] = {
18825 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18826 };
18827
18828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18830 if (!SWIG_IsOK(res1)) {
18831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18832 }
18833 arg1 = reinterpret_cast< wxDC * >(argp1);
18834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18835 if (!SWIG_IsOK(res2)) {
18836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18837 }
18838 if (!argp2) {
18839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18840 }
18841 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18842 {
18843 arg3 = &temp3;
18844 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18845 }
18846 if (obj3) {
18847 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18848 if (!SWIG_IsOK(ecode4)) {
18849 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18850 }
18851 arg4 = static_cast< bool >(val4);
18852 }
18853 {
18854 PyThreadState* __tstate = wxPyBeginAllowThreads();
18855 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18856 wxPyEndAllowThreads(__tstate);
18857 if (PyErr_Occurred()) SWIG_fail;
18858 }
18859 resultobj = SWIG_Py_Void();
18860 return resultobj;
18861 fail:
18862 return NULL;
18863 }
18864
18865
18866 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18867 PyObject *resultobj = 0;
18868 wxDC *arg1 = (wxDC *) 0 ;
18869 wxString *arg2 = 0 ;
18870 int arg3 ;
18871 int arg4 ;
18872 void *argp1 = 0 ;
18873 int res1 = 0 ;
18874 bool temp2 = false ;
18875 int val3 ;
18876 int ecode3 = 0 ;
18877 int val4 ;
18878 int ecode4 = 0 ;
18879 PyObject * obj0 = 0 ;
18880 PyObject * obj1 = 0 ;
18881 PyObject * obj2 = 0 ;
18882 PyObject * obj3 = 0 ;
18883 char * kwnames[] = {
18884 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
18885 };
18886
18887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18889 if (!SWIG_IsOK(res1)) {
18890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
18891 }
18892 arg1 = reinterpret_cast< wxDC * >(argp1);
18893 {
18894 arg2 = wxString_in_helper(obj1);
18895 if (arg2 == NULL) SWIG_fail;
18896 temp2 = true;
18897 }
18898 ecode3 = SWIG_AsVal_int(obj2, &val3);
18899 if (!SWIG_IsOK(ecode3)) {
18900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
18901 }
18902 arg3 = static_cast< int >(val3);
18903 ecode4 = SWIG_AsVal_int(obj3, &val4);
18904 if (!SWIG_IsOK(ecode4)) {
18905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
18906 }
18907 arg4 = static_cast< int >(val4);
18908 {
18909 PyThreadState* __tstate = wxPyBeginAllowThreads();
18910 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
18911 wxPyEndAllowThreads(__tstate);
18912 if (PyErr_Occurred()) SWIG_fail;
18913 }
18914 resultobj = SWIG_Py_Void();
18915 {
18916 if (temp2)
18917 delete arg2;
18918 }
18919 return resultobj;
18920 fail:
18921 {
18922 if (temp2)
18923 delete arg2;
18924 }
18925 return NULL;
18926 }
18927
18928
18929 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18930 PyObject *resultobj = 0;
18931 wxDC *arg1 = (wxDC *) 0 ;
18932 wxString *arg2 = 0 ;
18933 wxPoint *arg3 = 0 ;
18934 void *argp1 = 0 ;
18935 int res1 = 0 ;
18936 bool temp2 = false ;
18937 wxPoint temp3 ;
18938 PyObject * obj0 = 0 ;
18939 PyObject * obj1 = 0 ;
18940 PyObject * obj2 = 0 ;
18941 char * kwnames[] = {
18942 (char *) "self",(char *) "text",(char *) "pt", NULL
18943 };
18944
18945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18947 if (!SWIG_IsOK(res1)) {
18948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18949 }
18950 arg1 = reinterpret_cast< wxDC * >(argp1);
18951 {
18952 arg2 = wxString_in_helper(obj1);
18953 if (arg2 == NULL) SWIG_fail;
18954 temp2 = true;
18955 }
18956 {
18957 arg3 = &temp3;
18958 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18959 }
18960 {
18961 PyThreadState* __tstate = wxPyBeginAllowThreads();
18962 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
18963 wxPyEndAllowThreads(__tstate);
18964 if (PyErr_Occurred()) SWIG_fail;
18965 }
18966 resultobj = SWIG_Py_Void();
18967 {
18968 if (temp2)
18969 delete arg2;
18970 }
18971 return resultobj;
18972 fail:
18973 {
18974 if (temp2)
18975 delete arg2;
18976 }
18977 return NULL;
18978 }
18979
18980
18981 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj = 0;
18983 wxDC *arg1 = (wxDC *) 0 ;
18984 wxString *arg2 = 0 ;
18985 int arg3 ;
18986 int arg4 ;
18987 double arg5 ;
18988 void *argp1 = 0 ;
18989 int res1 = 0 ;
18990 bool temp2 = false ;
18991 int val3 ;
18992 int ecode3 = 0 ;
18993 int val4 ;
18994 int ecode4 = 0 ;
18995 double val5 ;
18996 int ecode5 = 0 ;
18997 PyObject * obj0 = 0 ;
18998 PyObject * obj1 = 0 ;
18999 PyObject * obj2 = 0 ;
19000 PyObject * obj3 = 0 ;
19001 PyObject * obj4 = 0 ;
19002 char * kwnames[] = {
19003 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19004 };
19005
19006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19008 if (!SWIG_IsOK(res1)) {
19009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19010 }
19011 arg1 = reinterpret_cast< wxDC * >(argp1);
19012 {
19013 arg2 = wxString_in_helper(obj1);
19014 if (arg2 == NULL) SWIG_fail;
19015 temp2 = true;
19016 }
19017 ecode3 = SWIG_AsVal_int(obj2, &val3);
19018 if (!SWIG_IsOK(ecode3)) {
19019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19020 }
19021 arg3 = static_cast< int >(val3);
19022 ecode4 = SWIG_AsVal_int(obj3, &val4);
19023 if (!SWIG_IsOK(ecode4)) {
19024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19025 }
19026 arg4 = static_cast< int >(val4);
19027 ecode5 = SWIG_AsVal_double(obj4, &val5);
19028 if (!SWIG_IsOK(ecode5)) {
19029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19030 }
19031 arg5 = static_cast< double >(val5);
19032 {
19033 PyThreadState* __tstate = wxPyBeginAllowThreads();
19034 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19035 wxPyEndAllowThreads(__tstate);
19036 if (PyErr_Occurred()) SWIG_fail;
19037 }
19038 resultobj = SWIG_Py_Void();
19039 {
19040 if (temp2)
19041 delete arg2;
19042 }
19043 return resultobj;
19044 fail:
19045 {
19046 if (temp2)
19047 delete arg2;
19048 }
19049 return NULL;
19050 }
19051
19052
19053 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19054 PyObject *resultobj = 0;
19055 wxDC *arg1 = (wxDC *) 0 ;
19056 wxString *arg2 = 0 ;
19057 wxPoint *arg3 = 0 ;
19058 double arg4 ;
19059 void *argp1 = 0 ;
19060 int res1 = 0 ;
19061 bool temp2 = false ;
19062 wxPoint temp3 ;
19063 double val4 ;
19064 int ecode4 = 0 ;
19065 PyObject * obj0 = 0 ;
19066 PyObject * obj1 = 0 ;
19067 PyObject * obj2 = 0 ;
19068 PyObject * obj3 = 0 ;
19069 char * kwnames[] = {
19070 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19071 };
19072
19073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19075 if (!SWIG_IsOK(res1)) {
19076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19077 }
19078 arg1 = reinterpret_cast< wxDC * >(argp1);
19079 {
19080 arg2 = wxString_in_helper(obj1);
19081 if (arg2 == NULL) SWIG_fail;
19082 temp2 = true;
19083 }
19084 {
19085 arg3 = &temp3;
19086 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19087 }
19088 ecode4 = SWIG_AsVal_double(obj3, &val4);
19089 if (!SWIG_IsOK(ecode4)) {
19090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19091 }
19092 arg4 = static_cast< double >(val4);
19093 {
19094 PyThreadState* __tstate = wxPyBeginAllowThreads();
19095 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19096 wxPyEndAllowThreads(__tstate);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
19099 resultobj = SWIG_Py_Void();
19100 {
19101 if (temp2)
19102 delete arg2;
19103 }
19104 return resultobj;
19105 fail:
19106 {
19107 if (temp2)
19108 delete arg2;
19109 }
19110 return NULL;
19111 }
19112
19113
19114 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19115 PyObject *resultobj = 0;
19116 wxDC *arg1 = (wxDC *) 0 ;
19117 int arg2 ;
19118 int arg3 ;
19119 int arg4 ;
19120 int arg5 ;
19121 wxDC *arg6 = (wxDC *) 0 ;
19122 int arg7 ;
19123 int arg8 ;
19124 int arg9 = (int) wxCOPY ;
19125 bool arg10 = (bool) false ;
19126 int arg11 = (int) -1 ;
19127 int arg12 = (int) -1 ;
19128 bool result;
19129 void *argp1 = 0 ;
19130 int res1 = 0 ;
19131 int val2 ;
19132 int ecode2 = 0 ;
19133 int val3 ;
19134 int ecode3 = 0 ;
19135 int val4 ;
19136 int ecode4 = 0 ;
19137 int val5 ;
19138 int ecode5 = 0 ;
19139 void *argp6 = 0 ;
19140 int res6 = 0 ;
19141 int val7 ;
19142 int ecode7 = 0 ;
19143 int val8 ;
19144 int ecode8 = 0 ;
19145 int val9 ;
19146 int ecode9 = 0 ;
19147 bool val10 ;
19148 int ecode10 = 0 ;
19149 int val11 ;
19150 int ecode11 = 0 ;
19151 int val12 ;
19152 int ecode12 = 0 ;
19153 PyObject * obj0 = 0 ;
19154 PyObject * obj1 = 0 ;
19155 PyObject * obj2 = 0 ;
19156 PyObject * obj3 = 0 ;
19157 PyObject * obj4 = 0 ;
19158 PyObject * obj5 = 0 ;
19159 PyObject * obj6 = 0 ;
19160 PyObject * obj7 = 0 ;
19161 PyObject * obj8 = 0 ;
19162 PyObject * obj9 = 0 ;
19163 PyObject * obj10 = 0 ;
19164 PyObject * obj11 = 0 ;
19165 char * kwnames[] = {
19166 (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
19167 };
19168
19169 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;
19170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19171 if (!SWIG_IsOK(res1)) {
19172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19173 }
19174 arg1 = reinterpret_cast< wxDC * >(argp1);
19175 ecode2 = SWIG_AsVal_int(obj1, &val2);
19176 if (!SWIG_IsOK(ecode2)) {
19177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19178 }
19179 arg2 = static_cast< int >(val2);
19180 ecode3 = SWIG_AsVal_int(obj2, &val3);
19181 if (!SWIG_IsOK(ecode3)) {
19182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19183 }
19184 arg3 = static_cast< int >(val3);
19185 ecode4 = SWIG_AsVal_int(obj3, &val4);
19186 if (!SWIG_IsOK(ecode4)) {
19187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19188 }
19189 arg4 = static_cast< int >(val4);
19190 ecode5 = SWIG_AsVal_int(obj4, &val5);
19191 if (!SWIG_IsOK(ecode5)) {
19192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19193 }
19194 arg5 = static_cast< int >(val5);
19195 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19196 if (!SWIG_IsOK(res6)) {
19197 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19198 }
19199 arg6 = reinterpret_cast< wxDC * >(argp6);
19200 ecode7 = SWIG_AsVal_int(obj6, &val7);
19201 if (!SWIG_IsOK(ecode7)) {
19202 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19203 }
19204 arg7 = static_cast< int >(val7);
19205 ecode8 = SWIG_AsVal_int(obj7, &val8);
19206 if (!SWIG_IsOK(ecode8)) {
19207 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19208 }
19209 arg8 = static_cast< int >(val8);
19210 if (obj8) {
19211 ecode9 = SWIG_AsVal_int(obj8, &val9);
19212 if (!SWIG_IsOK(ecode9)) {
19213 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19214 }
19215 arg9 = static_cast< int >(val9);
19216 }
19217 if (obj9) {
19218 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19219 if (!SWIG_IsOK(ecode10)) {
19220 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19221 }
19222 arg10 = static_cast< bool >(val10);
19223 }
19224 if (obj10) {
19225 ecode11 = SWIG_AsVal_int(obj10, &val11);
19226 if (!SWIG_IsOK(ecode11)) {
19227 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19228 }
19229 arg11 = static_cast< int >(val11);
19230 }
19231 if (obj11) {
19232 ecode12 = SWIG_AsVal_int(obj11, &val12);
19233 if (!SWIG_IsOK(ecode12)) {
19234 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19235 }
19236 arg12 = static_cast< int >(val12);
19237 }
19238 {
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 {
19245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19246 }
19247 return resultobj;
19248 fail:
19249 return NULL;
19250 }
19251
19252
19253 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19254 PyObject *resultobj = 0;
19255 wxDC *arg1 = (wxDC *) 0 ;
19256 wxPoint *arg2 = 0 ;
19257 wxSize *arg3 = 0 ;
19258 wxDC *arg4 = (wxDC *) 0 ;
19259 wxPoint *arg5 = 0 ;
19260 int arg6 = (int) wxCOPY ;
19261 bool arg7 = (bool) false ;
19262 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19263 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19264 bool result;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 wxPoint temp2 ;
19268 wxSize temp3 ;
19269 void *argp4 = 0 ;
19270 int res4 = 0 ;
19271 wxPoint temp5 ;
19272 int val6 ;
19273 int ecode6 = 0 ;
19274 bool val7 ;
19275 int ecode7 = 0 ;
19276 wxPoint temp8 ;
19277 PyObject * obj0 = 0 ;
19278 PyObject * obj1 = 0 ;
19279 PyObject * obj2 = 0 ;
19280 PyObject * obj3 = 0 ;
19281 PyObject * obj4 = 0 ;
19282 PyObject * obj5 = 0 ;
19283 PyObject * obj6 = 0 ;
19284 PyObject * obj7 = 0 ;
19285 char * kwnames[] = {
19286 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19287 };
19288
19289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19291 if (!SWIG_IsOK(res1)) {
19292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19293 }
19294 arg1 = reinterpret_cast< wxDC * >(argp1);
19295 {
19296 arg2 = &temp2;
19297 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19298 }
19299 {
19300 arg3 = &temp3;
19301 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19302 }
19303 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19304 if (!SWIG_IsOK(res4)) {
19305 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19306 }
19307 arg4 = reinterpret_cast< wxDC * >(argp4);
19308 {
19309 arg5 = &temp5;
19310 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19311 }
19312 if (obj5) {
19313 ecode6 = SWIG_AsVal_int(obj5, &val6);
19314 if (!SWIG_IsOK(ecode6)) {
19315 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19316 }
19317 arg6 = static_cast< int >(val6);
19318 }
19319 if (obj6) {
19320 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19321 if (!SWIG_IsOK(ecode7)) {
19322 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19323 }
19324 arg7 = static_cast< bool >(val7);
19325 }
19326 if (obj7) {
19327 {
19328 arg8 = &temp8;
19329 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19330 }
19331 }
19332 {
19333 PyThreadState* __tstate = wxPyBeginAllowThreads();
19334 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19335 wxPyEndAllowThreads(__tstate);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
19338 {
19339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19340 }
19341 return resultobj;
19342 fail:
19343 return NULL;
19344 }
19345
19346
19347 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19348 PyObject *resultobj = 0;
19349 wxDC *arg1 = (wxDC *) 0 ;
19350 int arg2 ;
19351 int arg3 ;
19352 int arg4 ;
19353 int arg5 ;
19354 void *argp1 = 0 ;
19355 int res1 = 0 ;
19356 int val2 ;
19357 int ecode2 = 0 ;
19358 int val3 ;
19359 int ecode3 = 0 ;
19360 int val4 ;
19361 int ecode4 = 0 ;
19362 int val5 ;
19363 int ecode5 = 0 ;
19364 PyObject * obj0 = 0 ;
19365 PyObject * obj1 = 0 ;
19366 PyObject * obj2 = 0 ;
19367 PyObject * obj3 = 0 ;
19368 PyObject * obj4 = 0 ;
19369 char * kwnames[] = {
19370 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19371 };
19372
19373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19375 if (!SWIG_IsOK(res1)) {
19376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19377 }
19378 arg1 = reinterpret_cast< wxDC * >(argp1);
19379 ecode2 = SWIG_AsVal_int(obj1, &val2);
19380 if (!SWIG_IsOK(ecode2)) {
19381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19382 }
19383 arg2 = static_cast< int >(val2);
19384 ecode3 = SWIG_AsVal_int(obj2, &val3);
19385 if (!SWIG_IsOK(ecode3)) {
19386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19387 }
19388 arg3 = static_cast< int >(val3);
19389 ecode4 = SWIG_AsVal_int(obj3, &val4);
19390 if (!SWIG_IsOK(ecode4)) {
19391 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19392 }
19393 arg4 = static_cast< int >(val4);
19394 ecode5 = SWIG_AsVal_int(obj4, &val5);
19395 if (!SWIG_IsOK(ecode5)) {
19396 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19397 }
19398 arg5 = static_cast< int >(val5);
19399 {
19400 PyThreadState* __tstate = wxPyBeginAllowThreads();
19401 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19402 wxPyEndAllowThreads(__tstate);
19403 if (PyErr_Occurred()) SWIG_fail;
19404 }
19405 resultobj = SWIG_Py_Void();
19406 return resultobj;
19407 fail:
19408 return NULL;
19409 }
19410
19411
19412 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19413 PyObject *resultobj = 0;
19414 wxDC *arg1 = (wxDC *) 0 ;
19415 wxPoint *arg2 = 0 ;
19416 wxSize *arg3 = 0 ;
19417 void *argp1 = 0 ;
19418 int res1 = 0 ;
19419 wxPoint temp2 ;
19420 wxSize temp3 ;
19421 PyObject * obj0 = 0 ;
19422 PyObject * obj1 = 0 ;
19423 PyObject * obj2 = 0 ;
19424 char * kwnames[] = {
19425 (char *) "self",(char *) "pt",(char *) "sz", NULL
19426 };
19427
19428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19430 if (!SWIG_IsOK(res1)) {
19431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19432 }
19433 arg1 = reinterpret_cast< wxDC * >(argp1);
19434 {
19435 arg2 = &temp2;
19436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19437 }
19438 {
19439 arg3 = &temp3;
19440 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19441 }
19442 {
19443 PyThreadState* __tstate = wxPyBeginAllowThreads();
19444 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19445 wxPyEndAllowThreads(__tstate);
19446 if (PyErr_Occurred()) SWIG_fail;
19447 }
19448 resultobj = SWIG_Py_Void();
19449 return resultobj;
19450 fail:
19451 return NULL;
19452 }
19453
19454
19455 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19456 PyObject *resultobj = 0;
19457 wxDC *arg1 = (wxDC *) 0 ;
19458 wxRegion *arg2 = 0 ;
19459 void *argp1 = 0 ;
19460 int res1 = 0 ;
19461 void *argp2 = 0 ;
19462 int res2 = 0 ;
19463 PyObject * obj0 = 0 ;
19464 PyObject * obj1 = 0 ;
19465 char * kwnames[] = {
19466 (char *) "self",(char *) "region", NULL
19467 };
19468
19469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19471 if (!SWIG_IsOK(res1)) {
19472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19473 }
19474 arg1 = reinterpret_cast< wxDC * >(argp1);
19475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19476 if (!SWIG_IsOK(res2)) {
19477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19478 }
19479 if (!argp2) {
19480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19481 }
19482 arg2 = reinterpret_cast< wxRegion * >(argp2);
19483 {
19484 PyThreadState* __tstate = wxPyBeginAllowThreads();
19485 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19486 wxPyEndAllowThreads(__tstate);
19487 if (PyErr_Occurred()) SWIG_fail;
19488 }
19489 resultobj = SWIG_Py_Void();
19490 return resultobj;
19491 fail:
19492 return NULL;
19493 }
19494
19495
19496 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19497 PyObject *resultobj = 0;
19498 wxDC *arg1 = (wxDC *) 0 ;
19499 wxRect *arg2 = 0 ;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 wxRect temp2 ;
19503 PyObject * obj0 = 0 ;
19504 PyObject * obj1 = 0 ;
19505 char * kwnames[] = {
19506 (char *) "self",(char *) "rect", NULL
19507 };
19508
19509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19511 if (!SWIG_IsOK(res1)) {
19512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19513 }
19514 arg1 = reinterpret_cast< wxDC * >(argp1);
19515 {
19516 arg2 = &temp2;
19517 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19518 }
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19522 wxPyEndAllowThreads(__tstate);
19523 if (PyErr_Occurred()) SWIG_fail;
19524 }
19525 resultobj = SWIG_Py_Void();
19526 return resultobj;
19527 fail:
19528 return NULL;
19529 }
19530
19531
19532 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19533 PyObject *resultobj = 0;
19534 wxDC *arg1 = (wxDC *) 0 ;
19535 int arg2 ;
19536 wxPoint *arg3 = (wxPoint *) 0 ;
19537 int arg4 = (int) 0 ;
19538 int arg5 = (int) 0 ;
19539 void *argp1 = 0 ;
19540 int res1 = 0 ;
19541 int val4 ;
19542 int ecode4 = 0 ;
19543 int val5 ;
19544 int ecode5 = 0 ;
19545 PyObject * obj0 = 0 ;
19546 PyObject * obj1 = 0 ;
19547 PyObject * obj2 = 0 ;
19548 PyObject * obj3 = 0 ;
19549 char * kwnames[] = {
19550 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19551 };
19552
19553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19555 if (!SWIG_IsOK(res1)) {
19556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19557 }
19558 arg1 = reinterpret_cast< wxDC * >(argp1);
19559 {
19560 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19561 if (arg3 == NULL) SWIG_fail;
19562 }
19563 if (obj2) {
19564 ecode4 = SWIG_AsVal_int(obj2, &val4);
19565 if (!SWIG_IsOK(ecode4)) {
19566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19567 }
19568 arg4 = static_cast< int >(val4);
19569 }
19570 if (obj3) {
19571 ecode5 = SWIG_AsVal_int(obj3, &val5);
19572 if (!SWIG_IsOK(ecode5)) {
19573 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19574 }
19575 arg5 = static_cast< int >(val5);
19576 }
19577 {
19578 PyThreadState* __tstate = wxPyBeginAllowThreads();
19579 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19580 wxPyEndAllowThreads(__tstate);
19581 if (PyErr_Occurred()) SWIG_fail;
19582 }
19583 resultobj = SWIG_Py_Void();
19584 {
19585 if (arg3) delete [] arg3;
19586 }
19587 return resultobj;
19588 fail:
19589 {
19590 if (arg3) delete [] arg3;
19591 }
19592 return NULL;
19593 }
19594
19595
19596 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19597 PyObject *resultobj = 0;
19598 wxDC *arg1 = (wxDC *) 0 ;
19599 int arg2 ;
19600 wxPoint *arg3 = (wxPoint *) 0 ;
19601 int arg4 = (int) 0 ;
19602 int arg5 = (int) 0 ;
19603 int arg6 = (int) wxODDEVEN_RULE ;
19604 void *argp1 = 0 ;
19605 int res1 = 0 ;
19606 int val4 ;
19607 int ecode4 = 0 ;
19608 int val5 ;
19609 int ecode5 = 0 ;
19610 int val6 ;
19611 int ecode6 = 0 ;
19612 PyObject * obj0 = 0 ;
19613 PyObject * obj1 = 0 ;
19614 PyObject * obj2 = 0 ;
19615 PyObject * obj3 = 0 ;
19616 PyObject * obj4 = 0 ;
19617 char * kwnames[] = {
19618 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19619 };
19620
19621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19623 if (!SWIG_IsOK(res1)) {
19624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19625 }
19626 arg1 = reinterpret_cast< wxDC * >(argp1);
19627 {
19628 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19629 if (arg3 == NULL) SWIG_fail;
19630 }
19631 if (obj2) {
19632 ecode4 = SWIG_AsVal_int(obj2, &val4);
19633 if (!SWIG_IsOK(ecode4)) {
19634 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19635 }
19636 arg4 = static_cast< int >(val4);
19637 }
19638 if (obj3) {
19639 ecode5 = SWIG_AsVal_int(obj3, &val5);
19640 if (!SWIG_IsOK(ecode5)) {
19641 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19642 }
19643 arg5 = static_cast< int >(val5);
19644 }
19645 if (obj4) {
19646 ecode6 = SWIG_AsVal_int(obj4, &val6);
19647 if (!SWIG_IsOK(ecode6)) {
19648 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19649 }
19650 arg6 = static_cast< int >(val6);
19651 }
19652 {
19653 PyThreadState* __tstate = wxPyBeginAllowThreads();
19654 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19655 wxPyEndAllowThreads(__tstate);
19656 if (PyErr_Occurred()) SWIG_fail;
19657 }
19658 resultobj = SWIG_Py_Void();
19659 {
19660 if (arg3) delete [] arg3;
19661 }
19662 return resultobj;
19663 fail:
19664 {
19665 if (arg3) delete [] arg3;
19666 }
19667 return NULL;
19668 }
19669
19670
19671 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19672 PyObject *resultobj = 0;
19673 wxDC *arg1 = (wxDC *) 0 ;
19674 wxString *arg2 = 0 ;
19675 wxRect *arg3 = 0 ;
19676 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19677 int arg5 = (int) -1 ;
19678 void *argp1 = 0 ;
19679 int res1 = 0 ;
19680 bool temp2 = false ;
19681 wxRect temp3 ;
19682 int val4 ;
19683 int ecode4 = 0 ;
19684 int val5 ;
19685 int ecode5 = 0 ;
19686 PyObject * obj0 = 0 ;
19687 PyObject * obj1 = 0 ;
19688 PyObject * obj2 = 0 ;
19689 PyObject * obj3 = 0 ;
19690 PyObject * obj4 = 0 ;
19691 char * kwnames[] = {
19692 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19693 };
19694
19695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19697 if (!SWIG_IsOK(res1)) {
19698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19699 }
19700 arg1 = reinterpret_cast< wxDC * >(argp1);
19701 {
19702 arg2 = wxString_in_helper(obj1);
19703 if (arg2 == NULL) SWIG_fail;
19704 temp2 = true;
19705 }
19706 {
19707 arg3 = &temp3;
19708 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19709 }
19710 if (obj3) {
19711 ecode4 = SWIG_AsVal_int(obj3, &val4);
19712 if (!SWIG_IsOK(ecode4)) {
19713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19714 }
19715 arg4 = static_cast< int >(val4);
19716 }
19717 if (obj4) {
19718 ecode5 = SWIG_AsVal_int(obj4, &val5);
19719 if (!SWIG_IsOK(ecode5)) {
19720 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19721 }
19722 arg5 = static_cast< int >(val5);
19723 }
19724 {
19725 PyThreadState* __tstate = wxPyBeginAllowThreads();
19726 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19727 wxPyEndAllowThreads(__tstate);
19728 if (PyErr_Occurred()) SWIG_fail;
19729 }
19730 resultobj = SWIG_Py_Void();
19731 {
19732 if (temp2)
19733 delete arg2;
19734 }
19735 return resultobj;
19736 fail:
19737 {
19738 if (temp2)
19739 delete arg2;
19740 }
19741 return NULL;
19742 }
19743
19744
19745 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19746 PyObject *resultobj = 0;
19747 wxDC *arg1 = (wxDC *) 0 ;
19748 wxString *arg2 = 0 ;
19749 wxBitmap *arg3 = 0 ;
19750 wxRect *arg4 = 0 ;
19751 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19752 int arg6 = (int) -1 ;
19753 wxRect result;
19754 void *argp1 = 0 ;
19755 int res1 = 0 ;
19756 bool temp2 = false ;
19757 void *argp3 = 0 ;
19758 int res3 = 0 ;
19759 wxRect temp4 ;
19760 int val5 ;
19761 int ecode5 = 0 ;
19762 int val6 ;
19763 int ecode6 = 0 ;
19764 PyObject * obj0 = 0 ;
19765 PyObject * obj1 = 0 ;
19766 PyObject * obj2 = 0 ;
19767 PyObject * obj3 = 0 ;
19768 PyObject * obj4 = 0 ;
19769 PyObject * obj5 = 0 ;
19770 char * kwnames[] = {
19771 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19772 };
19773
19774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19776 if (!SWIG_IsOK(res1)) {
19777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19778 }
19779 arg1 = reinterpret_cast< wxDC * >(argp1);
19780 {
19781 arg2 = wxString_in_helper(obj1);
19782 if (arg2 == NULL) SWIG_fail;
19783 temp2 = true;
19784 }
19785 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19786 if (!SWIG_IsOK(res3)) {
19787 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19788 }
19789 if (!argp3) {
19790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19791 }
19792 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19793 {
19794 arg4 = &temp4;
19795 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19796 }
19797 if (obj4) {
19798 ecode5 = SWIG_AsVal_int(obj4, &val5);
19799 if (!SWIG_IsOK(ecode5)) {
19800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19801 }
19802 arg5 = static_cast< int >(val5);
19803 }
19804 if (obj5) {
19805 ecode6 = SWIG_AsVal_int(obj5, &val6);
19806 if (!SWIG_IsOK(ecode6)) {
19807 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19808 }
19809 arg6 = static_cast< int >(val6);
19810 }
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19818 {
19819 if (temp2)
19820 delete arg2;
19821 }
19822 return resultobj;
19823 fail:
19824 {
19825 if (temp2)
19826 delete arg2;
19827 }
19828 return NULL;
19829 }
19830
19831
19832 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19833 PyObject *resultobj = 0;
19834 wxDC *arg1 = (wxDC *) 0 ;
19835 int arg2 ;
19836 wxPoint *arg3 = (wxPoint *) 0 ;
19837 void *argp1 = 0 ;
19838 int res1 = 0 ;
19839 PyObject * obj0 = 0 ;
19840 PyObject * obj1 = 0 ;
19841 char * kwnames[] = {
19842 (char *) "self",(char *) "points", NULL
19843 };
19844
19845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19847 if (!SWIG_IsOK(res1)) {
19848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19849 }
19850 arg1 = reinterpret_cast< wxDC * >(argp1);
19851 {
19852 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19853 if (arg3 == NULL) SWIG_fail;
19854 }
19855 {
19856 PyThreadState* __tstate = wxPyBeginAllowThreads();
19857 (arg1)->DrawSpline(arg2,arg3);
19858 wxPyEndAllowThreads(__tstate);
19859 if (PyErr_Occurred()) SWIG_fail;
19860 }
19861 resultobj = SWIG_Py_Void();
19862 {
19863 if (arg3) delete [] arg3;
19864 }
19865 return resultobj;
19866 fail:
19867 {
19868 if (arg3) delete [] arg3;
19869 }
19870 return NULL;
19871 }
19872
19873
19874 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19875 PyObject *resultobj = 0;
19876 wxDC *arg1 = (wxDC *) 0 ;
19877 void *argp1 = 0 ;
19878 int res1 = 0 ;
19879 PyObject *swig_obj[1] ;
19880
19881 if (!args) SWIG_fail;
19882 swig_obj[0] = args;
19883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19884 if (!SWIG_IsOK(res1)) {
19885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
19886 }
19887 arg1 = reinterpret_cast< wxDC * >(argp1);
19888 {
19889 PyThreadState* __tstate = wxPyBeginAllowThreads();
19890 (arg1)->Clear();
19891 wxPyEndAllowThreads(__tstate);
19892 if (PyErr_Occurred()) SWIG_fail;
19893 }
19894 resultobj = SWIG_Py_Void();
19895 return resultobj;
19896 fail:
19897 return NULL;
19898 }
19899
19900
19901 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19902 PyObject *resultobj = 0;
19903 wxDC *arg1 = (wxDC *) 0 ;
19904 wxString *arg2 = 0 ;
19905 bool result;
19906 void *argp1 = 0 ;
19907 int res1 = 0 ;
19908 bool temp2 = false ;
19909 PyObject * obj0 = 0 ;
19910 PyObject * obj1 = 0 ;
19911 char * kwnames[] = {
19912 (char *) "self",(char *) "message", NULL
19913 };
19914
19915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
19916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19917 if (!SWIG_IsOK(res1)) {
19918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19919 }
19920 arg1 = reinterpret_cast< wxDC * >(argp1);
19921 {
19922 arg2 = wxString_in_helper(obj1);
19923 if (arg2 == NULL) SWIG_fail;
19924 temp2 = true;
19925 }
19926 {
19927 PyThreadState* __tstate = wxPyBeginAllowThreads();
19928 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
19929 wxPyEndAllowThreads(__tstate);
19930 if (PyErr_Occurred()) SWIG_fail;
19931 }
19932 {
19933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19934 }
19935 {
19936 if (temp2)
19937 delete arg2;
19938 }
19939 return resultobj;
19940 fail:
19941 {
19942 if (temp2)
19943 delete arg2;
19944 }
19945 return NULL;
19946 }
19947
19948
19949 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19950 PyObject *resultobj = 0;
19951 wxDC *arg1 = (wxDC *) 0 ;
19952 void *argp1 = 0 ;
19953 int res1 = 0 ;
19954 PyObject *swig_obj[1] ;
19955
19956 if (!args) SWIG_fail;
19957 swig_obj[0] = args;
19958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19959 if (!SWIG_IsOK(res1)) {
19960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19961 }
19962 arg1 = reinterpret_cast< wxDC * >(argp1);
19963 {
19964 PyThreadState* __tstate = wxPyBeginAllowThreads();
19965 (arg1)->EndDoc();
19966 wxPyEndAllowThreads(__tstate);
19967 if (PyErr_Occurred()) SWIG_fail;
19968 }
19969 resultobj = SWIG_Py_Void();
19970 return resultobj;
19971 fail:
19972 return NULL;
19973 }
19974
19975
19976 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19977 PyObject *resultobj = 0;
19978 wxDC *arg1 = (wxDC *) 0 ;
19979 void *argp1 = 0 ;
19980 int res1 = 0 ;
19981 PyObject *swig_obj[1] ;
19982
19983 if (!args) SWIG_fail;
19984 swig_obj[0] = args;
19985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19986 if (!SWIG_IsOK(res1)) {
19987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
19988 }
19989 arg1 = reinterpret_cast< wxDC * >(argp1);
19990 {
19991 PyThreadState* __tstate = wxPyBeginAllowThreads();
19992 (arg1)->StartPage();
19993 wxPyEndAllowThreads(__tstate);
19994 if (PyErr_Occurred()) SWIG_fail;
19995 }
19996 resultobj = SWIG_Py_Void();
19997 return resultobj;
19998 fail:
19999 return NULL;
20000 }
20001
20002
20003 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20004 PyObject *resultobj = 0;
20005 wxDC *arg1 = (wxDC *) 0 ;
20006 void *argp1 = 0 ;
20007 int res1 = 0 ;
20008 PyObject *swig_obj[1] ;
20009
20010 if (!args) SWIG_fail;
20011 swig_obj[0] = args;
20012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20013 if (!SWIG_IsOK(res1)) {
20014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20015 }
20016 arg1 = reinterpret_cast< wxDC * >(argp1);
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 (arg1)->EndPage();
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 resultobj = SWIG_Py_Void();
20024 return resultobj;
20025 fail:
20026 return NULL;
20027 }
20028
20029
20030 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20031 PyObject *resultobj = 0;
20032 wxDC *arg1 = (wxDC *) 0 ;
20033 wxFont *arg2 = 0 ;
20034 void *argp1 = 0 ;
20035 int res1 = 0 ;
20036 void *argp2 = 0 ;
20037 int res2 = 0 ;
20038 PyObject * obj0 = 0 ;
20039 PyObject * obj1 = 0 ;
20040 char * kwnames[] = {
20041 (char *) "self",(char *) "font", NULL
20042 };
20043
20044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20046 if (!SWIG_IsOK(res1)) {
20047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20048 }
20049 arg1 = reinterpret_cast< wxDC * >(argp1);
20050 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20051 if (!SWIG_IsOK(res2)) {
20052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20053 }
20054 if (!argp2) {
20055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20056 }
20057 arg2 = reinterpret_cast< wxFont * >(argp2);
20058 {
20059 PyThreadState* __tstate = wxPyBeginAllowThreads();
20060 (arg1)->SetFont((wxFont const &)*arg2);
20061 wxPyEndAllowThreads(__tstate);
20062 if (PyErr_Occurred()) SWIG_fail;
20063 }
20064 resultobj = SWIG_Py_Void();
20065 return resultobj;
20066 fail:
20067 return NULL;
20068 }
20069
20070
20071 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20072 PyObject *resultobj = 0;
20073 wxDC *arg1 = (wxDC *) 0 ;
20074 wxPen *arg2 = 0 ;
20075 void *argp1 = 0 ;
20076 int res1 = 0 ;
20077 void *argp2 = 0 ;
20078 int res2 = 0 ;
20079 PyObject * obj0 = 0 ;
20080 PyObject * obj1 = 0 ;
20081 char * kwnames[] = {
20082 (char *) "self",(char *) "pen", NULL
20083 };
20084
20085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20087 if (!SWIG_IsOK(res1)) {
20088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20089 }
20090 arg1 = reinterpret_cast< wxDC * >(argp1);
20091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20092 if (!SWIG_IsOK(res2)) {
20093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20094 }
20095 if (!argp2) {
20096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20097 }
20098 arg2 = reinterpret_cast< wxPen * >(argp2);
20099 {
20100 PyThreadState* __tstate = wxPyBeginAllowThreads();
20101 (arg1)->SetPen((wxPen const &)*arg2);
20102 wxPyEndAllowThreads(__tstate);
20103 if (PyErr_Occurred()) SWIG_fail;
20104 }
20105 resultobj = SWIG_Py_Void();
20106 return resultobj;
20107 fail:
20108 return NULL;
20109 }
20110
20111
20112 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20113 PyObject *resultobj = 0;
20114 wxDC *arg1 = (wxDC *) 0 ;
20115 wxBrush *arg2 = 0 ;
20116 void *argp1 = 0 ;
20117 int res1 = 0 ;
20118 void *argp2 = 0 ;
20119 int res2 = 0 ;
20120 PyObject * obj0 = 0 ;
20121 PyObject * obj1 = 0 ;
20122 char * kwnames[] = {
20123 (char *) "self",(char *) "brush", NULL
20124 };
20125
20126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20128 if (!SWIG_IsOK(res1)) {
20129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20130 }
20131 arg1 = reinterpret_cast< wxDC * >(argp1);
20132 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20133 if (!SWIG_IsOK(res2)) {
20134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20135 }
20136 if (!argp2) {
20137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20138 }
20139 arg2 = reinterpret_cast< wxBrush * >(argp2);
20140 {
20141 PyThreadState* __tstate = wxPyBeginAllowThreads();
20142 (arg1)->SetBrush((wxBrush const &)*arg2);
20143 wxPyEndAllowThreads(__tstate);
20144 if (PyErr_Occurred()) SWIG_fail;
20145 }
20146 resultobj = SWIG_Py_Void();
20147 return resultobj;
20148 fail:
20149 return NULL;
20150 }
20151
20152
20153 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj = 0;
20155 wxDC *arg1 = (wxDC *) 0 ;
20156 wxBrush *arg2 = 0 ;
20157 void *argp1 = 0 ;
20158 int res1 = 0 ;
20159 void *argp2 = 0 ;
20160 int res2 = 0 ;
20161 PyObject * obj0 = 0 ;
20162 PyObject * obj1 = 0 ;
20163 char * kwnames[] = {
20164 (char *) "self",(char *) "brush", NULL
20165 };
20166
20167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20169 if (!SWIG_IsOK(res1)) {
20170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20171 }
20172 arg1 = reinterpret_cast< wxDC * >(argp1);
20173 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20174 if (!SWIG_IsOK(res2)) {
20175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20176 }
20177 if (!argp2) {
20178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20179 }
20180 arg2 = reinterpret_cast< wxBrush * >(argp2);
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 (arg1)->SetBackground((wxBrush const &)*arg2);
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 resultobj = SWIG_Py_Void();
20188 return resultobj;
20189 fail:
20190 return NULL;
20191 }
20192
20193
20194 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20195 PyObject *resultobj = 0;
20196 wxDC *arg1 = (wxDC *) 0 ;
20197 int arg2 ;
20198 void *argp1 = 0 ;
20199 int res1 = 0 ;
20200 int val2 ;
20201 int ecode2 = 0 ;
20202 PyObject * obj0 = 0 ;
20203 PyObject * obj1 = 0 ;
20204 char * kwnames[] = {
20205 (char *) "self",(char *) "mode", NULL
20206 };
20207
20208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20210 if (!SWIG_IsOK(res1)) {
20211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20212 }
20213 arg1 = reinterpret_cast< wxDC * >(argp1);
20214 ecode2 = SWIG_AsVal_int(obj1, &val2);
20215 if (!SWIG_IsOK(ecode2)) {
20216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20217 }
20218 arg2 = static_cast< int >(val2);
20219 {
20220 PyThreadState* __tstate = wxPyBeginAllowThreads();
20221 (arg1)->SetBackgroundMode(arg2);
20222 wxPyEndAllowThreads(__tstate);
20223 if (PyErr_Occurred()) SWIG_fail;
20224 }
20225 resultobj = SWIG_Py_Void();
20226 return resultobj;
20227 fail:
20228 return NULL;
20229 }
20230
20231
20232 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj = 0;
20234 wxDC *arg1 = (wxDC *) 0 ;
20235 wxPalette *arg2 = 0 ;
20236 void *argp1 = 0 ;
20237 int res1 = 0 ;
20238 void *argp2 = 0 ;
20239 int res2 = 0 ;
20240 PyObject * obj0 = 0 ;
20241 PyObject * obj1 = 0 ;
20242 char * kwnames[] = {
20243 (char *) "self",(char *) "palette", NULL
20244 };
20245
20246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20248 if (!SWIG_IsOK(res1)) {
20249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20250 }
20251 arg1 = reinterpret_cast< wxDC * >(argp1);
20252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20253 if (!SWIG_IsOK(res2)) {
20254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20255 }
20256 if (!argp2) {
20257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20258 }
20259 arg2 = reinterpret_cast< wxPalette * >(argp2);
20260 {
20261 PyThreadState* __tstate = wxPyBeginAllowThreads();
20262 (arg1)->SetPalette((wxPalette const &)*arg2);
20263 wxPyEndAllowThreads(__tstate);
20264 if (PyErr_Occurred()) SWIG_fail;
20265 }
20266 resultobj = SWIG_Py_Void();
20267 return resultobj;
20268 fail:
20269 return NULL;
20270 }
20271
20272
20273 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20274 PyObject *resultobj = 0;
20275 wxDC *arg1 = (wxDC *) 0 ;
20276 void *argp1 = 0 ;
20277 int res1 = 0 ;
20278 PyObject *swig_obj[1] ;
20279
20280 if (!args) SWIG_fail;
20281 swig_obj[0] = args;
20282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20283 if (!SWIG_IsOK(res1)) {
20284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20285 }
20286 arg1 = reinterpret_cast< wxDC * >(argp1);
20287 {
20288 PyThreadState* __tstate = wxPyBeginAllowThreads();
20289 (arg1)->DestroyClippingRegion();
20290 wxPyEndAllowThreads(__tstate);
20291 if (PyErr_Occurred()) SWIG_fail;
20292 }
20293 resultobj = SWIG_Py_Void();
20294 return resultobj;
20295 fail:
20296 return NULL;
20297 }
20298
20299
20300 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20301 PyObject *resultobj = 0;
20302 wxDC *arg1 = (wxDC *) 0 ;
20303 int *arg2 = (int *) 0 ;
20304 int *arg3 = (int *) 0 ;
20305 int *arg4 = (int *) 0 ;
20306 int *arg5 = (int *) 0 ;
20307 void *argp1 = 0 ;
20308 int res1 = 0 ;
20309 int temp2 ;
20310 int res2 = SWIG_TMPOBJ ;
20311 int temp3 ;
20312 int res3 = SWIG_TMPOBJ ;
20313 int temp4 ;
20314 int res4 = SWIG_TMPOBJ ;
20315 int temp5 ;
20316 int res5 = SWIG_TMPOBJ ;
20317 PyObject *swig_obj[1] ;
20318
20319 arg2 = &temp2;
20320 arg3 = &temp3;
20321 arg4 = &temp4;
20322 arg5 = &temp5;
20323 if (!args) SWIG_fail;
20324 swig_obj[0] = args;
20325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20326 if (!SWIG_IsOK(res1)) {
20327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20328 }
20329 arg1 = reinterpret_cast< wxDC * >(argp1);
20330 {
20331 PyThreadState* __tstate = wxPyBeginAllowThreads();
20332 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20333 wxPyEndAllowThreads(__tstate);
20334 if (PyErr_Occurred()) SWIG_fail;
20335 }
20336 resultobj = SWIG_Py_Void();
20337 if (SWIG_IsTmpObj(res2)) {
20338 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20339 } else {
20340 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20341 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20342 }
20343 if (SWIG_IsTmpObj(res3)) {
20344 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20345 } else {
20346 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20347 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20348 }
20349 if (SWIG_IsTmpObj(res4)) {
20350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20351 } else {
20352 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20354 }
20355 if (SWIG_IsTmpObj(res5)) {
20356 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20357 } else {
20358 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20360 }
20361 return resultobj;
20362 fail:
20363 return NULL;
20364 }
20365
20366
20367 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20368 PyObject *resultobj = 0;
20369 wxDC *arg1 = (wxDC *) 0 ;
20370 wxRect result;
20371 void *argp1 = 0 ;
20372 int res1 = 0 ;
20373 PyObject *swig_obj[1] ;
20374
20375 if (!args) SWIG_fail;
20376 swig_obj[0] = args;
20377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20378 if (!SWIG_IsOK(res1)) {
20379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20380 }
20381 arg1 = reinterpret_cast< wxDC * >(argp1);
20382 {
20383 PyThreadState* __tstate = wxPyBeginAllowThreads();
20384 result = wxDC_GetClippingRect(arg1);
20385 wxPyEndAllowThreads(__tstate);
20386 if (PyErr_Occurred()) SWIG_fail;
20387 }
20388 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20389 return resultobj;
20390 fail:
20391 return NULL;
20392 }
20393
20394
20395 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20396 PyObject *resultobj = 0;
20397 wxDC *arg1 = (wxDC *) 0 ;
20398 int result;
20399 void *argp1 = 0 ;
20400 int res1 = 0 ;
20401 PyObject *swig_obj[1] ;
20402
20403 if (!args) SWIG_fail;
20404 swig_obj[0] = args;
20405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20406 if (!SWIG_IsOK(res1)) {
20407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20408 }
20409 arg1 = reinterpret_cast< wxDC * >(argp1);
20410 {
20411 PyThreadState* __tstate = wxPyBeginAllowThreads();
20412 result = (int)((wxDC const *)arg1)->GetCharHeight();
20413 wxPyEndAllowThreads(__tstate);
20414 if (PyErr_Occurred()) SWIG_fail;
20415 }
20416 resultobj = SWIG_From_int(static_cast< int >(result));
20417 return resultobj;
20418 fail:
20419 return NULL;
20420 }
20421
20422
20423 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20424 PyObject *resultobj = 0;
20425 wxDC *arg1 = (wxDC *) 0 ;
20426 int result;
20427 void *argp1 = 0 ;
20428 int res1 = 0 ;
20429 PyObject *swig_obj[1] ;
20430
20431 if (!args) SWIG_fail;
20432 swig_obj[0] = args;
20433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20434 if (!SWIG_IsOK(res1)) {
20435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20436 }
20437 arg1 = reinterpret_cast< wxDC * >(argp1);
20438 {
20439 PyThreadState* __tstate = wxPyBeginAllowThreads();
20440 result = (int)((wxDC const *)arg1)->GetCharWidth();
20441 wxPyEndAllowThreads(__tstate);
20442 if (PyErr_Occurred()) SWIG_fail;
20443 }
20444 resultobj = SWIG_From_int(static_cast< int >(result));
20445 return resultobj;
20446 fail:
20447 return NULL;
20448 }
20449
20450
20451 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20452 PyObject *resultobj = 0;
20453 wxDC *arg1 = (wxDC *) 0 ;
20454 wxString *arg2 = 0 ;
20455 int *arg3 = (int *) 0 ;
20456 int *arg4 = (int *) 0 ;
20457 void *argp1 = 0 ;
20458 int res1 = 0 ;
20459 bool temp2 = false ;
20460 int temp3 ;
20461 int res3 = SWIG_TMPOBJ ;
20462 int temp4 ;
20463 int res4 = SWIG_TMPOBJ ;
20464 PyObject * obj0 = 0 ;
20465 PyObject * obj1 = 0 ;
20466 char * kwnames[] = {
20467 (char *) "self",(char *) "string", NULL
20468 };
20469
20470 arg3 = &temp3;
20471 arg4 = &temp4;
20472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20474 if (!SWIG_IsOK(res1)) {
20475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20476 }
20477 arg1 = reinterpret_cast< wxDC * >(argp1);
20478 {
20479 arg2 = wxString_in_helper(obj1);
20480 if (arg2 == NULL) SWIG_fail;
20481 temp2 = true;
20482 }
20483 {
20484 PyThreadState* __tstate = wxPyBeginAllowThreads();
20485 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20486 wxPyEndAllowThreads(__tstate);
20487 if (PyErr_Occurred()) SWIG_fail;
20488 }
20489 resultobj = SWIG_Py_Void();
20490 if (SWIG_IsTmpObj(res3)) {
20491 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20492 } else {
20493 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20495 }
20496 if (SWIG_IsTmpObj(res4)) {
20497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20498 } else {
20499 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20501 }
20502 {
20503 if (temp2)
20504 delete arg2;
20505 }
20506 return resultobj;
20507 fail:
20508 {
20509 if (temp2)
20510 delete arg2;
20511 }
20512 return NULL;
20513 }
20514
20515
20516 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20517 PyObject *resultobj = 0;
20518 wxDC *arg1 = (wxDC *) 0 ;
20519 wxString *arg2 = 0 ;
20520 int *arg3 = (int *) 0 ;
20521 int *arg4 = (int *) 0 ;
20522 int *arg5 = (int *) 0 ;
20523 int *arg6 = (int *) 0 ;
20524 wxFont *arg7 = (wxFont *) NULL ;
20525 void *argp1 = 0 ;
20526 int res1 = 0 ;
20527 bool temp2 = false ;
20528 int temp3 ;
20529 int res3 = SWIG_TMPOBJ ;
20530 int temp4 ;
20531 int res4 = SWIG_TMPOBJ ;
20532 int temp5 ;
20533 int res5 = SWIG_TMPOBJ ;
20534 int temp6 ;
20535 int res6 = SWIG_TMPOBJ ;
20536 void *argp7 = 0 ;
20537 int res7 = 0 ;
20538 PyObject * obj0 = 0 ;
20539 PyObject * obj1 = 0 ;
20540 PyObject * obj2 = 0 ;
20541 char * kwnames[] = {
20542 (char *) "self",(char *) "string",(char *) "font", NULL
20543 };
20544
20545 arg3 = &temp3;
20546 arg4 = &temp4;
20547 arg5 = &temp5;
20548 arg6 = &temp6;
20549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20551 if (!SWIG_IsOK(res1)) {
20552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20553 }
20554 arg1 = reinterpret_cast< wxDC * >(argp1);
20555 {
20556 arg2 = wxString_in_helper(obj1);
20557 if (arg2 == NULL) SWIG_fail;
20558 temp2 = true;
20559 }
20560 if (obj2) {
20561 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20562 if (!SWIG_IsOK(res7)) {
20563 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20564 }
20565 arg7 = reinterpret_cast< wxFont * >(argp7);
20566 }
20567 {
20568 PyThreadState* __tstate = wxPyBeginAllowThreads();
20569 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20570 wxPyEndAllowThreads(__tstate);
20571 if (PyErr_Occurred()) SWIG_fail;
20572 }
20573 resultobj = SWIG_Py_Void();
20574 if (SWIG_IsTmpObj(res3)) {
20575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20576 } else {
20577 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20579 }
20580 if (SWIG_IsTmpObj(res4)) {
20581 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20582 } else {
20583 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20584 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20585 }
20586 if (SWIG_IsTmpObj(res5)) {
20587 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20588 } else {
20589 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20590 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20591 }
20592 if (SWIG_IsTmpObj(res6)) {
20593 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20594 } else {
20595 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20596 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20597 }
20598 {
20599 if (temp2)
20600 delete arg2;
20601 }
20602 return resultobj;
20603 fail:
20604 {
20605 if (temp2)
20606 delete arg2;
20607 }
20608 return NULL;
20609 }
20610
20611
20612 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20613 PyObject *resultobj = 0;
20614 wxDC *arg1 = (wxDC *) 0 ;
20615 wxString *arg2 = 0 ;
20616 int *arg3 = (int *) 0 ;
20617 int *arg4 = (int *) 0 ;
20618 int *arg5 = (int *) 0 ;
20619 wxFont *arg6 = (wxFont *) NULL ;
20620 void *argp1 = 0 ;
20621 int res1 = 0 ;
20622 bool temp2 = false ;
20623 int temp3 ;
20624 int res3 = SWIG_TMPOBJ ;
20625 int temp4 ;
20626 int res4 = SWIG_TMPOBJ ;
20627 int temp5 ;
20628 int res5 = SWIG_TMPOBJ ;
20629 void *argp6 = 0 ;
20630 int res6 = 0 ;
20631 PyObject * obj0 = 0 ;
20632 PyObject * obj1 = 0 ;
20633 PyObject * obj2 = 0 ;
20634 char * kwnames[] = {
20635 (char *) "self",(char *) "text",(char *) "font", NULL
20636 };
20637
20638 arg3 = &temp3;
20639 arg4 = &temp4;
20640 arg5 = &temp5;
20641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20643 if (!SWIG_IsOK(res1)) {
20644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20645 }
20646 arg1 = reinterpret_cast< wxDC * >(argp1);
20647 {
20648 arg2 = wxString_in_helper(obj1);
20649 if (arg2 == NULL) SWIG_fail;
20650 temp2 = true;
20651 }
20652 if (obj2) {
20653 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20654 if (!SWIG_IsOK(res6)) {
20655 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20656 }
20657 arg6 = reinterpret_cast< wxFont * >(argp6);
20658 }
20659 {
20660 PyThreadState* __tstate = wxPyBeginAllowThreads();
20661 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20662 wxPyEndAllowThreads(__tstate);
20663 if (PyErr_Occurred()) SWIG_fail;
20664 }
20665 resultobj = SWIG_Py_Void();
20666 if (SWIG_IsTmpObj(res3)) {
20667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20668 } else {
20669 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20671 }
20672 if (SWIG_IsTmpObj(res4)) {
20673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20674 } else {
20675 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20677 }
20678 if (SWIG_IsTmpObj(res5)) {
20679 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20680 } else {
20681 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20683 }
20684 {
20685 if (temp2)
20686 delete arg2;
20687 }
20688 return resultobj;
20689 fail:
20690 {
20691 if (temp2)
20692 delete arg2;
20693 }
20694 return NULL;
20695 }
20696
20697
20698 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20699 PyObject *resultobj = 0;
20700 wxDC *arg1 = (wxDC *) 0 ;
20701 wxString *arg2 = 0 ;
20702 wxArrayInt result;
20703 void *argp1 = 0 ;
20704 int res1 = 0 ;
20705 bool temp2 = false ;
20706 PyObject * obj0 = 0 ;
20707 PyObject * obj1 = 0 ;
20708 char * kwnames[] = {
20709 (char *) "self",(char *) "text", NULL
20710 };
20711
20712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20714 if (!SWIG_IsOK(res1)) {
20715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20716 }
20717 arg1 = reinterpret_cast< wxDC * >(argp1);
20718 {
20719 arg2 = wxString_in_helper(obj1);
20720 if (arg2 == NULL) SWIG_fail;
20721 temp2 = true;
20722 }
20723 {
20724 PyThreadState* __tstate = wxPyBeginAllowThreads();
20725 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20726 wxPyEndAllowThreads(__tstate);
20727 if (PyErr_Occurred()) SWIG_fail;
20728 }
20729 {
20730 resultobj = PyList_New(0);
20731 size_t idx;
20732 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20733 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20734 PyList_Append(resultobj, val);
20735 Py_DECREF(val);
20736 }
20737 }
20738 {
20739 if (temp2)
20740 delete arg2;
20741 }
20742 return resultobj;
20743 fail:
20744 {
20745 if (temp2)
20746 delete arg2;
20747 }
20748 return NULL;
20749 }
20750
20751
20752 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20753 PyObject *resultobj = 0;
20754 wxDC *arg1 = (wxDC *) 0 ;
20755 wxSize result;
20756 void *argp1 = 0 ;
20757 int res1 = 0 ;
20758 PyObject *swig_obj[1] ;
20759
20760 if (!args) SWIG_fail;
20761 swig_obj[0] = args;
20762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20763 if (!SWIG_IsOK(res1)) {
20764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20765 }
20766 arg1 = reinterpret_cast< wxDC * >(argp1);
20767 {
20768 PyThreadState* __tstate = wxPyBeginAllowThreads();
20769 result = (arg1)->GetSize();
20770 wxPyEndAllowThreads(__tstate);
20771 if (PyErr_Occurred()) SWIG_fail;
20772 }
20773 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20774 return resultobj;
20775 fail:
20776 return NULL;
20777 }
20778
20779
20780 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20781 PyObject *resultobj = 0;
20782 wxDC *arg1 = (wxDC *) 0 ;
20783 int *arg2 = (int *) 0 ;
20784 int *arg3 = (int *) 0 ;
20785 void *argp1 = 0 ;
20786 int res1 = 0 ;
20787 int temp2 ;
20788 int res2 = SWIG_TMPOBJ ;
20789 int temp3 ;
20790 int res3 = SWIG_TMPOBJ ;
20791 PyObject *swig_obj[1] ;
20792
20793 arg2 = &temp2;
20794 arg3 = &temp3;
20795 if (!args) SWIG_fail;
20796 swig_obj[0] = args;
20797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20798 if (!SWIG_IsOK(res1)) {
20799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20800 }
20801 arg1 = reinterpret_cast< wxDC * >(argp1);
20802 {
20803 PyThreadState* __tstate = wxPyBeginAllowThreads();
20804 (arg1)->GetSize(arg2,arg3);
20805 wxPyEndAllowThreads(__tstate);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 resultobj = SWIG_Py_Void();
20809 if (SWIG_IsTmpObj(res2)) {
20810 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20811 } else {
20812 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20813 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20814 }
20815 if (SWIG_IsTmpObj(res3)) {
20816 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20817 } else {
20818 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20819 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20820 }
20821 return resultobj;
20822 fail:
20823 return NULL;
20824 }
20825
20826
20827 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20828 PyObject *resultobj = 0;
20829 wxDC *arg1 = (wxDC *) 0 ;
20830 wxSize result;
20831 void *argp1 = 0 ;
20832 int res1 = 0 ;
20833 PyObject *swig_obj[1] ;
20834
20835 if (!args) SWIG_fail;
20836 swig_obj[0] = args;
20837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20838 if (!SWIG_IsOK(res1)) {
20839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20840 }
20841 arg1 = reinterpret_cast< wxDC * >(argp1);
20842 {
20843 PyThreadState* __tstate = wxPyBeginAllowThreads();
20844 result = ((wxDC const *)arg1)->GetSizeMM();
20845 wxPyEndAllowThreads(__tstate);
20846 if (PyErr_Occurred()) SWIG_fail;
20847 }
20848 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20849 return resultobj;
20850 fail:
20851 return NULL;
20852 }
20853
20854
20855 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20856 PyObject *resultobj = 0;
20857 wxDC *arg1 = (wxDC *) 0 ;
20858 int *arg2 = (int *) 0 ;
20859 int *arg3 = (int *) 0 ;
20860 void *argp1 = 0 ;
20861 int res1 = 0 ;
20862 int temp2 ;
20863 int res2 = SWIG_TMPOBJ ;
20864 int temp3 ;
20865 int res3 = SWIG_TMPOBJ ;
20866 PyObject *swig_obj[1] ;
20867
20868 arg2 = &temp2;
20869 arg3 = &temp3;
20870 if (!args) SWIG_fail;
20871 swig_obj[0] = args;
20872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20873 if (!SWIG_IsOK(res1)) {
20874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20875 }
20876 arg1 = reinterpret_cast< wxDC * >(argp1);
20877 {
20878 PyThreadState* __tstate = wxPyBeginAllowThreads();
20879 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = SWIG_Py_Void();
20884 if (SWIG_IsTmpObj(res2)) {
20885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20886 } else {
20887 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20889 }
20890 if (SWIG_IsTmpObj(res3)) {
20891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20892 } else {
20893 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20895 }
20896 return resultobj;
20897 fail:
20898 return NULL;
20899 }
20900
20901
20902 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20903 PyObject *resultobj = 0;
20904 wxDC *arg1 = (wxDC *) 0 ;
20905 int arg2 ;
20906 int result;
20907 void *argp1 = 0 ;
20908 int res1 = 0 ;
20909 int val2 ;
20910 int ecode2 = 0 ;
20911 PyObject * obj0 = 0 ;
20912 PyObject * obj1 = 0 ;
20913 char * kwnames[] = {
20914 (char *) "self",(char *) "x", NULL
20915 };
20916
20917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
20918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20919 if (!SWIG_IsOK(res1)) {
20920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
20921 }
20922 arg1 = reinterpret_cast< wxDC * >(argp1);
20923 ecode2 = SWIG_AsVal_int(obj1, &val2);
20924 if (!SWIG_IsOK(ecode2)) {
20925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
20926 }
20927 arg2 = static_cast< int >(val2);
20928 {
20929 PyThreadState* __tstate = wxPyBeginAllowThreads();
20930 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
20931 wxPyEndAllowThreads(__tstate);
20932 if (PyErr_Occurred()) SWIG_fail;
20933 }
20934 resultobj = SWIG_From_int(static_cast< int >(result));
20935 return resultobj;
20936 fail:
20937 return NULL;
20938 }
20939
20940
20941 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20942 PyObject *resultobj = 0;
20943 wxDC *arg1 = (wxDC *) 0 ;
20944 int arg2 ;
20945 int result;
20946 void *argp1 = 0 ;
20947 int res1 = 0 ;
20948 int val2 ;
20949 int ecode2 = 0 ;
20950 PyObject * obj0 = 0 ;
20951 PyObject * obj1 = 0 ;
20952 char * kwnames[] = {
20953 (char *) "self",(char *) "y", NULL
20954 };
20955
20956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
20957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20958 if (!SWIG_IsOK(res1)) {
20959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
20960 }
20961 arg1 = reinterpret_cast< wxDC * >(argp1);
20962 ecode2 = SWIG_AsVal_int(obj1, &val2);
20963 if (!SWIG_IsOK(ecode2)) {
20964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
20965 }
20966 arg2 = static_cast< int >(val2);
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_From_int(static_cast< int >(result));
20974 return resultobj;
20975 fail:
20976 return NULL;
20977 }
20978
20979
20980 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20981 PyObject *resultobj = 0;
20982 wxDC *arg1 = (wxDC *) 0 ;
20983 int arg2 ;
20984 int result;
20985 void *argp1 = 0 ;
20986 int res1 = 0 ;
20987 int val2 ;
20988 int ecode2 = 0 ;
20989 PyObject * obj0 = 0 ;
20990 PyObject * obj1 = 0 ;
20991 char * kwnames[] = {
20992 (char *) "self",(char *) "x", NULL
20993 };
20994
20995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
20996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20997 if (!SWIG_IsOK(res1)) {
20998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20999 }
21000 arg1 = reinterpret_cast< wxDC * >(argp1);
21001 ecode2 = SWIG_AsVal_int(obj1, &val2);
21002 if (!SWIG_IsOK(ecode2)) {
21003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21004 }
21005 arg2 = static_cast< int >(val2);
21006 {
21007 PyThreadState* __tstate = wxPyBeginAllowThreads();
21008 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21009 wxPyEndAllowThreads(__tstate);
21010 if (PyErr_Occurred()) SWIG_fail;
21011 }
21012 resultobj = SWIG_From_int(static_cast< int >(result));
21013 return resultobj;
21014 fail:
21015 return NULL;
21016 }
21017
21018
21019 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21020 PyObject *resultobj = 0;
21021 wxDC *arg1 = (wxDC *) 0 ;
21022 int arg2 ;
21023 int result;
21024 void *argp1 = 0 ;
21025 int res1 = 0 ;
21026 int val2 ;
21027 int ecode2 = 0 ;
21028 PyObject * obj0 = 0 ;
21029 PyObject * obj1 = 0 ;
21030 char * kwnames[] = {
21031 (char *) "self",(char *) "y", NULL
21032 };
21033
21034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21036 if (!SWIG_IsOK(res1)) {
21037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21038 }
21039 arg1 = reinterpret_cast< wxDC * >(argp1);
21040 ecode2 = SWIG_AsVal_int(obj1, &val2);
21041 if (!SWIG_IsOK(ecode2)) {
21042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21043 }
21044 arg2 = static_cast< int >(val2);
21045 {
21046 PyThreadState* __tstate = wxPyBeginAllowThreads();
21047 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21048 wxPyEndAllowThreads(__tstate);
21049 if (PyErr_Occurred()) SWIG_fail;
21050 }
21051 resultobj = SWIG_From_int(static_cast< int >(result));
21052 return resultobj;
21053 fail:
21054 return NULL;
21055 }
21056
21057
21058 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21059 PyObject *resultobj = 0;
21060 wxDC *arg1 = (wxDC *) 0 ;
21061 int arg2 ;
21062 int result;
21063 void *argp1 = 0 ;
21064 int res1 = 0 ;
21065 int val2 ;
21066 int ecode2 = 0 ;
21067 PyObject * obj0 = 0 ;
21068 PyObject * obj1 = 0 ;
21069 char * kwnames[] = {
21070 (char *) "self",(char *) "x", NULL
21071 };
21072
21073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21075 if (!SWIG_IsOK(res1)) {
21076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21077 }
21078 arg1 = reinterpret_cast< wxDC * >(argp1);
21079 ecode2 = SWIG_AsVal_int(obj1, &val2);
21080 if (!SWIG_IsOK(ecode2)) {
21081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21082 }
21083 arg2 = static_cast< int >(val2);
21084 {
21085 PyThreadState* __tstate = wxPyBeginAllowThreads();
21086 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21087 wxPyEndAllowThreads(__tstate);
21088 if (PyErr_Occurred()) SWIG_fail;
21089 }
21090 resultobj = SWIG_From_int(static_cast< int >(result));
21091 return resultobj;
21092 fail:
21093 return NULL;
21094 }
21095
21096
21097 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21098 PyObject *resultobj = 0;
21099 wxDC *arg1 = (wxDC *) 0 ;
21100 int arg2 ;
21101 int result;
21102 void *argp1 = 0 ;
21103 int res1 = 0 ;
21104 int val2 ;
21105 int ecode2 = 0 ;
21106 PyObject * obj0 = 0 ;
21107 PyObject * obj1 = 0 ;
21108 char * kwnames[] = {
21109 (char *) "self",(char *) "y", NULL
21110 };
21111
21112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21114 if (!SWIG_IsOK(res1)) {
21115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21116 }
21117 arg1 = reinterpret_cast< wxDC * >(argp1);
21118 ecode2 = SWIG_AsVal_int(obj1, &val2);
21119 if (!SWIG_IsOK(ecode2)) {
21120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21121 }
21122 arg2 = static_cast< int >(val2);
21123 {
21124 PyThreadState* __tstate = wxPyBeginAllowThreads();
21125 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21126 wxPyEndAllowThreads(__tstate);
21127 if (PyErr_Occurred()) SWIG_fail;
21128 }
21129 resultobj = SWIG_From_int(static_cast< int >(result));
21130 return resultobj;
21131 fail:
21132 return NULL;
21133 }
21134
21135
21136 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21137 PyObject *resultobj = 0;
21138 wxDC *arg1 = (wxDC *) 0 ;
21139 int arg2 ;
21140 int result;
21141 void *argp1 = 0 ;
21142 int res1 = 0 ;
21143 int val2 ;
21144 int ecode2 = 0 ;
21145 PyObject * obj0 = 0 ;
21146 PyObject * obj1 = 0 ;
21147 char * kwnames[] = {
21148 (char *) "self",(char *) "x", NULL
21149 };
21150
21151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21153 if (!SWIG_IsOK(res1)) {
21154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21155 }
21156 arg1 = reinterpret_cast< wxDC * >(argp1);
21157 ecode2 = SWIG_AsVal_int(obj1, &val2);
21158 if (!SWIG_IsOK(ecode2)) {
21159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21160 }
21161 arg2 = static_cast< int >(val2);
21162 {
21163 PyThreadState* __tstate = wxPyBeginAllowThreads();
21164 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21165 wxPyEndAllowThreads(__tstate);
21166 if (PyErr_Occurred()) SWIG_fail;
21167 }
21168 resultobj = SWIG_From_int(static_cast< int >(result));
21169 return resultobj;
21170 fail:
21171 return NULL;
21172 }
21173
21174
21175 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21176 PyObject *resultobj = 0;
21177 wxDC *arg1 = (wxDC *) 0 ;
21178 int arg2 ;
21179 int result;
21180 void *argp1 = 0 ;
21181 int res1 = 0 ;
21182 int val2 ;
21183 int ecode2 = 0 ;
21184 PyObject * obj0 = 0 ;
21185 PyObject * obj1 = 0 ;
21186 char * kwnames[] = {
21187 (char *) "self",(char *) "y", NULL
21188 };
21189
21190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21192 if (!SWIG_IsOK(res1)) {
21193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21194 }
21195 arg1 = reinterpret_cast< wxDC * >(argp1);
21196 ecode2 = SWIG_AsVal_int(obj1, &val2);
21197 if (!SWIG_IsOK(ecode2)) {
21198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21199 }
21200 arg2 = static_cast< int >(val2);
21201 {
21202 PyThreadState* __tstate = wxPyBeginAllowThreads();
21203 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21204 wxPyEndAllowThreads(__tstate);
21205 if (PyErr_Occurred()) SWIG_fail;
21206 }
21207 resultobj = SWIG_From_int(static_cast< int >(result));
21208 return resultobj;
21209 fail:
21210 return NULL;
21211 }
21212
21213
21214 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21215 PyObject *resultobj = 0;
21216 wxDC *arg1 = (wxDC *) 0 ;
21217 bool result;
21218 void *argp1 = 0 ;
21219 int res1 = 0 ;
21220 PyObject *swig_obj[1] ;
21221
21222 if (!args) SWIG_fail;
21223 swig_obj[0] = args;
21224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21225 if (!SWIG_IsOK(res1)) {
21226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21227 }
21228 arg1 = reinterpret_cast< wxDC * >(argp1);
21229 {
21230 PyThreadState* __tstate = wxPyBeginAllowThreads();
21231 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21232 wxPyEndAllowThreads(__tstate);
21233 if (PyErr_Occurred()) SWIG_fail;
21234 }
21235 {
21236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21237 }
21238 return resultobj;
21239 fail:
21240 return NULL;
21241 }
21242
21243
21244 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21245 PyObject *resultobj = 0;
21246 wxDC *arg1 = (wxDC *) 0 ;
21247 bool result;
21248 void *argp1 = 0 ;
21249 int res1 = 0 ;
21250 PyObject *swig_obj[1] ;
21251
21252 if (!args) SWIG_fail;
21253 swig_obj[0] = args;
21254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21255 if (!SWIG_IsOK(res1)) {
21256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21257 }
21258 arg1 = reinterpret_cast< wxDC * >(argp1);
21259 {
21260 PyThreadState* __tstate = wxPyBeginAllowThreads();
21261 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21262 wxPyEndAllowThreads(__tstate);
21263 if (PyErr_Occurred()) SWIG_fail;
21264 }
21265 {
21266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21267 }
21268 return resultobj;
21269 fail:
21270 return NULL;
21271 }
21272
21273
21274 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21275 PyObject *resultobj = 0;
21276 wxDC *arg1 = (wxDC *) 0 ;
21277 int result;
21278 void *argp1 = 0 ;
21279 int res1 = 0 ;
21280 PyObject *swig_obj[1] ;
21281
21282 if (!args) SWIG_fail;
21283 swig_obj[0] = args;
21284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21285 if (!SWIG_IsOK(res1)) {
21286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21287 }
21288 arg1 = reinterpret_cast< wxDC * >(argp1);
21289 {
21290 PyThreadState* __tstate = wxPyBeginAllowThreads();
21291 result = (int)((wxDC const *)arg1)->GetDepth();
21292 wxPyEndAllowThreads(__tstate);
21293 if (PyErr_Occurred()) SWIG_fail;
21294 }
21295 resultobj = SWIG_From_int(static_cast< int >(result));
21296 return resultobj;
21297 fail:
21298 return NULL;
21299 }
21300
21301
21302 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21303 PyObject *resultobj = 0;
21304 wxDC *arg1 = (wxDC *) 0 ;
21305 wxSize result;
21306 void *argp1 = 0 ;
21307 int res1 = 0 ;
21308 PyObject *swig_obj[1] ;
21309
21310 if (!args) SWIG_fail;
21311 swig_obj[0] = args;
21312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21313 if (!SWIG_IsOK(res1)) {
21314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21315 }
21316 arg1 = reinterpret_cast< wxDC * >(argp1);
21317 {
21318 PyThreadState* __tstate = wxPyBeginAllowThreads();
21319 result = ((wxDC const *)arg1)->GetPPI();
21320 wxPyEndAllowThreads(__tstate);
21321 if (PyErr_Occurred()) SWIG_fail;
21322 }
21323 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21324 return resultobj;
21325 fail:
21326 return NULL;
21327 }
21328
21329
21330 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21331 PyObject *resultobj = 0;
21332 wxDC *arg1 = (wxDC *) 0 ;
21333 bool result;
21334 void *argp1 = 0 ;
21335 int res1 = 0 ;
21336 PyObject *swig_obj[1] ;
21337
21338 if (!args) SWIG_fail;
21339 swig_obj[0] = args;
21340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21341 if (!SWIG_IsOK(res1)) {
21342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21343 }
21344 arg1 = reinterpret_cast< wxDC * >(argp1);
21345 {
21346 PyThreadState* __tstate = wxPyBeginAllowThreads();
21347 result = (bool)((wxDC const *)arg1)->Ok();
21348 wxPyEndAllowThreads(__tstate);
21349 if (PyErr_Occurred()) SWIG_fail;
21350 }
21351 {
21352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21353 }
21354 return resultobj;
21355 fail:
21356 return NULL;
21357 }
21358
21359
21360 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21361 PyObject *resultobj = 0;
21362 wxDC *arg1 = (wxDC *) 0 ;
21363 int result;
21364 void *argp1 = 0 ;
21365 int res1 = 0 ;
21366 PyObject *swig_obj[1] ;
21367
21368 if (!args) SWIG_fail;
21369 swig_obj[0] = args;
21370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21371 if (!SWIG_IsOK(res1)) {
21372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21373 }
21374 arg1 = reinterpret_cast< wxDC * >(argp1);
21375 {
21376 PyThreadState* __tstate = wxPyBeginAllowThreads();
21377 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21378 wxPyEndAllowThreads(__tstate);
21379 if (PyErr_Occurred()) SWIG_fail;
21380 }
21381 resultobj = SWIG_From_int(static_cast< int >(result));
21382 return resultobj;
21383 fail:
21384 return NULL;
21385 }
21386
21387
21388 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21389 PyObject *resultobj = 0;
21390 wxDC *arg1 = (wxDC *) 0 ;
21391 wxBrush *result = 0 ;
21392 void *argp1 = 0 ;
21393 int res1 = 0 ;
21394 PyObject *swig_obj[1] ;
21395
21396 if (!args) SWIG_fail;
21397 swig_obj[0] = args;
21398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21399 if (!SWIG_IsOK(res1)) {
21400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21401 }
21402 arg1 = reinterpret_cast< wxDC * >(argp1);
21403 {
21404 PyThreadState* __tstate = wxPyBeginAllowThreads();
21405 {
21406 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21407 result = (wxBrush *) &_result_ref;
21408 }
21409 wxPyEndAllowThreads(__tstate);
21410 if (PyErr_Occurred()) SWIG_fail;
21411 }
21412 {
21413 wxBrush* resultptr = new wxBrush(*result);
21414 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21415 }
21416 return resultobj;
21417 fail:
21418 return NULL;
21419 }
21420
21421
21422 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21423 PyObject *resultobj = 0;
21424 wxDC *arg1 = (wxDC *) 0 ;
21425 wxBrush *result = 0 ;
21426 void *argp1 = 0 ;
21427 int res1 = 0 ;
21428 PyObject *swig_obj[1] ;
21429
21430 if (!args) SWIG_fail;
21431 swig_obj[0] = args;
21432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21433 if (!SWIG_IsOK(res1)) {
21434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21435 }
21436 arg1 = reinterpret_cast< wxDC * >(argp1);
21437 {
21438 PyThreadState* __tstate = wxPyBeginAllowThreads();
21439 {
21440 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21441 result = (wxBrush *) &_result_ref;
21442 }
21443 wxPyEndAllowThreads(__tstate);
21444 if (PyErr_Occurred()) SWIG_fail;
21445 }
21446 {
21447 wxBrush* resultptr = new wxBrush(*result);
21448 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21449 }
21450 return resultobj;
21451 fail:
21452 return NULL;
21453 }
21454
21455
21456 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21457 PyObject *resultobj = 0;
21458 wxDC *arg1 = (wxDC *) 0 ;
21459 wxFont *result = 0 ;
21460 void *argp1 = 0 ;
21461 int res1 = 0 ;
21462 PyObject *swig_obj[1] ;
21463
21464 if (!args) SWIG_fail;
21465 swig_obj[0] = args;
21466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21467 if (!SWIG_IsOK(res1)) {
21468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21469 }
21470 arg1 = reinterpret_cast< wxDC * >(argp1);
21471 {
21472 PyThreadState* __tstate = wxPyBeginAllowThreads();
21473 {
21474 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21475 result = (wxFont *) &_result_ref;
21476 }
21477 wxPyEndAllowThreads(__tstate);
21478 if (PyErr_Occurred()) SWIG_fail;
21479 }
21480 {
21481 wxFont* resultptr = new wxFont(*result);
21482 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21483 }
21484 return resultobj;
21485 fail:
21486 return NULL;
21487 }
21488
21489
21490 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21491 PyObject *resultobj = 0;
21492 wxDC *arg1 = (wxDC *) 0 ;
21493 wxPen *result = 0 ;
21494 void *argp1 = 0 ;
21495 int res1 = 0 ;
21496 PyObject *swig_obj[1] ;
21497
21498 if (!args) SWIG_fail;
21499 swig_obj[0] = args;
21500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21501 if (!SWIG_IsOK(res1)) {
21502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21503 }
21504 arg1 = reinterpret_cast< wxDC * >(argp1);
21505 {
21506 PyThreadState* __tstate = wxPyBeginAllowThreads();
21507 {
21508 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21509 result = (wxPen *) &_result_ref;
21510 }
21511 wxPyEndAllowThreads(__tstate);
21512 if (PyErr_Occurred()) SWIG_fail;
21513 }
21514 {
21515 wxPen* resultptr = new wxPen(*result);
21516 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21517 }
21518 return resultobj;
21519 fail:
21520 return NULL;
21521 }
21522
21523
21524 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21525 PyObject *resultobj = 0;
21526 wxDC *arg1 = (wxDC *) 0 ;
21527 wxColour *result = 0 ;
21528 void *argp1 = 0 ;
21529 int res1 = 0 ;
21530 PyObject *swig_obj[1] ;
21531
21532 if (!args) SWIG_fail;
21533 swig_obj[0] = args;
21534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21537 }
21538 arg1 = reinterpret_cast< wxDC * >(argp1);
21539 {
21540 PyThreadState* __tstate = wxPyBeginAllowThreads();
21541 {
21542 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21543 result = (wxColour *) &_result_ref;
21544 }
21545 wxPyEndAllowThreads(__tstate);
21546 if (PyErr_Occurred()) SWIG_fail;
21547 }
21548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21549 return resultobj;
21550 fail:
21551 return NULL;
21552 }
21553
21554
21555 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21556 PyObject *resultobj = 0;
21557 wxDC *arg1 = (wxDC *) 0 ;
21558 wxColour *result = 0 ;
21559 void *argp1 = 0 ;
21560 int res1 = 0 ;
21561 PyObject *swig_obj[1] ;
21562
21563 if (!args) SWIG_fail;
21564 swig_obj[0] = args;
21565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21566 if (!SWIG_IsOK(res1)) {
21567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21568 }
21569 arg1 = reinterpret_cast< wxDC * >(argp1);
21570 {
21571 PyThreadState* __tstate = wxPyBeginAllowThreads();
21572 {
21573 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21574 result = (wxColour *) &_result_ref;
21575 }
21576 wxPyEndAllowThreads(__tstate);
21577 if (PyErr_Occurred()) SWIG_fail;
21578 }
21579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21580 return resultobj;
21581 fail:
21582 return NULL;
21583 }
21584
21585
21586 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21587 PyObject *resultobj = 0;
21588 wxDC *arg1 = (wxDC *) 0 ;
21589 wxColour *arg2 = 0 ;
21590 void *argp1 = 0 ;
21591 int res1 = 0 ;
21592 wxColour temp2 ;
21593 PyObject * obj0 = 0 ;
21594 PyObject * obj1 = 0 ;
21595 char * kwnames[] = {
21596 (char *) "self",(char *) "colour", NULL
21597 };
21598
21599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21601 if (!SWIG_IsOK(res1)) {
21602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21603 }
21604 arg1 = reinterpret_cast< wxDC * >(argp1);
21605 {
21606 arg2 = &temp2;
21607 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21608 }
21609 {
21610 PyThreadState* __tstate = wxPyBeginAllowThreads();
21611 (arg1)->SetTextForeground((wxColour const &)*arg2);
21612 wxPyEndAllowThreads(__tstate);
21613 if (PyErr_Occurred()) SWIG_fail;
21614 }
21615 resultobj = SWIG_Py_Void();
21616 return resultobj;
21617 fail:
21618 return NULL;
21619 }
21620
21621
21622 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21623 PyObject *resultobj = 0;
21624 wxDC *arg1 = (wxDC *) 0 ;
21625 wxColour *arg2 = 0 ;
21626 void *argp1 = 0 ;
21627 int res1 = 0 ;
21628 wxColour temp2 ;
21629 PyObject * obj0 = 0 ;
21630 PyObject * obj1 = 0 ;
21631 char * kwnames[] = {
21632 (char *) "self",(char *) "colour", NULL
21633 };
21634
21635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21637 if (!SWIG_IsOK(res1)) {
21638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21639 }
21640 arg1 = reinterpret_cast< wxDC * >(argp1);
21641 {
21642 arg2 = &temp2;
21643 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21644 }
21645 {
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 (arg1)->SetTextBackground((wxColour const &)*arg2);
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_Py_Void();
21652 return resultobj;
21653 fail:
21654 return NULL;
21655 }
21656
21657
21658 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21659 PyObject *resultobj = 0;
21660 wxDC *arg1 = (wxDC *) 0 ;
21661 int result;
21662 void *argp1 = 0 ;
21663 int res1 = 0 ;
21664 PyObject *swig_obj[1] ;
21665
21666 if (!args) SWIG_fail;
21667 swig_obj[0] = args;
21668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21669 if (!SWIG_IsOK(res1)) {
21670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21671 }
21672 arg1 = reinterpret_cast< wxDC * >(argp1);
21673 {
21674 PyThreadState* __tstate = wxPyBeginAllowThreads();
21675 result = (int)((wxDC const *)arg1)->GetMapMode();
21676 wxPyEndAllowThreads(__tstate);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 resultobj = SWIG_From_int(static_cast< int >(result));
21680 return resultobj;
21681 fail:
21682 return NULL;
21683 }
21684
21685
21686 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj = 0;
21688 wxDC *arg1 = (wxDC *) 0 ;
21689 int arg2 ;
21690 void *argp1 = 0 ;
21691 int res1 = 0 ;
21692 int val2 ;
21693 int ecode2 = 0 ;
21694 PyObject * obj0 = 0 ;
21695 PyObject * obj1 = 0 ;
21696 char * kwnames[] = {
21697 (char *) "self",(char *) "mode", NULL
21698 };
21699
21700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21702 if (!SWIG_IsOK(res1)) {
21703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21704 }
21705 arg1 = reinterpret_cast< wxDC * >(argp1);
21706 ecode2 = SWIG_AsVal_int(obj1, &val2);
21707 if (!SWIG_IsOK(ecode2)) {
21708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21709 }
21710 arg2 = static_cast< int >(val2);
21711 {
21712 PyThreadState* __tstate = wxPyBeginAllowThreads();
21713 (arg1)->SetMapMode(arg2);
21714 wxPyEndAllowThreads(__tstate);
21715 if (PyErr_Occurred()) SWIG_fail;
21716 }
21717 resultobj = SWIG_Py_Void();
21718 return resultobj;
21719 fail:
21720 return NULL;
21721 }
21722
21723
21724 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21725 PyObject *resultobj = 0;
21726 wxDC *arg1 = (wxDC *) 0 ;
21727 double *arg2 = (double *) 0 ;
21728 double *arg3 = (double *) 0 ;
21729 void *argp1 = 0 ;
21730 int res1 = 0 ;
21731 double temp2 ;
21732 int res2 = SWIG_TMPOBJ ;
21733 double temp3 ;
21734 int res3 = SWIG_TMPOBJ ;
21735 PyObject *swig_obj[1] ;
21736
21737 arg2 = &temp2;
21738 arg3 = &temp3;
21739 if (!args) SWIG_fail;
21740 swig_obj[0] = args;
21741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21742 if (!SWIG_IsOK(res1)) {
21743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21744 }
21745 arg1 = reinterpret_cast< wxDC * >(argp1);
21746 {
21747 PyThreadState* __tstate = wxPyBeginAllowThreads();
21748 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 resultobj = SWIG_Py_Void();
21753 if (SWIG_IsTmpObj(res2)) {
21754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21755 } else {
21756 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21758 }
21759 if (SWIG_IsTmpObj(res3)) {
21760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21761 } else {
21762 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21764 }
21765 return resultobj;
21766 fail:
21767 return NULL;
21768 }
21769
21770
21771 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21772 PyObject *resultobj = 0;
21773 wxDC *arg1 = (wxDC *) 0 ;
21774 double arg2 ;
21775 double arg3 ;
21776 void *argp1 = 0 ;
21777 int res1 = 0 ;
21778 double val2 ;
21779 int ecode2 = 0 ;
21780 double val3 ;
21781 int ecode3 = 0 ;
21782 PyObject * obj0 = 0 ;
21783 PyObject * obj1 = 0 ;
21784 PyObject * obj2 = 0 ;
21785 char * kwnames[] = {
21786 (char *) "self",(char *) "x",(char *) "y", NULL
21787 };
21788
21789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21791 if (!SWIG_IsOK(res1)) {
21792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21793 }
21794 arg1 = reinterpret_cast< wxDC * >(argp1);
21795 ecode2 = SWIG_AsVal_double(obj1, &val2);
21796 if (!SWIG_IsOK(ecode2)) {
21797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21798 }
21799 arg2 = static_cast< double >(val2);
21800 ecode3 = SWIG_AsVal_double(obj2, &val3);
21801 if (!SWIG_IsOK(ecode3)) {
21802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21803 }
21804 arg3 = static_cast< double >(val3);
21805 {
21806 PyThreadState* __tstate = wxPyBeginAllowThreads();
21807 (arg1)->SetUserScale(arg2,arg3);
21808 wxPyEndAllowThreads(__tstate);
21809 if (PyErr_Occurred()) SWIG_fail;
21810 }
21811 resultobj = SWIG_Py_Void();
21812 return resultobj;
21813 fail:
21814 return NULL;
21815 }
21816
21817
21818 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21819 PyObject *resultobj = 0;
21820 wxDC *arg1 = (wxDC *) 0 ;
21821 double *arg2 = (double *) 0 ;
21822 double *arg3 = (double *) 0 ;
21823 void *argp1 = 0 ;
21824 int res1 = 0 ;
21825 double temp2 ;
21826 int res2 = SWIG_TMPOBJ ;
21827 double temp3 ;
21828 int res3 = SWIG_TMPOBJ ;
21829 PyObject *swig_obj[1] ;
21830
21831 arg2 = &temp2;
21832 arg3 = &temp3;
21833 if (!args) SWIG_fail;
21834 swig_obj[0] = args;
21835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21836 if (!SWIG_IsOK(res1)) {
21837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21838 }
21839 arg1 = reinterpret_cast< wxDC * >(argp1);
21840 {
21841 PyThreadState* __tstate = wxPyBeginAllowThreads();
21842 (arg1)->GetLogicalScale(arg2,arg3);
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 resultobj = SWIG_Py_Void();
21847 if (SWIG_IsTmpObj(res2)) {
21848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21849 } else {
21850 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21851 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21852 }
21853 if (SWIG_IsTmpObj(res3)) {
21854 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21855 } else {
21856 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21858 }
21859 return resultobj;
21860 fail:
21861 return NULL;
21862 }
21863
21864
21865 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21866 PyObject *resultobj = 0;
21867 wxDC *arg1 = (wxDC *) 0 ;
21868 double arg2 ;
21869 double arg3 ;
21870 void *argp1 = 0 ;
21871 int res1 = 0 ;
21872 double val2 ;
21873 int ecode2 = 0 ;
21874 double val3 ;
21875 int ecode3 = 0 ;
21876 PyObject * obj0 = 0 ;
21877 PyObject * obj1 = 0 ;
21878 PyObject * obj2 = 0 ;
21879 char * kwnames[] = {
21880 (char *) "self",(char *) "x",(char *) "y", NULL
21881 };
21882
21883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21885 if (!SWIG_IsOK(res1)) {
21886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21887 }
21888 arg1 = reinterpret_cast< wxDC * >(argp1);
21889 ecode2 = SWIG_AsVal_double(obj1, &val2);
21890 if (!SWIG_IsOK(ecode2)) {
21891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
21892 }
21893 arg2 = static_cast< double >(val2);
21894 ecode3 = SWIG_AsVal_double(obj2, &val3);
21895 if (!SWIG_IsOK(ecode3)) {
21896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
21897 }
21898 arg3 = static_cast< double >(val3);
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 (arg1)->SetLogicalScale(arg2,arg3);
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 resultobj = SWIG_Py_Void();
21906 return resultobj;
21907 fail:
21908 return NULL;
21909 }
21910
21911
21912 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21913 PyObject *resultobj = 0;
21914 wxDC *arg1 = (wxDC *) 0 ;
21915 wxPoint result;
21916 void *argp1 = 0 ;
21917 int res1 = 0 ;
21918 PyObject *swig_obj[1] ;
21919
21920 if (!args) SWIG_fail;
21921 swig_obj[0] = args;
21922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21923 if (!SWIG_IsOK(res1)) {
21924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21925 }
21926 arg1 = reinterpret_cast< wxDC * >(argp1);
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
21929 result = ((wxDC const *)arg1)->GetLogicalOrigin();
21930 wxPyEndAllowThreads(__tstate);
21931 if (PyErr_Occurred()) SWIG_fail;
21932 }
21933 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21934 return resultobj;
21935 fail:
21936 return NULL;
21937 }
21938
21939
21940 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21941 PyObject *resultobj = 0;
21942 wxDC *arg1 = (wxDC *) 0 ;
21943 int *arg2 = (int *) 0 ;
21944 int *arg3 = (int *) 0 ;
21945 void *argp1 = 0 ;
21946 int res1 = 0 ;
21947 int temp2 ;
21948 int res2 = SWIG_TMPOBJ ;
21949 int temp3 ;
21950 int res3 = SWIG_TMPOBJ ;
21951 PyObject *swig_obj[1] ;
21952
21953 arg2 = &temp2;
21954 arg3 = &temp3;
21955 if (!args) SWIG_fail;
21956 swig_obj[0] = args;
21957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21958 if (!SWIG_IsOK(res1)) {
21959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21960 }
21961 arg1 = reinterpret_cast< wxDC * >(argp1);
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 resultobj = SWIG_Py_Void();
21969 if (SWIG_IsTmpObj(res2)) {
21970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21971 } else {
21972 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21974 }
21975 if (SWIG_IsTmpObj(res3)) {
21976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21977 } else {
21978 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21980 }
21981 return resultobj;
21982 fail:
21983 return NULL;
21984 }
21985
21986
21987 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21988 PyObject *resultobj = 0;
21989 wxDC *arg1 = (wxDC *) 0 ;
21990 int arg2 ;
21991 int arg3 ;
21992 void *argp1 = 0 ;
21993 int res1 = 0 ;
21994 int val2 ;
21995 int ecode2 = 0 ;
21996 int val3 ;
21997 int ecode3 = 0 ;
21998 PyObject * obj0 = 0 ;
21999 PyObject * obj1 = 0 ;
22000 PyObject * obj2 = 0 ;
22001 char * kwnames[] = {
22002 (char *) "self",(char *) "x",(char *) "y", NULL
22003 };
22004
22005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22007 if (!SWIG_IsOK(res1)) {
22008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22009 }
22010 arg1 = reinterpret_cast< wxDC * >(argp1);
22011 ecode2 = SWIG_AsVal_int(obj1, &val2);
22012 if (!SWIG_IsOK(ecode2)) {
22013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22014 }
22015 arg2 = static_cast< int >(val2);
22016 ecode3 = SWIG_AsVal_int(obj2, &val3);
22017 if (!SWIG_IsOK(ecode3)) {
22018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22019 }
22020 arg3 = static_cast< int >(val3);
22021 {
22022 PyThreadState* __tstate = wxPyBeginAllowThreads();
22023 (arg1)->SetLogicalOrigin(arg2,arg3);
22024 wxPyEndAllowThreads(__tstate);
22025 if (PyErr_Occurred()) SWIG_fail;
22026 }
22027 resultobj = SWIG_Py_Void();
22028 return resultobj;
22029 fail:
22030 return NULL;
22031 }
22032
22033
22034 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22035 PyObject *resultobj = 0;
22036 wxDC *arg1 = (wxDC *) 0 ;
22037 wxPoint *arg2 = 0 ;
22038 void *argp1 = 0 ;
22039 int res1 = 0 ;
22040 wxPoint temp2 ;
22041 PyObject * obj0 = 0 ;
22042 PyObject * obj1 = 0 ;
22043 char * kwnames[] = {
22044 (char *) "self",(char *) "point", NULL
22045 };
22046
22047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22049 if (!SWIG_IsOK(res1)) {
22050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22051 }
22052 arg1 = reinterpret_cast< wxDC * >(argp1);
22053 {
22054 arg2 = &temp2;
22055 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22056 }
22057 {
22058 PyThreadState* __tstate = wxPyBeginAllowThreads();
22059 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22060 wxPyEndAllowThreads(__tstate);
22061 if (PyErr_Occurred()) SWIG_fail;
22062 }
22063 resultobj = SWIG_Py_Void();
22064 return resultobj;
22065 fail:
22066 return NULL;
22067 }
22068
22069
22070 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22071 PyObject *resultobj = 0;
22072 wxDC *arg1 = (wxDC *) 0 ;
22073 wxPoint result;
22074 void *argp1 = 0 ;
22075 int res1 = 0 ;
22076 PyObject *swig_obj[1] ;
22077
22078 if (!args) SWIG_fail;
22079 swig_obj[0] = args;
22080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22081 if (!SWIG_IsOK(res1)) {
22082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22083 }
22084 arg1 = reinterpret_cast< wxDC * >(argp1);
22085 {
22086 PyThreadState* __tstate = wxPyBeginAllowThreads();
22087 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22088 wxPyEndAllowThreads(__tstate);
22089 if (PyErr_Occurred()) SWIG_fail;
22090 }
22091 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22092 return resultobj;
22093 fail:
22094 return NULL;
22095 }
22096
22097
22098 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22099 PyObject *resultobj = 0;
22100 wxDC *arg1 = (wxDC *) 0 ;
22101 int *arg2 = (int *) 0 ;
22102 int *arg3 = (int *) 0 ;
22103 void *argp1 = 0 ;
22104 int res1 = 0 ;
22105 int temp2 ;
22106 int res2 = SWIG_TMPOBJ ;
22107 int temp3 ;
22108 int res3 = SWIG_TMPOBJ ;
22109 PyObject *swig_obj[1] ;
22110
22111 arg2 = &temp2;
22112 arg3 = &temp3;
22113 if (!args) SWIG_fail;
22114 swig_obj[0] = args;
22115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22116 if (!SWIG_IsOK(res1)) {
22117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22118 }
22119 arg1 = reinterpret_cast< wxDC * >(argp1);
22120 {
22121 PyThreadState* __tstate = wxPyBeginAllowThreads();
22122 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22123 wxPyEndAllowThreads(__tstate);
22124 if (PyErr_Occurred()) SWIG_fail;
22125 }
22126 resultobj = SWIG_Py_Void();
22127 if (SWIG_IsTmpObj(res2)) {
22128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22129 } else {
22130 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22132 }
22133 if (SWIG_IsTmpObj(res3)) {
22134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22135 } else {
22136 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22137 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22138 }
22139 return resultobj;
22140 fail:
22141 return NULL;
22142 }
22143
22144
22145 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22146 PyObject *resultobj = 0;
22147 wxDC *arg1 = (wxDC *) 0 ;
22148 int arg2 ;
22149 int arg3 ;
22150 void *argp1 = 0 ;
22151 int res1 = 0 ;
22152 int val2 ;
22153 int ecode2 = 0 ;
22154 int val3 ;
22155 int ecode3 = 0 ;
22156 PyObject * obj0 = 0 ;
22157 PyObject * obj1 = 0 ;
22158 PyObject * obj2 = 0 ;
22159 char * kwnames[] = {
22160 (char *) "self",(char *) "x",(char *) "y", NULL
22161 };
22162
22163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22165 if (!SWIG_IsOK(res1)) {
22166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22167 }
22168 arg1 = reinterpret_cast< wxDC * >(argp1);
22169 ecode2 = SWIG_AsVal_int(obj1, &val2);
22170 if (!SWIG_IsOK(ecode2)) {
22171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22172 }
22173 arg2 = static_cast< int >(val2);
22174 ecode3 = SWIG_AsVal_int(obj2, &val3);
22175 if (!SWIG_IsOK(ecode3)) {
22176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22177 }
22178 arg3 = static_cast< int >(val3);
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 (arg1)->SetDeviceOrigin(arg2,arg3);
22182 wxPyEndAllowThreads(__tstate);
22183 if (PyErr_Occurred()) SWIG_fail;
22184 }
22185 resultobj = SWIG_Py_Void();
22186 return resultobj;
22187 fail:
22188 return NULL;
22189 }
22190
22191
22192 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22193 PyObject *resultobj = 0;
22194 wxDC *arg1 = (wxDC *) 0 ;
22195 wxPoint *arg2 = 0 ;
22196 void *argp1 = 0 ;
22197 int res1 = 0 ;
22198 wxPoint temp2 ;
22199 PyObject * obj0 = 0 ;
22200 PyObject * obj1 = 0 ;
22201 char * kwnames[] = {
22202 (char *) "self",(char *) "point", NULL
22203 };
22204
22205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22207 if (!SWIG_IsOK(res1)) {
22208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22209 }
22210 arg1 = reinterpret_cast< wxDC * >(argp1);
22211 {
22212 arg2 = &temp2;
22213 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22214 }
22215 {
22216 PyThreadState* __tstate = wxPyBeginAllowThreads();
22217 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22218 wxPyEndAllowThreads(__tstate);
22219 if (PyErr_Occurred()) SWIG_fail;
22220 }
22221 resultobj = SWIG_Py_Void();
22222 return resultobj;
22223 fail:
22224 return NULL;
22225 }
22226
22227
22228 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22229 PyObject *resultobj = 0;
22230 wxDC *arg1 = (wxDC *) 0 ;
22231 bool arg2 ;
22232 bool arg3 ;
22233 void *argp1 = 0 ;
22234 int res1 = 0 ;
22235 bool val2 ;
22236 int ecode2 = 0 ;
22237 bool val3 ;
22238 int ecode3 = 0 ;
22239 PyObject * obj0 = 0 ;
22240 PyObject * obj1 = 0 ;
22241 PyObject * obj2 = 0 ;
22242 char * kwnames[] = {
22243 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22244 };
22245
22246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22248 if (!SWIG_IsOK(res1)) {
22249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22250 }
22251 arg1 = reinterpret_cast< wxDC * >(argp1);
22252 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22253 if (!SWIG_IsOK(ecode2)) {
22254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22255 }
22256 arg2 = static_cast< bool >(val2);
22257 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22258 if (!SWIG_IsOK(ecode3)) {
22259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22260 }
22261 arg3 = static_cast< bool >(val3);
22262 {
22263 PyThreadState* __tstate = wxPyBeginAllowThreads();
22264 (arg1)->SetAxisOrientation(arg2,arg3);
22265 wxPyEndAllowThreads(__tstate);
22266 if (PyErr_Occurred()) SWIG_fail;
22267 }
22268 resultobj = SWIG_Py_Void();
22269 return resultobj;
22270 fail:
22271 return NULL;
22272 }
22273
22274
22275 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22276 PyObject *resultobj = 0;
22277 wxDC *arg1 = (wxDC *) 0 ;
22278 int result;
22279 void *argp1 = 0 ;
22280 int res1 = 0 ;
22281 PyObject *swig_obj[1] ;
22282
22283 if (!args) SWIG_fail;
22284 swig_obj[0] = args;
22285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22286 if (!SWIG_IsOK(res1)) {
22287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22288 }
22289 arg1 = reinterpret_cast< wxDC * >(argp1);
22290 {
22291 PyThreadState* __tstate = wxPyBeginAllowThreads();
22292 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22293 wxPyEndAllowThreads(__tstate);
22294 if (PyErr_Occurred()) SWIG_fail;
22295 }
22296 resultobj = SWIG_From_int(static_cast< int >(result));
22297 return resultobj;
22298 fail:
22299 return NULL;
22300 }
22301
22302
22303 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22304 PyObject *resultobj = 0;
22305 wxDC *arg1 = (wxDC *) 0 ;
22306 int arg2 ;
22307 void *argp1 = 0 ;
22308 int res1 = 0 ;
22309 int val2 ;
22310 int ecode2 = 0 ;
22311 PyObject * obj0 = 0 ;
22312 PyObject * obj1 = 0 ;
22313 char * kwnames[] = {
22314 (char *) "self",(char *) "function", NULL
22315 };
22316
22317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22319 if (!SWIG_IsOK(res1)) {
22320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22321 }
22322 arg1 = reinterpret_cast< wxDC * >(argp1);
22323 ecode2 = SWIG_AsVal_int(obj1, &val2);
22324 if (!SWIG_IsOK(ecode2)) {
22325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22326 }
22327 arg2 = static_cast< int >(val2);
22328 {
22329 PyThreadState* __tstate = wxPyBeginAllowThreads();
22330 (arg1)->SetLogicalFunction(arg2);
22331 wxPyEndAllowThreads(__tstate);
22332 if (PyErr_Occurred()) SWIG_fail;
22333 }
22334 resultobj = SWIG_Py_Void();
22335 return resultobj;
22336 fail:
22337 return NULL;
22338 }
22339
22340
22341 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22342 PyObject *resultobj = 0;
22343 wxDC *arg1 = (wxDC *) 0 ;
22344 void *argp1 = 0 ;
22345 int res1 = 0 ;
22346 PyObject *swig_obj[1] ;
22347
22348 if (!args) SWIG_fail;
22349 swig_obj[0] = args;
22350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22351 if (!SWIG_IsOK(res1)) {
22352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22353 }
22354 arg1 = reinterpret_cast< wxDC * >(argp1);
22355 {
22356 PyThreadState* __tstate = wxPyBeginAllowThreads();
22357 (arg1)->ComputeScaleAndOrigin();
22358 wxPyEndAllowThreads(__tstate);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 }
22361 resultobj = SWIG_Py_Void();
22362 return resultobj;
22363 fail:
22364 return NULL;
22365 }
22366
22367
22368 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22369 PyObject *resultobj = 0;
22370 wxDC *arg1 = (wxDC *) 0 ;
22371 int arg2 ;
22372 int arg3 ;
22373 void *argp1 = 0 ;
22374 int res1 = 0 ;
22375 int val2 ;
22376 int ecode2 = 0 ;
22377 int val3 ;
22378 int ecode3 = 0 ;
22379 PyObject * obj0 = 0 ;
22380 PyObject * obj1 = 0 ;
22381 PyObject * obj2 = 0 ;
22382 char * kwnames[] = {
22383 (char *) "self",(char *) "x",(char *) "y", NULL
22384 };
22385
22386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22388 if (!SWIG_IsOK(res1)) {
22389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22390 }
22391 arg1 = reinterpret_cast< wxDC * >(argp1);
22392 ecode2 = SWIG_AsVal_int(obj1, &val2);
22393 if (!SWIG_IsOK(ecode2)) {
22394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22395 }
22396 arg2 = static_cast< int >(val2);
22397 ecode3 = SWIG_AsVal_int(obj2, &val3);
22398 if (!SWIG_IsOK(ecode3)) {
22399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22400 }
22401 arg3 = static_cast< int >(val3);
22402 {
22403 PyThreadState* __tstate = wxPyBeginAllowThreads();
22404 (arg1)->CalcBoundingBox(arg2,arg3);
22405 wxPyEndAllowThreads(__tstate);
22406 if (PyErr_Occurred()) SWIG_fail;
22407 }
22408 resultobj = SWIG_Py_Void();
22409 return resultobj;
22410 fail:
22411 return NULL;
22412 }
22413
22414
22415 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22416 PyObject *resultobj = 0;
22417 wxDC *arg1 = (wxDC *) 0 ;
22418 wxPoint *arg2 = 0 ;
22419 void *argp1 = 0 ;
22420 int res1 = 0 ;
22421 wxPoint temp2 ;
22422 PyObject * obj0 = 0 ;
22423 PyObject * obj1 = 0 ;
22424 char * kwnames[] = {
22425 (char *) "self",(char *) "point", NULL
22426 };
22427
22428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22430 if (!SWIG_IsOK(res1)) {
22431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22432 }
22433 arg1 = reinterpret_cast< wxDC * >(argp1);
22434 {
22435 arg2 = &temp2;
22436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22437 }
22438 {
22439 PyThreadState* __tstate = wxPyBeginAllowThreads();
22440 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22441 wxPyEndAllowThreads(__tstate);
22442 if (PyErr_Occurred()) SWIG_fail;
22443 }
22444 resultobj = SWIG_Py_Void();
22445 return resultobj;
22446 fail:
22447 return NULL;
22448 }
22449
22450
22451 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22452 PyObject *resultobj = 0;
22453 wxDC *arg1 = (wxDC *) 0 ;
22454 void *argp1 = 0 ;
22455 int res1 = 0 ;
22456 PyObject *swig_obj[1] ;
22457
22458 if (!args) SWIG_fail;
22459 swig_obj[0] = args;
22460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22461 if (!SWIG_IsOK(res1)) {
22462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22463 }
22464 arg1 = reinterpret_cast< wxDC * >(argp1);
22465 {
22466 PyThreadState* __tstate = wxPyBeginAllowThreads();
22467 (arg1)->ResetBoundingBox();
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_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22479 PyObject *resultobj = 0;
22480 wxDC *arg1 = (wxDC *) 0 ;
22481 int result;
22482 void *argp1 = 0 ;
22483 int res1 = 0 ;
22484 PyObject *swig_obj[1] ;
22485
22486 if (!args) SWIG_fail;
22487 swig_obj[0] = args;
22488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22489 if (!SWIG_IsOK(res1)) {
22490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22491 }
22492 arg1 = reinterpret_cast< wxDC * >(argp1);
22493 {
22494 PyThreadState* __tstate = wxPyBeginAllowThreads();
22495 result = (int)((wxDC const *)arg1)->MinX();
22496 wxPyEndAllowThreads(__tstate);
22497 if (PyErr_Occurred()) SWIG_fail;
22498 }
22499 resultobj = SWIG_From_int(static_cast< int >(result));
22500 return resultobj;
22501 fail:
22502 return NULL;
22503 }
22504
22505
22506 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22507 PyObject *resultobj = 0;
22508 wxDC *arg1 = (wxDC *) 0 ;
22509 int result;
22510 void *argp1 = 0 ;
22511 int res1 = 0 ;
22512 PyObject *swig_obj[1] ;
22513
22514 if (!args) SWIG_fail;
22515 swig_obj[0] = args;
22516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22517 if (!SWIG_IsOK(res1)) {
22518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22519 }
22520 arg1 = reinterpret_cast< wxDC * >(argp1);
22521 {
22522 PyThreadState* __tstate = wxPyBeginAllowThreads();
22523 result = (int)((wxDC const *)arg1)->MaxX();
22524 wxPyEndAllowThreads(__tstate);
22525 if (PyErr_Occurred()) SWIG_fail;
22526 }
22527 resultobj = SWIG_From_int(static_cast< int >(result));
22528 return resultobj;
22529 fail:
22530 return NULL;
22531 }
22532
22533
22534 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22535 PyObject *resultobj = 0;
22536 wxDC *arg1 = (wxDC *) 0 ;
22537 int result;
22538 void *argp1 = 0 ;
22539 int res1 = 0 ;
22540 PyObject *swig_obj[1] ;
22541
22542 if (!args) SWIG_fail;
22543 swig_obj[0] = args;
22544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22545 if (!SWIG_IsOK(res1)) {
22546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22547 }
22548 arg1 = reinterpret_cast< wxDC * >(argp1);
22549 {
22550 PyThreadState* __tstate = wxPyBeginAllowThreads();
22551 result = (int)((wxDC const *)arg1)->MinY();
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 resultobj = SWIG_From_int(static_cast< int >(result));
22556 return resultobj;
22557 fail:
22558 return NULL;
22559 }
22560
22561
22562 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22563 PyObject *resultobj = 0;
22564 wxDC *arg1 = (wxDC *) 0 ;
22565 int result;
22566 void *argp1 = 0 ;
22567 int res1 = 0 ;
22568 PyObject *swig_obj[1] ;
22569
22570 if (!args) SWIG_fail;
22571 swig_obj[0] = args;
22572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22573 if (!SWIG_IsOK(res1)) {
22574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22575 }
22576 arg1 = reinterpret_cast< wxDC * >(argp1);
22577 {
22578 PyThreadState* __tstate = wxPyBeginAllowThreads();
22579 result = (int)((wxDC const *)arg1)->MaxY();
22580 wxPyEndAllowThreads(__tstate);
22581 if (PyErr_Occurred()) SWIG_fail;
22582 }
22583 resultobj = SWIG_From_int(static_cast< int >(result));
22584 return resultobj;
22585 fail:
22586 return NULL;
22587 }
22588
22589
22590 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22591 PyObject *resultobj = 0;
22592 wxDC *arg1 = (wxDC *) 0 ;
22593 int *arg2 = (int *) 0 ;
22594 int *arg3 = (int *) 0 ;
22595 int *arg4 = (int *) 0 ;
22596 int *arg5 = (int *) 0 ;
22597 void *argp1 = 0 ;
22598 int res1 = 0 ;
22599 int temp2 ;
22600 int res2 = SWIG_TMPOBJ ;
22601 int temp3 ;
22602 int res3 = SWIG_TMPOBJ ;
22603 int temp4 ;
22604 int res4 = SWIG_TMPOBJ ;
22605 int temp5 ;
22606 int res5 = SWIG_TMPOBJ ;
22607 PyObject *swig_obj[1] ;
22608
22609 arg2 = &temp2;
22610 arg3 = &temp3;
22611 arg4 = &temp4;
22612 arg5 = &temp5;
22613 if (!args) SWIG_fail;
22614 swig_obj[0] = args;
22615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22616 if (!SWIG_IsOK(res1)) {
22617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22618 }
22619 arg1 = reinterpret_cast< wxDC * >(argp1);
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_Py_Void();
22627 if (SWIG_IsTmpObj(res2)) {
22628 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22629 } else {
22630 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22631 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22632 }
22633 if (SWIG_IsTmpObj(res3)) {
22634 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22635 } else {
22636 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22637 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22638 }
22639 if (SWIG_IsTmpObj(res4)) {
22640 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22641 } else {
22642 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22644 }
22645 if (SWIG_IsTmpObj(res5)) {
22646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22647 } else {
22648 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22650 }
22651 return resultobj;
22652 fail:
22653 return NULL;
22654 }
22655
22656
22657 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22658 PyObject *resultobj = 0;
22659 wxDC *arg1 = (wxDC *) 0 ;
22660 PyObject *arg2 = (PyObject *) 0 ;
22661 PyObject *arg3 = (PyObject *) 0 ;
22662 PyObject *arg4 = (PyObject *) 0 ;
22663 PyObject *result = 0 ;
22664 void *argp1 = 0 ;
22665 int res1 = 0 ;
22666 PyObject * obj0 = 0 ;
22667 PyObject * obj1 = 0 ;
22668 PyObject * obj2 = 0 ;
22669 PyObject * obj3 = 0 ;
22670 char * kwnames[] = {
22671 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22672 };
22673
22674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22676 if (!SWIG_IsOK(res1)) {
22677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22678 }
22679 arg1 = reinterpret_cast< wxDC * >(argp1);
22680 arg2 = obj1;
22681 arg3 = obj2;
22682 arg4 = obj3;
22683 {
22684 PyThreadState* __tstate = wxPyBeginAllowThreads();
22685 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22686 wxPyEndAllowThreads(__tstate);
22687 if (PyErr_Occurred()) SWIG_fail;
22688 }
22689 resultobj = result;
22690 return resultobj;
22691 fail:
22692 return NULL;
22693 }
22694
22695
22696 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22697 PyObject *resultobj = 0;
22698 wxDC *arg1 = (wxDC *) 0 ;
22699 PyObject *arg2 = (PyObject *) 0 ;
22700 PyObject *arg3 = (PyObject *) 0 ;
22701 PyObject *arg4 = (PyObject *) 0 ;
22702 PyObject *result = 0 ;
22703 void *argp1 = 0 ;
22704 int res1 = 0 ;
22705 PyObject * obj0 = 0 ;
22706 PyObject * obj1 = 0 ;
22707 PyObject * obj2 = 0 ;
22708 PyObject * obj3 = 0 ;
22709 char * kwnames[] = {
22710 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22711 };
22712
22713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22715 if (!SWIG_IsOK(res1)) {
22716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22717 }
22718 arg1 = reinterpret_cast< wxDC * >(argp1);
22719 arg2 = obj1;
22720 arg3 = obj2;
22721 arg4 = obj3;
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 resultobj = result;
22729 return resultobj;
22730 fail:
22731 return NULL;
22732 }
22733
22734
22735 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22736 PyObject *resultobj = 0;
22737 wxDC *arg1 = (wxDC *) 0 ;
22738 PyObject *arg2 = (PyObject *) 0 ;
22739 PyObject *arg3 = (PyObject *) 0 ;
22740 PyObject *arg4 = (PyObject *) 0 ;
22741 PyObject *result = 0 ;
22742 void *argp1 = 0 ;
22743 int res1 = 0 ;
22744 PyObject * obj0 = 0 ;
22745 PyObject * obj1 = 0 ;
22746 PyObject * obj2 = 0 ;
22747 PyObject * obj3 = 0 ;
22748 char * kwnames[] = {
22749 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22750 };
22751
22752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22754 if (!SWIG_IsOK(res1)) {
22755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22756 }
22757 arg1 = reinterpret_cast< wxDC * >(argp1);
22758 arg2 = obj1;
22759 arg3 = obj2;
22760 arg4 = obj3;
22761 {
22762 PyThreadState* __tstate = wxPyBeginAllowThreads();
22763 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22764 wxPyEndAllowThreads(__tstate);
22765 if (PyErr_Occurred()) SWIG_fail;
22766 }
22767 resultobj = result;
22768 return resultobj;
22769 fail:
22770 return NULL;
22771 }
22772
22773
22774 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22775 PyObject *resultobj = 0;
22776 wxDC *arg1 = (wxDC *) 0 ;
22777 PyObject *arg2 = (PyObject *) 0 ;
22778 PyObject *arg3 = (PyObject *) 0 ;
22779 PyObject *arg4 = (PyObject *) 0 ;
22780 PyObject *result = 0 ;
22781 void *argp1 = 0 ;
22782 int res1 = 0 ;
22783 PyObject * obj0 = 0 ;
22784 PyObject * obj1 = 0 ;
22785 PyObject * obj2 = 0 ;
22786 PyObject * obj3 = 0 ;
22787 char * kwnames[] = {
22788 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22789 };
22790
22791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22793 if (!SWIG_IsOK(res1)) {
22794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22795 }
22796 arg1 = reinterpret_cast< wxDC * >(argp1);
22797 arg2 = obj1;
22798 arg3 = obj2;
22799 arg4 = obj3;
22800 {
22801 PyThreadState* __tstate = wxPyBeginAllowThreads();
22802 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22803 wxPyEndAllowThreads(__tstate);
22804 if (PyErr_Occurred()) SWIG_fail;
22805 }
22806 resultobj = result;
22807 return resultobj;
22808 fail:
22809 return NULL;
22810 }
22811
22812
22813 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22814 PyObject *resultobj = 0;
22815 wxDC *arg1 = (wxDC *) 0 ;
22816 PyObject *arg2 = (PyObject *) 0 ;
22817 PyObject *arg3 = (PyObject *) 0 ;
22818 PyObject *arg4 = (PyObject *) 0 ;
22819 PyObject *result = 0 ;
22820 void *argp1 = 0 ;
22821 int res1 = 0 ;
22822 PyObject * obj0 = 0 ;
22823 PyObject * obj1 = 0 ;
22824 PyObject * obj2 = 0 ;
22825 PyObject * obj3 = 0 ;
22826 char * kwnames[] = {
22827 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22828 };
22829
22830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22832 if (!SWIG_IsOK(res1)) {
22833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22834 }
22835 arg1 = reinterpret_cast< wxDC * >(argp1);
22836 arg2 = obj1;
22837 arg3 = obj2;
22838 arg4 = obj3;
22839 {
22840 PyThreadState* __tstate = wxPyBeginAllowThreads();
22841 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 resultobj = result;
22846 return resultobj;
22847 fail:
22848 return NULL;
22849 }
22850
22851
22852 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22853 PyObject *resultobj = 0;
22854 wxDC *arg1 = (wxDC *) 0 ;
22855 PyObject *arg2 = (PyObject *) 0 ;
22856 PyObject *arg3 = (PyObject *) 0 ;
22857 PyObject *arg4 = (PyObject *) 0 ;
22858 PyObject *arg5 = (PyObject *) 0 ;
22859 PyObject *result = 0 ;
22860 void *argp1 = 0 ;
22861 int res1 = 0 ;
22862 PyObject * obj0 = 0 ;
22863 PyObject * obj1 = 0 ;
22864 PyObject * obj2 = 0 ;
22865 PyObject * obj3 = 0 ;
22866 PyObject * obj4 = 0 ;
22867 char * kwnames[] = {
22868 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22869 };
22870
22871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22873 if (!SWIG_IsOK(res1)) {
22874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22875 }
22876 arg1 = reinterpret_cast< wxDC * >(argp1);
22877 arg2 = obj1;
22878 arg3 = obj2;
22879 arg4 = obj3;
22880 arg5 = obj4;
22881 {
22882 PyThreadState* __tstate = wxPyBeginAllowThreads();
22883 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
22884 wxPyEndAllowThreads(__tstate);
22885 if (PyErr_Occurred()) SWIG_fail;
22886 }
22887 resultobj = result;
22888 return resultobj;
22889 fail:
22890 return NULL;
22891 }
22892
22893
22894 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22895 PyObject *obj;
22896 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22897 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
22898 return SWIG_Py_Void();
22899 }
22900
22901 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22902 PyObject *resultobj = 0;
22903 wxMemoryDC *result = 0 ;
22904
22905 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
22906 {
22907 if (!wxPyCheckForApp()) SWIG_fail;
22908 PyThreadState* __tstate = wxPyBeginAllowThreads();
22909 result = (wxMemoryDC *)new wxMemoryDC();
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
22914 return resultobj;
22915 fail:
22916 return NULL;
22917 }
22918
22919
22920 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22921 PyObject *resultobj = 0;
22922 wxDC *arg1 = (wxDC *) 0 ;
22923 wxMemoryDC *result = 0 ;
22924 void *argp1 = 0 ;
22925 int res1 = 0 ;
22926 PyObject * obj0 = 0 ;
22927 char * kwnames[] = {
22928 (char *) "oldDC", NULL
22929 };
22930
22931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
22932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22933 if (!SWIG_IsOK(res1)) {
22934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
22935 }
22936 arg1 = reinterpret_cast< wxDC * >(argp1);
22937 {
22938 if (!wxPyCheckForApp()) SWIG_fail;
22939 PyThreadState* __tstate = wxPyBeginAllowThreads();
22940 result = (wxMemoryDC *)new wxMemoryDC(arg1);
22941 wxPyEndAllowThreads(__tstate);
22942 if (PyErr_Occurred()) SWIG_fail;
22943 }
22944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
22945 return resultobj;
22946 fail:
22947 return NULL;
22948 }
22949
22950
22951 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22952 PyObject *resultobj = 0;
22953 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
22954 wxBitmap *arg2 = 0 ;
22955 void *argp1 = 0 ;
22956 int res1 = 0 ;
22957 void *argp2 = 0 ;
22958 int res2 = 0 ;
22959 PyObject * obj0 = 0 ;
22960 PyObject * obj1 = 0 ;
22961 char * kwnames[] = {
22962 (char *) "self",(char *) "bitmap", NULL
22963 };
22964
22965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
22966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
22967 if (!SWIG_IsOK(res1)) {
22968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
22969 }
22970 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
22971 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22972 if (!SWIG_IsOK(res2)) {
22973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22974 }
22975 if (!argp2) {
22976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22977 }
22978 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 (arg1)->SelectObject((wxBitmap const &)*arg2);
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = SWIG_Py_Void();
22986 return resultobj;
22987 fail:
22988 return NULL;
22989 }
22990
22991
22992 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22993 PyObject *obj;
22994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22995 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
22996 return SWIG_Py_Void();
22997 }
22998
22999 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23000 return SWIG_Python_InitShadowInstance(args);
23001 }
23002
23003 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23004 PyObject *resultobj = 0;
23005 wxDC *arg1 = (wxDC *) 0 ;
23006 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23007 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23008 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23009 wxBufferedDC *result = 0 ;
23010 void *argp1 = 0 ;
23011 int res1 = 0 ;
23012 void *argp2 = 0 ;
23013 int res2 = 0 ;
23014 int val3 ;
23015 int ecode3 = 0 ;
23016
23017 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23021 }
23022 arg1 = reinterpret_cast< wxDC * >(argp1);
23023 if (swig_obj[1]) {
23024 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23025 if (!SWIG_IsOK(res2)) {
23026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23027 }
23028 if (!argp2) {
23029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23030 }
23031 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23032 }
23033 if (swig_obj[2]) {
23034 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23035 if (!SWIG_IsOK(ecode3)) {
23036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23037 }
23038 arg3 = static_cast< int >(val3);
23039 }
23040 {
23041 if (!wxPyCheckForApp()) SWIG_fail;
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23048 return resultobj;
23049 fail:
23050 return NULL;
23051 }
23052
23053
23054 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23055 PyObject *resultobj = 0;
23056 wxDC *arg1 = (wxDC *) 0 ;
23057 wxSize *arg2 = 0 ;
23058 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23059 wxBufferedDC *result = 0 ;
23060 void *argp1 = 0 ;
23061 int res1 = 0 ;
23062 wxSize temp2 ;
23063 int val3 ;
23064 int ecode3 = 0 ;
23065
23066 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23070 }
23071 arg1 = reinterpret_cast< wxDC * >(argp1);
23072 {
23073 arg2 = &temp2;
23074 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23075 }
23076 if (swig_obj[2]) {
23077 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23078 if (!SWIG_IsOK(ecode3)) {
23079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23080 }
23081 arg3 = static_cast< int >(val3);
23082 }
23083 {
23084 if (!wxPyCheckForApp()) SWIG_fail;
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
23086 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23091 return resultobj;
23092 fail:
23093 return NULL;
23094 }
23095
23096
23097 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23098 int argc;
23099 PyObject *argv[4];
23100
23101 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23102 --argc;
23103 if ((argc >= 1) && (argc <= 3)) {
23104 int _v = 0;
23105 if (argc > 1) {
23106 {
23107 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23108 _v = SWIG_CheckState(res);
23109 }
23110 if (!_v) goto check_1;
23111 }
23112 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23113 }
23114 check_1:
23115
23116 if ((argc >= 2) && (argc <= 3)) {
23117 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23118 }
23119
23120 fail:
23121 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23122 return NULL;
23123 }
23124
23125
23126 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23127 PyObject *resultobj = 0;
23128 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23129 void *argp1 = 0 ;
23130 int res1 = 0 ;
23131 PyObject *swig_obj[1] ;
23132
23133 if (!args) SWIG_fail;
23134 swig_obj[0] = args;
23135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23136 if (!SWIG_IsOK(res1)) {
23137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23138 }
23139 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23140 {
23141 PyThreadState* __tstate = wxPyBeginAllowThreads();
23142 delete arg1;
23143
23144 wxPyEndAllowThreads(__tstate);
23145 if (PyErr_Occurred()) SWIG_fail;
23146 }
23147 resultobj = SWIG_Py_Void();
23148 return resultobj;
23149 fail:
23150 return NULL;
23151 }
23152
23153
23154 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23155 PyObject *resultobj = 0;
23156 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23157 void *argp1 = 0 ;
23158 int res1 = 0 ;
23159 PyObject *swig_obj[1] ;
23160
23161 if (!args) SWIG_fail;
23162 swig_obj[0] = args;
23163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23164 if (!SWIG_IsOK(res1)) {
23165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23166 }
23167 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23168 {
23169 PyThreadState* __tstate = wxPyBeginAllowThreads();
23170 (arg1)->UnMask();
23171 wxPyEndAllowThreads(__tstate);
23172 if (PyErr_Occurred()) SWIG_fail;
23173 }
23174 resultobj = SWIG_Py_Void();
23175 return resultobj;
23176 fail:
23177 return NULL;
23178 }
23179
23180
23181 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23182 PyObject *obj;
23183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23184 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23185 return SWIG_Py_Void();
23186 }
23187
23188 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23189 return SWIG_Python_InitShadowInstance(args);
23190 }
23191
23192 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23193 PyObject *resultobj = 0;
23194 wxWindow *arg1 = (wxWindow *) 0 ;
23195 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23196 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23197 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23198 wxBufferedPaintDC *result = 0 ;
23199 void *argp1 = 0 ;
23200 int res1 = 0 ;
23201 void *argp2 = 0 ;
23202 int res2 = 0 ;
23203 int val3 ;
23204 int ecode3 = 0 ;
23205 PyObject * obj0 = 0 ;
23206 PyObject * obj1 = 0 ;
23207 PyObject * obj2 = 0 ;
23208 char * kwnames[] = {
23209 (char *) "window",(char *) "buffer",(char *) "style", NULL
23210 };
23211
23212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23214 if (!SWIG_IsOK(res1)) {
23215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23216 }
23217 arg1 = reinterpret_cast< wxWindow * >(argp1);
23218 if (obj1) {
23219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23220 if (!SWIG_IsOK(res2)) {
23221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23222 }
23223 if (!argp2) {
23224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23225 }
23226 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23227 }
23228 if (obj2) {
23229 ecode3 = SWIG_AsVal_int(obj2, &val3);
23230 if (!SWIG_IsOK(ecode3)) {
23231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23232 }
23233 arg3 = static_cast< int >(val3);
23234 }
23235 {
23236 if (!wxPyCheckForApp()) SWIG_fail;
23237 PyThreadState* __tstate = wxPyBeginAllowThreads();
23238 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23239 wxPyEndAllowThreads(__tstate);
23240 if (PyErr_Occurred()) SWIG_fail;
23241 }
23242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23243 return resultobj;
23244 fail:
23245 return NULL;
23246 }
23247
23248
23249 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23250 PyObject *obj;
23251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23252 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23253 return SWIG_Py_Void();
23254 }
23255
23256 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23257 return SWIG_Python_InitShadowInstance(args);
23258 }
23259
23260 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23261 PyObject *resultobj = 0;
23262 wxScreenDC *result = 0 ;
23263
23264 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23265 {
23266 if (!wxPyCheckForApp()) SWIG_fail;
23267 PyThreadState* __tstate = wxPyBeginAllowThreads();
23268 result = (wxScreenDC *)new wxScreenDC();
23269 wxPyEndAllowThreads(__tstate);
23270 if (PyErr_Occurred()) SWIG_fail;
23271 }
23272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23273 return resultobj;
23274 fail:
23275 return NULL;
23276 }
23277
23278
23279 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23280 PyObject *resultobj = 0;
23281 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23282 wxWindow *arg2 = (wxWindow *) 0 ;
23283 bool result;
23284 void *argp1 = 0 ;
23285 int res1 = 0 ;
23286 void *argp2 = 0 ;
23287 int res2 = 0 ;
23288 PyObject * obj0 = 0 ;
23289 PyObject * obj1 = 0 ;
23290 char * kwnames[] = {
23291 (char *) "self",(char *) "window", NULL
23292 };
23293
23294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23296 if (!SWIG_IsOK(res1)) {
23297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23298 }
23299 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23301 if (!SWIG_IsOK(res2)) {
23302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23303 }
23304 arg2 = reinterpret_cast< wxWindow * >(argp2);
23305 {
23306 PyThreadState* __tstate = wxPyBeginAllowThreads();
23307 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23308 wxPyEndAllowThreads(__tstate);
23309 if (PyErr_Occurred()) SWIG_fail;
23310 }
23311 {
23312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23313 }
23314 return resultobj;
23315 fail:
23316 return NULL;
23317 }
23318
23319
23320 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23321 PyObject *resultobj = 0;
23322 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23323 wxRect *arg2 = (wxRect *) NULL ;
23324 bool result;
23325 void *argp1 = 0 ;
23326 int res1 = 0 ;
23327 void *argp2 = 0 ;
23328 int res2 = 0 ;
23329 PyObject * obj0 = 0 ;
23330 PyObject * obj1 = 0 ;
23331 char * kwnames[] = {
23332 (char *) "self",(char *) "rect", NULL
23333 };
23334
23335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23337 if (!SWIG_IsOK(res1)) {
23338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23339 }
23340 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23341 if (obj1) {
23342 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23343 if (!SWIG_IsOK(res2)) {
23344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23345 }
23346 arg2 = reinterpret_cast< wxRect * >(argp2);
23347 }
23348 {
23349 PyThreadState* __tstate = wxPyBeginAllowThreads();
23350 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23351 wxPyEndAllowThreads(__tstate);
23352 if (PyErr_Occurred()) SWIG_fail;
23353 }
23354 {
23355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23356 }
23357 return resultobj;
23358 fail:
23359 return NULL;
23360 }
23361
23362
23363 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23364 PyObject *resultobj = 0;
23365 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23366 bool result;
23367 void *argp1 = 0 ;
23368 int res1 = 0 ;
23369 PyObject *swig_obj[1] ;
23370
23371 if (!args) SWIG_fail;
23372 swig_obj[0] = args;
23373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23376 }
23377 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 result = (bool)(arg1)->EndDrawingOnTop();
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 {
23385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23386 }
23387 return resultobj;
23388 fail:
23389 return NULL;
23390 }
23391
23392
23393 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23394 PyObject *obj;
23395 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23396 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23397 return SWIG_Py_Void();
23398 }
23399
23400 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23401 return SWIG_Python_InitShadowInstance(args);
23402 }
23403
23404 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23405 PyObject *resultobj = 0;
23406 wxWindow *arg1 = (wxWindow *) 0 ;
23407 wxClientDC *result = 0 ;
23408 void *argp1 = 0 ;
23409 int res1 = 0 ;
23410 PyObject * obj0 = 0 ;
23411 char * kwnames[] = {
23412 (char *) "win", NULL
23413 };
23414
23415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23417 if (!SWIG_IsOK(res1)) {
23418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23419 }
23420 arg1 = reinterpret_cast< wxWindow * >(argp1);
23421 {
23422 if (!wxPyCheckForApp()) SWIG_fail;
23423 PyThreadState* __tstate = wxPyBeginAllowThreads();
23424 result = (wxClientDC *)new wxClientDC(arg1);
23425 wxPyEndAllowThreads(__tstate);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 }
23428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23429 return resultobj;
23430 fail:
23431 return NULL;
23432 }
23433
23434
23435 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23436 PyObject *obj;
23437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23438 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23439 return SWIG_Py_Void();
23440 }
23441
23442 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23443 return SWIG_Python_InitShadowInstance(args);
23444 }
23445
23446 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23447 PyObject *resultobj = 0;
23448 wxWindow *arg1 = (wxWindow *) 0 ;
23449 wxPaintDC *result = 0 ;
23450 void *argp1 = 0 ;
23451 int res1 = 0 ;
23452 PyObject * obj0 = 0 ;
23453 char * kwnames[] = {
23454 (char *) "win", NULL
23455 };
23456
23457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23459 if (!SWIG_IsOK(res1)) {
23460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23461 }
23462 arg1 = reinterpret_cast< wxWindow * >(argp1);
23463 {
23464 if (!wxPyCheckForApp()) SWIG_fail;
23465 PyThreadState* __tstate = wxPyBeginAllowThreads();
23466 result = (wxPaintDC *)new wxPaintDC(arg1);
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23471 return resultobj;
23472 fail:
23473 return NULL;
23474 }
23475
23476
23477 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23478 PyObject *obj;
23479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23480 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23481 return SWIG_Py_Void();
23482 }
23483
23484 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23485 return SWIG_Python_InitShadowInstance(args);
23486 }
23487
23488 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23489 PyObject *resultobj = 0;
23490 wxWindow *arg1 = (wxWindow *) 0 ;
23491 wxWindowDC *result = 0 ;
23492 void *argp1 = 0 ;
23493 int res1 = 0 ;
23494 PyObject * obj0 = 0 ;
23495 char * kwnames[] = {
23496 (char *) "win", NULL
23497 };
23498
23499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23501 if (!SWIG_IsOK(res1)) {
23502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23503 }
23504 arg1 = reinterpret_cast< wxWindow * >(argp1);
23505 {
23506 if (!wxPyCheckForApp()) SWIG_fail;
23507 PyThreadState* __tstate = wxPyBeginAllowThreads();
23508 result = (wxWindowDC *)new wxWindowDC(arg1);
23509 wxPyEndAllowThreads(__tstate);
23510 if (PyErr_Occurred()) SWIG_fail;
23511 }
23512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23513 return resultobj;
23514 fail:
23515 return NULL;
23516 }
23517
23518
23519 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23520 PyObject *obj;
23521 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23522 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23523 return SWIG_Py_Void();
23524 }
23525
23526 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23527 return SWIG_Python_InitShadowInstance(args);
23528 }
23529
23530 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23531 PyObject *resultobj = 0;
23532 wxDC *arg1 = 0 ;
23533 bool arg2 ;
23534 wxMirrorDC *result = 0 ;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 bool val2 ;
23538 int ecode2 = 0 ;
23539 PyObject * obj0 = 0 ;
23540 PyObject * obj1 = 0 ;
23541 char * kwnames[] = {
23542 (char *) "dc",(char *) "mirror", NULL
23543 };
23544
23545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23546 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23547 if (!SWIG_IsOK(res1)) {
23548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23549 }
23550 if (!argp1) {
23551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23552 }
23553 arg1 = reinterpret_cast< wxDC * >(argp1);
23554 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23555 if (!SWIG_IsOK(ecode2)) {
23556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23557 }
23558 arg2 = static_cast< bool >(val2);
23559 {
23560 if (!wxPyCheckForApp()) SWIG_fail;
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23563 wxPyEndAllowThreads(__tstate);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
23566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23567 return resultobj;
23568 fail:
23569 return NULL;
23570 }
23571
23572
23573 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23574 PyObject *obj;
23575 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23576 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23577 return SWIG_Py_Void();
23578 }
23579
23580 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23581 return SWIG_Python_InitShadowInstance(args);
23582 }
23583
23584 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23585 PyObject *resultobj = 0;
23586 wxPrintData *arg1 = 0 ;
23587 wxPostScriptDC *result = 0 ;
23588 void *argp1 = 0 ;
23589 int res1 = 0 ;
23590 PyObject * obj0 = 0 ;
23591 char * kwnames[] = {
23592 (char *) "printData", NULL
23593 };
23594
23595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23596 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23597 if (!SWIG_IsOK(res1)) {
23598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23599 }
23600 if (!argp1) {
23601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23602 }
23603 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23604 {
23605 if (!wxPyCheckForApp()) SWIG_fail;
23606 PyThreadState* __tstate = wxPyBeginAllowThreads();
23607 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23608 wxPyEndAllowThreads(__tstate);
23609 if (PyErr_Occurred()) SWIG_fail;
23610 }
23611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23612 return resultobj;
23613 fail:
23614 return NULL;
23615 }
23616
23617
23618 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23619 PyObject *resultobj = 0;
23620 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23621 wxPrintData *result = 0 ;
23622 void *argp1 = 0 ;
23623 int res1 = 0 ;
23624 PyObject *swig_obj[1] ;
23625
23626 if (!args) SWIG_fail;
23627 swig_obj[0] = args;
23628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23629 if (!SWIG_IsOK(res1)) {
23630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23631 }
23632 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23633 {
23634 PyThreadState* __tstate = wxPyBeginAllowThreads();
23635 {
23636 wxPrintData &_result_ref = (arg1)->GetPrintData();
23637 result = (wxPrintData *) &_result_ref;
23638 }
23639 wxPyEndAllowThreads(__tstate);
23640 if (PyErr_Occurred()) SWIG_fail;
23641 }
23642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23643 return resultobj;
23644 fail:
23645 return NULL;
23646 }
23647
23648
23649 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23650 PyObject *resultobj = 0;
23651 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23652 wxPrintData *arg2 = 0 ;
23653 void *argp1 = 0 ;
23654 int res1 = 0 ;
23655 void *argp2 = 0 ;
23656 int res2 = 0 ;
23657 PyObject * obj0 = 0 ;
23658 PyObject * obj1 = 0 ;
23659 char * kwnames[] = {
23660 (char *) "self",(char *) "data", NULL
23661 };
23662
23663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23665 if (!SWIG_IsOK(res1)) {
23666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23667 }
23668 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23670 if (!SWIG_IsOK(res2)) {
23671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23672 }
23673 if (!argp2) {
23674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23675 }
23676 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23677 {
23678 PyThreadState* __tstate = wxPyBeginAllowThreads();
23679 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23680 wxPyEndAllowThreads(__tstate);
23681 if (PyErr_Occurred()) SWIG_fail;
23682 }
23683 resultobj = SWIG_Py_Void();
23684 return resultobj;
23685 fail:
23686 return NULL;
23687 }
23688
23689
23690 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23691 PyObject *resultobj = 0;
23692 int arg1 ;
23693 int val1 ;
23694 int ecode1 = 0 ;
23695 PyObject * obj0 = 0 ;
23696 char * kwnames[] = {
23697 (char *) "ppi", NULL
23698 };
23699
23700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23701 ecode1 = SWIG_AsVal_int(obj0, &val1);
23702 if (!SWIG_IsOK(ecode1)) {
23703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23704 }
23705 arg1 = static_cast< int >(val1);
23706 {
23707 PyThreadState* __tstate = wxPyBeginAllowThreads();
23708 wxPostScriptDC::SetResolution(arg1);
23709 wxPyEndAllowThreads(__tstate);
23710 if (PyErr_Occurred()) SWIG_fail;
23711 }
23712 resultobj = SWIG_Py_Void();
23713 return resultobj;
23714 fail:
23715 return NULL;
23716 }
23717
23718
23719 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23720 PyObject *resultobj = 0;
23721 int result;
23722
23723 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 result = (int)wxPostScriptDC::GetResolution();
23727 wxPyEndAllowThreads(__tstate);
23728 if (PyErr_Occurred()) SWIG_fail;
23729 }
23730 resultobj = SWIG_From_int(static_cast< int >(result));
23731 return resultobj;
23732 fail:
23733 return NULL;
23734 }
23735
23736
23737 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23738 PyObject *obj;
23739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23740 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23741 return SWIG_Py_Void();
23742 }
23743
23744 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23745 return SWIG_Python_InitShadowInstance(args);
23746 }
23747
23748 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23749 PyObject *resultobj = 0;
23750 wxString const &arg1_defvalue = wxPyEmptyString ;
23751 wxString *arg1 = (wxString *) &arg1_defvalue ;
23752 wxMetaFile *result = 0 ;
23753 bool temp1 = false ;
23754 PyObject * obj0 = 0 ;
23755 char * kwnames[] = {
23756 (char *) "filename", NULL
23757 };
23758
23759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23760 if (obj0) {
23761 {
23762 arg1 = wxString_in_helper(obj0);
23763 if (arg1 == NULL) SWIG_fail;
23764 temp1 = true;
23765 }
23766 }
23767 {
23768 if (!wxPyCheckForApp()) SWIG_fail;
23769 PyThreadState* __tstate = wxPyBeginAllowThreads();
23770 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23775 {
23776 if (temp1)
23777 delete arg1;
23778 }
23779 return resultobj;
23780 fail:
23781 {
23782 if (temp1)
23783 delete arg1;
23784 }
23785 return NULL;
23786 }
23787
23788
23789 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23790 PyObject *obj;
23791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23792 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
23793 return SWIG_Py_Void();
23794 }
23795
23796 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23797 return SWIG_Python_InitShadowInstance(args);
23798 }
23799
23800 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23801 PyObject *resultobj = 0;
23802 wxString const &arg1_defvalue = wxPyEmptyString ;
23803 wxString *arg1 = (wxString *) &arg1_defvalue ;
23804 int arg2 = (int) 0 ;
23805 int arg3 = (int) 0 ;
23806 wxString const &arg4_defvalue = wxPyEmptyString ;
23807 wxString *arg4 = (wxString *) &arg4_defvalue ;
23808 wxMetaFileDC *result = 0 ;
23809 bool temp1 = false ;
23810 int val2 ;
23811 int ecode2 = 0 ;
23812 int val3 ;
23813 int ecode3 = 0 ;
23814 bool temp4 = false ;
23815 PyObject * obj0 = 0 ;
23816 PyObject * obj1 = 0 ;
23817 PyObject * obj2 = 0 ;
23818 PyObject * obj3 = 0 ;
23819 char * kwnames[] = {
23820 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
23821 };
23822
23823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23824 if (obj0) {
23825 {
23826 arg1 = wxString_in_helper(obj0);
23827 if (arg1 == NULL) SWIG_fail;
23828 temp1 = true;
23829 }
23830 }
23831 if (obj1) {
23832 ecode2 = SWIG_AsVal_int(obj1, &val2);
23833 if (!SWIG_IsOK(ecode2)) {
23834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
23835 }
23836 arg2 = static_cast< int >(val2);
23837 }
23838 if (obj2) {
23839 ecode3 = SWIG_AsVal_int(obj2, &val3);
23840 if (!SWIG_IsOK(ecode3)) {
23841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
23842 }
23843 arg3 = static_cast< int >(val3);
23844 }
23845 if (obj3) {
23846 {
23847 arg4 = wxString_in_helper(obj3);
23848 if (arg4 == NULL) SWIG_fail;
23849 temp4 = true;
23850 }
23851 }
23852 {
23853 if (!wxPyCheckForApp()) SWIG_fail;
23854 PyThreadState* __tstate = wxPyBeginAllowThreads();
23855 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
23856 wxPyEndAllowThreads(__tstate);
23857 if (PyErr_Occurred()) SWIG_fail;
23858 }
23859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
23860 {
23861 if (temp1)
23862 delete arg1;
23863 }
23864 {
23865 if (temp4)
23866 delete arg4;
23867 }
23868 return resultobj;
23869 fail:
23870 {
23871 if (temp1)
23872 delete arg1;
23873 }
23874 {
23875 if (temp4)
23876 delete arg4;
23877 }
23878 return NULL;
23879 }
23880
23881
23882 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23883 PyObject *obj;
23884 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23885 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
23886 return SWIG_Py_Void();
23887 }
23888
23889 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23890 return SWIG_Python_InitShadowInstance(args);
23891 }
23892
23893 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23894 PyObject *resultobj = 0;
23895 wxPrintData *arg1 = 0 ;
23896 wxPrinterDC *result = 0 ;
23897 void *argp1 = 0 ;
23898 int res1 = 0 ;
23899 PyObject * obj0 = 0 ;
23900 char * kwnames[] = {
23901 (char *) "printData", NULL
23902 };
23903
23904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
23905 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23906 if (!SWIG_IsOK(res1)) {
23907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23908 }
23909 if (!argp1) {
23910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23911 }
23912 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23913 {
23914 if (!wxPyCheckForApp()) SWIG_fail;
23915 PyThreadState* __tstate = wxPyBeginAllowThreads();
23916 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
23917 wxPyEndAllowThreads(__tstate);
23918 if (PyErr_Occurred()) SWIG_fail;
23919 }
23920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
23921 return resultobj;
23922 fail:
23923 return NULL;
23924 }
23925
23926
23927 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23928 PyObject *obj;
23929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23930 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
23931 return SWIG_Py_Void();
23932 }
23933
23934 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23935 return SWIG_Python_InitShadowInstance(args);
23936 }
23937
23938 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23939 PyObject *resultobj = 0;
23940 int arg1 ;
23941 int arg2 ;
23942 int arg3 = (int) true ;
23943 int arg4 = (int) 1 ;
23944 wxImageList *result = 0 ;
23945 int val1 ;
23946 int ecode1 = 0 ;
23947 int val2 ;
23948 int ecode2 = 0 ;
23949 int val3 ;
23950 int ecode3 = 0 ;
23951 int val4 ;
23952 int ecode4 = 0 ;
23953 PyObject * obj0 = 0 ;
23954 PyObject * obj1 = 0 ;
23955 PyObject * obj2 = 0 ;
23956 PyObject * obj3 = 0 ;
23957 char * kwnames[] = {
23958 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
23959 };
23960
23961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23962 ecode1 = SWIG_AsVal_int(obj0, &val1);
23963 if (!SWIG_IsOK(ecode1)) {
23964 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
23965 }
23966 arg1 = static_cast< int >(val1);
23967 ecode2 = SWIG_AsVal_int(obj1, &val2);
23968 if (!SWIG_IsOK(ecode2)) {
23969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
23970 }
23971 arg2 = static_cast< int >(val2);
23972 if (obj2) {
23973 ecode3 = SWIG_AsVal_int(obj2, &val3);
23974 if (!SWIG_IsOK(ecode3)) {
23975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
23976 }
23977 arg3 = static_cast< int >(val3);
23978 }
23979 if (obj3) {
23980 ecode4 = SWIG_AsVal_int(obj3, &val4);
23981 if (!SWIG_IsOK(ecode4)) {
23982 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
23983 }
23984 arg4 = static_cast< int >(val4);
23985 }
23986 {
23987 if (!wxPyCheckForApp()) SWIG_fail;
23988 PyThreadState* __tstate = wxPyBeginAllowThreads();
23989 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
23990 wxPyEndAllowThreads(__tstate);
23991 if (PyErr_Occurred()) SWIG_fail;
23992 }
23993 {
23994 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
23995 }
23996 return resultobj;
23997 fail:
23998 return NULL;
23999 }
24000
24001
24002 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24003 PyObject *resultobj = 0;
24004 wxImageList *arg1 = (wxImageList *) 0 ;
24005 void *argp1 = 0 ;
24006 int res1 = 0 ;
24007 PyObject *swig_obj[1] ;
24008
24009 if (!args) SWIG_fail;
24010 swig_obj[0] = args;
24011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24012 if (!SWIG_IsOK(res1)) {
24013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24014 }
24015 arg1 = reinterpret_cast< wxImageList * >(argp1);
24016 {
24017 PyThreadState* __tstate = wxPyBeginAllowThreads();
24018 delete arg1;
24019
24020 wxPyEndAllowThreads(__tstate);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 }
24023 resultobj = SWIG_Py_Void();
24024 return resultobj;
24025 fail:
24026 return NULL;
24027 }
24028
24029
24030 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24031 PyObject *resultobj = 0;
24032 wxImageList *arg1 = (wxImageList *) 0 ;
24033 wxBitmap *arg2 = 0 ;
24034 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24035 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24036 int result;
24037 void *argp1 = 0 ;
24038 int res1 = 0 ;
24039 void *argp2 = 0 ;
24040 int res2 = 0 ;
24041 void *argp3 = 0 ;
24042 int res3 = 0 ;
24043 PyObject * obj0 = 0 ;
24044 PyObject * obj1 = 0 ;
24045 PyObject * obj2 = 0 ;
24046 char * kwnames[] = {
24047 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24048 };
24049
24050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24052 if (!SWIG_IsOK(res1)) {
24053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
24054 }
24055 arg1 = reinterpret_cast< wxImageList * >(argp1);
24056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24057 if (!SWIG_IsOK(res2)) {
24058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24059 }
24060 if (!argp2) {
24061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24062 }
24063 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24064 if (obj2) {
24065 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24066 if (!SWIG_IsOK(res3)) {
24067 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24068 }
24069 if (!argp3) {
24070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24071 }
24072 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24073 }
24074 {
24075 PyThreadState* __tstate = wxPyBeginAllowThreads();
24076 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24077 wxPyEndAllowThreads(__tstate);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 }
24080 resultobj = SWIG_From_int(static_cast< int >(result));
24081 return resultobj;
24082 fail:
24083 return NULL;
24084 }
24085
24086
24087 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24088 PyObject *resultobj = 0;
24089 wxImageList *arg1 = (wxImageList *) 0 ;
24090 wxBitmap *arg2 = 0 ;
24091 wxColour *arg3 = 0 ;
24092 int result;
24093 void *argp1 = 0 ;
24094 int res1 = 0 ;
24095 void *argp2 = 0 ;
24096 int res2 = 0 ;
24097 wxColour temp3 ;
24098 PyObject * obj0 = 0 ;
24099 PyObject * obj1 = 0 ;
24100 PyObject * obj2 = 0 ;
24101 char * kwnames[] = {
24102 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24103 };
24104
24105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24107 if (!SWIG_IsOK(res1)) {
24108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24109 }
24110 arg1 = reinterpret_cast< wxImageList * >(argp1);
24111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24112 if (!SWIG_IsOK(res2)) {
24113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24114 }
24115 if (!argp2) {
24116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24117 }
24118 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24119 {
24120 arg3 = &temp3;
24121 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24122 }
24123 {
24124 PyThreadState* __tstate = wxPyBeginAllowThreads();
24125 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24126 wxPyEndAllowThreads(__tstate);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 }
24129 resultobj = SWIG_From_int(static_cast< int >(result));
24130 return resultobj;
24131 fail:
24132 return NULL;
24133 }
24134
24135
24136 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24137 PyObject *resultobj = 0;
24138 wxImageList *arg1 = (wxImageList *) 0 ;
24139 wxIcon *arg2 = 0 ;
24140 int result;
24141 void *argp1 = 0 ;
24142 int res1 = 0 ;
24143 void *argp2 = 0 ;
24144 int res2 = 0 ;
24145 PyObject * obj0 = 0 ;
24146 PyObject * obj1 = 0 ;
24147 char * kwnames[] = {
24148 (char *) "self",(char *) "icon", NULL
24149 };
24150
24151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24153 if (!SWIG_IsOK(res1)) {
24154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
24155 }
24156 arg1 = reinterpret_cast< wxImageList * >(argp1);
24157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
24158 if (!SWIG_IsOK(res2)) {
24159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24160 }
24161 if (!argp2) {
24162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24163 }
24164 arg2 = reinterpret_cast< wxIcon * >(argp2);
24165 {
24166 PyThreadState* __tstate = wxPyBeginAllowThreads();
24167 result = (int)(arg1)->Add((wxIcon const &)*arg2);
24168 wxPyEndAllowThreads(__tstate);
24169 if (PyErr_Occurred()) SWIG_fail;
24170 }
24171 resultobj = SWIG_From_int(static_cast< int >(result));
24172 return resultobj;
24173 fail:
24174 return NULL;
24175 }
24176
24177
24178 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24179 PyObject *resultobj = 0;
24180 wxImageList *arg1 = (wxImageList *) 0 ;
24181 int arg2 ;
24182 SwigValueWrapper<wxBitmap > result;
24183 void *argp1 = 0 ;
24184 int res1 = 0 ;
24185 int val2 ;
24186 int ecode2 = 0 ;
24187 PyObject * obj0 = 0 ;
24188 PyObject * obj1 = 0 ;
24189 char * kwnames[] = {
24190 (char *) "self",(char *) "index", NULL
24191 };
24192
24193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
24194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24195 if (!SWIG_IsOK(res1)) {
24196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
24197 }
24198 arg1 = reinterpret_cast< wxImageList * >(argp1);
24199 ecode2 = SWIG_AsVal_int(obj1, &val2);
24200 if (!SWIG_IsOK(ecode2)) {
24201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
24202 }
24203 arg2 = static_cast< int >(val2);
24204 {
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
24207 wxPyEndAllowThreads(__tstate);
24208 if (PyErr_Occurred()) SWIG_fail;
24209 }
24210 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
24211 return resultobj;
24212 fail:
24213 return NULL;
24214 }
24215
24216
24217 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24218 PyObject *resultobj = 0;
24219 wxImageList *arg1 = (wxImageList *) 0 ;
24220 int arg2 ;
24221 wxIcon result;
24222 void *argp1 = 0 ;
24223 int res1 = 0 ;
24224 int val2 ;
24225 int ecode2 = 0 ;
24226 PyObject * obj0 = 0 ;
24227 PyObject * obj1 = 0 ;
24228 char * kwnames[] = {
24229 (char *) "self",(char *) "index", NULL
24230 };
24231
24232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24234 if (!SWIG_IsOK(res1)) {
24235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
24236 }
24237 arg1 = reinterpret_cast< wxImageList * >(argp1);
24238 ecode2 = SWIG_AsVal_int(obj1, &val2);
24239 if (!SWIG_IsOK(ecode2)) {
24240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
24241 }
24242 arg2 = static_cast< int >(val2);
24243 {
24244 PyThreadState* __tstate = wxPyBeginAllowThreads();
24245 result = ((wxImageList const *)arg1)->GetIcon(arg2);
24246 wxPyEndAllowThreads(__tstate);
24247 if (PyErr_Occurred()) SWIG_fail;
24248 }
24249 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
24250 return resultobj;
24251 fail:
24252 return NULL;
24253 }
24254
24255
24256 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24257 PyObject *resultobj = 0;
24258 wxImageList *arg1 = (wxImageList *) 0 ;
24259 int arg2 ;
24260 wxBitmap *arg3 = 0 ;
24261 wxBitmap const &arg4_defvalue = wxNullBitmap ;
24262 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
24263 bool result;
24264 void *argp1 = 0 ;
24265 int res1 = 0 ;
24266 int val2 ;
24267 int ecode2 = 0 ;
24268 void *argp3 = 0 ;
24269 int res3 = 0 ;
24270 void *argp4 = 0 ;
24271 int res4 = 0 ;
24272 PyObject * obj0 = 0 ;
24273 PyObject * obj1 = 0 ;
24274 PyObject * obj2 = 0 ;
24275 PyObject * obj3 = 0 ;
24276 char * kwnames[] = {
24277 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
24278 };
24279
24280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24282 if (!SWIG_IsOK(res1)) {
24283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
24284 }
24285 arg1 = reinterpret_cast< wxImageList * >(argp1);
24286 ecode2 = SWIG_AsVal_int(obj1, &val2);
24287 if (!SWIG_IsOK(ecode2)) {
24288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
24289 }
24290 arg2 = static_cast< int >(val2);
24291 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24292 if (!SWIG_IsOK(res3)) {
24293 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24294 }
24295 if (!argp3) {
24296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24297 }
24298 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24299 if (obj3) {
24300 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24301 if (!SWIG_IsOK(res4)) {
24302 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24303 }
24304 if (!argp4) {
24305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24306 }
24307 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24308 }
24309 {
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 {
24316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24317 }
24318 return resultobj;
24319 fail:
24320 return NULL;
24321 }
24322
24323
24324 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24325 PyObject *resultobj = 0;
24326 wxImageList *arg1 = (wxImageList *) 0 ;
24327 int arg2 ;
24328 wxDC *arg3 = 0 ;
24329 int arg4 ;
24330 int arg5 ;
24331 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
24332 bool arg7 = (bool) (bool)false ;
24333 bool result;
24334 void *argp1 = 0 ;
24335 int res1 = 0 ;
24336 int val2 ;
24337 int ecode2 = 0 ;
24338 void *argp3 = 0 ;
24339 int res3 = 0 ;
24340 int val4 ;
24341 int ecode4 = 0 ;
24342 int val5 ;
24343 int ecode5 = 0 ;
24344 int val6 ;
24345 int ecode6 = 0 ;
24346 bool val7 ;
24347 int ecode7 = 0 ;
24348 PyObject * obj0 = 0 ;
24349 PyObject * obj1 = 0 ;
24350 PyObject * obj2 = 0 ;
24351 PyObject * obj3 = 0 ;
24352 PyObject * obj4 = 0 ;
24353 PyObject * obj5 = 0 ;
24354 PyObject * obj6 = 0 ;
24355 char * kwnames[] = {
24356 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
24357 };
24358
24359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24361 if (!SWIG_IsOK(res1)) {
24362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
24363 }
24364 arg1 = reinterpret_cast< wxImageList * >(argp1);
24365 ecode2 = SWIG_AsVal_int(obj1, &val2);
24366 if (!SWIG_IsOK(ecode2)) {
24367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
24368 }
24369 arg2 = static_cast< int >(val2);
24370 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24371 if (!SWIG_IsOK(res3)) {
24372 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24373 }
24374 if (!argp3) {
24375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24376 }
24377 arg3 = reinterpret_cast< wxDC * >(argp3);
24378 ecode4 = SWIG_AsVal_int(obj3, &val4);
24379 if (!SWIG_IsOK(ecode4)) {
24380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
24381 }
24382 arg4 = static_cast< int >(val4);
24383 ecode5 = SWIG_AsVal_int(obj4, &val5);
24384 if (!SWIG_IsOK(ecode5)) {
24385 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
24386 }
24387 arg5 = static_cast< int >(val5);
24388 if (obj5) {
24389 ecode6 = SWIG_AsVal_int(obj5, &val6);
24390 if (!SWIG_IsOK(ecode6)) {
24391 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
24392 }
24393 arg6 = static_cast< int >(val6);
24394 }
24395 if (obj6) {
24396 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24397 if (!SWIG_IsOK(ecode7)) {
24398 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
24399 }
24400 arg7 = static_cast< bool >(val7);
24401 }
24402 {
24403 PyThreadState* __tstate = wxPyBeginAllowThreads();
24404 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
24405 wxPyEndAllowThreads(__tstate);
24406 if (PyErr_Occurred()) SWIG_fail;
24407 }
24408 {
24409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24410 }
24411 return resultobj;
24412 fail:
24413 return NULL;
24414 }
24415
24416
24417 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24418 PyObject *resultobj = 0;
24419 wxImageList *arg1 = (wxImageList *) 0 ;
24420 int result;
24421 void *argp1 = 0 ;
24422 int res1 = 0 ;
24423 PyObject *swig_obj[1] ;
24424
24425 if (!args) SWIG_fail;
24426 swig_obj[0] = args;
24427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24428 if (!SWIG_IsOK(res1)) {
24429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
24430 }
24431 arg1 = reinterpret_cast< wxImageList * >(argp1);
24432 {
24433 PyThreadState* __tstate = wxPyBeginAllowThreads();
24434 result = (int)(arg1)->GetImageCount();
24435 wxPyEndAllowThreads(__tstate);
24436 if (PyErr_Occurred()) SWIG_fail;
24437 }
24438 resultobj = SWIG_From_int(static_cast< int >(result));
24439 return resultobj;
24440 fail:
24441 return NULL;
24442 }
24443
24444
24445 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24446 PyObject *resultobj = 0;
24447 wxImageList *arg1 = (wxImageList *) 0 ;
24448 int arg2 ;
24449 bool result;
24450 void *argp1 = 0 ;
24451 int res1 = 0 ;
24452 int val2 ;
24453 int ecode2 = 0 ;
24454 PyObject * obj0 = 0 ;
24455 PyObject * obj1 = 0 ;
24456 char * kwnames[] = {
24457 (char *) "self",(char *) "index", NULL
24458 };
24459
24460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
24461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24462 if (!SWIG_IsOK(res1)) {
24463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
24464 }
24465 arg1 = reinterpret_cast< wxImageList * >(argp1);
24466 ecode2 = SWIG_AsVal_int(obj1, &val2);
24467 if (!SWIG_IsOK(ecode2)) {
24468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
24469 }
24470 arg2 = static_cast< int >(val2);
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 result = (bool)(arg1)->Remove(arg2);
24474 wxPyEndAllowThreads(__tstate);
24475 if (PyErr_Occurred()) SWIG_fail;
24476 }
24477 {
24478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24479 }
24480 return resultobj;
24481 fail:
24482 return NULL;
24483 }
24484
24485
24486 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24487 PyObject *resultobj = 0;
24488 wxImageList *arg1 = (wxImageList *) 0 ;
24489 bool result;
24490 void *argp1 = 0 ;
24491 int res1 = 0 ;
24492 PyObject *swig_obj[1] ;
24493
24494 if (!args) SWIG_fail;
24495 swig_obj[0] = args;
24496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24497 if (!SWIG_IsOK(res1)) {
24498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
24499 }
24500 arg1 = reinterpret_cast< wxImageList * >(argp1);
24501 {
24502 PyThreadState* __tstate = wxPyBeginAllowThreads();
24503 result = (bool)(arg1)->RemoveAll();
24504 wxPyEndAllowThreads(__tstate);
24505 if (PyErr_Occurred()) SWIG_fail;
24506 }
24507 {
24508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24509 }
24510 return resultobj;
24511 fail:
24512 return NULL;
24513 }
24514
24515
24516 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24517 PyObject *resultobj = 0;
24518 wxImageList *arg1 = (wxImageList *) 0 ;
24519 int arg2 ;
24520 int *arg3 = 0 ;
24521 int *arg4 = 0 ;
24522 void *argp1 = 0 ;
24523 int res1 = 0 ;
24524 int val2 ;
24525 int ecode2 = 0 ;
24526 int temp3 ;
24527 int res3 = SWIG_TMPOBJ ;
24528 int temp4 ;
24529 int res4 = SWIG_TMPOBJ ;
24530 PyObject * obj0 = 0 ;
24531 PyObject * obj1 = 0 ;
24532 char * kwnames[] = {
24533 (char *) "self",(char *) "index", NULL
24534 };
24535
24536 arg3 = &temp3;
24537 arg4 = &temp4;
24538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
24539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24540 if (!SWIG_IsOK(res1)) {
24541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
24542 }
24543 arg1 = reinterpret_cast< wxImageList * >(argp1);
24544 ecode2 = SWIG_AsVal_int(obj1, &val2);
24545 if (!SWIG_IsOK(ecode2)) {
24546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
24547 }
24548 arg2 = static_cast< int >(val2);
24549 {
24550 PyThreadState* __tstate = wxPyBeginAllowThreads();
24551 (arg1)->GetSize(arg2,*arg3,*arg4);
24552 wxPyEndAllowThreads(__tstate);
24553 if (PyErr_Occurred()) SWIG_fail;
24554 }
24555 resultobj = SWIG_Py_Void();
24556 if (SWIG_IsTmpObj(res3)) {
24557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24558 } else {
24559 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24561 }
24562 if (SWIG_IsTmpObj(res4)) {
24563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24564 } else {
24565 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24566 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24567 }
24568 return resultobj;
24569 fail:
24570 return NULL;
24571 }
24572
24573
24574 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24575 PyObject *obj;
24576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24577 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
24578 return SWIG_Py_Void();
24579 }
24580
24581 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24582 return SWIG_Python_InitShadowInstance(args);
24583 }
24584
24585 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24586 PyObject *resultobj = 0;
24587 wxStockGDI *result = 0 ;
24588
24589 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
24590 {
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 result = (wxStockGDI *)new wxStockGDI();
24593 wxPyEndAllowThreads(__tstate);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 }
24596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
24597 return resultobj;
24598 fail:
24599 return NULL;
24600 }
24601
24602
24603 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24604 PyObject *resultobj = 0;
24605 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24606 void *argp1 = 0 ;
24607 int res1 = 0 ;
24608 PyObject *swig_obj[1] ;
24609
24610 if (!args) SWIG_fail;
24611 swig_obj[0] = args;
24612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
24613 if (!SWIG_IsOK(res1)) {
24614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24615 }
24616 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 delete arg1;
24620
24621 wxPyEndAllowThreads(__tstate);
24622 if (PyErr_Occurred()) SWIG_fail;
24623 }
24624 resultobj = SWIG_Py_Void();
24625 return resultobj;
24626 fail:
24627 return NULL;
24628 }
24629
24630
24631 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24632 PyObject *resultobj = 0;
24633
24634 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
24635 {
24636 PyThreadState* __tstate = wxPyBeginAllowThreads();
24637 wxStockGDI::DeleteAll();
24638 wxPyEndAllowThreads(__tstate);
24639 if (PyErr_Occurred()) SWIG_fail;
24640 }
24641 resultobj = SWIG_Py_Void();
24642 return resultobj;
24643 fail:
24644 return NULL;
24645 }
24646
24647
24648 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24649 PyObject *resultobj = 0;
24650 wxStockGDI *result = 0 ;
24651
24652 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
24653 {
24654 PyThreadState* __tstate = wxPyBeginAllowThreads();
24655 {
24656 wxStockGDI &_result_ref = wxStockGDI::instance();
24657 result = (wxStockGDI *) &_result_ref;
24658 }
24659 wxPyEndAllowThreads(__tstate);
24660 if (PyErr_Occurred()) SWIG_fail;
24661 }
24662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
24663 return resultobj;
24664 fail:
24665 return NULL;
24666 }
24667
24668
24669 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24670 PyObject *resultobj = 0;
24671 wxStockGDI::Item arg1 ;
24672 wxBrush *result = 0 ;
24673 int val1 ;
24674 int ecode1 = 0 ;
24675 PyObject * obj0 = 0 ;
24676 char * kwnames[] = {
24677 (char *) "item", NULL
24678 };
24679
24680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
24681 ecode1 = SWIG_AsVal_int(obj0, &val1);
24682 if (!SWIG_IsOK(ecode1)) {
24683 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24684 }
24685 arg1 = static_cast< wxStockGDI::Item >(val1);
24686 {
24687 PyThreadState* __tstate = wxPyBeginAllowThreads();
24688 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
24689 wxPyEndAllowThreads(__tstate);
24690 if (PyErr_Occurred()) SWIG_fail;
24691 }
24692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
24693 return resultobj;
24694 fail:
24695 return NULL;
24696 }
24697
24698
24699 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24700 PyObject *resultobj = 0;
24701 wxStockGDI::Item arg1 ;
24702 wxColour *result = 0 ;
24703 int val1 ;
24704 int ecode1 = 0 ;
24705 PyObject * obj0 = 0 ;
24706 char * kwnames[] = {
24707 (char *) "item", NULL
24708 };
24709
24710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
24711 ecode1 = SWIG_AsVal_int(obj0, &val1);
24712 if (!SWIG_IsOK(ecode1)) {
24713 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24714 }
24715 arg1 = static_cast< wxStockGDI::Item >(val1);
24716 {
24717 PyThreadState* __tstate = wxPyBeginAllowThreads();
24718 result = (wxColour *)wxStockGDI::GetColour(arg1);
24719 wxPyEndAllowThreads(__tstate);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
24723 return resultobj;
24724 fail:
24725 return NULL;
24726 }
24727
24728
24729 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj = 0;
24731 wxStockGDI::Item arg1 ;
24732 wxCursor *result = 0 ;
24733 int val1 ;
24734 int ecode1 = 0 ;
24735 PyObject * obj0 = 0 ;
24736 char * kwnames[] = {
24737 (char *) "item", NULL
24738 };
24739
24740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
24741 ecode1 = SWIG_AsVal_int(obj0, &val1);
24742 if (!SWIG_IsOK(ecode1)) {
24743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24744 }
24745 arg1 = static_cast< wxStockGDI::Item >(val1);
24746 {
24747 PyThreadState* __tstate = wxPyBeginAllowThreads();
24748 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
24749 wxPyEndAllowThreads(__tstate);
24750 if (PyErr_Occurred()) SWIG_fail;
24751 }
24752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
24753 return resultobj;
24754 fail:
24755 return NULL;
24756 }
24757
24758
24759 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24760 PyObject *resultobj = 0;
24761 wxStockGDI::Item arg1 ;
24762 wxPen *result = 0 ;
24763 int val1 ;
24764 int ecode1 = 0 ;
24765 PyObject * obj0 = 0 ;
24766 char * kwnames[] = {
24767 (char *) "item", NULL
24768 };
24769
24770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
24771 ecode1 = SWIG_AsVal_int(obj0, &val1);
24772 if (!SWIG_IsOK(ecode1)) {
24773 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24774 }
24775 arg1 = static_cast< wxStockGDI::Item >(val1);
24776 {
24777 PyThreadState* __tstate = wxPyBeginAllowThreads();
24778 result = (wxPen *)wxStockGDI::GetPen(arg1);
24779 wxPyEndAllowThreads(__tstate);
24780 if (PyErr_Occurred()) SWIG_fail;
24781 }
24782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24783 return resultobj;
24784 fail:
24785 return NULL;
24786 }
24787
24788
24789 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24790 PyObject *resultobj = 0;
24791 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24792 wxStockGDI::Item arg2 ;
24793 wxFont *result = 0 ;
24794 void *argp1 = 0 ;
24795 int res1 = 0 ;
24796 int val2 ;
24797 int ecode2 = 0 ;
24798 PyObject * obj0 = 0 ;
24799 PyObject * obj1 = 0 ;
24800 char * kwnames[] = {
24801 (char *) "self",(char *) "item", NULL
24802 };
24803
24804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
24805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
24806 if (!SWIG_IsOK(res1)) {
24807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24808 }
24809 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24810 ecode2 = SWIG_AsVal_int(obj1, &val2);
24811 if (!SWIG_IsOK(ecode2)) {
24812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
24813 }
24814 arg2 = static_cast< wxStockGDI::Item >(val2);
24815 {
24816 PyThreadState* __tstate = wxPyBeginAllowThreads();
24817 result = (wxFont *)(arg1)->GetFont(arg2);
24818 wxPyEndAllowThreads(__tstate);
24819 if (PyErr_Occurred()) SWIG_fail;
24820 }
24821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
24822 return resultobj;
24823 fail:
24824 return NULL;
24825 }
24826
24827
24828 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24829 PyObject *obj;
24830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24831 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
24832 return SWIG_Py_Void();
24833 }
24834
24835 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24836 return SWIG_Python_InitShadowInstance(args);
24837 }
24838
24839 SWIGINTERN int NullBitmap_set(PyObject *) {
24840 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
24841 return 1;
24842 }
24843
24844
24845 SWIGINTERN PyObject *NullBitmap_get(void) {
24846 PyObject *pyobj = 0;
24847
24848 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
24849 return pyobj;
24850 }
24851
24852
24853 SWIGINTERN int NullIcon_set(PyObject *) {
24854 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
24855 return 1;
24856 }
24857
24858
24859 SWIGINTERN PyObject *NullIcon_get(void) {
24860 PyObject *pyobj = 0;
24861
24862 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
24863 return pyobj;
24864 }
24865
24866
24867 SWIGINTERN int NullCursor_set(PyObject *) {
24868 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
24869 return 1;
24870 }
24871
24872
24873 SWIGINTERN PyObject *NullCursor_get(void) {
24874 PyObject *pyobj = 0;
24875
24876 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
24877 return pyobj;
24878 }
24879
24880
24881 SWIGINTERN int NullPen_set(PyObject *) {
24882 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
24883 return 1;
24884 }
24885
24886
24887 SWIGINTERN PyObject *NullPen_get(void) {
24888 PyObject *pyobj = 0;
24889
24890 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
24891 return pyobj;
24892 }
24893
24894
24895 SWIGINTERN int NullBrush_set(PyObject *) {
24896 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
24897 return 1;
24898 }
24899
24900
24901 SWIGINTERN PyObject *NullBrush_get(void) {
24902 PyObject *pyobj = 0;
24903
24904 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
24905 return pyobj;
24906 }
24907
24908
24909 SWIGINTERN int NullPalette_set(PyObject *) {
24910 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
24911 return 1;
24912 }
24913
24914
24915 SWIGINTERN PyObject *NullPalette_get(void) {
24916 PyObject *pyobj = 0;
24917
24918 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
24919 return pyobj;
24920 }
24921
24922
24923 SWIGINTERN int NullFont_set(PyObject *) {
24924 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
24925 return 1;
24926 }
24927
24928
24929 SWIGINTERN PyObject *NullFont_get(void) {
24930 PyObject *pyobj = 0;
24931
24932 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
24933 return pyobj;
24934 }
24935
24936
24937 SWIGINTERN int NullColour_set(PyObject *) {
24938 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
24939 return 1;
24940 }
24941
24942
24943 SWIGINTERN PyObject *NullColour_get(void) {
24944 PyObject *pyobj = 0;
24945
24946 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
24947 return pyobj;
24948 }
24949
24950
24951 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24952 PyObject *resultobj = 0;
24953 wxGDIObjListBase *result = 0 ;
24954
24955 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
24956 {
24957 PyThreadState* __tstate = wxPyBeginAllowThreads();
24958 result = (wxGDIObjListBase *)new wxGDIObjListBase();
24959 wxPyEndAllowThreads(__tstate);
24960 if (PyErr_Occurred()) SWIG_fail;
24961 }
24962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
24963 return resultobj;
24964 fail:
24965 return NULL;
24966 }
24967
24968
24969 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24970 PyObject *resultobj = 0;
24971 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
24972 void *argp1 = 0 ;
24973 int res1 = 0 ;
24974 PyObject *swig_obj[1] ;
24975
24976 if (!args) SWIG_fail;
24977 swig_obj[0] = args;
24978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
24979 if (!SWIG_IsOK(res1)) {
24980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
24981 }
24982 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
24983 {
24984 PyThreadState* __tstate = wxPyBeginAllowThreads();
24985 delete arg1;
24986
24987 wxPyEndAllowThreads(__tstate);
24988 if (PyErr_Occurred()) SWIG_fail;
24989 }
24990 resultobj = SWIG_Py_Void();
24991 return resultobj;
24992 fail:
24993 return NULL;
24994 }
24995
24996
24997 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24998 PyObject *obj;
24999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25000 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25001 return SWIG_Py_Void();
25002 }
25003
25004 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25005 return SWIG_Python_InitShadowInstance(args);
25006 }
25007
25008 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25009 PyObject *resultobj = 0;
25010 wxPenList *arg1 = (wxPenList *) 0 ;
25011 wxColour *arg2 = 0 ;
25012 int arg3 ;
25013 int arg4 ;
25014 wxPen *result = 0 ;
25015 void *argp1 = 0 ;
25016 int res1 = 0 ;
25017 wxColour temp2 ;
25018 int val3 ;
25019 int ecode3 = 0 ;
25020 int val4 ;
25021 int ecode4 = 0 ;
25022 PyObject * obj0 = 0 ;
25023 PyObject * obj1 = 0 ;
25024 PyObject * obj2 = 0 ;
25025 PyObject * obj3 = 0 ;
25026 char * kwnames[] = {
25027 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25028 };
25029
25030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25032 if (!SWIG_IsOK(res1)) {
25033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25034 }
25035 arg1 = reinterpret_cast< wxPenList * >(argp1);
25036 {
25037 arg2 = &temp2;
25038 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25039 }
25040 ecode3 = SWIG_AsVal_int(obj2, &val3);
25041 if (!SWIG_IsOK(ecode3)) {
25042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25043 }
25044 arg3 = static_cast< int >(val3);
25045 ecode4 = SWIG_AsVal_int(obj3, &val4);
25046 if (!SWIG_IsOK(ecode4)) {
25047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25048 }
25049 arg4 = static_cast< int >(val4);
25050 {
25051 PyThreadState* __tstate = wxPyBeginAllowThreads();
25052 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
25053 wxPyEndAllowThreads(__tstate);
25054 if (PyErr_Occurred()) SWIG_fail;
25055 }
25056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25057 return resultobj;
25058 fail:
25059 return NULL;
25060 }
25061
25062
25063 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25064 PyObject *resultobj = 0;
25065 wxPenList *arg1 = (wxPenList *) 0 ;
25066 wxPen *arg2 = (wxPen *) 0 ;
25067 void *argp1 = 0 ;
25068 int res1 = 0 ;
25069 void *argp2 = 0 ;
25070 int res2 = 0 ;
25071 PyObject * obj0 = 0 ;
25072 PyObject * obj1 = 0 ;
25073 char * kwnames[] = {
25074 (char *) "self",(char *) "pen", NULL
25075 };
25076
25077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
25078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25079 if (!SWIG_IsOK(res1)) {
25080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
25081 }
25082 arg1 = reinterpret_cast< wxPenList * >(argp1);
25083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25084 if (!SWIG_IsOK(res2)) {
25085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
25086 }
25087 arg2 = reinterpret_cast< wxPen * >(argp2);
25088 {
25089 PyThreadState* __tstate = wxPyBeginAllowThreads();
25090 (arg1)->AddPen(arg2);
25091 wxPyEndAllowThreads(__tstate);
25092 if (PyErr_Occurred()) SWIG_fail;
25093 }
25094 resultobj = SWIG_Py_Void();
25095 return resultobj;
25096 fail:
25097 return NULL;
25098 }
25099
25100
25101 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25102 PyObject *resultobj = 0;
25103 wxPenList *arg1 = (wxPenList *) 0 ;
25104 wxPen *arg2 = (wxPen *) 0 ;
25105 void *argp1 = 0 ;
25106 int res1 = 0 ;
25107 void *argp2 = 0 ;
25108 int res2 = 0 ;
25109 PyObject * obj0 = 0 ;
25110 PyObject * obj1 = 0 ;
25111 char * kwnames[] = {
25112 (char *) "self",(char *) "pen", NULL
25113 };
25114
25115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25117 if (!SWIG_IsOK(res1)) {
25118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25119 }
25120 arg1 = reinterpret_cast< wxPenList * >(argp1);
25121 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25122 if (!SWIG_IsOK(res2)) {
25123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25124 }
25125 arg2 = reinterpret_cast< wxPen * >(argp2);
25126 {
25127 PyThreadState* __tstate = wxPyBeginAllowThreads();
25128 (arg1)->RemovePen(arg2);
25129 wxPyEndAllowThreads(__tstate);
25130 if (PyErr_Occurred()) SWIG_fail;
25131 }
25132 resultobj = SWIG_Py_Void();
25133 return resultobj;
25134 fail:
25135 return NULL;
25136 }
25137
25138
25139 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25140 PyObject *obj;
25141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25142 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
25143 return SWIG_Py_Void();
25144 }
25145
25146 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25147 PyObject *resultobj = 0;
25148 wxBrushList *arg1 = (wxBrushList *) 0 ;
25149 wxColour *arg2 = 0 ;
25150 int arg3 = (int) wxSOLID ;
25151 wxBrush *result = 0 ;
25152 void *argp1 = 0 ;
25153 int res1 = 0 ;
25154 wxColour temp2 ;
25155 int val3 ;
25156 int ecode3 = 0 ;
25157 PyObject * obj0 = 0 ;
25158 PyObject * obj1 = 0 ;
25159 PyObject * obj2 = 0 ;
25160 char * kwnames[] = {
25161 (char *) "self",(char *) "colour",(char *) "style", NULL
25162 };
25163
25164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25166 if (!SWIG_IsOK(res1)) {
25167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25168 }
25169 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25170 {
25171 arg2 = &temp2;
25172 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25173 }
25174 if (obj2) {
25175 ecode3 = SWIG_AsVal_int(obj2, &val3);
25176 if (!SWIG_IsOK(ecode3)) {
25177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
25178 }
25179 arg3 = static_cast< int >(val3);
25180 }
25181 {
25182 PyThreadState* __tstate = wxPyBeginAllowThreads();
25183 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
25184 wxPyEndAllowThreads(__tstate);
25185 if (PyErr_Occurred()) SWIG_fail;
25186 }
25187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25188 return resultobj;
25189 fail:
25190 return NULL;
25191 }
25192
25193
25194 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25195 PyObject *resultobj = 0;
25196 wxBrushList *arg1 = (wxBrushList *) 0 ;
25197 wxBrush *arg2 = (wxBrush *) 0 ;
25198 void *argp1 = 0 ;
25199 int res1 = 0 ;
25200 void *argp2 = 0 ;
25201 int res2 = 0 ;
25202 PyObject * obj0 = 0 ;
25203 PyObject * obj1 = 0 ;
25204 char * kwnames[] = {
25205 (char *) "self",(char *) "brush", NULL
25206 };
25207
25208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25210 if (!SWIG_IsOK(res1)) {
25211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25212 }
25213 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25215 if (!SWIG_IsOK(res2)) {
25216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25217 }
25218 arg2 = reinterpret_cast< wxBrush * >(argp2);
25219 {
25220 PyThreadState* __tstate = wxPyBeginAllowThreads();
25221 (arg1)->AddBrush(arg2);
25222 wxPyEndAllowThreads(__tstate);
25223 if (PyErr_Occurred()) SWIG_fail;
25224 }
25225 resultobj = SWIG_Py_Void();
25226 return resultobj;
25227 fail:
25228 return NULL;
25229 }
25230
25231
25232 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25233 PyObject *resultobj = 0;
25234 wxBrushList *arg1 = (wxBrushList *) 0 ;
25235 wxBrush *arg2 = (wxBrush *) 0 ;
25236 void *argp1 = 0 ;
25237 int res1 = 0 ;
25238 void *argp2 = 0 ;
25239 int res2 = 0 ;
25240 PyObject * obj0 = 0 ;
25241 PyObject * obj1 = 0 ;
25242 char * kwnames[] = {
25243 (char *) "self",(char *) "brush", NULL
25244 };
25245
25246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25248 if (!SWIG_IsOK(res1)) {
25249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25250 }
25251 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25253 if (!SWIG_IsOK(res2)) {
25254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25255 }
25256 arg2 = reinterpret_cast< wxBrush * >(argp2);
25257 {
25258 PyThreadState* __tstate = wxPyBeginAllowThreads();
25259 (arg1)->RemoveBrush(arg2);
25260 wxPyEndAllowThreads(__tstate);
25261 if (PyErr_Occurred()) SWIG_fail;
25262 }
25263 resultobj = SWIG_Py_Void();
25264 return resultobj;
25265 fail:
25266 return NULL;
25267 }
25268
25269
25270 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25271 PyObject *obj;
25272 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25273 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
25274 return SWIG_Py_Void();
25275 }
25276
25277 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25278 PyObject *resultobj = 0;
25279 wxFontList *arg1 = (wxFontList *) 0 ;
25280 int arg2 ;
25281 int arg3 ;
25282 int arg4 ;
25283 int arg5 ;
25284 bool arg6 = (bool) false ;
25285 wxString const &arg7_defvalue = wxPyEmptyString ;
25286 wxString *arg7 = (wxString *) &arg7_defvalue ;
25287 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
25288 wxFont *result = 0 ;
25289 void *argp1 = 0 ;
25290 int res1 = 0 ;
25291 int val2 ;
25292 int ecode2 = 0 ;
25293 int val3 ;
25294 int ecode3 = 0 ;
25295 int val4 ;
25296 int ecode4 = 0 ;
25297 int val5 ;
25298 int ecode5 = 0 ;
25299 bool val6 ;
25300 int ecode6 = 0 ;
25301 bool temp7 = false ;
25302 int val8 ;
25303 int ecode8 = 0 ;
25304 PyObject * obj0 = 0 ;
25305 PyObject * obj1 = 0 ;
25306 PyObject * obj2 = 0 ;
25307 PyObject * obj3 = 0 ;
25308 PyObject * obj4 = 0 ;
25309 PyObject * obj5 = 0 ;
25310 PyObject * obj6 = 0 ;
25311 PyObject * obj7 = 0 ;
25312 char * kwnames[] = {
25313 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
25314 };
25315
25316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25318 if (!SWIG_IsOK(res1)) {
25319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25320 }
25321 arg1 = reinterpret_cast< wxFontList * >(argp1);
25322 ecode2 = SWIG_AsVal_int(obj1, &val2);
25323 if (!SWIG_IsOK(ecode2)) {
25324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
25325 }
25326 arg2 = static_cast< int >(val2);
25327 ecode3 = SWIG_AsVal_int(obj2, &val3);
25328 if (!SWIG_IsOK(ecode3)) {
25329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
25330 }
25331 arg3 = static_cast< int >(val3);
25332 ecode4 = SWIG_AsVal_int(obj3, &val4);
25333 if (!SWIG_IsOK(ecode4)) {
25334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
25335 }
25336 arg4 = static_cast< int >(val4);
25337 ecode5 = SWIG_AsVal_int(obj4, &val5);
25338 if (!SWIG_IsOK(ecode5)) {
25339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
25340 }
25341 arg5 = static_cast< int >(val5);
25342 if (obj5) {
25343 ecode6 = SWIG_AsVal_bool(obj5, &val6);
25344 if (!SWIG_IsOK(ecode6)) {
25345 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
25346 }
25347 arg6 = static_cast< bool >(val6);
25348 }
25349 if (obj6) {
25350 {
25351 arg7 = wxString_in_helper(obj6);
25352 if (arg7 == NULL) SWIG_fail;
25353 temp7 = true;
25354 }
25355 }
25356 if (obj7) {
25357 ecode8 = SWIG_AsVal_int(obj7, &val8);
25358 if (!SWIG_IsOK(ecode8)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
25360 }
25361 arg8 = static_cast< wxFontEncoding >(val8);
25362 }
25363 {
25364 PyThreadState* __tstate = wxPyBeginAllowThreads();
25365 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
25366 wxPyEndAllowThreads(__tstate);
25367 if (PyErr_Occurred()) SWIG_fail;
25368 }
25369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25370 {
25371 if (temp7)
25372 delete arg7;
25373 }
25374 return resultobj;
25375 fail:
25376 {
25377 if (temp7)
25378 delete arg7;
25379 }
25380 return NULL;
25381 }
25382
25383
25384 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25385 PyObject *resultobj = 0;
25386 wxFontList *arg1 = (wxFontList *) 0 ;
25387 wxFont *arg2 = (wxFont *) 0 ;
25388 void *argp1 = 0 ;
25389 int res1 = 0 ;
25390 void *argp2 = 0 ;
25391 int res2 = 0 ;
25392 PyObject * obj0 = 0 ;
25393 PyObject * obj1 = 0 ;
25394 char * kwnames[] = {
25395 (char *) "self",(char *) "font", NULL
25396 };
25397
25398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
25399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25400 if (!SWIG_IsOK(res1)) {
25401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25402 }
25403 arg1 = reinterpret_cast< wxFontList * >(argp1);
25404 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25405 if (!SWIG_IsOK(res2)) {
25406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
25407 }
25408 arg2 = reinterpret_cast< wxFont * >(argp2);
25409 {
25410 PyThreadState* __tstate = wxPyBeginAllowThreads();
25411 (arg1)->AddFont(arg2);
25412 wxPyEndAllowThreads(__tstate);
25413 if (PyErr_Occurred()) SWIG_fail;
25414 }
25415 resultobj = SWIG_Py_Void();
25416 return resultobj;
25417 fail:
25418 return NULL;
25419 }
25420
25421
25422 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25423 PyObject *resultobj = 0;
25424 wxFontList *arg1 = (wxFontList *) 0 ;
25425 wxFont *arg2 = (wxFont *) 0 ;
25426 void *argp1 = 0 ;
25427 int res1 = 0 ;
25428 void *argp2 = 0 ;
25429 int res2 = 0 ;
25430 PyObject * obj0 = 0 ;
25431 PyObject * obj1 = 0 ;
25432 char * kwnames[] = {
25433 (char *) "self",(char *) "font", NULL
25434 };
25435
25436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
25437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25438 if (!SWIG_IsOK(res1)) {
25439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25440 }
25441 arg1 = reinterpret_cast< wxFontList * >(argp1);
25442 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25443 if (!SWIG_IsOK(res2)) {
25444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
25445 }
25446 arg2 = reinterpret_cast< wxFont * >(argp2);
25447 {
25448 PyThreadState* __tstate = wxPyBeginAllowThreads();
25449 (arg1)->RemoveFont(arg2);
25450 wxPyEndAllowThreads(__tstate);
25451 if (PyErr_Occurred()) SWIG_fail;
25452 }
25453 resultobj = SWIG_Py_Void();
25454 return resultobj;
25455 fail:
25456 return NULL;
25457 }
25458
25459
25460 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25461 PyObject *obj;
25462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25463 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
25464 return SWIG_Py_Void();
25465 }
25466
25467 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25468 PyObject *resultobj = 0;
25469 wxColourDatabase *result = 0 ;
25470
25471 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
25472 {
25473 if (!wxPyCheckForApp()) SWIG_fail;
25474 PyThreadState* __tstate = wxPyBeginAllowThreads();
25475 result = (wxColourDatabase *)new wxColourDatabase();
25476 wxPyEndAllowThreads(__tstate);
25477 if (PyErr_Occurred()) SWIG_fail;
25478 }
25479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
25480 return resultobj;
25481 fail:
25482 return NULL;
25483 }
25484
25485
25486 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25487 PyObject *resultobj = 0;
25488 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25489 void *argp1 = 0 ;
25490 int res1 = 0 ;
25491 PyObject *swig_obj[1] ;
25492
25493 if (!args) SWIG_fail;
25494 swig_obj[0] = args;
25495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
25496 if (!SWIG_IsOK(res1)) {
25497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25498 }
25499 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25500 {
25501 PyThreadState* __tstate = wxPyBeginAllowThreads();
25502 delete arg1;
25503
25504 wxPyEndAllowThreads(__tstate);
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
25507 resultobj = SWIG_Py_Void();
25508 return resultobj;
25509 fail:
25510 return NULL;
25511 }
25512
25513
25514 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25515 PyObject *resultobj = 0;
25516 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25517 wxString *arg2 = 0 ;
25518 wxColour result;
25519 void *argp1 = 0 ;
25520 int res1 = 0 ;
25521 bool temp2 = false ;
25522 PyObject * obj0 = 0 ;
25523 PyObject * obj1 = 0 ;
25524 char * kwnames[] = {
25525 (char *) "self",(char *) "name", NULL
25526 };
25527
25528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
25529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25530 if (!SWIG_IsOK(res1)) {
25531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25532 }
25533 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25534 {
25535 arg2 = wxString_in_helper(obj1);
25536 if (arg2 == NULL) SWIG_fail;
25537 temp2 = true;
25538 }
25539 {
25540 PyThreadState* __tstate = wxPyBeginAllowThreads();
25541 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25546 {
25547 if (temp2)
25548 delete arg2;
25549 }
25550 return resultobj;
25551 fail:
25552 {
25553 if (temp2)
25554 delete arg2;
25555 }
25556 return NULL;
25557 }
25558
25559
25560 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25561 PyObject *resultobj = 0;
25562 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25563 wxColour *arg2 = 0 ;
25564 wxString result;
25565 void *argp1 = 0 ;
25566 int res1 = 0 ;
25567 wxColour temp2 ;
25568 PyObject * obj0 = 0 ;
25569 PyObject * obj1 = 0 ;
25570 char * kwnames[] = {
25571 (char *) "self",(char *) "colour", NULL
25572 };
25573
25574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
25575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25576 if (!SWIG_IsOK(res1)) {
25577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25578 }
25579 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25580 {
25581 arg2 = &temp2;
25582 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25583 }
25584 {
25585 PyThreadState* __tstate = wxPyBeginAllowThreads();
25586 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
25587 wxPyEndAllowThreads(__tstate);
25588 if (PyErr_Occurred()) SWIG_fail;
25589 }
25590 {
25591 #if wxUSE_UNICODE
25592 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25593 #else
25594 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25595 #endif
25596 }
25597 return resultobj;
25598 fail:
25599 return NULL;
25600 }
25601
25602
25603 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25604 PyObject *resultobj = 0;
25605 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25606 wxString *arg2 = 0 ;
25607 wxColour *arg3 = 0 ;
25608 void *argp1 = 0 ;
25609 int res1 = 0 ;
25610 bool temp2 = false ;
25611 wxColour temp3 ;
25612 PyObject * obj0 = 0 ;
25613 PyObject * obj1 = 0 ;
25614 PyObject * obj2 = 0 ;
25615 char * kwnames[] = {
25616 (char *) "self",(char *) "name",(char *) "colour", NULL
25617 };
25618
25619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25621 if (!SWIG_IsOK(res1)) {
25622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25623 }
25624 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25625 {
25626 arg2 = wxString_in_helper(obj1);
25627 if (arg2 == NULL) SWIG_fail;
25628 temp2 = true;
25629 }
25630 {
25631 arg3 = &temp3;
25632 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25633 }
25634 {
25635 PyThreadState* __tstate = wxPyBeginAllowThreads();
25636 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
25637 wxPyEndAllowThreads(__tstate);
25638 if (PyErr_Occurred()) SWIG_fail;
25639 }
25640 resultobj = SWIG_Py_Void();
25641 {
25642 if (temp2)
25643 delete arg2;
25644 }
25645 return resultobj;
25646 fail:
25647 {
25648 if (temp2)
25649 delete arg2;
25650 }
25651 return NULL;
25652 }
25653
25654
25655 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25656 PyObject *resultobj = 0;
25657 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25658 wxString *arg2 = 0 ;
25659 int arg3 ;
25660 int arg4 ;
25661 int arg5 ;
25662 void *argp1 = 0 ;
25663 int res1 = 0 ;
25664 bool temp2 = false ;
25665 int val3 ;
25666 int ecode3 = 0 ;
25667 int val4 ;
25668 int ecode4 = 0 ;
25669 int val5 ;
25670 int ecode5 = 0 ;
25671 PyObject * obj0 = 0 ;
25672 PyObject * obj1 = 0 ;
25673 PyObject * obj2 = 0 ;
25674 PyObject * obj3 = 0 ;
25675 PyObject * obj4 = 0 ;
25676 char * kwnames[] = {
25677 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
25678 };
25679
25680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25682 if (!SWIG_IsOK(res1)) {
25683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25684 }
25685 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25686 {
25687 arg2 = wxString_in_helper(obj1);
25688 if (arg2 == NULL) SWIG_fail;
25689 temp2 = true;
25690 }
25691 ecode3 = SWIG_AsVal_int(obj2, &val3);
25692 if (!SWIG_IsOK(ecode3)) {
25693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
25694 }
25695 arg3 = static_cast< int >(val3);
25696 ecode4 = SWIG_AsVal_int(obj3, &val4);
25697 if (!SWIG_IsOK(ecode4)) {
25698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
25699 }
25700 arg4 = static_cast< int >(val4);
25701 ecode5 = SWIG_AsVal_int(obj4, &val5);
25702 if (!SWIG_IsOK(ecode5)) {
25703 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
25704 }
25705 arg5 = static_cast< int >(val5);
25706 {
25707 PyThreadState* __tstate = wxPyBeginAllowThreads();
25708 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
25709 wxPyEndAllowThreads(__tstate);
25710 if (PyErr_Occurred()) SWIG_fail;
25711 }
25712 resultobj = SWIG_Py_Void();
25713 {
25714 if (temp2)
25715 delete arg2;
25716 }
25717 return resultobj;
25718 fail:
25719 {
25720 if (temp2)
25721 delete arg2;
25722 }
25723 return NULL;
25724 }
25725
25726
25727 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25728 PyObject *obj;
25729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25730 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
25731 return SWIG_Py_Void();
25732 }
25733
25734 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25735 return SWIG_Python_InitShadowInstance(args);
25736 }
25737
25738 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25739 PyObject *resultobj = 0;
25740 wxFontList *result = 0 ;
25741
25742 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
25743 {
25744 PyThreadState* __tstate = wxPyBeginAllowThreads();
25745 result = (wxFontList *)_wxPyInitTheFontList();
25746 wxPyEndAllowThreads(__tstate);
25747 if (PyErr_Occurred()) SWIG_fail;
25748 }
25749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
25750 return resultobj;
25751 fail:
25752 return NULL;
25753 }
25754
25755
25756 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25757 PyObject *resultobj = 0;
25758 wxPenList *result = 0 ;
25759
25760 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
25761 {
25762 PyThreadState* __tstate = wxPyBeginAllowThreads();
25763 result = (wxPenList *)_wxPyInitThePenList();
25764 wxPyEndAllowThreads(__tstate);
25765 if (PyErr_Occurred()) SWIG_fail;
25766 }
25767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
25768 return resultobj;
25769 fail:
25770 return NULL;
25771 }
25772
25773
25774 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25775 PyObject *resultobj = 0;
25776 wxBrushList *result = 0 ;
25777
25778 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
25779 {
25780 PyThreadState* __tstate = wxPyBeginAllowThreads();
25781 result = (wxBrushList *)_wxPyInitTheBrushList();
25782 wxPyEndAllowThreads(__tstate);
25783 if (PyErr_Occurred()) SWIG_fail;
25784 }
25785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
25786 return resultobj;
25787 fail:
25788 return NULL;
25789 }
25790
25791
25792 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25793 PyObject *resultobj = 0;
25794 wxColourDatabase *result = 0 ;
25795
25796 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
25797 {
25798 PyThreadState* __tstate = wxPyBeginAllowThreads();
25799 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
25800 wxPyEndAllowThreads(__tstate);
25801 if (PyErr_Occurred()) SWIG_fail;
25802 }
25803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25804 return resultobj;
25805 fail:
25806 return NULL;
25807 }
25808
25809
25810 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25811 PyObject *resultobj = 0;
25812 wxEffects *result = 0 ;
25813
25814 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
25815 {
25816 PyThreadState* __tstate = wxPyBeginAllowThreads();
25817 result = (wxEffects *)new wxEffects();
25818 wxPyEndAllowThreads(__tstate);
25819 if (PyErr_Occurred()) SWIG_fail;
25820 }
25821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
25822 return resultobj;
25823 fail:
25824 return NULL;
25825 }
25826
25827
25828 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25829 PyObject *resultobj = 0;
25830 wxEffects *arg1 = (wxEffects *) 0 ;
25831 wxColour result;
25832 void *argp1 = 0 ;
25833 int res1 = 0 ;
25834 PyObject *swig_obj[1] ;
25835
25836 if (!args) SWIG_fail;
25837 swig_obj[0] = args;
25838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25839 if (!SWIG_IsOK(res1)) {
25840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
25841 }
25842 arg1 = reinterpret_cast< wxEffects * >(argp1);
25843 {
25844 PyThreadState* __tstate = wxPyBeginAllowThreads();
25845 result = ((wxEffects const *)arg1)->GetHighlightColour();
25846 wxPyEndAllowThreads(__tstate);
25847 if (PyErr_Occurred()) SWIG_fail;
25848 }
25849 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25850 return resultobj;
25851 fail:
25852 return NULL;
25853 }
25854
25855
25856 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25857 PyObject *resultobj = 0;
25858 wxEffects *arg1 = (wxEffects *) 0 ;
25859 wxColour result;
25860 void *argp1 = 0 ;
25861 int res1 = 0 ;
25862 PyObject *swig_obj[1] ;
25863
25864 if (!args) SWIG_fail;
25865 swig_obj[0] = args;
25866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25867 if (!SWIG_IsOK(res1)) {
25868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25869 }
25870 arg1 = reinterpret_cast< wxEffects * >(argp1);
25871 {
25872 PyThreadState* __tstate = wxPyBeginAllowThreads();
25873 result = ((wxEffects const *)arg1)->GetLightShadow();
25874 wxPyEndAllowThreads(__tstate);
25875 if (PyErr_Occurred()) SWIG_fail;
25876 }
25877 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25878 return resultobj;
25879 fail:
25880 return NULL;
25881 }
25882
25883
25884 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25885 PyObject *resultobj = 0;
25886 wxEffects *arg1 = (wxEffects *) 0 ;
25887 wxColour result;
25888 void *argp1 = 0 ;
25889 int res1 = 0 ;
25890 PyObject *swig_obj[1] ;
25891
25892 if (!args) SWIG_fail;
25893 swig_obj[0] = args;
25894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25895 if (!SWIG_IsOK(res1)) {
25896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
25897 }
25898 arg1 = reinterpret_cast< wxEffects * >(argp1);
25899 {
25900 PyThreadState* __tstate = wxPyBeginAllowThreads();
25901 result = ((wxEffects const *)arg1)->GetFaceColour();
25902 wxPyEndAllowThreads(__tstate);
25903 if (PyErr_Occurred()) SWIG_fail;
25904 }
25905 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25906 return resultobj;
25907 fail:
25908 return NULL;
25909 }
25910
25911
25912 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25913 PyObject *resultobj = 0;
25914 wxEffects *arg1 = (wxEffects *) 0 ;
25915 wxColour result;
25916 void *argp1 = 0 ;
25917 int res1 = 0 ;
25918 PyObject *swig_obj[1] ;
25919
25920 if (!args) SWIG_fail;
25921 swig_obj[0] = args;
25922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25923 if (!SWIG_IsOK(res1)) {
25924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25925 }
25926 arg1 = reinterpret_cast< wxEffects * >(argp1);
25927 {
25928 PyThreadState* __tstate = wxPyBeginAllowThreads();
25929 result = ((wxEffects const *)arg1)->GetMediumShadow();
25930 wxPyEndAllowThreads(__tstate);
25931 if (PyErr_Occurred()) SWIG_fail;
25932 }
25933 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25934 return resultobj;
25935 fail:
25936 return NULL;
25937 }
25938
25939
25940 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25941 PyObject *resultobj = 0;
25942 wxEffects *arg1 = (wxEffects *) 0 ;
25943 wxColour result;
25944 void *argp1 = 0 ;
25945 int res1 = 0 ;
25946 PyObject *swig_obj[1] ;
25947
25948 if (!args) SWIG_fail;
25949 swig_obj[0] = args;
25950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25951 if (!SWIG_IsOK(res1)) {
25952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25953 }
25954 arg1 = reinterpret_cast< wxEffects * >(argp1);
25955 {
25956 PyThreadState* __tstate = wxPyBeginAllowThreads();
25957 result = ((wxEffects const *)arg1)->GetDarkShadow();
25958 wxPyEndAllowThreads(__tstate);
25959 if (PyErr_Occurred()) SWIG_fail;
25960 }
25961 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25962 return resultobj;
25963 fail:
25964 return NULL;
25965 }
25966
25967
25968 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25969 PyObject *resultobj = 0;
25970 wxEffects *arg1 = (wxEffects *) 0 ;
25971 wxColour *arg2 = 0 ;
25972 void *argp1 = 0 ;
25973 int res1 = 0 ;
25974 wxColour temp2 ;
25975 PyObject * obj0 = 0 ;
25976 PyObject * obj1 = 0 ;
25977 char * kwnames[] = {
25978 (char *) "self",(char *) "c", NULL
25979 };
25980
25981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
25982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25983 if (!SWIG_IsOK(res1)) {
25984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
25985 }
25986 arg1 = reinterpret_cast< wxEffects * >(argp1);
25987 {
25988 arg2 = &temp2;
25989 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25990 }
25991 {
25992 PyThreadState* __tstate = wxPyBeginAllowThreads();
25993 (arg1)->SetHighlightColour((wxColour const &)*arg2);
25994 wxPyEndAllowThreads(__tstate);
25995 if (PyErr_Occurred()) SWIG_fail;
25996 }
25997 resultobj = SWIG_Py_Void();
25998 return resultobj;
25999 fail:
26000 return NULL;
26001 }
26002
26003
26004 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26005 PyObject *resultobj = 0;
26006 wxEffects *arg1 = (wxEffects *) 0 ;
26007 wxColour *arg2 = 0 ;
26008 void *argp1 = 0 ;
26009 int res1 = 0 ;
26010 wxColour temp2 ;
26011 PyObject * obj0 = 0 ;
26012 PyObject * obj1 = 0 ;
26013 char * kwnames[] = {
26014 (char *) "self",(char *) "c", NULL
26015 };
26016
26017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26019 if (!SWIG_IsOK(res1)) {
26020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26021 }
26022 arg1 = reinterpret_cast< wxEffects * >(argp1);
26023 {
26024 arg2 = &temp2;
26025 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26026 }
26027 {
26028 PyThreadState* __tstate = wxPyBeginAllowThreads();
26029 (arg1)->SetLightShadow((wxColour const &)*arg2);
26030 wxPyEndAllowThreads(__tstate);
26031 if (PyErr_Occurred()) SWIG_fail;
26032 }
26033 resultobj = SWIG_Py_Void();
26034 return resultobj;
26035 fail:
26036 return NULL;
26037 }
26038
26039
26040 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26041 PyObject *resultobj = 0;
26042 wxEffects *arg1 = (wxEffects *) 0 ;
26043 wxColour *arg2 = 0 ;
26044 void *argp1 = 0 ;
26045 int res1 = 0 ;
26046 wxColour temp2 ;
26047 PyObject * obj0 = 0 ;
26048 PyObject * obj1 = 0 ;
26049 char * kwnames[] = {
26050 (char *) "self",(char *) "c", NULL
26051 };
26052
26053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
26054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26055 if (!SWIG_IsOK(res1)) {
26056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26057 }
26058 arg1 = reinterpret_cast< wxEffects * >(argp1);
26059 {
26060 arg2 = &temp2;
26061 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26062 }
26063 {
26064 PyThreadState* __tstate = wxPyBeginAllowThreads();
26065 (arg1)->SetFaceColour((wxColour const &)*arg2);
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 resultobj = SWIG_Py_Void();
26070 return resultobj;
26071 fail:
26072 return NULL;
26073 }
26074
26075
26076 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26077 PyObject *resultobj = 0;
26078 wxEffects *arg1 = (wxEffects *) 0 ;
26079 wxColour *arg2 = 0 ;
26080 void *argp1 = 0 ;
26081 int res1 = 0 ;
26082 wxColour temp2 ;
26083 PyObject * obj0 = 0 ;
26084 PyObject * obj1 = 0 ;
26085 char * kwnames[] = {
26086 (char *) "self",(char *) "c", NULL
26087 };
26088
26089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26091 if (!SWIG_IsOK(res1)) {
26092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26093 }
26094 arg1 = reinterpret_cast< wxEffects * >(argp1);
26095 {
26096 arg2 = &temp2;
26097 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26098 }
26099 {
26100 PyThreadState* __tstate = wxPyBeginAllowThreads();
26101 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26102 wxPyEndAllowThreads(__tstate);
26103 if (PyErr_Occurred()) SWIG_fail;
26104 }
26105 resultobj = SWIG_Py_Void();
26106 return resultobj;
26107 fail:
26108 return NULL;
26109 }
26110
26111
26112 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26113 PyObject *resultobj = 0;
26114 wxEffects *arg1 = (wxEffects *) 0 ;
26115 wxColour *arg2 = 0 ;
26116 void *argp1 = 0 ;
26117 int res1 = 0 ;
26118 wxColour temp2 ;
26119 PyObject * obj0 = 0 ;
26120 PyObject * obj1 = 0 ;
26121 char * kwnames[] = {
26122 (char *) "self",(char *) "c", NULL
26123 };
26124
26125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26127 if (!SWIG_IsOK(res1)) {
26128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26129 }
26130 arg1 = reinterpret_cast< wxEffects * >(argp1);
26131 {
26132 arg2 = &temp2;
26133 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26134 }
26135 {
26136 PyThreadState* __tstate = wxPyBeginAllowThreads();
26137 (arg1)->SetDarkShadow((wxColour const &)*arg2);
26138 wxPyEndAllowThreads(__tstate);
26139 if (PyErr_Occurred()) SWIG_fail;
26140 }
26141 resultobj = SWIG_Py_Void();
26142 return resultobj;
26143 fail:
26144 return NULL;
26145 }
26146
26147
26148 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26149 PyObject *resultobj = 0;
26150 wxEffects *arg1 = (wxEffects *) 0 ;
26151 wxColour *arg2 = 0 ;
26152 wxColour *arg3 = 0 ;
26153 wxColour *arg4 = 0 ;
26154 wxColour *arg5 = 0 ;
26155 wxColour *arg6 = 0 ;
26156 void *argp1 = 0 ;
26157 int res1 = 0 ;
26158 wxColour temp2 ;
26159 wxColour temp3 ;
26160 wxColour temp4 ;
26161 wxColour temp5 ;
26162 wxColour temp6 ;
26163 PyObject * obj0 = 0 ;
26164 PyObject * obj1 = 0 ;
26165 PyObject * obj2 = 0 ;
26166 PyObject * obj3 = 0 ;
26167 PyObject * obj4 = 0 ;
26168 PyObject * obj5 = 0 ;
26169 char * kwnames[] = {
26170 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
26171 };
26172
26173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26175 if (!SWIG_IsOK(res1)) {
26176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
26177 }
26178 arg1 = reinterpret_cast< wxEffects * >(argp1);
26179 {
26180 arg2 = &temp2;
26181 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26182 }
26183 {
26184 arg3 = &temp3;
26185 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26186 }
26187 {
26188 arg4 = &temp4;
26189 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26190 }
26191 {
26192 arg5 = &temp5;
26193 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
26194 }
26195 {
26196 arg6 = &temp6;
26197 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26198 }
26199 {
26200 PyThreadState* __tstate = wxPyBeginAllowThreads();
26201 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
26202 wxPyEndAllowThreads(__tstate);
26203 if (PyErr_Occurred()) SWIG_fail;
26204 }
26205 resultobj = SWIG_Py_Void();
26206 return resultobj;
26207 fail:
26208 return NULL;
26209 }
26210
26211
26212 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26213 PyObject *resultobj = 0;
26214 wxEffects *arg1 = (wxEffects *) 0 ;
26215 wxDC *arg2 = 0 ;
26216 wxRect *arg3 = 0 ;
26217 int arg4 = (int) 1 ;
26218 void *argp1 = 0 ;
26219 int res1 = 0 ;
26220 void *argp2 = 0 ;
26221 int res2 = 0 ;
26222 wxRect temp3 ;
26223 int val4 ;
26224 int ecode4 = 0 ;
26225 PyObject * obj0 = 0 ;
26226 PyObject * obj1 = 0 ;
26227 PyObject * obj2 = 0 ;
26228 PyObject * obj3 = 0 ;
26229 char * kwnames[] = {
26230 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
26231 };
26232
26233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26235 if (!SWIG_IsOK(res1)) {
26236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
26237 }
26238 arg1 = reinterpret_cast< wxEffects * >(argp1);
26239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
26240 if (!SWIG_IsOK(res2)) {
26241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26242 }
26243 if (!argp2) {
26244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26245 }
26246 arg2 = reinterpret_cast< wxDC * >(argp2);
26247 {
26248 arg3 = &temp3;
26249 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26250 }
26251 if (obj3) {
26252 ecode4 = SWIG_AsVal_int(obj3, &val4);
26253 if (!SWIG_IsOK(ecode4)) {
26254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
26255 }
26256 arg4 = static_cast< int >(val4);
26257 }
26258 {
26259 PyThreadState* __tstate = wxPyBeginAllowThreads();
26260 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
26261 wxPyEndAllowThreads(__tstate);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 resultobj = SWIG_Py_Void();
26265 return resultobj;
26266 fail:
26267 return NULL;
26268 }
26269
26270
26271 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26272 PyObject *resultobj = 0;
26273 wxEffects *arg1 = (wxEffects *) 0 ;
26274 wxRect *arg2 = 0 ;
26275 wxDC *arg3 = 0 ;
26276 wxBitmap *arg4 = 0 ;
26277 bool result;
26278 void *argp1 = 0 ;
26279 int res1 = 0 ;
26280 wxRect temp2 ;
26281 void *argp3 = 0 ;
26282 int res3 = 0 ;
26283 void *argp4 = 0 ;
26284 int res4 = 0 ;
26285 PyObject * obj0 = 0 ;
26286 PyObject * obj1 = 0 ;
26287 PyObject * obj2 = 0 ;
26288 PyObject * obj3 = 0 ;
26289 char * kwnames[] = {
26290 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
26291 };
26292
26293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26295 if (!SWIG_IsOK(res1)) {
26296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
26297 }
26298 arg1 = reinterpret_cast< wxEffects * >(argp1);
26299 {
26300 arg2 = &temp2;
26301 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26302 }
26303 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26304 if (!SWIG_IsOK(res3)) {
26305 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26306 }
26307 if (!argp3) {
26308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26309 }
26310 arg3 = reinterpret_cast< wxDC * >(argp3);
26311 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
26312 if (!SWIG_IsOK(res4)) {
26313 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26314 }
26315 if (!argp4) {
26316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26317 }
26318 arg4 = reinterpret_cast< wxBitmap * >(argp4);
26319 {
26320 PyThreadState* __tstate = wxPyBeginAllowThreads();
26321 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 {
26326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26327 }
26328 return resultobj;
26329 fail:
26330 return NULL;
26331 }
26332
26333
26334 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26335 PyObject *obj;
26336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26337 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
26338 return SWIG_Py_Void();
26339 }
26340
26341 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26342 return SWIG_Python_InitShadowInstance(args);
26343 }
26344
26345 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26346 PyObject *resultobj = 0;
26347 int arg1 ;
26348 int arg2 ;
26349 bool arg3 ;
26350 wxSplitterRenderParams *result = 0 ;
26351 int val1 ;
26352 int ecode1 = 0 ;
26353 int val2 ;
26354 int ecode2 = 0 ;
26355 bool val3 ;
26356 int ecode3 = 0 ;
26357 PyObject * obj0 = 0 ;
26358 PyObject * obj1 = 0 ;
26359 PyObject * obj2 = 0 ;
26360 char * kwnames[] = {
26361 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
26362 };
26363
26364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26365 ecode1 = SWIG_AsVal_int(obj0, &val1);
26366 if (!SWIG_IsOK(ecode1)) {
26367 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
26368 }
26369 arg1 = static_cast< int >(val1);
26370 ecode2 = SWIG_AsVal_int(obj1, &val2);
26371 if (!SWIG_IsOK(ecode2)) {
26372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
26373 }
26374 arg2 = static_cast< int >(val2);
26375 ecode3 = SWIG_AsVal_bool(obj2, &val3);
26376 if (!SWIG_IsOK(ecode3)) {
26377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
26378 }
26379 arg3 = static_cast< bool >(val3);
26380 {
26381 PyThreadState* __tstate = wxPyBeginAllowThreads();
26382 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
26383 wxPyEndAllowThreads(__tstate);
26384 if (PyErr_Occurred()) SWIG_fail;
26385 }
26386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
26387 return resultobj;
26388 fail:
26389 return NULL;
26390 }
26391
26392
26393 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26394 PyObject *resultobj = 0;
26395 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26396 void *argp1 = 0 ;
26397 int res1 = 0 ;
26398 PyObject *swig_obj[1] ;
26399
26400 if (!args) SWIG_fail;
26401 swig_obj[0] = args;
26402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
26403 if (!SWIG_IsOK(res1)) {
26404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26405 }
26406 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26407 {
26408 PyThreadState* __tstate = wxPyBeginAllowThreads();
26409 delete arg1;
26410
26411 wxPyEndAllowThreads(__tstate);
26412 if (PyErr_Occurred()) SWIG_fail;
26413 }
26414 resultobj = SWIG_Py_Void();
26415 return resultobj;
26416 fail:
26417 return NULL;
26418 }
26419
26420
26421 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26422 PyObject *resultobj = 0;
26423 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26424 int result;
26425 void *argp1 = 0 ;
26426 int res1 = 0 ;
26427 PyObject *swig_obj[1] ;
26428
26429 if (!args) SWIG_fail;
26430 swig_obj[0] = args;
26431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26432 if (!SWIG_IsOK(res1)) {
26433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26434 }
26435 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26436 result = (int)(int) ((arg1)->widthSash);
26437 resultobj = SWIG_From_int(static_cast< int >(result));
26438 return resultobj;
26439 fail:
26440 return NULL;
26441 }
26442
26443
26444 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26445 PyObject *resultobj = 0;
26446 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26447 int result;
26448 void *argp1 = 0 ;
26449 int res1 = 0 ;
26450 PyObject *swig_obj[1] ;
26451
26452 if (!args) SWIG_fail;
26453 swig_obj[0] = args;
26454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26455 if (!SWIG_IsOK(res1)) {
26456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26457 }
26458 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26459 result = (int)(int) ((arg1)->border);
26460 resultobj = SWIG_From_int(static_cast< int >(result));
26461 return resultobj;
26462 fail:
26463 return NULL;
26464 }
26465
26466
26467 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26468 PyObject *resultobj = 0;
26469 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26470 bool result;
26471 void *argp1 = 0 ;
26472 int res1 = 0 ;
26473 PyObject *swig_obj[1] ;
26474
26475 if (!args) SWIG_fail;
26476 swig_obj[0] = args;
26477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26478 if (!SWIG_IsOK(res1)) {
26479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26480 }
26481 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26482 result = (bool)(bool) ((arg1)->isHotSensitive);
26483 resultobj = SWIG_From_bool(static_cast< bool >(result));
26484 return resultobj;
26485 fail:
26486 return NULL;
26487 }
26488
26489
26490 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26491 PyObject *obj;
26492 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26493 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
26494 return SWIG_Py_Void();
26495 }
26496
26497 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26498 return SWIG_Python_InitShadowInstance(args);
26499 }
26500
26501 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26502 PyObject *resultobj = 0;
26503 wxHeaderButtonParams *result = 0 ;
26504
26505 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
26506 {
26507 PyThreadState* __tstate = wxPyBeginAllowThreads();
26508 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
26509 wxPyEndAllowThreads(__tstate);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
26513 return resultobj;
26514 fail:
26515 return NULL;
26516 }
26517
26518
26519 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26520 PyObject *resultobj = 0;
26521 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26522 void *argp1 = 0 ;
26523 int res1 = 0 ;
26524 PyObject *swig_obj[1] ;
26525
26526 if (!args) SWIG_fail;
26527 swig_obj[0] = args;
26528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
26529 if (!SWIG_IsOK(res1)) {
26530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26531 }
26532 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26533 {
26534 PyThreadState* __tstate = wxPyBeginAllowThreads();
26535 delete arg1;
26536
26537 wxPyEndAllowThreads(__tstate);
26538 if (PyErr_Occurred()) SWIG_fail;
26539 }
26540 resultobj = SWIG_Py_Void();
26541 return resultobj;
26542 fail:
26543 return NULL;
26544 }
26545
26546
26547 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26548 PyObject *resultobj = 0;
26549 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26550 wxColour *arg2 = (wxColour *) 0 ;
26551 void *argp1 = 0 ;
26552 int res1 = 0 ;
26553 wxColour temp2 ;
26554 PyObject *swig_obj[2] ;
26555
26556 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
26557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26558 if (!SWIG_IsOK(res1)) {
26559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26560 }
26561 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26562 {
26563 arg2 = &temp2;
26564 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26565 }
26566 if (arg1) (arg1)->m_arrowColour = *arg2;
26567
26568 resultobj = SWIG_Py_Void();
26569 return resultobj;
26570 fail:
26571 return NULL;
26572 }
26573
26574
26575 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26576 PyObject *resultobj = 0;
26577 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26578 wxColour *result = 0 ;
26579 void *argp1 = 0 ;
26580 int res1 = 0 ;
26581 PyObject *swig_obj[1] ;
26582
26583 if (!args) SWIG_fail;
26584 swig_obj[0] = args;
26585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26586 if (!SWIG_IsOK(res1)) {
26587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26588 }
26589 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26590 result = (wxColour *)& ((arg1)->m_arrowColour);
26591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
26592 return resultobj;
26593 fail:
26594 return NULL;
26595 }
26596
26597
26598 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26599 PyObject *resultobj = 0;
26600 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26601 wxColour *arg2 = (wxColour *) 0 ;
26602 void *argp1 = 0 ;
26603 int res1 = 0 ;
26604 wxColour temp2 ;
26605 PyObject *swig_obj[2] ;
26606
26607 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
26608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26609 if (!SWIG_IsOK(res1)) {
26610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26611 }
26612 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26613 {
26614 arg2 = &temp2;
26615 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26616 }
26617 if (arg1) (arg1)->m_selectionColour = *arg2;
26618
26619 resultobj = SWIG_Py_Void();
26620 return resultobj;
26621 fail:
26622 return NULL;
26623 }
26624
26625
26626 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26627 PyObject *resultobj = 0;
26628 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26629 wxColour *result = 0 ;
26630 void *argp1 = 0 ;
26631 int res1 = 0 ;
26632 PyObject *swig_obj[1] ;
26633
26634 if (!args) SWIG_fail;
26635 swig_obj[0] = args;
26636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26637 if (!SWIG_IsOK(res1)) {
26638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26639 }
26640 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26641 result = (wxColour *)& ((arg1)->m_selectionColour);
26642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
26643 return resultobj;
26644 fail:
26645 return NULL;
26646 }
26647
26648
26649 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26650 PyObject *resultobj = 0;
26651 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26652 wxString *arg2 = (wxString *) 0 ;
26653 void *argp1 = 0 ;
26654 int res1 = 0 ;
26655 bool temp2 = false ;
26656 PyObject *swig_obj[2] ;
26657
26658 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
26659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26660 if (!SWIG_IsOK(res1)) {
26661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26662 }
26663 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26664 {
26665 arg2 = wxString_in_helper(swig_obj[1]);
26666 if (arg2 == NULL) SWIG_fail;
26667 temp2 = true;
26668 }
26669 if (arg1) (arg1)->m_labelText = *arg2;
26670
26671 resultobj = SWIG_Py_Void();
26672 {
26673 if (temp2)
26674 delete arg2;
26675 }
26676 return resultobj;
26677 fail:
26678 {
26679 if (temp2)
26680 delete arg2;
26681 }
26682 return NULL;
26683 }
26684
26685
26686 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26687 PyObject *resultobj = 0;
26688 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26689 wxString *result = 0 ;
26690 void *argp1 = 0 ;
26691 int res1 = 0 ;
26692 PyObject *swig_obj[1] ;
26693
26694 if (!args) SWIG_fail;
26695 swig_obj[0] = args;
26696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26697 if (!SWIG_IsOK(res1)) {
26698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26699 }
26700 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26701 result = (wxString *)& ((arg1)->m_labelText);
26702 {
26703 #if wxUSE_UNICODE
26704 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26705 #else
26706 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26707 #endif
26708 }
26709 return resultobj;
26710 fail:
26711 return NULL;
26712 }
26713
26714
26715 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26716 PyObject *resultobj = 0;
26717 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26718 wxFont *arg2 = (wxFont *) 0 ;
26719 void *argp1 = 0 ;
26720 int res1 = 0 ;
26721 void *argp2 = 0 ;
26722 int res2 = 0 ;
26723 PyObject *swig_obj[2] ;
26724
26725 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
26726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26727 if (!SWIG_IsOK(res1)) {
26728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26729 }
26730 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26731 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26732 if (!SWIG_IsOK(res2)) {
26733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
26734 }
26735 arg2 = reinterpret_cast< wxFont * >(argp2);
26736 if (arg1) (arg1)->m_labelFont = *arg2;
26737
26738 resultobj = SWIG_Py_Void();
26739 return resultobj;
26740 fail:
26741 return NULL;
26742 }
26743
26744
26745 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26746 PyObject *resultobj = 0;
26747 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26748 wxFont *result = 0 ;
26749 void *argp1 = 0 ;
26750 int res1 = 0 ;
26751 PyObject *swig_obj[1] ;
26752
26753 if (!args) SWIG_fail;
26754 swig_obj[0] = args;
26755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26756 if (!SWIG_IsOK(res1)) {
26757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26758 }
26759 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26760 result = (wxFont *)& ((arg1)->m_labelFont);
26761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
26762 return resultobj;
26763 fail:
26764 return NULL;
26765 }
26766
26767
26768 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26769 PyObject *resultobj = 0;
26770 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26771 wxColour *arg2 = (wxColour *) 0 ;
26772 void *argp1 = 0 ;
26773 int res1 = 0 ;
26774 wxColour temp2 ;
26775 PyObject *swig_obj[2] ;
26776
26777 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
26778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26779 if (!SWIG_IsOK(res1)) {
26780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26781 }
26782 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26783 {
26784 arg2 = &temp2;
26785 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26786 }
26787 if (arg1) (arg1)->m_labelColour = *arg2;
26788
26789 resultobj = SWIG_Py_Void();
26790 return resultobj;
26791 fail:
26792 return NULL;
26793 }
26794
26795
26796 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26797 PyObject *resultobj = 0;
26798 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26799 wxColour *result = 0 ;
26800 void *argp1 = 0 ;
26801 int res1 = 0 ;
26802 PyObject *swig_obj[1] ;
26803
26804 if (!args) SWIG_fail;
26805 swig_obj[0] = args;
26806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26807 if (!SWIG_IsOK(res1)) {
26808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26809 }
26810 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26811 result = (wxColour *)& ((arg1)->m_labelColour);
26812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
26813 return resultobj;
26814 fail:
26815 return NULL;
26816 }
26817
26818
26819 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26820 PyObject *resultobj = 0;
26821 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26822 wxBitmap *arg2 = (wxBitmap *) 0 ;
26823 void *argp1 = 0 ;
26824 int res1 = 0 ;
26825 void *argp2 = 0 ;
26826 int res2 = 0 ;
26827 PyObject *swig_obj[2] ;
26828
26829 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
26830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26831 if (!SWIG_IsOK(res1)) {
26832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26833 }
26834 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26835 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
26836 if (!SWIG_IsOK(res2)) {
26837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
26838 }
26839 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26840 if (arg1) (arg1)->m_labelBitmap = *arg2;
26841
26842 resultobj = SWIG_Py_Void();
26843 return resultobj;
26844 fail:
26845 return NULL;
26846 }
26847
26848
26849 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26850 PyObject *resultobj = 0;
26851 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26852 wxBitmap *result = 0 ;
26853 void *argp1 = 0 ;
26854 int res1 = 0 ;
26855 PyObject *swig_obj[1] ;
26856
26857 if (!args) SWIG_fail;
26858 swig_obj[0] = args;
26859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26860 if (!SWIG_IsOK(res1)) {
26861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26862 }
26863 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26864 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
26865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
26866 return resultobj;
26867 fail:
26868 return NULL;
26869 }
26870
26871
26872 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26873 PyObject *resultobj = 0;
26874 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26875 int arg2 ;
26876 void *argp1 = 0 ;
26877 int res1 = 0 ;
26878 int val2 ;
26879 int ecode2 = 0 ;
26880 PyObject *swig_obj[2] ;
26881
26882 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
26883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26884 if (!SWIG_IsOK(res1)) {
26885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26886 }
26887 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26888 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
26889 if (!SWIG_IsOK(ecode2)) {
26890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
26891 }
26892 arg2 = static_cast< int >(val2);
26893 if (arg1) (arg1)->m_labelAlignment = arg2;
26894
26895 resultobj = SWIG_Py_Void();
26896 return resultobj;
26897 fail:
26898 return NULL;
26899 }
26900
26901
26902 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26903 PyObject *resultobj = 0;
26904 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26905 int result;
26906 void *argp1 = 0 ;
26907 int res1 = 0 ;
26908 PyObject *swig_obj[1] ;
26909
26910 if (!args) SWIG_fail;
26911 swig_obj[0] = args;
26912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26913 if (!SWIG_IsOK(res1)) {
26914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26915 }
26916 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26917 result = (int) ((arg1)->m_labelAlignment);
26918 resultobj = SWIG_From_int(static_cast< int >(result));
26919 return resultobj;
26920 fail:
26921 return NULL;
26922 }
26923
26924
26925 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26926 PyObject *obj;
26927 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26928 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
26929 return SWIG_Py_Void();
26930 }
26931
26932 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26933 return SWIG_Python_InitShadowInstance(args);
26934 }
26935
26936 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26937 PyObject *resultobj = 0;
26938 int arg1 ;
26939 int arg2 ;
26940 wxRendererVersion *result = 0 ;
26941 int val1 ;
26942 int ecode1 = 0 ;
26943 int val2 ;
26944 int ecode2 = 0 ;
26945 PyObject * obj0 = 0 ;
26946 PyObject * obj1 = 0 ;
26947 char * kwnames[] = {
26948 (char *) "version_",(char *) "age_", NULL
26949 };
26950
26951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
26952 ecode1 = SWIG_AsVal_int(obj0, &val1);
26953 if (!SWIG_IsOK(ecode1)) {
26954 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
26955 }
26956 arg1 = static_cast< int >(val1);
26957 ecode2 = SWIG_AsVal_int(obj1, &val2);
26958 if (!SWIG_IsOK(ecode2)) {
26959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
26960 }
26961 arg2 = static_cast< int >(val2);
26962 {
26963 PyThreadState* __tstate = wxPyBeginAllowThreads();
26964 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
26965 wxPyEndAllowThreads(__tstate);
26966 if (PyErr_Occurred()) SWIG_fail;
26967 }
26968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
26969 return resultobj;
26970 fail:
26971 return NULL;
26972 }
26973
26974
26975 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26976 PyObject *resultobj = 0;
26977 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26978 void *argp1 = 0 ;
26979 int res1 = 0 ;
26980 PyObject *swig_obj[1] ;
26981
26982 if (!args) SWIG_fail;
26983 swig_obj[0] = args;
26984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
26985 if (!SWIG_IsOK(res1)) {
26986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26987 }
26988 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26989 {
26990 PyThreadState* __tstate = wxPyBeginAllowThreads();
26991 delete arg1;
26992
26993 wxPyEndAllowThreads(__tstate);
26994 if (PyErr_Occurred()) SWIG_fail;
26995 }
26996 resultobj = SWIG_Py_Void();
26997 return resultobj;
26998 fail:
26999 return NULL;
27000 }
27001
27002
27003 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27004 PyObject *resultobj = 0;
27005 wxRendererVersion *arg1 = 0 ;
27006 bool result;
27007 void *argp1 = 0 ;
27008 int res1 = 0 ;
27009 PyObject * obj0 = 0 ;
27010 char * kwnames[] = {
27011 (char *) "ver", NULL
27012 };
27013
27014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
27015 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
27016 if (!SWIG_IsOK(res1)) {
27017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27018 }
27019 if (!argp1) {
27020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27021 }
27022 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27023 {
27024 PyThreadState* __tstate = wxPyBeginAllowThreads();
27025 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
27026 wxPyEndAllowThreads(__tstate);
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 {
27030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27031 }
27032 return resultobj;
27033 fail:
27034 return NULL;
27035 }
27036
27037
27038 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27039 PyObject *resultobj = 0;
27040 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27041 int result;
27042 void *argp1 = 0 ;
27043 int res1 = 0 ;
27044 PyObject *swig_obj[1] ;
27045
27046 if (!args) SWIG_fail;
27047 swig_obj[0] = args;
27048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27049 if (!SWIG_IsOK(res1)) {
27050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27051 }
27052 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27053 result = (int)(int) ((arg1)->version);
27054 resultobj = SWIG_From_int(static_cast< int >(result));
27055 return resultobj;
27056 fail:
27057 return NULL;
27058 }
27059
27060
27061 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27062 PyObject *resultobj = 0;
27063 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27064 int result;
27065 void *argp1 = 0 ;
27066 int res1 = 0 ;
27067 PyObject *swig_obj[1] ;
27068
27069 if (!args) SWIG_fail;
27070 swig_obj[0] = args;
27071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27072 if (!SWIG_IsOK(res1)) {
27073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27074 }
27075 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27076 result = (int)(int) ((arg1)->age);
27077 resultobj = SWIG_From_int(static_cast< int >(result));
27078 return resultobj;
27079 fail:
27080 return NULL;
27081 }
27082
27083
27084 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27085 PyObject *obj;
27086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27087 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
27088 return SWIG_Py_Void();
27089 }
27090
27091 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27092 return SWIG_Python_InitShadowInstance(args);
27093 }
27094
27095 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27096 PyObject *resultobj = 0;
27097 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27098 wxWindow *arg2 = (wxWindow *) 0 ;
27099 wxDC *arg3 = 0 ;
27100 wxRect *arg4 = 0 ;
27101 int arg5 = (int) 0 ;
27102 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
27103 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
27104 void *argp1 = 0 ;
27105 int res1 = 0 ;
27106 void *argp2 = 0 ;
27107 int res2 = 0 ;
27108 void *argp3 = 0 ;
27109 int res3 = 0 ;
27110 wxRect temp4 ;
27111 int val5 ;
27112 int ecode5 = 0 ;
27113 int val6 ;
27114 int ecode6 = 0 ;
27115 void *argp7 = 0 ;
27116 int res7 = 0 ;
27117 PyObject * obj0 = 0 ;
27118 PyObject * obj1 = 0 ;
27119 PyObject * obj2 = 0 ;
27120 PyObject * obj3 = 0 ;
27121 PyObject * obj4 = 0 ;
27122 PyObject * obj5 = 0 ;
27123 PyObject * obj6 = 0 ;
27124 char * kwnames[] = {
27125 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
27126 };
27127
27128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27130 if (!SWIG_IsOK(res1)) {
27131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27132 }
27133 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27134 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27135 if (!SWIG_IsOK(res2)) {
27136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27137 }
27138 arg2 = reinterpret_cast< wxWindow * >(argp2);
27139 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27140 if (!SWIG_IsOK(res3)) {
27141 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27142 }
27143 if (!argp3) {
27144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27145 }
27146 arg3 = reinterpret_cast< wxDC * >(argp3);
27147 {
27148 arg4 = &temp4;
27149 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27150 }
27151 if (obj4) {
27152 ecode5 = SWIG_AsVal_int(obj4, &val5);
27153 if (!SWIG_IsOK(ecode5)) {
27154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
27155 }
27156 arg5 = static_cast< int >(val5);
27157 }
27158 if (obj5) {
27159 ecode6 = SWIG_AsVal_int(obj5, &val6);
27160 if (!SWIG_IsOK(ecode6)) {
27161 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
27162 }
27163 arg6 = static_cast< wxHeaderSortIconType >(val6);
27164 }
27165 if (obj6) {
27166 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27167 if (!SWIG_IsOK(res7)) {
27168 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
27169 }
27170 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
27171 }
27172 {
27173 PyThreadState* __tstate = wxPyBeginAllowThreads();
27174 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
27175 wxPyEndAllowThreads(__tstate);
27176 if (PyErr_Occurred()) SWIG_fail;
27177 }
27178 resultobj = SWIG_Py_Void();
27179 return resultobj;
27180 fail:
27181 return NULL;
27182 }
27183
27184
27185 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27186 PyObject *resultobj = 0;
27187 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27188 wxWindow *arg2 = (wxWindow *) 0 ;
27189 wxDC *arg3 = 0 ;
27190 wxRect *arg4 = 0 ;
27191 int arg5 = (int) 0 ;
27192 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
27193 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
27194 void *argp1 = 0 ;
27195 int res1 = 0 ;
27196 void *argp2 = 0 ;
27197 int res2 = 0 ;
27198 void *argp3 = 0 ;
27199 int res3 = 0 ;
27200 wxRect temp4 ;
27201 int val5 ;
27202 int ecode5 = 0 ;
27203 int val6 ;
27204 int ecode6 = 0 ;
27205 void *argp7 = 0 ;
27206 int res7 = 0 ;
27207 PyObject * obj0 = 0 ;
27208 PyObject * obj1 = 0 ;
27209 PyObject * obj2 = 0 ;
27210 PyObject * obj3 = 0 ;
27211 PyObject * obj4 = 0 ;
27212 PyObject * obj5 = 0 ;
27213 PyObject * obj6 = 0 ;
27214 char * kwnames[] = {
27215 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
27216 };
27217
27218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27220 if (!SWIG_IsOK(res1)) {
27221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27222 }
27223 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27224 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27225 if (!SWIG_IsOK(res2)) {
27226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
27227 }
27228 arg2 = reinterpret_cast< wxWindow * >(argp2);
27229 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27230 if (!SWIG_IsOK(res3)) {
27231 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
27232 }
27233 if (!argp3) {
27234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
27235 }
27236 arg3 = reinterpret_cast< wxDC * >(argp3);
27237 {
27238 arg4 = &temp4;
27239 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27240 }
27241 if (obj4) {
27242 ecode5 = SWIG_AsVal_int(obj4, &val5);
27243 if (!SWIG_IsOK(ecode5)) {
27244 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
27245 }
27246 arg5 = static_cast< int >(val5);
27247 }
27248 if (obj5) {
27249 ecode6 = SWIG_AsVal_int(obj5, &val6);
27250 if (!SWIG_IsOK(ecode6)) {
27251 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
27252 }
27253 arg6 = static_cast< wxHeaderSortIconType >(val6);
27254 }
27255 if (obj6) {
27256 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27257 if (!SWIG_IsOK(res7)) {
27258 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
27259 }
27260 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
27261 }
27262 {
27263 PyThreadState* __tstate = wxPyBeginAllowThreads();
27264 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
27265 wxPyEndAllowThreads(__tstate);
27266 if (PyErr_Occurred()) SWIG_fail;
27267 }
27268 resultobj = SWIG_Py_Void();
27269 return resultobj;
27270 fail:
27271 return NULL;
27272 }
27273
27274
27275 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27276 PyObject *resultobj = 0;
27277 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27278 wxWindow *arg2 = (wxWindow *) 0 ;
27279 int result;
27280 void *argp1 = 0 ;
27281 int res1 = 0 ;
27282 void *argp2 = 0 ;
27283 int res2 = 0 ;
27284 PyObject * obj0 = 0 ;
27285 PyObject * obj1 = 0 ;
27286 char * kwnames[] = {
27287 (char *) "self",(char *) "win", NULL
27288 };
27289
27290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
27291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27292 if (!SWIG_IsOK(res1)) {
27293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27294 }
27295 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27296 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27297 if (!SWIG_IsOK(res2)) {
27298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
27299 }
27300 arg2 = reinterpret_cast< wxWindow * >(argp2);
27301 {
27302 PyThreadState* __tstate = wxPyBeginAllowThreads();
27303 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
27304 wxPyEndAllowThreads(__tstate);
27305 if (PyErr_Occurred()) SWIG_fail;
27306 }
27307 resultobj = SWIG_From_int(static_cast< int >(result));
27308 return resultobj;
27309 fail:
27310 return NULL;
27311 }
27312
27313
27314 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27315 PyObject *resultobj = 0;
27316 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27317 wxWindow *arg2 = (wxWindow *) 0 ;
27318 wxDC *arg3 = 0 ;
27319 wxRect *arg4 = 0 ;
27320 int arg5 = (int) 0 ;
27321 void *argp1 = 0 ;
27322 int res1 = 0 ;
27323 void *argp2 = 0 ;
27324 int res2 = 0 ;
27325 void *argp3 = 0 ;
27326 int res3 = 0 ;
27327 wxRect temp4 ;
27328 int val5 ;
27329 int ecode5 = 0 ;
27330 PyObject * obj0 = 0 ;
27331 PyObject * obj1 = 0 ;
27332 PyObject * obj2 = 0 ;
27333 PyObject * obj3 = 0 ;
27334 PyObject * obj4 = 0 ;
27335 char * kwnames[] = {
27336 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27337 };
27338
27339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27341 if (!SWIG_IsOK(res1)) {
27342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27343 }
27344 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27345 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27346 if (!SWIG_IsOK(res2)) {
27347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27348 }
27349 arg2 = reinterpret_cast< wxWindow * >(argp2);
27350 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27351 if (!SWIG_IsOK(res3)) {
27352 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27353 }
27354 if (!argp3) {
27355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27356 }
27357 arg3 = reinterpret_cast< wxDC * >(argp3);
27358 {
27359 arg4 = &temp4;
27360 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27361 }
27362 if (obj4) {
27363 ecode5 = SWIG_AsVal_int(obj4, &val5);
27364 if (!SWIG_IsOK(ecode5)) {
27365 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
27366 }
27367 arg5 = static_cast< int >(val5);
27368 }
27369 {
27370 PyThreadState* __tstate = wxPyBeginAllowThreads();
27371 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27372 wxPyEndAllowThreads(__tstate);
27373 if (PyErr_Occurred()) SWIG_fail;
27374 }
27375 resultobj = SWIG_Py_Void();
27376 return resultobj;
27377 fail:
27378 return NULL;
27379 }
27380
27381
27382 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27383 PyObject *resultobj = 0;
27384 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27385 wxWindow *arg2 = (wxWindow *) 0 ;
27386 wxDC *arg3 = 0 ;
27387 wxRect *arg4 = 0 ;
27388 int arg5 = (int) 0 ;
27389 void *argp1 = 0 ;
27390 int res1 = 0 ;
27391 void *argp2 = 0 ;
27392 int res2 = 0 ;
27393 void *argp3 = 0 ;
27394 int res3 = 0 ;
27395 wxRect temp4 ;
27396 int val5 ;
27397 int ecode5 = 0 ;
27398 PyObject * obj0 = 0 ;
27399 PyObject * obj1 = 0 ;
27400 PyObject * obj2 = 0 ;
27401 PyObject * obj3 = 0 ;
27402 PyObject * obj4 = 0 ;
27403 char * kwnames[] = {
27404 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27405 };
27406
27407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27409 if (!SWIG_IsOK(res1)) {
27410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27411 }
27412 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27413 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27414 if (!SWIG_IsOK(res2)) {
27415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
27416 }
27417 arg2 = reinterpret_cast< wxWindow * >(argp2);
27418 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27419 if (!SWIG_IsOK(res3)) {
27420 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27421 }
27422 if (!argp3) {
27423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27424 }
27425 arg3 = reinterpret_cast< wxDC * >(argp3);
27426 {
27427 arg4 = &temp4;
27428 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27429 }
27430 if (obj4) {
27431 ecode5 = SWIG_AsVal_int(obj4, &val5);
27432 if (!SWIG_IsOK(ecode5)) {
27433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
27434 }
27435 arg5 = static_cast< int >(val5);
27436 }
27437 {
27438 PyThreadState* __tstate = wxPyBeginAllowThreads();
27439 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
27440 wxPyEndAllowThreads(__tstate);
27441 if (PyErr_Occurred()) SWIG_fail;
27442 }
27443 resultobj = SWIG_Py_Void();
27444 return resultobj;
27445 fail:
27446 return NULL;
27447 }
27448
27449
27450 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27451 PyObject *resultobj = 0;
27452 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27453 wxWindow *arg2 = (wxWindow *) 0 ;
27454 wxDC *arg3 = 0 ;
27455 wxSize *arg4 = 0 ;
27456 int arg5 ;
27457 wxOrientation arg6 ;
27458 int arg7 = (int) 0 ;
27459 void *argp1 = 0 ;
27460 int res1 = 0 ;
27461 void *argp2 = 0 ;
27462 int res2 = 0 ;
27463 void *argp3 = 0 ;
27464 int res3 = 0 ;
27465 wxSize temp4 ;
27466 int val5 ;
27467 int ecode5 = 0 ;
27468 int val6 ;
27469 int ecode6 = 0 ;
27470 int val7 ;
27471 int ecode7 = 0 ;
27472 PyObject * obj0 = 0 ;
27473 PyObject * obj1 = 0 ;
27474 PyObject * obj2 = 0 ;
27475 PyObject * obj3 = 0 ;
27476 PyObject * obj4 = 0 ;
27477 PyObject * obj5 = 0 ;
27478 PyObject * obj6 = 0 ;
27479 char * kwnames[] = {
27480 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
27481 };
27482
27483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27485 if (!SWIG_IsOK(res1)) {
27486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27487 }
27488 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27490 if (!SWIG_IsOK(res2)) {
27491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
27492 }
27493 arg2 = reinterpret_cast< wxWindow * >(argp2);
27494 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27495 if (!SWIG_IsOK(res3)) {
27496 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27497 }
27498 if (!argp3) {
27499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27500 }
27501 arg3 = reinterpret_cast< wxDC * >(argp3);
27502 {
27503 arg4 = &temp4;
27504 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27505 }
27506 ecode5 = SWIG_AsVal_int(obj4, &val5);
27507 if (!SWIG_IsOK(ecode5)) {
27508 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
27509 }
27510 arg5 = static_cast< int >(val5);
27511 ecode6 = SWIG_AsVal_int(obj5, &val6);
27512 if (!SWIG_IsOK(ecode6)) {
27513 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
27514 }
27515 arg6 = static_cast< wxOrientation >(val6);
27516 if (obj6) {
27517 ecode7 = SWIG_AsVal_int(obj6, &val7);
27518 if (!SWIG_IsOK(ecode7)) {
27519 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
27520 }
27521 arg7 = static_cast< int >(val7);
27522 }
27523 {
27524 PyThreadState* __tstate = wxPyBeginAllowThreads();
27525 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
27526 wxPyEndAllowThreads(__tstate);
27527 if (PyErr_Occurred()) SWIG_fail;
27528 }
27529 resultobj = SWIG_Py_Void();
27530 return resultobj;
27531 fail:
27532 return NULL;
27533 }
27534
27535
27536 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27537 PyObject *resultobj = 0;
27538 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27539 wxWindow *arg2 = (wxWindow *) 0 ;
27540 wxDC *arg3 = 0 ;
27541 wxRect *arg4 = 0 ;
27542 int arg5 = (int) 0 ;
27543 void *argp1 = 0 ;
27544 int res1 = 0 ;
27545 void *argp2 = 0 ;
27546 int res2 = 0 ;
27547 void *argp3 = 0 ;
27548 int res3 = 0 ;
27549 wxRect temp4 ;
27550 int val5 ;
27551 int ecode5 = 0 ;
27552 PyObject * obj0 = 0 ;
27553 PyObject * obj1 = 0 ;
27554 PyObject * obj2 = 0 ;
27555 PyObject * obj3 = 0 ;
27556 PyObject * obj4 = 0 ;
27557 char * kwnames[] = {
27558 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27559 };
27560
27561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27563 if (!SWIG_IsOK(res1)) {
27564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27565 }
27566 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27568 if (!SWIG_IsOK(res2)) {
27569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27570 }
27571 arg2 = reinterpret_cast< wxWindow * >(argp2);
27572 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27573 if (!SWIG_IsOK(res3)) {
27574 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27575 }
27576 if (!argp3) {
27577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27578 }
27579 arg3 = reinterpret_cast< wxDC * >(argp3);
27580 {
27581 arg4 = &temp4;
27582 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27583 }
27584 if (obj4) {
27585 ecode5 = SWIG_AsVal_int(obj4, &val5);
27586 if (!SWIG_IsOK(ecode5)) {
27587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
27588 }
27589 arg5 = static_cast< int >(val5);
27590 }
27591 {
27592 PyThreadState* __tstate = wxPyBeginAllowThreads();
27593 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27594 wxPyEndAllowThreads(__tstate);
27595 if (PyErr_Occurred()) SWIG_fail;
27596 }
27597 resultobj = SWIG_Py_Void();
27598 return resultobj;
27599 fail:
27600 return NULL;
27601 }
27602
27603
27604 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27605 PyObject *resultobj = 0;
27606 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27607 wxWindow *arg2 = (wxWindow *) 0 ;
27608 wxDC *arg3 = 0 ;
27609 wxRect *arg4 = 0 ;
27610 int arg5 = (int) 0 ;
27611 void *argp1 = 0 ;
27612 int res1 = 0 ;
27613 void *argp2 = 0 ;
27614 int res2 = 0 ;
27615 void *argp3 = 0 ;
27616 int res3 = 0 ;
27617 wxRect temp4 ;
27618 int val5 ;
27619 int ecode5 = 0 ;
27620 PyObject * obj0 = 0 ;
27621 PyObject * obj1 = 0 ;
27622 PyObject * obj2 = 0 ;
27623 PyObject * obj3 = 0 ;
27624 PyObject * obj4 = 0 ;
27625 char * kwnames[] = {
27626 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27627 };
27628
27629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27631 if (!SWIG_IsOK(res1)) {
27632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27633 }
27634 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27636 if (!SWIG_IsOK(res2)) {
27637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
27638 }
27639 arg2 = reinterpret_cast< wxWindow * >(argp2);
27640 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27641 if (!SWIG_IsOK(res3)) {
27642 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27643 }
27644 if (!argp3) {
27645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27646 }
27647 arg3 = reinterpret_cast< wxDC * >(argp3);
27648 {
27649 arg4 = &temp4;
27650 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27651 }
27652 if (obj4) {
27653 ecode5 = SWIG_AsVal_int(obj4, &val5);
27654 if (!SWIG_IsOK(ecode5)) {
27655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
27656 }
27657 arg5 = static_cast< int >(val5);
27658 }
27659 {
27660 PyThreadState* __tstate = wxPyBeginAllowThreads();
27661 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
27662 wxPyEndAllowThreads(__tstate);
27663 if (PyErr_Occurred()) SWIG_fail;
27664 }
27665 resultobj = SWIG_Py_Void();
27666 return resultobj;
27667 fail:
27668 return NULL;
27669 }
27670
27671
27672 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27673 PyObject *resultobj = 0;
27674 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27675 wxWindow *arg2 = (wxWindow *) 0 ;
27676 wxDC *arg3 = 0 ;
27677 wxRect *arg4 = 0 ;
27678 int arg5 = (int) 0 ;
27679 void *argp1 = 0 ;
27680 int res1 = 0 ;
27681 void *argp2 = 0 ;
27682 int res2 = 0 ;
27683 void *argp3 = 0 ;
27684 int res3 = 0 ;
27685 wxRect temp4 ;
27686 int val5 ;
27687 int ecode5 = 0 ;
27688 PyObject * obj0 = 0 ;
27689 PyObject * obj1 = 0 ;
27690 PyObject * obj2 = 0 ;
27691 PyObject * obj3 = 0 ;
27692 PyObject * obj4 = 0 ;
27693 char * kwnames[] = {
27694 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27695 };
27696
27697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27699 if (!SWIG_IsOK(res1)) {
27700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27701 }
27702 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27704 if (!SWIG_IsOK(res2)) {
27705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
27706 }
27707 arg2 = reinterpret_cast< wxWindow * >(argp2);
27708 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27709 if (!SWIG_IsOK(res3)) {
27710 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27711 }
27712 if (!argp3) {
27713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27714 }
27715 arg3 = reinterpret_cast< wxDC * >(argp3);
27716 {
27717 arg4 = &temp4;
27718 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27719 }
27720 if (obj4) {
27721 ecode5 = SWIG_AsVal_int(obj4, &val5);
27722 if (!SWIG_IsOK(ecode5)) {
27723 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
27724 }
27725 arg5 = static_cast< int >(val5);
27726 }
27727 {
27728 PyThreadState* __tstate = wxPyBeginAllowThreads();
27729 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
27730 wxPyEndAllowThreads(__tstate);
27731 if (PyErr_Occurred()) SWIG_fail;
27732 }
27733 resultobj = SWIG_Py_Void();
27734 return resultobj;
27735 fail:
27736 return NULL;
27737 }
27738
27739
27740 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27741 PyObject *resultobj = 0;
27742 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27743 wxWindow *arg2 = (wxWindow *) 0 ;
27744 wxDC *arg3 = 0 ;
27745 wxRect *arg4 = 0 ;
27746 int arg5 = (int) 0 ;
27747 void *argp1 = 0 ;
27748 int res1 = 0 ;
27749 void *argp2 = 0 ;
27750 int res2 = 0 ;
27751 void *argp3 = 0 ;
27752 int res3 = 0 ;
27753 wxRect temp4 ;
27754 int val5 ;
27755 int ecode5 = 0 ;
27756 PyObject * obj0 = 0 ;
27757 PyObject * obj1 = 0 ;
27758 PyObject * obj2 = 0 ;
27759 PyObject * obj3 = 0 ;
27760 PyObject * obj4 = 0 ;
27761 char * kwnames[] = {
27762 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27763 };
27764
27765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27767 if (!SWIG_IsOK(res1)) {
27768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27769 }
27770 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27772 if (!SWIG_IsOK(res2)) {
27773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27774 }
27775 arg2 = reinterpret_cast< wxWindow * >(argp2);
27776 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27777 if (!SWIG_IsOK(res3)) {
27778 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27779 }
27780 if (!argp3) {
27781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27782 }
27783 arg3 = reinterpret_cast< wxDC * >(argp3);
27784 {
27785 arg4 = &temp4;
27786 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27787 }
27788 if (obj4) {
27789 ecode5 = SWIG_AsVal_int(obj4, &val5);
27790 if (!SWIG_IsOK(ecode5)) {
27791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
27792 }
27793 arg5 = static_cast< int >(val5);
27794 }
27795 {
27796 PyThreadState* __tstate = wxPyBeginAllowThreads();
27797 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27798 wxPyEndAllowThreads(__tstate);
27799 if (PyErr_Occurred()) SWIG_fail;
27800 }
27801 resultobj = SWIG_Py_Void();
27802 return resultobj;
27803 fail:
27804 return NULL;
27805 }
27806
27807
27808 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27809 PyObject *resultobj = 0;
27810 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27811 wxWindow *arg2 = (wxWindow *) 0 ;
27812 wxDC *arg3 = 0 ;
27813 wxRect *arg4 = 0 ;
27814 int arg5 = (int) 0 ;
27815 void *argp1 = 0 ;
27816 int res1 = 0 ;
27817 void *argp2 = 0 ;
27818 int res2 = 0 ;
27819 void *argp3 = 0 ;
27820 int res3 = 0 ;
27821 wxRect temp4 ;
27822 int val5 ;
27823 int ecode5 = 0 ;
27824 PyObject * obj0 = 0 ;
27825 PyObject * obj1 = 0 ;
27826 PyObject * obj2 = 0 ;
27827 PyObject * obj3 = 0 ;
27828 PyObject * obj4 = 0 ;
27829 char * kwnames[] = {
27830 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27831 };
27832
27833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27835 if (!SWIG_IsOK(res1)) {
27836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27837 }
27838 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27839 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27840 if (!SWIG_IsOK(res2)) {
27841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
27842 }
27843 arg2 = reinterpret_cast< wxWindow * >(argp2);
27844 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27845 if (!SWIG_IsOK(res3)) {
27846 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
27847 }
27848 if (!argp3) {
27849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
27850 }
27851 arg3 = reinterpret_cast< wxDC * >(argp3);
27852 {
27853 arg4 = &temp4;
27854 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27855 }
27856 if (obj4) {
27857 ecode5 = SWIG_AsVal_int(obj4, &val5);
27858 if (!SWIG_IsOK(ecode5)) {
27859 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
27860 }
27861 arg5 = static_cast< int >(val5);
27862 }
27863 {
27864 PyThreadState* __tstate = wxPyBeginAllowThreads();
27865 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
27866 wxPyEndAllowThreads(__tstate);
27867 if (PyErr_Occurred()) SWIG_fail;
27868 }
27869 resultobj = SWIG_Py_Void();
27870 return resultobj;
27871 fail:
27872 return NULL;
27873 }
27874
27875
27876 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27877 PyObject *resultobj = 0;
27878 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27879 wxWindow *arg2 = (wxWindow *) 0 ;
27880 SwigValueWrapper<wxSplitterRenderParams > result;
27881 void *argp1 = 0 ;
27882 int res1 = 0 ;
27883 void *argp2 = 0 ;
27884 int res2 = 0 ;
27885 PyObject * obj0 = 0 ;
27886 PyObject * obj1 = 0 ;
27887 char * kwnames[] = {
27888 (char *) "self",(char *) "win", NULL
27889 };
27890
27891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
27892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27893 if (!SWIG_IsOK(res1)) {
27894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27895 }
27896 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27897 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27898 if (!SWIG_IsOK(res2)) {
27899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
27900 }
27901 arg2 = reinterpret_cast< wxWindow * >(argp2);
27902 {
27903 PyThreadState* __tstate = wxPyBeginAllowThreads();
27904 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
27905 wxPyEndAllowThreads(__tstate);
27906 if (PyErr_Occurred()) SWIG_fail;
27907 }
27908 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
27909 return resultobj;
27910 fail:
27911 return NULL;
27912 }
27913
27914
27915 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27916 PyObject *resultobj = 0;
27917 wxRendererNative *result = 0 ;
27918
27919 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
27920 {
27921 if (!wxPyCheckForApp()) SWIG_fail;
27922 PyThreadState* __tstate = wxPyBeginAllowThreads();
27923 {
27924 wxRendererNative &_result_ref = wxRendererNative::Get();
27925 result = (wxRendererNative *) &_result_ref;
27926 }
27927 wxPyEndAllowThreads(__tstate);
27928 if (PyErr_Occurred()) SWIG_fail;
27929 }
27930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27931 return resultobj;
27932 fail:
27933 return NULL;
27934 }
27935
27936
27937 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27938 PyObject *resultobj = 0;
27939 wxRendererNative *result = 0 ;
27940
27941 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
27942 {
27943 if (!wxPyCheckForApp()) SWIG_fail;
27944 PyThreadState* __tstate = wxPyBeginAllowThreads();
27945 {
27946 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
27947 result = (wxRendererNative *) &_result_ref;
27948 }
27949 wxPyEndAllowThreads(__tstate);
27950 if (PyErr_Occurred()) SWIG_fail;
27951 }
27952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27953 return resultobj;
27954 fail:
27955 return NULL;
27956 }
27957
27958
27959 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27960 PyObject *resultobj = 0;
27961 wxRendererNative *result = 0 ;
27962
27963 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
27964 {
27965 if (!wxPyCheckForApp()) SWIG_fail;
27966 PyThreadState* __tstate = wxPyBeginAllowThreads();
27967 {
27968 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
27969 result = (wxRendererNative *) &_result_ref;
27970 }
27971 wxPyEndAllowThreads(__tstate);
27972 if (PyErr_Occurred()) SWIG_fail;
27973 }
27974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27975 return resultobj;
27976 fail:
27977 return NULL;
27978 }
27979
27980
27981 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27982 PyObject *resultobj = 0;
27983 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27984 wxRendererNative *result = 0 ;
27985 void *argp1 = 0 ;
27986 int res1 = 0 ;
27987 PyObject * obj0 = 0 ;
27988 char * kwnames[] = {
27989 (char *) "renderer", NULL
27990 };
27991
27992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
27993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27994 if (!SWIG_IsOK(res1)) {
27995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27996 }
27997 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27998 {
27999 if (!wxPyCheckForApp()) SWIG_fail;
28000 PyThreadState* __tstate = wxPyBeginAllowThreads();
28001 result = (wxRendererNative *)wxRendererNative::Set(arg1);
28002 wxPyEndAllowThreads(__tstate);
28003 if (PyErr_Occurred()) SWIG_fail;
28004 }
28005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28006 return resultobj;
28007 fail:
28008 return NULL;
28009 }
28010
28011
28012 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28013 PyObject *resultobj = 0;
28014 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28015 SwigValueWrapper<wxRendererVersion > result;
28016 void *argp1 = 0 ;
28017 int res1 = 0 ;
28018 PyObject *swig_obj[1] ;
28019
28020 if (!args) SWIG_fail;
28021 swig_obj[0] = args;
28022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28023 if (!SWIG_IsOK(res1)) {
28024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
28025 }
28026 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28027 {
28028 PyThreadState* __tstate = wxPyBeginAllowThreads();
28029 result = ((wxRendererNative const *)arg1)->GetVersion();
28030 wxPyEndAllowThreads(__tstate);
28031 if (PyErr_Occurred()) SWIG_fail;
28032 }
28033 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
28034 return resultobj;
28035 fail:
28036 return NULL;
28037 }
28038
28039
28040 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28041 PyObject *obj;
28042 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28043 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
28044 return SWIG_Py_Void();
28045 }
28046
28047 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28048 PyObject *resultobj = 0;
28049 wxPseudoDC *result = 0 ;
28050
28051 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
28052 {
28053 PyThreadState* __tstate = wxPyBeginAllowThreads();
28054 result = (wxPseudoDC *)new wxPseudoDC();
28055 wxPyEndAllowThreads(__tstate);
28056 if (PyErr_Occurred()) SWIG_fail;
28057 }
28058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
28059 return resultobj;
28060 fail:
28061 return NULL;
28062 }
28063
28064
28065 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28066 PyObject *resultobj = 0;
28067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28068 void *argp1 = 0 ;
28069 int res1 = 0 ;
28070 PyObject *swig_obj[1] ;
28071
28072 if (!args) SWIG_fail;
28073 swig_obj[0] = args;
28074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28075 if (!SWIG_IsOK(res1)) {
28076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28077 }
28078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28079 {
28080 PyThreadState* __tstate = wxPyBeginAllowThreads();
28081 (arg1)->BeginDrawing();
28082 wxPyEndAllowThreads(__tstate);
28083 if (PyErr_Occurred()) SWIG_fail;
28084 }
28085 resultobj = SWIG_Py_Void();
28086 return resultobj;
28087 fail:
28088 return NULL;
28089 }
28090
28091
28092 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28093 PyObject *resultobj = 0;
28094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28095 void *argp1 = 0 ;
28096 int res1 = 0 ;
28097 PyObject *swig_obj[1] ;
28098
28099 if (!args) SWIG_fail;
28100 swig_obj[0] = args;
28101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28102 if (!SWIG_IsOK(res1)) {
28103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28104 }
28105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28106 {
28107 PyThreadState* __tstate = wxPyBeginAllowThreads();
28108 (arg1)->EndDrawing();
28109 wxPyEndAllowThreads(__tstate);
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
28112 resultobj = SWIG_Py_Void();
28113 return resultobj;
28114 fail:
28115 return NULL;
28116 }
28117
28118
28119 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28120 PyObject *resultobj = 0;
28121 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28122 void *argp1 = 0 ;
28123 int res1 = 0 ;
28124 PyObject *swig_obj[1] ;
28125
28126 if (!args) SWIG_fail;
28127 swig_obj[0] = args;
28128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
28129 if (!SWIG_IsOK(res1)) {
28130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28131 }
28132 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28133 {
28134 PyThreadState* __tstate = wxPyBeginAllowThreads();
28135 delete arg1;
28136
28137 wxPyEndAllowThreads(__tstate);
28138 if (PyErr_Occurred()) SWIG_fail;
28139 }
28140 resultobj = SWIG_Py_Void();
28141 return resultobj;
28142 fail:
28143 return NULL;
28144 }
28145
28146
28147 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28148 PyObject *resultobj = 0;
28149 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28150 void *argp1 = 0 ;
28151 int res1 = 0 ;
28152 PyObject *swig_obj[1] ;
28153
28154 if (!args) SWIG_fail;
28155 swig_obj[0] = args;
28156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28157 if (!SWIG_IsOK(res1)) {
28158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28159 }
28160 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28161 {
28162 PyThreadState* __tstate = wxPyBeginAllowThreads();
28163 (arg1)->RemoveAll();
28164 wxPyEndAllowThreads(__tstate);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 resultobj = SWIG_Py_Void();
28168 return resultobj;
28169 fail:
28170 return NULL;
28171 }
28172
28173
28174 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28175 PyObject *resultobj = 0;
28176 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28177 int result;
28178 void *argp1 = 0 ;
28179 int res1 = 0 ;
28180 PyObject *swig_obj[1] ;
28181
28182 if (!args) SWIG_fail;
28183 swig_obj[0] = args;
28184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28185 if (!SWIG_IsOK(res1)) {
28186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28187 }
28188 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28189 {
28190 PyThreadState* __tstate = wxPyBeginAllowThreads();
28191 result = (int)(arg1)->GetLen();
28192 wxPyEndAllowThreads(__tstate);
28193 if (PyErr_Occurred()) SWIG_fail;
28194 }
28195 resultobj = SWIG_From_int(static_cast< int >(result));
28196 return resultobj;
28197 fail:
28198 return NULL;
28199 }
28200
28201
28202 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28203 PyObject *resultobj = 0;
28204 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28205 int arg2 ;
28206 void *argp1 = 0 ;
28207 int res1 = 0 ;
28208 int val2 ;
28209 int ecode2 = 0 ;
28210 PyObject * obj0 = 0 ;
28211 PyObject * obj1 = 0 ;
28212 char * kwnames[] = {
28213 (char *) "self",(char *) "id", NULL
28214 };
28215
28216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
28217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28218 if (!SWIG_IsOK(res1)) {
28219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28220 }
28221 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28222 ecode2 = SWIG_AsVal_int(obj1, &val2);
28223 if (!SWIG_IsOK(ecode2)) {
28224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
28225 }
28226 arg2 = static_cast< int >(val2);
28227 {
28228 PyThreadState* __tstate = wxPyBeginAllowThreads();
28229 (arg1)->SetId(arg2);
28230 wxPyEndAllowThreads(__tstate);
28231 if (PyErr_Occurred()) SWIG_fail;
28232 }
28233 resultobj = SWIG_Py_Void();
28234 return resultobj;
28235 fail:
28236 return NULL;
28237 }
28238
28239
28240 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28241 PyObject *resultobj = 0;
28242 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28243 int arg2 ;
28244 void *argp1 = 0 ;
28245 int res1 = 0 ;
28246 int val2 ;
28247 int ecode2 = 0 ;
28248 PyObject * obj0 = 0 ;
28249 PyObject * obj1 = 0 ;
28250 char * kwnames[] = {
28251 (char *) "self",(char *) "id", NULL
28252 };
28253
28254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
28255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28256 if (!SWIG_IsOK(res1)) {
28257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28258 }
28259 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28260 ecode2 = SWIG_AsVal_int(obj1, &val2);
28261 if (!SWIG_IsOK(ecode2)) {
28262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
28263 }
28264 arg2 = static_cast< int >(val2);
28265 {
28266 PyThreadState* __tstate = wxPyBeginAllowThreads();
28267 (arg1)->ClearId(arg2);
28268 wxPyEndAllowThreads(__tstate);
28269 if (PyErr_Occurred()) SWIG_fail;
28270 }
28271 resultobj = SWIG_Py_Void();
28272 return resultobj;
28273 fail:
28274 return NULL;
28275 }
28276
28277
28278 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28279 PyObject *resultobj = 0;
28280 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28281 int arg2 ;
28282 void *argp1 = 0 ;
28283 int res1 = 0 ;
28284 int val2 ;
28285 int ecode2 = 0 ;
28286 PyObject * obj0 = 0 ;
28287 PyObject * obj1 = 0 ;
28288 char * kwnames[] = {
28289 (char *) "self",(char *) "id", NULL
28290 };
28291
28292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
28293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28294 if (!SWIG_IsOK(res1)) {
28295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28296 }
28297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28298 ecode2 = SWIG_AsVal_int(obj1, &val2);
28299 if (!SWIG_IsOK(ecode2)) {
28300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
28301 }
28302 arg2 = static_cast< int >(val2);
28303 {
28304 PyThreadState* __tstate = wxPyBeginAllowThreads();
28305 (arg1)->RemoveId(arg2);
28306 wxPyEndAllowThreads(__tstate);
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 resultobj = SWIG_Py_Void();
28310 return resultobj;
28311 fail:
28312 return NULL;
28313 }
28314
28315
28316 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28317 PyObject *resultobj = 0;
28318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28319 int arg2 ;
28320 int arg3 ;
28321 int arg4 ;
28322 void *argp1 = 0 ;
28323 int res1 = 0 ;
28324 int val2 ;
28325 int ecode2 = 0 ;
28326 int val3 ;
28327 int ecode3 = 0 ;
28328 int val4 ;
28329 int ecode4 = 0 ;
28330 PyObject * obj0 = 0 ;
28331 PyObject * obj1 = 0 ;
28332 PyObject * obj2 = 0 ;
28333 PyObject * obj3 = 0 ;
28334 char * kwnames[] = {
28335 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
28336 };
28337
28338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28340 if (!SWIG_IsOK(res1)) {
28341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28342 }
28343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28344 ecode2 = SWIG_AsVal_int(obj1, &val2);
28345 if (!SWIG_IsOK(ecode2)) {
28346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
28347 }
28348 arg2 = static_cast< int >(val2);
28349 ecode3 = SWIG_AsVal_int(obj2, &val3);
28350 if (!SWIG_IsOK(ecode3)) {
28351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
28352 }
28353 arg3 = static_cast< int >(val3);
28354 ecode4 = SWIG_AsVal_int(obj3, &val4);
28355 if (!SWIG_IsOK(ecode4)) {
28356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
28357 }
28358 arg4 = static_cast< int >(val4);
28359 {
28360 PyThreadState* __tstate = wxPyBeginAllowThreads();
28361 (arg1)->TranslateId(arg2,arg3,arg4);
28362 wxPyEndAllowThreads(__tstate);
28363 if (PyErr_Occurred()) SWIG_fail;
28364 }
28365 resultobj = SWIG_Py_Void();
28366 return resultobj;
28367 fail:
28368 return NULL;
28369 }
28370
28371
28372 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28373 PyObject *resultobj = 0;
28374 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28375 int arg2 ;
28376 wxDC *arg3 = (wxDC *) 0 ;
28377 void *argp1 = 0 ;
28378 int res1 = 0 ;
28379 int val2 ;
28380 int ecode2 = 0 ;
28381 void *argp3 = 0 ;
28382 int res3 = 0 ;
28383 PyObject * obj0 = 0 ;
28384 PyObject * obj1 = 0 ;
28385 PyObject * obj2 = 0 ;
28386 char * kwnames[] = {
28387 (char *) "self",(char *) "id",(char *) "dc", NULL
28388 };
28389
28390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28394 }
28395 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28396 ecode2 = SWIG_AsVal_int(obj1, &val2);
28397 if (!SWIG_IsOK(ecode2)) {
28398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
28399 }
28400 arg2 = static_cast< int >(val2);
28401 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
28402 if (!SWIG_IsOK(res3)) {
28403 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
28404 }
28405 arg3 = reinterpret_cast< wxDC * >(argp3);
28406 {
28407 PyThreadState* __tstate = wxPyBeginAllowThreads();
28408 (arg1)->DrawIdToDC(arg2,arg3);
28409 wxPyEndAllowThreads(__tstate);
28410 if (PyErr_Occurred()) SWIG_fail;
28411 }
28412 resultobj = SWIG_Py_Void();
28413 return resultobj;
28414 fail:
28415 return NULL;
28416 }
28417
28418
28419 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28420 PyObject *resultobj = 0;
28421 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28422 int arg2 ;
28423 wxRect *arg3 = 0 ;
28424 void *argp1 = 0 ;
28425 int res1 = 0 ;
28426 int val2 ;
28427 int ecode2 = 0 ;
28428 wxRect temp3 ;
28429 PyObject * obj0 = 0 ;
28430 PyObject * obj1 = 0 ;
28431 PyObject * obj2 = 0 ;
28432 char * kwnames[] = {
28433 (char *) "self",(char *) "id",(char *) "rect", NULL
28434 };
28435
28436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28438 if (!SWIG_IsOK(res1)) {
28439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28440 }
28441 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28442 ecode2 = SWIG_AsVal_int(obj1, &val2);
28443 if (!SWIG_IsOK(ecode2)) {
28444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
28445 }
28446 arg2 = static_cast< int >(val2);
28447 {
28448 arg3 = &temp3;
28449 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28450 }
28451 {
28452 PyThreadState* __tstate = wxPyBeginAllowThreads();
28453 (arg1)->SetIdBounds(arg2,*arg3);
28454 wxPyEndAllowThreads(__tstate);
28455 if (PyErr_Occurred()) SWIG_fail;
28456 }
28457 resultobj = SWIG_Py_Void();
28458 return resultobj;
28459 fail:
28460 return NULL;
28461 }
28462
28463
28464 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28465 PyObject *resultobj = 0;
28466 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28467 int arg2 ;
28468 wxRect result;
28469 void *argp1 = 0 ;
28470 int res1 = 0 ;
28471 int val2 ;
28472 int ecode2 = 0 ;
28473 PyObject * obj0 = 0 ;
28474 PyObject * obj1 = 0 ;
28475 char * kwnames[] = {
28476 (char *) "self",(char *) "id", NULL
28477 };
28478
28479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
28480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28481 if (!SWIG_IsOK(res1)) {
28482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28483 }
28484 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28485 ecode2 = SWIG_AsVal_int(obj1, &val2);
28486 if (!SWIG_IsOK(ecode2)) {
28487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
28488 }
28489 arg2 = static_cast< int >(val2);
28490 {
28491 PyThreadState* __tstate = wxPyBeginAllowThreads();
28492 result = wxPseudoDC_GetIdBounds(arg1,arg2);
28493 wxPyEndAllowThreads(__tstate);
28494 if (PyErr_Occurred()) SWIG_fail;
28495 }
28496 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28497 return resultobj;
28498 fail:
28499 return NULL;
28500 }
28501
28502
28503 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28504 PyObject *resultobj = 0;
28505 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28506 wxDC *arg2 = (wxDC *) 0 ;
28507 wxRect *arg3 = 0 ;
28508 void *argp1 = 0 ;
28509 int res1 = 0 ;
28510 void *argp2 = 0 ;
28511 int res2 = 0 ;
28512 wxRect temp3 ;
28513 PyObject * obj0 = 0 ;
28514 PyObject * obj1 = 0 ;
28515 PyObject * obj2 = 0 ;
28516 char * kwnames[] = {
28517 (char *) "self",(char *) "dc",(char *) "rect", NULL
28518 };
28519
28520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28522 if (!SWIG_IsOK(res1)) {
28523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28524 }
28525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28526 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28527 if (!SWIG_IsOK(res2)) {
28528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
28529 }
28530 arg2 = reinterpret_cast< wxDC * >(argp2);
28531 {
28532 arg3 = &temp3;
28533 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28534 }
28535 {
28536 PyThreadState* __tstate = wxPyBeginAllowThreads();
28537 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
28538 wxPyEndAllowThreads(__tstate);
28539 if (PyErr_Occurred()) SWIG_fail;
28540 }
28541 resultobj = SWIG_Py_Void();
28542 return resultobj;
28543 fail:
28544 return NULL;
28545 }
28546
28547
28548 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28549 PyObject *resultobj = 0;
28550 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28551 wxDC *arg2 = (wxDC *) 0 ;
28552 wxRegion *arg3 = 0 ;
28553 void *argp1 = 0 ;
28554 int res1 = 0 ;
28555 void *argp2 = 0 ;
28556 int res2 = 0 ;
28557 void *argp3 = 0 ;
28558 int res3 = 0 ;
28559 PyObject * obj0 = 0 ;
28560 PyObject * obj1 = 0 ;
28561 PyObject * obj2 = 0 ;
28562 char * kwnames[] = {
28563 (char *) "self",(char *) "dc",(char *) "region", NULL
28564 };
28565
28566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28568 if (!SWIG_IsOK(res1)) {
28569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28570 }
28571 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28573 if (!SWIG_IsOK(res2)) {
28574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
28575 }
28576 arg2 = reinterpret_cast< wxDC * >(argp2);
28577 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
28578 if (!SWIG_IsOK(res3)) {
28579 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28580 }
28581 if (!argp3) {
28582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28583 }
28584 arg3 = reinterpret_cast< wxRegion * >(argp3);
28585 {
28586 PyThreadState* __tstate = wxPyBeginAllowThreads();
28587 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 resultobj = SWIG_Py_Void();
28592 return resultobj;
28593 fail:
28594 return NULL;
28595 }
28596
28597
28598 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28599 PyObject *resultobj = 0;
28600 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28601 wxDC *arg2 = (wxDC *) 0 ;
28602 void *argp1 = 0 ;
28603 int res1 = 0 ;
28604 void *argp2 = 0 ;
28605 int res2 = 0 ;
28606 PyObject * obj0 = 0 ;
28607 PyObject * obj1 = 0 ;
28608 char * kwnames[] = {
28609 (char *) "self",(char *) "dc", NULL
28610 };
28611
28612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
28613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28614 if (!SWIG_IsOK(res1)) {
28615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28616 }
28617 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28619 if (!SWIG_IsOK(res2)) {
28620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
28621 }
28622 arg2 = reinterpret_cast< wxDC * >(argp2);
28623 {
28624 PyThreadState* __tstate = wxPyBeginAllowThreads();
28625 (arg1)->DrawToDC(arg2);
28626 wxPyEndAllowThreads(__tstate);
28627 if (PyErr_Occurred()) SWIG_fail;
28628 }
28629 resultobj = SWIG_Py_Void();
28630 return resultobj;
28631 fail:
28632 return NULL;
28633 }
28634
28635
28636 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28637 PyObject *resultobj = 0;
28638 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28639 int arg2 ;
28640 int arg3 ;
28641 wxColour *arg4 = 0 ;
28642 int arg5 = (int) wxFLOOD_SURFACE ;
28643 void *argp1 = 0 ;
28644 int res1 = 0 ;
28645 int val2 ;
28646 int ecode2 = 0 ;
28647 int val3 ;
28648 int ecode3 = 0 ;
28649 wxColour temp4 ;
28650 int val5 ;
28651 int ecode5 = 0 ;
28652 PyObject * obj0 = 0 ;
28653 PyObject * obj1 = 0 ;
28654 PyObject * obj2 = 0 ;
28655 PyObject * obj3 = 0 ;
28656 PyObject * obj4 = 0 ;
28657 char * kwnames[] = {
28658 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
28659 };
28660
28661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28663 if (!SWIG_IsOK(res1)) {
28664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28665 }
28666 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28667 ecode2 = SWIG_AsVal_int(obj1, &val2);
28668 if (!SWIG_IsOK(ecode2)) {
28669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
28670 }
28671 arg2 = static_cast< int >(val2);
28672 ecode3 = SWIG_AsVal_int(obj2, &val3);
28673 if (!SWIG_IsOK(ecode3)) {
28674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28675 }
28676 arg3 = static_cast< int >(val3);
28677 {
28678 arg4 = &temp4;
28679 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28680 }
28681 if (obj4) {
28682 ecode5 = SWIG_AsVal_int(obj4, &val5);
28683 if (!SWIG_IsOK(ecode5)) {
28684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28685 }
28686 arg5 = static_cast< int >(val5);
28687 }
28688 {
28689 PyThreadState* __tstate = wxPyBeginAllowThreads();
28690 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28691 wxPyEndAllowThreads(__tstate);
28692 if (PyErr_Occurred()) SWIG_fail;
28693 }
28694 resultobj = SWIG_Py_Void();
28695 return resultobj;
28696 fail:
28697 return NULL;
28698 }
28699
28700
28701 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28702 PyObject *resultobj = 0;
28703 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28704 wxPoint *arg2 = 0 ;
28705 wxColour *arg3 = 0 ;
28706 int arg4 = (int) wxFLOOD_SURFACE ;
28707 void *argp1 = 0 ;
28708 int res1 = 0 ;
28709 wxPoint temp2 ;
28710 wxColour temp3 ;
28711 int val4 ;
28712 int ecode4 = 0 ;
28713 PyObject * obj0 = 0 ;
28714 PyObject * obj1 = 0 ;
28715 PyObject * obj2 = 0 ;
28716 PyObject * obj3 = 0 ;
28717 char * kwnames[] = {
28718 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
28719 };
28720
28721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28723 if (!SWIG_IsOK(res1)) {
28724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28725 }
28726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28727 {
28728 arg2 = &temp2;
28729 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28730 }
28731 {
28732 arg3 = &temp3;
28733 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28734 }
28735 if (obj3) {
28736 ecode4 = SWIG_AsVal_int(obj3, &val4);
28737 if (!SWIG_IsOK(ecode4)) {
28738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
28739 }
28740 arg4 = static_cast< int >(val4);
28741 }
28742 {
28743 PyThreadState* __tstate = wxPyBeginAllowThreads();
28744 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
28745 wxPyEndAllowThreads(__tstate);
28746 if (PyErr_Occurred()) SWIG_fail;
28747 }
28748 resultobj = SWIG_Py_Void();
28749 return resultobj;
28750 fail:
28751 return NULL;
28752 }
28753
28754
28755 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28756 PyObject *resultobj = 0;
28757 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28758 int arg2 ;
28759 int arg3 ;
28760 int arg4 ;
28761 int arg5 ;
28762 void *argp1 = 0 ;
28763 int res1 = 0 ;
28764 int val2 ;
28765 int ecode2 = 0 ;
28766 int val3 ;
28767 int ecode3 = 0 ;
28768 int val4 ;
28769 int ecode4 = 0 ;
28770 int val5 ;
28771 int ecode5 = 0 ;
28772 PyObject * obj0 = 0 ;
28773 PyObject * obj1 = 0 ;
28774 PyObject * obj2 = 0 ;
28775 PyObject * obj3 = 0 ;
28776 PyObject * obj4 = 0 ;
28777 char * kwnames[] = {
28778 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
28779 };
28780
28781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28783 if (!SWIG_IsOK(res1)) {
28784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28785 }
28786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28787 ecode2 = SWIG_AsVal_int(obj1, &val2);
28788 if (!SWIG_IsOK(ecode2)) {
28789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
28790 }
28791 arg2 = static_cast< int >(val2);
28792 ecode3 = SWIG_AsVal_int(obj2, &val3);
28793 if (!SWIG_IsOK(ecode3)) {
28794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
28795 }
28796 arg3 = static_cast< int >(val3);
28797 ecode4 = SWIG_AsVal_int(obj3, &val4);
28798 if (!SWIG_IsOK(ecode4)) {
28799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
28800 }
28801 arg4 = static_cast< int >(val4);
28802 ecode5 = SWIG_AsVal_int(obj4, &val5);
28803 if (!SWIG_IsOK(ecode5)) {
28804 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
28805 }
28806 arg5 = static_cast< int >(val5);
28807 {
28808 PyThreadState* __tstate = wxPyBeginAllowThreads();
28809 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
28810 wxPyEndAllowThreads(__tstate);
28811 if (PyErr_Occurred()) SWIG_fail;
28812 }
28813 resultobj = SWIG_Py_Void();
28814 return resultobj;
28815 fail:
28816 return NULL;
28817 }
28818
28819
28820 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28821 PyObject *resultobj = 0;
28822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28823 wxPoint *arg2 = 0 ;
28824 wxPoint *arg3 = 0 ;
28825 void *argp1 = 0 ;
28826 int res1 = 0 ;
28827 wxPoint temp2 ;
28828 wxPoint temp3 ;
28829 PyObject * obj0 = 0 ;
28830 PyObject * obj1 = 0 ;
28831 PyObject * obj2 = 0 ;
28832 char * kwnames[] = {
28833 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
28834 };
28835
28836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28838 if (!SWIG_IsOK(res1)) {
28839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28840 }
28841 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28842 {
28843 arg2 = &temp2;
28844 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28845 }
28846 {
28847 arg3 = &temp3;
28848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28849 }
28850 {
28851 PyThreadState* __tstate = wxPyBeginAllowThreads();
28852 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
28853 wxPyEndAllowThreads(__tstate);
28854 if (PyErr_Occurred()) SWIG_fail;
28855 }
28856 resultobj = SWIG_Py_Void();
28857 return resultobj;
28858 fail:
28859 return NULL;
28860 }
28861
28862
28863 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28864 PyObject *resultobj = 0;
28865 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28866 int arg2 ;
28867 int arg3 ;
28868 void *argp1 = 0 ;
28869 int res1 = 0 ;
28870 int val2 ;
28871 int ecode2 = 0 ;
28872 int val3 ;
28873 int ecode3 = 0 ;
28874 PyObject * obj0 = 0 ;
28875 PyObject * obj1 = 0 ;
28876 PyObject * obj2 = 0 ;
28877 char * kwnames[] = {
28878 (char *) "self",(char *) "x",(char *) "y", NULL
28879 };
28880
28881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28883 if (!SWIG_IsOK(res1)) {
28884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28885 }
28886 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28887 ecode2 = SWIG_AsVal_int(obj1, &val2);
28888 if (!SWIG_IsOK(ecode2)) {
28889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
28890 }
28891 arg2 = static_cast< int >(val2);
28892 ecode3 = SWIG_AsVal_int(obj2, &val3);
28893 if (!SWIG_IsOK(ecode3)) {
28894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
28895 }
28896 arg3 = static_cast< int >(val3);
28897 {
28898 PyThreadState* __tstate = wxPyBeginAllowThreads();
28899 (arg1)->CrossHair(arg2,arg3);
28900 wxPyEndAllowThreads(__tstate);
28901 if (PyErr_Occurred()) SWIG_fail;
28902 }
28903 resultobj = SWIG_Py_Void();
28904 return resultobj;
28905 fail:
28906 return NULL;
28907 }
28908
28909
28910 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28911 PyObject *resultobj = 0;
28912 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28913 wxPoint *arg2 = 0 ;
28914 void *argp1 = 0 ;
28915 int res1 = 0 ;
28916 wxPoint temp2 ;
28917 PyObject * obj0 = 0 ;
28918 PyObject * obj1 = 0 ;
28919 char * kwnames[] = {
28920 (char *) "self",(char *) "pt", NULL
28921 };
28922
28923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28925 if (!SWIG_IsOK(res1)) {
28926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28927 }
28928 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28929 {
28930 arg2 = &temp2;
28931 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28932 }
28933 {
28934 PyThreadState* __tstate = wxPyBeginAllowThreads();
28935 (arg1)->CrossHair((wxPoint const &)*arg2);
28936 wxPyEndAllowThreads(__tstate);
28937 if (PyErr_Occurred()) SWIG_fail;
28938 }
28939 resultobj = SWIG_Py_Void();
28940 return resultobj;
28941 fail:
28942 return NULL;
28943 }
28944
28945
28946 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28947 PyObject *resultobj = 0;
28948 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28949 int arg2 ;
28950 int arg3 ;
28951 int arg4 ;
28952 int arg5 ;
28953 int arg6 ;
28954 int arg7 ;
28955 void *argp1 = 0 ;
28956 int res1 = 0 ;
28957 int val2 ;
28958 int ecode2 = 0 ;
28959 int val3 ;
28960 int ecode3 = 0 ;
28961 int val4 ;
28962 int ecode4 = 0 ;
28963 int val5 ;
28964 int ecode5 = 0 ;
28965 int val6 ;
28966 int ecode6 = 0 ;
28967 int val7 ;
28968 int ecode7 = 0 ;
28969 PyObject * obj0 = 0 ;
28970 PyObject * obj1 = 0 ;
28971 PyObject * obj2 = 0 ;
28972 PyObject * obj3 = 0 ;
28973 PyObject * obj4 = 0 ;
28974 PyObject * obj5 = 0 ;
28975 PyObject * obj6 = 0 ;
28976 char * kwnames[] = {
28977 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
28978 };
28979
28980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28982 if (!SWIG_IsOK(res1)) {
28983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28984 }
28985 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28986 ecode2 = SWIG_AsVal_int(obj1, &val2);
28987 if (!SWIG_IsOK(ecode2)) {
28988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
28989 }
28990 arg2 = static_cast< int >(val2);
28991 ecode3 = SWIG_AsVal_int(obj2, &val3);
28992 if (!SWIG_IsOK(ecode3)) {
28993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
28994 }
28995 arg3 = static_cast< int >(val3);
28996 ecode4 = SWIG_AsVal_int(obj3, &val4);
28997 if (!SWIG_IsOK(ecode4)) {
28998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
28999 }
29000 arg4 = static_cast< int >(val4);
29001 ecode5 = SWIG_AsVal_int(obj4, &val5);
29002 if (!SWIG_IsOK(ecode5)) {
29003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
29004 }
29005 arg5 = static_cast< int >(val5);
29006 ecode6 = SWIG_AsVal_int(obj5, &val6);
29007 if (!SWIG_IsOK(ecode6)) {
29008 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
29009 }
29010 arg6 = static_cast< int >(val6);
29011 ecode7 = SWIG_AsVal_int(obj6, &val7);
29012 if (!SWIG_IsOK(ecode7)) {
29013 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
29014 }
29015 arg7 = static_cast< int >(val7);
29016 {
29017 PyThreadState* __tstate = wxPyBeginAllowThreads();
29018 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
29019 wxPyEndAllowThreads(__tstate);
29020 if (PyErr_Occurred()) SWIG_fail;
29021 }
29022 resultobj = SWIG_Py_Void();
29023 return resultobj;
29024 fail:
29025 return NULL;
29026 }
29027
29028
29029 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29030 PyObject *resultobj = 0;
29031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29032 wxPoint *arg2 = 0 ;
29033 wxPoint *arg3 = 0 ;
29034 wxPoint *arg4 = 0 ;
29035 void *argp1 = 0 ;
29036 int res1 = 0 ;
29037 wxPoint temp2 ;
29038 wxPoint temp3 ;
29039 wxPoint temp4 ;
29040 PyObject * obj0 = 0 ;
29041 PyObject * obj1 = 0 ;
29042 PyObject * obj2 = 0 ;
29043 PyObject * obj3 = 0 ;
29044 char * kwnames[] = {
29045 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
29046 };
29047
29048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29050 if (!SWIG_IsOK(res1)) {
29051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29052 }
29053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29054 {
29055 arg2 = &temp2;
29056 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29057 }
29058 {
29059 arg3 = &temp3;
29060 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29061 }
29062 {
29063 arg4 = &temp4;
29064 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29065 }
29066 {
29067 PyThreadState* __tstate = wxPyBeginAllowThreads();
29068 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
29069 wxPyEndAllowThreads(__tstate);
29070 if (PyErr_Occurred()) SWIG_fail;
29071 }
29072 resultobj = SWIG_Py_Void();
29073 return resultobj;
29074 fail:
29075 return NULL;
29076 }
29077
29078
29079 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29080 PyObject *resultobj = 0;
29081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29082 int arg2 ;
29083 int arg3 ;
29084 int arg4 ;
29085 int arg5 ;
29086 void *argp1 = 0 ;
29087 int res1 = 0 ;
29088 int val2 ;
29089 int ecode2 = 0 ;
29090 int val3 ;
29091 int ecode3 = 0 ;
29092 int val4 ;
29093 int ecode4 = 0 ;
29094 int val5 ;
29095 int ecode5 = 0 ;
29096 PyObject * obj0 = 0 ;
29097 PyObject * obj1 = 0 ;
29098 PyObject * obj2 = 0 ;
29099 PyObject * obj3 = 0 ;
29100 PyObject * obj4 = 0 ;
29101 char * kwnames[] = {
29102 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29103 };
29104
29105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29107 if (!SWIG_IsOK(res1)) {
29108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29109 }
29110 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29111 ecode2 = SWIG_AsVal_int(obj1, &val2);
29112 if (!SWIG_IsOK(ecode2)) {
29113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
29114 }
29115 arg2 = static_cast< int >(val2);
29116 ecode3 = SWIG_AsVal_int(obj2, &val3);
29117 if (!SWIG_IsOK(ecode3)) {
29118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
29119 }
29120 arg3 = static_cast< int >(val3);
29121 ecode4 = SWIG_AsVal_int(obj3, &val4);
29122 if (!SWIG_IsOK(ecode4)) {
29123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
29124 }
29125 arg4 = static_cast< int >(val4);
29126 ecode5 = SWIG_AsVal_int(obj4, &val5);
29127 if (!SWIG_IsOK(ecode5)) {
29128 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
29129 }
29130 arg5 = static_cast< int >(val5);
29131 {
29132 PyThreadState* __tstate = wxPyBeginAllowThreads();
29133 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
29134 wxPyEndAllowThreads(__tstate);
29135 if (PyErr_Occurred()) SWIG_fail;
29136 }
29137 resultobj = SWIG_Py_Void();
29138 return resultobj;
29139 fail:
29140 return NULL;
29141 }
29142
29143
29144 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29145 PyObject *resultobj = 0;
29146 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29147 wxRect *arg2 = 0 ;
29148 void *argp1 = 0 ;
29149 int res1 = 0 ;
29150 wxRect temp2 ;
29151 PyObject * obj0 = 0 ;
29152 PyObject * obj1 = 0 ;
29153 char * kwnames[] = {
29154 (char *) "self",(char *) "rect", NULL
29155 };
29156
29157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
29158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29159 if (!SWIG_IsOK(res1)) {
29160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29161 }
29162 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29163 {
29164 arg2 = &temp2;
29165 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29166 }
29167 {
29168 PyThreadState* __tstate = wxPyBeginAllowThreads();
29169 (arg1)->DrawCheckMark((wxRect const &)*arg2);
29170 wxPyEndAllowThreads(__tstate);
29171 if (PyErr_Occurred()) SWIG_fail;
29172 }
29173 resultobj = SWIG_Py_Void();
29174 return resultobj;
29175 fail:
29176 return NULL;
29177 }
29178
29179
29180 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29181 PyObject *resultobj = 0;
29182 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29183 int arg2 ;
29184 int arg3 ;
29185 int arg4 ;
29186 int arg5 ;
29187 double arg6 ;
29188 double arg7 ;
29189 void *argp1 = 0 ;
29190 int res1 = 0 ;
29191 int val2 ;
29192 int ecode2 = 0 ;
29193 int val3 ;
29194 int ecode3 = 0 ;
29195 int val4 ;
29196 int ecode4 = 0 ;
29197 int val5 ;
29198 int ecode5 = 0 ;
29199 double val6 ;
29200 int ecode6 = 0 ;
29201 double val7 ;
29202 int ecode7 = 0 ;
29203 PyObject * obj0 = 0 ;
29204 PyObject * obj1 = 0 ;
29205 PyObject * obj2 = 0 ;
29206 PyObject * obj3 = 0 ;
29207 PyObject * obj4 = 0 ;
29208 PyObject * obj5 = 0 ;
29209 PyObject * obj6 = 0 ;
29210 char * kwnames[] = {
29211 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
29212 };
29213
29214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29216 if (!SWIG_IsOK(res1)) {
29217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29218 }
29219 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29220 ecode2 = SWIG_AsVal_int(obj1, &val2);
29221 if (!SWIG_IsOK(ecode2)) {
29222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
29223 }
29224 arg2 = static_cast< int >(val2);
29225 ecode3 = SWIG_AsVal_int(obj2, &val3);
29226 if (!SWIG_IsOK(ecode3)) {
29227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
29228 }
29229 arg3 = static_cast< int >(val3);
29230 ecode4 = SWIG_AsVal_int(obj3, &val4);
29231 if (!SWIG_IsOK(ecode4)) {
29232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
29233 }
29234 arg4 = static_cast< int >(val4);
29235 ecode5 = SWIG_AsVal_int(obj4, &val5);
29236 if (!SWIG_IsOK(ecode5)) {
29237 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
29238 }
29239 arg5 = static_cast< int >(val5);
29240 ecode6 = SWIG_AsVal_double(obj5, &val6);
29241 if (!SWIG_IsOK(ecode6)) {
29242 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
29243 }
29244 arg6 = static_cast< double >(val6);
29245 ecode7 = SWIG_AsVal_double(obj6, &val7);
29246 if (!SWIG_IsOK(ecode7)) {
29247 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
29248 }
29249 arg7 = static_cast< double >(val7);
29250 {
29251 PyThreadState* __tstate = wxPyBeginAllowThreads();
29252 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
29253 wxPyEndAllowThreads(__tstate);
29254 if (PyErr_Occurred()) SWIG_fail;
29255 }
29256 resultobj = SWIG_Py_Void();
29257 return resultobj;
29258 fail:
29259 return NULL;
29260 }
29261
29262
29263 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29264 PyObject *resultobj = 0;
29265 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29266 wxPoint *arg2 = 0 ;
29267 wxSize *arg3 = 0 ;
29268 double arg4 ;
29269 double arg5 ;
29270 void *argp1 = 0 ;
29271 int res1 = 0 ;
29272 wxPoint temp2 ;
29273 wxSize temp3 ;
29274 double val4 ;
29275 int ecode4 = 0 ;
29276 double val5 ;
29277 int ecode5 = 0 ;
29278 PyObject * obj0 = 0 ;
29279 PyObject * obj1 = 0 ;
29280 PyObject * obj2 = 0 ;
29281 PyObject * obj3 = 0 ;
29282 PyObject * obj4 = 0 ;
29283 char * kwnames[] = {
29284 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
29285 };
29286
29287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29291 }
29292 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29293 {
29294 arg2 = &temp2;
29295 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29296 }
29297 {
29298 arg3 = &temp3;
29299 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29300 }
29301 ecode4 = SWIG_AsVal_double(obj3, &val4);
29302 if (!SWIG_IsOK(ecode4)) {
29303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
29304 }
29305 arg4 = static_cast< double >(val4);
29306 ecode5 = SWIG_AsVal_double(obj4, &val5);
29307 if (!SWIG_IsOK(ecode5)) {
29308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
29309 }
29310 arg5 = static_cast< double >(val5);
29311 {
29312 PyThreadState* __tstate = wxPyBeginAllowThreads();
29313 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
29314 wxPyEndAllowThreads(__tstate);
29315 if (PyErr_Occurred()) SWIG_fail;
29316 }
29317 resultobj = SWIG_Py_Void();
29318 return resultobj;
29319 fail:
29320 return NULL;
29321 }
29322
29323
29324 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29325 PyObject *resultobj = 0;
29326 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29327 int arg2 ;
29328 int arg3 ;
29329 void *argp1 = 0 ;
29330 int res1 = 0 ;
29331 int val2 ;
29332 int ecode2 = 0 ;
29333 int val3 ;
29334 int ecode3 = 0 ;
29335 PyObject * obj0 = 0 ;
29336 PyObject * obj1 = 0 ;
29337 PyObject * obj2 = 0 ;
29338 char * kwnames[] = {
29339 (char *) "self",(char *) "x",(char *) "y", NULL
29340 };
29341
29342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29344 if (!SWIG_IsOK(res1)) {
29345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29346 }
29347 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29348 ecode2 = SWIG_AsVal_int(obj1, &val2);
29349 if (!SWIG_IsOK(ecode2)) {
29350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
29351 }
29352 arg2 = static_cast< int >(val2);
29353 ecode3 = SWIG_AsVal_int(obj2, &val3);
29354 if (!SWIG_IsOK(ecode3)) {
29355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
29356 }
29357 arg3 = static_cast< int >(val3);
29358 {
29359 PyThreadState* __tstate = wxPyBeginAllowThreads();
29360 (arg1)->DrawPoint(arg2,arg3);
29361 wxPyEndAllowThreads(__tstate);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 resultobj = SWIG_Py_Void();
29365 return resultobj;
29366 fail:
29367 return NULL;
29368 }
29369
29370
29371 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29372 PyObject *resultobj = 0;
29373 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29374 wxPoint *arg2 = 0 ;
29375 void *argp1 = 0 ;
29376 int res1 = 0 ;
29377 wxPoint temp2 ;
29378 PyObject * obj0 = 0 ;
29379 PyObject * obj1 = 0 ;
29380 char * kwnames[] = {
29381 (char *) "self",(char *) "pt", NULL
29382 };
29383
29384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29386 if (!SWIG_IsOK(res1)) {
29387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29388 }
29389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29390 {
29391 arg2 = &temp2;
29392 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29393 }
29394 {
29395 PyThreadState* __tstate = wxPyBeginAllowThreads();
29396 (arg1)->DrawPoint((wxPoint const &)*arg2);
29397 wxPyEndAllowThreads(__tstate);
29398 if (PyErr_Occurred()) SWIG_fail;
29399 }
29400 resultobj = SWIG_Py_Void();
29401 return resultobj;
29402 fail:
29403 return NULL;
29404 }
29405
29406
29407 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29408 PyObject *resultobj = 0;
29409 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29410 int arg2 ;
29411 int arg3 ;
29412 int arg4 ;
29413 int arg5 ;
29414 void *argp1 = 0 ;
29415 int res1 = 0 ;
29416 int val2 ;
29417 int ecode2 = 0 ;
29418 int val3 ;
29419 int ecode3 = 0 ;
29420 int val4 ;
29421 int ecode4 = 0 ;
29422 int val5 ;
29423 int ecode5 = 0 ;
29424 PyObject * obj0 = 0 ;
29425 PyObject * obj1 = 0 ;
29426 PyObject * obj2 = 0 ;
29427 PyObject * obj3 = 0 ;
29428 PyObject * obj4 = 0 ;
29429 char * kwnames[] = {
29430 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29431 };
29432
29433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29435 if (!SWIG_IsOK(res1)) {
29436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29437 }
29438 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29439 ecode2 = SWIG_AsVal_int(obj1, &val2);
29440 if (!SWIG_IsOK(ecode2)) {
29441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
29442 }
29443 arg2 = static_cast< int >(val2);
29444 ecode3 = SWIG_AsVal_int(obj2, &val3);
29445 if (!SWIG_IsOK(ecode3)) {
29446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
29447 }
29448 arg3 = static_cast< int >(val3);
29449 ecode4 = SWIG_AsVal_int(obj3, &val4);
29450 if (!SWIG_IsOK(ecode4)) {
29451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
29452 }
29453 arg4 = static_cast< int >(val4);
29454 ecode5 = SWIG_AsVal_int(obj4, &val5);
29455 if (!SWIG_IsOK(ecode5)) {
29456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
29457 }
29458 arg5 = static_cast< int >(val5);
29459 {
29460 PyThreadState* __tstate = wxPyBeginAllowThreads();
29461 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29462 wxPyEndAllowThreads(__tstate);
29463 if (PyErr_Occurred()) SWIG_fail;
29464 }
29465 resultobj = SWIG_Py_Void();
29466 return resultobj;
29467 fail:
29468 return NULL;
29469 }
29470
29471
29472 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29473 PyObject *resultobj = 0;
29474 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29475 wxRect *arg2 = 0 ;
29476 void *argp1 = 0 ;
29477 int res1 = 0 ;
29478 wxRect temp2 ;
29479 PyObject * obj0 = 0 ;
29480 PyObject * obj1 = 0 ;
29481 char * kwnames[] = {
29482 (char *) "self",(char *) "rect", NULL
29483 };
29484
29485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
29486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29487 if (!SWIG_IsOK(res1)) {
29488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29489 }
29490 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29491 {
29492 arg2 = &temp2;
29493 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29494 }
29495 {
29496 PyThreadState* __tstate = wxPyBeginAllowThreads();
29497 (arg1)->DrawRectangle((wxRect const &)*arg2);
29498 wxPyEndAllowThreads(__tstate);
29499 if (PyErr_Occurred()) SWIG_fail;
29500 }
29501 resultobj = SWIG_Py_Void();
29502 return resultobj;
29503 fail:
29504 return NULL;
29505 }
29506
29507
29508 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29509 PyObject *resultobj = 0;
29510 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29511 wxPoint *arg2 = 0 ;
29512 wxSize *arg3 = 0 ;
29513 void *argp1 = 0 ;
29514 int res1 = 0 ;
29515 wxPoint temp2 ;
29516 wxSize temp3 ;
29517 PyObject * obj0 = 0 ;
29518 PyObject * obj1 = 0 ;
29519 PyObject * obj2 = 0 ;
29520 char * kwnames[] = {
29521 (char *) "self",(char *) "pt",(char *) "sz", NULL
29522 };
29523
29524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29526 if (!SWIG_IsOK(res1)) {
29527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29528 }
29529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29530 {
29531 arg2 = &temp2;
29532 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29533 }
29534 {
29535 arg3 = &temp3;
29536 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29537 }
29538 {
29539 PyThreadState* __tstate = wxPyBeginAllowThreads();
29540 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
29541 wxPyEndAllowThreads(__tstate);
29542 if (PyErr_Occurred()) SWIG_fail;
29543 }
29544 resultobj = SWIG_Py_Void();
29545 return resultobj;
29546 fail:
29547 return NULL;
29548 }
29549
29550
29551 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29552 PyObject *resultobj = 0;
29553 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29554 int arg2 ;
29555 int arg3 ;
29556 int arg4 ;
29557 int arg5 ;
29558 double arg6 ;
29559 void *argp1 = 0 ;
29560 int res1 = 0 ;
29561 int val2 ;
29562 int ecode2 = 0 ;
29563 int val3 ;
29564 int ecode3 = 0 ;
29565 int val4 ;
29566 int ecode4 = 0 ;
29567 int val5 ;
29568 int ecode5 = 0 ;
29569 double val6 ;
29570 int ecode6 = 0 ;
29571 PyObject * obj0 = 0 ;
29572 PyObject * obj1 = 0 ;
29573 PyObject * obj2 = 0 ;
29574 PyObject * obj3 = 0 ;
29575 PyObject * obj4 = 0 ;
29576 PyObject * obj5 = 0 ;
29577 char * kwnames[] = {
29578 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
29579 };
29580
29581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29583 if (!SWIG_IsOK(res1)) {
29584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29585 }
29586 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29587 ecode2 = SWIG_AsVal_int(obj1, &val2);
29588 if (!SWIG_IsOK(ecode2)) {
29589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
29590 }
29591 arg2 = static_cast< int >(val2);
29592 ecode3 = SWIG_AsVal_int(obj2, &val3);
29593 if (!SWIG_IsOK(ecode3)) {
29594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
29595 }
29596 arg3 = static_cast< int >(val3);
29597 ecode4 = SWIG_AsVal_int(obj3, &val4);
29598 if (!SWIG_IsOK(ecode4)) {
29599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
29600 }
29601 arg4 = static_cast< int >(val4);
29602 ecode5 = SWIG_AsVal_int(obj4, &val5);
29603 if (!SWIG_IsOK(ecode5)) {
29604 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
29605 }
29606 arg5 = static_cast< int >(val5);
29607 ecode6 = SWIG_AsVal_double(obj5, &val6);
29608 if (!SWIG_IsOK(ecode6)) {
29609 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
29610 }
29611 arg6 = static_cast< double >(val6);
29612 {
29613 PyThreadState* __tstate = wxPyBeginAllowThreads();
29614 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29615 wxPyEndAllowThreads(__tstate);
29616 if (PyErr_Occurred()) SWIG_fail;
29617 }
29618 resultobj = SWIG_Py_Void();
29619 return resultobj;
29620 fail:
29621 return NULL;
29622 }
29623
29624
29625 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29626 PyObject *resultobj = 0;
29627 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29628 wxRect *arg2 = 0 ;
29629 double arg3 ;
29630 void *argp1 = 0 ;
29631 int res1 = 0 ;
29632 wxRect temp2 ;
29633 double val3 ;
29634 int ecode3 = 0 ;
29635 PyObject * obj0 = 0 ;
29636 PyObject * obj1 = 0 ;
29637 PyObject * obj2 = 0 ;
29638 char * kwnames[] = {
29639 (char *) "self",(char *) "r",(char *) "radius", NULL
29640 };
29641
29642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29644 if (!SWIG_IsOK(res1)) {
29645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29646 }
29647 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29648 {
29649 arg2 = &temp2;
29650 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29651 }
29652 ecode3 = SWIG_AsVal_double(obj2, &val3);
29653 if (!SWIG_IsOK(ecode3)) {
29654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
29655 }
29656 arg3 = static_cast< double >(val3);
29657 {
29658 PyThreadState* __tstate = wxPyBeginAllowThreads();
29659 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
29660 wxPyEndAllowThreads(__tstate);
29661 if (PyErr_Occurred()) SWIG_fail;
29662 }
29663 resultobj = SWIG_Py_Void();
29664 return resultobj;
29665 fail:
29666 return NULL;
29667 }
29668
29669
29670 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29671 PyObject *resultobj = 0;
29672 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29673 wxPoint *arg2 = 0 ;
29674 wxSize *arg3 = 0 ;
29675 double arg4 ;
29676 void *argp1 = 0 ;
29677 int res1 = 0 ;
29678 wxPoint temp2 ;
29679 wxSize temp3 ;
29680 double val4 ;
29681 int ecode4 = 0 ;
29682 PyObject * obj0 = 0 ;
29683 PyObject * obj1 = 0 ;
29684 PyObject * obj2 = 0 ;
29685 PyObject * obj3 = 0 ;
29686 char * kwnames[] = {
29687 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29688 };
29689
29690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29692 if (!SWIG_IsOK(res1)) {
29693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29694 }
29695 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29696 {
29697 arg2 = &temp2;
29698 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29699 }
29700 {
29701 arg3 = &temp3;
29702 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29703 }
29704 ecode4 = SWIG_AsVal_double(obj3, &val4);
29705 if (!SWIG_IsOK(ecode4)) {
29706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29707 }
29708 arg4 = static_cast< double >(val4);
29709 {
29710 PyThreadState* __tstate = wxPyBeginAllowThreads();
29711 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29712 wxPyEndAllowThreads(__tstate);
29713 if (PyErr_Occurred()) SWIG_fail;
29714 }
29715 resultobj = SWIG_Py_Void();
29716 return resultobj;
29717 fail:
29718 return NULL;
29719 }
29720
29721
29722 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29723 PyObject *resultobj = 0;
29724 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29725 int arg2 ;
29726 int arg3 ;
29727 int arg4 ;
29728 void *argp1 = 0 ;
29729 int res1 = 0 ;
29730 int val2 ;
29731 int ecode2 = 0 ;
29732 int val3 ;
29733 int ecode3 = 0 ;
29734 int val4 ;
29735 int ecode4 = 0 ;
29736 PyObject * obj0 = 0 ;
29737 PyObject * obj1 = 0 ;
29738 PyObject * obj2 = 0 ;
29739 PyObject * obj3 = 0 ;
29740 char * kwnames[] = {
29741 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
29742 };
29743
29744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29746 if (!SWIG_IsOK(res1)) {
29747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29748 }
29749 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29750 ecode2 = SWIG_AsVal_int(obj1, &val2);
29751 if (!SWIG_IsOK(ecode2)) {
29752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
29753 }
29754 arg2 = static_cast< int >(val2);
29755 ecode3 = SWIG_AsVal_int(obj2, &val3);
29756 if (!SWIG_IsOK(ecode3)) {
29757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
29758 }
29759 arg3 = static_cast< int >(val3);
29760 ecode4 = SWIG_AsVal_int(obj3, &val4);
29761 if (!SWIG_IsOK(ecode4)) {
29762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
29763 }
29764 arg4 = static_cast< int >(val4);
29765 {
29766 PyThreadState* __tstate = wxPyBeginAllowThreads();
29767 (arg1)->DrawCircle(arg2,arg3,arg4);
29768 wxPyEndAllowThreads(__tstate);
29769 if (PyErr_Occurred()) SWIG_fail;
29770 }
29771 resultobj = SWIG_Py_Void();
29772 return resultobj;
29773 fail:
29774 return NULL;
29775 }
29776
29777
29778 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29779 PyObject *resultobj = 0;
29780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29781 wxPoint *arg2 = 0 ;
29782 int arg3 ;
29783 void *argp1 = 0 ;
29784 int res1 = 0 ;
29785 wxPoint temp2 ;
29786 int val3 ;
29787 int ecode3 = 0 ;
29788 PyObject * obj0 = 0 ;
29789 PyObject * obj1 = 0 ;
29790 PyObject * obj2 = 0 ;
29791 char * kwnames[] = {
29792 (char *) "self",(char *) "pt",(char *) "radius", NULL
29793 };
29794
29795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29797 if (!SWIG_IsOK(res1)) {
29798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29799 }
29800 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29801 {
29802 arg2 = &temp2;
29803 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29804 }
29805 ecode3 = SWIG_AsVal_int(obj2, &val3);
29806 if (!SWIG_IsOK(ecode3)) {
29807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
29808 }
29809 arg3 = static_cast< int >(val3);
29810 {
29811 PyThreadState* __tstate = wxPyBeginAllowThreads();
29812 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
29813 wxPyEndAllowThreads(__tstate);
29814 if (PyErr_Occurred()) SWIG_fail;
29815 }
29816 resultobj = SWIG_Py_Void();
29817 return resultobj;
29818 fail:
29819 return NULL;
29820 }
29821
29822
29823 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29824 PyObject *resultobj = 0;
29825 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29826 int arg2 ;
29827 int arg3 ;
29828 int arg4 ;
29829 int arg5 ;
29830 void *argp1 = 0 ;
29831 int res1 = 0 ;
29832 int val2 ;
29833 int ecode2 = 0 ;
29834 int val3 ;
29835 int ecode3 = 0 ;
29836 int val4 ;
29837 int ecode4 = 0 ;
29838 int val5 ;
29839 int ecode5 = 0 ;
29840 PyObject * obj0 = 0 ;
29841 PyObject * obj1 = 0 ;
29842 PyObject * obj2 = 0 ;
29843 PyObject * obj3 = 0 ;
29844 PyObject * obj4 = 0 ;
29845 char * kwnames[] = {
29846 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29847 };
29848
29849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29851 if (!SWIG_IsOK(res1)) {
29852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29853 }
29854 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29855 ecode2 = SWIG_AsVal_int(obj1, &val2);
29856 if (!SWIG_IsOK(ecode2)) {
29857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
29858 }
29859 arg2 = static_cast< int >(val2);
29860 ecode3 = SWIG_AsVal_int(obj2, &val3);
29861 if (!SWIG_IsOK(ecode3)) {
29862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
29863 }
29864 arg3 = static_cast< int >(val3);
29865 ecode4 = SWIG_AsVal_int(obj3, &val4);
29866 if (!SWIG_IsOK(ecode4)) {
29867 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
29868 }
29869 arg4 = static_cast< int >(val4);
29870 ecode5 = SWIG_AsVal_int(obj4, &val5);
29871 if (!SWIG_IsOK(ecode5)) {
29872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
29873 }
29874 arg5 = static_cast< int >(val5);
29875 {
29876 PyThreadState* __tstate = wxPyBeginAllowThreads();
29877 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29878 wxPyEndAllowThreads(__tstate);
29879 if (PyErr_Occurred()) SWIG_fail;
29880 }
29881 resultobj = SWIG_Py_Void();
29882 return resultobj;
29883 fail:
29884 return NULL;
29885 }
29886
29887
29888 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29889 PyObject *resultobj = 0;
29890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29891 wxRect *arg2 = 0 ;
29892 void *argp1 = 0 ;
29893 int res1 = 0 ;
29894 wxRect temp2 ;
29895 PyObject * obj0 = 0 ;
29896 PyObject * obj1 = 0 ;
29897 char * kwnames[] = {
29898 (char *) "self",(char *) "rect", NULL
29899 };
29900
29901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
29902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29903 if (!SWIG_IsOK(res1)) {
29904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29905 }
29906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29907 {
29908 arg2 = &temp2;
29909 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29910 }
29911 {
29912 PyThreadState* __tstate = wxPyBeginAllowThreads();
29913 (arg1)->DrawEllipse((wxRect const &)*arg2);
29914 wxPyEndAllowThreads(__tstate);
29915 if (PyErr_Occurred()) SWIG_fail;
29916 }
29917 resultobj = SWIG_Py_Void();
29918 return resultobj;
29919 fail:
29920 return NULL;
29921 }
29922
29923
29924 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29925 PyObject *resultobj = 0;
29926 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29927 wxPoint *arg2 = 0 ;
29928 wxSize *arg3 = 0 ;
29929 void *argp1 = 0 ;
29930 int res1 = 0 ;
29931 wxPoint temp2 ;
29932 wxSize temp3 ;
29933 PyObject * obj0 = 0 ;
29934 PyObject * obj1 = 0 ;
29935 PyObject * obj2 = 0 ;
29936 char * kwnames[] = {
29937 (char *) "self",(char *) "pt",(char *) "sz", NULL
29938 };
29939
29940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29942 if (!SWIG_IsOK(res1)) {
29943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29944 }
29945 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29946 {
29947 arg2 = &temp2;
29948 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29949 }
29950 {
29951 arg3 = &temp3;
29952 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29953 }
29954 {
29955 PyThreadState* __tstate = wxPyBeginAllowThreads();
29956 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
29957 wxPyEndAllowThreads(__tstate);
29958 if (PyErr_Occurred()) SWIG_fail;
29959 }
29960 resultobj = SWIG_Py_Void();
29961 return resultobj;
29962 fail:
29963 return NULL;
29964 }
29965
29966
29967 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29968 PyObject *resultobj = 0;
29969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29970 wxIcon *arg2 = 0 ;
29971 int arg3 ;
29972 int arg4 ;
29973 void *argp1 = 0 ;
29974 int res1 = 0 ;
29975 void *argp2 = 0 ;
29976 int res2 = 0 ;
29977 int val3 ;
29978 int ecode3 = 0 ;
29979 int val4 ;
29980 int ecode4 = 0 ;
29981 PyObject * obj0 = 0 ;
29982 PyObject * obj1 = 0 ;
29983 PyObject * obj2 = 0 ;
29984 PyObject * obj3 = 0 ;
29985 char * kwnames[] = {
29986 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
29987 };
29988
29989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29991 if (!SWIG_IsOK(res1)) {
29992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29993 }
29994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29996 if (!SWIG_IsOK(res2)) {
29997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29998 }
29999 if (!argp2) {
30000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30001 }
30002 arg2 = reinterpret_cast< wxIcon * >(argp2);
30003 ecode3 = SWIG_AsVal_int(obj2, &val3);
30004 if (!SWIG_IsOK(ecode3)) {
30005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
30006 }
30007 arg3 = static_cast< int >(val3);
30008 ecode4 = SWIG_AsVal_int(obj3, &val4);
30009 if (!SWIG_IsOK(ecode4)) {
30010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
30011 }
30012 arg4 = static_cast< int >(val4);
30013 {
30014 PyThreadState* __tstate = wxPyBeginAllowThreads();
30015 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
30016 wxPyEndAllowThreads(__tstate);
30017 if (PyErr_Occurred()) SWIG_fail;
30018 }
30019 resultobj = SWIG_Py_Void();
30020 return resultobj;
30021 fail:
30022 return NULL;
30023 }
30024
30025
30026 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30027 PyObject *resultobj = 0;
30028 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30029 wxIcon *arg2 = 0 ;
30030 wxPoint *arg3 = 0 ;
30031 void *argp1 = 0 ;
30032 int res1 = 0 ;
30033 void *argp2 = 0 ;
30034 int res2 = 0 ;
30035 wxPoint temp3 ;
30036 PyObject * obj0 = 0 ;
30037 PyObject * obj1 = 0 ;
30038 PyObject * obj2 = 0 ;
30039 char * kwnames[] = {
30040 (char *) "self",(char *) "icon",(char *) "pt", NULL
30041 };
30042
30043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30045 if (!SWIG_IsOK(res1)) {
30046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30047 }
30048 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30049 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30050 if (!SWIG_IsOK(res2)) {
30051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30052 }
30053 if (!argp2) {
30054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30055 }
30056 arg2 = reinterpret_cast< wxIcon * >(argp2);
30057 {
30058 arg3 = &temp3;
30059 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30060 }
30061 {
30062 PyThreadState* __tstate = wxPyBeginAllowThreads();
30063 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
30064 wxPyEndAllowThreads(__tstate);
30065 if (PyErr_Occurred()) SWIG_fail;
30066 }
30067 resultobj = SWIG_Py_Void();
30068 return resultobj;
30069 fail:
30070 return NULL;
30071 }
30072
30073
30074 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30075 PyObject *resultobj = 0;
30076 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30077 wxBitmap *arg2 = 0 ;
30078 int arg3 ;
30079 int arg4 ;
30080 bool arg5 = (bool) false ;
30081 void *argp1 = 0 ;
30082 int res1 = 0 ;
30083 void *argp2 = 0 ;
30084 int res2 = 0 ;
30085 int val3 ;
30086 int ecode3 = 0 ;
30087 int val4 ;
30088 int ecode4 = 0 ;
30089 bool val5 ;
30090 int ecode5 = 0 ;
30091 PyObject * obj0 = 0 ;
30092 PyObject * obj1 = 0 ;
30093 PyObject * obj2 = 0 ;
30094 PyObject * obj3 = 0 ;
30095 PyObject * obj4 = 0 ;
30096 char * kwnames[] = {
30097 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
30098 };
30099
30100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30104 }
30105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30107 if (!SWIG_IsOK(res2)) {
30108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30109 }
30110 if (!argp2) {
30111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30112 }
30113 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30114 ecode3 = SWIG_AsVal_int(obj2, &val3);
30115 if (!SWIG_IsOK(ecode3)) {
30116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
30117 }
30118 arg3 = static_cast< int >(val3);
30119 ecode4 = SWIG_AsVal_int(obj3, &val4);
30120 if (!SWIG_IsOK(ecode4)) {
30121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
30122 }
30123 arg4 = static_cast< int >(val4);
30124 if (obj4) {
30125 ecode5 = SWIG_AsVal_bool(obj4, &val5);
30126 if (!SWIG_IsOK(ecode5)) {
30127 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
30128 }
30129 arg5 = static_cast< bool >(val5);
30130 }
30131 {
30132 PyThreadState* __tstate = wxPyBeginAllowThreads();
30133 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
30134 wxPyEndAllowThreads(__tstate);
30135 if (PyErr_Occurred()) SWIG_fail;
30136 }
30137 resultobj = SWIG_Py_Void();
30138 return resultobj;
30139 fail:
30140 return NULL;
30141 }
30142
30143
30144 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30145 PyObject *resultobj = 0;
30146 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30147 wxBitmap *arg2 = 0 ;
30148 wxPoint *arg3 = 0 ;
30149 bool arg4 = (bool) false ;
30150 void *argp1 = 0 ;
30151 int res1 = 0 ;
30152 void *argp2 = 0 ;
30153 int res2 = 0 ;
30154 wxPoint temp3 ;
30155 bool val4 ;
30156 int ecode4 = 0 ;
30157 PyObject * obj0 = 0 ;
30158 PyObject * obj1 = 0 ;
30159 PyObject * obj2 = 0 ;
30160 PyObject * obj3 = 0 ;
30161 char * kwnames[] = {
30162 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
30163 };
30164
30165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30167 if (!SWIG_IsOK(res1)) {
30168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30169 }
30170 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30172 if (!SWIG_IsOK(res2)) {
30173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30174 }
30175 if (!argp2) {
30176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30177 }
30178 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30179 {
30180 arg3 = &temp3;
30181 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30182 }
30183 if (obj3) {
30184 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30185 if (!SWIG_IsOK(ecode4)) {
30186 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
30187 }
30188 arg4 = static_cast< bool >(val4);
30189 }
30190 {
30191 PyThreadState* __tstate = wxPyBeginAllowThreads();
30192 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
30193 wxPyEndAllowThreads(__tstate);
30194 if (PyErr_Occurred()) SWIG_fail;
30195 }
30196 resultobj = SWIG_Py_Void();
30197 return resultobj;
30198 fail:
30199 return NULL;
30200 }
30201
30202
30203 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30204 PyObject *resultobj = 0;
30205 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30206 wxString *arg2 = 0 ;
30207 int arg3 ;
30208 int arg4 ;
30209 void *argp1 = 0 ;
30210 int res1 = 0 ;
30211 bool temp2 = false ;
30212 int val3 ;
30213 int ecode3 = 0 ;
30214 int val4 ;
30215 int ecode4 = 0 ;
30216 PyObject * obj0 = 0 ;
30217 PyObject * obj1 = 0 ;
30218 PyObject * obj2 = 0 ;
30219 PyObject * obj3 = 0 ;
30220 char * kwnames[] = {
30221 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
30222 };
30223
30224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30226 if (!SWIG_IsOK(res1)) {
30227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30228 }
30229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30230 {
30231 arg2 = wxString_in_helper(obj1);
30232 if (arg2 == NULL) SWIG_fail;
30233 temp2 = true;
30234 }
30235 ecode3 = SWIG_AsVal_int(obj2, &val3);
30236 if (!SWIG_IsOK(ecode3)) {
30237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
30238 }
30239 arg3 = static_cast< int >(val3);
30240 ecode4 = SWIG_AsVal_int(obj3, &val4);
30241 if (!SWIG_IsOK(ecode4)) {
30242 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
30243 }
30244 arg4 = static_cast< int >(val4);
30245 {
30246 PyThreadState* __tstate = wxPyBeginAllowThreads();
30247 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
30248 wxPyEndAllowThreads(__tstate);
30249 if (PyErr_Occurred()) SWIG_fail;
30250 }
30251 resultobj = SWIG_Py_Void();
30252 {
30253 if (temp2)
30254 delete arg2;
30255 }
30256 return resultobj;
30257 fail:
30258 {
30259 if (temp2)
30260 delete arg2;
30261 }
30262 return NULL;
30263 }
30264
30265
30266 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30267 PyObject *resultobj = 0;
30268 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30269 wxString *arg2 = 0 ;
30270 wxPoint *arg3 = 0 ;
30271 void *argp1 = 0 ;
30272 int res1 = 0 ;
30273 bool temp2 = false ;
30274 wxPoint temp3 ;
30275 PyObject * obj0 = 0 ;
30276 PyObject * obj1 = 0 ;
30277 PyObject * obj2 = 0 ;
30278 char * kwnames[] = {
30279 (char *) "self",(char *) "text",(char *) "pt", NULL
30280 };
30281
30282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30284 if (!SWIG_IsOK(res1)) {
30285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30286 }
30287 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30288 {
30289 arg2 = wxString_in_helper(obj1);
30290 if (arg2 == NULL) SWIG_fail;
30291 temp2 = true;
30292 }
30293 {
30294 arg3 = &temp3;
30295 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30296 }
30297 {
30298 PyThreadState* __tstate = wxPyBeginAllowThreads();
30299 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
30300 wxPyEndAllowThreads(__tstate);
30301 if (PyErr_Occurred()) SWIG_fail;
30302 }
30303 resultobj = SWIG_Py_Void();
30304 {
30305 if (temp2)
30306 delete arg2;
30307 }
30308 return resultobj;
30309 fail:
30310 {
30311 if (temp2)
30312 delete arg2;
30313 }
30314 return NULL;
30315 }
30316
30317
30318 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30319 PyObject *resultobj = 0;
30320 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30321 wxString *arg2 = 0 ;
30322 int arg3 ;
30323 int arg4 ;
30324 double arg5 ;
30325 void *argp1 = 0 ;
30326 int res1 = 0 ;
30327 bool temp2 = false ;
30328 int val3 ;
30329 int ecode3 = 0 ;
30330 int val4 ;
30331 int ecode4 = 0 ;
30332 double val5 ;
30333 int ecode5 = 0 ;
30334 PyObject * obj0 = 0 ;
30335 PyObject * obj1 = 0 ;
30336 PyObject * obj2 = 0 ;
30337 PyObject * obj3 = 0 ;
30338 PyObject * obj4 = 0 ;
30339 char * kwnames[] = {
30340 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
30341 };
30342
30343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30345 if (!SWIG_IsOK(res1)) {
30346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30347 }
30348 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30349 {
30350 arg2 = wxString_in_helper(obj1);
30351 if (arg2 == NULL) SWIG_fail;
30352 temp2 = true;
30353 }
30354 ecode3 = SWIG_AsVal_int(obj2, &val3);
30355 if (!SWIG_IsOK(ecode3)) {
30356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
30357 }
30358 arg3 = static_cast< int >(val3);
30359 ecode4 = SWIG_AsVal_int(obj3, &val4);
30360 if (!SWIG_IsOK(ecode4)) {
30361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
30362 }
30363 arg4 = static_cast< int >(val4);
30364 ecode5 = SWIG_AsVal_double(obj4, &val5);
30365 if (!SWIG_IsOK(ecode5)) {
30366 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
30367 }
30368 arg5 = static_cast< double >(val5);
30369 {
30370 PyThreadState* __tstate = wxPyBeginAllowThreads();
30371 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
30372 wxPyEndAllowThreads(__tstate);
30373 if (PyErr_Occurred()) SWIG_fail;
30374 }
30375 resultobj = SWIG_Py_Void();
30376 {
30377 if (temp2)
30378 delete arg2;
30379 }
30380 return resultobj;
30381 fail:
30382 {
30383 if (temp2)
30384 delete arg2;
30385 }
30386 return NULL;
30387 }
30388
30389
30390 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30391 PyObject *resultobj = 0;
30392 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30393 wxString *arg2 = 0 ;
30394 wxPoint *arg3 = 0 ;
30395 double arg4 ;
30396 void *argp1 = 0 ;
30397 int res1 = 0 ;
30398 bool temp2 = false ;
30399 wxPoint temp3 ;
30400 double val4 ;
30401 int ecode4 = 0 ;
30402 PyObject * obj0 = 0 ;
30403 PyObject * obj1 = 0 ;
30404 PyObject * obj2 = 0 ;
30405 PyObject * obj3 = 0 ;
30406 char * kwnames[] = {
30407 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
30408 };
30409
30410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30412 if (!SWIG_IsOK(res1)) {
30413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30414 }
30415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30416 {
30417 arg2 = wxString_in_helper(obj1);
30418 if (arg2 == NULL) SWIG_fail;
30419 temp2 = true;
30420 }
30421 {
30422 arg3 = &temp3;
30423 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30424 }
30425 ecode4 = SWIG_AsVal_double(obj3, &val4);
30426 if (!SWIG_IsOK(ecode4)) {
30427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
30428 }
30429 arg4 = static_cast< double >(val4);
30430 {
30431 PyThreadState* __tstate = wxPyBeginAllowThreads();
30432 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
30433 wxPyEndAllowThreads(__tstate);
30434 if (PyErr_Occurred()) SWIG_fail;
30435 }
30436 resultobj = SWIG_Py_Void();
30437 {
30438 if (temp2)
30439 delete arg2;
30440 }
30441 return resultobj;
30442 fail:
30443 {
30444 if (temp2)
30445 delete arg2;
30446 }
30447 return NULL;
30448 }
30449
30450
30451 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30452 PyObject *resultobj = 0;
30453 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30454 int arg2 ;
30455 wxPoint *arg3 = (wxPoint *) 0 ;
30456 int arg4 = (int) 0 ;
30457 int arg5 = (int) 0 ;
30458 void *argp1 = 0 ;
30459 int res1 = 0 ;
30460 int val4 ;
30461 int ecode4 = 0 ;
30462 int val5 ;
30463 int ecode5 = 0 ;
30464 PyObject * obj0 = 0 ;
30465 PyObject * obj1 = 0 ;
30466 PyObject * obj2 = 0 ;
30467 PyObject * obj3 = 0 ;
30468 char * kwnames[] = {
30469 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
30470 };
30471
30472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30474 if (!SWIG_IsOK(res1)) {
30475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30476 }
30477 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30478 {
30479 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30480 if (arg3 == NULL) SWIG_fail;
30481 }
30482 if (obj2) {
30483 ecode4 = SWIG_AsVal_int(obj2, &val4);
30484 if (!SWIG_IsOK(ecode4)) {
30485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
30486 }
30487 arg4 = static_cast< int >(val4);
30488 }
30489 if (obj3) {
30490 ecode5 = SWIG_AsVal_int(obj3, &val5);
30491 if (!SWIG_IsOK(ecode5)) {
30492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
30493 }
30494 arg5 = static_cast< int >(val5);
30495 }
30496 {
30497 PyThreadState* __tstate = wxPyBeginAllowThreads();
30498 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
30499 wxPyEndAllowThreads(__tstate);
30500 if (PyErr_Occurred()) SWIG_fail;
30501 }
30502 resultobj = SWIG_Py_Void();
30503 {
30504 if (arg3) delete [] arg3;
30505 }
30506 return resultobj;
30507 fail:
30508 {
30509 if (arg3) delete [] arg3;
30510 }
30511 return NULL;
30512 }
30513
30514
30515 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30516 PyObject *resultobj = 0;
30517 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30518 int arg2 ;
30519 wxPoint *arg3 = (wxPoint *) 0 ;
30520 int arg4 = (int) 0 ;
30521 int arg5 = (int) 0 ;
30522 int arg6 = (int) wxODDEVEN_RULE ;
30523 void *argp1 = 0 ;
30524 int res1 = 0 ;
30525 int val4 ;
30526 int ecode4 = 0 ;
30527 int val5 ;
30528 int ecode5 = 0 ;
30529 int val6 ;
30530 int ecode6 = 0 ;
30531 PyObject * obj0 = 0 ;
30532 PyObject * obj1 = 0 ;
30533 PyObject * obj2 = 0 ;
30534 PyObject * obj3 = 0 ;
30535 PyObject * obj4 = 0 ;
30536 char * kwnames[] = {
30537 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
30538 };
30539
30540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30542 if (!SWIG_IsOK(res1)) {
30543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30544 }
30545 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30546 {
30547 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30548 if (arg3 == NULL) SWIG_fail;
30549 }
30550 if (obj2) {
30551 ecode4 = SWIG_AsVal_int(obj2, &val4);
30552 if (!SWIG_IsOK(ecode4)) {
30553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
30554 }
30555 arg4 = static_cast< int >(val4);
30556 }
30557 if (obj3) {
30558 ecode5 = SWIG_AsVal_int(obj3, &val5);
30559 if (!SWIG_IsOK(ecode5)) {
30560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
30561 }
30562 arg5 = static_cast< int >(val5);
30563 }
30564 if (obj4) {
30565 ecode6 = SWIG_AsVal_int(obj4, &val6);
30566 if (!SWIG_IsOK(ecode6)) {
30567 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
30568 }
30569 arg6 = static_cast< int >(val6);
30570 }
30571 {
30572 PyThreadState* __tstate = wxPyBeginAllowThreads();
30573 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
30574 wxPyEndAllowThreads(__tstate);
30575 if (PyErr_Occurred()) SWIG_fail;
30576 }
30577 resultobj = SWIG_Py_Void();
30578 {
30579 if (arg3) delete [] arg3;
30580 }
30581 return resultobj;
30582 fail:
30583 {
30584 if (arg3) delete [] arg3;
30585 }
30586 return NULL;
30587 }
30588
30589
30590 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30591 PyObject *resultobj = 0;
30592 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30593 wxString *arg2 = 0 ;
30594 wxRect *arg3 = 0 ;
30595 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30596 int arg5 = (int) -1 ;
30597 void *argp1 = 0 ;
30598 int res1 = 0 ;
30599 bool temp2 = false ;
30600 wxRect temp3 ;
30601 int val4 ;
30602 int ecode4 = 0 ;
30603 int val5 ;
30604 int ecode5 = 0 ;
30605 PyObject * obj0 = 0 ;
30606 PyObject * obj1 = 0 ;
30607 PyObject * obj2 = 0 ;
30608 PyObject * obj3 = 0 ;
30609 PyObject * obj4 = 0 ;
30610 char * kwnames[] = {
30611 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30612 };
30613
30614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30616 if (!SWIG_IsOK(res1)) {
30617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30618 }
30619 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30620 {
30621 arg2 = wxString_in_helper(obj1);
30622 if (arg2 == NULL) SWIG_fail;
30623 temp2 = true;
30624 }
30625 {
30626 arg3 = &temp3;
30627 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30628 }
30629 if (obj3) {
30630 ecode4 = SWIG_AsVal_int(obj3, &val4);
30631 if (!SWIG_IsOK(ecode4)) {
30632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
30633 }
30634 arg4 = static_cast< int >(val4);
30635 }
30636 if (obj4) {
30637 ecode5 = SWIG_AsVal_int(obj4, &val5);
30638 if (!SWIG_IsOK(ecode5)) {
30639 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
30640 }
30641 arg5 = static_cast< int >(val5);
30642 }
30643 {
30644 PyThreadState* __tstate = wxPyBeginAllowThreads();
30645 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
30646 wxPyEndAllowThreads(__tstate);
30647 if (PyErr_Occurred()) SWIG_fail;
30648 }
30649 resultobj = SWIG_Py_Void();
30650 {
30651 if (temp2)
30652 delete arg2;
30653 }
30654 return resultobj;
30655 fail:
30656 {
30657 if (temp2)
30658 delete arg2;
30659 }
30660 return NULL;
30661 }
30662
30663
30664 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30665 PyObject *resultobj = 0;
30666 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30667 wxString *arg2 = 0 ;
30668 wxBitmap *arg3 = 0 ;
30669 wxRect *arg4 = 0 ;
30670 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30671 int arg6 = (int) -1 ;
30672 void *argp1 = 0 ;
30673 int res1 = 0 ;
30674 bool temp2 = false ;
30675 void *argp3 = 0 ;
30676 int res3 = 0 ;
30677 wxRect temp4 ;
30678 int val5 ;
30679 int ecode5 = 0 ;
30680 int val6 ;
30681 int ecode6 = 0 ;
30682 PyObject * obj0 = 0 ;
30683 PyObject * obj1 = 0 ;
30684 PyObject * obj2 = 0 ;
30685 PyObject * obj3 = 0 ;
30686 PyObject * obj4 = 0 ;
30687 PyObject * obj5 = 0 ;
30688 char * kwnames[] = {
30689 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30690 };
30691
30692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30694 if (!SWIG_IsOK(res1)) {
30695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30696 }
30697 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30698 {
30699 arg2 = wxString_in_helper(obj1);
30700 if (arg2 == NULL) SWIG_fail;
30701 temp2 = true;
30702 }
30703 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30704 if (!SWIG_IsOK(res3)) {
30705 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30706 }
30707 if (!argp3) {
30708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30709 }
30710 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30711 {
30712 arg4 = &temp4;
30713 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30714 }
30715 if (obj4) {
30716 ecode5 = SWIG_AsVal_int(obj4, &val5);
30717 if (!SWIG_IsOK(ecode5)) {
30718 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
30719 }
30720 arg5 = static_cast< int >(val5);
30721 }
30722 if (obj5) {
30723 ecode6 = SWIG_AsVal_int(obj5, &val6);
30724 if (!SWIG_IsOK(ecode6)) {
30725 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
30726 }
30727 arg6 = static_cast< int >(val6);
30728 }
30729 {
30730 PyThreadState* __tstate = wxPyBeginAllowThreads();
30731 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
30732 wxPyEndAllowThreads(__tstate);
30733 if (PyErr_Occurred()) SWIG_fail;
30734 }
30735 resultobj = SWIG_Py_Void();
30736 {
30737 if (temp2)
30738 delete arg2;
30739 }
30740 return resultobj;
30741 fail:
30742 {
30743 if (temp2)
30744 delete arg2;
30745 }
30746 return NULL;
30747 }
30748
30749
30750 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30751 PyObject *resultobj = 0;
30752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30753 int arg2 ;
30754 wxPoint *arg3 = (wxPoint *) 0 ;
30755 void *argp1 = 0 ;
30756 int res1 = 0 ;
30757 PyObject * obj0 = 0 ;
30758 PyObject * obj1 = 0 ;
30759 char * kwnames[] = {
30760 (char *) "self",(char *) "points", NULL
30761 };
30762
30763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
30764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30765 if (!SWIG_IsOK(res1)) {
30766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30767 }
30768 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30769 {
30770 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30771 if (arg3 == NULL) SWIG_fail;
30772 }
30773 {
30774 PyThreadState* __tstate = wxPyBeginAllowThreads();
30775 (arg1)->DrawSpline(arg2,arg3);
30776 wxPyEndAllowThreads(__tstate);
30777 if (PyErr_Occurred()) SWIG_fail;
30778 }
30779 resultobj = SWIG_Py_Void();
30780 {
30781 if (arg3) delete [] arg3;
30782 }
30783 return resultobj;
30784 fail:
30785 {
30786 if (arg3) delete [] arg3;
30787 }
30788 return NULL;
30789 }
30790
30791
30792 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30793 PyObject *resultobj = 0;
30794 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30795 void *argp1 = 0 ;
30796 int res1 = 0 ;
30797 PyObject *swig_obj[1] ;
30798
30799 if (!args) SWIG_fail;
30800 swig_obj[0] = args;
30801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30802 if (!SWIG_IsOK(res1)) {
30803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30804 }
30805 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30806 {
30807 PyThreadState* __tstate = wxPyBeginAllowThreads();
30808 (arg1)->Clear();
30809 wxPyEndAllowThreads(__tstate);
30810 if (PyErr_Occurred()) SWIG_fail;
30811 }
30812 resultobj = SWIG_Py_Void();
30813 return resultobj;
30814 fail:
30815 return NULL;
30816 }
30817
30818
30819 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30820 PyObject *resultobj = 0;
30821 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30822 wxFont *arg2 = 0 ;
30823 void *argp1 = 0 ;
30824 int res1 = 0 ;
30825 void *argp2 = 0 ;
30826 int res2 = 0 ;
30827 PyObject * obj0 = 0 ;
30828 PyObject * obj1 = 0 ;
30829 char * kwnames[] = {
30830 (char *) "self",(char *) "font", NULL
30831 };
30832
30833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
30834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30835 if (!SWIG_IsOK(res1)) {
30836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30837 }
30838 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30840 if (!SWIG_IsOK(res2)) {
30841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30842 }
30843 if (!argp2) {
30844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30845 }
30846 arg2 = reinterpret_cast< wxFont * >(argp2);
30847 {
30848 PyThreadState* __tstate = wxPyBeginAllowThreads();
30849 (arg1)->SetFont((wxFont const &)*arg2);
30850 wxPyEndAllowThreads(__tstate);
30851 if (PyErr_Occurred()) SWIG_fail;
30852 }
30853 resultobj = SWIG_Py_Void();
30854 return resultobj;
30855 fail:
30856 return NULL;
30857 }
30858
30859
30860 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30861 PyObject *resultobj = 0;
30862 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30863 wxPen *arg2 = 0 ;
30864 void *argp1 = 0 ;
30865 int res1 = 0 ;
30866 void *argp2 = 0 ;
30867 int res2 = 0 ;
30868 PyObject * obj0 = 0 ;
30869 PyObject * obj1 = 0 ;
30870 char * kwnames[] = {
30871 (char *) "self",(char *) "pen", NULL
30872 };
30873
30874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
30875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30876 if (!SWIG_IsOK(res1)) {
30877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30878 }
30879 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30881 if (!SWIG_IsOK(res2)) {
30882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30883 }
30884 if (!argp2) {
30885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30886 }
30887 arg2 = reinterpret_cast< wxPen * >(argp2);
30888 {
30889 PyThreadState* __tstate = wxPyBeginAllowThreads();
30890 (arg1)->SetPen((wxPen const &)*arg2);
30891 wxPyEndAllowThreads(__tstate);
30892 if (PyErr_Occurred()) SWIG_fail;
30893 }
30894 resultobj = SWIG_Py_Void();
30895 return resultobj;
30896 fail:
30897 return NULL;
30898 }
30899
30900
30901 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30902 PyObject *resultobj = 0;
30903 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30904 wxBrush *arg2 = 0 ;
30905 void *argp1 = 0 ;
30906 int res1 = 0 ;
30907 void *argp2 = 0 ;
30908 int res2 = 0 ;
30909 PyObject * obj0 = 0 ;
30910 PyObject * obj1 = 0 ;
30911 char * kwnames[] = {
30912 (char *) "self",(char *) "brush", NULL
30913 };
30914
30915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30917 if (!SWIG_IsOK(res1)) {
30918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30919 }
30920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30922 if (!SWIG_IsOK(res2)) {
30923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30924 }
30925 if (!argp2) {
30926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30927 }
30928 arg2 = reinterpret_cast< wxBrush * >(argp2);
30929 {
30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
30931 (arg1)->SetBrush((wxBrush const &)*arg2);
30932 wxPyEndAllowThreads(__tstate);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 }
30935 resultobj = SWIG_Py_Void();
30936 return resultobj;
30937 fail:
30938 return NULL;
30939 }
30940
30941
30942 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30943 PyObject *resultobj = 0;
30944 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30945 wxBrush *arg2 = 0 ;
30946 void *argp1 = 0 ;
30947 int res1 = 0 ;
30948 void *argp2 = 0 ;
30949 int res2 = 0 ;
30950 PyObject * obj0 = 0 ;
30951 PyObject * obj1 = 0 ;
30952 char * kwnames[] = {
30953 (char *) "self",(char *) "brush", NULL
30954 };
30955
30956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30958 if (!SWIG_IsOK(res1)) {
30959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30960 }
30961 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30963 if (!SWIG_IsOK(res2)) {
30964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30965 }
30966 if (!argp2) {
30967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30968 }
30969 arg2 = reinterpret_cast< wxBrush * >(argp2);
30970 {
30971 PyThreadState* __tstate = wxPyBeginAllowThreads();
30972 (arg1)->SetBackground((wxBrush const &)*arg2);
30973 wxPyEndAllowThreads(__tstate);
30974 if (PyErr_Occurred()) SWIG_fail;
30975 }
30976 resultobj = SWIG_Py_Void();
30977 return resultobj;
30978 fail:
30979 return NULL;
30980 }
30981
30982
30983 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30984 PyObject *resultobj = 0;
30985 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30986 int arg2 ;
30987 void *argp1 = 0 ;
30988 int res1 = 0 ;
30989 int val2 ;
30990 int ecode2 = 0 ;
30991 PyObject * obj0 = 0 ;
30992 PyObject * obj1 = 0 ;
30993 char * kwnames[] = {
30994 (char *) "self",(char *) "mode", NULL
30995 };
30996
30997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
30998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30999 if (!SWIG_IsOK(res1)) {
31000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31001 }
31002 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31003 ecode2 = SWIG_AsVal_int(obj1, &val2);
31004 if (!SWIG_IsOK(ecode2)) {
31005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
31006 }
31007 arg2 = static_cast< int >(val2);
31008 {
31009 PyThreadState* __tstate = wxPyBeginAllowThreads();
31010 (arg1)->SetBackgroundMode(arg2);
31011 wxPyEndAllowThreads(__tstate);
31012 if (PyErr_Occurred()) SWIG_fail;
31013 }
31014 resultobj = SWIG_Py_Void();
31015 return resultobj;
31016 fail:
31017 return NULL;
31018 }
31019
31020
31021 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31022 PyObject *resultobj = 0;
31023 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31024 wxPalette *arg2 = 0 ;
31025 void *argp1 = 0 ;
31026 int res1 = 0 ;
31027 void *argp2 = 0 ;
31028 int res2 = 0 ;
31029 PyObject * obj0 = 0 ;
31030 PyObject * obj1 = 0 ;
31031 char * kwnames[] = {
31032 (char *) "self",(char *) "palette", NULL
31033 };
31034
31035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
31036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31037 if (!SWIG_IsOK(res1)) {
31038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31039 }
31040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
31042 if (!SWIG_IsOK(res2)) {
31043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31044 }
31045 if (!argp2) {
31046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31047 }
31048 arg2 = reinterpret_cast< wxPalette * >(argp2);
31049 {
31050 PyThreadState* __tstate = wxPyBeginAllowThreads();
31051 (arg1)->SetPalette((wxPalette const &)*arg2);
31052 wxPyEndAllowThreads(__tstate);
31053 if (PyErr_Occurred()) SWIG_fail;
31054 }
31055 resultobj = SWIG_Py_Void();
31056 return resultobj;
31057 fail:
31058 return NULL;
31059 }
31060
31061
31062 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31063 PyObject *resultobj = 0;
31064 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31065 wxColour *arg2 = 0 ;
31066 void *argp1 = 0 ;
31067 int res1 = 0 ;
31068 wxColour temp2 ;
31069 PyObject * obj0 = 0 ;
31070 PyObject * obj1 = 0 ;
31071 char * kwnames[] = {
31072 (char *) "self",(char *) "colour", NULL
31073 };
31074
31075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
31076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31077 if (!SWIG_IsOK(res1)) {
31078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31079 }
31080 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31081 {
31082 arg2 = &temp2;
31083 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31084 }
31085 {
31086 PyThreadState* __tstate = wxPyBeginAllowThreads();
31087 (arg1)->SetTextForeground((wxColour const &)*arg2);
31088 wxPyEndAllowThreads(__tstate);
31089 if (PyErr_Occurred()) SWIG_fail;
31090 }
31091 resultobj = SWIG_Py_Void();
31092 return resultobj;
31093 fail:
31094 return NULL;
31095 }
31096
31097
31098 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31099 PyObject *resultobj = 0;
31100 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31101 wxColour *arg2 = 0 ;
31102 void *argp1 = 0 ;
31103 int res1 = 0 ;
31104 wxColour temp2 ;
31105 PyObject * obj0 = 0 ;
31106 PyObject * obj1 = 0 ;
31107 char * kwnames[] = {
31108 (char *) "self",(char *) "colour", NULL
31109 };
31110
31111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31113 if (!SWIG_IsOK(res1)) {
31114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31115 }
31116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31117 {
31118 arg2 = &temp2;
31119 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31120 }
31121 {
31122 PyThreadState* __tstate = wxPyBeginAllowThreads();
31123 (arg1)->SetTextBackground((wxColour const &)*arg2);
31124 wxPyEndAllowThreads(__tstate);
31125 if (PyErr_Occurred()) SWIG_fail;
31126 }
31127 resultobj = SWIG_Py_Void();
31128 return resultobj;
31129 fail:
31130 return NULL;
31131 }
31132
31133
31134 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31135 PyObject *resultobj = 0;
31136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31137 int arg2 ;
31138 void *argp1 = 0 ;
31139 int res1 = 0 ;
31140 int val2 ;
31141 int ecode2 = 0 ;
31142 PyObject * obj0 = 0 ;
31143 PyObject * obj1 = 0 ;
31144 char * kwnames[] = {
31145 (char *) "self",(char *) "function", NULL
31146 };
31147
31148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
31149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31150 if (!SWIG_IsOK(res1)) {
31151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31152 }
31153 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31154 ecode2 = SWIG_AsVal_int(obj1, &val2);
31155 if (!SWIG_IsOK(ecode2)) {
31156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
31157 }
31158 arg2 = static_cast< int >(val2);
31159 {
31160 PyThreadState* __tstate = wxPyBeginAllowThreads();
31161 (arg1)->SetLogicalFunction(arg2);
31162 wxPyEndAllowThreads(__tstate);
31163 if (PyErr_Occurred()) SWIG_fail;
31164 }
31165 resultobj = SWIG_Py_Void();
31166 return resultobj;
31167 fail:
31168 return NULL;
31169 }
31170
31171
31172 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31173 PyObject *obj;
31174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31175 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
31176 return SWIG_Py_Void();
31177 }
31178
31179 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31180 return SWIG_Python_InitShadowInstance(args);
31181 }
31182
31183 static PyMethodDef SwigMethods[] = {
31184 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
31185 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
31186 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
31187 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
31188 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
31189 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
31190 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
31191 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31192 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
31193 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
31194 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
31195 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
31196 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
31197 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
31198 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31199 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31200 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31201 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
31202 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
31203 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31204 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31205 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
31206 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
31207 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
31208 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
31209 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
31210 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
31211 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31212 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31213 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
31214 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
31215 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
31216 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
31217 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
31218 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
31219 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
31220 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
31221 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
31222 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
31223 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
31224 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
31225 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
31226 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31227 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
31228 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31229 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31230 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31231 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
31232 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31233 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
31234 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31235 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31236 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
31237 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
31238 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
31239 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31240 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
31241 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31242 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31243 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
31244 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
31245 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
31246 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
31247 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
31248 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
31249 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
31250 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
31251 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31252 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
31253 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31254 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31255 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31256 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31257 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
31258 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
31259 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
31260 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
31261 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
31262 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
31263 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
31264 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
31265 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
31266 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
31267 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31268 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
31269 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
31270 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
31271 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31272 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31273 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31274 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31275 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31276 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31277 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31278 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
31279 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
31280 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
31281 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
31282 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
31283 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
31284 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
31285 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
31286 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
31287 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
31288 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
31289 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
31290 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
31291 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
31292 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
31293 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
31294 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
31295 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
31296 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
31297 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
31298 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31299 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
31300 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
31301 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31302 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31303 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31304 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31305 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31306 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
31307 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
31308 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
31309 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
31310 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
31311 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
31312 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
31313 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
31314 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
31315 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
31316 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
31317 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
31318 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31319 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
31320 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
31321 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31322 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31323 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31324 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31325 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31326 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
31327 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
31328 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
31329 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
31330 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
31331 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
31332 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
31333 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
31334 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
31335 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
31336 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31337 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31338 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31339 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
31340 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
31341 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
31342 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
31343 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
31344 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31345 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31346 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31347 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31348 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
31349 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
31350 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31351 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
31352 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
31353 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
31354 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
31355 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
31356 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
31357 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
31358 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
31359 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
31360 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31361 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31362 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
31363 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31364 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31365 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31366 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
31367 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
31368 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
31369 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
31370 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31371 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31372 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
31373 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
31374 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
31375 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
31376 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31377 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31378 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
31379 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
31380 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
31381 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31382 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
31383 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31384 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
31385 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
31386 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
31387 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
31388 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
31389 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31390 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
31391 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
31392 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
31393 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31394 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31395 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
31396 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
31397 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31398 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
31399 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
31400 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31401 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
31402 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31403 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31404 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
31405 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
31406 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
31407 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
31408 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
31409 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
31410 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
31411 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
31412 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
31413 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
31414 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
31415 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
31416 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
31417 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
31418 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
31419 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
31420 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
31421 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
31422 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
31423 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
31424 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
31425 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
31426 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
31427 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
31428 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
31429 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
31430 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
31431 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
31432 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31433 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31434 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31435 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31436 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31437 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31438 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31439 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31440 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
31441 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
31442 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
31443 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
31444 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
31445 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
31446 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
31447 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
31448 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
31449 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
31450 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
31451 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
31452 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31453 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
31454 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
31455 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
31456 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31457 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31458 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
31459 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
31460 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
31461 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31462 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31463 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
31464 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31465 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
31466 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
31467 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31468 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
31469 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
31470 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31471 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31472 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
31473 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
31474 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
31475 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
31476 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
31477 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
31478 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31479 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
31480 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
31481 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31482 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31483 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
31484 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31485 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31486 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
31487 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
31488 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
31489 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
31490 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
31491 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
31492 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
31493 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
31494 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
31495 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
31496 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
31497 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
31498 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
31499 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31500 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31501 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31502 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31503 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31504 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31505 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31506 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31507 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31508 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
31509 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
31510 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
31511 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
31512 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
31513 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
31514 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
31515 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
31516 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31517 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
31518 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
31519 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
31520 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
31521 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31522 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
31523 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
31524 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
31525 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
31526 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
31527 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
31528 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
31529 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
31530 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
31531 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
31532 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
31533 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
31534 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
31535 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
31536 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
31537 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
31538 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
31539 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
31540 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
31541 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
31542 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
31543 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
31544 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
31545 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
31546 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
31547 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
31548 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
31549 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
31550 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31551 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
31552 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31553 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
31554 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31555 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
31556 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
31557 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
31558 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
31559 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
31560 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
31561 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
31562 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31563 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
31564 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
31565 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
31566 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
31567 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
31568 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
31569 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
31570 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
31571 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
31572 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
31573 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31574 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31575 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
31576 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
31577 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
31578 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
31579 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31580 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31581 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
31582 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
31583 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31584 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31585 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31586 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31587 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31588 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31589 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31590 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31591 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31592 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31593 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31594 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31595 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31596 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31597 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31598 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31599 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31600 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31601 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31602 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31603 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31604 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31605 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31606 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31607 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31608 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31609 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31610 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31611 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31612 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31613 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31614 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31615 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31616 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
31617 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31618 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31619 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31620 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31621 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
31622 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31623 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31624 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31625 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31626 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31627 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
31628 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
31629 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
31630 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
31631 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
31632 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31633 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31634 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31635 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31636 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31637 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31638 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
31639 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
31640 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
31641 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
31642 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
31643 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31644 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31645 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31646 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
31647 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
31648 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
31649 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
31650 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
31651 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
31652 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
31653 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31654 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31655 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
31656 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
31657 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31658 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31659 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
31660 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
31661 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
31662 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
31663 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
31664 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
31665 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
31666 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
31667 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
31668 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
31669 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
31670 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
31671 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31672 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31673 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31674 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31675 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31676 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31677 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31678 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31679 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31680 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31681 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31682 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31683 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31684 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31685 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31686 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31687 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31688 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31689 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31690 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31691 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31692 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31693 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31694 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31695 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
31696 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
31697 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
31698 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
31699 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
31700 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
31701 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
31702 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
31703 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
31704 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
31705 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
31706 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
31707 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
31708 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
31709 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
31710 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
31711 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
31712 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
31713 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
31714 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
31715 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
31716 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31717 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
31718 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
31719 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
31720 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
31721 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
31722 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
31723 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
31724 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
31725 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
31726 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
31727 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
31728 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31729 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
31730 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
31731 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
31732 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
31733 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
31734 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
31735 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
31736 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
31737 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
31738 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
31739 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
31740 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
31741 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
31742 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
31743 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
31744 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
31745 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
31746 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
31747 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
31748 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
31749 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
31750 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
31751 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
31752 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
31753 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
31754 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
31755 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
31756 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
31757 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31758 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31759 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31760 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
31761 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
31762 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
31763 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
31764 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
31765 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31766 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
31767 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
31768 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
31769 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
31770 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
31771 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
31772 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31773 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31774 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31775 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31776 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31777 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
31778 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
31779 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
31780 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
31781 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
31782 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
31783 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
31784 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
31785 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
31786 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
31787 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31788 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31789 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31790 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
31791 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
31792 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
31793 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
31794 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
31795 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
31796 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
31797 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
31798 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
31799 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
31800 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
31801 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
31802 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
31803 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
31804 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
31805 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
31806 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
31807 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
31808 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
31809 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
31810 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
31811 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
31812 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
31813 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
31814 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31815 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
31816 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31817 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31818 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31819 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
31820 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31821 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
31822 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
31823 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
31824 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
31825 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
31826 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
31827 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
31828 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
31829 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
31830 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
31831 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
31832 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
31833 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
31834 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
31835 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
31836 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
31837 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
31838 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
31839 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
31840 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
31841 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
31842 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
31843 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
31844 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
31845 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
31846 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
31847 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
31848 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
31849 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
31850 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
31851 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
31852 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
31853 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
31854 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
31855 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
31856 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
31857 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31858 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
31859 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
31860 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
31861 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
31862 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
31863 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
31864 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
31865 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31866 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
31867 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
31868 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
31869 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
31870 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31871 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
31872 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
31873 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
31874 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
31875 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
31876 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
31877 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
31878 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
31879 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
31880 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
31881 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
31882 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
31883 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31884 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31885 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31886 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
31887 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
31888 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31889 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31890 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31891 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31892 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31893 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31894 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31895 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31896 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31897 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31898 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31899 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31900 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31901 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31902 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31903 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31904 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31905 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31906 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31907 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31908 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31909 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31910 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31911 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31912 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31913 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31914 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31915 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31916 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31917 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31918 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31919 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31920 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31921 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31922 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31923 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31924 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31925 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31926 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31927 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
31928 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31929 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31930 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31931 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31932 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31933 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31934 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31935 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31936 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31937 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
31938 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
31939 { NULL, NULL, 0, NULL }
31940 };
31941
31942
31943 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31944
31945 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
31946 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
31947 }
31948 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
31949 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
31950 }
31951 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
31952 return (void *)((wxLocale *) ((wxPyLocale *) x));
31953 }
31954 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
31955 return (void *)((wxGDIObject *) ((wxIcon *) x));
31956 }
31957 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
31958 return (void *)((wxGDIObject *) ((wxPalette *) x));
31959 }
31960 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
31961 return (void *)((wxGDIObject *) ((wxPen *) x));
31962 }
31963 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
31964 return (void *)((wxGDIObject *) ((wxFont *) x));
31965 }
31966 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
31967 return (void *)((wxGDIObject *) ((wxCursor *) x));
31968 }
31969 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
31970 return (void *)((wxGDIObject *) ((wxBitmap *) x));
31971 }
31972 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
31973 return (void *)((wxGDIObject *) ((wxRegion *) x));
31974 }
31975 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
31976 return (void *)((wxGDIObject *) ((wxBrush *) x));
31977 }
31978 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
31979 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
31980 }
31981 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
31982 return (void *)((wxDC *) ((wxScreenDC *) x));
31983 }
31984 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
31985 return (void *)((wxDC *) ((wxMirrorDC *) x));
31986 }
31987 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
31988 return (void *)((wxDC *) ((wxMemoryDC *) x));
31989 }
31990 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
31991 return (void *)((wxDC *) ((wxWindowDC *) x));
31992 }
31993 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
31994 return (void *)((wxDC *) ((wxMetaFileDC *) x));
31995 }
31996 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
31997 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31998 }
31999 static void *_p_wxClientDCTo_p_wxDC(void *x) {
32000 return (void *)((wxDC *) ((wxClientDC *) x));
32001 }
32002 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
32003 return (void *)((wxDC *) ((wxPaintDC *) x));
32004 }
32005 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
32006 return (void *)((wxDC *) ((wxPostScriptDC *) x));
32007 }
32008 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
32009 return (void *)((wxDC *) ((wxPrinterDC *) x));
32010 }
32011 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
32012 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
32013 }
32014 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
32015 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
32016 }
32017 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
32018 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
32019 }
32020 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
32021 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
32022 }
32023 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32024 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32025 }
32026 static void *_p_wxPenTo_p_wxObject(void *x) {
32027 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
32028 }
32029 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
32030 return (void *)((wxObject *) ((wxRegionIterator *) x));
32031 }
32032 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32033 return (void *)((wxObject *) ((wxSizerItem *) x));
32034 }
32035 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32036 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32037 }
32038 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32039 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32040 }
32041 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32042 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32043 }
32044 static void *_p_wxIconTo_p_wxObject(void *x) {
32045 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
32046 }
32047 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32048 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32049 }
32050 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32051 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32052 }
32053 static void *_p_wxSizerTo_p_wxObject(void *x) {
32054 return (void *)((wxObject *) ((wxSizer *) x));
32055 }
32056 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32057 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32058 }
32059 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32060 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32061 }
32062 static void *_p_wxEventTo_p_wxObject(void *x) {
32063 return (void *)((wxObject *) ((wxEvent *) x));
32064 }
32065 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32066 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32067 }
32068 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32069 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32070 }
32071 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32072 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32073 }
32074 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
32075 return (void *)((wxObject *) ((wxPseudoDC *) x));
32076 }
32077 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
32078 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
32079 }
32080 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32081 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32082 }
32083 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32084 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32085 }
32086 static void *_p_wxDCTo_p_wxObject(void *x) {
32087 return (void *)((wxObject *) ((wxDC *) x));
32088 }
32089 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32090 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32091 }
32092 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32093 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32094 }
32095 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32096 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32097 }
32098 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32099 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32100 }
32101 static void *_p_wxControlTo_p_wxObject(void *x) {
32102 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32103 }
32104 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32105 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32106 }
32107 static void *_p_wxClientDCTo_p_wxObject(void *x) {
32108 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
32109 }
32110 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32111 return (void *)((wxObject *) ((wxFSFile *) x));
32112 }
32113 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
32114 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
32115 }
32116 static void *_p_wxRegionTo_p_wxObject(void *x) {
32117 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
32118 }
32119 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32120 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32121 }
32122 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
32123 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
32124 }
32125 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
32126 return (void *)((wxObject *) ((wxGDIObject *) x));
32127 }
32128 static void *_p_wxEffectsTo_p_wxObject(void *x) {
32129 return (void *)((wxObject *) ((wxEffects *) x));
32130 }
32131 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32132 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32133 }
32134 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32135 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32136 }
32137 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
32138 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
32139 }
32140 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32141 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32142 }
32143 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32144 return (void *)((wxObject *) ((wxMenuItem *) x));
32145 }
32146 static void *_p_wxDateEventTo_p_wxObject(void *x) {
32147 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
32148 }
32149 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32150 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32151 }
32152 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32153 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32154 }
32155 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32156 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32157 }
32158 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32159 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32160 }
32161 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32162 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32163 }
32164 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32165 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32166 }
32167 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32168 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32169 }
32170 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32171 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32172 }
32173 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32174 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32175 }
32176 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32177 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32178 }
32179 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32180 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32181 }
32182 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32183 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32184 }
32185 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32186 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32187 }
32188 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32189 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32190 }
32191 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32192 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32193 }
32194 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32195 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32196 }
32197 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32198 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32199 }
32200 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
32201 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
32202 }
32203 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32204 return (void *)((wxObject *) ((wxImageHandler *) x));
32205 }
32206 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32207 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32208 }
32209 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32210 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32211 }
32212 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32213 return (void *)((wxObject *) ((wxEvtHandler *) x));
32214 }
32215 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
32216 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
32217 }
32218 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
32219 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32220 }
32221 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
32222 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
32223 }
32224 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
32225 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
32226 }
32227 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
32228 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
32229 }
32230 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
32231 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
32232 }
32233 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32234 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32235 }
32236 static void *_p_wxImageTo_p_wxObject(void *x) {
32237 return (void *)((wxObject *) ((wxImage *) x));
32238 }
32239 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32240 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32241 }
32242 static void *_p_wxPaletteTo_p_wxObject(void *x) {
32243 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
32244 }
32245 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
32246 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
32247 }
32248 static void *_p_wxImageListTo_p_wxObject(void *x) {
32249 return (void *)((wxObject *) ((wxImageList *) x));
32250 }
32251 static void *_p_wxCursorTo_p_wxObject(void *x) {
32252 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
32253 }
32254 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
32255 return (void *)((wxObject *) ((wxEncodingConverter *) x));
32256 }
32257 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
32258 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
32259 }
32260 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32261 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32262 }
32263 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32264 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32265 }
32266 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32267 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32268 }
32269 static void *_p_wxWindowTo_p_wxObject(void *x) {
32270 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32271 }
32272 static void *_p_wxMenuTo_p_wxObject(void *x) {
32273 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32274 }
32275 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32276 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32277 }
32278 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
32279 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
32280 }
32281 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32282 return (void *)((wxObject *) ((wxFileSystem *) x));
32283 }
32284 static void *_p_wxBitmapTo_p_wxObject(void *x) {
32285 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
32286 }
32287 static void *_p_wxMaskTo_p_wxObject(void *x) {
32288 return (void *)((wxObject *) ((wxMask *) x));
32289 }
32290 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32291 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32292 }
32293 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32294 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32295 }
32296 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32297 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32298 }
32299 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32300 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32301 }
32302 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32303 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32304 }
32305 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32306 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32307 }
32308 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32309 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32310 }
32311 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32312 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32313 }
32314 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32315 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32316 }
32317 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32318 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32319 }
32320 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32321 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32322 }
32323 static void *_p_wxFontTo_p_wxObject(void *x) {
32324 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
32325 }
32326 static void *_p_wxBrushTo_p_wxObject(void *x) {
32327 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
32328 }
32329 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
32330 return (void *)((wxObject *) ((wxMetaFile *) x));
32331 }
32332 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32333 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32334 }
32335 static void *_p_wxColourTo_p_wxObject(void *x) {
32336 return (void *)((wxObject *) ((wxColour *) x));
32337 }
32338 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32339 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32340 }
32341 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32342 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32343 }
32344 static void *_p_wxControlTo_p_wxWindow(void *x) {
32345 return (void *)((wxWindow *) ((wxControl *) x));
32346 }
32347 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32348 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32349 }
32350 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32351 return (void *)((wxWindow *) ((wxMenuBar *) x));
32352 }
32353 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
32354 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
32355 }
32356 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
32357 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
32358 }
32359 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
32360 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
32361 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
32362 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};
32363 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
32364 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
32365 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
32366 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
32367 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
32368 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
32369 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
32370 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
32371 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
32372 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
32373 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
32374 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
32375 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
32376 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
32377 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
32378 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
32379 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
32380 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
32381 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
32382 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
32383 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
32384 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
32385 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
32386 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
32387 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
32388 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
32389 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
32390 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
32391 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
32392 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
32393 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
32394 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
32395 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
32396 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
32397 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
32398 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
32399 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
32400 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
32401 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
32402 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
32403 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
32404 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
32405 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
32406 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
32407 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
32408 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
32409 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
32410 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
32411 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
32412 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
32413 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
32414 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
32415 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
32416 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
32417 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
32418 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
32419 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
32420 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
32421 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
32422 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
32423 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
32424 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
32425 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
32426 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
32427 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
32428 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
32429 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
32430 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
32431 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
32432 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
32433 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
32434 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
32435 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
32436 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
32437 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
32438 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
32439 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
32440 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
32441 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
32442 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
32443 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
32444 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
32445 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
32446 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
32447 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
32448 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
32449 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
32450 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
32451 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
32452 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
32453 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
32454 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
32455 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
32456 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
32457 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
32458 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
32459 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
32460 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
32461 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
32462 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
32463 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
32464 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
32465 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
32466 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
32467 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
32468 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
32469 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
32470 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
32471 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
32472 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
32473 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
32474 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
32475 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
32476 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
32477 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
32478 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
32479 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
32480 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
32481 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
32482 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
32483 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
32484 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
32485 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
32486 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
32487 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
32488 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
32489 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
32490 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
32491 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
32492 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
32493 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
32494 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
32495 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
32496 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
32497 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
32498 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
32499 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
32500 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
32501 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
32502 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
32503 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
32504 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
32505 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
32506 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
32507 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
32508
32509 static swig_type_info *swig_type_initial[] = {
32510 &_swigt__p_buffer,
32511 &_swigt__p_char,
32512 &_swigt__p_double,
32513 &_swigt__p_form_ops_t,
32514 &_swigt__p_int,
32515 &_swigt__p_unsigned_char,
32516 &_swigt__p_unsigned_int,
32517 &_swigt__p_unsigned_long,
32518 &_swigt__p_wxANIHandler,
32519 &_swigt__p_wxAcceleratorTable,
32520 &_swigt__p_wxActivateEvent,
32521 &_swigt__p_wxAlphaPixelData,
32522 &_swigt__p_wxAlphaPixelData_Accessor,
32523 &_swigt__p_wxBMPHandler,
32524 &_swigt__p_wxBitmap,
32525 &_swigt__p_wxBoxSizer,
32526 &_swigt__p_wxBrush,
32527 &_swigt__p_wxBrushList,
32528 &_swigt__p_wxBufferedDC,
32529 &_swigt__p_wxBufferedPaintDC,
32530 &_swigt__p_wxCURHandler,
32531 &_swigt__p_wxChar,
32532 &_swigt__p_wxChildFocusEvent,
32533 &_swigt__p_wxClientDC,
32534 &_swigt__p_wxClipboardTextEvent,
32535 &_swigt__p_wxCloseEvent,
32536 &_swigt__p_wxColour,
32537 &_swigt__p_wxColourDatabase,
32538 &_swigt__p_wxCommandEvent,
32539 &_swigt__p_wxContextMenuEvent,
32540 &_swigt__p_wxControl,
32541 &_swigt__p_wxControlWithItems,
32542 &_swigt__p_wxCursor,
32543 &_swigt__p_wxDC,
32544 &_swigt__p_wxDash,
32545 &_swigt__p_wxDateEvent,
32546 &_swigt__p_wxDisplayChangedEvent,
32547 &_swigt__p_wxDropFilesEvent,
32548 &_swigt__p_wxDuplexMode,
32549 &_swigt__p_wxEffects,
32550 &_swigt__p_wxEncodingConverter,
32551 &_swigt__p_wxEraseEvent,
32552 &_swigt__p_wxEvent,
32553 &_swigt__p_wxEvtHandler,
32554 &_swigt__p_wxFSFile,
32555 &_swigt__p_wxFileSystem,
32556 &_swigt__p_wxFlexGridSizer,
32557 &_swigt__p_wxFocusEvent,
32558 &_swigt__p_wxFont,
32559 &_swigt__p_wxFontList,
32560 &_swigt__p_wxFontMapper,
32561 &_swigt__p_wxGBSizerItem,
32562 &_swigt__p_wxGDIObjListBase,
32563 &_swigt__p_wxGDIObject,
32564 &_swigt__p_wxGIFHandler,
32565 &_swigt__p_wxGridBagSizer,
32566 &_swigt__p_wxGridSizer,
32567 &_swigt__p_wxHeaderButtonParams,
32568 &_swigt__p_wxICOHandler,
32569 &_swigt__p_wxIcon,
32570 &_swigt__p_wxIconBundle,
32571 &_swigt__p_wxIconLocation,
32572 &_swigt__p_wxIconizeEvent,
32573 &_swigt__p_wxIdleEvent,
32574 &_swigt__p_wxImage,
32575 &_swigt__p_wxImageHandler,
32576 &_swigt__p_wxImageList,
32577 &_swigt__p_wxIndividualLayoutConstraint,
32578 &_swigt__p_wxInitDialogEvent,
32579 &_swigt__p_wxJPEGHandler,
32580 &_swigt__p_wxKeyEvent,
32581 &_swigt__p_wxLanguageInfo,
32582 &_swigt__p_wxLayoutConstraints,
32583 &_swigt__p_wxLocale,
32584 &_swigt__p_wxMask,
32585 &_swigt__p_wxMaximizeEvent,
32586 &_swigt__p_wxMemoryDC,
32587 &_swigt__p_wxMenu,
32588 &_swigt__p_wxMenuBar,
32589 &_swigt__p_wxMenuEvent,
32590 &_swigt__p_wxMenuItem,
32591 &_swigt__p_wxMetaFile,
32592 &_swigt__p_wxMetaFileDC,
32593 &_swigt__p_wxMirrorDC,
32594 &_swigt__p_wxMouseCaptureChangedEvent,
32595 &_swigt__p_wxMouseCaptureLostEvent,
32596 &_swigt__p_wxMouseEvent,
32597 &_swigt__p_wxMoveEvent,
32598 &_swigt__p_wxNativeEncodingInfo,
32599 &_swigt__p_wxNativeFontInfo,
32600 &_swigt__p_wxNativePixelData,
32601 &_swigt__p_wxNativePixelData_Accessor,
32602 &_swigt__p_wxNavigationKeyEvent,
32603 &_swigt__p_wxNcPaintEvent,
32604 &_swigt__p_wxNotifyEvent,
32605 &_swigt__p_wxObject,
32606 &_swigt__p_wxPCXHandler,
32607 &_swigt__p_wxPNGHandler,
32608 &_swigt__p_wxPNMHandler,
32609 &_swigt__p_wxPaintDC,
32610 &_swigt__p_wxPaintEvent,
32611 &_swigt__p_wxPalette,
32612 &_swigt__p_wxPaletteChangedEvent,
32613 &_swigt__p_wxPaperSize,
32614 &_swigt__p_wxPen,
32615 &_swigt__p_wxPenList,
32616 &_swigt__p_wxPixelDataBase,
32617 &_swigt__p_wxPoint,
32618 &_swigt__p_wxPostScriptDC,
32619 &_swigt__p_wxPrintData,
32620 &_swigt__p_wxPrinterDC,
32621 &_swigt__p_wxPseudoDC,
32622 &_swigt__p_wxPyApp,
32623 &_swigt__p_wxPyCommandEvent,
32624 &_swigt__p_wxPyEvent,
32625 &_swigt__p_wxPyFontEnumerator,
32626 &_swigt__p_wxPyImageHandler,
32627 &_swigt__p_wxPyLocale,
32628 &_swigt__p_wxPySizer,
32629 &_swigt__p_wxPyValidator,
32630 &_swigt__p_wxQueryNewPaletteEvent,
32631 &_swigt__p_wxRect,
32632 &_swigt__p_wxRegion,
32633 &_swigt__p_wxRegionIterator,
32634 &_swigt__p_wxRendererNative,
32635 &_swigt__p_wxRendererVersion,
32636 &_swigt__p_wxScreenDC,
32637 &_swigt__p_wxScrollEvent,
32638 &_swigt__p_wxScrollWinEvent,
32639 &_swigt__p_wxSetCursorEvent,
32640 &_swigt__p_wxShowEvent,
32641 &_swigt__p_wxSize,
32642 &_swigt__p_wxSizeEvent,
32643 &_swigt__p_wxSizer,
32644 &_swigt__p_wxSizerItem,
32645 &_swigt__p_wxSplitterRenderParams,
32646 &_swigt__p_wxStaticBoxSizer,
32647 &_swigt__p_wxStdDialogButtonSizer,
32648 &_swigt__p_wxStockGDI,
32649 &_swigt__p_wxString,
32650 &_swigt__p_wxSysColourChangedEvent,
32651 &_swigt__p_wxTIFFHandler,
32652 &_swigt__p_wxUpdateUIEvent,
32653 &_swigt__p_wxValidator,
32654 &_swigt__p_wxWindow,
32655 &_swigt__p_wxWindowCreateEvent,
32656 &_swigt__p_wxWindowDC,
32657 &_swigt__p_wxWindowDestroyEvent,
32658 &_swigt__p_wxXPMHandler,
32659 };
32660
32661 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
32662 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
32663 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
32664 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
32665 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
32666 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
32667 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
32668 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
32669 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
32670 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32671 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
32672 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
32673 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
32674 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}};
32675 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32676 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
32677 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
32678 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
32679 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
32680 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
32681 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}};
32682 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
32683 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
32684 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
32685 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
32686 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
32687 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
32688 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
32689 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}};
32690 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}};
32691 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
32692 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
32693 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
32694 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
32695 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32696 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32697 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
32698 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}};
32699 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32700 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}};
32701 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32702 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32703 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32704 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32705 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
32706 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32707 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32708 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
32709 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32710 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32711 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
32712 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
32713 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32714 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32715 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
32716 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
32717 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
32718 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
32719 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
32720 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32721 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32722 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
32723 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
32724 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32725 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32726 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32727 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32728 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32729 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32730 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
32731 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
32732 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
32733 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
32734 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
32735 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
32736 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
32737 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
32738 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
32739 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
32740 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
32741 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
32742 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32743 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32744 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32745 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
32746 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
32747 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
32748 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
32749 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
32750 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
32751 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32752 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32753 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
32754 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
32755 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
32756 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
32757 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
32758 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
32759 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
32760 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
32761 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
32762 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
32763 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
32764 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
32765 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
32766 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32767 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32768 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
32769 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
32770 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32771 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32772 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
32773 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
32774 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
32775 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
32776 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32777 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32778 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
32779 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32780 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32781 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
32782 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
32783 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
32784 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}};
32785 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32786 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
32787 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
32788 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
32789 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
32790 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}};
32791 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
32792 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
32793 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
32794 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
32795 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
32796 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
32797 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
32798 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
32799 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
32800 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
32801 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
32802 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
32803 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
32804 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
32805 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
32806 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
32807 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
32808 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}};
32809 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
32810
32811 static swig_cast_info *swig_cast_initial[] = {
32812 _swigc__p_buffer,
32813 _swigc__p_char,
32814 _swigc__p_double,
32815 _swigc__p_form_ops_t,
32816 _swigc__p_int,
32817 _swigc__p_unsigned_char,
32818 _swigc__p_unsigned_int,
32819 _swigc__p_unsigned_long,
32820 _swigc__p_wxANIHandler,
32821 _swigc__p_wxAcceleratorTable,
32822 _swigc__p_wxActivateEvent,
32823 _swigc__p_wxAlphaPixelData,
32824 _swigc__p_wxAlphaPixelData_Accessor,
32825 _swigc__p_wxBMPHandler,
32826 _swigc__p_wxBitmap,
32827 _swigc__p_wxBoxSizer,
32828 _swigc__p_wxBrush,
32829 _swigc__p_wxBrushList,
32830 _swigc__p_wxBufferedDC,
32831 _swigc__p_wxBufferedPaintDC,
32832 _swigc__p_wxCURHandler,
32833 _swigc__p_wxChar,
32834 _swigc__p_wxChildFocusEvent,
32835 _swigc__p_wxClientDC,
32836 _swigc__p_wxClipboardTextEvent,
32837 _swigc__p_wxCloseEvent,
32838 _swigc__p_wxColour,
32839 _swigc__p_wxColourDatabase,
32840 _swigc__p_wxCommandEvent,
32841 _swigc__p_wxContextMenuEvent,
32842 _swigc__p_wxControl,
32843 _swigc__p_wxControlWithItems,
32844 _swigc__p_wxCursor,
32845 _swigc__p_wxDC,
32846 _swigc__p_wxDash,
32847 _swigc__p_wxDateEvent,
32848 _swigc__p_wxDisplayChangedEvent,
32849 _swigc__p_wxDropFilesEvent,
32850 _swigc__p_wxDuplexMode,
32851 _swigc__p_wxEffects,
32852 _swigc__p_wxEncodingConverter,
32853 _swigc__p_wxEraseEvent,
32854 _swigc__p_wxEvent,
32855 _swigc__p_wxEvtHandler,
32856 _swigc__p_wxFSFile,
32857 _swigc__p_wxFileSystem,
32858 _swigc__p_wxFlexGridSizer,
32859 _swigc__p_wxFocusEvent,
32860 _swigc__p_wxFont,
32861 _swigc__p_wxFontList,
32862 _swigc__p_wxFontMapper,
32863 _swigc__p_wxGBSizerItem,
32864 _swigc__p_wxGDIObjListBase,
32865 _swigc__p_wxGDIObject,
32866 _swigc__p_wxGIFHandler,
32867 _swigc__p_wxGridBagSizer,
32868 _swigc__p_wxGridSizer,
32869 _swigc__p_wxHeaderButtonParams,
32870 _swigc__p_wxICOHandler,
32871 _swigc__p_wxIcon,
32872 _swigc__p_wxIconBundle,
32873 _swigc__p_wxIconLocation,
32874 _swigc__p_wxIconizeEvent,
32875 _swigc__p_wxIdleEvent,
32876 _swigc__p_wxImage,
32877 _swigc__p_wxImageHandler,
32878 _swigc__p_wxImageList,
32879 _swigc__p_wxIndividualLayoutConstraint,
32880 _swigc__p_wxInitDialogEvent,
32881 _swigc__p_wxJPEGHandler,
32882 _swigc__p_wxKeyEvent,
32883 _swigc__p_wxLanguageInfo,
32884 _swigc__p_wxLayoutConstraints,
32885 _swigc__p_wxLocale,
32886 _swigc__p_wxMask,
32887 _swigc__p_wxMaximizeEvent,
32888 _swigc__p_wxMemoryDC,
32889 _swigc__p_wxMenu,
32890 _swigc__p_wxMenuBar,
32891 _swigc__p_wxMenuEvent,
32892 _swigc__p_wxMenuItem,
32893 _swigc__p_wxMetaFile,
32894 _swigc__p_wxMetaFileDC,
32895 _swigc__p_wxMirrorDC,
32896 _swigc__p_wxMouseCaptureChangedEvent,
32897 _swigc__p_wxMouseCaptureLostEvent,
32898 _swigc__p_wxMouseEvent,
32899 _swigc__p_wxMoveEvent,
32900 _swigc__p_wxNativeEncodingInfo,
32901 _swigc__p_wxNativeFontInfo,
32902 _swigc__p_wxNativePixelData,
32903 _swigc__p_wxNativePixelData_Accessor,
32904 _swigc__p_wxNavigationKeyEvent,
32905 _swigc__p_wxNcPaintEvent,
32906 _swigc__p_wxNotifyEvent,
32907 _swigc__p_wxObject,
32908 _swigc__p_wxPCXHandler,
32909 _swigc__p_wxPNGHandler,
32910 _swigc__p_wxPNMHandler,
32911 _swigc__p_wxPaintDC,
32912 _swigc__p_wxPaintEvent,
32913 _swigc__p_wxPalette,
32914 _swigc__p_wxPaletteChangedEvent,
32915 _swigc__p_wxPaperSize,
32916 _swigc__p_wxPen,
32917 _swigc__p_wxPenList,
32918 _swigc__p_wxPixelDataBase,
32919 _swigc__p_wxPoint,
32920 _swigc__p_wxPostScriptDC,
32921 _swigc__p_wxPrintData,
32922 _swigc__p_wxPrinterDC,
32923 _swigc__p_wxPseudoDC,
32924 _swigc__p_wxPyApp,
32925 _swigc__p_wxPyCommandEvent,
32926 _swigc__p_wxPyEvent,
32927 _swigc__p_wxPyFontEnumerator,
32928 _swigc__p_wxPyImageHandler,
32929 _swigc__p_wxPyLocale,
32930 _swigc__p_wxPySizer,
32931 _swigc__p_wxPyValidator,
32932 _swigc__p_wxQueryNewPaletteEvent,
32933 _swigc__p_wxRect,
32934 _swigc__p_wxRegion,
32935 _swigc__p_wxRegionIterator,
32936 _swigc__p_wxRendererNative,
32937 _swigc__p_wxRendererVersion,
32938 _swigc__p_wxScreenDC,
32939 _swigc__p_wxScrollEvent,
32940 _swigc__p_wxScrollWinEvent,
32941 _swigc__p_wxSetCursorEvent,
32942 _swigc__p_wxShowEvent,
32943 _swigc__p_wxSize,
32944 _swigc__p_wxSizeEvent,
32945 _swigc__p_wxSizer,
32946 _swigc__p_wxSizerItem,
32947 _swigc__p_wxSplitterRenderParams,
32948 _swigc__p_wxStaticBoxSizer,
32949 _swigc__p_wxStdDialogButtonSizer,
32950 _swigc__p_wxStockGDI,
32951 _swigc__p_wxString,
32952 _swigc__p_wxSysColourChangedEvent,
32953 _swigc__p_wxTIFFHandler,
32954 _swigc__p_wxUpdateUIEvent,
32955 _swigc__p_wxValidator,
32956 _swigc__p_wxWindow,
32957 _swigc__p_wxWindowCreateEvent,
32958 _swigc__p_wxWindowDC,
32959 _swigc__p_wxWindowDestroyEvent,
32960 _swigc__p_wxXPMHandler,
32961 };
32962
32963
32964 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32965
32966 static swig_const_info swig_const_table[] = {
32967 {0, 0, 0, 0.0, 0, 0}};
32968
32969 #ifdef __cplusplus
32970 }
32971 #endif
32972 /* -----------------------------------------------------------------------------
32973 * Type initialization:
32974 * This problem is tough by the requirement that no dynamic
32975 * memory is used. Also, since swig_type_info structures store pointers to
32976 * swig_cast_info structures and swig_cast_info structures store pointers back
32977 * to swig_type_info structures, we need some lookup code at initialization.
32978 * The idea is that swig generates all the structures that are needed.
32979 * The runtime then collects these partially filled structures.
32980 * The SWIG_InitializeModule function takes these initial arrays out of
32981 * swig_module, and does all the lookup, filling in the swig_module.types
32982 * array with the correct data and linking the correct swig_cast_info
32983 * structures together.
32984 *
32985 * The generated swig_type_info structures are assigned staticly to an initial
32986 * array. We just loop though that array, and handle each type individually.
32987 * First we lookup if this type has been already loaded, and if so, use the
32988 * loaded structure instead of the generated one. Then we have to fill in the
32989 * cast linked list. The cast data is initially stored in something like a
32990 * two-dimensional array. Each row corresponds to a type (there are the same
32991 * number of rows as there are in the swig_type_initial array). Each entry in
32992 * a column is one of the swig_cast_info structures for that type.
32993 * The cast_initial array is actually an array of arrays, because each row has
32994 * a variable number of columns. So to actually build the cast linked list,
32995 * we find the array of casts associated with the type, and loop through it
32996 * adding the casts to the list. The one last trick we need to do is making
32997 * sure the type pointer in the swig_cast_info struct is correct.
32998 *
32999 * First off, we lookup the cast->type name to see if it is already loaded.
33000 * There are three cases to handle:
33001 * 1) If the cast->type has already been loaded AND the type we are adding
33002 * casting info to has not been loaded (it is in this module), THEN we
33003 * replace the cast->type pointer with the type pointer that has already
33004 * been loaded.
33005 * 2) If BOTH types (the one we are adding casting info to, and the
33006 * cast->type) are loaded, THEN the cast info has already been loaded by
33007 * the previous module so we just ignore it.
33008 * 3) Finally, if cast->type has not already been loaded, then we add that
33009 * swig_cast_info to the linked list (because the cast->type) pointer will
33010 * be correct.
33011 * ----------------------------------------------------------------------------- */
33012
33013 #ifdef __cplusplus
33014 extern "C" {
33015 #if 0
33016 } /* c-mode */
33017 #endif
33018 #endif
33019
33020 #if 0
33021 #define SWIGRUNTIME_DEBUG
33022 #endif
33023
33024 SWIGRUNTIME void
33025 SWIG_InitializeModule(void *clientdata) {
33026 size_t i;
33027 swig_module_info *module_head;
33028 static int init_run = 0;
33029
33030 clientdata = clientdata;
33031
33032 if (init_run) return;
33033 init_run = 1;
33034
33035 /* Initialize the swig_module */
33036 swig_module.type_initial = swig_type_initial;
33037 swig_module.cast_initial = swig_cast_initial;
33038
33039 /* Try and load any already created modules */
33040 module_head = SWIG_GetModule(clientdata);
33041 if (module_head) {
33042 swig_module.next = module_head->next;
33043 module_head->next = &swig_module;
33044 } else {
33045 /* This is the first module loaded */
33046 swig_module.next = &swig_module;
33047 SWIG_SetModule(clientdata, &swig_module);
33048 }
33049
33050 /* Now work on filling in swig_module.types */
33051 #ifdef SWIGRUNTIME_DEBUG
33052 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
33053 #endif
33054 for (i = 0; i < swig_module.size; ++i) {
33055 swig_type_info *type = 0;
33056 swig_type_info *ret;
33057 swig_cast_info *cast;
33058
33059 #ifdef SWIGRUNTIME_DEBUG
33060 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33061 #endif
33062
33063 /* if there is another module already loaded */
33064 if (swig_module.next != &swig_module) {
33065 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
33066 }
33067 if (type) {
33068 /* Overwrite clientdata field */
33069 #ifdef SWIGRUNTIME_DEBUG
33070 printf("SWIG_InitializeModule: found type %s\n", type->name);
33071 #endif
33072 if (swig_module.type_initial[i]->clientdata) {
33073 type->clientdata = swig_module.type_initial[i]->clientdata;
33074 #ifdef SWIGRUNTIME_DEBUG
33075 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
33076 #endif
33077 }
33078 } else {
33079 type = swig_module.type_initial[i];
33080 }
33081
33082 /* Insert casting types */
33083 cast = swig_module.cast_initial[i];
33084 while (cast->type) {
33085 /* Don't need to add information already in the list */
33086 ret = 0;
33087 #ifdef SWIGRUNTIME_DEBUG
33088 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
33089 #endif
33090 if (swig_module.next != &swig_module) {
33091 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
33092 #ifdef SWIGRUNTIME_DEBUG
33093 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
33094 #endif
33095 }
33096 if (ret) {
33097 if (type == swig_module.type_initial[i]) {
33098 #ifdef SWIGRUNTIME_DEBUG
33099 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
33100 #endif
33101 cast->type = ret;
33102 ret = 0;
33103 } else {
33104 /* Check for casting already in the list */
33105 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
33106 #ifdef SWIGRUNTIME_DEBUG
33107 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
33108 #endif
33109 if (!ocast) ret = 0;
33110 }
33111 }
33112
33113 if (!ret) {
33114 #ifdef SWIGRUNTIME_DEBUG
33115 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
33116 #endif
33117 if (type->cast) {
33118 type->cast->prev = cast;
33119 cast->next = type->cast;
33120 }
33121 type->cast = cast;
33122 }
33123 cast++;
33124 }
33125 /* Set entry in modules->types array equal to the type */
33126 swig_module.types[i] = type;
33127 }
33128 swig_module.types[i] = 0;
33129
33130 #ifdef SWIGRUNTIME_DEBUG
33131 printf("**** SWIG_InitializeModule: Cast List ******\n");
33132 for (i = 0; i < swig_module.size; ++i) {
33133 int j = 0;
33134 swig_cast_info *cast = swig_module.cast_initial[i];
33135 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33136 while (cast->type) {
33137 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
33138 cast++;
33139 ++j;
33140 }
33141 printf("---- Total casts: %d\n",j);
33142 }
33143 printf("**** SWIG_InitializeModule: Cast List ******\n");
33144 #endif
33145 }
33146
33147 /* This function will propagate the clientdata field of type to
33148 * any new swig_type_info structures that have been added into the list
33149 * of equivalent types. It is like calling
33150 * SWIG_TypeClientData(type, clientdata) a second time.
33151 */
33152 SWIGRUNTIME void
33153 SWIG_PropagateClientData(void) {
33154 size_t i;
33155 swig_cast_info *equiv;
33156 static int init_run = 0;
33157
33158 if (init_run) return;
33159 init_run = 1;
33160
33161 for (i = 0; i < swig_module.size; i++) {
33162 if (swig_module.types[i]->clientdata) {
33163 equiv = swig_module.types[i]->cast;
33164 while (equiv) {
33165 if (!equiv->converter) {
33166 if (equiv->type && !equiv->type->clientdata)
33167 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
33168 }
33169 equiv = equiv->next;
33170 }
33171 }
33172 }
33173 }
33174
33175 #ifdef __cplusplus
33176 #if 0
33177 {
33178 /* c-mode */
33179 #endif
33180 }
33181 #endif
33182
33183
33184
33185 #ifdef __cplusplus
33186 extern "C" {
33187 #endif
33188
33189 /* Python-specific SWIG API */
33190 #define SWIG_newvarlink() SWIG_Python_newvarlink()
33191 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
33192 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
33193
33194 /* -----------------------------------------------------------------------------
33195 * global variable support code.
33196 * ----------------------------------------------------------------------------- */
33197
33198 typedef struct swig_globalvar {
33199 char *name; /* Name of global variable */
33200 PyObject *(*get_attr)(void); /* Return the current value */
33201 int (*set_attr)(PyObject *); /* Set the value */
33202 struct swig_globalvar *next;
33203 } swig_globalvar;
33204
33205 typedef struct swig_varlinkobject {
33206 PyObject_HEAD
33207 swig_globalvar *vars;
33208 } swig_varlinkobject;
33209
33210 SWIGINTERN PyObject *
33211 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
33212 return PyString_FromString("<Swig global variables>");
33213 }
33214
33215 SWIGINTERN PyObject *
33216 swig_varlink_str(swig_varlinkobject *v) {
33217 PyObject *str = PyString_FromString("(");
33218 swig_globalvar *var;
33219 for (var = v->vars; var; var=var->next) {
33220 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
33221 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
33222 }
33223 PyString_ConcatAndDel(&str,PyString_FromString(")"));
33224 return str;
33225 }
33226
33227 SWIGINTERN int
33228 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
33229 PyObject *str = swig_varlink_str(v);
33230 fprintf(fp,"Swig global variables ");
33231 fprintf(fp,"%s\n", PyString_AsString(str));
33232 Py_DECREF(str);
33233 return 0;
33234 }
33235
33236 SWIGINTERN void
33237 swig_varlink_dealloc(swig_varlinkobject *v) {
33238 swig_globalvar *var = v->vars;
33239 while (var) {
33240 swig_globalvar *n = var->next;
33241 free(var->name);
33242 free(var);
33243 var = n;
33244 }
33245 }
33246
33247 SWIGINTERN PyObject *
33248 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
33249 PyObject *res = NULL;
33250 swig_globalvar *var = v->vars;
33251 while (var) {
33252 if (strcmp(var->name,n) == 0) {
33253 res = (*var->get_attr)();
33254 break;
33255 }
33256 var = var->next;
33257 }
33258 if (res == NULL && !PyErr_Occurred()) {
33259 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
33260 }
33261 return res;
33262 }
33263
33264 SWIGINTERN int
33265 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
33266 int res = 1;
33267 swig_globalvar *var = v->vars;
33268 while (var) {
33269 if (strcmp(var->name,n) == 0) {
33270 res = (*var->set_attr)(p);
33271 break;
33272 }
33273 var = var->next;
33274 }
33275 if (res == 1 && !PyErr_Occurred()) {
33276 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
33277 }
33278 return res;
33279 }
33280
33281 SWIGINTERN PyTypeObject*
33282 swig_varlink_type(void) {
33283 static char varlink__doc__[] = "Swig var link object";
33284 static PyTypeObject varlink_type;
33285 static int type_init = 0;
33286 if (!type_init) {
33287 const PyTypeObject tmp
33288 = {
33289 PyObject_HEAD_INIT(NULL)
33290 0, /* Number of items in variable part (ob_size) */
33291 (char *)"swigvarlink", /* Type name (tp_name) */
33292 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
33293 0, /* Itemsize (tp_itemsize) */
33294 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
33295 (printfunc) swig_varlink_print, /* Print (tp_print) */
33296 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
33297 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
33298 0, /* tp_compare */
33299 (reprfunc) swig_varlink_repr, /* tp_repr */
33300 0, /* tp_as_number */
33301 0, /* tp_as_sequence */
33302 0, /* tp_as_mapping */
33303 0, /* tp_hash */
33304 0, /* tp_call */
33305 (reprfunc)swig_varlink_str, /* tp_str */
33306 0, /* tp_getattro */
33307 0, /* tp_setattro */
33308 0, /* tp_as_buffer */
33309 0, /* tp_flags */
33310 varlink__doc__, /* tp_doc */
33311 0, /* tp_traverse */
33312 0, /* tp_clear */
33313 0, /* tp_richcompare */
33314 0, /* tp_weaklistoffset */
33315 #if PY_VERSION_HEX >= 0x02020000
33316 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
33317 #endif
33318 #if PY_VERSION_HEX >= 0x02030000
33319 0, /* tp_del */
33320 #endif
33321 #ifdef COUNT_ALLOCS
33322 0,0,0,0 /* tp_alloc -> tp_next */
33323 #endif
33324 };
33325 varlink_type = tmp;
33326 varlink_type.ob_type = &PyType_Type;
33327 type_init = 1;
33328 }
33329 return &varlink_type;
33330 }
33331
33332 /* Create a variable linking object for use later */
33333 SWIGINTERN PyObject *
33334 SWIG_Python_newvarlink(void) {
33335 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
33336 if (result) {
33337 result->vars = 0;
33338 }
33339 return ((PyObject*) result);
33340 }
33341
33342 SWIGINTERN void
33343 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
33344 swig_varlinkobject *v = (swig_varlinkobject *) p;
33345 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
33346 if (gv) {
33347 size_t size = strlen(name)+1;
33348 gv->name = (char *)malloc(size);
33349 if (gv->name) {
33350 strncpy(gv->name,name,size);
33351 gv->get_attr = get_attr;
33352 gv->set_attr = set_attr;
33353 gv->next = v->vars;
33354 }
33355 }
33356 v->vars = gv;
33357 }
33358
33359 SWIGINTERN PyObject *
33360 SWIG_globals() {
33361 static PyObject *_SWIG_globals = 0;
33362 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
33363 return _SWIG_globals;
33364 }
33365
33366 /* -----------------------------------------------------------------------------
33367 * constants/methods manipulation
33368 * ----------------------------------------------------------------------------- */
33369
33370 /* Install Constants */
33371 SWIGINTERN void
33372 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
33373 PyObject *obj = 0;
33374 size_t i;
33375 for (i = 0; constants[i].type; ++i) {
33376 switch(constants[i].type) {
33377 case SWIG_PY_POINTER:
33378 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
33379 break;
33380 case SWIG_PY_BINARY:
33381 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
33382 break;
33383 default:
33384 obj = 0;
33385 break;
33386 }
33387 if (obj) {
33388 PyDict_SetItemString(d, constants[i].name, obj);
33389 Py_DECREF(obj);
33390 }
33391 }
33392 }
33393
33394 /* -----------------------------------------------------------------------------*/
33395 /* Fix SwigMethods to carry the callback ptrs when needed */
33396 /* -----------------------------------------------------------------------------*/
33397
33398 SWIGINTERN void
33399 SWIG_Python_FixMethods(PyMethodDef *methods,
33400 swig_const_info *const_table,
33401 swig_type_info **types,
33402 swig_type_info **types_initial) {
33403 size_t i;
33404 for (i = 0; methods[i].ml_name; ++i) {
33405 const char *c = methods[i].ml_doc;
33406 if (c && (c = strstr(c, "swig_ptr: "))) {
33407 int j;
33408 swig_const_info *ci = 0;
33409 const char *name = c + 10;
33410 for (j = 0; const_table[j].type; ++j) {
33411 if (strncmp(const_table[j].name, name,
33412 strlen(const_table[j].name)) == 0) {
33413 ci = &(const_table[j]);
33414 break;
33415 }
33416 }
33417 if (ci) {
33418 size_t shift = (ci->ptype) - types;
33419 swig_type_info *ty = types_initial[shift];
33420 size_t ldoc = (c - methods[i].ml_doc);
33421 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
33422 char *ndoc = (char*)malloc(ldoc + lptr + 10);
33423 if (ndoc) {
33424 char *buff = ndoc;
33425 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
33426 if (ptr) {
33427 strncpy(buff, methods[i].ml_doc, ldoc);
33428 buff += ldoc;
33429 strncpy(buff, "swig_ptr: ", 10);
33430 buff += 10;
33431 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
33432 methods[i].ml_doc = ndoc;
33433 }
33434 }
33435 }
33436 }
33437 }
33438 }
33439
33440 #ifdef __cplusplus
33441 }
33442 #endif
33443
33444 /* -----------------------------------------------------------------------------*
33445 * Partial Init method
33446 * -----------------------------------------------------------------------------*/
33447
33448 #ifdef __cplusplus
33449 extern "C"
33450 #endif
33451 SWIGEXPORT void SWIG_init(void) {
33452 PyObject *m, *d;
33453
33454 /* Fix SwigMethods to carry the callback ptrs when needed */
33455 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
33456
33457 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33458 d = PyModule_GetDict(m);
33459
33460 SWIG_InitializeModule(0);
33461 SWIG_InstallConstants(d,swig_const_table);
33462
33463
33464 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
33465 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
33466 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
33467 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
33468 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
33469 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
33470 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
33471 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
33472 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
33473 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
33474 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
33475 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
33476 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
33477 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
33478 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
33479 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
33480 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
33481 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
33482 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
33483 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
33484 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
33485 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
33486 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
33487 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
33488 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
33489 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
33490 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
33491 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
33492 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
33493 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
33494 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
33495 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
33496 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
33497 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
33498 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
33499 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
33500 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
33501 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
33502 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
33503 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
33504 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
33505 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
33506 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
33507 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
33508 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
33509 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
33510 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
33511 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
33512 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
33513 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
33514 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
33515 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
33516 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
33517 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
33518 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
33519 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
33520 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
33521 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
33522 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
33523 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
33524 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
33525 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
33526 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
33527 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
33528 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
33529 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
33530 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
33531 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
33532 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
33533 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
33534 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
33535 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
33536 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
33537 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
33538 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
33539 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
33540 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
33541 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
33542 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
33543 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
33544 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
33545 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
33546 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
33547 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
33548 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
33549 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
33550 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
33551 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
33552 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
33553 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
33554 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
33555 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
33556 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
33557 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
33558 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
33559 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
33560 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
33561 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
33562 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
33563 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
33564 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
33565 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
33566 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
33567 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
33568 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
33569 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
33570 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
33571 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
33572 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
33573 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
33574 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
33575 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
33576 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
33577 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
33578 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
33579 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
33580 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
33581 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
33582 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
33583 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
33584 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
33585 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
33586 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
33587 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
33588 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
33589 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
33590 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
33591 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
33592 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
33593 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
33594 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
33595 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
33596
33597 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
33598
33599 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
33600 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
33601 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
33602 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
33603 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
33604 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
33605 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
33606 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
33607 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
33608 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
33609 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
33610 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
33611 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
33612 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
33613 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
33614 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
33615 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
33616 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
33617 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
33618 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
33619 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
33620 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
33621 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
33622 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
33623 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
33624 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
33625 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
33626 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
33627 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
33628 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
33629 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
33630 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
33631 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
33632 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
33633 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
33634 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
33635 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
33636 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
33637 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
33638 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
33639 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
33640 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
33641 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
33642 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
33643 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
33644 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
33645 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
33646 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
33647 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
33648 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
33649 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
33650 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
33651 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
33652 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
33653 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
33654 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
33655 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
33656 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
33657 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
33658 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
33659 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
33660 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
33661 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
33662 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
33663 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
33664 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
33665 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
33666 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
33667 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
33668 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
33669 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
33670 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
33671 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
33672 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
33673 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
33674 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
33675 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
33676 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
33677 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
33678 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
33679 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
33680 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
33681 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
33682 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
33683 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
33684 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
33685 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
33686 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
33687 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
33688 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
33689 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
33690 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
33691 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
33692 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
33693 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
33694 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
33695 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
33696 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33697 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33698 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33699 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33700 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33701 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33702 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33703 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33704 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33705 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33706 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33707 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33708 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33709 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33710 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
33711 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
33712 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
33713 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
33714 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
33715 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
33716 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
33717 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
33718 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
33719 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
33720 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
33721 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
33722 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
33723 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
33724 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
33725 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
33726 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
33727 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
33728 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
33729 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
33730 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
33731 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
33732 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
33733 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
33734 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
33735 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
33736 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
33737 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
33738 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
33739 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
33740 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
33741 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
33742 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
33743 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
33744 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
33745 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
33746 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
33747 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
33748 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
33749 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
33750 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
33751 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
33752 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
33753 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
33754 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
33755 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
33756 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
33757 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
33758 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
33759 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
33760 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
33761 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
33762 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
33763 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
33764 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
33765 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
33766 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
33767 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
33768 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
33769 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
33770 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
33771 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
33772 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
33773 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
33774 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
33775 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
33776 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
33777 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
33778 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
33779 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
33780 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
33781 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
33782 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
33783 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
33784 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
33785 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
33786 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
33787 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
33788 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
33789 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
33790 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
33791 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
33792 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
33793 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
33794 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
33795 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
33796 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
33797 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
33798 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
33799 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
33800 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
33801 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
33802 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
33803 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
33804 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
33805 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
33806 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
33807 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
33808 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
33809 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
33810 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
33811 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
33812 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
33813 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
33814 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
33815 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
33816 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
33817 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
33818 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
33819 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
33820 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
33821 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
33822 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
33823 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
33824 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
33825 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
33826 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
33827 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
33828 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
33829 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
33830 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
33831 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
33832 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
33833 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
33834 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
33835 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
33836 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
33837 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
33838 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
33839 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
33840 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
33841 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
33842 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
33843 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
33844 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
33845 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
33846 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
33847 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
33848 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
33849 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
33850 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
33851 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
33852 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
33853 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
33854 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
33855 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
33856 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
33857 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
33858 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
33859 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
33860 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
33861 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
33862 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
33863 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
33864 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
33865 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
33866 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
33867 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
33868 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
33869 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
33870 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
33871 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
33872 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
33873 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
33874 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
33875 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
33876 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
33877 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
33878 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
33879 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
33880 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
33881 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
33882 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
33883 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
33884 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
33885 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
33886 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
33887 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
33888 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
33889 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
33890 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
33891 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
33892 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
33893 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
33894 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
33895 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
33896 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
33897 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
33898 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
33899 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
33900 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
33901 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
33902 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
33903 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
33904 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
33905 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
33906 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
33907 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
33908 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
33909 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
33910 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
33911 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
33912 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33913 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
33914 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
33915 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
33916 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
33917 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
33918
33919 // Work around a chicken/egg problem in drawlist.cpp
33920 wxPyDrawList_SetAPIPtr();
33921
33922 }
33923