]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
remove unused any more wxArrayHandlers
[wxWidgets.git] / wxPython / src / mac / _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 SWIGINTERNINLINE PyObject *
2906 SWIG_From_short (short value)
2907 {
2908 return SWIG_From_long (value);
2909 }
2910
2911
2912 SWIGINTERN int
2913 SWIG_AsVal_short (PyObject * obj, short *val)
2914 {
2915 long v;
2916 int res = SWIG_AsVal_long (obj, &v);
2917 if (SWIG_IsOK(res)) {
2918 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2919 return SWIG_OverflowError;
2920 } else {
2921 if (val) *val = static_cast< short >(v);
2922 }
2923 }
2924 return res;
2925 }
2926
2927
2928 #include <wx/rawbmp.h>
2929
2930
2931 #include <wx/image.h>
2932
2933 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2934 char** cArray = NULL;
2935 int count;
2936
2937 if (!PyList_Check(listOfStrings)) {
2938 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2939 return NULL;
2940 }
2941 count = PyList_Size(listOfStrings);
2942 cArray = new char*[count];
2943
2944 for(int x=0; x<count; x++) {
2945 // TODO: Need some validation and error checking here
2946 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2947 }
2948 return cArray;
2949 }
2950
2951
2952 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2953 char** cArray = NULL;
2954 wxBitmap* bmp;
2955
2956 cArray = ConvertListOfStrings(listOfStrings);
2957 if (! cArray)
2958 return NULL;
2959 bmp = new wxBitmap(cArray);
2960 delete [] cArray;
2961 return bmp;
2962 }
2963 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2964 char* buf;
2965 Py_ssize_t length;
2966 PyString_AsStringAndSize(bits, &buf, &length);
2967 return new wxBitmap(buf, width, height, depth);
2968 }
2969 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2970 wxSize size(self->GetWidth(), self->GetHeight());
2971 return size;
2972 }
2973 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2974 wxMask *mask = new wxMask(*self, colour);
2975 self->SetMask(mask);
2976 }
2977 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2978 self->SetWidth(size.x);
2979 self->SetHeight(size.y);
2980 }
2981 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2982 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2983
2984 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2985 // appears to me that the other platforms are already doing it, so I'll just
2986 // automatically do it for wxMSW here.
2987 #ifdef __WXMSW__
2988 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2989 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2990 #else
2991 #define wxPy_premultiply(p, a) (p)
2992 #define wxPy_unpremultiply(p, a) (p)
2993 #endif
2994
2995
2996 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2997 buffer data, int DATASIZE,
2998 buffer alpha, int ALPHASIZE)
2999 {
3000 if (DATASIZE != width*height*3) {
3001 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3002 return NULL;
3003 }
3004
3005 if (ALPHASIZE != width*height) {
3006 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3007 return NULL;
3008 }
3009
3010 wxBitmap* bmp = new wxBitmap(width, height, 32);
3011 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3012 if (! pixData) {
3013 // raise an exception...
3014 wxPyErr_SetString(PyExc_RuntimeError,
3015 "Failed to gain raw access to bitmap data.");
3016 return NULL;
3017 }
3018
3019 pixData.UseAlpha();
3020 wxAlphaPixelData::Iterator p(pixData);
3021 for (int y=0; y<height; y++) {
3022 wxAlphaPixelData::Iterator rowStart = p;
3023 for (int x=0; x<width; x++) {
3024 byte a = *(alpha++);
3025 p.Red() = wxPy_premultiply(*(data++), a);
3026 p.Green() = wxPy_premultiply(*(data++), a);
3027 p.Blue() = wxPy_premultiply(*(data++), a);
3028 p.Alpha() = a;
3029 ++p;
3030 }
3031 p = rowStart;
3032 p.OffsetY(pixData, 1);
3033 }
3034 return bmp;
3035 }
3036
3037 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3038 {
3039 if (DATASIZE != width*height*3) {
3040 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3041 return NULL;
3042 }
3043
3044 wxBitmap* bmp = new wxBitmap(width, height, 24);
3045 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3046 if (! pixData) {
3047 // raise an exception...
3048 wxPyErr_SetString(PyExc_RuntimeError,
3049 "Failed to gain raw access to bitmap data.");
3050 return NULL;
3051 }
3052
3053 wxNativePixelData::Iterator p(pixData);
3054 for (int y=0; y<height; y++) {
3055 wxNativePixelData::Iterator rowStart = p;
3056 for (int x=0; x<width; x++) {
3057 p.Red() = *(data++);
3058 p.Green() = *(data++);
3059 p.Blue() = *(data++);
3060 ++p;
3061 }
3062 p = rowStart;
3063 p.OffsetY(pixData, 1);
3064 }
3065 return bmp;
3066 }
3067
3068
3069 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3070 {
3071 if (DATASIZE != width*height*4) {
3072 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3073 return NULL;
3074 }
3075
3076 wxBitmap* bmp = new wxBitmap(width, height, 32);
3077 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3078 if (! pixData) {
3079 // raise an exception...
3080 wxPyErr_SetString(PyExc_RuntimeError,
3081 "Failed to gain raw access to bitmap data.");
3082 return NULL;
3083 }
3084
3085 pixData.UseAlpha();
3086 wxAlphaPixelData::Iterator p(pixData);
3087 for (int y=0; y<height; y++) {
3088 wxAlphaPixelData::Iterator rowStart = p;
3089 for (int x=0; x<width; x++) {
3090 byte a = data[3];
3091 p.Red() = wxPy_premultiply(*(data++), a);
3092 p.Green() = wxPy_premultiply(*(data++), a);
3093 p.Blue() = wxPy_premultiply(*(data++), a);
3094 p.Alpha() = a; data++;
3095 ++p;
3096 }
3097 p = rowStart;
3098 p.OffsetY(pixData, 1);
3099 }
3100 return bmp;
3101 }
3102
3103
3104 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3105
3106 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3107 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3108 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3109 self->Red() = red;
3110 self->Green() = green;
3111 self->Blue() = blue;
3112 }
3113 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3114 PyObject* rv = PyTuple_New(3);
3115 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3116 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3117 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3118 return rv;
3119 }
3120
3121 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3122
3123 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3124 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3125 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3126 self->Red() = wxPy_premultiply(red, alpha);
3127 self->Green() = wxPy_premultiply(green, alpha);
3128 self->Blue() = wxPy_premultiply(blue, alpha);
3129 self->Alpha() = alpha;
3130 }
3131 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3132 PyObject* rv = PyTuple_New(4);
3133 int red = self->Red();
3134 int green = self->Green();
3135 int blue = self->Blue();
3136 int alpha = self->Alpha();
3137
3138 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3139 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3140 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3141 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3142 return rv;
3143 }
3144 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3145 if ( !colour.Ok() )
3146 return new wxMask(bitmap, *wxBLACK);
3147 else
3148 return new wxMask(bitmap, colour);
3149 }
3150
3151 #include <wx/iconbndl.h>
3152
3153 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3154 wxIcon* icon = new wxIcon();
3155 icon->CopyFromBitmap(bmp);
3156 return icon;
3157 }
3158 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3159 char** cArray = NULL;
3160 wxIcon* icon;
3161
3162 cArray = ConvertListOfStrings(listOfStrings);
3163 if (! cArray)
3164 return NULL;
3165 icon = new wxIcon(cArray);
3166 delete [] cArray;
3167 return icon;
3168 }
3169 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3170
3171
3172
3173 return new wxIconLocation(*filename);
3174
3175 }
3176 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3177
3178
3179
3180 // do nothing
3181
3182 }
3183 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3184
3185
3186
3187 return -1;
3188
3189 }
3190 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3191 #ifdef __WXGTK__
3192 wxImage img(cursorName, type);
3193 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3194 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3195 return new wxCursor(img);
3196 #else
3197 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3198 #endif
3199 }
3200
3201
3202 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3203 (*self) ++;
3204 }
3205 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3206 return self->operator bool();
3207 }
3208
3209 #include <wx/fontutil.h>
3210 #include <wx/fontmap.h>
3211 #include <wx/fontenum.h>
3212
3213 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3214 return self->ToString();
3215 }
3216
3217 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3218 static wxNativeEncodingInfo info;
3219 if ( wxGetNativeFontEncoding(encoding, &info) )
3220 return &info;
3221 else
3222 return NULL;
3223 }
3224
3225
3226 SWIGINTERNINLINE PyObject *
3227 SWIG_From_size_t (size_t value)
3228 {
3229 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3230 }
3231
3232
3233 SWIGINTERNINLINE int
3234 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3235 {
3236 unsigned long v;
3237 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3238 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3239 return res;
3240 }
3241
3242 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3243 wxFontEncoding alt_enc;
3244 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3245 return PyInt_FromLong(alt_enc);
3246 else {
3247 Py_INCREF(Py_None);
3248 return Py_None;
3249 }
3250 }
3251 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3252 wxNativeFontInfo nfi;
3253 nfi.FromString(info);
3254 return new wxFont(nfi);
3255 }
3256 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3257 return wxFont::New(pointSize, family, flags, face, encoding);
3258 }
3259 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3260 return wxFontBase::New(pixelSize, family,
3261 style, weight, underlined,
3262 face, encoding);
3263 }
3264 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3265 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3266 }
3267 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3268 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3269
3270 class wxPyFontEnumerator : public wxFontEnumerator {
3271 public:
3272 wxPyFontEnumerator() {}
3273 ~wxPyFontEnumerator() {}
3274
3275 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3276 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3277
3278 PYPRIVATE;
3279 };
3280
3281 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3282 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3283
3284
3285 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3286 PyObject* ret;
3287 wxArrayString arr = wxFontEnumerator::GetEncodings();
3288 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3289 ret = wxArrayString2PyList_helper(arr);
3290 wxPyEndBlockThreads(blocked);
3291 return ret;
3292 }
3293 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3294 PyObject* ret;
3295 wxArrayString arr = wxFontEnumerator::GetFacenames();
3296 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3297 ret = wxArrayString2PyList_helper(arr);
3298 wxPyEndBlockThreads(blocked);
3299 return ret;
3300 }
3301
3302 #include <locale.h>
3303
3304 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3305 wxLocale* loc;
3306 if (language == -1)
3307 loc = new wxLocale();
3308 else
3309 loc = new wxLocale(language, flags);
3310 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3311 // for the floating point conversions and such to work right.
3312 #if PY_VERSION_HEX < 0x02040000
3313 setlocale(LC_NUMERIC, "C");
3314 #endif
3315 return loc;
3316 }
3317 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3318 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3319 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3320 // for the floating point conversions and such to work right.
3321 #if PY_VERSION_HEX < 0x02040000
3322 setlocale(LC_NUMERIC, "C");
3323 #endif
3324 return rc;
3325 }
3326 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3327 bool rc = self->Init(language, flags);
3328 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3329 // for the floating point conversions and such to work right.
3330 #if PY_VERSION_HEX < 0x02040000
3331 setlocale(LC_NUMERIC, "C");
3332 #endif
3333 return rc;
3334 }
3335
3336 class wxPyLocale : public wxLocale
3337 {
3338 public:
3339 wxPyLocale();
3340
3341 wxPyLocale(const wxChar *szName, // name (for messages)
3342 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3343 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3344 bool bLoadDefault = true, // preload wxstd.mo?
3345 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3346
3347 wxPyLocale(int language, // wxLanguage id or custom language
3348 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3349
3350 ~wxPyLocale();
3351
3352 virtual const wxChar *GetString(const wxChar *szOrigString,
3353 const wxChar *szDomain = NULL) const;
3354 virtual const wxChar *GetString(const wxChar *szOrigString,
3355 const wxChar *szOrigString2, size_t n,
3356 const wxChar *szDomain = NULL) const;
3357
3358 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3359 const wxChar *szDomain = NULL) const;
3360 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3361 const wxChar *szOrigString2, size_t n,
3362 const wxChar *szDomain = NULL) const;
3363
3364 PYPRIVATE;
3365 private:
3366 DECLARE_NO_COPY_CLASS(wxPyLocale)
3367 };
3368
3369 wxPyLocale::wxPyLocale() : wxLocale()
3370 {
3371 }
3372
3373 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3374 const wxChar *szShort, // dir prefix (for msg files)
3375 const wxChar *szLocale, // locale (for setlocale)
3376 bool bLoadDefault, // preload wxstd.mo?
3377 bool bConvertEncoding) // convert Win<->Unix if necessary?
3378 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3379 {
3380 }
3381
3382 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3383 int flags) : wxLocale(language, flags)
3384 {
3385 }
3386
3387 wxPyLocale::~wxPyLocale()
3388 {
3389 }
3390
3391 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3392 const wxChar *szDomain) const
3393 {
3394 wxChar *str = GetSingularString(szOrigString, szDomain);
3395 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3396 }
3397
3398 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3399 const wxChar *szOrigString2, size_t n,
3400 const wxChar *szDomain) const
3401 {
3402 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3403 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3404 }
3405
3406 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
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, "GetSingularString"))) {
3414 PyObject* param1 = wx2PyString(szOrigString);
3415 PyObject* param2 = wx2PyString(szDomain);
3416 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3417 Py_DECREF(param1);
3418 Py_DECREF(param2);
3419 if (ret) {
3420 str = Py2wxString(ret);
3421 Py_DECREF(ret);
3422 }
3423 }
3424 wxPyEndBlockThreads(blocked);
3425 return (found ? (wxChar*)str.c_str() : NULL);
3426 }
3427
3428 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3429 const wxChar *szOrigString2, size_t n,
3430 const wxChar *szDomain) const
3431 {
3432 bool found;
3433 static wxString str;
3434 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.
3435 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3436 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3437 PyObject* param1 = wx2PyString(szOrigString);
3438 PyObject* param2 = wx2PyString(szOrigString2);
3439 PyObject* param4 = wx2PyString(szDomain);
3440 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3441 Py_DECREF(param1);
3442 Py_DECREF(param2);
3443 Py_DECREF(param4);
3444 if( ret) {
3445 str = Py2wxString(ret);
3446 Py_DECREF(ret);
3447 }
3448 }
3449 wxPyEndBlockThreads(blocked);
3450 return (found ? (wxChar*)str.c_str() : NULL);
3451 }
3452
3453 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3454 wxPyLocale* loc;
3455 if (language == -1)
3456 loc = new wxPyLocale();
3457 else
3458 loc = new wxPyLocale(language, flags);
3459 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3460 // for the floating point conversions and such to work right.
3461 #if PY_VERSION_HEX < 0x02040000
3462 setlocale(LC_NUMERIC, "C");
3463 #endif
3464 return loc;
3465 }
3466
3467 #include "wx/wxPython/pydrawxxx.h"
3468
3469 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3470 wxColour col;
3471 self->GetPixel(x, y, &col);
3472 return col;
3473 }
3474 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3475 wxColour col;
3476 self->GetPixel(pt, &col);
3477 return col;
3478 }
3479
3480 SWIGINTERN int
3481 SWIG_AsVal_double (PyObject *obj, double* val)
3482 {
3483 if (PyNumber_Check(obj)) {
3484 if (val) *val = PyFloat_AsDouble(obj);
3485 return SWIG_OK;
3486 }
3487 return SWIG_TypeError;
3488 }
3489
3490 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3491 wxRect rv;
3492 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3493 return rv;
3494 }
3495 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3496 wxRect rect;
3497 self->GetClippingBox(rect);
3498 return rect;
3499 }
3500 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3501 wxArrayInt widths;
3502 self->GetPartialTextExtents(text, widths);
3503 return widths;
3504 }
3505
3506 #define SWIG_From_double PyFloat_FromDouble
3507
3508 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3509 self->SetLogicalOrigin(point.x, point.y);
3510 }
3511 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3512 self->SetDeviceOrigin(point.x, point.y);
3513 }
3514 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3515 self->CalcBoundingBox(point.x, point.y);
3516 }
3517 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3518 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3519 }
3520 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3521 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3522 }
3523 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3524 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3525 }
3526 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3527 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3528 }
3529 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3530 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3531 }
3532 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3533 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3534 }
3535
3536 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3537 *x1 = dc->MinX();
3538 *y1 = dc->MinY();
3539 *x2 = dc->MaxX();
3540 *y2 = dc->MaxY();
3541 }
3542
3543
3544 #include <wx/dcbuffer.h>
3545
3546
3547 #include <wx/dcps.h>
3548
3549
3550 #include <wx/metafile.h>
3551
3552
3553
3554 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3555 self->AddColour(name, wxColour(red, green, blue));
3556 }
3557
3558 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3559 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3560 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3561 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3562
3563
3564 #include <wx/effects.h>
3565
3566
3567 #include "wx/renderer.h"
3568
3569
3570 SWIGINTERNINLINE PyObject*
3571 SWIG_From_bool (bool value)
3572 {
3573 return PyBool_FromLong(value ? 1 : 0);
3574 }
3575
3576
3577 #include "wx/wxPython/pseudodc.h"
3578
3579 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3580 wxRect rect;
3581 self->GetIdBounds(id, rect);
3582 return rect;
3583 }
3584 #ifdef __cplusplus
3585 extern "C" {
3586 #endif
3587 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3588 PyObject *resultobj = 0;
3589 wxGDIObject *result = 0 ;
3590
3591 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3592 {
3593 if (!wxPyCheckForApp()) SWIG_fail;
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (wxGDIObject *)new wxGDIObject();
3596 wxPyEndAllowThreads(__tstate);
3597 if (PyErr_Occurred()) SWIG_fail;
3598 }
3599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3600 return resultobj;
3601 fail:
3602 return NULL;
3603 }
3604
3605
3606 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3607 PyObject *resultobj = 0;
3608 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3609 void *argp1 = 0 ;
3610 int res1 = 0 ;
3611 PyObject *swig_obj[1] ;
3612
3613 if (!args) SWIG_fail;
3614 swig_obj[0] = args;
3615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3616 if (!SWIG_IsOK(res1)) {
3617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3618 }
3619 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3620 {
3621 PyThreadState* __tstate = wxPyBeginAllowThreads();
3622 delete arg1;
3623
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) SWIG_fail;
3626 }
3627 resultobj = SWIG_Py_Void();
3628 return resultobj;
3629 fail:
3630 return NULL;
3631 }
3632
3633
3634 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3635 PyObject *resultobj = 0;
3636 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3637 bool result;
3638 void *argp1 = 0 ;
3639 int res1 = 0 ;
3640 PyObject *swig_obj[1] ;
3641
3642 if (!args) SWIG_fail;
3643 swig_obj[0] = args;
3644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3645 if (!SWIG_IsOK(res1)) {
3646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3647 }
3648 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3649 {
3650 PyThreadState* __tstate = wxPyBeginAllowThreads();
3651 result = (bool)(arg1)->IsNull();
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 {
3656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3657 }
3658 return resultobj;
3659 fail:
3660 return NULL;
3661 }
3662
3663
3664 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3665 PyObject *obj;
3666 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3667 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3668 return SWIG_Py_Void();
3669 }
3670
3671 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3672 return SWIG_Python_InitShadowInstance(args);
3673 }
3674
3675 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3676 PyObject *resultobj = 0;
3677 byte arg1 = (byte) 0 ;
3678 byte arg2 = (byte) 0 ;
3679 byte arg3 = (byte) 0 ;
3680 byte arg4 = (byte) wxALPHA_OPAQUE ;
3681 wxColour *result = 0 ;
3682 unsigned char val1 ;
3683 int ecode1 = 0 ;
3684 unsigned char val2 ;
3685 int ecode2 = 0 ;
3686 unsigned char val3 ;
3687 int ecode3 = 0 ;
3688 unsigned char val4 ;
3689 int ecode4 = 0 ;
3690 PyObject * obj0 = 0 ;
3691 PyObject * obj1 = 0 ;
3692 PyObject * obj2 = 0 ;
3693 PyObject * obj3 = 0 ;
3694 char * kwnames[] = {
3695 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3696 };
3697
3698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3699 if (obj0) {
3700 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3701 if (!SWIG_IsOK(ecode1)) {
3702 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3703 }
3704 arg1 = static_cast< byte >(val1);
3705 }
3706 if (obj1) {
3707 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3708 if (!SWIG_IsOK(ecode2)) {
3709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3710 }
3711 arg2 = static_cast< byte >(val2);
3712 }
3713 if (obj2) {
3714 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3715 if (!SWIG_IsOK(ecode3)) {
3716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3717 }
3718 arg3 = static_cast< byte >(val3);
3719 }
3720 if (obj3) {
3721 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3722 if (!SWIG_IsOK(ecode4)) {
3723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3724 }
3725 arg4 = static_cast< byte >(val4);
3726 }
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3730 wxPyEndAllowThreads(__tstate);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3734 return resultobj;
3735 fail:
3736 return NULL;
3737 }
3738
3739
3740 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3741 PyObject *resultobj = 0;
3742 wxString *arg1 = 0 ;
3743 wxColour *result = 0 ;
3744 bool temp1 = false ;
3745 PyObject * obj0 = 0 ;
3746 char * kwnames[] = {
3747 (char *) "colorName", NULL
3748 };
3749
3750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3751 {
3752 arg1 = wxString_in_helper(obj0);
3753 if (arg1 == NULL) SWIG_fail;
3754 temp1 = true;
3755 }
3756 {
3757 if (!wxPyCheckForApp()) SWIG_fail;
3758 PyThreadState* __tstate = wxPyBeginAllowThreads();
3759 result = (wxColour *)new wxColour((wxString const &)*arg1);
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3764 {
3765 if (temp1)
3766 delete arg1;
3767 }
3768 return resultobj;
3769 fail:
3770 {
3771 if (temp1)
3772 delete arg1;
3773 }
3774 return NULL;
3775 }
3776
3777
3778 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj = 0;
3780 unsigned long arg1 ;
3781 wxColour *result = 0 ;
3782 unsigned long val1 ;
3783 int ecode1 = 0 ;
3784 PyObject * obj0 = 0 ;
3785 char * kwnames[] = {
3786 (char *) "colRGB", NULL
3787 };
3788
3789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3790 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3791 if (!SWIG_IsOK(ecode1)) {
3792 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3793 }
3794 arg1 = static_cast< unsigned long >(val1);
3795 {
3796 PyThreadState* __tstate = wxPyBeginAllowThreads();
3797 result = (wxColour *)new wxColour(arg1);
3798 wxPyEndAllowThreads(__tstate);
3799 if (PyErr_Occurred()) SWIG_fail;
3800 }
3801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3802 return resultobj;
3803 fail:
3804 return NULL;
3805 }
3806
3807
3808 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3809 PyObject *resultobj = 0;
3810 wxColour *arg1 = (wxColour *) 0 ;
3811 void *argp1 = 0 ;
3812 int res1 = 0 ;
3813 PyObject *swig_obj[1] ;
3814
3815 if (!args) SWIG_fail;
3816 swig_obj[0] = args;
3817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3818 if (!SWIG_IsOK(res1)) {
3819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3820 }
3821 arg1 = reinterpret_cast< wxColour * >(argp1);
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 delete arg1;
3825
3826 wxPyEndAllowThreads(__tstate);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 }
3829 resultobj = SWIG_Py_Void();
3830 return resultobj;
3831 fail:
3832 return NULL;
3833 }
3834
3835
3836 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3837 PyObject *resultobj = 0;
3838 wxColour *arg1 = (wxColour *) 0 ;
3839 byte result;
3840 void *argp1 = 0 ;
3841 int res1 = 0 ;
3842 PyObject *swig_obj[1] ;
3843
3844 if (!args) SWIG_fail;
3845 swig_obj[0] = args;
3846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3847 if (!SWIG_IsOK(res1)) {
3848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3849 }
3850 arg1 = reinterpret_cast< wxColour * >(argp1);
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (byte)(arg1)->Red();
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3858 return resultobj;
3859 fail:
3860 return NULL;
3861 }
3862
3863
3864 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3865 PyObject *resultobj = 0;
3866 wxColour *arg1 = (wxColour *) 0 ;
3867 byte result;
3868 void *argp1 = 0 ;
3869 int res1 = 0 ;
3870 PyObject *swig_obj[1] ;
3871
3872 if (!args) SWIG_fail;
3873 swig_obj[0] = args;
3874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3875 if (!SWIG_IsOK(res1)) {
3876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3877 }
3878 arg1 = reinterpret_cast< wxColour * >(argp1);
3879 {
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 result = (byte)(arg1)->Green();
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3886 return resultobj;
3887 fail:
3888 return NULL;
3889 }
3890
3891
3892 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3893 PyObject *resultobj = 0;
3894 wxColour *arg1 = (wxColour *) 0 ;
3895 byte result;
3896 void *argp1 = 0 ;
3897 int res1 = 0 ;
3898 PyObject *swig_obj[1] ;
3899
3900 if (!args) SWIG_fail;
3901 swig_obj[0] = args;
3902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3903 if (!SWIG_IsOK(res1)) {
3904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3905 }
3906 arg1 = reinterpret_cast< wxColour * >(argp1);
3907 {
3908 PyThreadState* __tstate = wxPyBeginAllowThreads();
3909 result = (byte)(arg1)->Blue();
3910 wxPyEndAllowThreads(__tstate);
3911 if (PyErr_Occurred()) SWIG_fail;
3912 }
3913 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3914 return resultobj;
3915 fail:
3916 return NULL;
3917 }
3918
3919
3920 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3921 PyObject *resultobj = 0;
3922 wxColour *arg1 = (wxColour *) 0 ;
3923 byte result;
3924 void *argp1 = 0 ;
3925 int res1 = 0 ;
3926 PyObject *swig_obj[1] ;
3927
3928 if (!args) SWIG_fail;
3929 swig_obj[0] = args;
3930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3931 if (!SWIG_IsOK(res1)) {
3932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3933 }
3934 arg1 = reinterpret_cast< wxColour * >(argp1);
3935 {
3936 PyThreadState* __tstate = wxPyBeginAllowThreads();
3937 result = (byte)(arg1)->Alpha();
3938 wxPyEndAllowThreads(__tstate);
3939 if (PyErr_Occurred()) SWIG_fail;
3940 }
3941 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3942 return resultobj;
3943 fail:
3944 return NULL;
3945 }
3946
3947
3948 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3949 PyObject *resultobj = 0;
3950 wxColour *arg1 = (wxColour *) 0 ;
3951 bool result;
3952 void *argp1 = 0 ;
3953 int res1 = 0 ;
3954 PyObject *swig_obj[1] ;
3955
3956 if (!args) SWIG_fail;
3957 swig_obj[0] = args;
3958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3961 }
3962 arg1 = reinterpret_cast< wxColour * >(argp1);
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 result = (bool)(arg1)->Ok();
3966 wxPyEndAllowThreads(__tstate);
3967 if (PyErr_Occurred()) SWIG_fail;
3968 }
3969 {
3970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3971 }
3972 return resultobj;
3973 fail:
3974 return NULL;
3975 }
3976
3977
3978 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3979 PyObject *resultobj = 0;
3980 wxColour *arg1 = (wxColour *) 0 ;
3981 byte arg2 ;
3982 byte arg3 ;
3983 byte arg4 ;
3984 byte arg5 = (byte) wxALPHA_OPAQUE ;
3985 void *argp1 = 0 ;
3986 int res1 = 0 ;
3987 unsigned char val2 ;
3988 int ecode2 = 0 ;
3989 unsigned char val3 ;
3990 int ecode3 = 0 ;
3991 unsigned char val4 ;
3992 int ecode4 = 0 ;
3993 unsigned char val5 ;
3994 int ecode5 = 0 ;
3995 PyObject * obj0 = 0 ;
3996 PyObject * obj1 = 0 ;
3997 PyObject * obj2 = 0 ;
3998 PyObject * obj3 = 0 ;
3999 PyObject * obj4 = 0 ;
4000 char * kwnames[] = {
4001 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4002 };
4003
4004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4006 if (!SWIG_IsOK(res1)) {
4007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4008 }
4009 arg1 = reinterpret_cast< wxColour * >(argp1);
4010 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4011 if (!SWIG_IsOK(ecode2)) {
4012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4013 }
4014 arg2 = static_cast< byte >(val2);
4015 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4016 if (!SWIG_IsOK(ecode3)) {
4017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4018 }
4019 arg3 = static_cast< byte >(val3);
4020 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4021 if (!SWIG_IsOK(ecode4)) {
4022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4023 }
4024 arg4 = static_cast< byte >(val4);
4025 if (obj4) {
4026 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4027 if (!SWIG_IsOK(ecode5)) {
4028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4029 }
4030 arg5 = static_cast< byte >(val5);
4031 }
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 (arg1)->Set(arg2,arg3,arg4,arg5);
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 resultobj = SWIG_Py_Void();
4039 return resultobj;
4040 fail:
4041 return NULL;
4042 }
4043
4044
4045 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj = 0;
4047 wxColour *arg1 = (wxColour *) 0 ;
4048 unsigned long arg2 ;
4049 void *argp1 = 0 ;
4050 int res1 = 0 ;
4051 unsigned long val2 ;
4052 int ecode2 = 0 ;
4053 PyObject * obj0 = 0 ;
4054 PyObject * obj1 = 0 ;
4055 char * kwnames[] = {
4056 (char *) "self",(char *) "colRGB", NULL
4057 };
4058
4059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4061 if (!SWIG_IsOK(res1)) {
4062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4063 }
4064 arg1 = reinterpret_cast< wxColour * >(argp1);
4065 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4066 if (!SWIG_IsOK(ecode2)) {
4067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4068 }
4069 arg2 = static_cast< unsigned long >(val2);
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 (arg1)->Set(arg2);
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 resultobj = SWIG_Py_Void();
4077 return resultobj;
4078 fail:
4079 return NULL;
4080 }
4081
4082
4083 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4084 PyObject *resultobj = 0;
4085 wxColour *arg1 = (wxColour *) 0 ;
4086 wxString *arg2 = 0 ;
4087 void *argp1 = 0 ;
4088 int res1 = 0 ;
4089 bool temp2 = false ;
4090 PyObject * obj0 = 0 ;
4091 PyObject * obj1 = 0 ;
4092 char * kwnames[] = {
4093 (char *) "self",(char *) "colourName", NULL
4094 };
4095
4096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4098 if (!SWIG_IsOK(res1)) {
4099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4100 }
4101 arg1 = reinterpret_cast< wxColour * >(argp1);
4102 {
4103 arg2 = wxString_in_helper(obj1);
4104 if (arg2 == NULL) SWIG_fail;
4105 temp2 = true;
4106 }
4107 {
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 (arg1)->InitFromName((wxString const &)*arg2);
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 resultobj = SWIG_Py_Void();
4114 {
4115 if (temp2)
4116 delete arg2;
4117 }
4118 return resultobj;
4119 fail:
4120 {
4121 if (temp2)
4122 delete arg2;
4123 }
4124 return NULL;
4125 }
4126
4127
4128 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4129 PyObject *resultobj = 0;
4130 wxColour *arg1 = (wxColour *) 0 ;
4131 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4132 wxString result;
4133 void *argp1 = 0 ;
4134 int res1 = 0 ;
4135 long val2 ;
4136 int ecode2 = 0 ;
4137 PyObject * obj0 = 0 ;
4138 PyObject * obj1 = 0 ;
4139 char * kwnames[] = {
4140 (char *) "self",(char *) "flags", NULL
4141 };
4142
4143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4145 if (!SWIG_IsOK(res1)) {
4146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4147 }
4148 arg1 = reinterpret_cast< wxColour * >(argp1);
4149 if (obj1) {
4150 ecode2 = SWIG_AsVal_long(obj1, &val2);
4151 if (!SWIG_IsOK(ecode2)) {
4152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4153 }
4154 arg2 = static_cast< long >(val2);
4155 }
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 result = ((wxColour const *)arg1)->GetAsString(arg2);
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 {
4163 #if wxUSE_UNICODE
4164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4165 #else
4166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4167 #endif
4168 }
4169 return resultobj;
4170 fail:
4171 return NULL;
4172 }
4173
4174
4175 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4176 PyObject *resultobj = 0;
4177 wxColour *arg1 = (wxColour *) 0 ;
4178 long result;
4179 void *argp1 = 0 ;
4180 int res1 = 0 ;
4181 PyObject *swig_obj[1] ;
4182
4183 if (!args) SWIG_fail;
4184 swig_obj[0] = args;
4185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4186 if (!SWIG_IsOK(res1)) {
4187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4188 }
4189 arg1 = reinterpret_cast< wxColour * >(argp1);
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (long)((wxColour const *)arg1)->GetPixel();
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_From_long(static_cast< long >(result));
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj = 0;
4205 wxColour *arg1 = (wxColour *) 0 ;
4206 PyObject *arg2 = (PyObject *) 0 ;
4207 bool result;
4208 void *argp1 = 0 ;
4209 int res1 = 0 ;
4210 PyObject * obj0 = 0 ;
4211 PyObject * obj1 = 0 ;
4212 char * kwnames[] = {
4213 (char *) "self",(char *) "other", NULL
4214 };
4215
4216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4220 }
4221 arg1 = reinterpret_cast< wxColour * >(argp1);
4222 arg2 = obj1;
4223 {
4224 result = (bool)wxColour___eq__(arg1,arg2);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 {
4228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4229 }
4230 return resultobj;
4231 fail:
4232 return NULL;
4233 }
4234
4235
4236 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4237 PyObject *resultobj = 0;
4238 wxColour *arg1 = (wxColour *) 0 ;
4239 PyObject *arg2 = (PyObject *) 0 ;
4240 bool result;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 PyObject * obj0 = 0 ;
4244 PyObject * obj1 = 0 ;
4245 char * kwnames[] = {
4246 (char *) "self",(char *) "other", NULL
4247 };
4248
4249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4251 if (!SWIG_IsOK(res1)) {
4252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4253 }
4254 arg1 = reinterpret_cast< wxColour * >(argp1);
4255 arg2 = obj1;
4256 {
4257 result = (bool)wxColour___ne__(arg1,arg2);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 {
4261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4262 }
4263 return resultobj;
4264 fail:
4265 return NULL;
4266 }
4267
4268
4269 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj = 0;
4271 wxColour *arg1 = (wxColour *) 0 ;
4272 bool arg2 = (bool) false ;
4273 PyObject *result = 0 ;
4274 void *argp1 = 0 ;
4275 int res1 = 0 ;
4276 bool val2 ;
4277 int ecode2 = 0 ;
4278 PyObject * obj0 = 0 ;
4279 PyObject * obj1 = 0 ;
4280 char * kwnames[] = {
4281 (char *) "self",(char *) "includeAlpha", NULL
4282 };
4283
4284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4286 if (!SWIG_IsOK(res1)) {
4287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4288 }
4289 arg1 = reinterpret_cast< wxColour * >(argp1);
4290 if (obj1) {
4291 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4292 if (!SWIG_IsOK(ecode2)) {
4293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4294 }
4295 arg2 = static_cast< bool >(val2);
4296 }
4297 {
4298 result = (PyObject *)wxColour_Get(arg1,arg2);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = result;
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4309 PyObject *resultobj = 0;
4310 wxColour *arg1 = (wxColour *) 0 ;
4311 unsigned long result;
4312 void *argp1 = 0 ;
4313 int res1 = 0 ;
4314 PyObject *swig_obj[1] ;
4315
4316 if (!args) SWIG_fail;
4317 swig_obj[0] = args;
4318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4319 if (!SWIG_IsOK(res1)) {
4320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4321 }
4322 arg1 = reinterpret_cast< wxColour * >(argp1);
4323 {
4324 result = (unsigned long)wxColour_GetRGB(arg1);
4325 if (PyErr_Occurred()) SWIG_fail;
4326 }
4327 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4328 return resultobj;
4329 fail:
4330 return NULL;
4331 }
4332
4333
4334 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4335 PyObject *obj;
4336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4337 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4338 return SWIG_Py_Void();
4339 }
4340
4341 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4342 return SWIG_Python_InitShadowInstance(args);
4343 }
4344
4345 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 int arg1 ;
4348 unsigned char *arg2 = (unsigned char *) 0 ;
4349 unsigned char *arg3 = (unsigned char *) 0 ;
4350 unsigned char *arg4 = (unsigned char *) 0 ;
4351 wxPalette *result = 0 ;
4352 int val1 ;
4353 int ecode1 = 0 ;
4354 void *argp2 = 0 ;
4355 int res2 = 0 ;
4356 void *argp3 = 0 ;
4357 int res3 = 0 ;
4358 void *argp4 = 0 ;
4359 int res4 = 0 ;
4360 PyObject * obj0 = 0 ;
4361 PyObject * obj1 = 0 ;
4362 PyObject * obj2 = 0 ;
4363 PyObject * obj3 = 0 ;
4364 char * kwnames[] = {
4365 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4366 };
4367
4368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4369 ecode1 = SWIG_AsVal_int(obj0, &val1);
4370 if (!SWIG_IsOK(ecode1)) {
4371 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4372 }
4373 arg1 = static_cast< int >(val1);
4374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4375 if (!SWIG_IsOK(res2)) {
4376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4377 }
4378 arg2 = reinterpret_cast< unsigned char * >(argp2);
4379 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4380 if (!SWIG_IsOK(res3)) {
4381 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4382 }
4383 arg3 = reinterpret_cast< unsigned char * >(argp3);
4384 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4385 if (!SWIG_IsOK(res4)) {
4386 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4387 }
4388 arg4 = reinterpret_cast< unsigned char * >(argp4);
4389 {
4390 if (!wxPyCheckForApp()) SWIG_fail;
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) SWIG_fail;
4395 }
4396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4397 return resultobj;
4398 fail:
4399 return NULL;
4400 }
4401
4402
4403 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4404 PyObject *resultobj = 0;
4405 wxPalette *arg1 = (wxPalette *) 0 ;
4406 void *argp1 = 0 ;
4407 int res1 = 0 ;
4408 PyObject *swig_obj[1] ;
4409
4410 if (!args) SWIG_fail;
4411 swig_obj[0] = args;
4412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4415 }
4416 arg1 = reinterpret_cast< wxPalette * >(argp1);
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 delete arg1;
4420
4421 wxPyEndAllowThreads(__tstate);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 resultobj = SWIG_Py_Void();
4425 return resultobj;
4426 fail:
4427 return NULL;
4428 }
4429
4430
4431 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4432 PyObject *resultobj = 0;
4433 wxPalette *arg1 = (wxPalette *) 0 ;
4434 byte arg2 ;
4435 byte arg3 ;
4436 byte arg4 ;
4437 int result;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 unsigned char val2 ;
4441 int ecode2 = 0 ;
4442 unsigned char val3 ;
4443 int ecode3 = 0 ;
4444 unsigned char val4 ;
4445 int ecode4 = 0 ;
4446 PyObject * obj0 = 0 ;
4447 PyObject * obj1 = 0 ;
4448 PyObject * obj2 = 0 ;
4449 PyObject * obj3 = 0 ;
4450 char * kwnames[] = {
4451 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4452 };
4453
4454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4456 if (!SWIG_IsOK(res1)) {
4457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4458 }
4459 arg1 = reinterpret_cast< wxPalette * >(argp1);
4460 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4461 if (!SWIG_IsOK(ecode2)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4463 }
4464 arg2 = static_cast< byte >(val2);
4465 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4466 if (!SWIG_IsOK(ecode3)) {
4467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4468 }
4469 arg3 = static_cast< byte >(val3);
4470 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4471 if (!SWIG_IsOK(ecode4)) {
4472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4473 }
4474 arg4 = static_cast< byte >(val4);
4475 {
4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
4477 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 resultobj = SWIG_From_int(static_cast< int >(result));
4482 return resultobj;
4483 fail:
4484 return NULL;
4485 }
4486
4487
4488 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4489 PyObject *resultobj = 0;
4490 wxPalette *arg1 = (wxPalette *) 0 ;
4491 int arg2 ;
4492 byte *arg3 = (byte *) 0 ;
4493 byte *arg4 = (byte *) 0 ;
4494 byte *arg5 = (byte *) 0 ;
4495 bool result;
4496 void *argp1 = 0 ;
4497 int res1 = 0 ;
4498 int val2 ;
4499 int ecode2 = 0 ;
4500 byte temp3 ;
4501 int res3 = SWIG_TMPOBJ ;
4502 byte temp4 ;
4503 int res4 = SWIG_TMPOBJ ;
4504 byte temp5 ;
4505 int res5 = SWIG_TMPOBJ ;
4506 PyObject * obj0 = 0 ;
4507 PyObject * obj1 = 0 ;
4508 char * kwnames[] = {
4509 (char *) "self",(char *) "pixel", NULL
4510 };
4511
4512 arg3 = &temp3;
4513 arg4 = &temp4;
4514 arg5 = &temp5;
4515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4517 if (!SWIG_IsOK(res1)) {
4518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4519 }
4520 arg1 = reinterpret_cast< wxPalette * >(argp1);
4521 ecode2 = SWIG_AsVal_int(obj1, &val2);
4522 if (!SWIG_IsOK(ecode2)) {
4523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4524 }
4525 arg2 = static_cast< int >(val2);
4526 {
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 {
4533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4534 }
4535 if (SWIG_IsTmpObj(res3)) {
4536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4537 } else {
4538 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4540 }
4541 if (SWIG_IsTmpObj(res4)) {
4542 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4543 } else {
4544 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4546 }
4547 if (SWIG_IsTmpObj(res5)) {
4548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4549 } else {
4550 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4552 }
4553 return resultobj;
4554 fail:
4555 return NULL;
4556 }
4557
4558
4559 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4560 PyObject *resultobj = 0;
4561 wxPalette *arg1 = (wxPalette *) 0 ;
4562 int result;
4563 void *argp1 = 0 ;
4564 int res1 = 0 ;
4565 PyObject *swig_obj[1] ;
4566
4567 if (!args) SWIG_fail;
4568 swig_obj[0] = args;
4569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4570 if (!SWIG_IsOK(res1)) {
4571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4572 }
4573 arg1 = reinterpret_cast< wxPalette * >(argp1);
4574 {
4575 PyThreadState* __tstate = wxPyBeginAllowThreads();
4576 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4577 wxPyEndAllowThreads(__tstate);
4578 if (PyErr_Occurred()) SWIG_fail;
4579 }
4580 resultobj = SWIG_From_int(static_cast< int >(result));
4581 return resultobj;
4582 fail:
4583 return NULL;
4584 }
4585
4586
4587 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4588 PyObject *resultobj = 0;
4589 wxPalette *arg1 = (wxPalette *) 0 ;
4590 bool result;
4591 void *argp1 = 0 ;
4592 int res1 = 0 ;
4593 PyObject *swig_obj[1] ;
4594
4595 if (!args) SWIG_fail;
4596 swig_obj[0] = args;
4597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4598 if (!SWIG_IsOK(res1)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4600 }
4601 arg1 = reinterpret_cast< wxPalette * >(argp1);
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 result = (bool)(arg1)->Ok();
4605 wxPyEndAllowThreads(__tstate);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
4608 {
4609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4610 }
4611 return resultobj;
4612 fail:
4613 return NULL;
4614 }
4615
4616
4617 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4618 PyObject *obj;
4619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4620 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4621 return SWIG_Py_Void();
4622 }
4623
4624 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4625 return SWIG_Python_InitShadowInstance(args);
4626 }
4627
4628 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj = 0;
4630 wxColour *arg1 = 0 ;
4631 int arg2 = (int) 1 ;
4632 int arg3 = (int) wxSOLID ;
4633 wxPen *result = 0 ;
4634 wxColour temp1 ;
4635 int val2 ;
4636 int ecode2 = 0 ;
4637 int val3 ;
4638 int ecode3 = 0 ;
4639 PyObject * obj0 = 0 ;
4640 PyObject * obj1 = 0 ;
4641 PyObject * obj2 = 0 ;
4642 char * kwnames[] = {
4643 (char *) "colour",(char *) "width",(char *) "style", NULL
4644 };
4645
4646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4647 {
4648 arg1 = &temp1;
4649 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4650 }
4651 if (obj1) {
4652 ecode2 = SWIG_AsVal_int(obj1, &val2);
4653 if (!SWIG_IsOK(ecode2)) {
4654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4655 }
4656 arg2 = static_cast< int >(val2);
4657 }
4658 if (obj2) {
4659 ecode3 = SWIG_AsVal_int(obj2, &val3);
4660 if (!SWIG_IsOK(ecode3)) {
4661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4662 }
4663 arg3 = static_cast< int >(val3);
4664 }
4665 {
4666 if (!wxPyCheckForApp()) SWIG_fail;
4667 PyThreadState* __tstate = wxPyBeginAllowThreads();
4668 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4669 wxPyEndAllowThreads(__tstate);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4673 return resultobj;
4674 fail:
4675 return NULL;
4676 }
4677
4678
4679 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4680 PyObject *resultobj = 0;
4681 wxPen *arg1 = (wxPen *) 0 ;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 PyObject *swig_obj[1] ;
4685
4686 if (!args) SWIG_fail;
4687 swig_obj[0] = args;
4688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4689 if (!SWIG_IsOK(res1)) {
4690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4691 }
4692 arg1 = reinterpret_cast< wxPen * >(argp1);
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 delete arg1;
4696
4697 wxPyEndAllowThreads(__tstate);
4698 if (PyErr_Occurred()) SWIG_fail;
4699 }
4700 resultobj = SWIG_Py_Void();
4701 return resultobj;
4702 fail:
4703 return NULL;
4704 }
4705
4706
4707 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4708 PyObject *resultobj = 0;
4709 wxPen *arg1 = (wxPen *) 0 ;
4710 int result;
4711 void *argp1 = 0 ;
4712 int res1 = 0 ;
4713 PyObject *swig_obj[1] ;
4714
4715 if (!args) SWIG_fail;
4716 swig_obj[0] = args;
4717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4718 if (!SWIG_IsOK(res1)) {
4719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4720 }
4721 arg1 = reinterpret_cast< wxPen * >(argp1);
4722 {
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 result = (int)(arg1)->GetCap();
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 resultobj = SWIG_From_int(static_cast< int >(result));
4729 return resultobj;
4730 fail:
4731 return NULL;
4732 }
4733
4734
4735 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4736 PyObject *resultobj = 0;
4737 wxPen *arg1 = (wxPen *) 0 ;
4738 wxColour result;
4739 void *argp1 = 0 ;
4740 int res1 = 0 ;
4741 PyObject *swig_obj[1] ;
4742
4743 if (!args) SWIG_fail;
4744 swig_obj[0] = args;
4745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4746 if (!SWIG_IsOK(res1)) {
4747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4748 }
4749 arg1 = reinterpret_cast< wxPen * >(argp1);
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 result = (arg1)->GetColour();
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4757 return resultobj;
4758 fail:
4759 return NULL;
4760 }
4761
4762
4763 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4764 PyObject *resultobj = 0;
4765 wxPen *arg1 = (wxPen *) 0 ;
4766 int result;
4767 void *argp1 = 0 ;
4768 int res1 = 0 ;
4769 PyObject *swig_obj[1] ;
4770
4771 if (!args) SWIG_fail;
4772 swig_obj[0] = args;
4773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4774 if (!SWIG_IsOK(res1)) {
4775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4776 }
4777 arg1 = reinterpret_cast< wxPen * >(argp1);
4778 {
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
4780 result = (int)(arg1)->GetJoin();
4781 wxPyEndAllowThreads(__tstate);
4782 if (PyErr_Occurred()) SWIG_fail;
4783 }
4784 resultobj = SWIG_From_int(static_cast< int >(result));
4785 return resultobj;
4786 fail:
4787 return NULL;
4788 }
4789
4790
4791 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4792 PyObject *resultobj = 0;
4793 wxPen *arg1 = (wxPen *) 0 ;
4794 int result;
4795 void *argp1 = 0 ;
4796 int res1 = 0 ;
4797 PyObject *swig_obj[1] ;
4798
4799 if (!args) SWIG_fail;
4800 swig_obj[0] = args;
4801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4802 if (!SWIG_IsOK(res1)) {
4803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4804 }
4805 arg1 = reinterpret_cast< wxPen * >(argp1);
4806 {
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 result = (int)(arg1)->GetStyle();
4809 wxPyEndAllowThreads(__tstate);
4810 if (PyErr_Occurred()) SWIG_fail;
4811 }
4812 resultobj = SWIG_From_int(static_cast< int >(result));
4813 return resultobj;
4814 fail:
4815 return NULL;
4816 }
4817
4818
4819 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4820 PyObject *resultobj = 0;
4821 wxPen *arg1 = (wxPen *) 0 ;
4822 int result;
4823 void *argp1 = 0 ;
4824 int res1 = 0 ;
4825 PyObject *swig_obj[1] ;
4826
4827 if (!args) SWIG_fail;
4828 swig_obj[0] = args;
4829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4830 if (!SWIG_IsOK(res1)) {
4831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4832 }
4833 arg1 = reinterpret_cast< wxPen * >(argp1);
4834 {
4835 PyThreadState* __tstate = wxPyBeginAllowThreads();
4836 result = (int)(arg1)->GetWidth();
4837 wxPyEndAllowThreads(__tstate);
4838 if (PyErr_Occurred()) SWIG_fail;
4839 }
4840 resultobj = SWIG_From_int(static_cast< int >(result));
4841 return resultobj;
4842 fail:
4843 return NULL;
4844 }
4845
4846
4847 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4848 PyObject *resultobj = 0;
4849 wxPen *arg1 = (wxPen *) 0 ;
4850 bool result;
4851 void *argp1 = 0 ;
4852 int res1 = 0 ;
4853 PyObject *swig_obj[1] ;
4854
4855 if (!args) SWIG_fail;
4856 swig_obj[0] = args;
4857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4858 if (!SWIG_IsOK(res1)) {
4859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4860 }
4861 arg1 = reinterpret_cast< wxPen * >(argp1);
4862 {
4863 PyThreadState* __tstate = wxPyBeginAllowThreads();
4864 result = (bool)(arg1)->Ok();
4865 wxPyEndAllowThreads(__tstate);
4866 if (PyErr_Occurred()) SWIG_fail;
4867 }
4868 {
4869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4870 }
4871 return resultobj;
4872 fail:
4873 return NULL;
4874 }
4875
4876
4877 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj = 0;
4879 wxPen *arg1 = (wxPen *) 0 ;
4880 int arg2 ;
4881 void *argp1 = 0 ;
4882 int res1 = 0 ;
4883 int val2 ;
4884 int ecode2 = 0 ;
4885 PyObject * obj0 = 0 ;
4886 PyObject * obj1 = 0 ;
4887 char * kwnames[] = {
4888 (char *) "self",(char *) "cap_style", NULL
4889 };
4890
4891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4893 if (!SWIG_IsOK(res1)) {
4894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4895 }
4896 arg1 = reinterpret_cast< wxPen * >(argp1);
4897 ecode2 = SWIG_AsVal_int(obj1, &val2);
4898 if (!SWIG_IsOK(ecode2)) {
4899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4900 }
4901 arg2 = static_cast< int >(val2);
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 (arg1)->SetCap(arg2);
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_Py_Void();
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj = 0;
4917 wxPen *arg1 = (wxPen *) 0 ;
4918 wxColour *arg2 = 0 ;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 wxColour temp2 ;
4922 PyObject * obj0 = 0 ;
4923 PyObject * obj1 = 0 ;
4924 char * kwnames[] = {
4925 (char *) "self",(char *) "colour", NULL
4926 };
4927
4928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4930 if (!SWIG_IsOK(res1)) {
4931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4932 }
4933 arg1 = reinterpret_cast< wxPen * >(argp1);
4934 {
4935 arg2 = &temp2;
4936 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4937 }
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 (arg1)->SetColour(*arg2);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 resultobj = SWIG_Py_Void();
4945 return resultobj;
4946 fail:
4947 return NULL;
4948 }
4949
4950
4951 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj = 0;
4953 wxPen *arg1 = (wxPen *) 0 ;
4954 int arg2 ;
4955 void *argp1 = 0 ;
4956 int res1 = 0 ;
4957 int val2 ;
4958 int ecode2 = 0 ;
4959 PyObject * obj0 = 0 ;
4960 PyObject * obj1 = 0 ;
4961 char * kwnames[] = {
4962 (char *) "self",(char *) "join_style", NULL
4963 };
4964
4965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4967 if (!SWIG_IsOK(res1)) {
4968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4969 }
4970 arg1 = reinterpret_cast< wxPen * >(argp1);
4971 ecode2 = SWIG_AsVal_int(obj1, &val2);
4972 if (!SWIG_IsOK(ecode2)) {
4973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4974 }
4975 arg2 = static_cast< int >(val2);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 (arg1)->SetJoin(arg2);
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = SWIG_Py_Void();
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4990 PyObject *resultobj = 0;
4991 wxPen *arg1 = (wxPen *) 0 ;
4992 int arg2 ;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 int val2 ;
4996 int ecode2 = 0 ;
4997 PyObject * obj0 = 0 ;
4998 PyObject * obj1 = 0 ;
4999 char * kwnames[] = {
5000 (char *) "self",(char *) "style", NULL
5001 };
5002
5003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5005 if (!SWIG_IsOK(res1)) {
5006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5007 }
5008 arg1 = reinterpret_cast< wxPen * >(argp1);
5009 ecode2 = SWIG_AsVal_int(obj1, &val2);
5010 if (!SWIG_IsOK(ecode2)) {
5011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5012 }
5013 arg2 = static_cast< int >(val2);
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 (arg1)->SetStyle(arg2);
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 resultobj = SWIG_Py_Void();
5021 return resultobj;
5022 fail:
5023 return NULL;
5024 }
5025
5026
5027 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5028 PyObject *resultobj = 0;
5029 wxPen *arg1 = (wxPen *) 0 ;
5030 int arg2 ;
5031 void *argp1 = 0 ;
5032 int res1 = 0 ;
5033 int val2 ;
5034 int ecode2 = 0 ;
5035 PyObject * obj0 = 0 ;
5036 PyObject * obj1 = 0 ;
5037 char * kwnames[] = {
5038 (char *) "self",(char *) "width", NULL
5039 };
5040
5041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5043 if (!SWIG_IsOK(res1)) {
5044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5045 }
5046 arg1 = reinterpret_cast< wxPen * >(argp1);
5047 ecode2 = SWIG_AsVal_int(obj1, &val2);
5048 if (!SWIG_IsOK(ecode2)) {
5049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5050 }
5051 arg2 = static_cast< int >(val2);
5052 {
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 (arg1)->SetWidth(arg2);
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 resultobj = SWIG_Py_Void();
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5066 PyObject *resultobj = 0;
5067 wxPen *arg1 = (wxPen *) 0 ;
5068 int arg2 ;
5069 wxDash *arg3 = (wxDash *) 0 ;
5070 void *argp1 = 0 ;
5071 int res1 = 0 ;
5072 PyObject * obj0 = 0 ;
5073 PyObject * obj1 = 0 ;
5074 char * kwnames[] = {
5075 (char *) "self",(char *) "dashes", NULL
5076 };
5077
5078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5080 if (!SWIG_IsOK(res1)) {
5081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5082 }
5083 arg1 = reinterpret_cast< wxPen * >(argp1);
5084 {
5085 arg2 = PyList_Size(obj1);
5086 arg3 = (wxDash*)byte_LIST_helper(obj1);
5087 if (arg3 == NULL) SWIG_fail;
5088 }
5089 {
5090 PyThreadState* __tstate = wxPyBeginAllowThreads();
5091 (arg1)->SetDashes(arg2,arg3);
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = SWIG_Py_Void();
5096 {
5097 if (arg3) delete [] arg3;
5098 }
5099 return resultobj;
5100 fail:
5101 {
5102 if (arg3) delete [] arg3;
5103 }
5104 return NULL;
5105 }
5106
5107
5108 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5109 PyObject *resultobj = 0;
5110 wxPen *arg1 = (wxPen *) 0 ;
5111 PyObject *result = 0 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 PyObject *swig_obj[1] ;
5115
5116 if (!args) SWIG_fail;
5117 swig_obj[0] = args;
5118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5119 if (!SWIG_IsOK(res1)) {
5120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5121 }
5122 arg1 = reinterpret_cast< wxPen * >(argp1);
5123 {
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 result = (PyObject *)wxPen_GetDashes(arg1);
5126 wxPyEndAllowThreads(__tstate);
5127 if (PyErr_Occurred()) SWIG_fail;
5128 }
5129 resultobj = result;
5130 return resultobj;
5131 fail:
5132 return NULL;
5133 }
5134
5135
5136 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5137 PyObject *resultobj = 0;
5138 wxPen *arg1 = (wxPen *) 0 ;
5139 PyObject *arg2 = (PyObject *) 0 ;
5140 PyObject *arg3 = (PyObject *) 0 ;
5141 void *argp1 = 0 ;
5142 int res1 = 0 ;
5143 PyObject * obj0 = 0 ;
5144 PyObject * obj1 = 0 ;
5145 PyObject * obj2 = 0 ;
5146 char * kwnames[] = {
5147 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5148 };
5149
5150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5152 if (!SWIG_IsOK(res1)) {
5153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5154 }
5155 arg1 = reinterpret_cast< wxPen * >(argp1);
5156 arg2 = obj1;
5157 arg3 = obj2;
5158 {
5159 PyThreadState* __tstate = wxPyBeginAllowThreads();
5160 wxPen__SetDashes(arg1,arg2,arg3);
5161 wxPyEndAllowThreads(__tstate);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 resultobj = SWIG_Py_Void();
5165 return resultobj;
5166 fail:
5167 return NULL;
5168 }
5169
5170
5171 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5172 PyObject *resultobj = 0;
5173 wxPen *arg1 = (wxPen *) 0 ;
5174 wxPen *arg2 = (wxPen *) 0 ;
5175 bool result;
5176 void *argp1 = 0 ;
5177 int res1 = 0 ;
5178 void *argp2 = 0 ;
5179 int res2 = 0 ;
5180 PyObject * obj0 = 0 ;
5181 PyObject * obj1 = 0 ;
5182 char * kwnames[] = {
5183 (char *) "self",(char *) "other", NULL
5184 };
5185
5186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5188 if (!SWIG_IsOK(res1)) {
5189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5190 }
5191 arg1 = reinterpret_cast< wxPen * >(argp1);
5192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5193 if (!SWIG_IsOK(res2)) {
5194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5195 }
5196 arg2 = reinterpret_cast< wxPen * >(argp2);
5197 {
5198 PyThreadState* __tstate = wxPyBeginAllowThreads();
5199 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 {
5204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5205 }
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5213 PyObject *resultobj = 0;
5214 wxPen *arg1 = (wxPen *) 0 ;
5215 wxPen *arg2 = (wxPen *) 0 ;
5216 bool result;
5217 void *argp1 = 0 ;
5218 int res1 = 0 ;
5219 void *argp2 = 0 ;
5220 int res2 = 0 ;
5221 PyObject * obj0 = 0 ;
5222 PyObject * obj1 = 0 ;
5223 char * kwnames[] = {
5224 (char *) "self",(char *) "other", NULL
5225 };
5226
5227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5229 if (!SWIG_IsOK(res1)) {
5230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5231 }
5232 arg1 = reinterpret_cast< wxPen * >(argp1);
5233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5234 if (!SWIG_IsOK(res2)) {
5235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5236 }
5237 arg2 = reinterpret_cast< wxPen * >(argp2);
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5241 wxPyEndAllowThreads(__tstate);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 {
5245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5246 }
5247 return resultobj;
5248 fail:
5249 return NULL;
5250 }
5251
5252
5253 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5254 PyObject *obj;
5255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5256 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5257 return SWIG_Py_Void();
5258 }
5259
5260 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5261 return SWIG_Python_InitShadowInstance(args);
5262 }
5263
5264 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5265 PyObject *resultobj = 0;
5266 wxColour *arg1 = 0 ;
5267 int arg2 = (int) wxSOLID ;
5268 wxBrush *result = 0 ;
5269 wxColour temp1 ;
5270 int val2 ;
5271 int ecode2 = 0 ;
5272 PyObject * obj0 = 0 ;
5273 PyObject * obj1 = 0 ;
5274 char * kwnames[] = {
5275 (char *) "colour",(char *) "style", NULL
5276 };
5277
5278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5279 {
5280 arg1 = &temp1;
5281 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5282 }
5283 if (obj1) {
5284 ecode2 = SWIG_AsVal_int(obj1, &val2);
5285 if (!SWIG_IsOK(ecode2)) {
5286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5287 }
5288 arg2 = static_cast< int >(val2);
5289 }
5290 {
5291 if (!wxPyCheckForApp()) SWIG_fail;
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5298 return resultobj;
5299 fail:
5300 return NULL;
5301 }
5302
5303
5304 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5305 PyObject *resultobj = 0;
5306 wxBitmap *arg1 = 0 ;
5307 wxBrush *result = 0 ;
5308 void *argp1 = 0 ;
5309 int res1 = 0 ;
5310 PyObject * obj0 = 0 ;
5311 char * kwnames[] = {
5312 (char *) "stippleBitmap", NULL
5313 };
5314
5315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5316 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5317 if (!SWIG_IsOK(res1)) {
5318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5319 }
5320 if (!argp1) {
5321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5322 }
5323 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5324 {
5325 if (!wxPyCheckForApp()) SWIG_fail;
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5332 return resultobj;
5333 fail:
5334 return NULL;
5335 }
5336
5337
5338 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5339 PyObject *resultobj = 0;
5340 wxBrush *arg1 = (wxBrush *) 0 ;
5341 void *argp1 = 0 ;
5342 int res1 = 0 ;
5343 PyObject *swig_obj[1] ;
5344
5345 if (!args) SWIG_fail;
5346 swig_obj[0] = args;
5347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5348 if (!SWIG_IsOK(res1)) {
5349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5350 }
5351 arg1 = reinterpret_cast< wxBrush * >(argp1);
5352 {
5353 PyThreadState* __tstate = wxPyBeginAllowThreads();
5354 delete arg1;
5355
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 }
5359 resultobj = SWIG_Py_Void();
5360 return resultobj;
5361 fail:
5362 return NULL;
5363 }
5364
5365
5366 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5367 PyObject *resultobj = 0;
5368 wxBrush *arg1 = (wxBrush *) 0 ;
5369 wxColour *arg2 = 0 ;
5370 void *argp1 = 0 ;
5371 int res1 = 0 ;
5372 wxColour temp2 ;
5373 PyObject * obj0 = 0 ;
5374 PyObject * obj1 = 0 ;
5375 char * kwnames[] = {
5376 (char *) "self",(char *) "col", NULL
5377 };
5378
5379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5381 if (!SWIG_IsOK(res1)) {
5382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5383 }
5384 arg1 = reinterpret_cast< wxBrush * >(argp1);
5385 {
5386 arg2 = &temp2;
5387 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5388 }
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 (arg1)->SetColour((wxColour const &)*arg2);
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 resultobj = SWIG_Py_Void();
5396 return resultobj;
5397 fail:
5398 return NULL;
5399 }
5400
5401
5402 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5403 PyObject *resultobj = 0;
5404 wxBrush *arg1 = (wxBrush *) 0 ;
5405 int arg2 ;
5406 void *argp1 = 0 ;
5407 int res1 = 0 ;
5408 int val2 ;
5409 int ecode2 = 0 ;
5410 PyObject * obj0 = 0 ;
5411 PyObject * obj1 = 0 ;
5412 char * kwnames[] = {
5413 (char *) "self",(char *) "style", NULL
5414 };
5415
5416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5418 if (!SWIG_IsOK(res1)) {
5419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5420 }
5421 arg1 = reinterpret_cast< wxBrush * >(argp1);
5422 ecode2 = SWIG_AsVal_int(obj1, &val2);
5423 if (!SWIG_IsOK(ecode2)) {
5424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5425 }
5426 arg2 = static_cast< int >(val2);
5427 {
5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
5429 (arg1)->SetStyle(arg2);
5430 wxPyEndAllowThreads(__tstate);
5431 if (PyErr_Occurred()) SWIG_fail;
5432 }
5433 resultobj = SWIG_Py_Void();
5434 return resultobj;
5435 fail:
5436 return NULL;
5437 }
5438
5439
5440 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5441 PyObject *resultobj = 0;
5442 wxBrush *arg1 = (wxBrush *) 0 ;
5443 wxBitmap *arg2 = 0 ;
5444 void *argp1 = 0 ;
5445 int res1 = 0 ;
5446 void *argp2 = 0 ;
5447 int res2 = 0 ;
5448 PyObject * obj0 = 0 ;
5449 PyObject * obj1 = 0 ;
5450 char * kwnames[] = {
5451 (char *) "self",(char *) "stipple", NULL
5452 };
5453
5454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5456 if (!SWIG_IsOK(res1)) {
5457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5458 }
5459 arg1 = reinterpret_cast< wxBrush * >(argp1);
5460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5461 if (!SWIG_IsOK(res2)) {
5462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5463 }
5464 if (!argp2) {
5465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5466 }
5467 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5468 {
5469 PyThreadState* __tstate = wxPyBeginAllowThreads();
5470 (arg1)->SetStipple((wxBitmap const &)*arg2);
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
5474 resultobj = SWIG_Py_Void();
5475 return resultobj;
5476 fail:
5477 return NULL;
5478 }
5479
5480
5481 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5482 PyObject *resultobj = 0;
5483 wxBrush *arg1 = (wxBrush *) 0 ;
5484 wxColour result;
5485 void *argp1 = 0 ;
5486 int res1 = 0 ;
5487 PyObject *swig_obj[1] ;
5488
5489 if (!args) SWIG_fail;
5490 swig_obj[0] = args;
5491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5492 if (!SWIG_IsOK(res1)) {
5493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5494 }
5495 arg1 = reinterpret_cast< wxBrush * >(argp1);
5496 {
5497 PyThreadState* __tstate = wxPyBeginAllowThreads();
5498 result = ((wxBrush const *)arg1)->GetColour();
5499 wxPyEndAllowThreads(__tstate);
5500 if (PyErr_Occurred()) SWIG_fail;
5501 }
5502 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5503 return resultobj;
5504 fail:
5505 return NULL;
5506 }
5507
5508
5509 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5510 PyObject *resultobj = 0;
5511 wxBrush *arg1 = (wxBrush *) 0 ;
5512 int result;
5513 void *argp1 = 0 ;
5514 int res1 = 0 ;
5515 PyObject *swig_obj[1] ;
5516
5517 if (!args) SWIG_fail;
5518 swig_obj[0] = args;
5519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5520 if (!SWIG_IsOK(res1)) {
5521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5522 }
5523 arg1 = reinterpret_cast< wxBrush * >(argp1);
5524 {
5525 PyThreadState* __tstate = wxPyBeginAllowThreads();
5526 result = (int)((wxBrush const *)arg1)->GetStyle();
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 resultobj = SWIG_From_int(static_cast< int >(result));
5531 return resultobj;
5532 fail:
5533 return NULL;
5534 }
5535
5536
5537 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5538 PyObject *resultobj = 0;
5539 wxBrush *arg1 = (wxBrush *) 0 ;
5540 wxBitmap *result = 0 ;
5541 void *argp1 = 0 ;
5542 int res1 = 0 ;
5543 PyObject *swig_obj[1] ;
5544
5545 if (!args) SWIG_fail;
5546 swig_obj[0] = args;
5547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5548 if (!SWIG_IsOK(res1)) {
5549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5550 }
5551 arg1 = reinterpret_cast< wxBrush * >(argp1);
5552 {
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5559 return resultobj;
5560 fail:
5561 return NULL;
5562 }
5563
5564
5565 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5566 PyObject *resultobj = 0;
5567 wxBrush *arg1 = (wxBrush *) 0 ;
5568 bool result;
5569 void *argp1 = 0 ;
5570 int res1 = 0 ;
5571 PyObject *swig_obj[1] ;
5572
5573 if (!args) SWIG_fail;
5574 swig_obj[0] = args;
5575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5576 if (!SWIG_IsOK(res1)) {
5577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5578 }
5579 arg1 = reinterpret_cast< wxBrush * >(argp1);
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 result = (bool)((wxBrush const *)arg1)->IsHatch();
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 }
5586 {
5587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5588 }
5589 return resultobj;
5590 fail:
5591 return NULL;
5592 }
5593
5594
5595 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5596 PyObject *resultobj = 0;
5597 wxBrush *arg1 = (wxBrush *) 0 ;
5598 bool result;
5599 void *argp1 = 0 ;
5600 int res1 = 0 ;
5601 PyObject *swig_obj[1] ;
5602
5603 if (!args) SWIG_fail;
5604 swig_obj[0] = args;
5605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5606 if (!SWIG_IsOK(res1)) {
5607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5608 }
5609 arg1 = reinterpret_cast< wxBrush * >(argp1);
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 result = (bool)(arg1)->Ok();
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 {
5617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5618 }
5619 return resultobj;
5620 fail:
5621 return NULL;
5622 }
5623
5624
5625 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5626 PyObject *resultobj = 0;
5627 wxBrush *arg1 = (wxBrush *) 0 ;
5628 short result;
5629 void *argp1 = 0 ;
5630 int res1 = 0 ;
5631 PyObject *swig_obj[1] ;
5632
5633 if (!args) SWIG_fail;
5634 swig_obj[0] = args;
5635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5636 if (!SWIG_IsOK(res1)) {
5637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5638 }
5639 arg1 = reinterpret_cast< wxBrush * >(argp1);
5640 {
5641 PyThreadState* __tstate = wxPyBeginAllowThreads();
5642 result = (short)(arg1)->MacGetTheme();
5643 wxPyEndAllowThreads(__tstate);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 }
5646 resultobj = SWIG_From_short(static_cast< short >(result));
5647 return resultobj;
5648 fail:
5649 return NULL;
5650 }
5651
5652
5653 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5654 PyObject *resultobj = 0;
5655 wxBrush *arg1 = (wxBrush *) 0 ;
5656 short arg2 ;
5657 void *argp1 = 0 ;
5658 int res1 = 0 ;
5659 short val2 ;
5660 int ecode2 = 0 ;
5661 PyObject * obj0 = 0 ;
5662 PyObject * obj1 = 0 ;
5663 char * kwnames[] = {
5664 (char *) "self",(char *) "macThemeBrush", NULL
5665 };
5666
5667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5669 if (!SWIG_IsOK(res1)) {
5670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5671 }
5672 arg1 = reinterpret_cast< wxBrush * >(argp1);
5673 ecode2 = SWIG_AsVal_short(obj1, &val2);
5674 if (!SWIG_IsOK(ecode2)) {
5675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5676 }
5677 arg2 = static_cast< short >(val2);
5678 {
5679 PyThreadState* __tstate = wxPyBeginAllowThreads();
5680 (arg1)->MacSetTheme(arg2);
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 resultobj = SWIG_Py_Void();
5685 return resultobj;
5686 fail:
5687 return NULL;
5688 }
5689
5690
5691 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 PyObject *obj;
5693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5694 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5695 return SWIG_Py_Void();
5696 }
5697
5698 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5699 return SWIG_Python_InitShadowInstance(args);
5700 }
5701
5702 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5703 PyObject *resultobj = 0;
5704 wxString *arg1 = 0 ;
5705 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5706 wxBitmap *result = 0 ;
5707 bool temp1 = false ;
5708 int val2 ;
5709 int ecode2 = 0 ;
5710 PyObject * obj0 = 0 ;
5711 PyObject * obj1 = 0 ;
5712 char * kwnames[] = {
5713 (char *) "name",(char *) "type", NULL
5714 };
5715
5716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5717 {
5718 arg1 = wxString_in_helper(obj0);
5719 if (arg1 == NULL) SWIG_fail;
5720 temp1 = true;
5721 }
5722 if (obj1) {
5723 ecode2 = SWIG_AsVal_int(obj1, &val2);
5724 if (!SWIG_IsOK(ecode2)) {
5725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5726 }
5727 arg2 = static_cast< wxBitmapType >(val2);
5728 }
5729 {
5730 if (!wxPyCheckForApp()) SWIG_fail;
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
5732 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5733 wxPyEndAllowThreads(__tstate);
5734 if (PyErr_Occurred()) SWIG_fail;
5735 }
5736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5737 {
5738 if (temp1)
5739 delete arg1;
5740 }
5741 return resultobj;
5742 fail:
5743 {
5744 if (temp1)
5745 delete arg1;
5746 }
5747 return NULL;
5748 }
5749
5750
5751 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5752 PyObject *resultobj = 0;
5753 wxBitmap *arg1 = (wxBitmap *) 0 ;
5754 void *argp1 = 0 ;
5755 int res1 = 0 ;
5756 PyObject *swig_obj[1] ;
5757
5758 if (!args) SWIG_fail;
5759 swig_obj[0] = args;
5760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5761 if (!SWIG_IsOK(res1)) {
5762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5763 }
5764 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5765 {
5766 delete arg1;
5767
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 resultobj = SWIG_Py_Void();
5771 return resultobj;
5772 fail:
5773 return NULL;
5774 }
5775
5776
5777 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj = 0;
5779 int arg1 ;
5780 int arg2 ;
5781 int arg3 = (int) -1 ;
5782 wxBitmap *result = 0 ;
5783 int val1 ;
5784 int ecode1 = 0 ;
5785 int val2 ;
5786 int ecode2 = 0 ;
5787 int val3 ;
5788 int ecode3 = 0 ;
5789 PyObject * obj0 = 0 ;
5790 PyObject * obj1 = 0 ;
5791 PyObject * obj2 = 0 ;
5792 char * kwnames[] = {
5793 (char *) "width",(char *) "height",(char *) "depth", NULL
5794 };
5795
5796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5797 ecode1 = SWIG_AsVal_int(obj0, &val1);
5798 if (!SWIG_IsOK(ecode1)) {
5799 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5800 }
5801 arg1 = static_cast< int >(val1);
5802 ecode2 = SWIG_AsVal_int(obj1, &val2);
5803 if (!SWIG_IsOK(ecode2)) {
5804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5805 }
5806 arg2 = static_cast< int >(val2);
5807 if (obj2) {
5808 ecode3 = SWIG_AsVal_int(obj2, &val3);
5809 if (!SWIG_IsOK(ecode3)) {
5810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5811 }
5812 arg3 = static_cast< int >(val3);
5813 }
5814 {
5815 if (!wxPyCheckForApp()) SWIG_fail;
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5818 wxPyEndAllowThreads(__tstate);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 }
5821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5822 return resultobj;
5823 fail:
5824 return NULL;
5825 }
5826
5827
5828 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5829 PyObject *resultobj = 0;
5830 wxIcon *arg1 = 0 ;
5831 wxBitmap *result = 0 ;
5832 void *argp1 = 0 ;
5833 int res1 = 0 ;
5834 PyObject * obj0 = 0 ;
5835 char * kwnames[] = {
5836 (char *) "icon", NULL
5837 };
5838
5839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5840 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5841 if (!SWIG_IsOK(res1)) {
5842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5843 }
5844 if (!argp1) {
5845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5846 }
5847 arg1 = reinterpret_cast< wxIcon * >(argp1);
5848 {
5849 if (!wxPyCheckForApp()) SWIG_fail;
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5856 return resultobj;
5857 fail:
5858 return NULL;
5859 }
5860
5861
5862 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5863 PyObject *resultobj = 0;
5864 wxImage *arg1 = 0 ;
5865 int arg2 = (int) -1 ;
5866 wxBitmap *result = 0 ;
5867 void *argp1 = 0 ;
5868 int res1 = 0 ;
5869 int val2 ;
5870 int ecode2 = 0 ;
5871 PyObject * obj0 = 0 ;
5872 PyObject * obj1 = 0 ;
5873 char * kwnames[] = {
5874 (char *) "image",(char *) "depth", NULL
5875 };
5876
5877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5878 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5879 if (!SWIG_IsOK(res1)) {
5880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5881 }
5882 if (!argp1) {
5883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5884 }
5885 arg1 = reinterpret_cast< wxImage * >(argp1);
5886 if (obj1) {
5887 ecode2 = SWIG_AsVal_int(obj1, &val2);
5888 if (!SWIG_IsOK(ecode2)) {
5889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5890 }
5891 arg2 = static_cast< int >(val2);
5892 }
5893 {
5894 if (!wxPyCheckForApp()) SWIG_fail;
5895 PyThreadState* __tstate = wxPyBeginAllowThreads();
5896 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj = 0;
5909 PyObject *arg1 = (PyObject *) 0 ;
5910 wxBitmap *result = 0 ;
5911 PyObject * obj0 = 0 ;
5912 char * kwnames[] = {
5913 (char *) "listOfStrings", NULL
5914 };
5915
5916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5917 arg1 = obj0;
5918 {
5919 if (!wxPyCheckForApp()) SWIG_fail;
5920 PyThreadState* __tstate = wxPyBeginAllowThreads();
5921 result = (wxBitmap *)new_wxBitmap(arg1);
5922 wxPyEndAllowThreads(__tstate);
5923 if (PyErr_Occurred()) SWIG_fail;
5924 }
5925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5926 return resultobj;
5927 fail:
5928 return NULL;
5929 }
5930
5931
5932 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5933 PyObject *resultobj = 0;
5934 PyObject *arg1 = (PyObject *) 0 ;
5935 int arg2 ;
5936 int arg3 ;
5937 int arg4 = (int) 1 ;
5938 wxBitmap *result = 0 ;
5939 int val2 ;
5940 int ecode2 = 0 ;
5941 int val3 ;
5942 int ecode3 = 0 ;
5943 int val4 ;
5944 int ecode4 = 0 ;
5945 PyObject * obj0 = 0 ;
5946 PyObject * obj1 = 0 ;
5947 PyObject * obj2 = 0 ;
5948 PyObject * obj3 = 0 ;
5949 char * kwnames[] = {
5950 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5951 };
5952
5953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5954 arg1 = obj0;
5955 ecode2 = SWIG_AsVal_int(obj1, &val2);
5956 if (!SWIG_IsOK(ecode2)) {
5957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5958 }
5959 arg2 = static_cast< int >(val2);
5960 ecode3 = SWIG_AsVal_int(obj2, &val3);
5961 if (!SWIG_IsOK(ecode3)) {
5962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5963 }
5964 arg3 = static_cast< int >(val3);
5965 if (obj3) {
5966 ecode4 = SWIG_AsVal_int(obj3, &val4);
5967 if (!SWIG_IsOK(ecode4)) {
5968 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5969 }
5970 arg4 = static_cast< int >(val4);
5971 }
5972 {
5973 if (!wxPyCheckForApp()) SWIG_fail;
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5980 return resultobj;
5981 fail:
5982 return NULL;
5983 }
5984
5985
5986 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5987 PyObject *resultobj = 0;
5988 wxBitmap *arg1 = (wxBitmap *) 0 ;
5989 bool result;
5990 void *argp1 = 0 ;
5991 int res1 = 0 ;
5992 PyObject *swig_obj[1] ;
5993
5994 if (!args) SWIG_fail;
5995 swig_obj[0] = args;
5996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5999 }
6000 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6001 {
6002 result = (bool)(arg1)->Ok();
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 {
6006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6007 }
6008 return resultobj;
6009 fail:
6010 return NULL;
6011 }
6012
6013
6014 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6015 PyObject *resultobj = 0;
6016 wxBitmap *arg1 = (wxBitmap *) 0 ;
6017 int result;
6018 void *argp1 = 0 ;
6019 int res1 = 0 ;
6020 PyObject *swig_obj[1] ;
6021
6022 if (!args) SWIG_fail;
6023 swig_obj[0] = args;
6024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6025 if (!SWIG_IsOK(res1)) {
6026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6027 }
6028 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6029 {
6030 result = (int)(arg1)->GetWidth();
6031 if (PyErr_Occurred()) SWIG_fail;
6032 }
6033 resultobj = SWIG_From_int(static_cast< int >(result));
6034 return resultobj;
6035 fail:
6036 return NULL;
6037 }
6038
6039
6040 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6041 PyObject *resultobj = 0;
6042 wxBitmap *arg1 = (wxBitmap *) 0 ;
6043 int result;
6044 void *argp1 = 0 ;
6045 int res1 = 0 ;
6046 PyObject *swig_obj[1] ;
6047
6048 if (!args) SWIG_fail;
6049 swig_obj[0] = args;
6050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6051 if (!SWIG_IsOK(res1)) {
6052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6053 }
6054 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6055 {
6056 result = (int)(arg1)->GetHeight();
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 resultobj = SWIG_From_int(static_cast< int >(result));
6060 return resultobj;
6061 fail:
6062 return NULL;
6063 }
6064
6065
6066 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6067 PyObject *resultobj = 0;
6068 wxBitmap *arg1 = (wxBitmap *) 0 ;
6069 int result;
6070 void *argp1 = 0 ;
6071 int res1 = 0 ;
6072 PyObject *swig_obj[1] ;
6073
6074 if (!args) SWIG_fail;
6075 swig_obj[0] = args;
6076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6077 if (!SWIG_IsOK(res1)) {
6078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6079 }
6080 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6081 {
6082 result = (int)(arg1)->GetDepth();
6083 if (PyErr_Occurred()) SWIG_fail;
6084 }
6085 resultobj = SWIG_From_int(static_cast< int >(result));
6086 return resultobj;
6087 fail:
6088 return NULL;
6089 }
6090
6091
6092 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6093 PyObject *resultobj = 0;
6094 wxBitmap *arg1 = (wxBitmap *) 0 ;
6095 wxSize result;
6096 void *argp1 = 0 ;
6097 int res1 = 0 ;
6098 PyObject *swig_obj[1] ;
6099
6100 if (!args) SWIG_fail;
6101 swig_obj[0] = args;
6102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6103 if (!SWIG_IsOK(res1)) {
6104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6105 }
6106 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6107 {
6108 result = wxBitmap_GetSize(arg1);
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6112 return resultobj;
6113 fail:
6114 return NULL;
6115 }
6116
6117
6118 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6119 PyObject *resultobj = 0;
6120 wxBitmap *arg1 = (wxBitmap *) 0 ;
6121 SwigValueWrapper<wxImage > result;
6122 void *argp1 = 0 ;
6123 int res1 = 0 ;
6124 PyObject *swig_obj[1] ;
6125
6126 if (!args) SWIG_fail;
6127 swig_obj[0] = args;
6128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6129 if (!SWIG_IsOK(res1)) {
6130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6131 }
6132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6133 {
6134 result = ((wxBitmap const *)arg1)->ConvertToImage();
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6138 return resultobj;
6139 fail:
6140 return NULL;
6141 }
6142
6143
6144 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6145 PyObject *resultobj = 0;
6146 wxBitmap *arg1 = (wxBitmap *) 0 ;
6147 wxMask *result = 0 ;
6148 void *argp1 = 0 ;
6149 int res1 = 0 ;
6150 PyObject *swig_obj[1] ;
6151
6152 if (!args) SWIG_fail;
6153 swig_obj[0] = args;
6154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6155 if (!SWIG_IsOK(res1)) {
6156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6157 }
6158 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6159 {
6160 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6164 return resultobj;
6165 fail:
6166 return NULL;
6167 }
6168
6169
6170 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6171 PyObject *resultobj = 0;
6172 wxBitmap *arg1 = (wxBitmap *) 0 ;
6173 wxMask *arg2 = (wxMask *) 0 ;
6174 void *argp1 = 0 ;
6175 int res1 = 0 ;
6176 int res2 = 0 ;
6177 PyObject * obj0 = 0 ;
6178 PyObject * obj1 = 0 ;
6179 char * kwnames[] = {
6180 (char *) "self",(char *) "mask", NULL
6181 };
6182
6183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6185 if (!SWIG_IsOK(res1)) {
6186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6187 }
6188 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6189 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6190 if (!SWIG_IsOK(res2)) {
6191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6192 }
6193 {
6194 (arg1)->SetMask(arg2);
6195 if (PyErr_Occurred()) SWIG_fail;
6196 }
6197 resultobj = SWIG_Py_Void();
6198 return resultobj;
6199 fail:
6200 return NULL;
6201 }
6202
6203
6204 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6205 PyObject *resultobj = 0;
6206 wxBitmap *arg1 = (wxBitmap *) 0 ;
6207 wxColour *arg2 = 0 ;
6208 void *argp1 = 0 ;
6209 int res1 = 0 ;
6210 wxColour temp2 ;
6211 PyObject * obj0 = 0 ;
6212 PyObject * obj1 = 0 ;
6213 char * kwnames[] = {
6214 (char *) "self",(char *) "colour", NULL
6215 };
6216
6217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6219 if (!SWIG_IsOK(res1)) {
6220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6221 }
6222 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6223 {
6224 arg2 = &temp2;
6225 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6226 }
6227 {
6228 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
6231 resultobj = SWIG_Py_Void();
6232 return resultobj;
6233 fail:
6234 return NULL;
6235 }
6236
6237
6238 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6239 PyObject *resultobj = 0;
6240 wxBitmap *arg1 = (wxBitmap *) 0 ;
6241 wxRect *arg2 = 0 ;
6242 SwigValueWrapper<wxBitmap > result;
6243 void *argp1 = 0 ;
6244 int res1 = 0 ;
6245 wxRect temp2 ;
6246 PyObject * obj0 = 0 ;
6247 PyObject * obj1 = 0 ;
6248 char * kwnames[] = {
6249 (char *) "self",(char *) "rect", NULL
6250 };
6251
6252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6254 if (!SWIG_IsOK(res1)) {
6255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6256 }
6257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6258 {
6259 arg2 = &temp2;
6260 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6261 }
6262 {
6263 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj = 0;
6275 wxBitmap *arg1 = (wxBitmap *) 0 ;
6276 wxString *arg2 = 0 ;
6277 wxBitmapType arg3 ;
6278 wxPalette *arg4 = (wxPalette *) NULL ;
6279 bool result;
6280 void *argp1 = 0 ;
6281 int res1 = 0 ;
6282 bool temp2 = false ;
6283 int val3 ;
6284 int ecode3 = 0 ;
6285 void *argp4 = 0 ;
6286 int res4 = 0 ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 PyObject * obj3 = 0 ;
6291 char * kwnames[] = {
6292 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6293 };
6294
6295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6297 if (!SWIG_IsOK(res1)) {
6298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6299 }
6300 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6301 {
6302 arg2 = wxString_in_helper(obj1);
6303 if (arg2 == NULL) SWIG_fail;
6304 temp2 = true;
6305 }
6306 ecode3 = SWIG_AsVal_int(obj2, &val3);
6307 if (!SWIG_IsOK(ecode3)) {
6308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6309 }
6310 arg3 = static_cast< wxBitmapType >(val3);
6311 if (obj3) {
6312 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6313 if (!SWIG_IsOK(res4)) {
6314 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6315 }
6316 arg4 = reinterpret_cast< wxPalette * >(argp4);
6317 }
6318 {
6319 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6320 if (PyErr_Occurred()) SWIG_fail;
6321 }
6322 {
6323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6324 }
6325 {
6326 if (temp2)
6327 delete arg2;
6328 }
6329 return resultobj;
6330 fail:
6331 {
6332 if (temp2)
6333 delete arg2;
6334 }
6335 return NULL;
6336 }
6337
6338
6339 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj = 0;
6341 wxBitmap *arg1 = (wxBitmap *) 0 ;
6342 wxString *arg2 = 0 ;
6343 wxBitmapType arg3 ;
6344 bool result;
6345 void *argp1 = 0 ;
6346 int res1 = 0 ;
6347 bool temp2 = false ;
6348 int val3 ;
6349 int ecode3 = 0 ;
6350 PyObject * obj0 = 0 ;
6351 PyObject * obj1 = 0 ;
6352 PyObject * obj2 = 0 ;
6353 char * kwnames[] = {
6354 (char *) "self",(char *) "name",(char *) "type", NULL
6355 };
6356
6357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6359 if (!SWIG_IsOK(res1)) {
6360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6361 }
6362 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6363 {
6364 arg2 = wxString_in_helper(obj1);
6365 if (arg2 == NULL) SWIG_fail;
6366 temp2 = true;
6367 }
6368 ecode3 = SWIG_AsVal_int(obj2, &val3);
6369 if (!SWIG_IsOK(ecode3)) {
6370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6371 }
6372 arg3 = static_cast< wxBitmapType >(val3);
6373 {
6374 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 {
6378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6379 }
6380 {
6381 if (temp2)
6382 delete arg2;
6383 }
6384 return resultobj;
6385 fail:
6386 {
6387 if (temp2)
6388 delete arg2;
6389 }
6390 return NULL;
6391 }
6392
6393
6394 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6395 PyObject *resultobj = 0;
6396 wxBitmap *arg1 = (wxBitmap *) 0 ;
6397 wxPalette *result = 0 ;
6398 void *argp1 = 0 ;
6399 int res1 = 0 ;
6400 PyObject *swig_obj[1] ;
6401
6402 if (!args) SWIG_fail;
6403 swig_obj[0] = args;
6404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6405 if (!SWIG_IsOK(res1)) {
6406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6407 }
6408 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6409 {
6410 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6414 return resultobj;
6415 fail:
6416 return NULL;
6417 }
6418
6419
6420 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6421 PyObject *resultobj = 0;
6422 wxBitmap *arg1 = (wxBitmap *) 0 ;
6423 wxIcon *arg2 = 0 ;
6424 bool result;
6425 void *argp1 = 0 ;
6426 int res1 = 0 ;
6427 void *argp2 = 0 ;
6428 int res2 = 0 ;
6429 PyObject * obj0 = 0 ;
6430 PyObject * obj1 = 0 ;
6431 char * kwnames[] = {
6432 (char *) "self",(char *) "icon", NULL
6433 };
6434
6435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6437 if (!SWIG_IsOK(res1)) {
6438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6439 }
6440 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6442 if (!SWIG_IsOK(res2)) {
6443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6444 }
6445 if (!argp2) {
6446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6447 }
6448 arg2 = reinterpret_cast< wxIcon * >(argp2);
6449 {
6450 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 {
6454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6455 }
6456 return resultobj;
6457 fail:
6458 return NULL;
6459 }
6460
6461
6462 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6463 PyObject *resultobj = 0;
6464 wxBitmap *arg1 = (wxBitmap *) 0 ;
6465 int arg2 ;
6466 void *argp1 = 0 ;
6467 int res1 = 0 ;
6468 int val2 ;
6469 int ecode2 = 0 ;
6470 PyObject * obj0 = 0 ;
6471 PyObject * obj1 = 0 ;
6472 char * kwnames[] = {
6473 (char *) "self",(char *) "height", NULL
6474 };
6475
6476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6478 if (!SWIG_IsOK(res1)) {
6479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6480 }
6481 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6482 ecode2 = SWIG_AsVal_int(obj1, &val2);
6483 if (!SWIG_IsOK(ecode2)) {
6484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6485 }
6486 arg2 = static_cast< int >(val2);
6487 {
6488 (arg1)->SetHeight(arg2);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 resultobj = SWIG_Py_Void();
6492 return resultobj;
6493 fail:
6494 return NULL;
6495 }
6496
6497
6498 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6499 PyObject *resultobj = 0;
6500 wxBitmap *arg1 = (wxBitmap *) 0 ;
6501 int arg2 ;
6502 void *argp1 = 0 ;
6503 int res1 = 0 ;
6504 int val2 ;
6505 int ecode2 = 0 ;
6506 PyObject * obj0 = 0 ;
6507 PyObject * obj1 = 0 ;
6508 char * kwnames[] = {
6509 (char *) "self",(char *) "width", NULL
6510 };
6511
6512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6516 }
6517 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6518 ecode2 = SWIG_AsVal_int(obj1, &val2);
6519 if (!SWIG_IsOK(ecode2)) {
6520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6521 }
6522 arg2 = static_cast< int >(val2);
6523 {
6524 (arg1)->SetWidth(arg2);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_Py_Void();
6528 return resultobj;
6529 fail:
6530 return NULL;
6531 }
6532
6533
6534 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6535 PyObject *resultobj = 0;
6536 wxBitmap *arg1 = (wxBitmap *) 0 ;
6537 int arg2 ;
6538 void *argp1 = 0 ;
6539 int res1 = 0 ;
6540 int val2 ;
6541 int ecode2 = 0 ;
6542 PyObject * obj0 = 0 ;
6543 PyObject * obj1 = 0 ;
6544 char * kwnames[] = {
6545 (char *) "self",(char *) "depth", NULL
6546 };
6547
6548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6550 if (!SWIG_IsOK(res1)) {
6551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6552 }
6553 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6554 ecode2 = SWIG_AsVal_int(obj1, &val2);
6555 if (!SWIG_IsOK(ecode2)) {
6556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6557 }
6558 arg2 = static_cast< int >(val2);
6559 {
6560 (arg1)->SetDepth(arg2);
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 resultobj = SWIG_Py_Void();
6564 return resultobj;
6565 fail:
6566 return NULL;
6567 }
6568
6569
6570 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6571 PyObject *resultobj = 0;
6572 wxBitmap *arg1 = (wxBitmap *) 0 ;
6573 wxSize *arg2 = 0 ;
6574 void *argp1 = 0 ;
6575 int res1 = 0 ;
6576 wxSize temp2 ;
6577 PyObject * obj0 = 0 ;
6578 PyObject * obj1 = 0 ;
6579 char * kwnames[] = {
6580 (char *) "self",(char *) "size", NULL
6581 };
6582
6583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6585 if (!SWIG_IsOK(res1)) {
6586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6587 }
6588 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6589 {
6590 arg2 = &temp2;
6591 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6592 }
6593 {
6594 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
6597 resultobj = SWIG_Py_Void();
6598 return resultobj;
6599 fail:
6600 return NULL;
6601 }
6602
6603
6604 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj = 0;
6606 wxBitmap *arg1 = (wxBitmap *) 0 ;
6607 wxBitmap *arg2 = (wxBitmap *) 0 ;
6608 bool result;
6609 void *argp1 = 0 ;
6610 int res1 = 0 ;
6611 void *argp2 = 0 ;
6612 int res2 = 0 ;
6613 PyObject * obj0 = 0 ;
6614 PyObject * obj1 = 0 ;
6615 char * kwnames[] = {
6616 (char *) "self",(char *) "other", NULL
6617 };
6618
6619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6621 if (!SWIG_IsOK(res1)) {
6622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6623 }
6624 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6625 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6626 if (!SWIG_IsOK(res2)) {
6627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6628 }
6629 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6630 {
6631 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6632 if (PyErr_Occurred()) SWIG_fail;
6633 }
6634 {
6635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6636 }
6637 return resultobj;
6638 fail:
6639 return NULL;
6640 }
6641
6642
6643 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj = 0;
6645 wxBitmap *arg1 = (wxBitmap *) 0 ;
6646 wxBitmap *arg2 = (wxBitmap *) 0 ;
6647 bool result;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 void *argp2 = 0 ;
6651 int res2 = 0 ;
6652 PyObject * obj0 = 0 ;
6653 PyObject * obj1 = 0 ;
6654 char * kwnames[] = {
6655 (char *) "self",(char *) "other", NULL
6656 };
6657
6658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6662 }
6663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6665 if (!SWIG_IsOK(res2)) {
6666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6667 }
6668 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6669 {
6670 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 {
6674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6675 }
6676 return resultobj;
6677 fail:
6678 return NULL;
6679 }
6680
6681
6682 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6683 PyObject *obj;
6684 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6685 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6686 return SWIG_Py_Void();
6687 }
6688
6689 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6690 return SWIG_Python_InitShadowInstance(args);
6691 }
6692
6693 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6694 PyObject *resultobj = 0;
6695 int arg1 ;
6696 int arg2 ;
6697 buffer arg3 ;
6698 int arg4 ;
6699 buffer arg5 ;
6700 int arg6 ;
6701 wxBitmap *result = 0 ;
6702 int val1 ;
6703 int ecode1 = 0 ;
6704 int val2 ;
6705 int ecode2 = 0 ;
6706 Py_ssize_t temp3 ;
6707 Py_ssize_t temp5 ;
6708 PyObject * obj0 = 0 ;
6709 PyObject * obj1 = 0 ;
6710 PyObject * obj2 = 0 ;
6711 PyObject * obj3 = 0 ;
6712 char * kwnames[] = {
6713 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6714 };
6715
6716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6717 ecode1 = SWIG_AsVal_int(obj0, &val1);
6718 if (!SWIG_IsOK(ecode1)) {
6719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6720 }
6721 arg1 = static_cast< int >(val1);
6722 ecode2 = SWIG_AsVal_int(obj1, &val2);
6723 if (!SWIG_IsOK(ecode2)) {
6724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6725 }
6726 arg2 = static_cast< int >(val2);
6727 {
6728 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6729 arg4 = (int)temp3;
6730 }
6731 {
6732 if (obj3 != Py_None) {
6733 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6734 arg6 = (int)temp5;
6735 }
6736 }
6737 {
6738 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj = 0;
6750 int arg1 ;
6751 int arg2 ;
6752 buffer arg3 ;
6753 int arg4 ;
6754 wxBitmap *result = 0 ;
6755 int val1 ;
6756 int ecode1 = 0 ;
6757 int val2 ;
6758 int ecode2 = 0 ;
6759 Py_ssize_t temp3 ;
6760 PyObject * obj0 = 0 ;
6761 PyObject * obj1 = 0 ;
6762 PyObject * obj2 = 0 ;
6763 char * kwnames[] = {
6764 (char *) "width",(char *) "height",(char *) "data", NULL
6765 };
6766
6767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6768 ecode1 = SWIG_AsVal_int(obj0, &val1);
6769 if (!SWIG_IsOK(ecode1)) {
6770 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6771 }
6772 arg1 = static_cast< int >(val1);
6773 ecode2 = SWIG_AsVal_int(obj1, &val2);
6774 if (!SWIG_IsOK(ecode2)) {
6775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6776 }
6777 arg2 = static_cast< int >(val2);
6778 {
6779 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6780 arg4 = (int)temp3;
6781 }
6782 {
6783 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6787 return resultobj;
6788 fail:
6789 return NULL;
6790 }
6791
6792
6793 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6794 PyObject *resultobj = 0;
6795 int arg1 ;
6796 int arg2 ;
6797 buffer arg3 ;
6798 int arg4 ;
6799 wxBitmap *result = 0 ;
6800 int val1 ;
6801 int ecode1 = 0 ;
6802 int val2 ;
6803 int ecode2 = 0 ;
6804 Py_ssize_t temp3 ;
6805 PyObject * obj0 = 0 ;
6806 PyObject * obj1 = 0 ;
6807 PyObject * obj2 = 0 ;
6808 char * kwnames[] = {
6809 (char *) "width",(char *) "height",(char *) "data", NULL
6810 };
6811
6812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6813 ecode1 = SWIG_AsVal_int(obj0, &val1);
6814 if (!SWIG_IsOK(ecode1)) {
6815 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6816 }
6817 arg1 = static_cast< int >(val1);
6818 ecode2 = SWIG_AsVal_int(obj1, &val2);
6819 if (!SWIG_IsOK(ecode2)) {
6820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6821 }
6822 arg2 = static_cast< int >(val2);
6823 {
6824 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6825 arg4 = (int)temp3;
6826 }
6827 {
6828 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6832 return resultobj;
6833 fail:
6834 return NULL;
6835 }
6836
6837
6838 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6839 PyObject *resultobj = 0;
6840 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6841 wxPoint result;
6842 void *argp1 = 0 ;
6843 int res1 = 0 ;
6844 PyObject *swig_obj[1] ;
6845
6846 if (!args) SWIG_fail;
6847 swig_obj[0] = args;
6848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6849 if (!SWIG_IsOK(res1)) {
6850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6851 }
6852 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6853 {
6854 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6855 if (PyErr_Occurred()) SWIG_fail;
6856 }
6857 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6858 return resultobj;
6859 fail:
6860 return NULL;
6861 }
6862
6863
6864 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6865 PyObject *resultobj = 0;
6866 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6867 int result;
6868 void *argp1 = 0 ;
6869 int res1 = 0 ;
6870 PyObject *swig_obj[1] ;
6871
6872 if (!args) SWIG_fail;
6873 swig_obj[0] = args;
6874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6875 if (!SWIG_IsOK(res1)) {
6876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6877 }
6878 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6879 {
6880 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 resultobj = SWIG_From_int(static_cast< int >(result));
6884 return resultobj;
6885 fail:
6886 return NULL;
6887 }
6888
6889
6890 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6891 PyObject *resultobj = 0;
6892 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6893 int result;
6894 void *argp1 = 0 ;
6895 int res1 = 0 ;
6896 PyObject *swig_obj[1] ;
6897
6898 if (!args) SWIG_fail;
6899 swig_obj[0] = args;
6900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6901 if (!SWIG_IsOK(res1)) {
6902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6903 }
6904 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6905 {
6906 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
6907 if (PyErr_Occurred()) SWIG_fail;
6908 }
6909 resultobj = SWIG_From_int(static_cast< int >(result));
6910 return resultobj;
6911 fail:
6912 return NULL;
6913 }
6914
6915
6916 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6917 PyObject *resultobj = 0;
6918 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6919 wxSize result;
6920 void *argp1 = 0 ;
6921 int res1 = 0 ;
6922 PyObject *swig_obj[1] ;
6923
6924 if (!args) SWIG_fail;
6925 swig_obj[0] = args;
6926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6927 if (!SWIG_IsOK(res1)) {
6928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6929 }
6930 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6931 {
6932 result = ((wxPixelDataBase const *)arg1)->GetSize();
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6936 return resultobj;
6937 fail:
6938 return NULL;
6939 }
6940
6941
6942 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6943 PyObject *resultobj = 0;
6944 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6945 int result;
6946 void *argp1 = 0 ;
6947 int res1 = 0 ;
6948 PyObject *swig_obj[1] ;
6949
6950 if (!args) SWIG_fail;
6951 swig_obj[0] = args;
6952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6953 if (!SWIG_IsOK(res1)) {
6954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6955 }
6956 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6957 {
6958 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_From_int(static_cast< int >(result));
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6969 PyObject *obj;
6970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6971 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
6972 return SWIG_Py_Void();
6973 }
6974
6975 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6976 PyObject *resultobj = 0;
6977 wxBitmap *arg1 = 0 ;
6978 wxNativePixelData *result = 0 ;
6979 void *argp1 = 0 ;
6980 int res1 = 0 ;
6981
6982 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6984 if (!SWIG_IsOK(res1)) {
6985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6986 }
6987 if (!argp1) {
6988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6989 }
6990 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6991 {
6992 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
6993 if (PyErr_Occurred()) SWIG_fail;
6994 }
6995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6996 return resultobj;
6997 fail:
6998 return NULL;
6999 }
7000
7001
7002 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7003 PyObject *resultobj = 0;
7004 wxBitmap *arg1 = 0 ;
7005 wxRect *arg2 = 0 ;
7006 wxNativePixelData *result = 0 ;
7007 void *argp1 = 0 ;
7008 int res1 = 0 ;
7009 wxRect temp2 ;
7010
7011 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7013 if (!SWIG_IsOK(res1)) {
7014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7015 }
7016 if (!argp1) {
7017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7018 }
7019 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7020 {
7021 arg2 = &temp2;
7022 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7023 }
7024 {
7025 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7029 return resultobj;
7030 fail:
7031 return NULL;
7032 }
7033
7034
7035 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7036 PyObject *resultobj = 0;
7037 wxBitmap *arg1 = 0 ;
7038 wxPoint *arg2 = 0 ;
7039 wxSize *arg3 = 0 ;
7040 wxNativePixelData *result = 0 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 wxPoint temp2 ;
7044 wxSize temp3 ;
7045
7046 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7048 if (!SWIG_IsOK(res1)) {
7049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7050 }
7051 if (!argp1) {
7052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7053 }
7054 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7055 {
7056 arg2 = &temp2;
7057 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7058 }
7059 {
7060 arg3 = &temp3;
7061 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7062 }
7063 {
7064 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7075 int argc;
7076 PyObject *argv[4];
7077
7078 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7079 --argc;
7080 if (argc == 1) {
7081 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7082 }
7083 if (argc == 2) {
7084 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7085 }
7086 if (argc == 3) {
7087 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7088 }
7089
7090 fail:
7091 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7092 return NULL;
7093 }
7094
7095
7096 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7097 PyObject *resultobj = 0;
7098 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7099 void *argp1 = 0 ;
7100 int res1 = 0 ;
7101 PyObject *swig_obj[1] ;
7102
7103 if (!args) SWIG_fail;
7104 swig_obj[0] = args;
7105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7106 if (!SWIG_IsOK(res1)) {
7107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7108 }
7109 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7110 {
7111 delete arg1;
7112
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 resultobj = SWIG_Py_Void();
7116 return resultobj;
7117 fail:
7118 return NULL;
7119 }
7120
7121
7122 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7123 PyObject *resultobj = 0;
7124 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7125 wxNativePixelData_Accessor result;
7126 void *argp1 = 0 ;
7127 int res1 = 0 ;
7128 PyObject *swig_obj[1] ;
7129
7130 if (!args) SWIG_fail;
7131 swig_obj[0] = args;
7132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7133 if (!SWIG_IsOK(res1)) {
7134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7135 }
7136 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7137 {
7138 result = ((wxNativePixelData const *)arg1)->GetPixels();
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7149 PyObject *resultobj = 0;
7150 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7151 void *argp1 = 0 ;
7152 int res1 = 0 ;
7153 PyObject *swig_obj[1] ;
7154
7155 if (!args) SWIG_fail;
7156 swig_obj[0] = args;
7157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7158 if (!SWIG_IsOK(res1)) {
7159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7160 }
7161 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7162 {
7163 (arg1)->UseAlpha();
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_Py_Void();
7167 return resultobj;
7168 fail:
7169 return NULL;
7170 }
7171
7172
7173 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7174 PyObject *resultobj = 0;
7175 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7176 bool result;
7177 void *argp1 = 0 ;
7178 int res1 = 0 ;
7179 PyObject *swig_obj[1] ;
7180
7181 if (!args) SWIG_fail;
7182 swig_obj[0] = args;
7183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7184 if (!SWIG_IsOK(res1)) {
7185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7186 }
7187 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7188 {
7189 result = (bool)wxNativePixelData___nonzero__(arg1);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 {
7193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7194 }
7195 return resultobj;
7196 fail:
7197 return NULL;
7198 }
7199
7200
7201 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7202 PyObject *obj;
7203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7204 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7205 return SWIG_Py_Void();
7206 }
7207
7208 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7209 return SWIG_Python_InitShadowInstance(args);
7210 }
7211
7212 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7213 PyObject *resultobj = 0;
7214 wxNativePixelData *arg1 = 0 ;
7215 wxNativePixelData_Accessor *result = 0 ;
7216 void *argp1 = 0 ;
7217 int res1 = 0 ;
7218
7219 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7221 if (!SWIG_IsOK(res1)) {
7222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7223 }
7224 if (!argp1) {
7225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7226 }
7227 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7228 {
7229 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7230 if (PyErr_Occurred()) SWIG_fail;
7231 }
7232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7233 return resultobj;
7234 fail:
7235 return NULL;
7236 }
7237
7238
7239 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7240 PyObject *resultobj = 0;
7241 wxBitmap *arg1 = 0 ;
7242 wxNativePixelData *arg2 = 0 ;
7243 wxNativePixelData_Accessor *result = 0 ;
7244 void *argp1 = 0 ;
7245 int res1 = 0 ;
7246 void *argp2 = 0 ;
7247 int res2 = 0 ;
7248
7249 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7251 if (!SWIG_IsOK(res1)) {
7252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7253 }
7254 if (!argp1) {
7255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7256 }
7257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7258 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7259 if (!SWIG_IsOK(res2)) {
7260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7261 }
7262 if (!argp2) {
7263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7264 }
7265 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7266 {
7267 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7268 if (PyErr_Occurred()) SWIG_fail;
7269 }
7270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7271 return resultobj;
7272 fail:
7273 return NULL;
7274 }
7275
7276
7277 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7278 PyObject *resultobj = 0;
7279 wxNativePixelData_Accessor *result = 0 ;
7280
7281 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7282 {
7283 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7287 return resultobj;
7288 fail:
7289 return NULL;
7290 }
7291
7292
7293 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7294 int argc;
7295 PyObject *argv[3];
7296
7297 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7298 --argc;
7299 if (argc == 0) {
7300 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7301 }
7302 if (argc == 1) {
7303 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7304 }
7305 if (argc == 2) {
7306 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7307 }
7308
7309 fail:
7310 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7311 return NULL;
7312 }
7313
7314
7315 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7316 PyObject *resultobj = 0;
7317 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7318 void *argp1 = 0 ;
7319 int res1 = 0 ;
7320 PyObject *swig_obj[1] ;
7321
7322 if (!args) SWIG_fail;
7323 swig_obj[0] = args;
7324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7325 if (!SWIG_IsOK(res1)) {
7326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7327 }
7328 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7329 {
7330 delete arg1;
7331
7332 if (PyErr_Occurred()) SWIG_fail;
7333 }
7334 resultobj = SWIG_Py_Void();
7335 return resultobj;
7336 fail:
7337 return NULL;
7338 }
7339
7340
7341 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7342 PyObject *resultobj = 0;
7343 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7344 wxNativePixelData *arg2 = 0 ;
7345 void *argp1 = 0 ;
7346 int res1 = 0 ;
7347 void *argp2 = 0 ;
7348 int res2 = 0 ;
7349 PyObject * obj0 = 0 ;
7350 PyObject * obj1 = 0 ;
7351 char * kwnames[] = {
7352 (char *) "self",(char *) "data", NULL
7353 };
7354
7355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7357 if (!SWIG_IsOK(res1)) {
7358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7359 }
7360 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7362 if (!SWIG_IsOK(res2)) {
7363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7364 }
7365 if (!argp2) {
7366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7367 }
7368 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7369 {
7370 (arg1)->Reset((wxNativePixelData const &)*arg2);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
7373 resultobj = SWIG_Py_Void();
7374 return resultobj;
7375 fail:
7376 return NULL;
7377 }
7378
7379
7380 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7381 PyObject *resultobj = 0;
7382 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7383 bool result;
7384 void *argp1 = 0 ;
7385 int res1 = 0 ;
7386 PyObject *swig_obj[1] ;
7387
7388 if (!args) SWIG_fail;
7389 swig_obj[0] = args;
7390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7391 if (!SWIG_IsOK(res1)) {
7392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7393 }
7394 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7395 {
7396 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 {
7400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7401 }
7402 return resultobj;
7403 fail:
7404 return NULL;
7405 }
7406
7407
7408 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7409 PyObject *resultobj = 0;
7410 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7411 void *argp1 = 0 ;
7412 int res1 = 0 ;
7413 PyObject *swig_obj[1] ;
7414
7415 if (!args) SWIG_fail;
7416 swig_obj[0] = args;
7417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7418 if (!SWIG_IsOK(res1)) {
7419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7420 }
7421 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7422 {
7423 wxNativePixelData_Accessor_nextPixel(arg1);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 resultobj = SWIG_Py_Void();
7427 return resultobj;
7428 fail:
7429 return NULL;
7430 }
7431
7432
7433 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7434 PyObject *resultobj = 0;
7435 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7436 wxNativePixelData *arg2 = 0 ;
7437 int arg3 ;
7438 int arg4 ;
7439 void *argp1 = 0 ;
7440 int res1 = 0 ;
7441 void *argp2 = 0 ;
7442 int res2 = 0 ;
7443 int val3 ;
7444 int ecode3 = 0 ;
7445 int val4 ;
7446 int ecode4 = 0 ;
7447 PyObject * obj0 = 0 ;
7448 PyObject * obj1 = 0 ;
7449 PyObject * obj2 = 0 ;
7450 PyObject * obj3 = 0 ;
7451 char * kwnames[] = {
7452 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7453 };
7454
7455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7457 if (!SWIG_IsOK(res1)) {
7458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7459 }
7460 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7462 if (!SWIG_IsOK(res2)) {
7463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7464 }
7465 if (!argp2) {
7466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7467 }
7468 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7469 ecode3 = SWIG_AsVal_int(obj2, &val3);
7470 if (!SWIG_IsOK(ecode3)) {
7471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7472 }
7473 arg3 = static_cast< int >(val3);
7474 ecode4 = SWIG_AsVal_int(obj3, &val4);
7475 if (!SWIG_IsOK(ecode4)) {
7476 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7477 }
7478 arg4 = static_cast< int >(val4);
7479 {
7480 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 resultobj = SWIG_Py_Void();
7484 return resultobj;
7485 fail:
7486 return NULL;
7487 }
7488
7489
7490 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7491 PyObject *resultobj = 0;
7492 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7493 wxNativePixelData *arg2 = 0 ;
7494 int arg3 ;
7495 void *argp1 = 0 ;
7496 int res1 = 0 ;
7497 void *argp2 = 0 ;
7498 int res2 = 0 ;
7499 int val3 ;
7500 int ecode3 = 0 ;
7501 PyObject * obj0 = 0 ;
7502 PyObject * obj1 = 0 ;
7503 PyObject * obj2 = 0 ;
7504 char * kwnames[] = {
7505 (char *) "self",(char *) "data",(char *) "x", NULL
7506 };
7507
7508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7510 if (!SWIG_IsOK(res1)) {
7511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7512 }
7513 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7515 if (!SWIG_IsOK(res2)) {
7516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7517 }
7518 if (!argp2) {
7519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7520 }
7521 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7522 ecode3 = SWIG_AsVal_int(obj2, &val3);
7523 if (!SWIG_IsOK(ecode3)) {
7524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7525 }
7526 arg3 = static_cast< int >(val3);
7527 {
7528 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 resultobj = SWIG_Py_Void();
7532 return resultobj;
7533 fail:
7534 return NULL;
7535 }
7536
7537
7538 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7539 PyObject *resultobj = 0;
7540 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7541 wxNativePixelData *arg2 = 0 ;
7542 int arg3 ;
7543 void *argp1 = 0 ;
7544 int res1 = 0 ;
7545 void *argp2 = 0 ;
7546 int res2 = 0 ;
7547 int val3 ;
7548 int ecode3 = 0 ;
7549 PyObject * obj0 = 0 ;
7550 PyObject * obj1 = 0 ;
7551 PyObject * obj2 = 0 ;
7552 char * kwnames[] = {
7553 (char *) "self",(char *) "data",(char *) "y", NULL
7554 };
7555
7556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7558 if (!SWIG_IsOK(res1)) {
7559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7560 }
7561 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7563 if (!SWIG_IsOK(res2)) {
7564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7565 }
7566 if (!argp2) {
7567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7568 }
7569 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7570 ecode3 = SWIG_AsVal_int(obj2, &val3);
7571 if (!SWIG_IsOK(ecode3)) {
7572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7573 }
7574 arg3 = static_cast< int >(val3);
7575 {
7576 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7577 if (PyErr_Occurred()) SWIG_fail;
7578 }
7579 resultobj = SWIG_Py_Void();
7580 return resultobj;
7581 fail:
7582 return NULL;
7583 }
7584
7585
7586 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7587 PyObject *resultobj = 0;
7588 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7589 wxNativePixelData *arg2 = 0 ;
7590 int arg3 ;
7591 int arg4 ;
7592 void *argp1 = 0 ;
7593 int res1 = 0 ;
7594 void *argp2 = 0 ;
7595 int res2 = 0 ;
7596 int val3 ;
7597 int ecode3 = 0 ;
7598 int val4 ;
7599 int ecode4 = 0 ;
7600 PyObject * obj0 = 0 ;
7601 PyObject * obj1 = 0 ;
7602 PyObject * obj2 = 0 ;
7603 PyObject * obj3 = 0 ;
7604 char * kwnames[] = {
7605 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7606 };
7607
7608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7610 if (!SWIG_IsOK(res1)) {
7611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7612 }
7613 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7615 if (!SWIG_IsOK(res2)) {
7616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7617 }
7618 if (!argp2) {
7619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7620 }
7621 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7622 ecode3 = SWIG_AsVal_int(obj2, &val3);
7623 if (!SWIG_IsOK(ecode3)) {
7624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7625 }
7626 arg3 = static_cast< int >(val3);
7627 ecode4 = SWIG_AsVal_int(obj3, &val4);
7628 if (!SWIG_IsOK(ecode4)) {
7629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7630 }
7631 arg4 = static_cast< int >(val4);
7632 {
7633 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 resultobj = SWIG_Py_Void();
7637 return resultobj;
7638 fail:
7639 return NULL;
7640 }
7641
7642
7643 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj = 0;
7645 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7646 byte arg2 ;
7647 byte arg3 ;
7648 byte arg4 ;
7649 void *argp1 = 0 ;
7650 int res1 = 0 ;
7651 unsigned char val2 ;
7652 int ecode2 = 0 ;
7653 unsigned char val3 ;
7654 int ecode3 = 0 ;
7655 unsigned char val4 ;
7656 int ecode4 = 0 ;
7657 PyObject * obj0 = 0 ;
7658 PyObject * obj1 = 0 ;
7659 PyObject * obj2 = 0 ;
7660 PyObject * obj3 = 0 ;
7661 char * kwnames[] = {
7662 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7663 };
7664
7665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7667 if (!SWIG_IsOK(res1)) {
7668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7669 }
7670 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7671 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7672 if (!SWIG_IsOK(ecode2)) {
7673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7674 }
7675 arg2 = static_cast< byte >(val2);
7676 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7677 if (!SWIG_IsOK(ecode3)) {
7678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7679 }
7680 arg3 = static_cast< byte >(val3);
7681 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7682 if (!SWIG_IsOK(ecode4)) {
7683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7684 }
7685 arg4 = static_cast< byte >(val4);
7686 {
7687 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7688 if (PyErr_Occurred()) SWIG_fail;
7689 }
7690 resultobj = SWIG_Py_Void();
7691 return resultobj;
7692 fail:
7693 return NULL;
7694 }
7695
7696
7697 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7698 PyObject *resultobj = 0;
7699 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7700 PyObject *result = 0 ;
7701 void *argp1 = 0 ;
7702 int res1 = 0 ;
7703 PyObject *swig_obj[1] ;
7704
7705 if (!args) SWIG_fail;
7706 swig_obj[0] = args;
7707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7708 if (!SWIG_IsOK(res1)) {
7709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7710 }
7711 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7712 {
7713 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = result;
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7724 PyObject *obj;
7725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7726 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7727 return SWIG_Py_Void();
7728 }
7729
7730 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7731 return SWIG_Python_InitShadowInstance(args);
7732 }
7733
7734 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7735 PyObject *resultobj = 0;
7736 wxBitmap *arg1 = 0 ;
7737 wxAlphaPixelData *result = 0 ;
7738 void *argp1 = 0 ;
7739 int res1 = 0 ;
7740
7741 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7743 if (!SWIG_IsOK(res1)) {
7744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7745 }
7746 if (!argp1) {
7747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7748 }
7749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7750 {
7751 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7752 if (PyErr_Occurred()) SWIG_fail;
7753 }
7754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7755 return resultobj;
7756 fail:
7757 return NULL;
7758 }
7759
7760
7761 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7762 PyObject *resultobj = 0;
7763 wxBitmap *arg1 = 0 ;
7764 wxRect *arg2 = 0 ;
7765 wxAlphaPixelData *result = 0 ;
7766 void *argp1 = 0 ;
7767 int res1 = 0 ;
7768 wxRect temp2 ;
7769
7770 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7772 if (!SWIG_IsOK(res1)) {
7773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7774 }
7775 if (!argp1) {
7776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7777 }
7778 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7779 {
7780 arg2 = &temp2;
7781 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7782 }
7783 {
7784 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7788 return resultobj;
7789 fail:
7790 return NULL;
7791 }
7792
7793
7794 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7795 PyObject *resultobj = 0;
7796 wxBitmap *arg1 = 0 ;
7797 wxPoint *arg2 = 0 ;
7798 wxSize *arg3 = 0 ;
7799 wxAlphaPixelData *result = 0 ;
7800 void *argp1 = 0 ;
7801 int res1 = 0 ;
7802 wxPoint temp2 ;
7803 wxSize temp3 ;
7804
7805 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7807 if (!SWIG_IsOK(res1)) {
7808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7809 }
7810 if (!argp1) {
7811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7812 }
7813 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7814 {
7815 arg2 = &temp2;
7816 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7817 }
7818 {
7819 arg3 = &temp3;
7820 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7821 }
7822 {
7823 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7827 return resultobj;
7828 fail:
7829 return NULL;
7830 }
7831
7832
7833 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7834 int argc;
7835 PyObject *argv[4];
7836
7837 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7838 --argc;
7839 if (argc == 1) {
7840 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7841 }
7842 if (argc == 2) {
7843 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7844 }
7845 if (argc == 3) {
7846 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7847 }
7848
7849 fail:
7850 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7851 return NULL;
7852 }
7853
7854
7855 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7856 PyObject *resultobj = 0;
7857 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7858 void *argp1 = 0 ;
7859 int res1 = 0 ;
7860 PyObject *swig_obj[1] ;
7861
7862 if (!args) SWIG_fail;
7863 swig_obj[0] = args;
7864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7865 if (!SWIG_IsOK(res1)) {
7866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7867 }
7868 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7869 {
7870 delete arg1;
7871
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = SWIG_Py_Void();
7875 return resultobj;
7876 fail:
7877 return NULL;
7878 }
7879
7880
7881 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7882 PyObject *resultobj = 0;
7883 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7884 wxAlphaPixelData_Accessor result;
7885 void *argp1 = 0 ;
7886 int res1 = 0 ;
7887 PyObject *swig_obj[1] ;
7888
7889 if (!args) SWIG_fail;
7890 swig_obj[0] = args;
7891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7892 if (!SWIG_IsOK(res1)) {
7893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7894 }
7895 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7896 {
7897 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
7901 return resultobj;
7902 fail:
7903 return NULL;
7904 }
7905
7906
7907 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7908 PyObject *resultobj = 0;
7909 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7910 void *argp1 = 0 ;
7911 int res1 = 0 ;
7912 PyObject *swig_obj[1] ;
7913
7914 if (!args) SWIG_fail;
7915 swig_obj[0] = args;
7916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7917 if (!SWIG_IsOK(res1)) {
7918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7919 }
7920 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7921 {
7922 (arg1)->UseAlpha();
7923 if (PyErr_Occurred()) SWIG_fail;
7924 }
7925 resultobj = SWIG_Py_Void();
7926 return resultobj;
7927 fail:
7928 return NULL;
7929 }
7930
7931
7932 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7933 PyObject *resultobj = 0;
7934 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7935 bool result;
7936 void *argp1 = 0 ;
7937 int res1 = 0 ;
7938 PyObject *swig_obj[1] ;
7939
7940 if (!args) SWIG_fail;
7941 swig_obj[0] = args;
7942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7943 if (!SWIG_IsOK(res1)) {
7944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7945 }
7946 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7947 {
7948 result = (bool)wxAlphaPixelData___nonzero__(arg1);
7949 if (PyErr_Occurred()) SWIG_fail;
7950 }
7951 {
7952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7953 }
7954 return resultobj;
7955 fail:
7956 return NULL;
7957 }
7958
7959
7960 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7961 PyObject *obj;
7962 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7963 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
7964 return SWIG_Py_Void();
7965 }
7966
7967 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7968 return SWIG_Python_InitShadowInstance(args);
7969 }
7970
7971 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7972 PyObject *resultobj = 0;
7973 wxAlphaPixelData *arg1 = 0 ;
7974 wxAlphaPixelData_Accessor *result = 0 ;
7975 void *argp1 = 0 ;
7976 int res1 = 0 ;
7977
7978 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
7980 if (!SWIG_IsOK(res1)) {
7981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7982 }
7983 if (!argp1) {
7984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7985 }
7986 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7987 {
7988 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7992 return resultobj;
7993 fail:
7994 return NULL;
7995 }
7996
7997
7998 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7999 PyObject *resultobj = 0;
8000 wxBitmap *arg1 = 0 ;
8001 wxAlphaPixelData *arg2 = 0 ;
8002 wxAlphaPixelData_Accessor *result = 0 ;
8003 void *argp1 = 0 ;
8004 int res1 = 0 ;
8005 void *argp2 = 0 ;
8006 int res2 = 0 ;
8007
8008 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8010 if (!SWIG_IsOK(res1)) {
8011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8012 }
8013 if (!argp1) {
8014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8015 }
8016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8017 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8018 if (!SWIG_IsOK(res2)) {
8019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8020 }
8021 if (!argp2) {
8022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8023 }
8024 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8025 {
8026 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8030 return resultobj;
8031 fail:
8032 return NULL;
8033 }
8034
8035
8036 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8037 PyObject *resultobj = 0;
8038 wxAlphaPixelData_Accessor *result = 0 ;
8039
8040 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8041 {
8042 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8046 return resultobj;
8047 fail:
8048 return NULL;
8049 }
8050
8051
8052 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8053 int argc;
8054 PyObject *argv[3];
8055
8056 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8057 --argc;
8058 if (argc == 0) {
8059 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8060 }
8061 if (argc == 1) {
8062 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8063 }
8064 if (argc == 2) {
8065 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8066 }
8067
8068 fail:
8069 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8070 return NULL;
8071 }
8072
8073
8074 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8075 PyObject *resultobj = 0;
8076 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8077 void *argp1 = 0 ;
8078 int res1 = 0 ;
8079 PyObject *swig_obj[1] ;
8080
8081 if (!args) SWIG_fail;
8082 swig_obj[0] = args;
8083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8084 if (!SWIG_IsOK(res1)) {
8085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8086 }
8087 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8088 {
8089 delete arg1;
8090
8091 if (PyErr_Occurred()) SWIG_fail;
8092 }
8093 resultobj = SWIG_Py_Void();
8094 return resultobj;
8095 fail:
8096 return NULL;
8097 }
8098
8099
8100 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8101 PyObject *resultobj = 0;
8102 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8103 wxAlphaPixelData *arg2 = 0 ;
8104 void *argp1 = 0 ;
8105 int res1 = 0 ;
8106 void *argp2 = 0 ;
8107 int res2 = 0 ;
8108 PyObject * obj0 = 0 ;
8109 PyObject * obj1 = 0 ;
8110 char * kwnames[] = {
8111 (char *) "self",(char *) "data", NULL
8112 };
8113
8114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8116 if (!SWIG_IsOK(res1)) {
8117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8118 }
8119 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8121 if (!SWIG_IsOK(res2)) {
8122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8123 }
8124 if (!argp2) {
8125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8126 }
8127 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8128 {
8129 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8130 if (PyErr_Occurred()) SWIG_fail;
8131 }
8132 resultobj = SWIG_Py_Void();
8133 return resultobj;
8134 fail:
8135 return NULL;
8136 }
8137
8138
8139 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8140 PyObject *resultobj = 0;
8141 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8142 bool result;
8143 void *argp1 = 0 ;
8144 int res1 = 0 ;
8145 PyObject *swig_obj[1] ;
8146
8147 if (!args) SWIG_fail;
8148 swig_obj[0] = args;
8149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8150 if (!SWIG_IsOK(res1)) {
8151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8152 }
8153 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8154 {
8155 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 {
8159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8160 }
8161 return resultobj;
8162 fail:
8163 return NULL;
8164 }
8165
8166
8167 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8168 PyObject *resultobj = 0;
8169 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8170 void *argp1 = 0 ;
8171 int res1 = 0 ;
8172 PyObject *swig_obj[1] ;
8173
8174 if (!args) SWIG_fail;
8175 swig_obj[0] = args;
8176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8177 if (!SWIG_IsOK(res1)) {
8178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8179 }
8180 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8181 {
8182 wxAlphaPixelData_Accessor_nextPixel(arg1);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 resultobj = SWIG_Py_Void();
8186 return resultobj;
8187 fail:
8188 return NULL;
8189 }
8190
8191
8192 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj = 0;
8194 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8195 wxAlphaPixelData *arg2 = 0 ;
8196 int arg3 ;
8197 int arg4 ;
8198 void *argp1 = 0 ;
8199 int res1 = 0 ;
8200 void *argp2 = 0 ;
8201 int res2 = 0 ;
8202 int val3 ;
8203 int ecode3 = 0 ;
8204 int val4 ;
8205 int ecode4 = 0 ;
8206 PyObject * obj0 = 0 ;
8207 PyObject * obj1 = 0 ;
8208 PyObject * obj2 = 0 ;
8209 PyObject * obj3 = 0 ;
8210 char * kwnames[] = {
8211 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8212 };
8213
8214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8216 if (!SWIG_IsOK(res1)) {
8217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8218 }
8219 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8221 if (!SWIG_IsOK(res2)) {
8222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8223 }
8224 if (!argp2) {
8225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8226 }
8227 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8228 ecode3 = SWIG_AsVal_int(obj2, &val3);
8229 if (!SWIG_IsOK(ecode3)) {
8230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8231 }
8232 arg3 = static_cast< int >(val3);
8233 ecode4 = SWIG_AsVal_int(obj3, &val4);
8234 if (!SWIG_IsOK(ecode4)) {
8235 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8236 }
8237 arg4 = static_cast< int >(val4);
8238 {
8239 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8240 if (PyErr_Occurred()) SWIG_fail;
8241 }
8242 resultobj = SWIG_Py_Void();
8243 return resultobj;
8244 fail:
8245 return NULL;
8246 }
8247
8248
8249 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8250 PyObject *resultobj = 0;
8251 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8252 wxAlphaPixelData *arg2 = 0 ;
8253 int arg3 ;
8254 void *argp1 = 0 ;
8255 int res1 = 0 ;
8256 void *argp2 = 0 ;
8257 int res2 = 0 ;
8258 int val3 ;
8259 int ecode3 = 0 ;
8260 PyObject * obj0 = 0 ;
8261 PyObject * obj1 = 0 ;
8262 PyObject * obj2 = 0 ;
8263 char * kwnames[] = {
8264 (char *) "self",(char *) "data",(char *) "x", NULL
8265 };
8266
8267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8269 if (!SWIG_IsOK(res1)) {
8270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8271 }
8272 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8274 if (!SWIG_IsOK(res2)) {
8275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8276 }
8277 if (!argp2) {
8278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8279 }
8280 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8281 ecode3 = SWIG_AsVal_int(obj2, &val3);
8282 if (!SWIG_IsOK(ecode3)) {
8283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8284 }
8285 arg3 = static_cast< int >(val3);
8286 {
8287 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 resultobj = SWIG_Py_Void();
8291 return resultobj;
8292 fail:
8293 return NULL;
8294 }
8295
8296
8297 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8298 PyObject *resultobj = 0;
8299 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8300 wxAlphaPixelData *arg2 = 0 ;
8301 int arg3 ;
8302 void *argp1 = 0 ;
8303 int res1 = 0 ;
8304 void *argp2 = 0 ;
8305 int res2 = 0 ;
8306 int val3 ;
8307 int ecode3 = 0 ;
8308 PyObject * obj0 = 0 ;
8309 PyObject * obj1 = 0 ;
8310 PyObject * obj2 = 0 ;
8311 char * kwnames[] = {
8312 (char *) "self",(char *) "data",(char *) "y", NULL
8313 };
8314
8315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8317 if (!SWIG_IsOK(res1)) {
8318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8319 }
8320 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8322 if (!SWIG_IsOK(res2)) {
8323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8324 }
8325 if (!argp2) {
8326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8327 }
8328 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8329 ecode3 = SWIG_AsVal_int(obj2, &val3);
8330 if (!SWIG_IsOK(ecode3)) {
8331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8332 }
8333 arg3 = static_cast< int >(val3);
8334 {
8335 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 resultobj = SWIG_Py_Void();
8339 return resultobj;
8340 fail:
8341 return NULL;
8342 }
8343
8344
8345 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8346 PyObject *resultobj = 0;
8347 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8348 wxAlphaPixelData *arg2 = 0 ;
8349 int arg3 ;
8350 int arg4 ;
8351 void *argp1 = 0 ;
8352 int res1 = 0 ;
8353 void *argp2 = 0 ;
8354 int res2 = 0 ;
8355 int val3 ;
8356 int ecode3 = 0 ;
8357 int val4 ;
8358 int ecode4 = 0 ;
8359 PyObject * obj0 = 0 ;
8360 PyObject * obj1 = 0 ;
8361 PyObject * obj2 = 0 ;
8362 PyObject * obj3 = 0 ;
8363 char * kwnames[] = {
8364 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8365 };
8366
8367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8369 if (!SWIG_IsOK(res1)) {
8370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8371 }
8372 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8374 if (!SWIG_IsOK(res2)) {
8375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8376 }
8377 if (!argp2) {
8378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8379 }
8380 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8381 ecode3 = SWIG_AsVal_int(obj2, &val3);
8382 if (!SWIG_IsOK(ecode3)) {
8383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8384 }
8385 arg3 = static_cast< int >(val3);
8386 ecode4 = SWIG_AsVal_int(obj3, &val4);
8387 if (!SWIG_IsOK(ecode4)) {
8388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8389 }
8390 arg4 = static_cast< int >(val4);
8391 {
8392 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 resultobj = SWIG_Py_Void();
8396 return resultobj;
8397 fail:
8398 return NULL;
8399 }
8400
8401
8402 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8403 PyObject *resultobj = 0;
8404 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8405 byte arg2 ;
8406 byte arg3 ;
8407 byte arg4 ;
8408 byte arg5 ;
8409 void *argp1 = 0 ;
8410 int res1 = 0 ;
8411 unsigned char val2 ;
8412 int ecode2 = 0 ;
8413 unsigned char val3 ;
8414 int ecode3 = 0 ;
8415 unsigned char val4 ;
8416 int ecode4 = 0 ;
8417 unsigned char val5 ;
8418 int ecode5 = 0 ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421 PyObject * obj2 = 0 ;
8422 PyObject * obj3 = 0 ;
8423 PyObject * obj4 = 0 ;
8424 char * kwnames[] = {
8425 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8426 };
8427
8428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8430 if (!SWIG_IsOK(res1)) {
8431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8432 }
8433 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8434 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8435 if (!SWIG_IsOK(ecode2)) {
8436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8437 }
8438 arg2 = static_cast< byte >(val2);
8439 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8440 if (!SWIG_IsOK(ecode3)) {
8441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8442 }
8443 arg3 = static_cast< byte >(val3);
8444 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8445 if (!SWIG_IsOK(ecode4)) {
8446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8447 }
8448 arg4 = static_cast< byte >(val4);
8449 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8450 if (!SWIG_IsOK(ecode5)) {
8451 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8452 }
8453 arg5 = static_cast< byte >(val5);
8454 {
8455 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8456 if (PyErr_Occurred()) SWIG_fail;
8457 }
8458 resultobj = SWIG_Py_Void();
8459 return resultobj;
8460 fail:
8461 return NULL;
8462 }
8463
8464
8465 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8466 PyObject *resultobj = 0;
8467 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8468 PyObject *result = 0 ;
8469 void *argp1 = 0 ;
8470 int res1 = 0 ;
8471 PyObject *swig_obj[1] ;
8472
8473 if (!args) SWIG_fail;
8474 swig_obj[0] = args;
8475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8476 if (!SWIG_IsOK(res1)) {
8477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8478 }
8479 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8480 {
8481 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8482 if (PyErr_Occurred()) SWIG_fail;
8483 }
8484 resultobj = result;
8485 return resultobj;
8486 fail:
8487 return NULL;
8488 }
8489
8490
8491 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8492 PyObject *obj;
8493 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8494 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8495 return SWIG_Py_Void();
8496 }
8497
8498 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8499 return SWIG_Python_InitShadowInstance(args);
8500 }
8501
8502 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8503 PyObject *resultobj = 0;
8504 wxBitmap *arg1 = 0 ;
8505 wxColour const &arg2_defvalue = wxNullColour ;
8506 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8507 wxMask *result = 0 ;
8508 void *argp1 = 0 ;
8509 int res1 = 0 ;
8510 wxColour temp2 ;
8511 PyObject * obj0 = 0 ;
8512 PyObject * obj1 = 0 ;
8513 char * kwnames[] = {
8514 (char *) "bitmap",(char *) "colour", NULL
8515 };
8516
8517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8518 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8519 if (!SWIG_IsOK(res1)) {
8520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8521 }
8522 if (!argp1) {
8523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8524 }
8525 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8526 if (obj1) {
8527 {
8528 arg2 = &temp2;
8529 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8530 }
8531 }
8532 {
8533 if (!wxPyCheckForApp()) SWIG_fail;
8534 PyThreadState* __tstate = wxPyBeginAllowThreads();
8535 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8536 wxPyEndAllowThreads(__tstate);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8540 return resultobj;
8541 fail:
8542 return NULL;
8543 }
8544
8545
8546 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8547 PyObject *resultobj = 0;
8548 wxMask *arg1 = (wxMask *) 0 ;
8549 void *argp1 = 0 ;
8550 int res1 = 0 ;
8551 PyObject *swig_obj[1] ;
8552
8553 if (!args) SWIG_fail;
8554 swig_obj[0] = args;
8555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8556 if (!SWIG_IsOK(res1)) {
8557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8558 }
8559 arg1 = reinterpret_cast< wxMask * >(argp1);
8560 {
8561 delete arg1;
8562
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 resultobj = SWIG_Py_Void();
8566 return resultobj;
8567 fail:
8568 return NULL;
8569 }
8570
8571
8572 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8573 PyObject *obj;
8574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8575 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8576 return SWIG_Py_Void();
8577 }
8578
8579 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8580 return SWIG_Python_InitShadowInstance(args);
8581 }
8582
8583 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj = 0;
8585 wxString *arg1 = 0 ;
8586 wxBitmapType arg2 ;
8587 int arg3 = (int) -1 ;
8588 int arg4 = (int) -1 ;
8589 wxIcon *result = 0 ;
8590 bool temp1 = false ;
8591 int val2 ;
8592 int ecode2 = 0 ;
8593 int val3 ;
8594 int ecode3 = 0 ;
8595 int val4 ;
8596 int ecode4 = 0 ;
8597 PyObject * obj0 = 0 ;
8598 PyObject * obj1 = 0 ;
8599 PyObject * obj2 = 0 ;
8600 PyObject * obj3 = 0 ;
8601 char * kwnames[] = {
8602 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8603 };
8604
8605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8606 {
8607 arg1 = wxString_in_helper(obj0);
8608 if (arg1 == NULL) SWIG_fail;
8609 temp1 = true;
8610 }
8611 ecode2 = SWIG_AsVal_int(obj1, &val2);
8612 if (!SWIG_IsOK(ecode2)) {
8613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8614 }
8615 arg2 = static_cast< wxBitmapType >(val2);
8616 if (obj2) {
8617 ecode3 = SWIG_AsVal_int(obj2, &val3);
8618 if (!SWIG_IsOK(ecode3)) {
8619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8620 }
8621 arg3 = static_cast< int >(val3);
8622 }
8623 if (obj3) {
8624 ecode4 = SWIG_AsVal_int(obj3, &val4);
8625 if (!SWIG_IsOK(ecode4)) {
8626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8627 }
8628 arg4 = static_cast< int >(val4);
8629 }
8630 {
8631 if (!wxPyCheckForApp()) SWIG_fail;
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8634 wxPyEndAllowThreads(__tstate);
8635 if (PyErr_Occurred()) SWIG_fail;
8636 }
8637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8638 {
8639 if (temp1)
8640 delete arg1;
8641 }
8642 return resultobj;
8643 fail:
8644 {
8645 if (temp1)
8646 delete arg1;
8647 }
8648 return NULL;
8649 }
8650
8651
8652 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8653 PyObject *resultobj = 0;
8654 wxIcon *arg1 = (wxIcon *) 0 ;
8655 void *argp1 = 0 ;
8656 int res1 = 0 ;
8657 PyObject *swig_obj[1] ;
8658
8659 if (!args) SWIG_fail;
8660 swig_obj[0] = args;
8661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8664 }
8665 arg1 = reinterpret_cast< wxIcon * >(argp1);
8666 {
8667 PyThreadState* __tstate = wxPyBeginAllowThreads();
8668 delete arg1;
8669
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 resultobj = SWIG_Py_Void();
8674 return resultobj;
8675 fail:
8676 return NULL;
8677 }
8678
8679
8680 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8681 PyObject *resultobj = 0;
8682 wxIcon *result = 0 ;
8683
8684 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8685 {
8686 if (!wxPyCheckForApp()) SWIG_fail;
8687 PyThreadState* __tstate = wxPyBeginAllowThreads();
8688 result = (wxIcon *)new wxIcon();
8689 wxPyEndAllowThreads(__tstate);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8693 return resultobj;
8694 fail:
8695 return NULL;
8696 }
8697
8698
8699 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8700 PyObject *resultobj = 0;
8701 wxIconLocation *arg1 = 0 ;
8702 wxIcon *result = 0 ;
8703 void *argp1 = 0 ;
8704 int res1 = 0 ;
8705 PyObject * obj0 = 0 ;
8706 char * kwnames[] = {
8707 (char *) "loc", NULL
8708 };
8709
8710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8711 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8712 if (!SWIG_IsOK(res1)) {
8713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8714 }
8715 if (!argp1) {
8716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8717 }
8718 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8719 {
8720 if (!wxPyCheckForApp()) SWIG_fail;
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8723 wxPyEndAllowThreads(__tstate);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8727 return resultobj;
8728 fail:
8729 return NULL;
8730 }
8731
8732
8733 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8734 PyObject *resultobj = 0;
8735 wxBitmap *arg1 = 0 ;
8736 wxIcon *result = 0 ;
8737 void *argp1 = 0 ;
8738 int res1 = 0 ;
8739 PyObject * obj0 = 0 ;
8740 char * kwnames[] = {
8741 (char *) "bmp", NULL
8742 };
8743
8744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8745 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8746 if (!SWIG_IsOK(res1)) {
8747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8748 }
8749 if (!argp1) {
8750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8751 }
8752 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8753 {
8754 if (!wxPyCheckForApp()) SWIG_fail;
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8757 wxPyEndAllowThreads(__tstate);
8758 if (PyErr_Occurred()) SWIG_fail;
8759 }
8760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8761 return resultobj;
8762 fail:
8763 return NULL;
8764 }
8765
8766
8767 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8768 PyObject *resultobj = 0;
8769 PyObject *arg1 = (PyObject *) 0 ;
8770 wxIcon *result = 0 ;
8771 PyObject * obj0 = 0 ;
8772 char * kwnames[] = {
8773 (char *) "listOfStrings", NULL
8774 };
8775
8776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8777 arg1 = obj0;
8778 {
8779 if (!wxPyCheckForApp()) SWIG_fail;
8780 PyThreadState* __tstate = wxPyBeginAllowThreads();
8781 result = (wxIcon *)new_wxIcon(arg1);
8782 wxPyEndAllowThreads(__tstate);
8783 if (PyErr_Occurred()) SWIG_fail;
8784 }
8785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8786 return resultobj;
8787 fail:
8788 return NULL;
8789 }
8790
8791
8792 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8793 PyObject *resultobj = 0;
8794 wxIcon *arg1 = (wxIcon *) 0 ;
8795 bool result;
8796 void *argp1 = 0 ;
8797 int res1 = 0 ;
8798 PyObject *swig_obj[1] ;
8799
8800 if (!args) SWIG_fail;
8801 swig_obj[0] = args;
8802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8803 if (!SWIG_IsOK(res1)) {
8804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8805 }
8806 arg1 = reinterpret_cast< wxIcon * >(argp1);
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 result = (bool)(arg1)->Ok();
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 {
8814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8815 }
8816 return resultobj;
8817 fail:
8818 return NULL;
8819 }
8820
8821
8822 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8823 PyObject *resultobj = 0;
8824 wxIcon *arg1 = (wxIcon *) 0 ;
8825 int result;
8826 void *argp1 = 0 ;
8827 int res1 = 0 ;
8828 PyObject *swig_obj[1] ;
8829
8830 if (!args) SWIG_fail;
8831 swig_obj[0] = args;
8832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8833 if (!SWIG_IsOK(res1)) {
8834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8835 }
8836 arg1 = reinterpret_cast< wxIcon * >(argp1);
8837 {
8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
8839 result = (int)(arg1)->GetWidth();
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 }
8843 resultobj = SWIG_From_int(static_cast< int >(result));
8844 return resultobj;
8845 fail:
8846 return NULL;
8847 }
8848
8849
8850 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8851 PyObject *resultobj = 0;
8852 wxIcon *arg1 = (wxIcon *) 0 ;
8853 int result;
8854 void *argp1 = 0 ;
8855 int res1 = 0 ;
8856 PyObject *swig_obj[1] ;
8857
8858 if (!args) SWIG_fail;
8859 swig_obj[0] = args;
8860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8861 if (!SWIG_IsOK(res1)) {
8862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8863 }
8864 arg1 = reinterpret_cast< wxIcon * >(argp1);
8865 {
8866 PyThreadState* __tstate = wxPyBeginAllowThreads();
8867 result = (int)(arg1)->GetHeight();
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 resultobj = SWIG_From_int(static_cast< int >(result));
8872 return resultobj;
8873 fail:
8874 return NULL;
8875 }
8876
8877
8878 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8879 PyObject *resultobj = 0;
8880 wxIcon *arg1 = (wxIcon *) 0 ;
8881 int result;
8882 void *argp1 = 0 ;
8883 int res1 = 0 ;
8884 PyObject *swig_obj[1] ;
8885
8886 if (!args) SWIG_fail;
8887 swig_obj[0] = args;
8888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8889 if (!SWIG_IsOK(res1)) {
8890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8891 }
8892 arg1 = reinterpret_cast< wxIcon * >(argp1);
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 result = (int)(arg1)->GetDepth();
8896 wxPyEndAllowThreads(__tstate);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 resultobj = SWIG_From_int(static_cast< int >(result));
8900 return resultobj;
8901 fail:
8902 return NULL;
8903 }
8904
8905
8906 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8907 PyObject *resultobj = 0;
8908 wxIcon *arg1 = (wxIcon *) 0 ;
8909 int arg2 ;
8910 void *argp1 = 0 ;
8911 int res1 = 0 ;
8912 int val2 ;
8913 int ecode2 = 0 ;
8914 PyObject * obj0 = 0 ;
8915 PyObject * obj1 = 0 ;
8916 char * kwnames[] = {
8917 (char *) "self",(char *) "w", NULL
8918 };
8919
8920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8922 if (!SWIG_IsOK(res1)) {
8923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8924 }
8925 arg1 = reinterpret_cast< wxIcon * >(argp1);
8926 ecode2 = SWIG_AsVal_int(obj1, &val2);
8927 if (!SWIG_IsOK(ecode2)) {
8928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
8929 }
8930 arg2 = static_cast< int >(val2);
8931 {
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 (arg1)->SetWidth(arg2);
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_Py_Void();
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj = 0;
8946 wxIcon *arg1 = (wxIcon *) 0 ;
8947 int arg2 ;
8948 void *argp1 = 0 ;
8949 int res1 = 0 ;
8950 int val2 ;
8951 int ecode2 = 0 ;
8952 PyObject * obj0 = 0 ;
8953 PyObject * obj1 = 0 ;
8954 char * kwnames[] = {
8955 (char *) "self",(char *) "h", NULL
8956 };
8957
8958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8960 if (!SWIG_IsOK(res1)) {
8961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8962 }
8963 arg1 = reinterpret_cast< wxIcon * >(argp1);
8964 ecode2 = SWIG_AsVal_int(obj1, &val2);
8965 if (!SWIG_IsOK(ecode2)) {
8966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
8967 }
8968 arg2 = static_cast< int >(val2);
8969 {
8970 PyThreadState* __tstate = wxPyBeginAllowThreads();
8971 (arg1)->SetHeight(arg2);
8972 wxPyEndAllowThreads(__tstate);
8973 if (PyErr_Occurred()) SWIG_fail;
8974 }
8975 resultobj = SWIG_Py_Void();
8976 return resultobj;
8977 fail:
8978 return NULL;
8979 }
8980
8981
8982 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8983 PyObject *resultobj = 0;
8984 wxIcon *arg1 = (wxIcon *) 0 ;
8985 int arg2 ;
8986 void *argp1 = 0 ;
8987 int res1 = 0 ;
8988 int val2 ;
8989 int ecode2 = 0 ;
8990 PyObject * obj0 = 0 ;
8991 PyObject * obj1 = 0 ;
8992 char * kwnames[] = {
8993 (char *) "self",(char *) "d", NULL
8994 };
8995
8996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8998 if (!SWIG_IsOK(res1)) {
8999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9000 }
9001 arg1 = reinterpret_cast< wxIcon * >(argp1);
9002 ecode2 = SWIG_AsVal_int(obj1, &val2);
9003 if (!SWIG_IsOK(ecode2)) {
9004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9005 }
9006 arg2 = static_cast< int >(val2);
9007 {
9008 PyThreadState* __tstate = wxPyBeginAllowThreads();
9009 (arg1)->SetDepth(arg2);
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 resultobj = SWIG_Py_Void();
9014 return resultobj;
9015 fail:
9016 return NULL;
9017 }
9018
9019
9020 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9021 PyObject *resultobj = 0;
9022 wxIcon *arg1 = (wxIcon *) 0 ;
9023 wxBitmap *arg2 = 0 ;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 void *argp2 = 0 ;
9027 int res2 = 0 ;
9028 PyObject * obj0 = 0 ;
9029 PyObject * obj1 = 0 ;
9030 char * kwnames[] = {
9031 (char *) "self",(char *) "bmp", NULL
9032 };
9033
9034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9036 if (!SWIG_IsOK(res1)) {
9037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9038 }
9039 arg1 = reinterpret_cast< wxIcon * >(argp1);
9040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9041 if (!SWIG_IsOK(res2)) {
9042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9043 }
9044 if (!argp2) {
9045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9046 }
9047 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9048 {
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
9050 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9051 wxPyEndAllowThreads(__tstate);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 }
9054 resultobj = SWIG_Py_Void();
9055 return resultobj;
9056 fail:
9057 return NULL;
9058 }
9059
9060
9061 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9062 PyObject *obj;
9063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9064 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9065 return SWIG_Py_Void();
9066 }
9067
9068 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9069 return SWIG_Python_InitShadowInstance(args);
9070 }
9071
9072 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9073 PyObject *resultobj = 0;
9074 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9075 int arg2 = (int) 0 ;
9076 wxIconLocation *result = 0 ;
9077 bool temp1 = false ;
9078 int val2 ;
9079 int ecode2 = 0 ;
9080 PyObject * obj0 = 0 ;
9081 PyObject * obj1 = 0 ;
9082 char * kwnames[] = {
9083 (char *) "filename",(char *) "num", NULL
9084 };
9085
9086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9087 if (obj0) {
9088 {
9089 arg1 = wxString_in_helper(obj0);
9090 if (arg1 == NULL) SWIG_fail;
9091 temp1 = true;
9092 }
9093 }
9094 if (obj1) {
9095 ecode2 = SWIG_AsVal_int(obj1, &val2);
9096 if (!SWIG_IsOK(ecode2)) {
9097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9098 }
9099 arg2 = static_cast< int >(val2);
9100 }
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9108 {
9109 if (temp1)
9110 delete arg1;
9111 }
9112 return resultobj;
9113 fail:
9114 {
9115 if (temp1)
9116 delete arg1;
9117 }
9118 return NULL;
9119 }
9120
9121
9122 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9123 PyObject *resultobj = 0;
9124 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9125 void *argp1 = 0 ;
9126 int res1 = 0 ;
9127 PyObject *swig_obj[1] ;
9128
9129 if (!args) SWIG_fail;
9130 swig_obj[0] = args;
9131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9132 if (!SWIG_IsOK(res1)) {
9133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9134 }
9135 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9136 {
9137 PyThreadState* __tstate = wxPyBeginAllowThreads();
9138 delete arg1;
9139
9140 wxPyEndAllowThreads(__tstate);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 }
9143 resultobj = SWIG_Py_Void();
9144 return resultobj;
9145 fail:
9146 return NULL;
9147 }
9148
9149
9150 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9151 PyObject *resultobj = 0;
9152 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9153 bool result;
9154 void *argp1 = 0 ;
9155 int res1 = 0 ;
9156 PyObject *swig_obj[1] ;
9157
9158 if (!args) SWIG_fail;
9159 swig_obj[0] = args;
9160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9161 if (!SWIG_IsOK(res1)) {
9162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9163 }
9164 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9165 {
9166 PyThreadState* __tstate = wxPyBeginAllowThreads();
9167 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 {
9172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9173 }
9174 return resultobj;
9175 fail:
9176 return NULL;
9177 }
9178
9179
9180 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9181 PyObject *resultobj = 0;
9182 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9183 wxString *arg2 = 0 ;
9184 void *argp1 = 0 ;
9185 int res1 = 0 ;
9186 bool temp2 = false ;
9187 PyObject * obj0 = 0 ;
9188 PyObject * obj1 = 0 ;
9189 char * kwnames[] = {
9190 (char *) "self",(char *) "filename", NULL
9191 };
9192
9193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9195 if (!SWIG_IsOK(res1)) {
9196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9197 }
9198 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9199 {
9200 arg2 = wxString_in_helper(obj1);
9201 if (arg2 == NULL) SWIG_fail;
9202 temp2 = true;
9203 }
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 (arg1)->SetFileName((wxString const &)*arg2);
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_Py_Void();
9211 {
9212 if (temp2)
9213 delete arg2;
9214 }
9215 return resultobj;
9216 fail:
9217 {
9218 if (temp2)
9219 delete arg2;
9220 }
9221 return NULL;
9222 }
9223
9224
9225 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9226 PyObject *resultobj = 0;
9227 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9228 wxString *result = 0 ;
9229 void *argp1 = 0 ;
9230 int res1 = 0 ;
9231 PyObject *swig_obj[1] ;
9232
9233 if (!args) SWIG_fail;
9234 swig_obj[0] = args;
9235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9236 if (!SWIG_IsOK(res1)) {
9237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9238 }
9239 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9240 {
9241 PyThreadState* __tstate = wxPyBeginAllowThreads();
9242 {
9243 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9244 result = (wxString *) &_result_ref;
9245 }
9246 wxPyEndAllowThreads(__tstate);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 {
9250 #if wxUSE_UNICODE
9251 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9252 #else
9253 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9254 #endif
9255 }
9256 return resultobj;
9257 fail:
9258 return NULL;
9259 }
9260
9261
9262 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9263 PyObject *resultobj = 0;
9264 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9265 int arg2 ;
9266 void *argp1 = 0 ;
9267 int res1 = 0 ;
9268 int val2 ;
9269 int ecode2 = 0 ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "self",(char *) "num", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9280 }
9281 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9282 ecode2 = SWIG_AsVal_int(obj1, &val2);
9283 if (!SWIG_IsOK(ecode2)) {
9284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9285 }
9286 arg2 = static_cast< int >(val2);
9287 {
9288 PyThreadState* __tstate = wxPyBeginAllowThreads();
9289 wxIconLocation_SetIndex(arg1,arg2);
9290 wxPyEndAllowThreads(__tstate);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 }
9293 resultobj = SWIG_Py_Void();
9294 return resultobj;
9295 fail:
9296 return NULL;
9297 }
9298
9299
9300 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9301 PyObject *resultobj = 0;
9302 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9303 int result;
9304 void *argp1 = 0 ;
9305 int res1 = 0 ;
9306 PyObject *swig_obj[1] ;
9307
9308 if (!args) SWIG_fail;
9309 swig_obj[0] = args;
9310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9311 if (!SWIG_IsOK(res1)) {
9312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9313 }
9314 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (int)wxIconLocation_GetIndex(arg1);
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 resultobj = SWIG_From_int(static_cast< int >(result));
9322 return resultobj;
9323 fail:
9324 return NULL;
9325 }
9326
9327
9328 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9329 PyObject *obj;
9330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9331 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9332 return SWIG_Py_Void();
9333 }
9334
9335 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9336 return SWIG_Python_InitShadowInstance(args);
9337 }
9338
9339 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9340 PyObject *resultobj = 0;
9341 wxIconBundle *result = 0 ;
9342
9343 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (wxIconBundle *)new wxIconBundle();
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9351 return resultobj;
9352 fail:
9353 return NULL;
9354 }
9355
9356
9357 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9358 PyObject *resultobj = 0;
9359 wxString *arg1 = 0 ;
9360 long arg2 ;
9361 wxIconBundle *result = 0 ;
9362 bool temp1 = false ;
9363 long val2 ;
9364 int ecode2 = 0 ;
9365 PyObject * obj0 = 0 ;
9366 PyObject * obj1 = 0 ;
9367 char * kwnames[] = {
9368 (char *) "file",(char *) "type", NULL
9369 };
9370
9371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9372 {
9373 arg1 = wxString_in_helper(obj0);
9374 if (arg1 == NULL) SWIG_fail;
9375 temp1 = true;
9376 }
9377 ecode2 = SWIG_AsVal_long(obj1, &val2);
9378 if (!SWIG_IsOK(ecode2)) {
9379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9380 }
9381 arg2 = static_cast< long >(val2);
9382 {
9383 PyThreadState* __tstate = wxPyBeginAllowThreads();
9384 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9385 wxPyEndAllowThreads(__tstate);
9386 if (PyErr_Occurred()) SWIG_fail;
9387 }
9388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9389 {
9390 if (temp1)
9391 delete arg1;
9392 }
9393 return resultobj;
9394 fail:
9395 {
9396 if (temp1)
9397 delete arg1;
9398 }
9399 return NULL;
9400 }
9401
9402
9403 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj = 0;
9405 wxIcon *arg1 = 0 ;
9406 wxIconBundle *result = 0 ;
9407 void *argp1 = 0 ;
9408 int res1 = 0 ;
9409 PyObject * obj0 = 0 ;
9410 char * kwnames[] = {
9411 (char *) "icon", NULL
9412 };
9413
9414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9415 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9416 if (!SWIG_IsOK(res1)) {
9417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9418 }
9419 if (!argp1) {
9420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9421 }
9422 arg1 = reinterpret_cast< wxIcon * >(argp1);
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9426 wxPyEndAllowThreads(__tstate);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9430 return resultobj;
9431 fail:
9432 return NULL;
9433 }
9434
9435
9436 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9437 PyObject *resultobj = 0;
9438 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9439 void *argp1 = 0 ;
9440 int res1 = 0 ;
9441 PyObject *swig_obj[1] ;
9442
9443 if (!args) SWIG_fail;
9444 swig_obj[0] = args;
9445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9446 if (!SWIG_IsOK(res1)) {
9447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9448 }
9449 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9450 {
9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
9452 delete arg1;
9453
9454 wxPyEndAllowThreads(__tstate);
9455 if (PyErr_Occurred()) SWIG_fail;
9456 }
9457 resultobj = SWIG_Py_Void();
9458 return resultobj;
9459 fail:
9460 return NULL;
9461 }
9462
9463
9464 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9465 PyObject *resultobj = 0;
9466 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9467 wxIcon *arg2 = 0 ;
9468 void *argp1 = 0 ;
9469 int res1 = 0 ;
9470 void *argp2 = 0 ;
9471 int res2 = 0 ;
9472 PyObject * obj0 = 0 ;
9473 PyObject * obj1 = 0 ;
9474 char * kwnames[] = {
9475 (char *) "self",(char *) "icon", NULL
9476 };
9477
9478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9480 if (!SWIG_IsOK(res1)) {
9481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9482 }
9483 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9485 if (!SWIG_IsOK(res2)) {
9486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9487 }
9488 if (!argp2) {
9489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9490 }
9491 arg2 = reinterpret_cast< wxIcon * >(argp2);
9492 {
9493 PyThreadState* __tstate = wxPyBeginAllowThreads();
9494 (arg1)->AddIcon((wxIcon const &)*arg2);
9495 wxPyEndAllowThreads(__tstate);
9496 if (PyErr_Occurred()) SWIG_fail;
9497 }
9498 resultobj = SWIG_Py_Void();
9499 return resultobj;
9500 fail:
9501 return NULL;
9502 }
9503
9504
9505 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9506 PyObject *resultobj = 0;
9507 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9508 wxString *arg2 = 0 ;
9509 long arg3 ;
9510 void *argp1 = 0 ;
9511 int res1 = 0 ;
9512 bool temp2 = false ;
9513 long val3 ;
9514 int ecode3 = 0 ;
9515 PyObject * obj0 = 0 ;
9516 PyObject * obj1 = 0 ;
9517 PyObject * obj2 = 0 ;
9518 char * kwnames[] = {
9519 (char *) "self",(char *) "file",(char *) "type", NULL
9520 };
9521
9522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9524 if (!SWIG_IsOK(res1)) {
9525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9526 }
9527 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9528 {
9529 arg2 = wxString_in_helper(obj1);
9530 if (arg2 == NULL) SWIG_fail;
9531 temp2 = true;
9532 }
9533 ecode3 = SWIG_AsVal_long(obj2, &val3);
9534 if (!SWIG_IsOK(ecode3)) {
9535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9536 }
9537 arg3 = static_cast< long >(val3);
9538 {
9539 PyThreadState* __tstate = wxPyBeginAllowThreads();
9540 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 }
9544 resultobj = SWIG_Py_Void();
9545 {
9546 if (temp2)
9547 delete arg2;
9548 }
9549 return resultobj;
9550 fail:
9551 {
9552 if (temp2)
9553 delete arg2;
9554 }
9555 return NULL;
9556 }
9557
9558
9559 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9560 PyObject *resultobj = 0;
9561 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9562 wxSize *arg2 = 0 ;
9563 wxIcon *result = 0 ;
9564 void *argp1 = 0 ;
9565 int res1 = 0 ;
9566 wxSize temp2 ;
9567 PyObject * obj0 = 0 ;
9568 PyObject * obj1 = 0 ;
9569 char * kwnames[] = {
9570 (char *) "self",(char *) "size", NULL
9571 };
9572
9573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9575 if (!SWIG_IsOK(res1)) {
9576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9577 }
9578 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9579 {
9580 arg2 = &temp2;
9581 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9582 }
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 {
9586 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9587 result = (wxIcon *) &_result_ref;
9588 }
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 {
9593 wxIcon* resultptr = new wxIcon(*result);
9594 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9595 }
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9603 PyObject *obj;
9604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9605 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9606 return SWIG_Py_Void();
9607 }
9608
9609 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9610 return SWIG_Python_InitShadowInstance(args);
9611 }
9612
9613 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj = 0;
9615 wxString *arg1 = 0 ;
9616 long arg2 ;
9617 int arg3 = (int) 0 ;
9618 int arg4 = (int) 0 ;
9619 wxCursor *result = 0 ;
9620 bool temp1 = false ;
9621 long val2 ;
9622 int ecode2 = 0 ;
9623 int val3 ;
9624 int ecode3 = 0 ;
9625 int val4 ;
9626 int ecode4 = 0 ;
9627 PyObject * obj0 = 0 ;
9628 PyObject * obj1 = 0 ;
9629 PyObject * obj2 = 0 ;
9630 PyObject * obj3 = 0 ;
9631 char * kwnames[] = {
9632 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9633 };
9634
9635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9636 {
9637 arg1 = wxString_in_helper(obj0);
9638 if (arg1 == NULL) SWIG_fail;
9639 temp1 = true;
9640 }
9641 ecode2 = SWIG_AsVal_long(obj1, &val2);
9642 if (!SWIG_IsOK(ecode2)) {
9643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9644 }
9645 arg2 = static_cast< long >(val2);
9646 if (obj2) {
9647 ecode3 = SWIG_AsVal_int(obj2, &val3);
9648 if (!SWIG_IsOK(ecode3)) {
9649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9650 }
9651 arg3 = static_cast< int >(val3);
9652 }
9653 if (obj3) {
9654 ecode4 = SWIG_AsVal_int(obj3, &val4);
9655 if (!SWIG_IsOK(ecode4)) {
9656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9657 }
9658 arg4 = static_cast< int >(val4);
9659 }
9660 {
9661 if (!wxPyCheckForApp()) SWIG_fail;
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9668 {
9669 if (temp1)
9670 delete arg1;
9671 }
9672 return resultobj;
9673 fail:
9674 {
9675 if (temp1)
9676 delete arg1;
9677 }
9678 return NULL;
9679 }
9680
9681
9682 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9683 PyObject *resultobj = 0;
9684 wxCursor *arg1 = (wxCursor *) 0 ;
9685 void *argp1 = 0 ;
9686 int res1 = 0 ;
9687 PyObject *swig_obj[1] ;
9688
9689 if (!args) SWIG_fail;
9690 swig_obj[0] = args;
9691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9692 if (!SWIG_IsOK(res1)) {
9693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9694 }
9695 arg1 = reinterpret_cast< wxCursor * >(argp1);
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 delete arg1;
9699
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
9703 resultobj = SWIG_Py_Void();
9704 return resultobj;
9705 fail:
9706 return NULL;
9707 }
9708
9709
9710 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj = 0;
9712 int arg1 ;
9713 wxCursor *result = 0 ;
9714 int val1 ;
9715 int ecode1 = 0 ;
9716 PyObject * obj0 = 0 ;
9717 char * kwnames[] = {
9718 (char *) "id", NULL
9719 };
9720
9721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9722 ecode1 = SWIG_AsVal_int(obj0, &val1);
9723 if (!SWIG_IsOK(ecode1)) {
9724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9725 }
9726 arg1 = static_cast< int >(val1);
9727 {
9728 if (!wxPyCheckForApp()) SWIG_fail;
9729 PyThreadState* __tstate = wxPyBeginAllowThreads();
9730 result = (wxCursor *)new wxCursor(arg1);
9731 wxPyEndAllowThreads(__tstate);
9732 if (PyErr_Occurred()) SWIG_fail;
9733 }
9734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9735 return resultobj;
9736 fail:
9737 return NULL;
9738 }
9739
9740
9741 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9742 PyObject *resultobj = 0;
9743 wxImage *arg1 = 0 ;
9744 wxCursor *result = 0 ;
9745 void *argp1 = 0 ;
9746 int res1 = 0 ;
9747 PyObject * obj0 = 0 ;
9748 char * kwnames[] = {
9749 (char *) "image", NULL
9750 };
9751
9752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9753 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9754 if (!SWIG_IsOK(res1)) {
9755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9756 }
9757 if (!argp1) {
9758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9759 }
9760 arg1 = reinterpret_cast< wxImage * >(argp1);
9761 {
9762 if (!wxPyCheckForApp()) SWIG_fail;
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9776 PyObject *resultobj = 0;
9777 wxCursor *arg1 = (wxCursor *) 0 ;
9778 bool result;
9779 void *argp1 = 0 ;
9780 int res1 = 0 ;
9781 PyObject *swig_obj[1] ;
9782
9783 if (!args) SWIG_fail;
9784 swig_obj[0] = args;
9785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9786 if (!SWIG_IsOK(res1)) {
9787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9788 }
9789 arg1 = reinterpret_cast< wxCursor * >(argp1);
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 result = (bool)(arg1)->Ok();
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 {
9797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9798 }
9799 return resultobj;
9800 fail:
9801 return NULL;
9802 }
9803
9804
9805 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9806 PyObject *obj;
9807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9808 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9809 return SWIG_Py_Void();
9810 }
9811
9812 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9813 return SWIG_Python_InitShadowInstance(args);
9814 }
9815
9816 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj = 0;
9818 int arg1 = (int) 0 ;
9819 int arg2 = (int) 0 ;
9820 int arg3 = (int) 0 ;
9821 int arg4 = (int) 0 ;
9822 wxRegion *result = 0 ;
9823 int val1 ;
9824 int ecode1 = 0 ;
9825 int val2 ;
9826 int ecode2 = 0 ;
9827 int val3 ;
9828 int ecode3 = 0 ;
9829 int val4 ;
9830 int ecode4 = 0 ;
9831 PyObject * obj0 = 0 ;
9832 PyObject * obj1 = 0 ;
9833 PyObject * obj2 = 0 ;
9834 PyObject * obj3 = 0 ;
9835 char * kwnames[] = {
9836 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9837 };
9838
9839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9840 if (obj0) {
9841 ecode1 = SWIG_AsVal_int(obj0, &val1);
9842 if (!SWIG_IsOK(ecode1)) {
9843 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9844 }
9845 arg1 = static_cast< int >(val1);
9846 }
9847 if (obj1) {
9848 ecode2 = SWIG_AsVal_int(obj1, &val2);
9849 if (!SWIG_IsOK(ecode2)) {
9850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9851 }
9852 arg2 = static_cast< int >(val2);
9853 }
9854 if (obj2) {
9855 ecode3 = SWIG_AsVal_int(obj2, &val3);
9856 if (!SWIG_IsOK(ecode3)) {
9857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9858 }
9859 arg3 = static_cast< int >(val3);
9860 }
9861 if (obj3) {
9862 ecode4 = SWIG_AsVal_int(obj3, &val4);
9863 if (!SWIG_IsOK(ecode4)) {
9864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
9865 }
9866 arg4 = static_cast< int >(val4);
9867 }
9868 {
9869 if (!wxPyCheckForApp()) SWIG_fail;
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
9876 return resultobj;
9877 fail:
9878 return NULL;
9879 }
9880
9881
9882 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj = 0;
9884 wxBitmap *arg1 = 0 ;
9885 wxRegion *result = 0 ;
9886 void *argp1 = 0 ;
9887 int res1 = 0 ;
9888 PyObject * obj0 = 0 ;
9889 char * kwnames[] = {
9890 (char *) "bmp", NULL
9891 };
9892
9893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
9894 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9895 if (!SWIG_IsOK(res1)) {
9896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9897 }
9898 if (!argp1) {
9899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9900 }
9901 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9902 {
9903 if (!wxPyCheckForApp()) SWIG_fail;
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9910 return resultobj;
9911 fail:
9912 return NULL;
9913 }
9914
9915
9916 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9917 PyObject *resultobj = 0;
9918 wxBitmap *arg1 = 0 ;
9919 wxColour *arg2 = 0 ;
9920 int arg3 = (int) 0 ;
9921 wxRegion *result = 0 ;
9922 void *argp1 = 0 ;
9923 int res1 = 0 ;
9924 wxColour temp2 ;
9925 int val3 ;
9926 int ecode3 = 0 ;
9927 PyObject * obj0 = 0 ;
9928 PyObject * obj1 = 0 ;
9929 PyObject * obj2 = 0 ;
9930 char * kwnames[] = {
9931 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9932 };
9933
9934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9935 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9936 if (!SWIG_IsOK(res1)) {
9937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9938 }
9939 if (!argp1) {
9940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9941 }
9942 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9943 {
9944 arg2 = &temp2;
9945 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9946 }
9947 if (obj2) {
9948 ecode3 = SWIG_AsVal_int(obj2, &val3);
9949 if (!SWIG_IsOK(ecode3)) {
9950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
9951 }
9952 arg3 = static_cast< int >(val3);
9953 }
9954 {
9955 if (!wxPyCheckForApp()) SWIG_fail;
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9962 return resultobj;
9963 fail:
9964 return NULL;
9965 }
9966
9967
9968 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj = 0;
9970 int arg1 ;
9971 wxPoint *arg2 = (wxPoint *) 0 ;
9972 int arg3 = (int) wxWINDING_RULE ;
9973 wxRegion *result = 0 ;
9974 int val3 ;
9975 int ecode3 = 0 ;
9976 PyObject * obj0 = 0 ;
9977 PyObject * obj1 = 0 ;
9978 char * kwnames[] = {
9979 (char *) "points",(char *) "fillStyle", NULL
9980 };
9981
9982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
9983 {
9984 arg2 = wxPoint_LIST_helper(obj0, &arg1);
9985 if (arg2 == NULL) SWIG_fail;
9986 }
9987 if (obj1) {
9988 ecode3 = SWIG_AsVal_int(obj1, &val3);
9989 if (!SWIG_IsOK(ecode3)) {
9990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
9991 }
9992 arg3 = static_cast< int >(val3);
9993 }
9994 {
9995 if (!wxPyCheckForApp()) SWIG_fail;
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10002 {
10003 if (arg2) delete [] arg2;
10004 }
10005 return resultobj;
10006 fail:
10007 {
10008 if (arg2) delete [] arg2;
10009 }
10010 return NULL;
10011 }
10012
10013
10014 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10015 PyObject *resultobj = 0;
10016 wxRegion *arg1 = (wxRegion *) 0 ;
10017 void *argp1 = 0 ;
10018 int res1 = 0 ;
10019 PyObject *swig_obj[1] ;
10020
10021 if (!args) SWIG_fail;
10022 swig_obj[0] = args;
10023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10024 if (!SWIG_IsOK(res1)) {
10025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10026 }
10027 arg1 = reinterpret_cast< wxRegion * >(argp1);
10028 {
10029 PyThreadState* __tstate = wxPyBeginAllowThreads();
10030 delete arg1;
10031
10032 wxPyEndAllowThreads(__tstate);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 resultobj = SWIG_Py_Void();
10036 return resultobj;
10037 fail:
10038 return NULL;
10039 }
10040
10041
10042 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10043 PyObject *resultobj = 0;
10044 wxRegion *arg1 = (wxRegion *) 0 ;
10045 void *argp1 = 0 ;
10046 int res1 = 0 ;
10047 PyObject *swig_obj[1] ;
10048
10049 if (!args) SWIG_fail;
10050 swig_obj[0] = args;
10051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10052 if (!SWIG_IsOK(res1)) {
10053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10054 }
10055 arg1 = reinterpret_cast< wxRegion * >(argp1);
10056 {
10057 PyThreadState* __tstate = wxPyBeginAllowThreads();
10058 (arg1)->Clear();
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 resultobj = SWIG_Py_Void();
10063 return resultobj;
10064 fail:
10065 return NULL;
10066 }
10067
10068
10069 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10070 PyObject *resultobj = 0;
10071 wxRegion *arg1 = (wxRegion *) 0 ;
10072 int arg2 ;
10073 int arg3 ;
10074 bool result;
10075 void *argp1 = 0 ;
10076 int res1 = 0 ;
10077 int val2 ;
10078 int ecode2 = 0 ;
10079 int val3 ;
10080 int ecode3 = 0 ;
10081 PyObject * obj0 = 0 ;
10082 PyObject * obj1 = 0 ;
10083 PyObject * obj2 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "self",(char *) "x",(char *) "y", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10092 }
10093 arg1 = reinterpret_cast< wxRegion * >(argp1);
10094 ecode2 = SWIG_AsVal_int(obj1, &val2);
10095 if (!SWIG_IsOK(ecode2)) {
10096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10097 }
10098 arg2 = static_cast< int >(val2);
10099 ecode3 = SWIG_AsVal_int(obj2, &val3);
10100 if (!SWIG_IsOK(ecode3)) {
10101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10102 }
10103 arg3 = static_cast< int >(val3);
10104 {
10105 PyThreadState* __tstate = wxPyBeginAllowThreads();
10106 result = (bool)(arg1)->Offset(arg2,arg3);
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 {
10111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10112 }
10113 return resultobj;
10114 fail:
10115 return NULL;
10116 }
10117
10118
10119 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10120 PyObject *resultobj = 0;
10121 wxRegion *arg1 = (wxRegion *) 0 ;
10122 int arg2 ;
10123 int arg3 ;
10124 wxRegionContain result;
10125 void *argp1 = 0 ;
10126 int res1 = 0 ;
10127 int val2 ;
10128 int ecode2 = 0 ;
10129 int val3 ;
10130 int ecode3 = 0 ;
10131 PyObject * obj0 = 0 ;
10132 PyObject * obj1 = 0 ;
10133 PyObject * obj2 = 0 ;
10134 char * kwnames[] = {
10135 (char *) "self",(char *) "x",(char *) "y", NULL
10136 };
10137
10138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10140 if (!SWIG_IsOK(res1)) {
10141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10142 }
10143 arg1 = reinterpret_cast< wxRegion * >(argp1);
10144 ecode2 = SWIG_AsVal_int(obj1, &val2);
10145 if (!SWIG_IsOK(ecode2)) {
10146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10147 }
10148 arg2 = static_cast< int >(val2);
10149 ecode3 = SWIG_AsVal_int(obj2, &val3);
10150 if (!SWIG_IsOK(ecode3)) {
10151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10152 }
10153 arg3 = static_cast< int >(val3);
10154 {
10155 PyThreadState* __tstate = wxPyBeginAllowThreads();
10156 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 resultobj = SWIG_From_int(static_cast< int >(result));
10161 return resultobj;
10162 fail:
10163 return NULL;
10164 }
10165
10166
10167 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj = 0;
10169 wxRegion *arg1 = (wxRegion *) 0 ;
10170 wxPoint *arg2 = 0 ;
10171 wxRegionContain result;
10172 void *argp1 = 0 ;
10173 int res1 = 0 ;
10174 wxPoint temp2 ;
10175 PyObject * obj0 = 0 ;
10176 PyObject * obj1 = 0 ;
10177 char * kwnames[] = {
10178 (char *) "self",(char *) "pt", NULL
10179 };
10180
10181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10183 if (!SWIG_IsOK(res1)) {
10184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10185 }
10186 arg1 = reinterpret_cast< wxRegion * >(argp1);
10187 {
10188 arg2 = &temp2;
10189 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10190 }
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 resultobj = SWIG_From_int(static_cast< int >(result));
10198 return resultobj;
10199 fail:
10200 return NULL;
10201 }
10202
10203
10204 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj = 0;
10206 wxRegion *arg1 = (wxRegion *) 0 ;
10207 wxRect *arg2 = 0 ;
10208 wxRegionContain result;
10209 void *argp1 = 0 ;
10210 int res1 = 0 ;
10211 wxRect temp2 ;
10212 PyObject * obj0 = 0 ;
10213 PyObject * obj1 = 0 ;
10214 char * kwnames[] = {
10215 (char *) "self",(char *) "rect", NULL
10216 };
10217
10218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10220 if (!SWIG_IsOK(res1)) {
10221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10222 }
10223 arg1 = reinterpret_cast< wxRegion * >(argp1);
10224 {
10225 arg2 = &temp2;
10226 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10227 }
10228 {
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 resultobj = SWIG_From_int(static_cast< int >(result));
10235 return resultobj;
10236 fail:
10237 return NULL;
10238 }
10239
10240
10241 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj = 0;
10243 wxRegion *arg1 = (wxRegion *) 0 ;
10244 int arg2 ;
10245 int arg3 ;
10246 int arg4 ;
10247 int arg5 ;
10248 wxRegionContain result;
10249 void *argp1 = 0 ;
10250 int res1 = 0 ;
10251 int val2 ;
10252 int ecode2 = 0 ;
10253 int val3 ;
10254 int ecode3 = 0 ;
10255 int val4 ;
10256 int ecode4 = 0 ;
10257 int val5 ;
10258 int ecode5 = 0 ;
10259 PyObject * obj0 = 0 ;
10260 PyObject * obj1 = 0 ;
10261 PyObject * obj2 = 0 ;
10262 PyObject * obj3 = 0 ;
10263 PyObject * obj4 = 0 ;
10264 char * kwnames[] = {
10265 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10266 };
10267
10268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10270 if (!SWIG_IsOK(res1)) {
10271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10272 }
10273 arg1 = reinterpret_cast< wxRegion * >(argp1);
10274 ecode2 = SWIG_AsVal_int(obj1, &val2);
10275 if (!SWIG_IsOK(ecode2)) {
10276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10277 }
10278 arg2 = static_cast< int >(val2);
10279 ecode3 = SWIG_AsVal_int(obj2, &val3);
10280 if (!SWIG_IsOK(ecode3)) {
10281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10282 }
10283 arg3 = static_cast< int >(val3);
10284 ecode4 = SWIG_AsVal_int(obj3, &val4);
10285 if (!SWIG_IsOK(ecode4)) {
10286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10287 }
10288 arg4 = static_cast< int >(val4);
10289 ecode5 = SWIG_AsVal_int(obj4, &val5);
10290 if (!SWIG_IsOK(ecode5)) {
10291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10292 }
10293 arg5 = static_cast< int >(val5);
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 resultobj = SWIG_From_int(static_cast< int >(result));
10301 return resultobj;
10302 fail:
10303 return NULL;
10304 }
10305
10306
10307 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10308 PyObject *resultobj = 0;
10309 wxRegion *arg1 = (wxRegion *) 0 ;
10310 wxRect result;
10311 void *argp1 = 0 ;
10312 int res1 = 0 ;
10313 PyObject *swig_obj[1] ;
10314
10315 if (!args) SWIG_fail;
10316 swig_obj[0] = args;
10317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10318 if (!SWIG_IsOK(res1)) {
10319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10320 }
10321 arg1 = reinterpret_cast< wxRegion * >(argp1);
10322 {
10323 PyThreadState* __tstate = wxPyBeginAllowThreads();
10324 result = (arg1)->GetBox();
10325 wxPyEndAllowThreads(__tstate);
10326 if (PyErr_Occurred()) SWIG_fail;
10327 }
10328 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10329 return resultobj;
10330 fail:
10331 return NULL;
10332 }
10333
10334
10335 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10336 PyObject *resultobj = 0;
10337 wxRegion *arg1 = (wxRegion *) 0 ;
10338 int arg2 ;
10339 int arg3 ;
10340 int arg4 ;
10341 int arg5 ;
10342 bool result;
10343 void *argp1 = 0 ;
10344 int res1 = 0 ;
10345 int val2 ;
10346 int ecode2 = 0 ;
10347 int val3 ;
10348 int ecode3 = 0 ;
10349 int val4 ;
10350 int ecode4 = 0 ;
10351 int val5 ;
10352 int ecode5 = 0 ;
10353 PyObject * obj0 = 0 ;
10354 PyObject * obj1 = 0 ;
10355 PyObject * obj2 = 0 ;
10356 PyObject * obj3 = 0 ;
10357 PyObject * obj4 = 0 ;
10358 char * kwnames[] = {
10359 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10360 };
10361
10362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10364 if (!SWIG_IsOK(res1)) {
10365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10366 }
10367 arg1 = reinterpret_cast< wxRegion * >(argp1);
10368 ecode2 = SWIG_AsVal_int(obj1, &val2);
10369 if (!SWIG_IsOK(ecode2)) {
10370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10371 }
10372 arg2 = static_cast< int >(val2);
10373 ecode3 = SWIG_AsVal_int(obj2, &val3);
10374 if (!SWIG_IsOK(ecode3)) {
10375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10376 }
10377 arg3 = static_cast< int >(val3);
10378 ecode4 = SWIG_AsVal_int(obj3, &val4);
10379 if (!SWIG_IsOK(ecode4)) {
10380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10381 }
10382 arg4 = static_cast< int >(val4);
10383 ecode5 = SWIG_AsVal_int(obj4, &val5);
10384 if (!SWIG_IsOK(ecode5)) {
10385 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10386 }
10387 arg5 = static_cast< int >(val5);
10388 {
10389 PyThreadState* __tstate = wxPyBeginAllowThreads();
10390 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10391 wxPyEndAllowThreads(__tstate);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 {
10395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10396 }
10397 return resultobj;
10398 fail:
10399 return NULL;
10400 }
10401
10402
10403 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj = 0;
10405 wxRegion *arg1 = (wxRegion *) 0 ;
10406 wxRect *arg2 = 0 ;
10407 bool result;
10408 void *argp1 = 0 ;
10409 int res1 = 0 ;
10410 wxRect temp2 ;
10411 PyObject * obj0 = 0 ;
10412 PyObject * obj1 = 0 ;
10413 char * kwnames[] = {
10414 (char *) "self",(char *) "rect", NULL
10415 };
10416
10417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10419 if (!SWIG_IsOK(res1)) {
10420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10421 }
10422 arg1 = reinterpret_cast< wxRegion * >(argp1);
10423 {
10424 arg2 = &temp2;
10425 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10426 }
10427 {
10428 PyThreadState* __tstate = wxPyBeginAllowThreads();
10429 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10430 wxPyEndAllowThreads(__tstate);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 }
10433 {
10434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10435 }
10436 return resultobj;
10437 fail:
10438 return NULL;
10439 }
10440
10441
10442 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10443 PyObject *resultobj = 0;
10444 wxRegion *arg1 = (wxRegion *) 0 ;
10445 wxRegion *arg2 = 0 ;
10446 bool result;
10447 void *argp1 = 0 ;
10448 int res1 = 0 ;
10449 void *argp2 = 0 ;
10450 int res2 = 0 ;
10451 PyObject * obj0 = 0 ;
10452 PyObject * obj1 = 0 ;
10453 char * kwnames[] = {
10454 (char *) "self",(char *) "region", NULL
10455 };
10456
10457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10459 if (!SWIG_IsOK(res1)) {
10460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10461 }
10462 arg1 = reinterpret_cast< wxRegion * >(argp1);
10463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10464 if (!SWIG_IsOK(res2)) {
10465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10466 }
10467 if (!argp2) {
10468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10469 }
10470 arg2 = reinterpret_cast< wxRegion * >(argp2);
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 {
10478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10479 }
10480 return resultobj;
10481 fail:
10482 return NULL;
10483 }
10484
10485
10486 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10487 PyObject *resultobj = 0;
10488 wxRegion *arg1 = (wxRegion *) 0 ;
10489 bool result;
10490 void *argp1 = 0 ;
10491 int res1 = 0 ;
10492 PyObject *swig_obj[1] ;
10493
10494 if (!args) SWIG_fail;
10495 swig_obj[0] = args;
10496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10497 if (!SWIG_IsOK(res1)) {
10498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10499 }
10500 arg1 = reinterpret_cast< wxRegion * >(argp1);
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (bool)(arg1)->IsEmpty();
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 {
10508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10509 }
10510 return resultobj;
10511 fail:
10512 return NULL;
10513 }
10514
10515
10516 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10517 PyObject *resultobj = 0;
10518 wxRegion *arg1 = (wxRegion *) 0 ;
10519 int arg2 ;
10520 int arg3 ;
10521 int arg4 ;
10522 int arg5 ;
10523 bool result;
10524 void *argp1 = 0 ;
10525 int res1 = 0 ;
10526 int val2 ;
10527 int ecode2 = 0 ;
10528 int val3 ;
10529 int ecode3 = 0 ;
10530 int val4 ;
10531 int ecode4 = 0 ;
10532 int val5 ;
10533 int ecode5 = 0 ;
10534 PyObject * obj0 = 0 ;
10535 PyObject * obj1 = 0 ;
10536 PyObject * obj2 = 0 ;
10537 PyObject * obj3 = 0 ;
10538 PyObject * obj4 = 0 ;
10539 char * kwnames[] = {
10540 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10541 };
10542
10543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10545 if (!SWIG_IsOK(res1)) {
10546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10547 }
10548 arg1 = reinterpret_cast< wxRegion * >(argp1);
10549 ecode2 = SWIG_AsVal_int(obj1, &val2);
10550 if (!SWIG_IsOK(ecode2)) {
10551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10552 }
10553 arg2 = static_cast< int >(val2);
10554 ecode3 = SWIG_AsVal_int(obj2, &val3);
10555 if (!SWIG_IsOK(ecode3)) {
10556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10557 }
10558 arg3 = static_cast< int >(val3);
10559 ecode4 = SWIG_AsVal_int(obj3, &val4);
10560 if (!SWIG_IsOK(ecode4)) {
10561 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10562 }
10563 arg4 = static_cast< int >(val4);
10564 ecode5 = SWIG_AsVal_int(obj4, &val5);
10565 if (!SWIG_IsOK(ecode5)) {
10566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10567 }
10568 arg5 = static_cast< int >(val5);
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 {
10576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10577 }
10578 return resultobj;
10579 fail:
10580 return NULL;
10581 }
10582
10583
10584 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj = 0;
10586 wxRegion *arg1 = (wxRegion *) 0 ;
10587 wxRect *arg2 = 0 ;
10588 bool result;
10589 void *argp1 = 0 ;
10590 int res1 = 0 ;
10591 wxRect temp2 ;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 char * kwnames[] = {
10595 (char *) "self",(char *) "rect", NULL
10596 };
10597
10598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10600 if (!SWIG_IsOK(res1)) {
10601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10602 }
10603 arg1 = reinterpret_cast< wxRegion * >(argp1);
10604 {
10605 arg2 = &temp2;
10606 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10607 }
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 {
10615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10616 }
10617 return resultobj;
10618 fail:
10619 return NULL;
10620 }
10621
10622
10623 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10624 PyObject *resultobj = 0;
10625 wxRegion *arg1 = (wxRegion *) 0 ;
10626 wxRegion *arg2 = 0 ;
10627 bool result;
10628 void *argp1 = 0 ;
10629 int res1 = 0 ;
10630 void *argp2 = 0 ;
10631 int res2 = 0 ;
10632 PyObject * obj0 = 0 ;
10633 PyObject * obj1 = 0 ;
10634 char * kwnames[] = {
10635 (char *) "self",(char *) "region", NULL
10636 };
10637
10638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10640 if (!SWIG_IsOK(res1)) {
10641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10642 }
10643 arg1 = reinterpret_cast< wxRegion * >(argp1);
10644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10645 if (!SWIG_IsOK(res2)) {
10646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10647 }
10648 if (!argp2) {
10649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10650 }
10651 arg2 = reinterpret_cast< wxRegion * >(argp2);
10652 {
10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
10654 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10655 wxPyEndAllowThreads(__tstate);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 {
10659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10660 }
10661 return resultobj;
10662 fail:
10663 return NULL;
10664 }
10665
10666
10667 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxRegion *arg1 = (wxRegion *) 0 ;
10670 int arg2 ;
10671 int arg3 ;
10672 int arg4 ;
10673 int arg5 ;
10674 bool result;
10675 void *argp1 = 0 ;
10676 int res1 = 0 ;
10677 int val2 ;
10678 int ecode2 = 0 ;
10679 int val3 ;
10680 int ecode3 = 0 ;
10681 int val4 ;
10682 int ecode4 = 0 ;
10683 int val5 ;
10684 int ecode5 = 0 ;
10685 PyObject * obj0 = 0 ;
10686 PyObject * obj1 = 0 ;
10687 PyObject * obj2 = 0 ;
10688 PyObject * obj3 = 0 ;
10689 PyObject * obj4 = 0 ;
10690 char * kwnames[] = {
10691 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10692 };
10693
10694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10696 if (!SWIG_IsOK(res1)) {
10697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10698 }
10699 arg1 = reinterpret_cast< wxRegion * >(argp1);
10700 ecode2 = SWIG_AsVal_int(obj1, &val2);
10701 if (!SWIG_IsOK(ecode2)) {
10702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10703 }
10704 arg2 = static_cast< int >(val2);
10705 ecode3 = SWIG_AsVal_int(obj2, &val3);
10706 if (!SWIG_IsOK(ecode3)) {
10707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10708 }
10709 arg3 = static_cast< int >(val3);
10710 ecode4 = SWIG_AsVal_int(obj3, &val4);
10711 if (!SWIG_IsOK(ecode4)) {
10712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10713 }
10714 arg4 = static_cast< int >(val4);
10715 ecode5 = SWIG_AsVal_int(obj4, &val5);
10716 if (!SWIG_IsOK(ecode5)) {
10717 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10718 }
10719 arg5 = static_cast< int >(val5);
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 {
10727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10728 }
10729 return resultobj;
10730 fail:
10731 return NULL;
10732 }
10733
10734
10735 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10736 PyObject *resultobj = 0;
10737 wxRegion *arg1 = (wxRegion *) 0 ;
10738 wxRect *arg2 = 0 ;
10739 bool result;
10740 void *argp1 = 0 ;
10741 int res1 = 0 ;
10742 wxRect temp2 ;
10743 PyObject * obj0 = 0 ;
10744 PyObject * obj1 = 0 ;
10745 char * kwnames[] = {
10746 (char *) "self",(char *) "rect", NULL
10747 };
10748
10749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10751 if (!SWIG_IsOK(res1)) {
10752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10753 }
10754 arg1 = reinterpret_cast< wxRegion * >(argp1);
10755 {
10756 arg2 = &temp2;
10757 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10758 }
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 {
10766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10767 }
10768 return resultobj;
10769 fail:
10770 return NULL;
10771 }
10772
10773
10774 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10775 PyObject *resultobj = 0;
10776 wxRegion *arg1 = (wxRegion *) 0 ;
10777 wxRegion *arg2 = 0 ;
10778 bool result;
10779 void *argp1 = 0 ;
10780 int res1 = 0 ;
10781 void *argp2 = 0 ;
10782 int res2 = 0 ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 char * kwnames[] = {
10786 (char *) "self",(char *) "region", NULL
10787 };
10788
10789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10791 if (!SWIG_IsOK(res1)) {
10792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10793 }
10794 arg1 = reinterpret_cast< wxRegion * >(argp1);
10795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10796 if (!SWIG_IsOK(res2)) {
10797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10798 }
10799 if (!argp2) {
10800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10801 }
10802 arg2 = reinterpret_cast< wxRegion * >(argp2);
10803 {
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10806 wxPyEndAllowThreads(__tstate);
10807 if (PyErr_Occurred()) SWIG_fail;
10808 }
10809 {
10810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10811 }
10812 return resultobj;
10813 fail:
10814 return NULL;
10815 }
10816
10817
10818 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10819 PyObject *resultobj = 0;
10820 wxRegion *arg1 = (wxRegion *) 0 ;
10821 int arg2 ;
10822 int arg3 ;
10823 int arg4 ;
10824 int arg5 ;
10825 bool result;
10826 void *argp1 = 0 ;
10827 int res1 = 0 ;
10828 int val2 ;
10829 int ecode2 = 0 ;
10830 int val3 ;
10831 int ecode3 = 0 ;
10832 int val4 ;
10833 int ecode4 = 0 ;
10834 int val5 ;
10835 int ecode5 = 0 ;
10836 PyObject * obj0 = 0 ;
10837 PyObject * obj1 = 0 ;
10838 PyObject * obj2 = 0 ;
10839 PyObject * obj3 = 0 ;
10840 PyObject * obj4 = 0 ;
10841 char * kwnames[] = {
10842 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10843 };
10844
10845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10847 if (!SWIG_IsOK(res1)) {
10848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
10849 }
10850 arg1 = reinterpret_cast< wxRegion * >(argp1);
10851 ecode2 = SWIG_AsVal_int(obj1, &val2);
10852 if (!SWIG_IsOK(ecode2)) {
10853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
10854 }
10855 arg2 = static_cast< int >(val2);
10856 ecode3 = SWIG_AsVal_int(obj2, &val3);
10857 if (!SWIG_IsOK(ecode3)) {
10858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
10859 }
10860 arg3 = static_cast< int >(val3);
10861 ecode4 = SWIG_AsVal_int(obj3, &val4);
10862 if (!SWIG_IsOK(ecode4)) {
10863 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
10864 }
10865 arg4 = static_cast< int >(val4);
10866 ecode5 = SWIG_AsVal_int(obj4, &val5);
10867 if (!SWIG_IsOK(ecode5)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
10869 }
10870 arg5 = static_cast< int >(val5);
10871 {
10872 PyThreadState* __tstate = wxPyBeginAllowThreads();
10873 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 {
10878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10879 }
10880 return resultobj;
10881 fail:
10882 return NULL;
10883 }
10884
10885
10886 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10887 PyObject *resultobj = 0;
10888 wxRegion *arg1 = (wxRegion *) 0 ;
10889 wxRect *arg2 = 0 ;
10890 bool result;
10891 void *argp1 = 0 ;
10892 int res1 = 0 ;
10893 wxRect temp2 ;
10894 PyObject * obj0 = 0 ;
10895 PyObject * obj1 = 0 ;
10896 char * kwnames[] = {
10897 (char *) "self",(char *) "rect", NULL
10898 };
10899
10900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
10901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10902 if (!SWIG_IsOK(res1)) {
10903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10904 }
10905 arg1 = reinterpret_cast< wxRegion * >(argp1);
10906 {
10907 arg2 = &temp2;
10908 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10909 }
10910 {
10911 PyThreadState* __tstate = wxPyBeginAllowThreads();
10912 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
10913 wxPyEndAllowThreads(__tstate);
10914 if (PyErr_Occurred()) SWIG_fail;
10915 }
10916 {
10917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10918 }
10919 return resultobj;
10920 fail:
10921 return NULL;
10922 }
10923
10924
10925 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10926 PyObject *resultobj = 0;
10927 wxRegion *arg1 = (wxRegion *) 0 ;
10928 wxRegion *arg2 = 0 ;
10929 bool result;
10930 void *argp1 = 0 ;
10931 int res1 = 0 ;
10932 void *argp2 = 0 ;
10933 int res2 = 0 ;
10934 PyObject * obj0 = 0 ;
10935 PyObject * obj1 = 0 ;
10936 char * kwnames[] = {
10937 (char *) "self",(char *) "region", NULL
10938 };
10939
10940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10942 if (!SWIG_IsOK(res1)) {
10943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10944 }
10945 arg1 = reinterpret_cast< wxRegion * >(argp1);
10946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10947 if (!SWIG_IsOK(res2)) {
10948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10949 }
10950 if (!argp2) {
10951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10952 }
10953 arg2 = reinterpret_cast< wxRegion * >(argp2);
10954 {
10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
10956 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10962 }
10963 return resultobj;
10964 fail:
10965 return NULL;
10966 }
10967
10968
10969 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10970 PyObject *resultobj = 0;
10971 wxRegion *arg1 = (wxRegion *) 0 ;
10972 SwigValueWrapper<wxBitmap > result;
10973 void *argp1 = 0 ;
10974 int res1 = 0 ;
10975 PyObject *swig_obj[1] ;
10976
10977 if (!args) SWIG_fail;
10978 swig_obj[0] = args;
10979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10980 if (!SWIG_IsOK(res1)) {
10981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
10982 }
10983 arg1 = reinterpret_cast< wxRegion * >(argp1);
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (arg1)->ConvertToBitmap();
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
10991 return resultobj;
10992 fail:
10993 return NULL;
10994 }
10995
10996
10997 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10998 PyObject *resultobj = 0;
10999 wxRegion *arg1 = (wxRegion *) 0 ;
11000 wxBitmap *arg2 = 0 ;
11001 bool result;
11002 void *argp1 = 0 ;
11003 int res1 = 0 ;
11004 void *argp2 = 0 ;
11005 int res2 = 0 ;
11006 PyObject * obj0 = 0 ;
11007 PyObject * obj1 = 0 ;
11008 char * kwnames[] = {
11009 (char *) "self",(char *) "bmp", NULL
11010 };
11011
11012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11014 if (!SWIG_IsOK(res1)) {
11015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11016 }
11017 arg1 = reinterpret_cast< wxRegion * >(argp1);
11018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11019 if (!SWIG_IsOK(res2)) {
11020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11021 }
11022 if (!argp2) {
11023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11024 }
11025 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11026 {
11027 PyThreadState* __tstate = wxPyBeginAllowThreads();
11028 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 {
11033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11034 }
11035 return resultobj;
11036 fail:
11037 return NULL;
11038 }
11039
11040
11041 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11042 PyObject *resultobj = 0;
11043 wxRegion *arg1 = (wxRegion *) 0 ;
11044 wxBitmap *arg2 = 0 ;
11045 wxColour *arg3 = 0 ;
11046 int arg4 = (int) 0 ;
11047 bool result;
11048 void *argp1 = 0 ;
11049 int res1 = 0 ;
11050 void *argp2 = 0 ;
11051 int res2 = 0 ;
11052 wxColour temp3 ;
11053 int val4 ;
11054 int ecode4 = 0 ;
11055 PyObject * obj0 = 0 ;
11056 PyObject * obj1 = 0 ;
11057 PyObject * obj2 = 0 ;
11058 PyObject * obj3 = 0 ;
11059 char * kwnames[] = {
11060 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11061 };
11062
11063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11065 if (!SWIG_IsOK(res1)) {
11066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11067 }
11068 arg1 = reinterpret_cast< wxRegion * >(argp1);
11069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11070 if (!SWIG_IsOK(res2)) {
11071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11072 }
11073 if (!argp2) {
11074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11075 }
11076 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11077 {
11078 arg3 = &temp3;
11079 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11080 }
11081 if (obj3) {
11082 ecode4 = SWIG_AsVal_int(obj3, &val4);
11083 if (!SWIG_IsOK(ecode4)) {
11084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11085 }
11086 arg4 = static_cast< int >(val4);
11087 }
11088 {
11089 PyThreadState* __tstate = wxPyBeginAllowThreads();
11090 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11091 wxPyEndAllowThreads(__tstate);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 {
11095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11096 }
11097 return resultobj;
11098 fail:
11099 return NULL;
11100 }
11101
11102
11103 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11104 PyObject *obj;
11105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11106 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11107 return SWIG_Py_Void();
11108 }
11109
11110 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11111 return SWIG_Python_InitShadowInstance(args);
11112 }
11113
11114 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11115 PyObject *resultobj = 0;
11116 wxRegion *arg1 = 0 ;
11117 wxRegionIterator *result = 0 ;
11118 void *argp1 = 0 ;
11119 int res1 = 0 ;
11120 PyObject * obj0 = 0 ;
11121 char * kwnames[] = {
11122 (char *) "region", NULL
11123 };
11124
11125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11126 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11129 }
11130 if (!argp1) {
11131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11132 }
11133 arg1 = reinterpret_cast< wxRegion * >(argp1);
11134 {
11135 if (!wxPyCheckForApp()) SWIG_fail;
11136 PyThreadState* __tstate = wxPyBeginAllowThreads();
11137 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11138 wxPyEndAllowThreads(__tstate);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 }
11141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11142 return resultobj;
11143 fail:
11144 return NULL;
11145 }
11146
11147
11148 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11149 PyObject *resultobj = 0;
11150 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11151 void *argp1 = 0 ;
11152 int res1 = 0 ;
11153 PyObject *swig_obj[1] ;
11154
11155 if (!args) SWIG_fail;
11156 swig_obj[0] = args;
11157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11158 if (!SWIG_IsOK(res1)) {
11159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11160 }
11161 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11162 {
11163 PyThreadState* __tstate = wxPyBeginAllowThreads();
11164 delete arg1;
11165
11166 wxPyEndAllowThreads(__tstate);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 resultobj = SWIG_Py_Void();
11170 return resultobj;
11171 fail:
11172 return NULL;
11173 }
11174
11175
11176 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11177 PyObject *resultobj = 0;
11178 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11179 int result;
11180 void *argp1 = 0 ;
11181 int res1 = 0 ;
11182 PyObject *swig_obj[1] ;
11183
11184 if (!args) SWIG_fail;
11185 swig_obj[0] = args;
11186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11187 if (!SWIG_IsOK(res1)) {
11188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11189 }
11190 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
11193 result = (int)(arg1)->GetX();
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 resultobj = SWIG_From_int(static_cast< int >(result));
11198 return resultobj;
11199 fail:
11200 return NULL;
11201 }
11202
11203
11204 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11205 PyObject *resultobj = 0;
11206 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11207 int result;
11208 void *argp1 = 0 ;
11209 int res1 = 0 ;
11210 PyObject *swig_obj[1] ;
11211
11212 if (!args) SWIG_fail;
11213 swig_obj[0] = args;
11214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11215 if (!SWIG_IsOK(res1)) {
11216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11217 }
11218 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 result = (int)(arg1)->GetY();
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 resultobj = SWIG_From_int(static_cast< int >(result));
11226 return resultobj;
11227 fail:
11228 return NULL;
11229 }
11230
11231
11232 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11233 PyObject *resultobj = 0;
11234 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11235 int result;
11236 void *argp1 = 0 ;
11237 int res1 = 0 ;
11238 PyObject *swig_obj[1] ;
11239
11240 if (!args) SWIG_fail;
11241 swig_obj[0] = args;
11242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11243 if (!SWIG_IsOK(res1)) {
11244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11245 }
11246 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11247 {
11248 PyThreadState* __tstate = wxPyBeginAllowThreads();
11249 result = (int)(arg1)->GetW();
11250 wxPyEndAllowThreads(__tstate);
11251 if (PyErr_Occurred()) SWIG_fail;
11252 }
11253 resultobj = SWIG_From_int(static_cast< int >(result));
11254 return resultobj;
11255 fail:
11256 return NULL;
11257 }
11258
11259
11260 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11261 PyObject *resultobj = 0;
11262 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11263 int result;
11264 void *argp1 = 0 ;
11265 int res1 = 0 ;
11266 PyObject *swig_obj[1] ;
11267
11268 if (!args) SWIG_fail;
11269 swig_obj[0] = args;
11270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11271 if (!SWIG_IsOK(res1)) {
11272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11273 }
11274 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11275 {
11276 PyThreadState* __tstate = wxPyBeginAllowThreads();
11277 result = (int)(arg1)->GetWidth();
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 resultobj = SWIG_From_int(static_cast< int >(result));
11282 return resultobj;
11283 fail:
11284 return NULL;
11285 }
11286
11287
11288 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11289 PyObject *resultobj = 0;
11290 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11291 int result;
11292 void *argp1 = 0 ;
11293 int res1 = 0 ;
11294 PyObject *swig_obj[1] ;
11295
11296 if (!args) SWIG_fail;
11297 swig_obj[0] = args;
11298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11299 if (!SWIG_IsOK(res1)) {
11300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11301 }
11302 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 result = (int)(arg1)->GetH();
11306 wxPyEndAllowThreads(__tstate);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 }
11309 resultobj = SWIG_From_int(static_cast< int >(result));
11310 return resultobj;
11311 fail:
11312 return NULL;
11313 }
11314
11315
11316 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11317 PyObject *resultobj = 0;
11318 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11319 int result;
11320 void *argp1 = 0 ;
11321 int res1 = 0 ;
11322 PyObject *swig_obj[1] ;
11323
11324 if (!args) SWIG_fail;
11325 swig_obj[0] = args;
11326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11327 if (!SWIG_IsOK(res1)) {
11328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11329 }
11330 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11331 {
11332 PyThreadState* __tstate = wxPyBeginAllowThreads();
11333 result = (int)(arg1)->GetHeight();
11334 wxPyEndAllowThreads(__tstate);
11335 if (PyErr_Occurred()) SWIG_fail;
11336 }
11337 resultobj = SWIG_From_int(static_cast< int >(result));
11338 return resultobj;
11339 fail:
11340 return NULL;
11341 }
11342
11343
11344 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11345 PyObject *resultobj = 0;
11346 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11347 wxRect result;
11348 void *argp1 = 0 ;
11349 int res1 = 0 ;
11350 PyObject *swig_obj[1] ;
11351
11352 if (!args) SWIG_fail;
11353 swig_obj[0] = args;
11354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11355 if (!SWIG_IsOK(res1)) {
11356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11357 }
11358 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11359 {
11360 PyThreadState* __tstate = wxPyBeginAllowThreads();
11361 result = (arg1)->GetRect();
11362 wxPyEndAllowThreads(__tstate);
11363 if (PyErr_Occurred()) SWIG_fail;
11364 }
11365 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11366 return resultobj;
11367 fail:
11368 return NULL;
11369 }
11370
11371
11372 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11373 PyObject *resultobj = 0;
11374 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11375 bool result;
11376 void *argp1 = 0 ;
11377 int res1 = 0 ;
11378 PyObject *swig_obj[1] ;
11379
11380 if (!args) SWIG_fail;
11381 swig_obj[0] = args;
11382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11383 if (!SWIG_IsOK(res1)) {
11384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11385 }
11386 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11387 {
11388 PyThreadState* __tstate = wxPyBeginAllowThreads();
11389 result = (bool)(arg1)->HaveRects();
11390 wxPyEndAllowThreads(__tstate);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 {
11394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11395 }
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11403 PyObject *resultobj = 0;
11404 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11405 void *argp1 = 0 ;
11406 int res1 = 0 ;
11407 PyObject *swig_obj[1] ;
11408
11409 if (!args) SWIG_fail;
11410 swig_obj[0] = args;
11411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11412 if (!SWIG_IsOK(res1)) {
11413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11414 }
11415 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 (arg1)->Reset();
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 resultobj = SWIG_Py_Void();
11423 return resultobj;
11424 fail:
11425 return NULL;
11426 }
11427
11428
11429 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11430 PyObject *resultobj = 0;
11431 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11432 void *argp1 = 0 ;
11433 int res1 = 0 ;
11434 PyObject *swig_obj[1] ;
11435
11436 if (!args) SWIG_fail;
11437 swig_obj[0] = args;
11438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11439 if (!SWIG_IsOK(res1)) {
11440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11441 }
11442 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 wxRegionIterator_Next(arg1);
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 resultobj = SWIG_Py_Void();
11450 return resultobj;
11451 fail:
11452 return NULL;
11453 }
11454
11455
11456 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11457 PyObject *resultobj = 0;
11458 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11459 bool result;
11460 void *argp1 = 0 ;
11461 int res1 = 0 ;
11462 PyObject *swig_obj[1] ;
11463
11464 if (!args) SWIG_fail;
11465 swig_obj[0] = args;
11466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11467 if (!SWIG_IsOK(res1)) {
11468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11469 }
11470 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11471 {
11472 PyThreadState* __tstate = wxPyBeginAllowThreads();
11473 result = (bool)wxRegionIterator___nonzero__(arg1);
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 {
11478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11479 }
11480 return resultobj;
11481 fail:
11482 return NULL;
11483 }
11484
11485
11486 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11487 PyObject *obj;
11488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11489 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11490 return SWIG_Py_Void();
11491 }
11492
11493 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11494 return SWIG_Python_InitShadowInstance(args);
11495 }
11496
11497 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11498 PyObject *resultobj = 0;
11499 wxNativeFontInfo *result = 0 ;
11500
11501 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11502 {
11503 PyThreadState* __tstate = wxPyBeginAllowThreads();
11504 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11509 return resultobj;
11510 fail:
11511 return NULL;
11512 }
11513
11514
11515 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11516 PyObject *resultobj = 0;
11517 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11518 void *argp1 = 0 ;
11519 int res1 = 0 ;
11520 PyObject *swig_obj[1] ;
11521
11522 if (!args) SWIG_fail;
11523 swig_obj[0] = args;
11524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11525 if (!SWIG_IsOK(res1)) {
11526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11527 }
11528 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 delete arg1;
11532
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 resultobj = SWIG_Py_Void();
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11544 PyObject *resultobj = 0;
11545 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11546 void *argp1 = 0 ;
11547 int res1 = 0 ;
11548 PyObject *swig_obj[1] ;
11549
11550 if (!args) SWIG_fail;
11551 swig_obj[0] = args;
11552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11553 if (!SWIG_IsOK(res1)) {
11554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11555 }
11556 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11557 {
11558 PyThreadState* __tstate = wxPyBeginAllowThreads();
11559 (arg1)->Init();
11560 wxPyEndAllowThreads(__tstate);
11561 if (PyErr_Occurred()) SWIG_fail;
11562 }
11563 resultobj = SWIG_Py_Void();
11564 return resultobj;
11565 fail:
11566 return NULL;
11567 }
11568
11569
11570 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11571 PyObject *resultobj = 0;
11572 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11573 wxFont *arg2 = 0 ;
11574 void *argp1 = 0 ;
11575 int res1 = 0 ;
11576 void *argp2 = 0 ;
11577 int res2 = 0 ;
11578 PyObject * obj0 = 0 ;
11579 PyObject * obj1 = 0 ;
11580 char * kwnames[] = {
11581 (char *) "self",(char *) "font", NULL
11582 };
11583
11584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11586 if (!SWIG_IsOK(res1)) {
11587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11588 }
11589 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11591 if (!SWIG_IsOK(res2)) {
11592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11593 }
11594 if (!argp2) {
11595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11596 }
11597 arg2 = reinterpret_cast< wxFont * >(argp2);
11598 {
11599 PyThreadState* __tstate = wxPyBeginAllowThreads();
11600 (arg1)->InitFromFont((wxFont const &)*arg2);
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
11604 resultobj = SWIG_Py_Void();
11605 return resultobj;
11606 fail:
11607 return NULL;
11608 }
11609
11610
11611 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11612 PyObject *resultobj = 0;
11613 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11614 int result;
11615 void *argp1 = 0 ;
11616 int res1 = 0 ;
11617 PyObject *swig_obj[1] ;
11618
11619 if (!args) SWIG_fail;
11620 swig_obj[0] = args;
11621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11622 if (!SWIG_IsOK(res1)) {
11623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11624 }
11625 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11626 {
11627 PyThreadState* __tstate = wxPyBeginAllowThreads();
11628 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 resultobj = SWIG_From_int(static_cast< int >(result));
11633 return resultobj;
11634 fail:
11635 return NULL;
11636 }
11637
11638
11639 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11640 PyObject *resultobj = 0;
11641 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11642 wxFontStyle result;
11643 void *argp1 = 0 ;
11644 int res1 = 0 ;
11645 PyObject *swig_obj[1] ;
11646
11647 if (!args) SWIG_fail;
11648 swig_obj[0] = args;
11649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11650 if (!SWIG_IsOK(res1)) {
11651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11652 }
11653 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11654 {
11655 PyThreadState* __tstate = wxPyBeginAllowThreads();
11656 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11657 wxPyEndAllowThreads(__tstate);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 resultobj = SWIG_From_int(static_cast< int >(result));
11661 return resultobj;
11662 fail:
11663 return NULL;
11664 }
11665
11666
11667 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11668 PyObject *resultobj = 0;
11669 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11670 wxFontWeight result;
11671 void *argp1 = 0 ;
11672 int res1 = 0 ;
11673 PyObject *swig_obj[1] ;
11674
11675 if (!args) SWIG_fail;
11676 swig_obj[0] = args;
11677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11678 if (!SWIG_IsOK(res1)) {
11679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11680 }
11681 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11682 {
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
11684 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11685 wxPyEndAllowThreads(__tstate);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 }
11688 resultobj = SWIG_From_int(static_cast< int >(result));
11689 return resultobj;
11690 fail:
11691 return NULL;
11692 }
11693
11694
11695 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11696 PyObject *resultobj = 0;
11697 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11698 bool result;
11699 void *argp1 = 0 ;
11700 int res1 = 0 ;
11701 PyObject *swig_obj[1] ;
11702
11703 if (!args) SWIG_fail;
11704 swig_obj[0] = args;
11705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11706 if (!SWIG_IsOK(res1)) {
11707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11708 }
11709 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11710 {
11711 PyThreadState* __tstate = wxPyBeginAllowThreads();
11712 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11713 wxPyEndAllowThreads(__tstate);
11714 if (PyErr_Occurred()) SWIG_fail;
11715 }
11716 {
11717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11718 }
11719 return resultobj;
11720 fail:
11721 return NULL;
11722 }
11723
11724
11725 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11726 PyObject *resultobj = 0;
11727 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11728 wxString result;
11729 void *argp1 = 0 ;
11730 int res1 = 0 ;
11731 PyObject *swig_obj[1] ;
11732
11733 if (!args) SWIG_fail;
11734 swig_obj[0] = args;
11735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11736 if (!SWIG_IsOK(res1)) {
11737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11738 }
11739 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11740 {
11741 PyThreadState* __tstate = wxPyBeginAllowThreads();
11742 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11743 wxPyEndAllowThreads(__tstate);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 {
11747 #if wxUSE_UNICODE
11748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11749 #else
11750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11751 #endif
11752 }
11753 return resultobj;
11754 fail:
11755 return NULL;
11756 }
11757
11758
11759 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11760 PyObject *resultobj = 0;
11761 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11762 wxFontFamily result;
11763 void *argp1 = 0 ;
11764 int res1 = 0 ;
11765 PyObject *swig_obj[1] ;
11766
11767 if (!args) SWIG_fail;
11768 swig_obj[0] = args;
11769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11770 if (!SWIG_IsOK(res1)) {
11771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11772 }
11773 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11777 wxPyEndAllowThreads(__tstate);
11778 if (PyErr_Occurred()) SWIG_fail;
11779 }
11780 resultobj = SWIG_From_int(static_cast< int >(result));
11781 return resultobj;
11782 fail:
11783 return NULL;
11784 }
11785
11786
11787 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11788 PyObject *resultobj = 0;
11789 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11790 wxFontEncoding result;
11791 void *argp1 = 0 ;
11792 int res1 = 0 ;
11793 PyObject *swig_obj[1] ;
11794
11795 if (!args) SWIG_fail;
11796 swig_obj[0] = args;
11797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11798 if (!SWIG_IsOK(res1)) {
11799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11800 }
11801 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11802 {
11803 PyThreadState* __tstate = wxPyBeginAllowThreads();
11804 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11805 wxPyEndAllowThreads(__tstate);
11806 if (PyErr_Occurred()) SWIG_fail;
11807 }
11808 resultobj = SWIG_From_int(static_cast< int >(result));
11809 return resultobj;
11810 fail:
11811 return NULL;
11812 }
11813
11814
11815 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11816 PyObject *resultobj = 0;
11817 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11818 int arg2 ;
11819 void *argp1 = 0 ;
11820 int res1 = 0 ;
11821 int val2 ;
11822 int ecode2 = 0 ;
11823 PyObject * obj0 = 0 ;
11824 PyObject * obj1 = 0 ;
11825 char * kwnames[] = {
11826 (char *) "self",(char *) "pointsize", NULL
11827 };
11828
11829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11831 if (!SWIG_IsOK(res1)) {
11832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11833 }
11834 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11835 ecode2 = SWIG_AsVal_int(obj1, &val2);
11836 if (!SWIG_IsOK(ecode2)) {
11837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
11838 }
11839 arg2 = static_cast< int >(val2);
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 (arg1)->SetPointSize(arg2);
11843 wxPyEndAllowThreads(__tstate);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 }
11846 resultobj = SWIG_Py_Void();
11847 return resultobj;
11848 fail:
11849 return NULL;
11850 }
11851
11852
11853 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11854 PyObject *resultobj = 0;
11855 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11856 wxFontStyle arg2 ;
11857 void *argp1 = 0 ;
11858 int res1 = 0 ;
11859 int val2 ;
11860 int ecode2 = 0 ;
11861 PyObject * obj0 = 0 ;
11862 PyObject * obj1 = 0 ;
11863 char * kwnames[] = {
11864 (char *) "self",(char *) "style", NULL
11865 };
11866
11867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
11868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11869 if (!SWIG_IsOK(res1)) {
11870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11871 }
11872 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11873 ecode2 = SWIG_AsVal_int(obj1, &val2);
11874 if (!SWIG_IsOK(ecode2)) {
11875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
11876 }
11877 arg2 = static_cast< wxFontStyle >(val2);
11878 {
11879 PyThreadState* __tstate = wxPyBeginAllowThreads();
11880 (arg1)->SetStyle(arg2);
11881 wxPyEndAllowThreads(__tstate);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 resultobj = SWIG_Py_Void();
11885 return resultobj;
11886 fail:
11887 return NULL;
11888 }
11889
11890
11891 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj = 0;
11893 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11894 wxFontWeight arg2 ;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 int val2 ;
11898 int ecode2 = 0 ;
11899 PyObject * obj0 = 0 ;
11900 PyObject * obj1 = 0 ;
11901 char * kwnames[] = {
11902 (char *) "self",(char *) "weight", NULL
11903 };
11904
11905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
11906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11907 if (!SWIG_IsOK(res1)) {
11908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11909 }
11910 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11911 ecode2 = SWIG_AsVal_int(obj1, &val2);
11912 if (!SWIG_IsOK(ecode2)) {
11913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
11914 }
11915 arg2 = static_cast< wxFontWeight >(val2);
11916 {
11917 PyThreadState* __tstate = wxPyBeginAllowThreads();
11918 (arg1)->SetWeight(arg2);
11919 wxPyEndAllowThreads(__tstate);
11920 if (PyErr_Occurred()) SWIG_fail;
11921 }
11922 resultobj = SWIG_Py_Void();
11923 return resultobj;
11924 fail:
11925 return NULL;
11926 }
11927
11928
11929 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11930 PyObject *resultobj = 0;
11931 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11932 bool arg2 ;
11933 void *argp1 = 0 ;
11934 int res1 = 0 ;
11935 bool val2 ;
11936 int ecode2 = 0 ;
11937 PyObject * obj0 = 0 ;
11938 PyObject * obj1 = 0 ;
11939 char * kwnames[] = {
11940 (char *) "self",(char *) "underlined", NULL
11941 };
11942
11943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
11944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11945 if (!SWIG_IsOK(res1)) {
11946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11947 }
11948 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11949 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11950 if (!SWIG_IsOK(ecode2)) {
11951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
11952 }
11953 arg2 = static_cast< bool >(val2);
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 (arg1)->SetUnderlined(arg2);
11957 wxPyEndAllowThreads(__tstate);
11958 if (PyErr_Occurred()) SWIG_fail;
11959 }
11960 resultobj = SWIG_Py_Void();
11961 return resultobj;
11962 fail:
11963 return NULL;
11964 }
11965
11966
11967 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj = 0;
11969 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11970 wxString arg2 ;
11971 bool result;
11972 void *argp1 = 0 ;
11973 int res1 = 0 ;
11974 PyObject * obj0 = 0 ;
11975 PyObject * obj1 = 0 ;
11976 char * kwnames[] = {
11977 (char *) "self",(char *) "facename", NULL
11978 };
11979
11980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
11981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11982 if (!SWIG_IsOK(res1)) {
11983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11984 }
11985 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11986 {
11987 wxString* sptr = wxString_in_helper(obj1);
11988 if (sptr == NULL) SWIG_fail;
11989 arg2 = *sptr;
11990 delete sptr;
11991 }
11992 {
11993 PyThreadState* __tstate = wxPyBeginAllowThreads();
11994 result = (bool)(arg1)->SetFaceName(arg2);
11995 wxPyEndAllowThreads(__tstate);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 }
11998 {
11999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12000 }
12001 return resultobj;
12002 fail:
12003 return NULL;
12004 }
12005
12006
12007 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12008 PyObject *resultobj = 0;
12009 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12010 wxFontFamily arg2 ;
12011 void *argp1 = 0 ;
12012 int res1 = 0 ;
12013 int val2 ;
12014 int ecode2 = 0 ;
12015 PyObject * obj0 = 0 ;
12016 PyObject * obj1 = 0 ;
12017 char * kwnames[] = {
12018 (char *) "self",(char *) "family", NULL
12019 };
12020
12021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12023 if (!SWIG_IsOK(res1)) {
12024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12025 }
12026 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12027 ecode2 = SWIG_AsVal_int(obj1, &val2);
12028 if (!SWIG_IsOK(ecode2)) {
12029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12030 }
12031 arg2 = static_cast< wxFontFamily >(val2);
12032 {
12033 PyThreadState* __tstate = wxPyBeginAllowThreads();
12034 (arg1)->SetFamily(arg2);
12035 wxPyEndAllowThreads(__tstate);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 }
12038 resultobj = SWIG_Py_Void();
12039 return resultobj;
12040 fail:
12041 return NULL;
12042 }
12043
12044
12045 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12046 PyObject *resultobj = 0;
12047 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12048 wxFontEncoding arg2 ;
12049 void *argp1 = 0 ;
12050 int res1 = 0 ;
12051 int val2 ;
12052 int ecode2 = 0 ;
12053 PyObject * obj0 = 0 ;
12054 PyObject * obj1 = 0 ;
12055 char * kwnames[] = {
12056 (char *) "self",(char *) "encoding", NULL
12057 };
12058
12059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12061 if (!SWIG_IsOK(res1)) {
12062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12063 }
12064 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12065 ecode2 = SWIG_AsVal_int(obj1, &val2);
12066 if (!SWIG_IsOK(ecode2)) {
12067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12068 }
12069 arg2 = static_cast< wxFontEncoding >(val2);
12070 {
12071 PyThreadState* __tstate = wxPyBeginAllowThreads();
12072 (arg1)->SetEncoding(arg2);
12073 wxPyEndAllowThreads(__tstate);
12074 if (PyErr_Occurred()) SWIG_fail;
12075 }
12076 resultobj = SWIG_Py_Void();
12077 return resultobj;
12078 fail:
12079 return NULL;
12080 }
12081
12082
12083 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12084 PyObject *resultobj = 0;
12085 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12086 wxString *arg2 = 0 ;
12087 bool result;
12088 void *argp1 = 0 ;
12089 int res1 = 0 ;
12090 bool temp2 = false ;
12091 PyObject * obj0 = 0 ;
12092 PyObject * obj1 = 0 ;
12093 char * kwnames[] = {
12094 (char *) "self",(char *) "s", NULL
12095 };
12096
12097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12099 if (!SWIG_IsOK(res1)) {
12100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12101 }
12102 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12103 {
12104 arg2 = wxString_in_helper(obj1);
12105 if (arg2 == NULL) SWIG_fail;
12106 temp2 = true;
12107 }
12108 {
12109 PyThreadState* __tstate = wxPyBeginAllowThreads();
12110 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12111 wxPyEndAllowThreads(__tstate);
12112 if (PyErr_Occurred()) SWIG_fail;
12113 }
12114 {
12115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12116 }
12117 {
12118 if (temp2)
12119 delete arg2;
12120 }
12121 return resultobj;
12122 fail:
12123 {
12124 if (temp2)
12125 delete arg2;
12126 }
12127 return NULL;
12128 }
12129
12130
12131 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12132 PyObject *resultobj = 0;
12133 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12134 wxString result;
12135 void *argp1 = 0 ;
12136 int res1 = 0 ;
12137 PyObject *swig_obj[1] ;
12138
12139 if (!args) SWIG_fail;
12140 swig_obj[0] = args;
12141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12142 if (!SWIG_IsOK(res1)) {
12143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12144 }
12145 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 result = ((wxNativeFontInfo const *)arg1)->ToString();
12149 wxPyEndAllowThreads(__tstate);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 {
12153 #if wxUSE_UNICODE
12154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12155 #else
12156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12157 #endif
12158 }
12159 return resultobj;
12160 fail:
12161 return NULL;
12162 }
12163
12164
12165 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12166 PyObject *resultobj = 0;
12167 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12168 wxString result;
12169 void *argp1 = 0 ;
12170 int res1 = 0 ;
12171 PyObject *swig_obj[1] ;
12172
12173 if (!args) SWIG_fail;
12174 swig_obj[0] = args;
12175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12176 if (!SWIG_IsOK(res1)) {
12177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12178 }
12179 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12180 {
12181 PyThreadState* __tstate = wxPyBeginAllowThreads();
12182 result = wxNativeFontInfo___str__(arg1);
12183 wxPyEndAllowThreads(__tstate);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 }
12186 {
12187 #if wxUSE_UNICODE
12188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12189 #else
12190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12191 #endif
12192 }
12193 return resultobj;
12194 fail:
12195 return NULL;
12196 }
12197
12198
12199 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12200 PyObject *resultobj = 0;
12201 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12202 wxString *arg2 = 0 ;
12203 bool result;
12204 void *argp1 = 0 ;
12205 int res1 = 0 ;
12206 bool temp2 = false ;
12207 PyObject * obj0 = 0 ;
12208 PyObject * obj1 = 0 ;
12209 char * kwnames[] = {
12210 (char *) "self",(char *) "s", NULL
12211 };
12212
12213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12215 if (!SWIG_IsOK(res1)) {
12216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12217 }
12218 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12219 {
12220 arg2 = wxString_in_helper(obj1);
12221 if (arg2 == NULL) SWIG_fail;
12222 temp2 = true;
12223 }
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12227 wxPyEndAllowThreads(__tstate);
12228 if (PyErr_Occurred()) SWIG_fail;
12229 }
12230 {
12231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12232 }
12233 {
12234 if (temp2)
12235 delete arg2;
12236 }
12237 return resultobj;
12238 fail:
12239 {
12240 if (temp2)
12241 delete arg2;
12242 }
12243 return NULL;
12244 }
12245
12246
12247 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12248 PyObject *resultobj = 0;
12249 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12250 wxString result;
12251 void *argp1 = 0 ;
12252 int res1 = 0 ;
12253 PyObject *swig_obj[1] ;
12254
12255 if (!args) SWIG_fail;
12256 swig_obj[0] = args;
12257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12260 }
12261 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 {
12269 #if wxUSE_UNICODE
12270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12271 #else
12272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12273 #endif
12274 }
12275 return resultobj;
12276 fail:
12277 return NULL;
12278 }
12279
12280
12281 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12282 PyObject *obj;
12283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12284 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12285 return SWIG_Py_Void();
12286 }
12287
12288 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12289 return SWIG_Python_InitShadowInstance(args);
12290 }
12291
12292 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12293 PyObject *resultobj = 0;
12294 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12295 wxString *arg2 = (wxString *) 0 ;
12296 void *argp1 = 0 ;
12297 int res1 = 0 ;
12298 bool temp2 = false ;
12299 PyObject *swig_obj[2] ;
12300
12301 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12303 if (!SWIG_IsOK(res1)) {
12304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12305 }
12306 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12307 {
12308 arg2 = wxString_in_helper(swig_obj[1]);
12309 if (arg2 == NULL) SWIG_fail;
12310 temp2 = true;
12311 }
12312 if (arg1) (arg1)->facename = *arg2;
12313
12314 resultobj = SWIG_Py_Void();
12315 {
12316 if (temp2)
12317 delete arg2;
12318 }
12319 return resultobj;
12320 fail:
12321 {
12322 if (temp2)
12323 delete arg2;
12324 }
12325 return NULL;
12326 }
12327
12328
12329 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12330 PyObject *resultobj = 0;
12331 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12332 wxString *result = 0 ;
12333 void *argp1 = 0 ;
12334 int res1 = 0 ;
12335 PyObject *swig_obj[1] ;
12336
12337 if (!args) SWIG_fail;
12338 swig_obj[0] = args;
12339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12340 if (!SWIG_IsOK(res1)) {
12341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12342 }
12343 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12344 result = (wxString *)& ((arg1)->facename);
12345 {
12346 #if wxUSE_UNICODE
12347 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12348 #else
12349 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12350 #endif
12351 }
12352 return resultobj;
12353 fail:
12354 return NULL;
12355 }
12356
12357
12358 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12359 PyObject *resultobj = 0;
12360 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12361 wxFontEncoding arg2 ;
12362 void *argp1 = 0 ;
12363 int res1 = 0 ;
12364 int val2 ;
12365 int ecode2 = 0 ;
12366 PyObject *swig_obj[2] ;
12367
12368 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12370 if (!SWIG_IsOK(res1)) {
12371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12372 }
12373 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12374 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12375 if (!SWIG_IsOK(ecode2)) {
12376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12377 }
12378 arg2 = static_cast< wxFontEncoding >(val2);
12379 if (arg1) (arg1)->encoding = arg2;
12380
12381 resultobj = SWIG_Py_Void();
12382 return resultobj;
12383 fail:
12384 return NULL;
12385 }
12386
12387
12388 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12389 PyObject *resultobj = 0;
12390 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12391 wxFontEncoding result;
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_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12401 }
12402 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12403 result = (wxFontEncoding) ((arg1)->encoding);
12404 resultobj = SWIG_From_int(static_cast< int >(result));
12405 return resultobj;
12406 fail:
12407 return NULL;
12408 }
12409
12410
12411 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12412 PyObject *resultobj = 0;
12413 wxNativeEncodingInfo *result = 0 ;
12414
12415 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12416 {
12417 PyThreadState* __tstate = wxPyBeginAllowThreads();
12418 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12423 return resultobj;
12424 fail:
12425 return NULL;
12426 }
12427
12428
12429 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12430 PyObject *resultobj = 0;
12431 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12432 void *argp1 = 0 ;
12433 int res1 = 0 ;
12434 PyObject *swig_obj[1] ;
12435
12436 if (!args) SWIG_fail;
12437 swig_obj[0] = args;
12438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12439 if (!SWIG_IsOK(res1)) {
12440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12441 }
12442 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12443 {
12444 PyThreadState* __tstate = wxPyBeginAllowThreads();
12445 delete arg1;
12446
12447 wxPyEndAllowThreads(__tstate);
12448 if (PyErr_Occurred()) SWIG_fail;
12449 }
12450 resultobj = SWIG_Py_Void();
12451 return resultobj;
12452 fail:
12453 return NULL;
12454 }
12455
12456
12457 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12458 PyObject *resultobj = 0;
12459 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12460 wxString *arg2 = 0 ;
12461 bool result;
12462 void *argp1 = 0 ;
12463 int res1 = 0 ;
12464 bool temp2 = false ;
12465 PyObject * obj0 = 0 ;
12466 PyObject * obj1 = 0 ;
12467 char * kwnames[] = {
12468 (char *) "self",(char *) "s", NULL
12469 };
12470
12471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12473 if (!SWIG_IsOK(res1)) {
12474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12475 }
12476 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12477 {
12478 arg2 = wxString_in_helper(obj1);
12479 if (arg2 == NULL) SWIG_fail;
12480 temp2 = true;
12481 }
12482 {
12483 PyThreadState* __tstate = wxPyBeginAllowThreads();
12484 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 {
12489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12490 }
12491 {
12492 if (temp2)
12493 delete arg2;
12494 }
12495 return resultobj;
12496 fail:
12497 {
12498 if (temp2)
12499 delete arg2;
12500 }
12501 return NULL;
12502 }
12503
12504
12505 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12506 PyObject *resultobj = 0;
12507 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12508 wxString result;
12509 void *argp1 = 0 ;
12510 int res1 = 0 ;
12511 PyObject *swig_obj[1] ;
12512
12513 if (!args) SWIG_fail;
12514 swig_obj[0] = args;
12515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12516 if (!SWIG_IsOK(res1)) {
12517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12518 }
12519 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 {
12527 #if wxUSE_UNICODE
12528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12529 #else
12530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12531 #endif
12532 }
12533 return resultobj;
12534 fail:
12535 return NULL;
12536 }
12537
12538
12539 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12540 PyObject *obj;
12541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12542 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12543 return SWIG_Py_Void();
12544 }
12545
12546 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12547 return SWIG_Python_InitShadowInstance(args);
12548 }
12549
12550 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12551 PyObject *resultobj = 0;
12552 wxFontEncoding arg1 ;
12553 wxNativeEncodingInfo *result = 0 ;
12554 int val1 ;
12555 int ecode1 = 0 ;
12556 PyObject * obj0 = 0 ;
12557 char * kwnames[] = {
12558 (char *) "encoding", NULL
12559 };
12560
12561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12562 ecode1 = SWIG_AsVal_int(obj0, &val1);
12563 if (!SWIG_IsOK(ecode1)) {
12564 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12565 }
12566 arg1 = static_cast< wxFontEncoding >(val1);
12567 {
12568 PyThreadState* __tstate = wxPyBeginAllowThreads();
12569 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12570 wxPyEndAllowThreads(__tstate);
12571 if (PyErr_Occurred()) SWIG_fail;
12572 }
12573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12574 return resultobj;
12575 fail:
12576 return NULL;
12577 }
12578
12579
12580 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12581 PyObject *resultobj = 0;
12582 wxNativeEncodingInfo *arg1 = 0 ;
12583 bool result;
12584 void *argp1 = 0 ;
12585 int res1 = 0 ;
12586 PyObject * obj0 = 0 ;
12587 char * kwnames[] = {
12588 (char *) "info", NULL
12589 };
12590
12591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12592 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12593 if (!SWIG_IsOK(res1)) {
12594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12595 }
12596 if (!argp1) {
12597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12598 }
12599 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 {
12607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12608 }
12609 return resultobj;
12610 fail:
12611 return NULL;
12612 }
12613
12614
12615 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12616 PyObject *resultobj = 0;
12617 wxFontMapper *result = 0 ;
12618
12619 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 result = (wxFontMapper *)new wxFontMapper();
12623 wxPyEndAllowThreads(__tstate);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 }
12626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12627 return resultobj;
12628 fail:
12629 return NULL;
12630 }
12631
12632
12633 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12634 PyObject *resultobj = 0;
12635 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12636 void *argp1 = 0 ;
12637 int res1 = 0 ;
12638 PyObject *swig_obj[1] ;
12639
12640 if (!args) SWIG_fail;
12641 swig_obj[0] = args;
12642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12643 if (!SWIG_IsOK(res1)) {
12644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12645 }
12646 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12647 {
12648 PyThreadState* __tstate = wxPyBeginAllowThreads();
12649 delete arg1;
12650
12651 wxPyEndAllowThreads(__tstate);
12652 if (PyErr_Occurred()) SWIG_fail;
12653 }
12654 resultobj = SWIG_Py_Void();
12655 return resultobj;
12656 fail:
12657 return NULL;
12658 }
12659
12660
12661 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12662 PyObject *resultobj = 0;
12663 wxFontMapper *result = 0 ;
12664
12665 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12666 {
12667 PyThreadState* __tstate = wxPyBeginAllowThreads();
12668 result = (wxFontMapper *)wxFontMapper::Get();
12669 wxPyEndAllowThreads(__tstate);
12670 if (PyErr_Occurred()) SWIG_fail;
12671 }
12672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12673 return resultobj;
12674 fail:
12675 return NULL;
12676 }
12677
12678
12679 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12680 PyObject *resultobj = 0;
12681 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12682 wxFontMapper *result = 0 ;
12683 void *argp1 = 0 ;
12684 int res1 = 0 ;
12685 PyObject * obj0 = 0 ;
12686 char * kwnames[] = {
12687 (char *) "mapper", NULL
12688 };
12689
12690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12692 if (!SWIG_IsOK(res1)) {
12693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12694 }
12695 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12696 {
12697 PyThreadState* __tstate = wxPyBeginAllowThreads();
12698 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12699 wxPyEndAllowThreads(__tstate);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12703 return resultobj;
12704 fail:
12705 return NULL;
12706 }
12707
12708
12709 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12710 PyObject *resultobj = 0;
12711 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12712 wxString *arg2 = 0 ;
12713 bool arg3 = (bool) true ;
12714 wxFontEncoding result;
12715 void *argp1 = 0 ;
12716 int res1 = 0 ;
12717 bool temp2 = false ;
12718 bool val3 ;
12719 int ecode3 = 0 ;
12720 PyObject * obj0 = 0 ;
12721 PyObject * obj1 = 0 ;
12722 PyObject * obj2 = 0 ;
12723 char * kwnames[] = {
12724 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12725 };
12726
12727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12729 if (!SWIG_IsOK(res1)) {
12730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12731 }
12732 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12733 {
12734 arg2 = wxString_in_helper(obj1);
12735 if (arg2 == NULL) SWIG_fail;
12736 temp2 = true;
12737 }
12738 if (obj2) {
12739 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12740 if (!SWIG_IsOK(ecode3)) {
12741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12742 }
12743 arg3 = static_cast< bool >(val3);
12744 }
12745 {
12746 PyThreadState* __tstate = wxPyBeginAllowThreads();
12747 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12748 wxPyEndAllowThreads(__tstate);
12749 if (PyErr_Occurred()) SWIG_fail;
12750 }
12751 resultobj = SWIG_From_int(static_cast< int >(result));
12752 {
12753 if (temp2)
12754 delete arg2;
12755 }
12756 return resultobj;
12757 fail:
12758 {
12759 if (temp2)
12760 delete arg2;
12761 }
12762 return NULL;
12763 }
12764
12765
12766 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12767 PyObject *resultobj = 0;
12768 size_t result;
12769
12770 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12771 {
12772 PyThreadState* __tstate = wxPyBeginAllowThreads();
12773 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12778 return resultobj;
12779 fail:
12780 return NULL;
12781 }
12782
12783
12784 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj = 0;
12786 size_t arg1 ;
12787 wxFontEncoding result;
12788 size_t val1 ;
12789 int ecode1 = 0 ;
12790 PyObject * obj0 = 0 ;
12791 char * kwnames[] = {
12792 (char *) "n", NULL
12793 };
12794
12795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12796 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12797 if (!SWIG_IsOK(ecode1)) {
12798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12799 }
12800 arg1 = static_cast< size_t >(val1);
12801 {
12802 PyThreadState* __tstate = wxPyBeginAllowThreads();
12803 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12804 wxPyEndAllowThreads(__tstate);
12805 if (PyErr_Occurred()) SWIG_fail;
12806 }
12807 resultobj = SWIG_From_int(static_cast< int >(result));
12808 return resultobj;
12809 fail:
12810 return NULL;
12811 }
12812
12813
12814 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12815 PyObject *resultobj = 0;
12816 wxFontEncoding arg1 ;
12817 wxString result;
12818 int val1 ;
12819 int ecode1 = 0 ;
12820 PyObject * obj0 = 0 ;
12821 char * kwnames[] = {
12822 (char *) "encoding", NULL
12823 };
12824
12825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
12826 ecode1 = SWIG_AsVal_int(obj0, &val1);
12827 if (!SWIG_IsOK(ecode1)) {
12828 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12829 }
12830 arg1 = static_cast< wxFontEncoding >(val1);
12831 {
12832 PyThreadState* __tstate = wxPyBeginAllowThreads();
12833 result = wxFontMapper::GetEncodingName(arg1);
12834 wxPyEndAllowThreads(__tstate);
12835 if (PyErr_Occurred()) SWIG_fail;
12836 }
12837 {
12838 #if wxUSE_UNICODE
12839 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12840 #else
12841 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12842 #endif
12843 }
12844 return resultobj;
12845 fail:
12846 return NULL;
12847 }
12848
12849
12850 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12851 PyObject *resultobj = 0;
12852 wxFontEncoding arg1 ;
12853 wxString result;
12854 int val1 ;
12855 int ecode1 = 0 ;
12856 PyObject * obj0 = 0 ;
12857 char * kwnames[] = {
12858 (char *) "encoding", NULL
12859 };
12860
12861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
12862 ecode1 = SWIG_AsVal_int(obj0, &val1);
12863 if (!SWIG_IsOK(ecode1)) {
12864 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12865 }
12866 arg1 = static_cast< wxFontEncoding >(val1);
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 result = wxFontMapper::GetEncodingDescription(arg1);
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 {
12874 #if wxUSE_UNICODE
12875 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12876 #else
12877 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12878 #endif
12879 }
12880 return resultobj;
12881 fail:
12882 return NULL;
12883 }
12884
12885
12886 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12887 PyObject *resultobj = 0;
12888 wxString *arg1 = 0 ;
12889 wxFontEncoding result;
12890 bool temp1 = false ;
12891 PyObject * obj0 = 0 ;
12892 char * kwnames[] = {
12893 (char *) "name", NULL
12894 };
12895
12896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
12897 {
12898 arg1 = wxString_in_helper(obj0);
12899 if (arg1 == NULL) SWIG_fail;
12900 temp1 = true;
12901 }
12902 {
12903 PyThreadState* __tstate = wxPyBeginAllowThreads();
12904 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
12905 wxPyEndAllowThreads(__tstate);
12906 if (PyErr_Occurred()) SWIG_fail;
12907 }
12908 resultobj = SWIG_From_int(static_cast< int >(result));
12909 {
12910 if (temp1)
12911 delete arg1;
12912 }
12913 return resultobj;
12914 fail:
12915 {
12916 if (temp1)
12917 delete arg1;
12918 }
12919 return NULL;
12920 }
12921
12922
12923 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12924 PyObject *resultobj = 0;
12925 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12926 wxString *arg2 = 0 ;
12927 void *argp1 = 0 ;
12928 int res1 = 0 ;
12929 bool temp2 = false ;
12930 PyObject * obj0 = 0 ;
12931 PyObject * obj1 = 0 ;
12932 char * kwnames[] = {
12933 (char *) "self",(char *) "prefix", NULL
12934 };
12935
12936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
12937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12938 if (!SWIG_IsOK(res1)) {
12939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12940 }
12941 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12942 {
12943 arg2 = wxString_in_helper(obj1);
12944 if (arg2 == NULL) SWIG_fail;
12945 temp2 = true;
12946 }
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 (arg1)->SetConfigPath((wxString const &)*arg2);
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 resultobj = SWIG_Py_Void();
12954 {
12955 if (temp2)
12956 delete arg2;
12957 }
12958 return resultobj;
12959 fail:
12960 {
12961 if (temp2)
12962 delete arg2;
12963 }
12964 return NULL;
12965 }
12966
12967
12968 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12969 PyObject *resultobj = 0;
12970 wxString result;
12971
12972 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = wxFontMapper::GetDefaultConfigPath();
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 {
12980 #if wxUSE_UNICODE
12981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12982 #else
12983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12984 #endif
12985 }
12986 return resultobj;
12987 fail:
12988 return NULL;
12989 }
12990
12991
12992 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12993 PyObject *resultobj = 0;
12994 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12995 wxFontEncoding arg2 ;
12996 wxString const &arg3_defvalue = wxPyEmptyString ;
12997 wxString *arg3 = (wxString *) &arg3_defvalue ;
12998 bool arg4 = (bool) true ;
12999 PyObject *result = 0 ;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 int val2 ;
13003 int ecode2 = 0 ;
13004 bool temp3 = false ;
13005 bool val4 ;
13006 int ecode4 = 0 ;
13007 PyObject * obj0 = 0 ;
13008 PyObject * obj1 = 0 ;
13009 PyObject * obj2 = 0 ;
13010 PyObject * obj3 = 0 ;
13011 char * kwnames[] = {
13012 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13013 };
13014
13015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13017 if (!SWIG_IsOK(res1)) {
13018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13019 }
13020 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13021 ecode2 = SWIG_AsVal_int(obj1, &val2);
13022 if (!SWIG_IsOK(ecode2)) {
13023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13024 }
13025 arg2 = static_cast< wxFontEncoding >(val2);
13026 if (obj2) {
13027 {
13028 arg3 = wxString_in_helper(obj2);
13029 if (arg3 == NULL) SWIG_fail;
13030 temp3 = true;
13031 }
13032 }
13033 if (obj3) {
13034 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13035 if (!SWIG_IsOK(ecode4)) {
13036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13037 }
13038 arg4 = static_cast< bool >(val4);
13039 }
13040 {
13041 PyThreadState* __tstate = wxPyBeginAllowThreads();
13042 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 resultobj = result;
13047 {
13048 if (temp3)
13049 delete arg3;
13050 }
13051 return resultobj;
13052 fail:
13053 {
13054 if (temp3)
13055 delete arg3;
13056 }
13057 return NULL;
13058 }
13059
13060
13061 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13062 PyObject *resultobj = 0;
13063 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13064 wxFontEncoding arg2 ;
13065 wxString const &arg3_defvalue = wxPyEmptyString ;
13066 wxString *arg3 = (wxString *) &arg3_defvalue ;
13067 bool result;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 int val2 ;
13071 int ecode2 = 0 ;
13072 bool temp3 = false ;
13073 PyObject * obj0 = 0 ;
13074 PyObject * obj1 = 0 ;
13075 PyObject * obj2 = 0 ;
13076 char * kwnames[] = {
13077 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13078 };
13079
13080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13082 if (!SWIG_IsOK(res1)) {
13083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13084 }
13085 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13086 ecode2 = SWIG_AsVal_int(obj1, &val2);
13087 if (!SWIG_IsOK(ecode2)) {
13088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13089 }
13090 arg2 = static_cast< wxFontEncoding >(val2);
13091 if (obj2) {
13092 {
13093 arg3 = wxString_in_helper(obj2);
13094 if (arg3 == NULL) SWIG_fail;
13095 temp3 = true;
13096 }
13097 }
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 {
13105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13106 }
13107 {
13108 if (temp3)
13109 delete arg3;
13110 }
13111 return resultobj;
13112 fail:
13113 {
13114 if (temp3)
13115 delete arg3;
13116 }
13117 return NULL;
13118 }
13119
13120
13121 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13122 PyObject *resultobj = 0;
13123 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13124 wxWindow *arg2 = (wxWindow *) 0 ;
13125 void *argp1 = 0 ;
13126 int res1 = 0 ;
13127 void *argp2 = 0 ;
13128 int res2 = 0 ;
13129 PyObject * obj0 = 0 ;
13130 PyObject * obj1 = 0 ;
13131 char * kwnames[] = {
13132 (char *) "self",(char *) "parent", NULL
13133 };
13134
13135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13137 if (!SWIG_IsOK(res1)) {
13138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13139 }
13140 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13141 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13142 if (!SWIG_IsOK(res2)) {
13143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13144 }
13145 arg2 = reinterpret_cast< wxWindow * >(argp2);
13146 {
13147 PyThreadState* __tstate = wxPyBeginAllowThreads();
13148 (arg1)->SetDialogParent(arg2);
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 resultobj = SWIG_Py_Void();
13153 return resultobj;
13154 fail:
13155 return NULL;
13156 }
13157
13158
13159 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13160 PyObject *resultobj = 0;
13161 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13162 wxString *arg2 = 0 ;
13163 void *argp1 = 0 ;
13164 int res1 = 0 ;
13165 bool temp2 = false ;
13166 PyObject * obj0 = 0 ;
13167 PyObject * obj1 = 0 ;
13168 char * kwnames[] = {
13169 (char *) "self",(char *) "title", NULL
13170 };
13171
13172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13174 if (!SWIG_IsOK(res1)) {
13175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13176 }
13177 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13178 {
13179 arg2 = wxString_in_helper(obj1);
13180 if (arg2 == NULL) SWIG_fail;
13181 temp2 = true;
13182 }
13183 {
13184 PyThreadState* __tstate = wxPyBeginAllowThreads();
13185 (arg1)->SetDialogTitle((wxString const &)*arg2);
13186 wxPyEndAllowThreads(__tstate);
13187 if (PyErr_Occurred()) SWIG_fail;
13188 }
13189 resultobj = SWIG_Py_Void();
13190 {
13191 if (temp2)
13192 delete arg2;
13193 }
13194 return resultobj;
13195 fail:
13196 {
13197 if (temp2)
13198 delete arg2;
13199 }
13200 return NULL;
13201 }
13202
13203
13204 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13205 PyObject *obj;
13206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13207 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13208 return SWIG_Py_Void();
13209 }
13210
13211 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13212 return SWIG_Python_InitShadowInstance(args);
13213 }
13214
13215 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13216 PyObject *resultobj = 0;
13217 int arg1 ;
13218 int arg2 ;
13219 int arg3 ;
13220 int arg4 ;
13221 bool arg5 = (bool) false ;
13222 wxString const &arg6_defvalue = wxPyEmptyString ;
13223 wxString *arg6 = (wxString *) &arg6_defvalue ;
13224 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13225 wxFont *result = 0 ;
13226 int val1 ;
13227 int ecode1 = 0 ;
13228 int val2 ;
13229 int ecode2 = 0 ;
13230 int val3 ;
13231 int ecode3 = 0 ;
13232 int val4 ;
13233 int ecode4 = 0 ;
13234 bool val5 ;
13235 int ecode5 = 0 ;
13236 bool temp6 = false ;
13237 int val7 ;
13238 int ecode7 = 0 ;
13239 PyObject * obj0 = 0 ;
13240 PyObject * obj1 = 0 ;
13241 PyObject * obj2 = 0 ;
13242 PyObject * obj3 = 0 ;
13243 PyObject * obj4 = 0 ;
13244 PyObject * obj5 = 0 ;
13245 PyObject * obj6 = 0 ;
13246 char * kwnames[] = {
13247 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13248 };
13249
13250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13251 ecode1 = SWIG_AsVal_int(obj0, &val1);
13252 if (!SWIG_IsOK(ecode1)) {
13253 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13254 }
13255 arg1 = static_cast< int >(val1);
13256 ecode2 = SWIG_AsVal_int(obj1, &val2);
13257 if (!SWIG_IsOK(ecode2)) {
13258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13259 }
13260 arg2 = static_cast< int >(val2);
13261 ecode3 = SWIG_AsVal_int(obj2, &val3);
13262 if (!SWIG_IsOK(ecode3)) {
13263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13264 }
13265 arg3 = static_cast< int >(val3);
13266 ecode4 = SWIG_AsVal_int(obj3, &val4);
13267 if (!SWIG_IsOK(ecode4)) {
13268 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13269 }
13270 arg4 = static_cast< int >(val4);
13271 if (obj4) {
13272 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13273 if (!SWIG_IsOK(ecode5)) {
13274 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13275 }
13276 arg5 = static_cast< bool >(val5);
13277 }
13278 if (obj5) {
13279 {
13280 arg6 = wxString_in_helper(obj5);
13281 if (arg6 == NULL) SWIG_fail;
13282 temp6 = true;
13283 }
13284 }
13285 if (obj6) {
13286 ecode7 = SWIG_AsVal_int(obj6, &val7);
13287 if (!SWIG_IsOK(ecode7)) {
13288 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13289 }
13290 arg7 = static_cast< wxFontEncoding >(val7);
13291 }
13292 {
13293 if (!wxPyCheckForApp()) SWIG_fail;
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13300 {
13301 if (temp6)
13302 delete arg6;
13303 }
13304 return resultobj;
13305 fail:
13306 {
13307 if (temp6)
13308 delete arg6;
13309 }
13310 return NULL;
13311 }
13312
13313
13314 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13315 PyObject *resultobj = 0;
13316 wxFont *arg1 = (wxFont *) 0 ;
13317 void *argp1 = 0 ;
13318 int res1 = 0 ;
13319 PyObject *swig_obj[1] ;
13320
13321 if (!args) SWIG_fail;
13322 swig_obj[0] = args;
13323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13324 if (!SWIG_IsOK(res1)) {
13325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13326 }
13327 arg1 = reinterpret_cast< wxFont * >(argp1);
13328 {
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 delete arg1;
13331
13332 wxPyEndAllowThreads(__tstate);
13333 if (PyErr_Occurred()) SWIG_fail;
13334 }
13335 resultobj = SWIG_Py_Void();
13336 return resultobj;
13337 fail:
13338 return NULL;
13339 }
13340
13341
13342 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13343 PyObject *resultobj = 0;
13344 wxNativeFontInfo *arg1 = 0 ;
13345 wxFont *result = 0 ;
13346 void *argp1 = 0 ;
13347 int res1 = 0 ;
13348 PyObject * obj0 = 0 ;
13349 char * kwnames[] = {
13350 (char *) "info", NULL
13351 };
13352
13353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13354 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13355 if (!SWIG_IsOK(res1)) {
13356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13357 }
13358 if (!argp1) {
13359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13360 }
13361 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13362 {
13363 if (!wxPyCheckForApp()) SWIG_fail;
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13366 wxPyEndAllowThreads(__tstate);
13367 if (PyErr_Occurred()) SWIG_fail;
13368 }
13369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13370 return resultobj;
13371 fail:
13372 return NULL;
13373 }
13374
13375
13376 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13377 PyObject *resultobj = 0;
13378 wxString *arg1 = 0 ;
13379 wxFont *result = 0 ;
13380 bool temp1 = false ;
13381 PyObject * obj0 = 0 ;
13382 char * kwnames[] = {
13383 (char *) "info", NULL
13384 };
13385
13386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13387 {
13388 arg1 = wxString_in_helper(obj0);
13389 if (arg1 == NULL) SWIG_fail;
13390 temp1 = true;
13391 }
13392 {
13393 if (!wxPyCheckForApp()) SWIG_fail;
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13400 {
13401 if (temp1)
13402 delete arg1;
13403 }
13404 return resultobj;
13405 fail:
13406 {
13407 if (temp1)
13408 delete arg1;
13409 }
13410 return NULL;
13411 }
13412
13413
13414 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13415 PyObject *resultobj = 0;
13416 int arg1 ;
13417 wxFontFamily arg2 ;
13418 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13419 wxString const &arg4_defvalue = wxPyEmptyString ;
13420 wxString *arg4 = (wxString *) &arg4_defvalue ;
13421 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13422 wxFont *result = 0 ;
13423 int val1 ;
13424 int ecode1 = 0 ;
13425 int val2 ;
13426 int ecode2 = 0 ;
13427 int val3 ;
13428 int ecode3 = 0 ;
13429 bool temp4 = false ;
13430 int val5 ;
13431 int ecode5 = 0 ;
13432 PyObject * obj0 = 0 ;
13433 PyObject * obj1 = 0 ;
13434 PyObject * obj2 = 0 ;
13435 PyObject * obj3 = 0 ;
13436 PyObject * obj4 = 0 ;
13437 char * kwnames[] = {
13438 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13439 };
13440
13441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13442 ecode1 = SWIG_AsVal_int(obj0, &val1);
13443 if (!SWIG_IsOK(ecode1)) {
13444 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13445 }
13446 arg1 = static_cast< int >(val1);
13447 ecode2 = SWIG_AsVal_int(obj1, &val2);
13448 if (!SWIG_IsOK(ecode2)) {
13449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13450 }
13451 arg2 = static_cast< wxFontFamily >(val2);
13452 if (obj2) {
13453 ecode3 = SWIG_AsVal_int(obj2, &val3);
13454 if (!SWIG_IsOK(ecode3)) {
13455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13456 }
13457 arg3 = static_cast< int >(val3);
13458 }
13459 if (obj3) {
13460 {
13461 arg4 = wxString_in_helper(obj3);
13462 if (arg4 == NULL) SWIG_fail;
13463 temp4 = true;
13464 }
13465 }
13466 if (obj4) {
13467 ecode5 = SWIG_AsVal_int(obj4, &val5);
13468 if (!SWIG_IsOK(ecode5)) {
13469 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13470 }
13471 arg5 = static_cast< wxFontEncoding >(val5);
13472 }
13473 {
13474 if (!wxPyCheckForApp()) SWIG_fail;
13475 PyThreadState* __tstate = wxPyBeginAllowThreads();
13476 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13481 {
13482 if (temp4)
13483 delete arg4;
13484 }
13485 return resultobj;
13486 fail:
13487 {
13488 if (temp4)
13489 delete arg4;
13490 }
13491 return NULL;
13492 }
13493
13494
13495 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13496 PyObject *resultobj = 0;
13497 wxSize *arg1 = 0 ;
13498 int arg2 ;
13499 int arg3 ;
13500 int arg4 ;
13501 bool arg5 = (bool) false ;
13502 wxString const &arg6_defvalue = wxEmptyString ;
13503 wxString *arg6 = (wxString *) &arg6_defvalue ;
13504 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13505 wxFont *result = 0 ;
13506 wxSize temp1 ;
13507 int val2 ;
13508 int ecode2 = 0 ;
13509 int val3 ;
13510 int ecode3 = 0 ;
13511 int val4 ;
13512 int ecode4 = 0 ;
13513 bool val5 ;
13514 int ecode5 = 0 ;
13515 bool temp6 = false ;
13516 int val7 ;
13517 int ecode7 = 0 ;
13518 PyObject * obj0 = 0 ;
13519 PyObject * obj1 = 0 ;
13520 PyObject * obj2 = 0 ;
13521 PyObject * obj3 = 0 ;
13522 PyObject * obj4 = 0 ;
13523 PyObject * obj5 = 0 ;
13524 PyObject * obj6 = 0 ;
13525 char * kwnames[] = {
13526 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13527 };
13528
13529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13530 {
13531 arg1 = &temp1;
13532 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13533 }
13534 ecode2 = SWIG_AsVal_int(obj1, &val2);
13535 if (!SWIG_IsOK(ecode2)) {
13536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13537 }
13538 arg2 = static_cast< int >(val2);
13539 ecode3 = SWIG_AsVal_int(obj2, &val3);
13540 if (!SWIG_IsOK(ecode3)) {
13541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13542 }
13543 arg3 = static_cast< int >(val3);
13544 ecode4 = SWIG_AsVal_int(obj3, &val4);
13545 if (!SWIG_IsOK(ecode4)) {
13546 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13547 }
13548 arg4 = static_cast< int >(val4);
13549 if (obj4) {
13550 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13551 if (!SWIG_IsOK(ecode5)) {
13552 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13553 }
13554 arg5 = static_cast< bool >(val5);
13555 }
13556 if (obj5) {
13557 {
13558 arg6 = wxString_in_helper(obj5);
13559 if (arg6 == NULL) SWIG_fail;
13560 temp6 = true;
13561 }
13562 }
13563 if (obj6) {
13564 ecode7 = SWIG_AsVal_int(obj6, &val7);
13565 if (!SWIG_IsOK(ecode7)) {
13566 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13567 }
13568 arg7 = static_cast< wxFontEncoding >(val7);
13569 }
13570 {
13571 if (!wxPyCheckForApp()) SWIG_fail;
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13578 {
13579 if (temp6)
13580 delete arg6;
13581 }
13582 return resultobj;
13583 fail:
13584 {
13585 if (temp6)
13586 delete arg6;
13587 }
13588 return NULL;
13589 }
13590
13591
13592 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj = 0;
13594 wxSize *arg1 = 0 ;
13595 wxFontFamily arg2 ;
13596 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13597 wxString const &arg4_defvalue = wxEmptyString ;
13598 wxString *arg4 = (wxString *) &arg4_defvalue ;
13599 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13600 wxFont *result = 0 ;
13601 wxSize temp1 ;
13602 int val2 ;
13603 int ecode2 = 0 ;
13604 int val3 ;
13605 int ecode3 = 0 ;
13606 bool temp4 = false ;
13607 int val5 ;
13608 int ecode5 = 0 ;
13609 PyObject * obj0 = 0 ;
13610 PyObject * obj1 = 0 ;
13611 PyObject * obj2 = 0 ;
13612 PyObject * obj3 = 0 ;
13613 PyObject * obj4 = 0 ;
13614 char * kwnames[] = {
13615 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13616 };
13617
13618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13619 {
13620 arg1 = &temp1;
13621 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13622 }
13623 ecode2 = SWIG_AsVal_int(obj1, &val2);
13624 if (!SWIG_IsOK(ecode2)) {
13625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13626 }
13627 arg2 = static_cast< wxFontFamily >(val2);
13628 if (obj2) {
13629 ecode3 = SWIG_AsVal_int(obj2, &val3);
13630 if (!SWIG_IsOK(ecode3)) {
13631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13632 }
13633 arg3 = static_cast< int >(val3);
13634 }
13635 if (obj3) {
13636 {
13637 arg4 = wxString_in_helper(obj3);
13638 if (arg4 == NULL) SWIG_fail;
13639 temp4 = true;
13640 }
13641 }
13642 if (obj4) {
13643 ecode5 = SWIG_AsVal_int(obj4, &val5);
13644 if (!SWIG_IsOK(ecode5)) {
13645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13646 }
13647 arg5 = static_cast< wxFontEncoding >(val5);
13648 }
13649 {
13650 if (!wxPyCheckForApp()) SWIG_fail;
13651 PyThreadState* __tstate = wxPyBeginAllowThreads();
13652 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13653 wxPyEndAllowThreads(__tstate);
13654 if (PyErr_Occurred()) SWIG_fail;
13655 }
13656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13657 {
13658 if (temp4)
13659 delete arg4;
13660 }
13661 return resultobj;
13662 fail:
13663 {
13664 if (temp4)
13665 delete arg4;
13666 }
13667 return NULL;
13668 }
13669
13670
13671 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13672 PyObject *resultobj = 0;
13673 wxFont *arg1 = (wxFont *) 0 ;
13674 bool result;
13675 void *argp1 = 0 ;
13676 int res1 = 0 ;
13677 PyObject *swig_obj[1] ;
13678
13679 if (!args) SWIG_fail;
13680 swig_obj[0] = args;
13681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13682 if (!SWIG_IsOK(res1)) {
13683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13684 }
13685 arg1 = reinterpret_cast< wxFont * >(argp1);
13686 {
13687 PyThreadState* __tstate = wxPyBeginAllowThreads();
13688 result = (bool)((wxFont const *)arg1)->Ok();
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 {
13693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13694 }
13695 return resultobj;
13696 fail:
13697 return NULL;
13698 }
13699
13700
13701 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13702 PyObject *resultobj = 0;
13703 wxFont *arg1 = (wxFont *) 0 ;
13704 wxFont *arg2 = (wxFont *) 0 ;
13705 bool result;
13706 void *argp1 = 0 ;
13707 int res1 = 0 ;
13708 void *argp2 = 0 ;
13709 int res2 = 0 ;
13710 PyObject * obj0 = 0 ;
13711 PyObject * obj1 = 0 ;
13712 char * kwnames[] = {
13713 (char *) "self",(char *) "other", NULL
13714 };
13715
13716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13718 if (!SWIG_IsOK(res1)) {
13719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13720 }
13721 arg1 = reinterpret_cast< wxFont * >(argp1);
13722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13723 if (!SWIG_IsOK(res2)) {
13724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13725 }
13726 arg2 = reinterpret_cast< wxFont * >(argp2);
13727 {
13728 PyThreadState* __tstate = wxPyBeginAllowThreads();
13729 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 {
13734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13735 }
13736 return resultobj;
13737 fail:
13738 return NULL;
13739 }
13740
13741
13742 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13743 PyObject *resultobj = 0;
13744 wxFont *arg1 = (wxFont *) 0 ;
13745 wxFont *arg2 = (wxFont *) 0 ;
13746 bool result;
13747 void *argp1 = 0 ;
13748 int res1 = 0 ;
13749 void *argp2 = 0 ;
13750 int res2 = 0 ;
13751 PyObject * obj0 = 0 ;
13752 PyObject * obj1 = 0 ;
13753 char * kwnames[] = {
13754 (char *) "self",(char *) "other", NULL
13755 };
13756
13757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13759 if (!SWIG_IsOK(res1)) {
13760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13761 }
13762 arg1 = reinterpret_cast< wxFont * >(argp1);
13763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13764 if (!SWIG_IsOK(res2)) {
13765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13766 }
13767 arg2 = reinterpret_cast< wxFont * >(argp2);
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 {
13775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13776 }
13777 return resultobj;
13778 fail:
13779 return NULL;
13780 }
13781
13782
13783 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13784 PyObject *resultobj = 0;
13785 wxFont *arg1 = (wxFont *) 0 ;
13786 int result;
13787 void *argp1 = 0 ;
13788 int res1 = 0 ;
13789 PyObject *swig_obj[1] ;
13790
13791 if (!args) SWIG_fail;
13792 swig_obj[0] = args;
13793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13794 if (!SWIG_IsOK(res1)) {
13795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13796 }
13797 arg1 = reinterpret_cast< wxFont * >(argp1);
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 result = (int)((wxFont const *)arg1)->GetPointSize();
13801 wxPyEndAllowThreads(__tstate);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 }
13804 resultobj = SWIG_From_int(static_cast< int >(result));
13805 return resultobj;
13806 fail:
13807 return NULL;
13808 }
13809
13810
13811 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13812 PyObject *resultobj = 0;
13813 wxFont *arg1 = (wxFont *) 0 ;
13814 wxSize result;
13815 void *argp1 = 0 ;
13816 int res1 = 0 ;
13817 PyObject *swig_obj[1] ;
13818
13819 if (!args) SWIG_fail;
13820 swig_obj[0] = args;
13821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13822 if (!SWIG_IsOK(res1)) {
13823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13824 }
13825 arg1 = reinterpret_cast< wxFont * >(argp1);
13826 {
13827 PyThreadState* __tstate = wxPyBeginAllowThreads();
13828 result = ((wxFont const *)arg1)->GetPixelSize();
13829 wxPyEndAllowThreads(__tstate);
13830 if (PyErr_Occurred()) SWIG_fail;
13831 }
13832 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
13833 return resultobj;
13834 fail:
13835 return NULL;
13836 }
13837
13838
13839 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13840 PyObject *resultobj = 0;
13841 wxFont *arg1 = (wxFont *) 0 ;
13842 bool result;
13843 void *argp1 = 0 ;
13844 int res1 = 0 ;
13845 PyObject *swig_obj[1] ;
13846
13847 if (!args) SWIG_fail;
13848 swig_obj[0] = args;
13849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13850 if (!SWIG_IsOK(res1)) {
13851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
13852 }
13853 arg1 = reinterpret_cast< wxFont * >(argp1);
13854 {
13855 PyThreadState* __tstate = wxPyBeginAllowThreads();
13856 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
13857 wxPyEndAllowThreads(__tstate);
13858 if (PyErr_Occurred()) SWIG_fail;
13859 }
13860 {
13861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13862 }
13863 return resultobj;
13864 fail:
13865 return NULL;
13866 }
13867
13868
13869 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13870 PyObject *resultobj = 0;
13871 wxFont *arg1 = (wxFont *) 0 ;
13872 int result;
13873 void *argp1 = 0 ;
13874 int res1 = 0 ;
13875 PyObject *swig_obj[1] ;
13876
13877 if (!args) SWIG_fail;
13878 swig_obj[0] = args;
13879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13880 if (!SWIG_IsOK(res1)) {
13881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
13882 }
13883 arg1 = reinterpret_cast< wxFont * >(argp1);
13884 {
13885 PyThreadState* __tstate = wxPyBeginAllowThreads();
13886 result = (int)((wxFont const *)arg1)->GetFamily();
13887 wxPyEndAllowThreads(__tstate);
13888 if (PyErr_Occurred()) SWIG_fail;
13889 }
13890 resultobj = SWIG_From_int(static_cast< int >(result));
13891 return resultobj;
13892 fail:
13893 return NULL;
13894 }
13895
13896
13897 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13898 PyObject *resultobj = 0;
13899 wxFont *arg1 = (wxFont *) 0 ;
13900 int result;
13901 void *argp1 = 0 ;
13902 int res1 = 0 ;
13903 PyObject *swig_obj[1] ;
13904
13905 if (!args) SWIG_fail;
13906 swig_obj[0] = args;
13907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13908 if (!SWIG_IsOK(res1)) {
13909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
13910 }
13911 arg1 = reinterpret_cast< wxFont * >(argp1);
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = (int)((wxFont const *)arg1)->GetStyle();
13915 wxPyEndAllowThreads(__tstate);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 }
13918 resultobj = SWIG_From_int(static_cast< int >(result));
13919 return resultobj;
13920 fail:
13921 return NULL;
13922 }
13923
13924
13925 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13926 PyObject *resultobj = 0;
13927 wxFont *arg1 = (wxFont *) 0 ;
13928 int result;
13929 void *argp1 = 0 ;
13930 int res1 = 0 ;
13931 PyObject *swig_obj[1] ;
13932
13933 if (!args) SWIG_fail;
13934 swig_obj[0] = args;
13935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13936 if (!SWIG_IsOK(res1)) {
13937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
13938 }
13939 arg1 = reinterpret_cast< wxFont * >(argp1);
13940 {
13941 PyThreadState* __tstate = wxPyBeginAllowThreads();
13942 result = (int)((wxFont const *)arg1)->GetWeight();
13943 wxPyEndAllowThreads(__tstate);
13944 if (PyErr_Occurred()) SWIG_fail;
13945 }
13946 resultobj = SWIG_From_int(static_cast< int >(result));
13947 return resultobj;
13948 fail:
13949 return NULL;
13950 }
13951
13952
13953 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13954 PyObject *resultobj = 0;
13955 wxFont *arg1 = (wxFont *) 0 ;
13956 bool result;
13957 void *argp1 = 0 ;
13958 int res1 = 0 ;
13959 PyObject *swig_obj[1] ;
13960
13961 if (!args) SWIG_fail;
13962 swig_obj[0] = args;
13963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13964 if (!SWIG_IsOK(res1)) {
13965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
13966 }
13967 arg1 = reinterpret_cast< wxFont * >(argp1);
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 result = (bool)((wxFont const *)arg1)->GetUnderlined();
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 {
13975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13976 }
13977 return resultobj;
13978 fail:
13979 return NULL;
13980 }
13981
13982
13983 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13984 PyObject *resultobj = 0;
13985 wxFont *arg1 = (wxFont *) 0 ;
13986 wxString result;
13987 void *argp1 = 0 ;
13988 int res1 = 0 ;
13989 PyObject *swig_obj[1] ;
13990
13991 if (!args) SWIG_fail;
13992 swig_obj[0] = args;
13993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13994 if (!SWIG_IsOK(res1)) {
13995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
13996 }
13997 arg1 = reinterpret_cast< wxFont * >(argp1);
13998 {
13999 PyThreadState* __tstate = wxPyBeginAllowThreads();
14000 result = ((wxFont const *)arg1)->GetFaceName();
14001 wxPyEndAllowThreads(__tstate);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 {
14005 #if wxUSE_UNICODE
14006 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14007 #else
14008 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14009 #endif
14010 }
14011 return resultobj;
14012 fail:
14013 return NULL;
14014 }
14015
14016
14017 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14018 PyObject *resultobj = 0;
14019 wxFont *arg1 = (wxFont *) 0 ;
14020 wxFontEncoding result;
14021 void *argp1 = 0 ;
14022 int res1 = 0 ;
14023 PyObject *swig_obj[1] ;
14024
14025 if (!args) SWIG_fail;
14026 swig_obj[0] = args;
14027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14028 if (!SWIG_IsOK(res1)) {
14029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14030 }
14031 arg1 = reinterpret_cast< wxFont * >(argp1);
14032 {
14033 PyThreadState* __tstate = wxPyBeginAllowThreads();
14034 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14035 wxPyEndAllowThreads(__tstate);
14036 if (PyErr_Occurred()) SWIG_fail;
14037 }
14038 resultobj = SWIG_From_int(static_cast< int >(result));
14039 return resultobj;
14040 fail:
14041 return NULL;
14042 }
14043
14044
14045 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14046 PyObject *resultobj = 0;
14047 wxFont *arg1 = (wxFont *) 0 ;
14048 wxNativeFontInfo *result = 0 ;
14049 void *argp1 = 0 ;
14050 int res1 = 0 ;
14051 PyObject *swig_obj[1] ;
14052
14053 if (!args) SWIG_fail;
14054 swig_obj[0] = args;
14055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14056 if (!SWIG_IsOK(res1)) {
14057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14058 }
14059 arg1 = reinterpret_cast< wxFont * >(argp1);
14060 {
14061 PyThreadState* __tstate = wxPyBeginAllowThreads();
14062 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14063 wxPyEndAllowThreads(__tstate);
14064 if (PyErr_Occurred()) SWIG_fail;
14065 }
14066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14067 return resultobj;
14068 fail:
14069 return NULL;
14070 }
14071
14072
14073 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14074 PyObject *resultobj = 0;
14075 wxFont *arg1 = (wxFont *) 0 ;
14076 bool result;
14077 void *argp1 = 0 ;
14078 int res1 = 0 ;
14079 PyObject *swig_obj[1] ;
14080
14081 if (!args) SWIG_fail;
14082 swig_obj[0] = args;
14083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14084 if (!SWIG_IsOK(res1)) {
14085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14086 }
14087 arg1 = reinterpret_cast< wxFont * >(argp1);
14088 {
14089 PyThreadState* __tstate = wxPyBeginAllowThreads();
14090 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14091 wxPyEndAllowThreads(__tstate);
14092 if (PyErr_Occurred()) SWIG_fail;
14093 }
14094 {
14095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14096 }
14097 return resultobj;
14098 fail:
14099 return NULL;
14100 }
14101
14102
14103 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14104 PyObject *resultobj = 0;
14105 wxFont *arg1 = (wxFont *) 0 ;
14106 wxString result;
14107 void *argp1 = 0 ;
14108 int res1 = 0 ;
14109 PyObject *swig_obj[1] ;
14110
14111 if (!args) SWIG_fail;
14112 swig_obj[0] = args;
14113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14114 if (!SWIG_IsOK(res1)) {
14115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14116 }
14117 arg1 = reinterpret_cast< wxFont * >(argp1);
14118 {
14119 PyThreadState* __tstate = wxPyBeginAllowThreads();
14120 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 {
14125 #if wxUSE_UNICODE
14126 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14127 #else
14128 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14129 #endif
14130 }
14131 return resultobj;
14132 fail:
14133 return NULL;
14134 }
14135
14136
14137 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14138 PyObject *resultobj = 0;
14139 wxFont *arg1 = (wxFont *) 0 ;
14140 wxString result;
14141 void *argp1 = 0 ;
14142 int res1 = 0 ;
14143 PyObject *swig_obj[1] ;
14144
14145 if (!args) SWIG_fail;
14146 swig_obj[0] = args;
14147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14148 if (!SWIG_IsOK(res1)) {
14149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14150 }
14151 arg1 = reinterpret_cast< wxFont * >(argp1);
14152 {
14153 PyThreadState* __tstate = wxPyBeginAllowThreads();
14154 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14155 wxPyEndAllowThreads(__tstate);
14156 if (PyErr_Occurred()) SWIG_fail;
14157 }
14158 {
14159 #if wxUSE_UNICODE
14160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14161 #else
14162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14163 #endif
14164 }
14165 return resultobj;
14166 fail:
14167 return NULL;
14168 }
14169
14170
14171 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14172 PyObject *resultobj = 0;
14173 wxFont *arg1 = (wxFont *) 0 ;
14174 int arg2 ;
14175 void *argp1 = 0 ;
14176 int res1 = 0 ;
14177 int val2 ;
14178 int ecode2 = 0 ;
14179 PyObject * obj0 = 0 ;
14180 PyObject * obj1 = 0 ;
14181 char * kwnames[] = {
14182 (char *) "self",(char *) "pointSize", NULL
14183 };
14184
14185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14187 if (!SWIG_IsOK(res1)) {
14188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14189 }
14190 arg1 = reinterpret_cast< wxFont * >(argp1);
14191 ecode2 = SWIG_AsVal_int(obj1, &val2);
14192 if (!SWIG_IsOK(ecode2)) {
14193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14194 }
14195 arg2 = static_cast< int >(val2);
14196 {
14197 PyThreadState* __tstate = wxPyBeginAllowThreads();
14198 (arg1)->SetPointSize(arg2);
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 resultobj = SWIG_Py_Void();
14203 return resultobj;
14204 fail:
14205 return NULL;
14206 }
14207
14208
14209 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14210 PyObject *resultobj = 0;
14211 wxFont *arg1 = (wxFont *) 0 ;
14212 wxSize *arg2 = 0 ;
14213 void *argp1 = 0 ;
14214 int res1 = 0 ;
14215 wxSize temp2 ;
14216 PyObject * obj0 = 0 ;
14217 PyObject * obj1 = 0 ;
14218 char * kwnames[] = {
14219 (char *) "self",(char *) "pixelSize", NULL
14220 };
14221
14222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14224 if (!SWIG_IsOK(res1)) {
14225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14226 }
14227 arg1 = reinterpret_cast< wxFont * >(argp1);
14228 {
14229 arg2 = &temp2;
14230 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14231 }
14232 {
14233 PyThreadState* __tstate = wxPyBeginAllowThreads();
14234 (arg1)->SetPixelSize((wxSize const &)*arg2);
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 resultobj = SWIG_Py_Void();
14239 return resultobj;
14240 fail:
14241 return NULL;
14242 }
14243
14244
14245 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14246 PyObject *resultobj = 0;
14247 wxFont *arg1 = (wxFont *) 0 ;
14248 int arg2 ;
14249 void *argp1 = 0 ;
14250 int res1 = 0 ;
14251 int val2 ;
14252 int ecode2 = 0 ;
14253 PyObject * obj0 = 0 ;
14254 PyObject * obj1 = 0 ;
14255 char * kwnames[] = {
14256 (char *) "self",(char *) "family", NULL
14257 };
14258
14259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14261 if (!SWIG_IsOK(res1)) {
14262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14263 }
14264 arg1 = reinterpret_cast< wxFont * >(argp1);
14265 ecode2 = SWIG_AsVal_int(obj1, &val2);
14266 if (!SWIG_IsOK(ecode2)) {
14267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14268 }
14269 arg2 = static_cast< int >(val2);
14270 {
14271 PyThreadState* __tstate = wxPyBeginAllowThreads();
14272 (arg1)->SetFamily(arg2);
14273 wxPyEndAllowThreads(__tstate);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 resultobj = SWIG_Py_Void();
14277 return resultobj;
14278 fail:
14279 return NULL;
14280 }
14281
14282
14283 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14284 PyObject *resultobj = 0;
14285 wxFont *arg1 = (wxFont *) 0 ;
14286 int arg2 ;
14287 void *argp1 = 0 ;
14288 int res1 = 0 ;
14289 int val2 ;
14290 int ecode2 = 0 ;
14291 PyObject * obj0 = 0 ;
14292 PyObject * obj1 = 0 ;
14293 char * kwnames[] = {
14294 (char *) "self",(char *) "style", NULL
14295 };
14296
14297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14299 if (!SWIG_IsOK(res1)) {
14300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14301 }
14302 arg1 = reinterpret_cast< wxFont * >(argp1);
14303 ecode2 = SWIG_AsVal_int(obj1, &val2);
14304 if (!SWIG_IsOK(ecode2)) {
14305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14306 }
14307 arg2 = static_cast< int >(val2);
14308 {
14309 PyThreadState* __tstate = wxPyBeginAllowThreads();
14310 (arg1)->SetStyle(arg2);
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 resultobj = SWIG_Py_Void();
14315 return resultobj;
14316 fail:
14317 return NULL;
14318 }
14319
14320
14321 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14322 PyObject *resultobj = 0;
14323 wxFont *arg1 = (wxFont *) 0 ;
14324 int arg2 ;
14325 void *argp1 = 0 ;
14326 int res1 = 0 ;
14327 int val2 ;
14328 int ecode2 = 0 ;
14329 PyObject * obj0 = 0 ;
14330 PyObject * obj1 = 0 ;
14331 char * kwnames[] = {
14332 (char *) "self",(char *) "weight", NULL
14333 };
14334
14335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14337 if (!SWIG_IsOK(res1)) {
14338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14339 }
14340 arg1 = reinterpret_cast< wxFont * >(argp1);
14341 ecode2 = SWIG_AsVal_int(obj1, &val2);
14342 if (!SWIG_IsOK(ecode2)) {
14343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14344 }
14345 arg2 = static_cast< int >(val2);
14346 {
14347 PyThreadState* __tstate = wxPyBeginAllowThreads();
14348 (arg1)->SetWeight(arg2);
14349 wxPyEndAllowThreads(__tstate);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 }
14352 resultobj = SWIG_Py_Void();
14353 return resultobj;
14354 fail:
14355 return NULL;
14356 }
14357
14358
14359 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14360 PyObject *resultobj = 0;
14361 wxFont *arg1 = (wxFont *) 0 ;
14362 wxString *arg2 = 0 ;
14363 bool result;
14364 void *argp1 = 0 ;
14365 int res1 = 0 ;
14366 bool temp2 = false ;
14367 PyObject * obj0 = 0 ;
14368 PyObject * obj1 = 0 ;
14369 char * kwnames[] = {
14370 (char *) "self",(char *) "faceName", NULL
14371 };
14372
14373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14375 if (!SWIG_IsOK(res1)) {
14376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14377 }
14378 arg1 = reinterpret_cast< wxFont * >(argp1);
14379 {
14380 arg2 = wxString_in_helper(obj1);
14381 if (arg2 == NULL) SWIG_fail;
14382 temp2 = true;
14383 }
14384 {
14385 PyThreadState* __tstate = wxPyBeginAllowThreads();
14386 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14387 wxPyEndAllowThreads(__tstate);
14388 if (PyErr_Occurred()) SWIG_fail;
14389 }
14390 {
14391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14392 }
14393 {
14394 if (temp2)
14395 delete arg2;
14396 }
14397 return resultobj;
14398 fail:
14399 {
14400 if (temp2)
14401 delete arg2;
14402 }
14403 return NULL;
14404 }
14405
14406
14407 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14408 PyObject *resultobj = 0;
14409 wxFont *arg1 = (wxFont *) 0 ;
14410 bool arg2 ;
14411 void *argp1 = 0 ;
14412 int res1 = 0 ;
14413 bool val2 ;
14414 int ecode2 = 0 ;
14415 PyObject * obj0 = 0 ;
14416 PyObject * obj1 = 0 ;
14417 char * kwnames[] = {
14418 (char *) "self",(char *) "underlined", NULL
14419 };
14420
14421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14423 if (!SWIG_IsOK(res1)) {
14424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14425 }
14426 arg1 = reinterpret_cast< wxFont * >(argp1);
14427 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14428 if (!SWIG_IsOK(ecode2)) {
14429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14430 }
14431 arg2 = static_cast< bool >(val2);
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 (arg1)->SetUnderlined(arg2);
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_Py_Void();
14439 return resultobj;
14440 fail:
14441 return NULL;
14442 }
14443
14444
14445 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14446 PyObject *resultobj = 0;
14447 wxFont *arg1 = (wxFont *) 0 ;
14448 wxFontEncoding arg2 ;
14449 void *argp1 = 0 ;
14450 int res1 = 0 ;
14451 int val2 ;
14452 int ecode2 = 0 ;
14453 PyObject * obj0 = 0 ;
14454 PyObject * obj1 = 0 ;
14455 char * kwnames[] = {
14456 (char *) "self",(char *) "encoding", NULL
14457 };
14458
14459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14461 if (!SWIG_IsOK(res1)) {
14462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14463 }
14464 arg1 = reinterpret_cast< wxFont * >(argp1);
14465 ecode2 = SWIG_AsVal_int(obj1, &val2);
14466 if (!SWIG_IsOK(ecode2)) {
14467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14468 }
14469 arg2 = static_cast< wxFontEncoding >(val2);
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 (arg1)->SetEncoding(arg2);
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 resultobj = SWIG_Py_Void();
14477 return resultobj;
14478 fail:
14479 return NULL;
14480 }
14481
14482
14483 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14484 PyObject *resultobj = 0;
14485 wxFont *arg1 = (wxFont *) 0 ;
14486 wxNativeFontInfo *arg2 = 0 ;
14487 void *argp1 = 0 ;
14488 int res1 = 0 ;
14489 void *argp2 = 0 ;
14490 int res2 = 0 ;
14491 PyObject * obj0 = 0 ;
14492 PyObject * obj1 = 0 ;
14493 char * kwnames[] = {
14494 (char *) "self",(char *) "info", NULL
14495 };
14496
14497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14499 if (!SWIG_IsOK(res1)) {
14500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14501 }
14502 arg1 = reinterpret_cast< wxFont * >(argp1);
14503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14504 if (!SWIG_IsOK(res2)) {
14505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14506 }
14507 if (!argp2) {
14508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14509 }
14510 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14511 {
14512 PyThreadState* __tstate = wxPyBeginAllowThreads();
14513 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14514 wxPyEndAllowThreads(__tstate);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 resultobj = SWIG_Py_Void();
14518 return resultobj;
14519 fail:
14520 return NULL;
14521 }
14522
14523
14524 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14525 PyObject *resultobj = 0;
14526 wxFont *arg1 = (wxFont *) 0 ;
14527 wxString *arg2 = 0 ;
14528 bool result;
14529 void *argp1 = 0 ;
14530 int res1 = 0 ;
14531 bool temp2 = false ;
14532 PyObject * obj0 = 0 ;
14533 PyObject * obj1 = 0 ;
14534 char * kwnames[] = {
14535 (char *) "self",(char *) "info", NULL
14536 };
14537
14538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14540 if (!SWIG_IsOK(res1)) {
14541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14542 }
14543 arg1 = reinterpret_cast< wxFont * >(argp1);
14544 {
14545 arg2 = wxString_in_helper(obj1);
14546 if (arg2 == NULL) SWIG_fail;
14547 temp2 = true;
14548 }
14549 {
14550 PyThreadState* __tstate = wxPyBeginAllowThreads();
14551 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14552 wxPyEndAllowThreads(__tstate);
14553 if (PyErr_Occurred()) SWIG_fail;
14554 }
14555 {
14556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14557 }
14558 {
14559 if (temp2)
14560 delete arg2;
14561 }
14562 return resultobj;
14563 fail:
14564 {
14565 if (temp2)
14566 delete arg2;
14567 }
14568 return NULL;
14569 }
14570
14571
14572 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14573 PyObject *resultobj = 0;
14574 wxFont *arg1 = (wxFont *) 0 ;
14575 wxString *arg2 = 0 ;
14576 bool result;
14577 void *argp1 = 0 ;
14578 int res1 = 0 ;
14579 bool temp2 = false ;
14580 PyObject * obj0 = 0 ;
14581 PyObject * obj1 = 0 ;
14582 char * kwnames[] = {
14583 (char *) "self",(char *) "info", NULL
14584 };
14585
14586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14588 if (!SWIG_IsOK(res1)) {
14589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14590 }
14591 arg1 = reinterpret_cast< wxFont * >(argp1);
14592 {
14593 arg2 = wxString_in_helper(obj1);
14594 if (arg2 == NULL) SWIG_fail;
14595 temp2 = true;
14596 }
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14600 wxPyEndAllowThreads(__tstate);
14601 if (PyErr_Occurred()) SWIG_fail;
14602 }
14603 {
14604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14605 }
14606 {
14607 if (temp2)
14608 delete arg2;
14609 }
14610 return resultobj;
14611 fail:
14612 {
14613 if (temp2)
14614 delete arg2;
14615 }
14616 return NULL;
14617 }
14618
14619
14620 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14621 PyObject *resultobj = 0;
14622 wxFont *arg1 = (wxFont *) 0 ;
14623 wxString result;
14624 void *argp1 = 0 ;
14625 int res1 = 0 ;
14626 PyObject *swig_obj[1] ;
14627
14628 if (!args) SWIG_fail;
14629 swig_obj[0] = args;
14630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14631 if (!SWIG_IsOK(res1)) {
14632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14633 }
14634 arg1 = reinterpret_cast< wxFont * >(argp1);
14635 {
14636 PyThreadState* __tstate = wxPyBeginAllowThreads();
14637 result = ((wxFont const *)arg1)->GetFamilyString();
14638 wxPyEndAllowThreads(__tstate);
14639 if (PyErr_Occurred()) SWIG_fail;
14640 }
14641 {
14642 #if wxUSE_UNICODE
14643 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14644 #else
14645 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14646 #endif
14647 }
14648 return resultobj;
14649 fail:
14650 return NULL;
14651 }
14652
14653
14654 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14655 PyObject *resultobj = 0;
14656 wxFont *arg1 = (wxFont *) 0 ;
14657 wxString result;
14658 void *argp1 = 0 ;
14659 int res1 = 0 ;
14660 PyObject *swig_obj[1] ;
14661
14662 if (!args) SWIG_fail;
14663 swig_obj[0] = args;
14664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14665 if (!SWIG_IsOK(res1)) {
14666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14667 }
14668 arg1 = reinterpret_cast< wxFont * >(argp1);
14669 {
14670 PyThreadState* __tstate = wxPyBeginAllowThreads();
14671 result = ((wxFont const *)arg1)->GetStyleString();
14672 wxPyEndAllowThreads(__tstate);
14673 if (PyErr_Occurred()) SWIG_fail;
14674 }
14675 {
14676 #if wxUSE_UNICODE
14677 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14678 #else
14679 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14680 #endif
14681 }
14682 return resultobj;
14683 fail:
14684 return NULL;
14685 }
14686
14687
14688 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14689 PyObject *resultobj = 0;
14690 wxFont *arg1 = (wxFont *) 0 ;
14691 wxString result;
14692 void *argp1 = 0 ;
14693 int res1 = 0 ;
14694 PyObject *swig_obj[1] ;
14695
14696 if (!args) SWIG_fail;
14697 swig_obj[0] = args;
14698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14699 if (!SWIG_IsOK(res1)) {
14700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14701 }
14702 arg1 = reinterpret_cast< wxFont * >(argp1);
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 result = ((wxFont const *)arg1)->GetWeightString();
14706 wxPyEndAllowThreads(__tstate);
14707 if (PyErr_Occurred()) SWIG_fail;
14708 }
14709 {
14710 #if wxUSE_UNICODE
14711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14712 #else
14713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14714 #endif
14715 }
14716 return resultobj;
14717 fail:
14718 return NULL;
14719 }
14720
14721
14722 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14723 PyObject *resultobj = 0;
14724 wxFont *arg1 = (wxFont *) 0 ;
14725 bool arg2 = (bool) true ;
14726 void *argp1 = 0 ;
14727 int res1 = 0 ;
14728 bool val2 ;
14729 int ecode2 = 0 ;
14730 PyObject * obj0 = 0 ;
14731 PyObject * obj1 = 0 ;
14732 char * kwnames[] = {
14733 (char *) "self",(char *) "no", NULL
14734 };
14735
14736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14738 if (!SWIG_IsOK(res1)) {
14739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14740 }
14741 arg1 = reinterpret_cast< wxFont * >(argp1);
14742 if (obj1) {
14743 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14744 if (!SWIG_IsOK(ecode2)) {
14745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14746 }
14747 arg2 = static_cast< bool >(val2);
14748 }
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 (arg1)->SetNoAntiAliasing(arg2);
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 resultobj = SWIG_Py_Void();
14756 return resultobj;
14757 fail:
14758 return NULL;
14759 }
14760
14761
14762 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14763 PyObject *resultobj = 0;
14764 wxFont *arg1 = (wxFont *) 0 ;
14765 bool result;
14766 void *argp1 = 0 ;
14767 int res1 = 0 ;
14768 PyObject *swig_obj[1] ;
14769
14770 if (!args) SWIG_fail;
14771 swig_obj[0] = args;
14772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14773 if (!SWIG_IsOK(res1)) {
14774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14775 }
14776 arg1 = reinterpret_cast< wxFont * >(argp1);
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 {
14784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14785 }
14786 return resultobj;
14787 fail:
14788 return NULL;
14789 }
14790
14791
14792 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14793 PyObject *resultobj = 0;
14794 wxFontEncoding result;
14795
14796 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14797 {
14798 if (!wxPyCheckForApp()) SWIG_fail;
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14801 wxPyEndAllowThreads(__tstate);
14802 if (PyErr_Occurred()) SWIG_fail;
14803 }
14804 resultobj = SWIG_From_int(static_cast< int >(result));
14805 return resultobj;
14806 fail:
14807 return NULL;
14808 }
14809
14810
14811 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14812 PyObject *resultobj = 0;
14813 wxFontEncoding arg1 ;
14814 int val1 ;
14815 int ecode1 = 0 ;
14816 PyObject * obj0 = 0 ;
14817 char * kwnames[] = {
14818 (char *) "encoding", NULL
14819 };
14820
14821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
14822 ecode1 = SWIG_AsVal_int(obj0, &val1);
14823 if (!SWIG_IsOK(ecode1)) {
14824 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14825 }
14826 arg1 = static_cast< wxFontEncoding >(val1);
14827 {
14828 if (!wxPyCheckForApp()) SWIG_fail;
14829 PyThreadState* __tstate = wxPyBeginAllowThreads();
14830 wxFont::SetDefaultEncoding(arg1);
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 resultobj = SWIG_Py_Void();
14835 return resultobj;
14836 fail:
14837 return NULL;
14838 }
14839
14840
14841 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14842 PyObject *obj;
14843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14844 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
14845 return SWIG_Py_Void();
14846 }
14847
14848 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14849 return SWIG_Python_InitShadowInstance(args);
14850 }
14851
14852 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14853 PyObject *resultobj = 0;
14854 wxPyFontEnumerator *result = 0 ;
14855
14856 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
14857 {
14858 if (!wxPyCheckForApp()) SWIG_fail;
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
14864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
14865 return resultobj;
14866 fail:
14867 return NULL;
14868 }
14869
14870
14871 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14872 PyObject *resultobj = 0;
14873 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14874 void *argp1 = 0 ;
14875 int res1 = 0 ;
14876 PyObject *swig_obj[1] ;
14877
14878 if (!args) SWIG_fail;
14879 swig_obj[0] = args;
14880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
14881 if (!SWIG_IsOK(res1)) {
14882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14883 }
14884 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14885 {
14886 PyThreadState* __tstate = wxPyBeginAllowThreads();
14887 delete arg1;
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 resultobj = SWIG_Py_Void();
14893 return resultobj;
14894 fail:
14895 return NULL;
14896 }
14897
14898
14899 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14900 PyObject *resultobj = 0;
14901 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14902 PyObject *arg2 = (PyObject *) 0 ;
14903 PyObject *arg3 = (PyObject *) 0 ;
14904 bool arg4 ;
14905 void *argp1 = 0 ;
14906 int res1 = 0 ;
14907 bool val4 ;
14908 int ecode4 = 0 ;
14909 PyObject * obj0 = 0 ;
14910 PyObject * obj1 = 0 ;
14911 PyObject * obj2 = 0 ;
14912 PyObject * obj3 = 0 ;
14913 char * kwnames[] = {
14914 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
14915 };
14916
14917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14919 if (!SWIG_IsOK(res1)) {
14920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14921 }
14922 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14923 arg2 = obj1;
14924 arg3 = obj2;
14925 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14926 if (!SWIG_IsOK(ecode4)) {
14927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
14928 }
14929 arg4 = static_cast< bool >(val4);
14930 {
14931 PyThreadState* __tstate = wxPyBeginAllowThreads();
14932 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 resultobj = SWIG_Py_Void();
14937 return resultobj;
14938 fail:
14939 return NULL;
14940 }
14941
14942
14943 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14944 PyObject *resultobj = 0;
14945 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14946 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
14947 bool arg3 = (bool) false ;
14948 bool result;
14949 void *argp1 = 0 ;
14950 int res1 = 0 ;
14951 int val2 ;
14952 int ecode2 = 0 ;
14953 bool val3 ;
14954 int ecode3 = 0 ;
14955 PyObject * obj0 = 0 ;
14956 PyObject * obj1 = 0 ;
14957 PyObject * obj2 = 0 ;
14958 char * kwnames[] = {
14959 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
14960 };
14961
14962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14964 if (!SWIG_IsOK(res1)) {
14965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14966 }
14967 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14968 if (obj1) {
14969 ecode2 = SWIG_AsVal_int(obj1, &val2);
14970 if (!SWIG_IsOK(ecode2)) {
14971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14972 }
14973 arg2 = static_cast< wxFontEncoding >(val2);
14974 }
14975 if (obj2) {
14976 ecode3 = SWIG_AsVal_bool(obj2, &val3);
14977 if (!SWIG_IsOK(ecode3)) {
14978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
14979 }
14980 arg3 = static_cast< bool >(val3);
14981 }
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 {
14989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14990 }
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14998 PyObject *resultobj = 0;
14999 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15000 wxString const &arg2_defvalue = wxPyEmptyString ;
15001 wxString *arg2 = (wxString *) &arg2_defvalue ;
15002 bool result;
15003 void *argp1 = 0 ;
15004 int res1 = 0 ;
15005 bool temp2 = false ;
15006 PyObject * obj0 = 0 ;
15007 PyObject * obj1 = 0 ;
15008 char * kwnames[] = {
15009 (char *) "self",(char *) "facename", NULL
15010 };
15011
15012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15014 if (!SWIG_IsOK(res1)) {
15015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15016 }
15017 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15018 if (obj1) {
15019 {
15020 arg2 = wxString_in_helper(obj1);
15021 if (arg2 == NULL) SWIG_fail;
15022 temp2 = true;
15023 }
15024 }
15025 {
15026 PyThreadState* __tstate = wxPyBeginAllowThreads();
15027 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15028 wxPyEndAllowThreads(__tstate);
15029 if (PyErr_Occurred()) SWIG_fail;
15030 }
15031 {
15032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15033 }
15034 {
15035 if (temp2)
15036 delete arg2;
15037 }
15038 return resultobj;
15039 fail:
15040 {
15041 if (temp2)
15042 delete arg2;
15043 }
15044 return NULL;
15045 }
15046
15047
15048 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15049 PyObject *resultobj = 0;
15050 PyObject *result = 0 ;
15051
15052 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
15055 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 resultobj = result;
15060 return resultobj;
15061 fail:
15062 return NULL;
15063 }
15064
15065
15066 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15067 PyObject *resultobj = 0;
15068 PyObject *result = 0 ;
15069
15070 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15071 {
15072 PyThreadState* __tstate = wxPyBeginAllowThreads();
15073 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
15077 resultobj = result;
15078 return resultobj;
15079 fail:
15080 return NULL;
15081 }
15082
15083
15084 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15085 PyObject *resultobj = 0;
15086 wxString *arg1 = 0 ;
15087 bool result;
15088 bool temp1 = false ;
15089 PyObject * obj0 = 0 ;
15090 char * kwnames[] = {
15091 (char *) "str", NULL
15092 };
15093
15094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15095 {
15096 arg1 = wxString_in_helper(obj0);
15097 if (arg1 == NULL) SWIG_fail;
15098 temp1 = true;
15099 }
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15103 wxPyEndAllowThreads(__tstate);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 }
15106 {
15107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15108 }
15109 {
15110 if (temp1)
15111 delete arg1;
15112 }
15113 return resultobj;
15114 fail:
15115 {
15116 if (temp1)
15117 delete arg1;
15118 }
15119 return NULL;
15120 }
15121
15122
15123 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15124 PyObject *obj;
15125 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15126 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15127 return SWIG_Py_Void();
15128 }
15129
15130 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15131 return SWIG_Python_InitShadowInstance(args);
15132 }
15133
15134 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15135 PyObject *resultobj = 0;
15136 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15137 int arg2 ;
15138 void *argp1 = 0 ;
15139 int res1 = 0 ;
15140 int val2 ;
15141 int ecode2 = 0 ;
15142 PyObject *swig_obj[2] ;
15143
15144 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15146 if (!SWIG_IsOK(res1)) {
15147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15148 }
15149 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15150 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15151 if (!SWIG_IsOK(ecode2)) {
15152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15153 }
15154 arg2 = static_cast< int >(val2);
15155 if (arg1) (arg1)->Language = arg2;
15156
15157 resultobj = SWIG_Py_Void();
15158 return resultobj;
15159 fail:
15160 return NULL;
15161 }
15162
15163
15164 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15165 PyObject *resultobj = 0;
15166 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15167 int result;
15168 void *argp1 = 0 ;
15169 int res1 = 0 ;
15170 PyObject *swig_obj[1] ;
15171
15172 if (!args) SWIG_fail;
15173 swig_obj[0] = args;
15174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15175 if (!SWIG_IsOK(res1)) {
15176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15177 }
15178 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15179 result = (int) ((arg1)->Language);
15180 resultobj = SWIG_From_int(static_cast< int >(result));
15181 return resultobj;
15182 fail:
15183 return NULL;
15184 }
15185
15186
15187 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15188 PyObject *resultobj = 0;
15189 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15190 wxString *arg2 = (wxString *) 0 ;
15191 void *argp1 = 0 ;
15192 int res1 = 0 ;
15193 bool temp2 = false ;
15194 PyObject *swig_obj[2] ;
15195
15196 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15198 if (!SWIG_IsOK(res1)) {
15199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15200 }
15201 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15202 {
15203 arg2 = wxString_in_helper(swig_obj[1]);
15204 if (arg2 == NULL) SWIG_fail;
15205 temp2 = true;
15206 }
15207 if (arg1) (arg1)->CanonicalName = *arg2;
15208
15209 resultobj = SWIG_Py_Void();
15210 {
15211 if (temp2)
15212 delete arg2;
15213 }
15214 return resultobj;
15215 fail:
15216 {
15217 if (temp2)
15218 delete arg2;
15219 }
15220 return NULL;
15221 }
15222
15223
15224 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15225 PyObject *resultobj = 0;
15226 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15227 wxString *result = 0 ;
15228 void *argp1 = 0 ;
15229 int res1 = 0 ;
15230 PyObject *swig_obj[1] ;
15231
15232 if (!args) SWIG_fail;
15233 swig_obj[0] = args;
15234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15235 if (!SWIG_IsOK(res1)) {
15236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15237 }
15238 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15239 result = (wxString *)& ((arg1)->CanonicalName);
15240 {
15241 #if wxUSE_UNICODE
15242 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15243 #else
15244 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15245 #endif
15246 }
15247 return resultobj;
15248 fail:
15249 return NULL;
15250 }
15251
15252
15253 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15254 PyObject *resultobj = 0;
15255 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15256 wxString *arg2 = (wxString *) 0 ;
15257 void *argp1 = 0 ;
15258 int res1 = 0 ;
15259 bool temp2 = false ;
15260 PyObject *swig_obj[2] ;
15261
15262 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15264 if (!SWIG_IsOK(res1)) {
15265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15266 }
15267 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15268 {
15269 arg2 = wxString_in_helper(swig_obj[1]);
15270 if (arg2 == NULL) SWIG_fail;
15271 temp2 = true;
15272 }
15273 if (arg1) (arg1)->Description = *arg2;
15274
15275 resultobj = SWIG_Py_Void();
15276 {
15277 if (temp2)
15278 delete arg2;
15279 }
15280 return resultobj;
15281 fail:
15282 {
15283 if (temp2)
15284 delete arg2;
15285 }
15286 return NULL;
15287 }
15288
15289
15290 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15291 PyObject *resultobj = 0;
15292 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15293 wxString *result = 0 ;
15294 void *argp1 = 0 ;
15295 int res1 = 0 ;
15296 PyObject *swig_obj[1] ;
15297
15298 if (!args) SWIG_fail;
15299 swig_obj[0] = args;
15300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15301 if (!SWIG_IsOK(res1)) {
15302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15303 }
15304 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15305 result = (wxString *)& ((arg1)->Description);
15306 {
15307 #if wxUSE_UNICODE
15308 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15309 #else
15310 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15311 #endif
15312 }
15313 return resultobj;
15314 fail:
15315 return NULL;
15316 }
15317
15318
15319 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15320 PyObject *obj;
15321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15322 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15323 return SWIG_Py_Void();
15324 }
15325
15326 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15327 PyObject *resultobj = 0;
15328 int arg1 = (int) -1 ;
15329 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15330 wxLocale *result = 0 ;
15331 int val1 ;
15332 int ecode1 = 0 ;
15333 int val2 ;
15334 int ecode2 = 0 ;
15335 PyObject * obj0 = 0 ;
15336 PyObject * obj1 = 0 ;
15337 char * kwnames[] = {
15338 (char *) "language",(char *) "flags", NULL
15339 };
15340
15341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15342 if (obj0) {
15343 ecode1 = SWIG_AsVal_int(obj0, &val1);
15344 if (!SWIG_IsOK(ecode1)) {
15345 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15346 }
15347 arg1 = static_cast< int >(val1);
15348 }
15349 if (obj1) {
15350 ecode2 = SWIG_AsVal_int(obj1, &val2);
15351 if (!SWIG_IsOK(ecode2)) {
15352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15353 }
15354 arg2 = static_cast< int >(val2);
15355 }
15356 {
15357 PyThreadState* __tstate = wxPyBeginAllowThreads();
15358 result = (wxLocale *)new_wxLocale(arg1,arg2);
15359 wxPyEndAllowThreads(__tstate);
15360 if (PyErr_Occurred()) SWIG_fail;
15361 }
15362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15363 return resultobj;
15364 fail:
15365 return NULL;
15366 }
15367
15368
15369 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15370 PyObject *resultobj = 0;
15371 wxLocale *arg1 = (wxLocale *) 0 ;
15372 void *argp1 = 0 ;
15373 int res1 = 0 ;
15374 PyObject *swig_obj[1] ;
15375
15376 if (!args) SWIG_fail;
15377 swig_obj[0] = args;
15378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15379 if (!SWIG_IsOK(res1)) {
15380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15381 }
15382 arg1 = reinterpret_cast< wxLocale * >(argp1);
15383 {
15384 PyThreadState* __tstate = wxPyBeginAllowThreads();
15385 delete arg1;
15386
15387 wxPyEndAllowThreads(__tstate);
15388 if (PyErr_Occurred()) SWIG_fail;
15389 }
15390 resultobj = SWIG_Py_Void();
15391 return resultobj;
15392 fail:
15393 return NULL;
15394 }
15395
15396
15397 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15398 PyObject *resultobj = 0;
15399 wxLocale *arg1 = (wxLocale *) 0 ;
15400 wxString *arg2 = 0 ;
15401 wxString const &arg3_defvalue = wxPyEmptyString ;
15402 wxString *arg3 = (wxString *) &arg3_defvalue ;
15403 wxString const &arg4_defvalue = wxPyEmptyString ;
15404 wxString *arg4 = (wxString *) &arg4_defvalue ;
15405 bool arg5 = (bool) true ;
15406 bool arg6 = (bool) false ;
15407 bool result;
15408 void *argp1 = 0 ;
15409 int res1 = 0 ;
15410 bool temp2 = false ;
15411 bool temp3 = false ;
15412 bool temp4 = false ;
15413 bool val5 ;
15414 int ecode5 = 0 ;
15415 bool val6 ;
15416 int ecode6 = 0 ;
15417 PyObject * obj0 = 0 ;
15418 PyObject * obj1 = 0 ;
15419 PyObject * obj2 = 0 ;
15420 PyObject * obj3 = 0 ;
15421 PyObject * obj4 = 0 ;
15422 PyObject * obj5 = 0 ;
15423 char * kwnames[] = {
15424 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15425 };
15426
15427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15429 if (!SWIG_IsOK(res1)) {
15430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15431 }
15432 arg1 = reinterpret_cast< wxLocale * >(argp1);
15433 {
15434 arg2 = wxString_in_helper(obj1);
15435 if (arg2 == NULL) SWIG_fail;
15436 temp2 = true;
15437 }
15438 if (obj2) {
15439 {
15440 arg3 = wxString_in_helper(obj2);
15441 if (arg3 == NULL) SWIG_fail;
15442 temp3 = true;
15443 }
15444 }
15445 if (obj3) {
15446 {
15447 arg4 = wxString_in_helper(obj3);
15448 if (arg4 == NULL) SWIG_fail;
15449 temp4 = true;
15450 }
15451 }
15452 if (obj4) {
15453 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15454 if (!SWIG_IsOK(ecode5)) {
15455 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15456 }
15457 arg5 = static_cast< bool >(val5);
15458 }
15459 if (obj5) {
15460 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15461 if (!SWIG_IsOK(ecode6)) {
15462 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15463 }
15464 arg6 = static_cast< bool >(val6);
15465 }
15466 {
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15469 wxPyEndAllowThreads(__tstate);
15470 if (PyErr_Occurred()) SWIG_fail;
15471 }
15472 {
15473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15474 }
15475 {
15476 if (temp2)
15477 delete arg2;
15478 }
15479 {
15480 if (temp3)
15481 delete arg3;
15482 }
15483 {
15484 if (temp4)
15485 delete arg4;
15486 }
15487 return resultobj;
15488 fail:
15489 {
15490 if (temp2)
15491 delete arg2;
15492 }
15493 {
15494 if (temp3)
15495 delete arg3;
15496 }
15497 {
15498 if (temp4)
15499 delete arg4;
15500 }
15501 return NULL;
15502 }
15503
15504
15505 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15506 PyObject *resultobj = 0;
15507 wxLocale *arg1 = (wxLocale *) 0 ;
15508 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15509 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15510 bool result;
15511 void *argp1 = 0 ;
15512 int res1 = 0 ;
15513 int val2 ;
15514 int ecode2 = 0 ;
15515 int val3 ;
15516 int ecode3 = 0 ;
15517 PyObject * obj0 = 0 ;
15518 PyObject * obj1 = 0 ;
15519 PyObject * obj2 = 0 ;
15520 char * kwnames[] = {
15521 (char *) "self",(char *) "language",(char *) "flags", NULL
15522 };
15523
15524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15526 if (!SWIG_IsOK(res1)) {
15527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15528 }
15529 arg1 = reinterpret_cast< wxLocale * >(argp1);
15530 if (obj1) {
15531 ecode2 = SWIG_AsVal_int(obj1, &val2);
15532 if (!SWIG_IsOK(ecode2)) {
15533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15534 }
15535 arg2 = static_cast< int >(val2);
15536 }
15537 if (obj2) {
15538 ecode3 = SWIG_AsVal_int(obj2, &val3);
15539 if (!SWIG_IsOK(ecode3)) {
15540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15541 }
15542 arg3 = static_cast< int >(val3);
15543 }
15544 {
15545 PyThreadState* __tstate = wxPyBeginAllowThreads();
15546 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 {
15551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15552 }
15553 return resultobj;
15554 fail:
15555 return NULL;
15556 }
15557
15558
15559 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15560 PyObject *resultobj = 0;
15561 int result;
15562
15563 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15564 {
15565 PyThreadState* __tstate = wxPyBeginAllowThreads();
15566 result = (int)wxLocale::GetSystemLanguage();
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 resultobj = SWIG_From_int(static_cast< int >(result));
15571 return resultobj;
15572 fail:
15573 return NULL;
15574 }
15575
15576
15577 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15578 PyObject *resultobj = 0;
15579 wxFontEncoding result;
15580
15581 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15582 {
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15585 wxPyEndAllowThreads(__tstate);
15586 if (PyErr_Occurred()) SWIG_fail;
15587 }
15588 resultobj = SWIG_From_int(static_cast< int >(result));
15589 return resultobj;
15590 fail:
15591 return NULL;
15592 }
15593
15594
15595 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15596 PyObject *resultobj = 0;
15597 wxString result;
15598
15599 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 result = wxLocale::GetSystemEncodingName();
15603 wxPyEndAllowThreads(__tstate);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 }
15606 {
15607 #if wxUSE_UNICODE
15608 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15609 #else
15610 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15611 #endif
15612 }
15613 return resultobj;
15614 fail:
15615 return NULL;
15616 }
15617
15618
15619 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15620 PyObject *resultobj = 0;
15621 wxLocale *arg1 = (wxLocale *) 0 ;
15622 bool result;
15623 void *argp1 = 0 ;
15624 int res1 = 0 ;
15625 PyObject *swig_obj[1] ;
15626
15627 if (!args) SWIG_fail;
15628 swig_obj[0] = args;
15629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15630 if (!SWIG_IsOK(res1)) {
15631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15632 }
15633 arg1 = reinterpret_cast< wxLocale * >(argp1);
15634 {
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
15636 result = (bool)((wxLocale const *)arg1)->IsOk();
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 {
15641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15642 }
15643 return resultobj;
15644 fail:
15645 return NULL;
15646 }
15647
15648
15649 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15650 PyObject *resultobj = 0;
15651 wxLocale *arg1 = (wxLocale *) 0 ;
15652 wxString result;
15653 void *argp1 = 0 ;
15654 int res1 = 0 ;
15655 PyObject *swig_obj[1] ;
15656
15657 if (!args) SWIG_fail;
15658 swig_obj[0] = args;
15659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15660 if (!SWIG_IsOK(res1)) {
15661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15662 }
15663 arg1 = reinterpret_cast< wxLocale * >(argp1);
15664 {
15665 PyThreadState* __tstate = wxPyBeginAllowThreads();
15666 result = ((wxLocale const *)arg1)->GetLocale();
15667 wxPyEndAllowThreads(__tstate);
15668 if (PyErr_Occurred()) SWIG_fail;
15669 }
15670 {
15671 #if wxUSE_UNICODE
15672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15673 #else
15674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15675 #endif
15676 }
15677 return resultobj;
15678 fail:
15679 return NULL;
15680 }
15681
15682
15683 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15684 PyObject *resultobj = 0;
15685 wxLocale *arg1 = (wxLocale *) 0 ;
15686 int result;
15687 void *argp1 = 0 ;
15688 int res1 = 0 ;
15689 PyObject *swig_obj[1] ;
15690
15691 if (!args) SWIG_fail;
15692 swig_obj[0] = args;
15693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15694 if (!SWIG_IsOK(res1)) {
15695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15696 }
15697 arg1 = reinterpret_cast< wxLocale * >(argp1);
15698 {
15699 PyThreadState* __tstate = wxPyBeginAllowThreads();
15700 result = (int)((wxLocale const *)arg1)->GetLanguage();
15701 wxPyEndAllowThreads(__tstate);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 }
15704 resultobj = SWIG_From_int(static_cast< int >(result));
15705 return resultobj;
15706 fail:
15707 return NULL;
15708 }
15709
15710
15711 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15712 PyObject *resultobj = 0;
15713 wxLocale *arg1 = (wxLocale *) 0 ;
15714 wxString result;
15715 void *argp1 = 0 ;
15716 int res1 = 0 ;
15717 PyObject *swig_obj[1] ;
15718
15719 if (!args) SWIG_fail;
15720 swig_obj[0] = args;
15721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15722 if (!SWIG_IsOK(res1)) {
15723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15724 }
15725 arg1 = reinterpret_cast< wxLocale * >(argp1);
15726 {
15727 PyThreadState* __tstate = wxPyBeginAllowThreads();
15728 result = ((wxLocale const *)arg1)->GetSysName();
15729 wxPyEndAllowThreads(__tstate);
15730 if (PyErr_Occurred()) SWIG_fail;
15731 }
15732 {
15733 #if wxUSE_UNICODE
15734 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15735 #else
15736 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15737 #endif
15738 }
15739 return resultobj;
15740 fail:
15741 return NULL;
15742 }
15743
15744
15745 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15746 PyObject *resultobj = 0;
15747 wxLocale *arg1 = (wxLocale *) 0 ;
15748 wxString result;
15749 void *argp1 = 0 ;
15750 int res1 = 0 ;
15751 PyObject *swig_obj[1] ;
15752
15753 if (!args) SWIG_fail;
15754 swig_obj[0] = args;
15755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15756 if (!SWIG_IsOK(res1)) {
15757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15758 }
15759 arg1 = reinterpret_cast< wxLocale * >(argp1);
15760 {
15761 PyThreadState* __tstate = wxPyBeginAllowThreads();
15762 result = ((wxLocale const *)arg1)->GetCanonicalName();
15763 wxPyEndAllowThreads(__tstate);
15764 if (PyErr_Occurred()) SWIG_fail;
15765 }
15766 {
15767 #if wxUSE_UNICODE
15768 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15769 #else
15770 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15771 #endif
15772 }
15773 return resultobj;
15774 fail:
15775 return NULL;
15776 }
15777
15778
15779 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15780 PyObject *resultobj = 0;
15781 wxString *arg1 = 0 ;
15782 bool temp1 = false ;
15783 PyObject * obj0 = 0 ;
15784 char * kwnames[] = {
15785 (char *) "prefix", NULL
15786 };
15787
15788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15789 {
15790 arg1 = wxString_in_helper(obj0);
15791 if (arg1 == NULL) SWIG_fail;
15792 temp1 = true;
15793 }
15794 {
15795 PyThreadState* __tstate = wxPyBeginAllowThreads();
15796 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15797 wxPyEndAllowThreads(__tstate);
15798 if (PyErr_Occurred()) SWIG_fail;
15799 }
15800 resultobj = SWIG_Py_Void();
15801 {
15802 if (temp1)
15803 delete arg1;
15804 }
15805 return resultobj;
15806 fail:
15807 {
15808 if (temp1)
15809 delete arg1;
15810 }
15811 return NULL;
15812 }
15813
15814
15815 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj = 0;
15817 wxLocale *arg1 = (wxLocale *) 0 ;
15818 wxString *arg2 = 0 ;
15819 bool result;
15820 void *argp1 = 0 ;
15821 int res1 = 0 ;
15822 bool temp2 = false ;
15823 PyObject * obj0 = 0 ;
15824 PyObject * obj1 = 0 ;
15825 char * kwnames[] = {
15826 (char *) "self",(char *) "szDomain", NULL
15827 };
15828
15829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
15830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15831 if (!SWIG_IsOK(res1)) {
15832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
15833 }
15834 arg1 = reinterpret_cast< wxLocale * >(argp1);
15835 {
15836 arg2 = wxString_in_helper(obj1);
15837 if (arg2 == NULL) SWIG_fail;
15838 temp2 = true;
15839 }
15840 {
15841 PyThreadState* __tstate = wxPyBeginAllowThreads();
15842 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
15843 wxPyEndAllowThreads(__tstate);
15844 if (PyErr_Occurred()) SWIG_fail;
15845 }
15846 {
15847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15848 }
15849 {
15850 if (temp2)
15851 delete arg2;
15852 }
15853 return resultobj;
15854 fail:
15855 {
15856 if (temp2)
15857 delete arg2;
15858 }
15859 return NULL;
15860 }
15861
15862
15863 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15864 PyObject *resultobj = 0;
15865 int arg1 ;
15866 bool result;
15867 int val1 ;
15868 int ecode1 = 0 ;
15869 PyObject * obj0 = 0 ;
15870 char * kwnames[] = {
15871 (char *) "lang", NULL
15872 };
15873
15874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
15875 ecode1 = SWIG_AsVal_int(obj0, &val1);
15876 if (!SWIG_IsOK(ecode1)) {
15877 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
15878 }
15879 arg1 = static_cast< int >(val1);
15880 {
15881 PyThreadState* __tstate = wxPyBeginAllowThreads();
15882 result = (bool)wxLocale::IsAvailable(arg1);
15883 wxPyEndAllowThreads(__tstate);
15884 if (PyErr_Occurred()) SWIG_fail;
15885 }
15886 {
15887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15888 }
15889 return resultobj;
15890 fail:
15891 return NULL;
15892 }
15893
15894
15895 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15896 PyObject *resultobj = 0;
15897 wxLocale *arg1 = (wxLocale *) 0 ;
15898 wxString *arg2 = 0 ;
15899 bool result;
15900 void *argp1 = 0 ;
15901 int res1 = 0 ;
15902 bool temp2 = false ;
15903 PyObject * obj0 = 0 ;
15904 PyObject * obj1 = 0 ;
15905 char * kwnames[] = {
15906 (char *) "self",(char *) "szDomain", NULL
15907 };
15908
15909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
15910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15911 if (!SWIG_IsOK(res1)) {
15912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
15913 }
15914 arg1 = reinterpret_cast< wxLocale * >(argp1);
15915 {
15916 arg2 = wxString_in_helper(obj1);
15917 if (arg2 == NULL) SWIG_fail;
15918 temp2 = true;
15919 }
15920 {
15921 PyThreadState* __tstate = wxPyBeginAllowThreads();
15922 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
15923 wxPyEndAllowThreads(__tstate);
15924 if (PyErr_Occurred()) SWIG_fail;
15925 }
15926 {
15927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15928 }
15929 {
15930 if (temp2)
15931 delete arg2;
15932 }
15933 return resultobj;
15934 fail:
15935 {
15936 if (temp2)
15937 delete arg2;
15938 }
15939 return NULL;
15940 }
15941
15942
15943 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15944 PyObject *resultobj = 0;
15945 int arg1 ;
15946 wxLanguageInfo *result = 0 ;
15947 int val1 ;
15948 int ecode1 = 0 ;
15949 PyObject * obj0 = 0 ;
15950 char * kwnames[] = {
15951 (char *) "lang", NULL
15952 };
15953
15954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
15955 ecode1 = SWIG_AsVal_int(obj0, &val1);
15956 if (!SWIG_IsOK(ecode1)) {
15957 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
15958 }
15959 arg1 = static_cast< int >(val1);
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15967 return resultobj;
15968 fail:
15969 return NULL;
15970 }
15971
15972
15973 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15974 PyObject *resultobj = 0;
15975 int arg1 ;
15976 wxString result;
15977 int val1 ;
15978 int ecode1 = 0 ;
15979 PyObject * obj0 = 0 ;
15980 char * kwnames[] = {
15981 (char *) "lang", NULL
15982 };
15983
15984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
15985 ecode1 = SWIG_AsVal_int(obj0, &val1);
15986 if (!SWIG_IsOK(ecode1)) {
15987 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
15988 }
15989 arg1 = static_cast< int >(val1);
15990 {
15991 PyThreadState* __tstate = wxPyBeginAllowThreads();
15992 result = wxLocale::GetLanguageName(arg1);
15993 wxPyEndAllowThreads(__tstate);
15994 if (PyErr_Occurred()) SWIG_fail;
15995 }
15996 {
15997 #if wxUSE_UNICODE
15998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15999 #else
16000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16001 #endif
16002 }
16003 return resultobj;
16004 fail:
16005 return NULL;
16006 }
16007
16008
16009 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16010 PyObject *resultobj = 0;
16011 wxString *arg1 = 0 ;
16012 wxLanguageInfo *result = 0 ;
16013 bool temp1 = false ;
16014 PyObject * obj0 = 0 ;
16015 char * kwnames[] = {
16016 (char *) "locale", NULL
16017 };
16018
16019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16020 {
16021 arg1 = wxString_in_helper(obj0);
16022 if (arg1 == NULL) SWIG_fail;
16023 temp1 = true;
16024 }
16025 {
16026 PyThreadState* __tstate = wxPyBeginAllowThreads();
16027 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16032 {
16033 if (temp1)
16034 delete arg1;
16035 }
16036 return resultobj;
16037 fail:
16038 {
16039 if (temp1)
16040 delete arg1;
16041 }
16042 return NULL;
16043 }
16044
16045
16046 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16047 PyObject *resultobj = 0;
16048 wxLanguageInfo *arg1 = 0 ;
16049 void *argp1 = 0 ;
16050 int res1 = 0 ;
16051 PyObject * obj0 = 0 ;
16052 char * kwnames[] = {
16053 (char *) "info", NULL
16054 };
16055
16056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16057 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16058 if (!SWIG_IsOK(res1)) {
16059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16060 }
16061 if (!argp1) {
16062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16063 }
16064 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16065 {
16066 PyThreadState* __tstate = wxPyBeginAllowThreads();
16067 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 resultobj = SWIG_Py_Void();
16072 return resultobj;
16073 fail:
16074 return NULL;
16075 }
16076
16077
16078 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16079 PyObject *resultobj = 0;
16080 wxLocale *arg1 = (wxLocale *) 0 ;
16081 wxString *arg2 = 0 ;
16082 wxString const &arg3_defvalue = wxPyEmptyString ;
16083 wxString *arg3 = (wxString *) &arg3_defvalue ;
16084 wxString result;
16085 void *argp1 = 0 ;
16086 int res1 = 0 ;
16087 bool temp2 = false ;
16088 bool temp3 = false ;
16089 PyObject * obj0 = 0 ;
16090 PyObject * obj1 = 0 ;
16091 PyObject * obj2 = 0 ;
16092 char * kwnames[] = {
16093 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16094 };
16095
16096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16098 if (!SWIG_IsOK(res1)) {
16099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16100 }
16101 arg1 = reinterpret_cast< wxLocale * >(argp1);
16102 {
16103 arg2 = wxString_in_helper(obj1);
16104 if (arg2 == NULL) SWIG_fail;
16105 temp2 = true;
16106 }
16107 if (obj2) {
16108 {
16109 arg3 = wxString_in_helper(obj2);
16110 if (arg3 == NULL) SWIG_fail;
16111 temp3 = true;
16112 }
16113 }
16114 {
16115 PyThreadState* __tstate = wxPyBeginAllowThreads();
16116 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16117 wxPyEndAllowThreads(__tstate);
16118 if (PyErr_Occurred()) SWIG_fail;
16119 }
16120 {
16121 #if wxUSE_UNICODE
16122 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16123 #else
16124 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16125 #endif
16126 }
16127 {
16128 if (temp2)
16129 delete arg2;
16130 }
16131 {
16132 if (temp3)
16133 delete arg3;
16134 }
16135 return resultobj;
16136 fail:
16137 {
16138 if (temp2)
16139 delete arg2;
16140 }
16141 {
16142 if (temp3)
16143 delete arg3;
16144 }
16145 return NULL;
16146 }
16147
16148
16149 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16150 PyObject *resultobj = 0;
16151 wxLocale *arg1 = (wxLocale *) 0 ;
16152 wxString *result = 0 ;
16153 void *argp1 = 0 ;
16154 int res1 = 0 ;
16155 PyObject *swig_obj[1] ;
16156
16157 if (!args) SWIG_fail;
16158 swig_obj[0] = args;
16159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16160 if (!SWIG_IsOK(res1)) {
16161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16162 }
16163 arg1 = reinterpret_cast< wxLocale * >(argp1);
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 {
16167 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16168 result = (wxString *) &_result_ref;
16169 }
16170 wxPyEndAllowThreads(__tstate);
16171 if (PyErr_Occurred()) SWIG_fail;
16172 }
16173 {
16174 #if wxUSE_UNICODE
16175 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16176 #else
16177 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16178 #endif
16179 }
16180 return resultobj;
16181 fail:
16182 return NULL;
16183 }
16184
16185
16186 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16187 PyObject *obj;
16188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16189 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16190 return SWIG_Py_Void();
16191 }
16192
16193 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16194 return SWIG_Python_InitShadowInstance(args);
16195 }
16196
16197 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16198 PyObject *resultobj = 0;
16199 int arg1 = (int) -1 ;
16200 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16201 wxPyLocale *result = 0 ;
16202 int val1 ;
16203 int ecode1 = 0 ;
16204 int val2 ;
16205 int ecode2 = 0 ;
16206 PyObject * obj0 = 0 ;
16207 PyObject * obj1 = 0 ;
16208 char * kwnames[] = {
16209 (char *) "language",(char *) "flags", NULL
16210 };
16211
16212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16213 if (obj0) {
16214 ecode1 = SWIG_AsVal_int(obj0, &val1);
16215 if (!SWIG_IsOK(ecode1)) {
16216 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16217 }
16218 arg1 = static_cast< int >(val1);
16219 }
16220 if (obj1) {
16221 ecode2 = SWIG_AsVal_int(obj1, &val2);
16222 if (!SWIG_IsOK(ecode2)) {
16223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16224 }
16225 arg2 = static_cast< int >(val2);
16226 }
16227 {
16228 PyThreadState* __tstate = wxPyBeginAllowThreads();
16229 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16230 wxPyEndAllowThreads(__tstate);
16231 if (PyErr_Occurred()) SWIG_fail;
16232 }
16233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16234 return resultobj;
16235 fail:
16236 return NULL;
16237 }
16238
16239
16240 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16241 PyObject *resultobj = 0;
16242 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16243 void *argp1 = 0 ;
16244 int res1 = 0 ;
16245 PyObject *swig_obj[1] ;
16246
16247 if (!args) SWIG_fail;
16248 swig_obj[0] = args;
16249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16250 if (!SWIG_IsOK(res1)) {
16251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16252 }
16253 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16254 {
16255 PyThreadState* __tstate = wxPyBeginAllowThreads();
16256 delete arg1;
16257
16258 wxPyEndAllowThreads(__tstate);
16259 if (PyErr_Occurred()) SWIG_fail;
16260 }
16261 resultobj = SWIG_Py_Void();
16262 return resultobj;
16263 fail:
16264 return NULL;
16265 }
16266
16267
16268 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16269 PyObject *resultobj = 0;
16270 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16271 PyObject *arg2 = (PyObject *) 0 ;
16272 PyObject *arg3 = (PyObject *) 0 ;
16273 void *argp1 = 0 ;
16274 int res1 = 0 ;
16275 PyObject * obj0 = 0 ;
16276 PyObject * obj1 = 0 ;
16277 PyObject * obj2 = 0 ;
16278 char * kwnames[] = {
16279 (char *) "self",(char *) "self",(char *) "_class", NULL
16280 };
16281
16282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16284 if (!SWIG_IsOK(res1)) {
16285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16286 }
16287 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16288 arg2 = obj1;
16289 arg3 = obj2;
16290 {
16291 PyThreadState* __tstate = wxPyBeginAllowThreads();
16292 (arg1)->_setCallbackInfo(arg2,arg3);
16293 wxPyEndAllowThreads(__tstate);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 resultobj = SWIG_Py_Void();
16297 return resultobj;
16298 fail:
16299 return NULL;
16300 }
16301
16302
16303 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16304 PyObject *resultobj = 0;
16305 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16306 wxChar *arg2 = (wxChar *) 0 ;
16307 wxChar *arg3 = (wxChar *) NULL ;
16308 wxChar *result = 0 ;
16309 void *argp1 = 0 ;
16310 int res1 = 0 ;
16311 void *argp2 = 0 ;
16312 int res2 = 0 ;
16313 void *argp3 = 0 ;
16314 int res3 = 0 ;
16315 PyObject * obj0 = 0 ;
16316 PyObject * obj1 = 0 ;
16317 PyObject * obj2 = 0 ;
16318 char * kwnames[] = {
16319 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16320 };
16321
16322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16324 if (!SWIG_IsOK(res1)) {
16325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16326 }
16327 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16329 if (!SWIG_IsOK(res2)) {
16330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16331 }
16332 arg2 = reinterpret_cast< wxChar * >(argp2);
16333 if (obj2) {
16334 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16335 if (!SWIG_IsOK(res3)) {
16336 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16337 }
16338 arg3 = reinterpret_cast< wxChar * >(argp3);
16339 }
16340 {
16341 PyThreadState* __tstate = wxPyBeginAllowThreads();
16342 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16343 wxPyEndAllowThreads(__tstate);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16347 return resultobj;
16348 fail:
16349 return NULL;
16350 }
16351
16352
16353 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16354 PyObject *resultobj = 0;
16355 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16356 wxChar *arg2 = (wxChar *) 0 ;
16357 wxChar *arg3 = (wxChar *) 0 ;
16358 size_t arg4 ;
16359 wxChar *arg5 = (wxChar *) NULL ;
16360 wxChar *result = 0 ;
16361 void *argp1 = 0 ;
16362 int res1 = 0 ;
16363 void *argp2 = 0 ;
16364 int res2 = 0 ;
16365 void *argp3 = 0 ;
16366 int res3 = 0 ;
16367 size_t val4 ;
16368 int ecode4 = 0 ;
16369 void *argp5 = 0 ;
16370 int res5 = 0 ;
16371 PyObject * obj0 = 0 ;
16372 PyObject * obj1 = 0 ;
16373 PyObject * obj2 = 0 ;
16374 PyObject * obj3 = 0 ;
16375 PyObject * obj4 = 0 ;
16376 char * kwnames[] = {
16377 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16378 };
16379
16380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16382 if (!SWIG_IsOK(res1)) {
16383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16384 }
16385 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16387 if (!SWIG_IsOK(res2)) {
16388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16389 }
16390 arg2 = reinterpret_cast< wxChar * >(argp2);
16391 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16392 if (!SWIG_IsOK(res3)) {
16393 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16394 }
16395 arg3 = reinterpret_cast< wxChar * >(argp3);
16396 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16397 if (!SWIG_IsOK(ecode4)) {
16398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16399 }
16400 arg4 = static_cast< size_t >(val4);
16401 if (obj4) {
16402 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16403 if (!SWIG_IsOK(res5)) {
16404 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16405 }
16406 arg5 = reinterpret_cast< wxChar * >(argp5);
16407 }
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16415 return resultobj;
16416 fail:
16417 return NULL;
16418 }
16419
16420
16421 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16422 PyObject *obj;
16423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16424 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16425 return SWIG_Py_Void();
16426 }
16427
16428 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16429 return SWIG_Python_InitShadowInstance(args);
16430 }
16431
16432 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16433 PyObject *resultobj = 0;
16434 wxLocale *result = 0 ;
16435
16436 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16437 {
16438 PyThreadState* __tstate = wxPyBeginAllowThreads();
16439 result = (wxLocale *)wxGetLocale();
16440 wxPyEndAllowThreads(__tstate);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 }
16443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16444 return resultobj;
16445 fail:
16446 return NULL;
16447 }
16448
16449
16450 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16451 PyObject *resultobj = 0;
16452 wxString *arg1 = 0 ;
16453 wxString result;
16454 bool temp1 = false ;
16455
16456 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16457 {
16458 arg1 = wxString_in_helper(swig_obj[0]);
16459 if (arg1 == NULL) SWIG_fail;
16460 temp1 = true;
16461 }
16462 {
16463 PyThreadState* __tstate = wxPyBeginAllowThreads();
16464 result = wxGetTranslation((wxString const &)*arg1);
16465 wxPyEndAllowThreads(__tstate);
16466 if (PyErr_Occurred()) SWIG_fail;
16467 }
16468 {
16469 #if wxUSE_UNICODE
16470 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16471 #else
16472 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16473 #endif
16474 }
16475 {
16476 if (temp1)
16477 delete arg1;
16478 }
16479 return resultobj;
16480 fail:
16481 {
16482 if (temp1)
16483 delete arg1;
16484 }
16485 return NULL;
16486 }
16487
16488
16489 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16490 PyObject *resultobj = 0;
16491 wxString *arg1 = 0 ;
16492 wxString *arg2 = 0 ;
16493 wxString result;
16494 bool temp1 = false ;
16495 bool temp2 = false ;
16496
16497 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16498 {
16499 arg1 = wxString_in_helper(swig_obj[0]);
16500 if (arg1 == NULL) SWIG_fail;
16501 temp1 = true;
16502 }
16503 {
16504 arg2 = wxString_in_helper(swig_obj[1]);
16505 if (arg2 == NULL) SWIG_fail;
16506 temp2 = true;
16507 }
16508 {
16509 PyThreadState* __tstate = wxPyBeginAllowThreads();
16510 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16511 wxPyEndAllowThreads(__tstate);
16512 if (PyErr_Occurred()) SWIG_fail;
16513 }
16514 {
16515 #if wxUSE_UNICODE
16516 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16517 #else
16518 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16519 #endif
16520 }
16521 {
16522 if (temp1)
16523 delete arg1;
16524 }
16525 {
16526 if (temp2)
16527 delete arg2;
16528 }
16529 return resultobj;
16530 fail:
16531 {
16532 if (temp1)
16533 delete arg1;
16534 }
16535 {
16536 if (temp2)
16537 delete arg2;
16538 }
16539 return NULL;
16540 }
16541
16542
16543 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16544 PyObject *resultobj = 0;
16545 wxString *arg1 = 0 ;
16546 wxString *arg2 = 0 ;
16547 size_t arg3 ;
16548 wxString result;
16549 bool temp1 = false ;
16550 bool temp2 = false ;
16551 size_t val3 ;
16552 int ecode3 = 0 ;
16553
16554 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16555 {
16556 arg1 = wxString_in_helper(swig_obj[0]);
16557 if (arg1 == NULL) SWIG_fail;
16558 temp1 = true;
16559 }
16560 {
16561 arg2 = wxString_in_helper(swig_obj[1]);
16562 if (arg2 == NULL) SWIG_fail;
16563 temp2 = true;
16564 }
16565 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16566 if (!SWIG_IsOK(ecode3)) {
16567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16568 }
16569 arg3 = static_cast< size_t >(val3);
16570 {
16571 PyThreadState* __tstate = wxPyBeginAllowThreads();
16572 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16573 wxPyEndAllowThreads(__tstate);
16574 if (PyErr_Occurred()) SWIG_fail;
16575 }
16576 {
16577 #if wxUSE_UNICODE
16578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16579 #else
16580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16581 #endif
16582 }
16583 {
16584 if (temp1)
16585 delete arg1;
16586 }
16587 {
16588 if (temp2)
16589 delete arg2;
16590 }
16591 return resultobj;
16592 fail:
16593 {
16594 if (temp1)
16595 delete arg1;
16596 }
16597 {
16598 if (temp2)
16599 delete arg2;
16600 }
16601 return NULL;
16602 }
16603
16604
16605 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16606 PyObject *resultobj = 0;
16607 wxString *arg1 = 0 ;
16608 wxString *arg2 = 0 ;
16609 size_t arg3 ;
16610 wxString *arg4 = 0 ;
16611 wxString result;
16612 bool temp1 = false ;
16613 bool temp2 = false ;
16614 size_t val3 ;
16615 int ecode3 = 0 ;
16616 bool temp4 = false ;
16617
16618 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16619 {
16620 arg1 = wxString_in_helper(swig_obj[0]);
16621 if (arg1 == NULL) SWIG_fail;
16622 temp1 = true;
16623 }
16624 {
16625 arg2 = wxString_in_helper(swig_obj[1]);
16626 if (arg2 == NULL) SWIG_fail;
16627 temp2 = true;
16628 }
16629 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16630 if (!SWIG_IsOK(ecode3)) {
16631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16632 }
16633 arg3 = static_cast< size_t >(val3);
16634 {
16635 arg4 = wxString_in_helper(swig_obj[3]);
16636 if (arg4 == NULL) SWIG_fail;
16637 temp4 = true;
16638 }
16639 {
16640 PyThreadState* __tstate = wxPyBeginAllowThreads();
16641 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16642 wxPyEndAllowThreads(__tstate);
16643 if (PyErr_Occurred()) SWIG_fail;
16644 }
16645 {
16646 #if wxUSE_UNICODE
16647 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16648 #else
16649 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16650 #endif
16651 }
16652 {
16653 if (temp1)
16654 delete arg1;
16655 }
16656 {
16657 if (temp2)
16658 delete arg2;
16659 }
16660 {
16661 if (temp4)
16662 delete arg4;
16663 }
16664 return resultobj;
16665 fail:
16666 {
16667 if (temp1)
16668 delete arg1;
16669 }
16670 {
16671 if (temp2)
16672 delete arg2;
16673 }
16674 {
16675 if (temp4)
16676 delete arg4;
16677 }
16678 return NULL;
16679 }
16680
16681
16682 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16683 int argc;
16684 PyObject *argv[5];
16685
16686 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16687 --argc;
16688 if (argc == 1) {
16689 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16690 }
16691 if (argc == 2) {
16692 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16693 }
16694 if (argc == 3) {
16695 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16696 }
16697 if (argc == 4) {
16698 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16699 }
16700
16701 fail:
16702 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16703 return NULL;
16704 }
16705
16706
16707 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16708 PyObject *resultobj = 0;
16709 wxEncodingConverter *result = 0 ;
16710
16711 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16712 {
16713 PyThreadState* __tstate = wxPyBeginAllowThreads();
16714 result = (wxEncodingConverter *)new wxEncodingConverter();
16715 wxPyEndAllowThreads(__tstate);
16716 if (PyErr_Occurred()) SWIG_fail;
16717 }
16718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16719 return resultobj;
16720 fail:
16721 return NULL;
16722 }
16723
16724
16725 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16726 PyObject *resultobj = 0;
16727 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16728 void *argp1 = 0 ;
16729 int res1 = 0 ;
16730 PyObject *swig_obj[1] ;
16731
16732 if (!args) SWIG_fail;
16733 swig_obj[0] = args;
16734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16735 if (!SWIG_IsOK(res1)) {
16736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16737 }
16738 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16739 {
16740 PyThreadState* __tstate = wxPyBeginAllowThreads();
16741 delete arg1;
16742
16743 wxPyEndAllowThreads(__tstate);
16744 if (PyErr_Occurred()) SWIG_fail;
16745 }
16746 resultobj = SWIG_Py_Void();
16747 return resultobj;
16748 fail:
16749 return NULL;
16750 }
16751
16752
16753 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16754 PyObject *resultobj = 0;
16755 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16756 wxFontEncoding arg2 ;
16757 wxFontEncoding arg3 ;
16758 int arg4 = (int) wxCONVERT_STRICT ;
16759 bool result;
16760 void *argp1 = 0 ;
16761 int res1 = 0 ;
16762 int val2 ;
16763 int ecode2 = 0 ;
16764 int val3 ;
16765 int ecode3 = 0 ;
16766 int val4 ;
16767 int ecode4 = 0 ;
16768 PyObject * obj0 = 0 ;
16769 PyObject * obj1 = 0 ;
16770 PyObject * obj2 = 0 ;
16771 PyObject * obj3 = 0 ;
16772 char * kwnames[] = {
16773 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16774 };
16775
16776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16778 if (!SWIG_IsOK(res1)) {
16779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16780 }
16781 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16782 ecode2 = SWIG_AsVal_int(obj1, &val2);
16783 if (!SWIG_IsOK(ecode2)) {
16784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16785 }
16786 arg2 = static_cast< wxFontEncoding >(val2);
16787 ecode3 = SWIG_AsVal_int(obj2, &val3);
16788 if (!SWIG_IsOK(ecode3)) {
16789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16790 }
16791 arg3 = static_cast< wxFontEncoding >(val3);
16792 if (obj3) {
16793 ecode4 = SWIG_AsVal_int(obj3, &val4);
16794 if (!SWIG_IsOK(ecode4)) {
16795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16796 }
16797 arg4 = static_cast< int >(val4);
16798 }
16799 {
16800 PyThreadState* __tstate = wxPyBeginAllowThreads();
16801 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16802 wxPyEndAllowThreads(__tstate);
16803 if (PyErr_Occurred()) SWIG_fail;
16804 }
16805 {
16806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16807 }
16808 return resultobj;
16809 fail:
16810 return NULL;
16811 }
16812
16813
16814 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16815 PyObject *resultobj = 0;
16816 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16817 wxString *arg2 = 0 ;
16818 wxString result;
16819 void *argp1 = 0 ;
16820 int res1 = 0 ;
16821 bool temp2 = false ;
16822 PyObject * obj0 = 0 ;
16823 PyObject * obj1 = 0 ;
16824 char * kwnames[] = {
16825 (char *) "self",(char *) "input", NULL
16826 };
16827
16828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
16829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16830 if (!SWIG_IsOK(res1)) {
16831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16832 }
16833 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16834 {
16835 arg2 = wxString_in_helper(obj1);
16836 if (arg2 == NULL) SWIG_fail;
16837 temp2 = true;
16838 }
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 result = (arg1)->Convert((wxString const &)*arg2);
16842 wxPyEndAllowThreads(__tstate);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 {
16846 #if wxUSE_UNICODE
16847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16848 #else
16849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16850 #endif
16851 }
16852 {
16853 if (temp2)
16854 delete arg2;
16855 }
16856 return resultobj;
16857 fail:
16858 {
16859 if (temp2)
16860 delete arg2;
16861 }
16862 return NULL;
16863 }
16864
16865
16866 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16867 PyObject *resultobj = 0;
16868 wxFontEncoding arg1 ;
16869 int arg2 = (int) wxPLATFORM_CURRENT ;
16870 wxFontEncodingArray result;
16871 int val1 ;
16872 int ecode1 = 0 ;
16873 int val2 ;
16874 int ecode2 = 0 ;
16875 PyObject * obj0 = 0 ;
16876 PyObject * obj1 = 0 ;
16877 char * kwnames[] = {
16878 (char *) "enc",(char *) "platform", NULL
16879 };
16880
16881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
16882 ecode1 = SWIG_AsVal_int(obj0, &val1);
16883 if (!SWIG_IsOK(ecode1)) {
16884 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16885 }
16886 arg1 = static_cast< wxFontEncoding >(val1);
16887 if (obj1) {
16888 ecode2 = SWIG_AsVal_int(obj1, &val2);
16889 if (!SWIG_IsOK(ecode2)) {
16890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
16891 }
16892 arg2 = static_cast< int >(val2);
16893 }
16894 {
16895 PyThreadState* __tstate = wxPyBeginAllowThreads();
16896 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
16897 wxPyEndAllowThreads(__tstate);
16898 if (PyErr_Occurred()) SWIG_fail;
16899 }
16900 {
16901 resultobj = PyList_New(0);
16902 for (size_t i=0; i < (&result)->GetCount(); i++) {
16903 PyObject* number = PyInt_FromLong((&result)->Item(i));
16904 PyList_Append(resultobj, number);
16905 Py_DECREF(number);
16906 }
16907 }
16908 return resultobj;
16909 fail:
16910 return NULL;
16911 }
16912
16913
16914 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16915 PyObject *resultobj = 0;
16916 wxFontEncoding arg1 ;
16917 wxFontEncodingArray result;
16918 int val1 ;
16919 int ecode1 = 0 ;
16920 PyObject * obj0 = 0 ;
16921 char * kwnames[] = {
16922 (char *) "enc", NULL
16923 };
16924
16925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
16926 ecode1 = SWIG_AsVal_int(obj0, &val1);
16927 if (!SWIG_IsOK(ecode1)) {
16928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16929 }
16930 arg1 = static_cast< wxFontEncoding >(val1);
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 result = wxEncodingConverter::GetAllEquivalents(arg1);
16934 wxPyEndAllowThreads(__tstate);
16935 if (PyErr_Occurred()) SWIG_fail;
16936 }
16937 {
16938 resultobj = PyList_New(0);
16939 for (size_t i=0; i < (&result)->GetCount(); i++) {
16940 PyObject* number = PyInt_FromLong((&result)->Item(i));
16941 PyList_Append(resultobj, number);
16942 Py_DECREF(number);
16943 }
16944 }
16945 return resultobj;
16946 fail:
16947 return NULL;
16948 }
16949
16950
16951 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16952 PyObject *resultobj = 0;
16953 wxFontEncoding arg1 ;
16954 wxFontEncoding arg2 ;
16955 bool result;
16956 int val1 ;
16957 int ecode1 = 0 ;
16958 int val2 ;
16959 int ecode2 = 0 ;
16960 PyObject * obj0 = 0 ;
16961 PyObject * obj1 = 0 ;
16962 char * kwnames[] = {
16963 (char *) "encIn",(char *) "encOut", NULL
16964 };
16965
16966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
16967 ecode1 = SWIG_AsVal_int(obj0, &val1);
16968 if (!SWIG_IsOK(ecode1)) {
16969 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16970 }
16971 arg1 = static_cast< wxFontEncoding >(val1);
16972 ecode2 = SWIG_AsVal_int(obj1, &val2);
16973 if (!SWIG_IsOK(ecode2)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16975 }
16976 arg2 = static_cast< wxFontEncoding >(val2);
16977 {
16978 PyThreadState* __tstate = wxPyBeginAllowThreads();
16979 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
16980 wxPyEndAllowThreads(__tstate);
16981 if (PyErr_Occurred()) SWIG_fail;
16982 }
16983 {
16984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16985 }
16986 return resultobj;
16987 fail:
16988 return NULL;
16989 }
16990
16991
16992 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16993 PyObject *obj;
16994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16995 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
16996 return SWIG_Py_Void();
16997 }
16998
16999 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17000 return SWIG_Python_InitShadowInstance(args);
17001 }
17002
17003 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17004 PyObject *resultobj = 0;
17005 wxDC *arg1 = (wxDC *) 0 ;
17006 void *argp1 = 0 ;
17007 int res1 = 0 ;
17008 PyObject *swig_obj[1] ;
17009
17010 if (!args) SWIG_fail;
17011 swig_obj[0] = args;
17012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17013 if (!SWIG_IsOK(res1)) {
17014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17015 }
17016 arg1 = reinterpret_cast< wxDC * >(argp1);
17017 {
17018 PyThreadState* __tstate = wxPyBeginAllowThreads();
17019 delete arg1;
17020
17021 wxPyEndAllowThreads(__tstate);
17022 if (PyErr_Occurred()) SWIG_fail;
17023 }
17024 resultobj = SWIG_Py_Void();
17025 return resultobj;
17026 fail:
17027 return NULL;
17028 }
17029
17030
17031 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17032 PyObject *resultobj = 0;
17033 wxDC *arg1 = (wxDC *) 0 ;
17034 int arg2 ;
17035 int arg3 ;
17036 wxColour *arg4 = 0 ;
17037 int arg5 = (int) wxFLOOD_SURFACE ;
17038 bool result;
17039 void *argp1 = 0 ;
17040 int res1 = 0 ;
17041 int val2 ;
17042 int ecode2 = 0 ;
17043 int val3 ;
17044 int ecode3 = 0 ;
17045 wxColour temp4 ;
17046 int val5 ;
17047 int ecode5 = 0 ;
17048 PyObject * obj0 = 0 ;
17049 PyObject * obj1 = 0 ;
17050 PyObject * obj2 = 0 ;
17051 PyObject * obj3 = 0 ;
17052 PyObject * obj4 = 0 ;
17053 char * kwnames[] = {
17054 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17055 };
17056
17057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17059 if (!SWIG_IsOK(res1)) {
17060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17061 }
17062 arg1 = reinterpret_cast< wxDC * >(argp1);
17063 ecode2 = SWIG_AsVal_int(obj1, &val2);
17064 if (!SWIG_IsOK(ecode2)) {
17065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17066 }
17067 arg2 = static_cast< int >(val2);
17068 ecode3 = SWIG_AsVal_int(obj2, &val3);
17069 if (!SWIG_IsOK(ecode3)) {
17070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17071 }
17072 arg3 = static_cast< int >(val3);
17073 {
17074 arg4 = &temp4;
17075 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17076 }
17077 if (obj4) {
17078 ecode5 = SWIG_AsVal_int(obj4, &val5);
17079 if (!SWIG_IsOK(ecode5)) {
17080 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17081 }
17082 arg5 = static_cast< int >(val5);
17083 }
17084 {
17085 PyThreadState* __tstate = wxPyBeginAllowThreads();
17086 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17087 wxPyEndAllowThreads(__tstate);
17088 if (PyErr_Occurred()) SWIG_fail;
17089 }
17090 {
17091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17092 }
17093 return resultobj;
17094 fail:
17095 return NULL;
17096 }
17097
17098
17099 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17100 PyObject *resultobj = 0;
17101 wxDC *arg1 = (wxDC *) 0 ;
17102 wxPoint *arg2 = 0 ;
17103 wxColour *arg3 = 0 ;
17104 int arg4 = (int) wxFLOOD_SURFACE ;
17105 bool result;
17106 void *argp1 = 0 ;
17107 int res1 = 0 ;
17108 wxPoint temp2 ;
17109 wxColour temp3 ;
17110 int val4 ;
17111 int ecode4 = 0 ;
17112 PyObject * obj0 = 0 ;
17113 PyObject * obj1 = 0 ;
17114 PyObject * obj2 = 0 ;
17115 PyObject * obj3 = 0 ;
17116 char * kwnames[] = {
17117 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17118 };
17119
17120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17122 if (!SWIG_IsOK(res1)) {
17123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17124 }
17125 arg1 = reinterpret_cast< wxDC * >(argp1);
17126 {
17127 arg2 = &temp2;
17128 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17129 }
17130 {
17131 arg3 = &temp3;
17132 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17133 }
17134 if (obj3) {
17135 ecode4 = SWIG_AsVal_int(obj3, &val4);
17136 if (!SWIG_IsOK(ecode4)) {
17137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17138 }
17139 arg4 = static_cast< int >(val4);
17140 }
17141 {
17142 PyThreadState* __tstate = wxPyBeginAllowThreads();
17143 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17144 wxPyEndAllowThreads(__tstate);
17145 if (PyErr_Occurred()) SWIG_fail;
17146 }
17147 {
17148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17149 }
17150 return resultobj;
17151 fail:
17152 return NULL;
17153 }
17154
17155
17156 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17157 PyObject *resultobj = 0;
17158 wxDC *arg1 = (wxDC *) 0 ;
17159 wxRect *arg2 = 0 ;
17160 wxColour *arg3 = 0 ;
17161 wxColour *arg4 = 0 ;
17162 wxPoint *arg5 = 0 ;
17163 void *argp1 = 0 ;
17164 int res1 = 0 ;
17165 wxRect temp2 ;
17166 wxColour temp3 ;
17167 wxColour temp4 ;
17168 wxPoint temp5 ;
17169 PyObject * obj0 = 0 ;
17170 PyObject * obj1 = 0 ;
17171 PyObject * obj2 = 0 ;
17172 PyObject * obj3 = 0 ;
17173 PyObject * obj4 = 0 ;
17174 char * kwnames[] = {
17175 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17176 };
17177
17178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17180 if (!SWIG_IsOK(res1)) {
17181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17182 }
17183 arg1 = reinterpret_cast< wxDC * >(argp1);
17184 {
17185 arg2 = &temp2;
17186 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17187 }
17188 {
17189 arg3 = &temp3;
17190 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17191 }
17192 {
17193 arg4 = &temp4;
17194 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17195 }
17196 {
17197 arg5 = &temp5;
17198 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17199 }
17200 {
17201 PyThreadState* __tstate = wxPyBeginAllowThreads();
17202 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
17206 resultobj = SWIG_Py_Void();
17207 return resultobj;
17208 fail:
17209 return NULL;
17210 }
17211
17212
17213 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj = 0;
17215 wxDC *arg1 = (wxDC *) 0 ;
17216 wxRect *arg2 = 0 ;
17217 wxColour *arg3 = 0 ;
17218 wxColour *arg4 = 0 ;
17219 wxDirection arg5 = (wxDirection) wxEAST ;
17220 void *argp1 = 0 ;
17221 int res1 = 0 ;
17222 wxRect temp2 ;
17223 wxColour temp3 ;
17224 wxColour temp4 ;
17225 int val5 ;
17226 int ecode5 = 0 ;
17227 PyObject * obj0 = 0 ;
17228 PyObject * obj1 = 0 ;
17229 PyObject * obj2 = 0 ;
17230 PyObject * obj3 = 0 ;
17231 PyObject * obj4 = 0 ;
17232 char * kwnames[] = {
17233 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17234 };
17235
17236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17238 if (!SWIG_IsOK(res1)) {
17239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17240 }
17241 arg1 = reinterpret_cast< wxDC * >(argp1);
17242 {
17243 arg2 = &temp2;
17244 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17245 }
17246 {
17247 arg3 = &temp3;
17248 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17249 }
17250 {
17251 arg4 = &temp4;
17252 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17253 }
17254 if (obj4) {
17255 ecode5 = SWIG_AsVal_int(obj4, &val5);
17256 if (!SWIG_IsOK(ecode5)) {
17257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17258 }
17259 arg5 = static_cast< wxDirection >(val5);
17260 }
17261 {
17262 PyThreadState* __tstate = wxPyBeginAllowThreads();
17263 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17264 wxPyEndAllowThreads(__tstate);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 resultobj = SWIG_Py_Void();
17268 return resultobj;
17269 fail:
17270 return NULL;
17271 }
17272
17273
17274 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17275 PyObject *resultobj = 0;
17276 wxDC *arg1 = (wxDC *) 0 ;
17277 int arg2 ;
17278 int arg3 ;
17279 wxColour result;
17280 void *argp1 = 0 ;
17281 int res1 = 0 ;
17282 int val2 ;
17283 int ecode2 = 0 ;
17284 int val3 ;
17285 int ecode3 = 0 ;
17286 PyObject * obj0 = 0 ;
17287 PyObject * obj1 = 0 ;
17288 PyObject * obj2 = 0 ;
17289 char * kwnames[] = {
17290 (char *) "self",(char *) "x",(char *) "y", NULL
17291 };
17292
17293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17295 if (!SWIG_IsOK(res1)) {
17296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17297 }
17298 arg1 = reinterpret_cast< wxDC * >(argp1);
17299 ecode2 = SWIG_AsVal_int(obj1, &val2);
17300 if (!SWIG_IsOK(ecode2)) {
17301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17302 }
17303 arg2 = static_cast< int >(val2);
17304 ecode3 = SWIG_AsVal_int(obj2, &val3);
17305 if (!SWIG_IsOK(ecode3)) {
17306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17307 }
17308 arg3 = static_cast< int >(val3);
17309 {
17310 PyThreadState* __tstate = wxPyBeginAllowThreads();
17311 result = wxDC_GetPixel(arg1,arg2,arg3);
17312 wxPyEndAllowThreads(__tstate);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 }
17315 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17316 return resultobj;
17317 fail:
17318 return NULL;
17319 }
17320
17321
17322 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17323 PyObject *resultobj = 0;
17324 wxDC *arg1 = (wxDC *) 0 ;
17325 wxPoint *arg2 = 0 ;
17326 wxColour result;
17327 void *argp1 = 0 ;
17328 int res1 = 0 ;
17329 wxPoint temp2 ;
17330 PyObject * obj0 = 0 ;
17331 PyObject * obj1 = 0 ;
17332 char * kwnames[] = {
17333 (char *) "self",(char *) "pt", NULL
17334 };
17335
17336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17338 if (!SWIG_IsOK(res1)) {
17339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17340 }
17341 arg1 = reinterpret_cast< wxDC * >(argp1);
17342 {
17343 arg2 = &temp2;
17344 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17345 }
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17353 return resultobj;
17354 fail:
17355 return NULL;
17356 }
17357
17358
17359 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17360 PyObject *resultobj = 0;
17361 wxDC *arg1 = (wxDC *) 0 ;
17362 int arg2 ;
17363 int arg3 ;
17364 int arg4 ;
17365 int arg5 ;
17366 void *argp1 = 0 ;
17367 int res1 = 0 ;
17368 int val2 ;
17369 int ecode2 = 0 ;
17370 int val3 ;
17371 int ecode3 = 0 ;
17372 int val4 ;
17373 int ecode4 = 0 ;
17374 int val5 ;
17375 int ecode5 = 0 ;
17376 PyObject * obj0 = 0 ;
17377 PyObject * obj1 = 0 ;
17378 PyObject * obj2 = 0 ;
17379 PyObject * obj3 = 0 ;
17380 PyObject * obj4 = 0 ;
17381 char * kwnames[] = {
17382 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17383 };
17384
17385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17387 if (!SWIG_IsOK(res1)) {
17388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17389 }
17390 arg1 = reinterpret_cast< wxDC * >(argp1);
17391 ecode2 = SWIG_AsVal_int(obj1, &val2);
17392 if (!SWIG_IsOK(ecode2)) {
17393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17394 }
17395 arg2 = static_cast< int >(val2);
17396 ecode3 = SWIG_AsVal_int(obj2, &val3);
17397 if (!SWIG_IsOK(ecode3)) {
17398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17399 }
17400 arg3 = static_cast< int >(val3);
17401 ecode4 = SWIG_AsVal_int(obj3, &val4);
17402 if (!SWIG_IsOK(ecode4)) {
17403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17404 }
17405 arg4 = static_cast< int >(val4);
17406 ecode5 = SWIG_AsVal_int(obj4, &val5);
17407 if (!SWIG_IsOK(ecode5)) {
17408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17409 }
17410 arg5 = static_cast< int >(val5);
17411 {
17412 PyThreadState* __tstate = wxPyBeginAllowThreads();
17413 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17414 wxPyEndAllowThreads(__tstate);
17415 if (PyErr_Occurred()) SWIG_fail;
17416 }
17417 resultobj = SWIG_Py_Void();
17418 return resultobj;
17419 fail:
17420 return NULL;
17421 }
17422
17423
17424 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17425 PyObject *resultobj = 0;
17426 wxDC *arg1 = (wxDC *) 0 ;
17427 wxPoint *arg2 = 0 ;
17428 wxPoint *arg3 = 0 ;
17429 void *argp1 = 0 ;
17430 int res1 = 0 ;
17431 wxPoint temp2 ;
17432 wxPoint temp3 ;
17433 PyObject * obj0 = 0 ;
17434 PyObject * obj1 = 0 ;
17435 PyObject * obj2 = 0 ;
17436 char * kwnames[] = {
17437 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17438 };
17439
17440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17442 if (!SWIG_IsOK(res1)) {
17443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17444 }
17445 arg1 = reinterpret_cast< wxDC * >(argp1);
17446 {
17447 arg2 = &temp2;
17448 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17449 }
17450 {
17451 arg3 = &temp3;
17452 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17453 }
17454 {
17455 PyThreadState* __tstate = wxPyBeginAllowThreads();
17456 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17457 wxPyEndAllowThreads(__tstate);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 }
17460 resultobj = SWIG_Py_Void();
17461 return resultobj;
17462 fail:
17463 return NULL;
17464 }
17465
17466
17467 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17468 PyObject *resultobj = 0;
17469 wxDC *arg1 = (wxDC *) 0 ;
17470 int arg2 ;
17471 int arg3 ;
17472 void *argp1 = 0 ;
17473 int res1 = 0 ;
17474 int val2 ;
17475 int ecode2 = 0 ;
17476 int val3 ;
17477 int ecode3 = 0 ;
17478 PyObject * obj0 = 0 ;
17479 PyObject * obj1 = 0 ;
17480 PyObject * obj2 = 0 ;
17481 char * kwnames[] = {
17482 (char *) "self",(char *) "x",(char *) "y", NULL
17483 };
17484
17485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17487 if (!SWIG_IsOK(res1)) {
17488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17489 }
17490 arg1 = reinterpret_cast< wxDC * >(argp1);
17491 ecode2 = SWIG_AsVal_int(obj1, &val2);
17492 if (!SWIG_IsOK(ecode2)) {
17493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17494 }
17495 arg2 = static_cast< int >(val2);
17496 ecode3 = SWIG_AsVal_int(obj2, &val3);
17497 if (!SWIG_IsOK(ecode3)) {
17498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17499 }
17500 arg3 = static_cast< int >(val3);
17501 {
17502 PyThreadState* __tstate = wxPyBeginAllowThreads();
17503 (arg1)->CrossHair(arg2,arg3);
17504 wxPyEndAllowThreads(__tstate);
17505 if (PyErr_Occurred()) SWIG_fail;
17506 }
17507 resultobj = SWIG_Py_Void();
17508 return resultobj;
17509 fail:
17510 return NULL;
17511 }
17512
17513
17514 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17515 PyObject *resultobj = 0;
17516 wxDC *arg1 = (wxDC *) 0 ;
17517 wxPoint *arg2 = 0 ;
17518 void *argp1 = 0 ;
17519 int res1 = 0 ;
17520 wxPoint temp2 ;
17521 PyObject * obj0 = 0 ;
17522 PyObject * obj1 = 0 ;
17523 char * kwnames[] = {
17524 (char *) "self",(char *) "pt", NULL
17525 };
17526
17527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17529 if (!SWIG_IsOK(res1)) {
17530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17531 }
17532 arg1 = reinterpret_cast< wxDC * >(argp1);
17533 {
17534 arg2 = &temp2;
17535 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17536 }
17537 {
17538 PyThreadState* __tstate = wxPyBeginAllowThreads();
17539 (arg1)->CrossHair((wxPoint const &)*arg2);
17540 wxPyEndAllowThreads(__tstate);
17541 if (PyErr_Occurred()) SWIG_fail;
17542 }
17543 resultobj = SWIG_Py_Void();
17544 return resultobj;
17545 fail:
17546 return NULL;
17547 }
17548
17549
17550 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17551 PyObject *resultobj = 0;
17552 wxDC *arg1 = (wxDC *) 0 ;
17553 int arg2 ;
17554 int arg3 ;
17555 int arg4 ;
17556 int arg5 ;
17557 int arg6 ;
17558 int arg7 ;
17559 void *argp1 = 0 ;
17560 int res1 = 0 ;
17561 int val2 ;
17562 int ecode2 = 0 ;
17563 int val3 ;
17564 int ecode3 = 0 ;
17565 int val4 ;
17566 int ecode4 = 0 ;
17567 int val5 ;
17568 int ecode5 = 0 ;
17569 int val6 ;
17570 int ecode6 = 0 ;
17571 int val7 ;
17572 int ecode7 = 0 ;
17573 PyObject * obj0 = 0 ;
17574 PyObject * obj1 = 0 ;
17575 PyObject * obj2 = 0 ;
17576 PyObject * obj3 = 0 ;
17577 PyObject * obj4 = 0 ;
17578 PyObject * obj5 = 0 ;
17579 PyObject * obj6 = 0 ;
17580 char * kwnames[] = {
17581 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17582 };
17583
17584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17586 if (!SWIG_IsOK(res1)) {
17587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17588 }
17589 arg1 = reinterpret_cast< wxDC * >(argp1);
17590 ecode2 = SWIG_AsVal_int(obj1, &val2);
17591 if (!SWIG_IsOK(ecode2)) {
17592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17593 }
17594 arg2 = static_cast< int >(val2);
17595 ecode3 = SWIG_AsVal_int(obj2, &val3);
17596 if (!SWIG_IsOK(ecode3)) {
17597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17598 }
17599 arg3 = static_cast< int >(val3);
17600 ecode4 = SWIG_AsVal_int(obj3, &val4);
17601 if (!SWIG_IsOK(ecode4)) {
17602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17603 }
17604 arg4 = static_cast< int >(val4);
17605 ecode5 = SWIG_AsVal_int(obj4, &val5);
17606 if (!SWIG_IsOK(ecode5)) {
17607 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17608 }
17609 arg5 = static_cast< int >(val5);
17610 ecode6 = SWIG_AsVal_int(obj5, &val6);
17611 if (!SWIG_IsOK(ecode6)) {
17612 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17613 }
17614 arg6 = static_cast< int >(val6);
17615 ecode7 = SWIG_AsVal_int(obj6, &val7);
17616 if (!SWIG_IsOK(ecode7)) {
17617 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17618 }
17619 arg7 = static_cast< int >(val7);
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_Py_Void();
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj = 0;
17635 wxDC *arg1 = (wxDC *) 0 ;
17636 wxPoint *arg2 = 0 ;
17637 wxPoint *arg3 = 0 ;
17638 wxPoint *arg4 = 0 ;
17639 void *argp1 = 0 ;
17640 int res1 = 0 ;
17641 wxPoint temp2 ;
17642 wxPoint temp3 ;
17643 wxPoint temp4 ;
17644 PyObject * obj0 = 0 ;
17645 PyObject * obj1 = 0 ;
17646 PyObject * obj2 = 0 ;
17647 PyObject * obj3 = 0 ;
17648 char * kwnames[] = {
17649 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17650 };
17651
17652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17654 if (!SWIG_IsOK(res1)) {
17655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17656 }
17657 arg1 = reinterpret_cast< wxDC * >(argp1);
17658 {
17659 arg2 = &temp2;
17660 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17661 }
17662 {
17663 arg3 = &temp3;
17664 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17665 }
17666 {
17667 arg4 = &temp4;
17668 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17669 }
17670 {
17671 PyThreadState* __tstate = wxPyBeginAllowThreads();
17672 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17673 wxPyEndAllowThreads(__tstate);
17674 if (PyErr_Occurred()) SWIG_fail;
17675 }
17676 resultobj = SWIG_Py_Void();
17677 return resultobj;
17678 fail:
17679 return NULL;
17680 }
17681
17682
17683 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17684 PyObject *resultobj = 0;
17685 wxDC *arg1 = (wxDC *) 0 ;
17686 int arg2 ;
17687 int arg3 ;
17688 int arg4 ;
17689 int arg5 ;
17690 void *argp1 = 0 ;
17691 int res1 = 0 ;
17692 int val2 ;
17693 int ecode2 = 0 ;
17694 int val3 ;
17695 int ecode3 = 0 ;
17696 int val4 ;
17697 int ecode4 = 0 ;
17698 int val5 ;
17699 int ecode5 = 0 ;
17700 PyObject * obj0 = 0 ;
17701 PyObject * obj1 = 0 ;
17702 PyObject * obj2 = 0 ;
17703 PyObject * obj3 = 0 ;
17704 PyObject * obj4 = 0 ;
17705 char * kwnames[] = {
17706 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17707 };
17708
17709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17711 if (!SWIG_IsOK(res1)) {
17712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17713 }
17714 arg1 = reinterpret_cast< wxDC * >(argp1);
17715 ecode2 = SWIG_AsVal_int(obj1, &val2);
17716 if (!SWIG_IsOK(ecode2)) {
17717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17718 }
17719 arg2 = static_cast< int >(val2);
17720 ecode3 = SWIG_AsVal_int(obj2, &val3);
17721 if (!SWIG_IsOK(ecode3)) {
17722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17723 }
17724 arg3 = static_cast< int >(val3);
17725 ecode4 = SWIG_AsVal_int(obj3, &val4);
17726 if (!SWIG_IsOK(ecode4)) {
17727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17728 }
17729 arg4 = static_cast< int >(val4);
17730 ecode5 = SWIG_AsVal_int(obj4, &val5);
17731 if (!SWIG_IsOK(ecode5)) {
17732 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17733 }
17734 arg5 = static_cast< int >(val5);
17735 {
17736 PyThreadState* __tstate = wxPyBeginAllowThreads();
17737 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17738 wxPyEndAllowThreads(__tstate);
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 resultobj = SWIG_Py_Void();
17742 return resultobj;
17743 fail:
17744 return NULL;
17745 }
17746
17747
17748 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17749 PyObject *resultobj = 0;
17750 wxDC *arg1 = (wxDC *) 0 ;
17751 wxRect *arg2 = 0 ;
17752 void *argp1 = 0 ;
17753 int res1 = 0 ;
17754 wxRect temp2 ;
17755 PyObject * obj0 = 0 ;
17756 PyObject * obj1 = 0 ;
17757 char * kwnames[] = {
17758 (char *) "self",(char *) "rect", NULL
17759 };
17760
17761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17763 if (!SWIG_IsOK(res1)) {
17764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17765 }
17766 arg1 = reinterpret_cast< wxDC * >(argp1);
17767 {
17768 arg2 = &temp2;
17769 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17770 }
17771 {
17772 PyThreadState* __tstate = wxPyBeginAllowThreads();
17773 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17774 wxPyEndAllowThreads(__tstate);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
17777 resultobj = SWIG_Py_Void();
17778 return resultobj;
17779 fail:
17780 return NULL;
17781 }
17782
17783
17784 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17785 PyObject *resultobj = 0;
17786 wxDC *arg1 = (wxDC *) 0 ;
17787 int arg2 ;
17788 int arg3 ;
17789 int arg4 ;
17790 int arg5 ;
17791 double arg6 ;
17792 double arg7 ;
17793 void *argp1 = 0 ;
17794 int res1 = 0 ;
17795 int val2 ;
17796 int ecode2 = 0 ;
17797 int val3 ;
17798 int ecode3 = 0 ;
17799 int val4 ;
17800 int ecode4 = 0 ;
17801 int val5 ;
17802 int ecode5 = 0 ;
17803 double val6 ;
17804 int ecode6 = 0 ;
17805 double val7 ;
17806 int ecode7 = 0 ;
17807 PyObject * obj0 = 0 ;
17808 PyObject * obj1 = 0 ;
17809 PyObject * obj2 = 0 ;
17810 PyObject * obj3 = 0 ;
17811 PyObject * obj4 = 0 ;
17812 PyObject * obj5 = 0 ;
17813 PyObject * obj6 = 0 ;
17814 char * kwnames[] = {
17815 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17816 };
17817
17818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17820 if (!SWIG_IsOK(res1)) {
17821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
17822 }
17823 arg1 = reinterpret_cast< wxDC * >(argp1);
17824 ecode2 = SWIG_AsVal_int(obj1, &val2);
17825 if (!SWIG_IsOK(ecode2)) {
17826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
17827 }
17828 arg2 = static_cast< int >(val2);
17829 ecode3 = SWIG_AsVal_int(obj2, &val3);
17830 if (!SWIG_IsOK(ecode3)) {
17831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
17832 }
17833 arg3 = static_cast< int >(val3);
17834 ecode4 = SWIG_AsVal_int(obj3, &val4);
17835 if (!SWIG_IsOK(ecode4)) {
17836 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
17837 }
17838 arg4 = static_cast< int >(val4);
17839 ecode5 = SWIG_AsVal_int(obj4, &val5);
17840 if (!SWIG_IsOK(ecode5)) {
17841 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
17842 }
17843 arg5 = static_cast< int >(val5);
17844 ecode6 = SWIG_AsVal_double(obj5, &val6);
17845 if (!SWIG_IsOK(ecode6)) {
17846 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
17847 }
17848 arg6 = static_cast< double >(val6);
17849 ecode7 = SWIG_AsVal_double(obj6, &val7);
17850 if (!SWIG_IsOK(ecode7)) {
17851 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
17852 }
17853 arg7 = static_cast< double >(val7);
17854 {
17855 PyThreadState* __tstate = wxPyBeginAllowThreads();
17856 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
17857 wxPyEndAllowThreads(__tstate);
17858 if (PyErr_Occurred()) SWIG_fail;
17859 }
17860 resultobj = SWIG_Py_Void();
17861 return resultobj;
17862 fail:
17863 return NULL;
17864 }
17865
17866
17867 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17868 PyObject *resultobj = 0;
17869 wxDC *arg1 = (wxDC *) 0 ;
17870 wxPoint *arg2 = 0 ;
17871 wxSize *arg3 = 0 ;
17872 double arg4 ;
17873 double arg5 ;
17874 void *argp1 = 0 ;
17875 int res1 = 0 ;
17876 wxPoint temp2 ;
17877 wxSize temp3 ;
17878 double val4 ;
17879 int ecode4 = 0 ;
17880 double val5 ;
17881 int ecode5 = 0 ;
17882 PyObject * obj0 = 0 ;
17883 PyObject * obj1 = 0 ;
17884 PyObject * obj2 = 0 ;
17885 PyObject * obj3 = 0 ;
17886 PyObject * obj4 = 0 ;
17887 char * kwnames[] = {
17888 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
17889 };
17890
17891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17893 if (!SWIG_IsOK(res1)) {
17894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17895 }
17896 arg1 = reinterpret_cast< wxDC * >(argp1);
17897 {
17898 arg2 = &temp2;
17899 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17900 }
17901 {
17902 arg3 = &temp3;
17903 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17904 }
17905 ecode4 = SWIG_AsVal_double(obj3, &val4);
17906 if (!SWIG_IsOK(ecode4)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
17908 }
17909 arg4 = static_cast< double >(val4);
17910 ecode5 = SWIG_AsVal_double(obj4, &val5);
17911 if (!SWIG_IsOK(ecode5)) {
17912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
17913 }
17914 arg5 = static_cast< double >(val5);
17915 {
17916 PyThreadState* __tstate = wxPyBeginAllowThreads();
17917 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
17918 wxPyEndAllowThreads(__tstate);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 }
17921 resultobj = SWIG_Py_Void();
17922 return resultobj;
17923 fail:
17924 return NULL;
17925 }
17926
17927
17928 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17929 PyObject *resultobj = 0;
17930 wxDC *arg1 = (wxDC *) 0 ;
17931 int arg2 ;
17932 int arg3 ;
17933 void *argp1 = 0 ;
17934 int res1 = 0 ;
17935 int val2 ;
17936 int ecode2 = 0 ;
17937 int val3 ;
17938 int ecode3 = 0 ;
17939 PyObject * obj0 = 0 ;
17940 PyObject * obj1 = 0 ;
17941 PyObject * obj2 = 0 ;
17942 char * kwnames[] = {
17943 (char *) "self",(char *) "x",(char *) "y", NULL
17944 };
17945
17946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17948 if (!SWIG_IsOK(res1)) {
17949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17950 }
17951 arg1 = reinterpret_cast< wxDC * >(argp1);
17952 ecode2 = SWIG_AsVal_int(obj1, &val2);
17953 if (!SWIG_IsOK(ecode2)) {
17954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
17955 }
17956 arg2 = static_cast< int >(val2);
17957 ecode3 = SWIG_AsVal_int(obj2, &val3);
17958 if (!SWIG_IsOK(ecode3)) {
17959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
17960 }
17961 arg3 = static_cast< int >(val3);
17962 {
17963 PyThreadState* __tstate = wxPyBeginAllowThreads();
17964 (arg1)->DrawPoint(arg2,arg3);
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_Py_Void();
17969 return resultobj;
17970 fail:
17971 return NULL;
17972 }
17973
17974
17975 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj = 0;
17977 wxDC *arg1 = (wxDC *) 0 ;
17978 wxPoint *arg2 = 0 ;
17979 void *argp1 = 0 ;
17980 int res1 = 0 ;
17981 wxPoint temp2 ;
17982 PyObject * obj0 = 0 ;
17983 PyObject * obj1 = 0 ;
17984 char * kwnames[] = {
17985 (char *) "self",(char *) "pt", NULL
17986 };
17987
17988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17990 if (!SWIG_IsOK(res1)) {
17991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17992 }
17993 arg1 = reinterpret_cast< wxDC * >(argp1);
17994 {
17995 arg2 = &temp2;
17996 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17997 }
17998 {
17999 PyThreadState* __tstate = wxPyBeginAllowThreads();
18000 (arg1)->DrawPoint((wxPoint const &)*arg2);
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 resultobj = SWIG_Py_Void();
18005 return resultobj;
18006 fail:
18007 return NULL;
18008 }
18009
18010
18011 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj = 0;
18013 wxDC *arg1 = (wxDC *) 0 ;
18014 int arg2 ;
18015 int arg3 ;
18016 int arg4 ;
18017 int arg5 ;
18018 void *argp1 = 0 ;
18019 int res1 = 0 ;
18020 int val2 ;
18021 int ecode2 = 0 ;
18022 int val3 ;
18023 int ecode3 = 0 ;
18024 int val4 ;
18025 int ecode4 = 0 ;
18026 int val5 ;
18027 int ecode5 = 0 ;
18028 PyObject * obj0 = 0 ;
18029 PyObject * obj1 = 0 ;
18030 PyObject * obj2 = 0 ;
18031 PyObject * obj3 = 0 ;
18032 PyObject * obj4 = 0 ;
18033 char * kwnames[] = {
18034 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18035 };
18036
18037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18039 if (!SWIG_IsOK(res1)) {
18040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18041 }
18042 arg1 = reinterpret_cast< wxDC * >(argp1);
18043 ecode2 = SWIG_AsVal_int(obj1, &val2);
18044 if (!SWIG_IsOK(ecode2)) {
18045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18046 }
18047 arg2 = static_cast< int >(val2);
18048 ecode3 = SWIG_AsVal_int(obj2, &val3);
18049 if (!SWIG_IsOK(ecode3)) {
18050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18051 }
18052 arg3 = static_cast< int >(val3);
18053 ecode4 = SWIG_AsVal_int(obj3, &val4);
18054 if (!SWIG_IsOK(ecode4)) {
18055 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18056 }
18057 arg4 = static_cast< int >(val4);
18058 ecode5 = SWIG_AsVal_int(obj4, &val5);
18059 if (!SWIG_IsOK(ecode5)) {
18060 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18061 }
18062 arg5 = static_cast< int >(val5);
18063 {
18064 PyThreadState* __tstate = wxPyBeginAllowThreads();
18065 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18066 wxPyEndAllowThreads(__tstate);
18067 if (PyErr_Occurred()) SWIG_fail;
18068 }
18069 resultobj = SWIG_Py_Void();
18070 return resultobj;
18071 fail:
18072 return NULL;
18073 }
18074
18075
18076 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18077 PyObject *resultobj = 0;
18078 wxDC *arg1 = (wxDC *) 0 ;
18079 wxRect *arg2 = 0 ;
18080 void *argp1 = 0 ;
18081 int res1 = 0 ;
18082 wxRect temp2 ;
18083 PyObject * obj0 = 0 ;
18084 PyObject * obj1 = 0 ;
18085 char * kwnames[] = {
18086 (char *) "self",(char *) "rect", NULL
18087 };
18088
18089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18091 if (!SWIG_IsOK(res1)) {
18092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18093 }
18094 arg1 = reinterpret_cast< wxDC * >(argp1);
18095 {
18096 arg2 = &temp2;
18097 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18098 }
18099 {
18100 PyThreadState* __tstate = wxPyBeginAllowThreads();
18101 (arg1)->DrawRectangle((wxRect const &)*arg2);
18102 wxPyEndAllowThreads(__tstate);
18103 if (PyErr_Occurred()) SWIG_fail;
18104 }
18105 resultobj = SWIG_Py_Void();
18106 return resultobj;
18107 fail:
18108 return NULL;
18109 }
18110
18111
18112 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18113 PyObject *resultobj = 0;
18114 wxDC *arg1 = (wxDC *) 0 ;
18115 wxPoint *arg2 = 0 ;
18116 wxSize *arg3 = 0 ;
18117 void *argp1 = 0 ;
18118 int res1 = 0 ;
18119 wxPoint temp2 ;
18120 wxSize temp3 ;
18121 PyObject * obj0 = 0 ;
18122 PyObject * obj1 = 0 ;
18123 PyObject * obj2 = 0 ;
18124 char * kwnames[] = {
18125 (char *) "self",(char *) "pt",(char *) "sz", NULL
18126 };
18127
18128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18130 if (!SWIG_IsOK(res1)) {
18131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18132 }
18133 arg1 = reinterpret_cast< wxDC * >(argp1);
18134 {
18135 arg2 = &temp2;
18136 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18137 }
18138 {
18139 arg3 = &temp3;
18140 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18141 }
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 resultobj = SWIG_Py_Void();
18149 return resultobj;
18150 fail:
18151 return NULL;
18152 }
18153
18154
18155 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj = 0;
18157 wxDC *arg1 = (wxDC *) 0 ;
18158 int arg2 ;
18159 int arg3 ;
18160 int arg4 ;
18161 int arg5 ;
18162 double arg6 ;
18163 void *argp1 = 0 ;
18164 int res1 = 0 ;
18165 int val2 ;
18166 int ecode2 = 0 ;
18167 int val3 ;
18168 int ecode3 = 0 ;
18169 int val4 ;
18170 int ecode4 = 0 ;
18171 int val5 ;
18172 int ecode5 = 0 ;
18173 double val6 ;
18174 int ecode6 = 0 ;
18175 PyObject * obj0 = 0 ;
18176 PyObject * obj1 = 0 ;
18177 PyObject * obj2 = 0 ;
18178 PyObject * obj3 = 0 ;
18179 PyObject * obj4 = 0 ;
18180 PyObject * obj5 = 0 ;
18181 char * kwnames[] = {
18182 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18183 };
18184
18185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18187 if (!SWIG_IsOK(res1)) {
18188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18189 }
18190 arg1 = reinterpret_cast< wxDC * >(argp1);
18191 ecode2 = SWIG_AsVal_int(obj1, &val2);
18192 if (!SWIG_IsOK(ecode2)) {
18193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18194 }
18195 arg2 = static_cast< int >(val2);
18196 ecode3 = SWIG_AsVal_int(obj2, &val3);
18197 if (!SWIG_IsOK(ecode3)) {
18198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18199 }
18200 arg3 = static_cast< int >(val3);
18201 ecode4 = SWIG_AsVal_int(obj3, &val4);
18202 if (!SWIG_IsOK(ecode4)) {
18203 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18204 }
18205 arg4 = static_cast< int >(val4);
18206 ecode5 = SWIG_AsVal_int(obj4, &val5);
18207 if (!SWIG_IsOK(ecode5)) {
18208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18209 }
18210 arg5 = static_cast< int >(val5);
18211 ecode6 = SWIG_AsVal_double(obj5, &val6);
18212 if (!SWIG_IsOK(ecode6)) {
18213 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18214 }
18215 arg6 = static_cast< double >(val6);
18216 {
18217 PyThreadState* __tstate = wxPyBeginAllowThreads();
18218 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18219 wxPyEndAllowThreads(__tstate);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 resultobj = SWIG_Py_Void();
18223 return resultobj;
18224 fail:
18225 return NULL;
18226 }
18227
18228
18229 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18230 PyObject *resultobj = 0;
18231 wxDC *arg1 = (wxDC *) 0 ;
18232 wxRect *arg2 = 0 ;
18233 double arg3 ;
18234 void *argp1 = 0 ;
18235 int res1 = 0 ;
18236 wxRect temp2 ;
18237 double val3 ;
18238 int ecode3 = 0 ;
18239 PyObject * obj0 = 0 ;
18240 PyObject * obj1 = 0 ;
18241 PyObject * obj2 = 0 ;
18242 char * kwnames[] = {
18243 (char *) "self",(char *) "r",(char *) "radius", NULL
18244 };
18245
18246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18248 if (!SWIG_IsOK(res1)) {
18249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18250 }
18251 arg1 = reinterpret_cast< wxDC * >(argp1);
18252 {
18253 arg2 = &temp2;
18254 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18255 }
18256 ecode3 = SWIG_AsVal_double(obj2, &val3);
18257 if (!SWIG_IsOK(ecode3)) {
18258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18259 }
18260 arg3 = static_cast< double >(val3);
18261 {
18262 PyThreadState* __tstate = wxPyBeginAllowThreads();
18263 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18264 wxPyEndAllowThreads(__tstate);
18265 if (PyErr_Occurred()) SWIG_fail;
18266 }
18267 resultobj = SWIG_Py_Void();
18268 return resultobj;
18269 fail:
18270 return NULL;
18271 }
18272
18273
18274 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18275 PyObject *resultobj = 0;
18276 wxDC *arg1 = (wxDC *) 0 ;
18277 wxPoint *arg2 = 0 ;
18278 wxSize *arg3 = 0 ;
18279 double arg4 ;
18280 void *argp1 = 0 ;
18281 int res1 = 0 ;
18282 wxPoint temp2 ;
18283 wxSize temp3 ;
18284 double val4 ;
18285 int ecode4 = 0 ;
18286 PyObject * obj0 = 0 ;
18287 PyObject * obj1 = 0 ;
18288 PyObject * obj2 = 0 ;
18289 PyObject * obj3 = 0 ;
18290 char * kwnames[] = {
18291 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18292 };
18293
18294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18296 if (!SWIG_IsOK(res1)) {
18297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18298 }
18299 arg1 = reinterpret_cast< wxDC * >(argp1);
18300 {
18301 arg2 = &temp2;
18302 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18303 }
18304 {
18305 arg3 = &temp3;
18306 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18307 }
18308 ecode4 = SWIG_AsVal_double(obj3, &val4);
18309 if (!SWIG_IsOK(ecode4)) {
18310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18311 }
18312 arg4 = static_cast< double >(val4);
18313 {
18314 PyThreadState* __tstate = wxPyBeginAllowThreads();
18315 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 resultobj = SWIG_Py_Void();
18320 return resultobj;
18321 fail:
18322 return NULL;
18323 }
18324
18325
18326 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj = 0;
18328 wxDC *arg1 = (wxDC *) 0 ;
18329 int arg2 ;
18330 int arg3 ;
18331 int arg4 ;
18332 void *argp1 = 0 ;
18333 int res1 = 0 ;
18334 int val2 ;
18335 int ecode2 = 0 ;
18336 int val3 ;
18337 int ecode3 = 0 ;
18338 int val4 ;
18339 int ecode4 = 0 ;
18340 PyObject * obj0 = 0 ;
18341 PyObject * obj1 = 0 ;
18342 PyObject * obj2 = 0 ;
18343 PyObject * obj3 = 0 ;
18344 char * kwnames[] = {
18345 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18346 };
18347
18348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18350 if (!SWIG_IsOK(res1)) {
18351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18352 }
18353 arg1 = reinterpret_cast< wxDC * >(argp1);
18354 ecode2 = SWIG_AsVal_int(obj1, &val2);
18355 if (!SWIG_IsOK(ecode2)) {
18356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18357 }
18358 arg2 = static_cast< int >(val2);
18359 ecode3 = SWIG_AsVal_int(obj2, &val3);
18360 if (!SWIG_IsOK(ecode3)) {
18361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18362 }
18363 arg3 = static_cast< int >(val3);
18364 ecode4 = SWIG_AsVal_int(obj3, &val4);
18365 if (!SWIG_IsOK(ecode4)) {
18366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18367 }
18368 arg4 = static_cast< int >(val4);
18369 {
18370 PyThreadState* __tstate = wxPyBeginAllowThreads();
18371 (arg1)->DrawCircle(arg2,arg3,arg4);
18372 wxPyEndAllowThreads(__tstate);
18373 if (PyErr_Occurred()) SWIG_fail;
18374 }
18375 resultobj = SWIG_Py_Void();
18376 return resultobj;
18377 fail:
18378 return NULL;
18379 }
18380
18381
18382 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18383 PyObject *resultobj = 0;
18384 wxDC *arg1 = (wxDC *) 0 ;
18385 wxPoint *arg2 = 0 ;
18386 int arg3 ;
18387 void *argp1 = 0 ;
18388 int res1 = 0 ;
18389 wxPoint temp2 ;
18390 int val3 ;
18391 int ecode3 = 0 ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 PyObject * obj2 = 0 ;
18395 char * kwnames[] = {
18396 (char *) "self",(char *) "pt",(char *) "radius", NULL
18397 };
18398
18399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18401 if (!SWIG_IsOK(res1)) {
18402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18403 }
18404 arg1 = reinterpret_cast< wxDC * >(argp1);
18405 {
18406 arg2 = &temp2;
18407 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18408 }
18409 ecode3 = SWIG_AsVal_int(obj2, &val3);
18410 if (!SWIG_IsOK(ecode3)) {
18411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18412 }
18413 arg3 = static_cast< int >(val3);
18414 {
18415 PyThreadState* __tstate = wxPyBeginAllowThreads();
18416 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18417 wxPyEndAllowThreads(__tstate);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
18420 resultobj = SWIG_Py_Void();
18421 return resultobj;
18422 fail:
18423 return NULL;
18424 }
18425
18426
18427 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18428 PyObject *resultobj = 0;
18429 wxDC *arg1 = (wxDC *) 0 ;
18430 int arg2 ;
18431 int arg3 ;
18432 int arg4 ;
18433 int arg5 ;
18434 void *argp1 = 0 ;
18435 int res1 = 0 ;
18436 int val2 ;
18437 int ecode2 = 0 ;
18438 int val3 ;
18439 int ecode3 = 0 ;
18440 int val4 ;
18441 int ecode4 = 0 ;
18442 int val5 ;
18443 int ecode5 = 0 ;
18444 PyObject * obj0 = 0 ;
18445 PyObject * obj1 = 0 ;
18446 PyObject * obj2 = 0 ;
18447 PyObject * obj3 = 0 ;
18448 PyObject * obj4 = 0 ;
18449 char * kwnames[] = {
18450 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18451 };
18452
18453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18455 if (!SWIG_IsOK(res1)) {
18456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18457 }
18458 arg1 = reinterpret_cast< wxDC * >(argp1);
18459 ecode2 = SWIG_AsVal_int(obj1, &val2);
18460 if (!SWIG_IsOK(ecode2)) {
18461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18462 }
18463 arg2 = static_cast< int >(val2);
18464 ecode3 = SWIG_AsVal_int(obj2, &val3);
18465 if (!SWIG_IsOK(ecode3)) {
18466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18467 }
18468 arg3 = static_cast< int >(val3);
18469 ecode4 = SWIG_AsVal_int(obj3, &val4);
18470 if (!SWIG_IsOK(ecode4)) {
18471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18472 }
18473 arg4 = static_cast< int >(val4);
18474 ecode5 = SWIG_AsVal_int(obj4, &val5);
18475 if (!SWIG_IsOK(ecode5)) {
18476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18477 }
18478 arg5 = static_cast< int >(val5);
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18482 wxPyEndAllowThreads(__tstate);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 resultobj = SWIG_Py_Void();
18486 return resultobj;
18487 fail:
18488 return NULL;
18489 }
18490
18491
18492 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18493 PyObject *resultobj = 0;
18494 wxDC *arg1 = (wxDC *) 0 ;
18495 wxRect *arg2 = 0 ;
18496 void *argp1 = 0 ;
18497 int res1 = 0 ;
18498 wxRect temp2 ;
18499 PyObject * obj0 = 0 ;
18500 PyObject * obj1 = 0 ;
18501 char * kwnames[] = {
18502 (char *) "self",(char *) "rect", NULL
18503 };
18504
18505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18507 if (!SWIG_IsOK(res1)) {
18508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18509 }
18510 arg1 = reinterpret_cast< wxDC * >(argp1);
18511 {
18512 arg2 = &temp2;
18513 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18514 }
18515 {
18516 PyThreadState* __tstate = wxPyBeginAllowThreads();
18517 (arg1)->DrawEllipse((wxRect const &)*arg2);
18518 wxPyEndAllowThreads(__tstate);
18519 if (PyErr_Occurred()) SWIG_fail;
18520 }
18521 resultobj = SWIG_Py_Void();
18522 return resultobj;
18523 fail:
18524 return NULL;
18525 }
18526
18527
18528 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18529 PyObject *resultobj = 0;
18530 wxDC *arg1 = (wxDC *) 0 ;
18531 wxPoint *arg2 = 0 ;
18532 wxSize *arg3 = 0 ;
18533 void *argp1 = 0 ;
18534 int res1 = 0 ;
18535 wxPoint temp2 ;
18536 wxSize temp3 ;
18537 PyObject * obj0 = 0 ;
18538 PyObject * obj1 = 0 ;
18539 PyObject * obj2 = 0 ;
18540 char * kwnames[] = {
18541 (char *) "self",(char *) "pt",(char *) "sz", NULL
18542 };
18543
18544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18546 if (!SWIG_IsOK(res1)) {
18547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18548 }
18549 arg1 = reinterpret_cast< wxDC * >(argp1);
18550 {
18551 arg2 = &temp2;
18552 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18553 }
18554 {
18555 arg3 = &temp3;
18556 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18557 }
18558 {
18559 PyThreadState* __tstate = wxPyBeginAllowThreads();
18560 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18561 wxPyEndAllowThreads(__tstate);
18562 if (PyErr_Occurred()) SWIG_fail;
18563 }
18564 resultobj = SWIG_Py_Void();
18565 return resultobj;
18566 fail:
18567 return NULL;
18568 }
18569
18570
18571 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18572 PyObject *resultobj = 0;
18573 wxDC *arg1 = (wxDC *) 0 ;
18574 wxIcon *arg2 = 0 ;
18575 int arg3 ;
18576 int arg4 ;
18577 void *argp1 = 0 ;
18578 int res1 = 0 ;
18579 void *argp2 = 0 ;
18580 int res2 = 0 ;
18581 int val3 ;
18582 int ecode3 = 0 ;
18583 int val4 ;
18584 int ecode4 = 0 ;
18585 PyObject * obj0 = 0 ;
18586 PyObject * obj1 = 0 ;
18587 PyObject * obj2 = 0 ;
18588 PyObject * obj3 = 0 ;
18589 char * kwnames[] = {
18590 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18591 };
18592
18593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18595 if (!SWIG_IsOK(res1)) {
18596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18597 }
18598 arg1 = reinterpret_cast< wxDC * >(argp1);
18599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18600 if (!SWIG_IsOK(res2)) {
18601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18602 }
18603 if (!argp2) {
18604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18605 }
18606 arg2 = reinterpret_cast< wxIcon * >(argp2);
18607 ecode3 = SWIG_AsVal_int(obj2, &val3);
18608 if (!SWIG_IsOK(ecode3)) {
18609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18610 }
18611 arg3 = static_cast< int >(val3);
18612 ecode4 = SWIG_AsVal_int(obj3, &val4);
18613 if (!SWIG_IsOK(ecode4)) {
18614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18615 }
18616 arg4 = static_cast< int >(val4);
18617 {
18618 PyThreadState* __tstate = wxPyBeginAllowThreads();
18619 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
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_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18631 PyObject *resultobj = 0;
18632 wxDC *arg1 = (wxDC *) 0 ;
18633 wxIcon *arg2 = 0 ;
18634 wxPoint *arg3 = 0 ;
18635 void *argp1 = 0 ;
18636 int res1 = 0 ;
18637 void *argp2 = 0 ;
18638 int res2 = 0 ;
18639 wxPoint temp3 ;
18640 PyObject * obj0 = 0 ;
18641 PyObject * obj1 = 0 ;
18642 PyObject * obj2 = 0 ;
18643 char * kwnames[] = {
18644 (char *) "self",(char *) "icon",(char *) "pt", NULL
18645 };
18646
18647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18649 if (!SWIG_IsOK(res1)) {
18650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18651 }
18652 arg1 = reinterpret_cast< wxDC * >(argp1);
18653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18654 if (!SWIG_IsOK(res2)) {
18655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18656 }
18657 if (!argp2) {
18658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18659 }
18660 arg2 = reinterpret_cast< wxIcon * >(argp2);
18661 {
18662 arg3 = &temp3;
18663 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18664 }
18665 {
18666 PyThreadState* __tstate = wxPyBeginAllowThreads();
18667 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18668 wxPyEndAllowThreads(__tstate);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 resultobj = SWIG_Py_Void();
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18679 PyObject *resultobj = 0;
18680 wxDC *arg1 = (wxDC *) 0 ;
18681 wxBitmap *arg2 = 0 ;
18682 int arg3 ;
18683 int arg4 ;
18684 bool arg5 = (bool) false ;
18685 void *argp1 = 0 ;
18686 int res1 = 0 ;
18687 void *argp2 = 0 ;
18688 int res2 = 0 ;
18689 int val3 ;
18690 int ecode3 = 0 ;
18691 int val4 ;
18692 int ecode4 = 0 ;
18693 bool val5 ;
18694 int ecode5 = 0 ;
18695 PyObject * obj0 = 0 ;
18696 PyObject * obj1 = 0 ;
18697 PyObject * obj2 = 0 ;
18698 PyObject * obj3 = 0 ;
18699 PyObject * obj4 = 0 ;
18700 char * kwnames[] = {
18701 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18702 };
18703
18704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18706 if (!SWIG_IsOK(res1)) {
18707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18708 }
18709 arg1 = reinterpret_cast< wxDC * >(argp1);
18710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18711 if (!SWIG_IsOK(res2)) {
18712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18713 }
18714 if (!argp2) {
18715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18716 }
18717 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18718 ecode3 = SWIG_AsVal_int(obj2, &val3);
18719 if (!SWIG_IsOK(ecode3)) {
18720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18721 }
18722 arg3 = static_cast< int >(val3);
18723 ecode4 = SWIG_AsVal_int(obj3, &val4);
18724 if (!SWIG_IsOK(ecode4)) {
18725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18726 }
18727 arg4 = static_cast< int >(val4);
18728 if (obj4) {
18729 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18730 if (!SWIG_IsOK(ecode5)) {
18731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18732 }
18733 arg5 = static_cast< bool >(val5);
18734 }
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18738 wxPyEndAllowThreads(__tstate);
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 resultobj = SWIG_Py_Void();
18742 return resultobj;
18743 fail:
18744 return NULL;
18745 }
18746
18747
18748 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18749 PyObject *resultobj = 0;
18750 wxDC *arg1 = (wxDC *) 0 ;
18751 wxBitmap *arg2 = 0 ;
18752 wxPoint *arg3 = 0 ;
18753 bool arg4 = (bool) false ;
18754 void *argp1 = 0 ;
18755 int res1 = 0 ;
18756 void *argp2 = 0 ;
18757 int res2 = 0 ;
18758 wxPoint temp3 ;
18759 bool val4 ;
18760 int ecode4 = 0 ;
18761 PyObject * obj0 = 0 ;
18762 PyObject * obj1 = 0 ;
18763 PyObject * obj2 = 0 ;
18764 PyObject * obj3 = 0 ;
18765 char * kwnames[] = {
18766 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18767 };
18768
18769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18771 if (!SWIG_IsOK(res1)) {
18772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18773 }
18774 arg1 = reinterpret_cast< wxDC * >(argp1);
18775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18776 if (!SWIG_IsOK(res2)) {
18777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18778 }
18779 if (!argp2) {
18780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18781 }
18782 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18783 {
18784 arg3 = &temp3;
18785 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18786 }
18787 if (obj3) {
18788 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18789 if (!SWIG_IsOK(ecode4)) {
18790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18791 }
18792 arg4 = static_cast< bool >(val4);
18793 }
18794 {
18795 PyThreadState* __tstate = wxPyBeginAllowThreads();
18796 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
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_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18808 PyObject *resultobj = 0;
18809 wxDC *arg1 = (wxDC *) 0 ;
18810 wxString *arg2 = 0 ;
18811 int arg3 ;
18812 int arg4 ;
18813 void *argp1 = 0 ;
18814 int res1 = 0 ;
18815 bool temp2 = false ;
18816 int val3 ;
18817 int ecode3 = 0 ;
18818 int 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 *) "text",(char *) "x",(char *) "y", NULL
18826 };
18827
18828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",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_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
18832 }
18833 arg1 = reinterpret_cast< wxDC * >(argp1);
18834 {
18835 arg2 = wxString_in_helper(obj1);
18836 if (arg2 == NULL) SWIG_fail;
18837 temp2 = true;
18838 }
18839 ecode3 = SWIG_AsVal_int(obj2, &val3);
18840 if (!SWIG_IsOK(ecode3)) {
18841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
18842 }
18843 arg3 = static_cast< int >(val3);
18844 ecode4 = SWIG_AsVal_int(obj3, &val4);
18845 if (!SWIG_IsOK(ecode4)) {
18846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
18847 }
18848 arg4 = static_cast< int >(val4);
18849 {
18850 PyThreadState* __tstate = wxPyBeginAllowThreads();
18851 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
18852 wxPyEndAllowThreads(__tstate);
18853 if (PyErr_Occurred()) SWIG_fail;
18854 }
18855 resultobj = SWIG_Py_Void();
18856 {
18857 if (temp2)
18858 delete arg2;
18859 }
18860 return resultobj;
18861 fail:
18862 {
18863 if (temp2)
18864 delete arg2;
18865 }
18866 return NULL;
18867 }
18868
18869
18870 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18871 PyObject *resultobj = 0;
18872 wxDC *arg1 = (wxDC *) 0 ;
18873 wxString *arg2 = 0 ;
18874 wxPoint *arg3 = 0 ;
18875 void *argp1 = 0 ;
18876 int res1 = 0 ;
18877 bool temp2 = false ;
18878 wxPoint temp3 ;
18879 PyObject * obj0 = 0 ;
18880 PyObject * obj1 = 0 ;
18881 PyObject * obj2 = 0 ;
18882 char * kwnames[] = {
18883 (char *) "self",(char *) "text",(char *) "pt", NULL
18884 };
18885
18886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18888 if (!SWIG_IsOK(res1)) {
18889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18890 }
18891 arg1 = reinterpret_cast< wxDC * >(argp1);
18892 {
18893 arg2 = wxString_in_helper(obj1);
18894 if (arg2 == NULL) SWIG_fail;
18895 temp2 = true;
18896 }
18897 {
18898 arg3 = &temp3;
18899 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18900 }
18901 {
18902 PyThreadState* __tstate = wxPyBeginAllowThreads();
18903 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
18904 wxPyEndAllowThreads(__tstate);
18905 if (PyErr_Occurred()) SWIG_fail;
18906 }
18907 resultobj = SWIG_Py_Void();
18908 {
18909 if (temp2)
18910 delete arg2;
18911 }
18912 return resultobj;
18913 fail:
18914 {
18915 if (temp2)
18916 delete arg2;
18917 }
18918 return NULL;
18919 }
18920
18921
18922 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18923 PyObject *resultobj = 0;
18924 wxDC *arg1 = (wxDC *) 0 ;
18925 wxString *arg2 = 0 ;
18926 int arg3 ;
18927 int arg4 ;
18928 double arg5 ;
18929 void *argp1 = 0 ;
18930 int res1 = 0 ;
18931 bool temp2 = false ;
18932 int val3 ;
18933 int ecode3 = 0 ;
18934 int val4 ;
18935 int ecode4 = 0 ;
18936 double val5 ;
18937 int ecode5 = 0 ;
18938 PyObject * obj0 = 0 ;
18939 PyObject * obj1 = 0 ;
18940 PyObject * obj2 = 0 ;
18941 PyObject * obj3 = 0 ;
18942 PyObject * obj4 = 0 ;
18943 char * kwnames[] = {
18944 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
18945 };
18946
18947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18949 if (!SWIG_IsOK(res1)) {
18950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
18951 }
18952 arg1 = reinterpret_cast< wxDC * >(argp1);
18953 {
18954 arg2 = wxString_in_helper(obj1);
18955 if (arg2 == NULL) SWIG_fail;
18956 temp2 = true;
18957 }
18958 ecode3 = SWIG_AsVal_int(obj2, &val3);
18959 if (!SWIG_IsOK(ecode3)) {
18960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
18961 }
18962 arg3 = static_cast< int >(val3);
18963 ecode4 = SWIG_AsVal_int(obj3, &val4);
18964 if (!SWIG_IsOK(ecode4)) {
18965 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
18966 }
18967 arg4 = static_cast< int >(val4);
18968 ecode5 = SWIG_AsVal_double(obj4, &val5);
18969 if (!SWIG_IsOK(ecode5)) {
18970 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
18971 }
18972 arg5 = static_cast< double >(val5);
18973 {
18974 PyThreadState* __tstate = wxPyBeginAllowThreads();
18975 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
18976 wxPyEndAllowThreads(__tstate);
18977 if (PyErr_Occurred()) SWIG_fail;
18978 }
18979 resultobj = SWIG_Py_Void();
18980 {
18981 if (temp2)
18982 delete arg2;
18983 }
18984 return resultobj;
18985 fail:
18986 {
18987 if (temp2)
18988 delete arg2;
18989 }
18990 return NULL;
18991 }
18992
18993
18994 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18995 PyObject *resultobj = 0;
18996 wxDC *arg1 = (wxDC *) 0 ;
18997 wxString *arg2 = 0 ;
18998 wxPoint *arg3 = 0 ;
18999 double arg4 ;
19000 void *argp1 = 0 ;
19001 int res1 = 0 ;
19002 bool temp2 = false ;
19003 wxPoint temp3 ;
19004 double val4 ;
19005 int ecode4 = 0 ;
19006 PyObject * obj0 = 0 ;
19007 PyObject * obj1 = 0 ;
19008 PyObject * obj2 = 0 ;
19009 PyObject * obj3 = 0 ;
19010 char * kwnames[] = {
19011 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19012 };
19013
19014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19016 if (!SWIG_IsOK(res1)) {
19017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19018 }
19019 arg1 = reinterpret_cast< wxDC * >(argp1);
19020 {
19021 arg2 = wxString_in_helper(obj1);
19022 if (arg2 == NULL) SWIG_fail;
19023 temp2 = true;
19024 }
19025 {
19026 arg3 = &temp3;
19027 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19028 }
19029 ecode4 = SWIG_AsVal_double(obj3, &val4);
19030 if (!SWIG_IsOK(ecode4)) {
19031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19032 }
19033 arg4 = static_cast< double >(val4);
19034 {
19035 PyThreadState* __tstate = wxPyBeginAllowThreads();
19036 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_Py_Void();
19041 {
19042 if (temp2)
19043 delete arg2;
19044 }
19045 return resultobj;
19046 fail:
19047 {
19048 if (temp2)
19049 delete arg2;
19050 }
19051 return NULL;
19052 }
19053
19054
19055 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19056 PyObject *resultobj = 0;
19057 wxDC *arg1 = (wxDC *) 0 ;
19058 int arg2 ;
19059 int arg3 ;
19060 int arg4 ;
19061 int arg5 ;
19062 wxDC *arg6 = (wxDC *) 0 ;
19063 int arg7 ;
19064 int arg8 ;
19065 int arg9 = (int) wxCOPY ;
19066 bool arg10 = (bool) false ;
19067 int arg11 = (int) -1 ;
19068 int arg12 = (int) -1 ;
19069 bool result;
19070 void *argp1 = 0 ;
19071 int res1 = 0 ;
19072 int val2 ;
19073 int ecode2 = 0 ;
19074 int val3 ;
19075 int ecode3 = 0 ;
19076 int val4 ;
19077 int ecode4 = 0 ;
19078 int val5 ;
19079 int ecode5 = 0 ;
19080 void *argp6 = 0 ;
19081 int res6 = 0 ;
19082 int val7 ;
19083 int ecode7 = 0 ;
19084 int val8 ;
19085 int ecode8 = 0 ;
19086 int val9 ;
19087 int ecode9 = 0 ;
19088 bool val10 ;
19089 int ecode10 = 0 ;
19090 int val11 ;
19091 int ecode11 = 0 ;
19092 int val12 ;
19093 int ecode12 = 0 ;
19094 PyObject * obj0 = 0 ;
19095 PyObject * obj1 = 0 ;
19096 PyObject * obj2 = 0 ;
19097 PyObject * obj3 = 0 ;
19098 PyObject * obj4 = 0 ;
19099 PyObject * obj5 = 0 ;
19100 PyObject * obj6 = 0 ;
19101 PyObject * obj7 = 0 ;
19102 PyObject * obj8 = 0 ;
19103 PyObject * obj9 = 0 ;
19104 PyObject * obj10 = 0 ;
19105 PyObject * obj11 = 0 ;
19106 char * kwnames[] = {
19107 (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
19108 };
19109
19110 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;
19111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19114 }
19115 arg1 = reinterpret_cast< wxDC * >(argp1);
19116 ecode2 = SWIG_AsVal_int(obj1, &val2);
19117 if (!SWIG_IsOK(ecode2)) {
19118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19119 }
19120 arg2 = static_cast< int >(val2);
19121 ecode3 = SWIG_AsVal_int(obj2, &val3);
19122 if (!SWIG_IsOK(ecode3)) {
19123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19124 }
19125 arg3 = static_cast< int >(val3);
19126 ecode4 = SWIG_AsVal_int(obj3, &val4);
19127 if (!SWIG_IsOK(ecode4)) {
19128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19129 }
19130 arg4 = static_cast< int >(val4);
19131 ecode5 = SWIG_AsVal_int(obj4, &val5);
19132 if (!SWIG_IsOK(ecode5)) {
19133 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19134 }
19135 arg5 = static_cast< int >(val5);
19136 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19137 if (!SWIG_IsOK(res6)) {
19138 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19139 }
19140 arg6 = reinterpret_cast< wxDC * >(argp6);
19141 ecode7 = SWIG_AsVal_int(obj6, &val7);
19142 if (!SWIG_IsOK(ecode7)) {
19143 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19144 }
19145 arg7 = static_cast< int >(val7);
19146 ecode8 = SWIG_AsVal_int(obj7, &val8);
19147 if (!SWIG_IsOK(ecode8)) {
19148 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19149 }
19150 arg8 = static_cast< int >(val8);
19151 if (obj8) {
19152 ecode9 = SWIG_AsVal_int(obj8, &val9);
19153 if (!SWIG_IsOK(ecode9)) {
19154 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19155 }
19156 arg9 = static_cast< int >(val9);
19157 }
19158 if (obj9) {
19159 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19160 if (!SWIG_IsOK(ecode10)) {
19161 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19162 }
19163 arg10 = static_cast< bool >(val10);
19164 }
19165 if (obj10) {
19166 ecode11 = SWIG_AsVal_int(obj10, &val11);
19167 if (!SWIG_IsOK(ecode11)) {
19168 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19169 }
19170 arg11 = static_cast< int >(val11);
19171 }
19172 if (obj11) {
19173 ecode12 = SWIG_AsVal_int(obj11, &val12);
19174 if (!SWIG_IsOK(ecode12)) {
19175 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19176 }
19177 arg12 = static_cast< int >(val12);
19178 }
19179 {
19180 PyThreadState* __tstate = wxPyBeginAllowThreads();
19181 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19182 wxPyEndAllowThreads(__tstate);
19183 if (PyErr_Occurred()) SWIG_fail;
19184 }
19185 {
19186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19187 }
19188 return resultobj;
19189 fail:
19190 return NULL;
19191 }
19192
19193
19194 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj = 0;
19196 wxDC *arg1 = (wxDC *) 0 ;
19197 wxPoint *arg2 = 0 ;
19198 wxSize *arg3 = 0 ;
19199 wxDC *arg4 = (wxDC *) 0 ;
19200 wxPoint *arg5 = 0 ;
19201 int arg6 = (int) wxCOPY ;
19202 bool arg7 = (bool) false ;
19203 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19204 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19205 bool result;
19206 void *argp1 = 0 ;
19207 int res1 = 0 ;
19208 wxPoint temp2 ;
19209 wxSize temp3 ;
19210 void *argp4 = 0 ;
19211 int res4 = 0 ;
19212 wxPoint temp5 ;
19213 int val6 ;
19214 int ecode6 = 0 ;
19215 bool val7 ;
19216 int ecode7 = 0 ;
19217 wxPoint temp8 ;
19218 PyObject * obj0 = 0 ;
19219 PyObject * obj1 = 0 ;
19220 PyObject * obj2 = 0 ;
19221 PyObject * obj3 = 0 ;
19222 PyObject * obj4 = 0 ;
19223 PyObject * obj5 = 0 ;
19224 PyObject * obj6 = 0 ;
19225 PyObject * obj7 = 0 ;
19226 char * kwnames[] = {
19227 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19228 };
19229
19230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19232 if (!SWIG_IsOK(res1)) {
19233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19234 }
19235 arg1 = reinterpret_cast< wxDC * >(argp1);
19236 {
19237 arg2 = &temp2;
19238 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19239 }
19240 {
19241 arg3 = &temp3;
19242 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19243 }
19244 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19245 if (!SWIG_IsOK(res4)) {
19246 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19247 }
19248 arg4 = reinterpret_cast< wxDC * >(argp4);
19249 {
19250 arg5 = &temp5;
19251 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19252 }
19253 if (obj5) {
19254 ecode6 = SWIG_AsVal_int(obj5, &val6);
19255 if (!SWIG_IsOK(ecode6)) {
19256 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19257 }
19258 arg6 = static_cast< int >(val6);
19259 }
19260 if (obj6) {
19261 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19262 if (!SWIG_IsOK(ecode7)) {
19263 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19264 }
19265 arg7 = static_cast< bool >(val7);
19266 }
19267 if (obj7) {
19268 {
19269 arg8 = &temp8;
19270 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19271 }
19272 }
19273 {
19274 PyThreadState* __tstate = wxPyBeginAllowThreads();
19275 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19276 wxPyEndAllowThreads(__tstate);
19277 if (PyErr_Occurred()) SWIG_fail;
19278 }
19279 {
19280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19281 }
19282 return resultobj;
19283 fail:
19284 return NULL;
19285 }
19286
19287
19288 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj = 0;
19290 wxDC *arg1 = (wxDC *) 0 ;
19291 int arg2 ;
19292 int arg3 ;
19293 int arg4 ;
19294 int arg5 ;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 int val2 ;
19298 int ecode2 = 0 ;
19299 int val3 ;
19300 int ecode3 = 0 ;
19301 int val4 ;
19302 int ecode4 = 0 ;
19303 int val5 ;
19304 int ecode5 = 0 ;
19305 PyObject * obj0 = 0 ;
19306 PyObject * obj1 = 0 ;
19307 PyObject * obj2 = 0 ;
19308 PyObject * obj3 = 0 ;
19309 PyObject * obj4 = 0 ;
19310 char * kwnames[] = {
19311 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19312 };
19313
19314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19316 if (!SWIG_IsOK(res1)) {
19317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19318 }
19319 arg1 = reinterpret_cast< wxDC * >(argp1);
19320 ecode2 = SWIG_AsVal_int(obj1, &val2);
19321 if (!SWIG_IsOK(ecode2)) {
19322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19323 }
19324 arg2 = static_cast< int >(val2);
19325 ecode3 = SWIG_AsVal_int(obj2, &val3);
19326 if (!SWIG_IsOK(ecode3)) {
19327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19328 }
19329 arg3 = static_cast< int >(val3);
19330 ecode4 = SWIG_AsVal_int(obj3, &val4);
19331 if (!SWIG_IsOK(ecode4)) {
19332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19333 }
19334 arg4 = static_cast< int >(val4);
19335 ecode5 = SWIG_AsVal_int(obj4, &val5);
19336 if (!SWIG_IsOK(ecode5)) {
19337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19338 }
19339 arg5 = static_cast< int >(val5);
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19343 wxPyEndAllowThreads(__tstate);
19344 if (PyErr_Occurred()) SWIG_fail;
19345 }
19346 resultobj = SWIG_Py_Void();
19347 return resultobj;
19348 fail:
19349 return NULL;
19350 }
19351
19352
19353 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19354 PyObject *resultobj = 0;
19355 wxDC *arg1 = (wxDC *) 0 ;
19356 wxPoint *arg2 = 0 ;
19357 wxSize *arg3 = 0 ;
19358 void *argp1 = 0 ;
19359 int res1 = 0 ;
19360 wxPoint temp2 ;
19361 wxSize temp3 ;
19362 PyObject * obj0 = 0 ;
19363 PyObject * obj1 = 0 ;
19364 PyObject * obj2 = 0 ;
19365 char * kwnames[] = {
19366 (char *) "self",(char *) "pt",(char *) "sz", NULL
19367 };
19368
19369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19371 if (!SWIG_IsOK(res1)) {
19372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19373 }
19374 arg1 = reinterpret_cast< wxDC * >(argp1);
19375 {
19376 arg2 = &temp2;
19377 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19378 }
19379 {
19380 arg3 = &temp3;
19381 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19382 }
19383 {
19384 PyThreadState* __tstate = wxPyBeginAllowThreads();
19385 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19386 wxPyEndAllowThreads(__tstate);
19387 if (PyErr_Occurred()) SWIG_fail;
19388 }
19389 resultobj = SWIG_Py_Void();
19390 return resultobj;
19391 fail:
19392 return NULL;
19393 }
19394
19395
19396 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19397 PyObject *resultobj = 0;
19398 wxDC *arg1 = (wxDC *) 0 ;
19399 wxRegion *arg2 = 0 ;
19400 void *argp1 = 0 ;
19401 int res1 = 0 ;
19402 void *argp2 = 0 ;
19403 int res2 = 0 ;
19404 PyObject * obj0 = 0 ;
19405 PyObject * obj1 = 0 ;
19406 char * kwnames[] = {
19407 (char *) "self",(char *) "region", NULL
19408 };
19409
19410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19412 if (!SWIG_IsOK(res1)) {
19413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19414 }
19415 arg1 = reinterpret_cast< wxDC * >(argp1);
19416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19417 if (!SWIG_IsOK(res2)) {
19418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19419 }
19420 if (!argp2) {
19421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19422 }
19423 arg2 = reinterpret_cast< wxRegion * >(argp2);
19424 {
19425 PyThreadState* __tstate = wxPyBeginAllowThreads();
19426 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19427 wxPyEndAllowThreads(__tstate);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 }
19430 resultobj = SWIG_Py_Void();
19431 return resultobj;
19432 fail:
19433 return NULL;
19434 }
19435
19436
19437 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19438 PyObject *resultobj = 0;
19439 wxDC *arg1 = (wxDC *) 0 ;
19440 wxRect *arg2 = 0 ;
19441 void *argp1 = 0 ;
19442 int res1 = 0 ;
19443 wxRect temp2 ;
19444 PyObject * obj0 = 0 ;
19445 PyObject * obj1 = 0 ;
19446 char * kwnames[] = {
19447 (char *) "self",(char *) "rect", NULL
19448 };
19449
19450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19452 if (!SWIG_IsOK(res1)) {
19453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19454 }
19455 arg1 = reinterpret_cast< wxDC * >(argp1);
19456 {
19457 arg2 = &temp2;
19458 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19459 }
19460 {
19461 PyThreadState* __tstate = wxPyBeginAllowThreads();
19462 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19463 wxPyEndAllowThreads(__tstate);
19464 if (PyErr_Occurred()) SWIG_fail;
19465 }
19466 resultobj = SWIG_Py_Void();
19467 return resultobj;
19468 fail:
19469 return NULL;
19470 }
19471
19472
19473 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19474 PyObject *resultobj = 0;
19475 wxDC *arg1 = (wxDC *) 0 ;
19476 int arg2 ;
19477 wxPoint *arg3 = (wxPoint *) 0 ;
19478 int arg4 = (int) 0 ;
19479 int arg5 = (int) 0 ;
19480 void *argp1 = 0 ;
19481 int res1 = 0 ;
19482 int val4 ;
19483 int ecode4 = 0 ;
19484 int val5 ;
19485 int ecode5 = 0 ;
19486 PyObject * obj0 = 0 ;
19487 PyObject * obj1 = 0 ;
19488 PyObject * obj2 = 0 ;
19489 PyObject * obj3 = 0 ;
19490 char * kwnames[] = {
19491 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19492 };
19493
19494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19496 if (!SWIG_IsOK(res1)) {
19497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19498 }
19499 arg1 = reinterpret_cast< wxDC * >(argp1);
19500 {
19501 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19502 if (arg3 == NULL) SWIG_fail;
19503 }
19504 if (obj2) {
19505 ecode4 = SWIG_AsVal_int(obj2, &val4);
19506 if (!SWIG_IsOK(ecode4)) {
19507 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19508 }
19509 arg4 = static_cast< int >(val4);
19510 }
19511 if (obj3) {
19512 ecode5 = SWIG_AsVal_int(obj3, &val5);
19513 if (!SWIG_IsOK(ecode5)) {
19514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19515 }
19516 arg5 = static_cast< int >(val5);
19517 }
19518 {
19519 PyThreadState* __tstate = wxPyBeginAllowThreads();
19520 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19521 wxPyEndAllowThreads(__tstate);
19522 if (PyErr_Occurred()) SWIG_fail;
19523 }
19524 resultobj = SWIG_Py_Void();
19525 {
19526 if (arg3) delete [] arg3;
19527 }
19528 return resultobj;
19529 fail:
19530 {
19531 if (arg3) delete [] arg3;
19532 }
19533 return NULL;
19534 }
19535
19536
19537 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19538 PyObject *resultobj = 0;
19539 wxDC *arg1 = (wxDC *) 0 ;
19540 int arg2 ;
19541 wxPoint *arg3 = (wxPoint *) 0 ;
19542 int arg4 = (int) 0 ;
19543 int arg5 = (int) 0 ;
19544 int arg6 = (int) wxODDEVEN_RULE ;
19545 void *argp1 = 0 ;
19546 int res1 = 0 ;
19547 int val4 ;
19548 int ecode4 = 0 ;
19549 int val5 ;
19550 int ecode5 = 0 ;
19551 int val6 ;
19552 int ecode6 = 0 ;
19553 PyObject * obj0 = 0 ;
19554 PyObject * obj1 = 0 ;
19555 PyObject * obj2 = 0 ;
19556 PyObject * obj3 = 0 ;
19557 PyObject * obj4 = 0 ;
19558 char * kwnames[] = {
19559 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19560 };
19561
19562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19564 if (!SWIG_IsOK(res1)) {
19565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19566 }
19567 arg1 = reinterpret_cast< wxDC * >(argp1);
19568 {
19569 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19570 if (arg3 == NULL) SWIG_fail;
19571 }
19572 if (obj2) {
19573 ecode4 = SWIG_AsVal_int(obj2, &val4);
19574 if (!SWIG_IsOK(ecode4)) {
19575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19576 }
19577 arg4 = static_cast< int >(val4);
19578 }
19579 if (obj3) {
19580 ecode5 = SWIG_AsVal_int(obj3, &val5);
19581 if (!SWIG_IsOK(ecode5)) {
19582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19583 }
19584 arg5 = static_cast< int >(val5);
19585 }
19586 if (obj4) {
19587 ecode6 = SWIG_AsVal_int(obj4, &val6);
19588 if (!SWIG_IsOK(ecode6)) {
19589 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19590 }
19591 arg6 = static_cast< int >(val6);
19592 }
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19596 wxPyEndAllowThreads(__tstate);
19597 if (PyErr_Occurred()) SWIG_fail;
19598 }
19599 resultobj = SWIG_Py_Void();
19600 {
19601 if (arg3) delete [] arg3;
19602 }
19603 return resultobj;
19604 fail:
19605 {
19606 if (arg3) delete [] arg3;
19607 }
19608 return NULL;
19609 }
19610
19611
19612 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19613 PyObject *resultobj = 0;
19614 wxDC *arg1 = (wxDC *) 0 ;
19615 wxString *arg2 = 0 ;
19616 wxRect *arg3 = 0 ;
19617 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19618 int arg5 = (int) -1 ;
19619 void *argp1 = 0 ;
19620 int res1 = 0 ;
19621 bool temp2 = false ;
19622 wxRect temp3 ;
19623 int val4 ;
19624 int ecode4 = 0 ;
19625 int val5 ;
19626 int ecode5 = 0 ;
19627 PyObject * obj0 = 0 ;
19628 PyObject * obj1 = 0 ;
19629 PyObject * obj2 = 0 ;
19630 PyObject * obj3 = 0 ;
19631 PyObject * obj4 = 0 ;
19632 char * kwnames[] = {
19633 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19634 };
19635
19636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19638 if (!SWIG_IsOK(res1)) {
19639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19640 }
19641 arg1 = reinterpret_cast< wxDC * >(argp1);
19642 {
19643 arg2 = wxString_in_helper(obj1);
19644 if (arg2 == NULL) SWIG_fail;
19645 temp2 = true;
19646 }
19647 {
19648 arg3 = &temp3;
19649 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19650 }
19651 if (obj3) {
19652 ecode4 = SWIG_AsVal_int(obj3, &val4);
19653 if (!SWIG_IsOK(ecode4)) {
19654 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19655 }
19656 arg4 = static_cast< int >(val4);
19657 }
19658 if (obj4) {
19659 ecode5 = SWIG_AsVal_int(obj4, &val5);
19660 if (!SWIG_IsOK(ecode5)) {
19661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19662 }
19663 arg5 = static_cast< int >(val5);
19664 }
19665 {
19666 PyThreadState* __tstate = wxPyBeginAllowThreads();
19667 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19668 wxPyEndAllowThreads(__tstate);
19669 if (PyErr_Occurred()) SWIG_fail;
19670 }
19671 resultobj = SWIG_Py_Void();
19672 {
19673 if (temp2)
19674 delete arg2;
19675 }
19676 return resultobj;
19677 fail:
19678 {
19679 if (temp2)
19680 delete arg2;
19681 }
19682 return NULL;
19683 }
19684
19685
19686 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19687 PyObject *resultobj = 0;
19688 wxDC *arg1 = (wxDC *) 0 ;
19689 wxString *arg2 = 0 ;
19690 wxBitmap *arg3 = 0 ;
19691 wxRect *arg4 = 0 ;
19692 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19693 int arg6 = (int) -1 ;
19694 wxRect result;
19695 void *argp1 = 0 ;
19696 int res1 = 0 ;
19697 bool temp2 = false ;
19698 void *argp3 = 0 ;
19699 int res3 = 0 ;
19700 wxRect temp4 ;
19701 int val5 ;
19702 int ecode5 = 0 ;
19703 int val6 ;
19704 int ecode6 = 0 ;
19705 PyObject * obj0 = 0 ;
19706 PyObject * obj1 = 0 ;
19707 PyObject * obj2 = 0 ;
19708 PyObject * obj3 = 0 ;
19709 PyObject * obj4 = 0 ;
19710 PyObject * obj5 = 0 ;
19711 char * kwnames[] = {
19712 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19713 };
19714
19715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19717 if (!SWIG_IsOK(res1)) {
19718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19719 }
19720 arg1 = reinterpret_cast< wxDC * >(argp1);
19721 {
19722 arg2 = wxString_in_helper(obj1);
19723 if (arg2 == NULL) SWIG_fail;
19724 temp2 = true;
19725 }
19726 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19727 if (!SWIG_IsOK(res3)) {
19728 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19729 }
19730 if (!argp3) {
19731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19732 }
19733 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19734 {
19735 arg4 = &temp4;
19736 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19737 }
19738 if (obj4) {
19739 ecode5 = SWIG_AsVal_int(obj4, &val5);
19740 if (!SWIG_IsOK(ecode5)) {
19741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19742 }
19743 arg5 = static_cast< int >(val5);
19744 }
19745 if (obj5) {
19746 ecode6 = SWIG_AsVal_int(obj5, &val6);
19747 if (!SWIG_IsOK(ecode6)) {
19748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19749 }
19750 arg6 = static_cast< int >(val6);
19751 }
19752 {
19753 PyThreadState* __tstate = wxPyBeginAllowThreads();
19754 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19755 wxPyEndAllowThreads(__tstate);
19756 if (PyErr_Occurred()) SWIG_fail;
19757 }
19758 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19759 {
19760 if (temp2)
19761 delete arg2;
19762 }
19763 return resultobj;
19764 fail:
19765 {
19766 if (temp2)
19767 delete arg2;
19768 }
19769 return NULL;
19770 }
19771
19772
19773 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19774 PyObject *resultobj = 0;
19775 wxDC *arg1 = (wxDC *) 0 ;
19776 int arg2 ;
19777 wxPoint *arg3 = (wxPoint *) 0 ;
19778 void *argp1 = 0 ;
19779 int res1 = 0 ;
19780 PyObject * obj0 = 0 ;
19781 PyObject * obj1 = 0 ;
19782 char * kwnames[] = {
19783 (char *) "self",(char *) "points", NULL
19784 };
19785
19786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19788 if (!SWIG_IsOK(res1)) {
19789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19790 }
19791 arg1 = reinterpret_cast< wxDC * >(argp1);
19792 {
19793 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19794 if (arg3 == NULL) SWIG_fail;
19795 }
19796 {
19797 PyThreadState* __tstate = wxPyBeginAllowThreads();
19798 (arg1)->DrawSpline(arg2,arg3);
19799 wxPyEndAllowThreads(__tstate);
19800 if (PyErr_Occurred()) SWIG_fail;
19801 }
19802 resultobj = SWIG_Py_Void();
19803 {
19804 if (arg3) delete [] arg3;
19805 }
19806 return resultobj;
19807 fail:
19808 {
19809 if (arg3) delete [] arg3;
19810 }
19811 return NULL;
19812 }
19813
19814
19815 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19816 PyObject *resultobj = 0;
19817 wxDC *arg1 = (wxDC *) 0 ;
19818 void *argp1 = 0 ;
19819 int res1 = 0 ;
19820 PyObject *swig_obj[1] ;
19821
19822 if (!args) SWIG_fail;
19823 swig_obj[0] = args;
19824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19825 if (!SWIG_IsOK(res1)) {
19826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
19827 }
19828 arg1 = reinterpret_cast< wxDC * >(argp1);
19829 {
19830 PyThreadState* __tstate = wxPyBeginAllowThreads();
19831 (arg1)->Clear();
19832 wxPyEndAllowThreads(__tstate);
19833 if (PyErr_Occurred()) SWIG_fail;
19834 }
19835 resultobj = SWIG_Py_Void();
19836 return resultobj;
19837 fail:
19838 return NULL;
19839 }
19840
19841
19842 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19843 PyObject *resultobj = 0;
19844 wxDC *arg1 = (wxDC *) 0 ;
19845 wxString *arg2 = 0 ;
19846 bool result;
19847 void *argp1 = 0 ;
19848 int res1 = 0 ;
19849 bool temp2 = false ;
19850 PyObject * obj0 = 0 ;
19851 PyObject * obj1 = 0 ;
19852 char * kwnames[] = {
19853 (char *) "self",(char *) "message", NULL
19854 };
19855
19856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
19857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19858 if (!SWIG_IsOK(res1)) {
19859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19860 }
19861 arg1 = reinterpret_cast< wxDC * >(argp1);
19862 {
19863 arg2 = wxString_in_helper(obj1);
19864 if (arg2 == NULL) SWIG_fail;
19865 temp2 = true;
19866 }
19867 {
19868 PyThreadState* __tstate = wxPyBeginAllowThreads();
19869 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
19870 wxPyEndAllowThreads(__tstate);
19871 if (PyErr_Occurred()) SWIG_fail;
19872 }
19873 {
19874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19875 }
19876 {
19877 if (temp2)
19878 delete arg2;
19879 }
19880 return resultobj;
19881 fail:
19882 {
19883 if (temp2)
19884 delete arg2;
19885 }
19886 return NULL;
19887 }
19888
19889
19890 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19891 PyObject *resultobj = 0;
19892 wxDC *arg1 = (wxDC *) 0 ;
19893 void *argp1 = 0 ;
19894 int res1 = 0 ;
19895 PyObject *swig_obj[1] ;
19896
19897 if (!args) SWIG_fail;
19898 swig_obj[0] = args;
19899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19900 if (!SWIG_IsOK(res1)) {
19901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19902 }
19903 arg1 = reinterpret_cast< wxDC * >(argp1);
19904 {
19905 PyThreadState* __tstate = wxPyBeginAllowThreads();
19906 (arg1)->EndDoc();
19907 wxPyEndAllowThreads(__tstate);
19908 if (PyErr_Occurred()) SWIG_fail;
19909 }
19910 resultobj = SWIG_Py_Void();
19911 return resultobj;
19912 fail:
19913 return NULL;
19914 }
19915
19916
19917 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19918 PyObject *resultobj = 0;
19919 wxDC *arg1 = (wxDC *) 0 ;
19920 void *argp1 = 0 ;
19921 int res1 = 0 ;
19922 PyObject *swig_obj[1] ;
19923
19924 if (!args) SWIG_fail;
19925 swig_obj[0] = args;
19926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19927 if (!SWIG_IsOK(res1)) {
19928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
19929 }
19930 arg1 = reinterpret_cast< wxDC * >(argp1);
19931 {
19932 PyThreadState* __tstate = wxPyBeginAllowThreads();
19933 (arg1)->StartPage();
19934 wxPyEndAllowThreads(__tstate);
19935 if (PyErr_Occurred()) SWIG_fail;
19936 }
19937 resultobj = SWIG_Py_Void();
19938 return resultobj;
19939 fail:
19940 return NULL;
19941 }
19942
19943
19944 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19945 PyObject *resultobj = 0;
19946 wxDC *arg1 = (wxDC *) 0 ;
19947 void *argp1 = 0 ;
19948 int res1 = 0 ;
19949 PyObject *swig_obj[1] ;
19950
19951 if (!args) SWIG_fail;
19952 swig_obj[0] = args;
19953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19954 if (!SWIG_IsOK(res1)) {
19955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
19956 }
19957 arg1 = reinterpret_cast< wxDC * >(argp1);
19958 {
19959 PyThreadState* __tstate = wxPyBeginAllowThreads();
19960 (arg1)->EndPage();
19961 wxPyEndAllowThreads(__tstate);
19962 if (PyErr_Occurred()) SWIG_fail;
19963 }
19964 resultobj = SWIG_Py_Void();
19965 return resultobj;
19966 fail:
19967 return NULL;
19968 }
19969
19970
19971 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19972 PyObject *resultobj = 0;
19973 wxDC *arg1 = (wxDC *) 0 ;
19974 wxFont *arg2 = 0 ;
19975 void *argp1 = 0 ;
19976 int res1 = 0 ;
19977 void *argp2 = 0 ;
19978 int res2 = 0 ;
19979 PyObject * obj0 = 0 ;
19980 PyObject * obj1 = 0 ;
19981 char * kwnames[] = {
19982 (char *) "self",(char *) "font", NULL
19983 };
19984
19985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
19986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19987 if (!SWIG_IsOK(res1)) {
19988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
19989 }
19990 arg1 = reinterpret_cast< wxDC * >(argp1);
19991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
19992 if (!SWIG_IsOK(res2)) {
19993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19994 }
19995 if (!argp2) {
19996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19997 }
19998 arg2 = reinterpret_cast< wxFont * >(argp2);
19999 {
20000 PyThreadState* __tstate = wxPyBeginAllowThreads();
20001 (arg1)->SetFont((wxFont const &)*arg2);
20002 wxPyEndAllowThreads(__tstate);
20003 if (PyErr_Occurred()) SWIG_fail;
20004 }
20005 resultobj = SWIG_Py_Void();
20006 return resultobj;
20007 fail:
20008 return NULL;
20009 }
20010
20011
20012 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20013 PyObject *resultobj = 0;
20014 wxDC *arg1 = (wxDC *) 0 ;
20015 wxPen *arg2 = 0 ;
20016 void *argp1 = 0 ;
20017 int res1 = 0 ;
20018 void *argp2 = 0 ;
20019 int res2 = 0 ;
20020 PyObject * obj0 = 0 ;
20021 PyObject * obj1 = 0 ;
20022 char * kwnames[] = {
20023 (char *) "self",(char *) "pen", NULL
20024 };
20025
20026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20028 if (!SWIG_IsOK(res1)) {
20029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20030 }
20031 arg1 = reinterpret_cast< wxDC * >(argp1);
20032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20033 if (!SWIG_IsOK(res2)) {
20034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20035 }
20036 if (!argp2) {
20037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20038 }
20039 arg2 = reinterpret_cast< wxPen * >(argp2);
20040 {
20041 PyThreadState* __tstate = wxPyBeginAllowThreads();
20042 (arg1)->SetPen((wxPen const &)*arg2);
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 resultobj = SWIG_Py_Void();
20047 return resultobj;
20048 fail:
20049 return NULL;
20050 }
20051
20052
20053 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20054 PyObject *resultobj = 0;
20055 wxDC *arg1 = (wxDC *) 0 ;
20056 wxBrush *arg2 = 0 ;
20057 void *argp1 = 0 ;
20058 int res1 = 0 ;
20059 void *argp2 = 0 ;
20060 int res2 = 0 ;
20061 PyObject * obj0 = 0 ;
20062 PyObject * obj1 = 0 ;
20063 char * kwnames[] = {
20064 (char *) "self",(char *) "brush", NULL
20065 };
20066
20067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20069 if (!SWIG_IsOK(res1)) {
20070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20071 }
20072 arg1 = reinterpret_cast< wxDC * >(argp1);
20073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20074 if (!SWIG_IsOK(res2)) {
20075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20076 }
20077 if (!argp2) {
20078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20079 }
20080 arg2 = reinterpret_cast< wxBrush * >(argp2);
20081 {
20082 PyThreadState* __tstate = wxPyBeginAllowThreads();
20083 (arg1)->SetBrush((wxBrush const &)*arg2);
20084 wxPyEndAllowThreads(__tstate);
20085 if (PyErr_Occurred()) SWIG_fail;
20086 }
20087 resultobj = SWIG_Py_Void();
20088 return resultobj;
20089 fail:
20090 return NULL;
20091 }
20092
20093
20094 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20095 PyObject *resultobj = 0;
20096 wxDC *arg1 = (wxDC *) 0 ;
20097 wxBrush *arg2 = 0 ;
20098 void *argp1 = 0 ;
20099 int res1 = 0 ;
20100 void *argp2 = 0 ;
20101 int res2 = 0 ;
20102 PyObject * obj0 = 0 ;
20103 PyObject * obj1 = 0 ;
20104 char * kwnames[] = {
20105 (char *) "self",(char *) "brush", NULL
20106 };
20107
20108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20110 if (!SWIG_IsOK(res1)) {
20111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20112 }
20113 arg1 = reinterpret_cast< wxDC * >(argp1);
20114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20115 if (!SWIG_IsOK(res2)) {
20116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20117 }
20118 if (!argp2) {
20119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20120 }
20121 arg2 = reinterpret_cast< wxBrush * >(argp2);
20122 {
20123 PyThreadState* __tstate = wxPyBeginAllowThreads();
20124 (arg1)->SetBackground((wxBrush const &)*arg2);
20125 wxPyEndAllowThreads(__tstate);
20126 if (PyErr_Occurred()) SWIG_fail;
20127 }
20128 resultobj = SWIG_Py_Void();
20129 return resultobj;
20130 fail:
20131 return NULL;
20132 }
20133
20134
20135 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20136 PyObject *resultobj = 0;
20137 wxDC *arg1 = (wxDC *) 0 ;
20138 int arg2 ;
20139 void *argp1 = 0 ;
20140 int res1 = 0 ;
20141 int val2 ;
20142 int ecode2 = 0 ;
20143 PyObject * obj0 = 0 ;
20144 PyObject * obj1 = 0 ;
20145 char * kwnames[] = {
20146 (char *) "self",(char *) "mode", NULL
20147 };
20148
20149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20151 if (!SWIG_IsOK(res1)) {
20152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20153 }
20154 arg1 = reinterpret_cast< wxDC * >(argp1);
20155 ecode2 = SWIG_AsVal_int(obj1, &val2);
20156 if (!SWIG_IsOK(ecode2)) {
20157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20158 }
20159 arg2 = static_cast< int >(val2);
20160 {
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 (arg1)->SetBackgroundMode(arg2);
20163 wxPyEndAllowThreads(__tstate);
20164 if (PyErr_Occurred()) SWIG_fail;
20165 }
20166 resultobj = SWIG_Py_Void();
20167 return resultobj;
20168 fail:
20169 return NULL;
20170 }
20171
20172
20173 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20174 PyObject *resultobj = 0;
20175 wxDC *arg1 = (wxDC *) 0 ;
20176 wxPalette *arg2 = 0 ;
20177 void *argp1 = 0 ;
20178 int res1 = 0 ;
20179 void *argp2 = 0 ;
20180 int res2 = 0 ;
20181 PyObject * obj0 = 0 ;
20182 PyObject * obj1 = 0 ;
20183 char * kwnames[] = {
20184 (char *) "self",(char *) "palette", NULL
20185 };
20186
20187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20189 if (!SWIG_IsOK(res1)) {
20190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20191 }
20192 arg1 = reinterpret_cast< wxDC * >(argp1);
20193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20194 if (!SWIG_IsOK(res2)) {
20195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20196 }
20197 if (!argp2) {
20198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20199 }
20200 arg2 = reinterpret_cast< wxPalette * >(argp2);
20201 {
20202 PyThreadState* __tstate = wxPyBeginAllowThreads();
20203 (arg1)->SetPalette((wxPalette const &)*arg2);
20204 wxPyEndAllowThreads(__tstate);
20205 if (PyErr_Occurred()) SWIG_fail;
20206 }
20207 resultobj = SWIG_Py_Void();
20208 return resultobj;
20209 fail:
20210 return NULL;
20211 }
20212
20213
20214 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20215 PyObject *resultobj = 0;
20216 wxDC *arg1 = (wxDC *) 0 ;
20217 void *argp1 = 0 ;
20218 int res1 = 0 ;
20219 PyObject *swig_obj[1] ;
20220
20221 if (!args) SWIG_fail;
20222 swig_obj[0] = args;
20223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20224 if (!SWIG_IsOK(res1)) {
20225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20226 }
20227 arg1 = reinterpret_cast< wxDC * >(argp1);
20228 {
20229 PyThreadState* __tstate = wxPyBeginAllowThreads();
20230 (arg1)->DestroyClippingRegion();
20231 wxPyEndAllowThreads(__tstate);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 }
20234 resultobj = SWIG_Py_Void();
20235 return resultobj;
20236 fail:
20237 return NULL;
20238 }
20239
20240
20241 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20242 PyObject *resultobj = 0;
20243 wxDC *arg1 = (wxDC *) 0 ;
20244 int *arg2 = (int *) 0 ;
20245 int *arg3 = (int *) 0 ;
20246 int *arg4 = (int *) 0 ;
20247 int *arg5 = (int *) 0 ;
20248 void *argp1 = 0 ;
20249 int res1 = 0 ;
20250 int temp2 ;
20251 int res2 = SWIG_TMPOBJ ;
20252 int temp3 ;
20253 int res3 = SWIG_TMPOBJ ;
20254 int temp4 ;
20255 int res4 = SWIG_TMPOBJ ;
20256 int temp5 ;
20257 int res5 = SWIG_TMPOBJ ;
20258 PyObject *swig_obj[1] ;
20259
20260 arg2 = &temp2;
20261 arg3 = &temp3;
20262 arg4 = &temp4;
20263 arg5 = &temp5;
20264 if (!args) SWIG_fail;
20265 swig_obj[0] = args;
20266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20267 if (!SWIG_IsOK(res1)) {
20268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20269 }
20270 arg1 = reinterpret_cast< wxDC * >(argp1);
20271 {
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20274 wxPyEndAllowThreads(__tstate);
20275 if (PyErr_Occurred()) SWIG_fail;
20276 }
20277 resultobj = SWIG_Py_Void();
20278 if (SWIG_IsTmpObj(res2)) {
20279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20280 } else {
20281 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20283 }
20284 if (SWIG_IsTmpObj(res3)) {
20285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20286 } else {
20287 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20289 }
20290 if (SWIG_IsTmpObj(res4)) {
20291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20292 } else {
20293 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20295 }
20296 if (SWIG_IsTmpObj(res5)) {
20297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20298 } else {
20299 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20301 }
20302 return resultobj;
20303 fail:
20304 return NULL;
20305 }
20306
20307
20308 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20309 PyObject *resultobj = 0;
20310 wxDC *arg1 = (wxDC *) 0 ;
20311 wxRect result;
20312 void *argp1 = 0 ;
20313 int res1 = 0 ;
20314 PyObject *swig_obj[1] ;
20315
20316 if (!args) SWIG_fail;
20317 swig_obj[0] = args;
20318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20319 if (!SWIG_IsOK(res1)) {
20320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20321 }
20322 arg1 = reinterpret_cast< wxDC * >(argp1);
20323 {
20324 PyThreadState* __tstate = wxPyBeginAllowThreads();
20325 result = wxDC_GetClippingRect(arg1);
20326 wxPyEndAllowThreads(__tstate);
20327 if (PyErr_Occurred()) SWIG_fail;
20328 }
20329 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20330 return resultobj;
20331 fail:
20332 return NULL;
20333 }
20334
20335
20336 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20337 PyObject *resultobj = 0;
20338 wxDC *arg1 = (wxDC *) 0 ;
20339 int result;
20340 void *argp1 = 0 ;
20341 int res1 = 0 ;
20342 PyObject *swig_obj[1] ;
20343
20344 if (!args) SWIG_fail;
20345 swig_obj[0] = args;
20346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20347 if (!SWIG_IsOK(res1)) {
20348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20349 }
20350 arg1 = reinterpret_cast< wxDC * >(argp1);
20351 {
20352 PyThreadState* __tstate = wxPyBeginAllowThreads();
20353 result = (int)((wxDC const *)arg1)->GetCharHeight();
20354 wxPyEndAllowThreads(__tstate);
20355 if (PyErr_Occurred()) SWIG_fail;
20356 }
20357 resultobj = SWIG_From_int(static_cast< int >(result));
20358 return resultobj;
20359 fail:
20360 return NULL;
20361 }
20362
20363
20364 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20365 PyObject *resultobj = 0;
20366 wxDC *arg1 = (wxDC *) 0 ;
20367 int result;
20368 void *argp1 = 0 ;
20369 int res1 = 0 ;
20370 PyObject *swig_obj[1] ;
20371
20372 if (!args) SWIG_fail;
20373 swig_obj[0] = args;
20374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20375 if (!SWIG_IsOK(res1)) {
20376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20377 }
20378 arg1 = reinterpret_cast< wxDC * >(argp1);
20379 {
20380 PyThreadState* __tstate = wxPyBeginAllowThreads();
20381 result = (int)((wxDC const *)arg1)->GetCharWidth();
20382 wxPyEndAllowThreads(__tstate);
20383 if (PyErr_Occurred()) SWIG_fail;
20384 }
20385 resultobj = SWIG_From_int(static_cast< int >(result));
20386 return resultobj;
20387 fail:
20388 return NULL;
20389 }
20390
20391
20392 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20393 PyObject *resultobj = 0;
20394 wxDC *arg1 = (wxDC *) 0 ;
20395 wxString *arg2 = 0 ;
20396 int *arg3 = (int *) 0 ;
20397 int *arg4 = (int *) 0 ;
20398 void *argp1 = 0 ;
20399 int res1 = 0 ;
20400 bool temp2 = false ;
20401 int temp3 ;
20402 int res3 = SWIG_TMPOBJ ;
20403 int temp4 ;
20404 int res4 = SWIG_TMPOBJ ;
20405 PyObject * obj0 = 0 ;
20406 PyObject * obj1 = 0 ;
20407 char * kwnames[] = {
20408 (char *) "self",(char *) "string", NULL
20409 };
20410
20411 arg3 = &temp3;
20412 arg4 = &temp4;
20413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20415 if (!SWIG_IsOK(res1)) {
20416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20417 }
20418 arg1 = reinterpret_cast< wxDC * >(argp1);
20419 {
20420 arg2 = wxString_in_helper(obj1);
20421 if (arg2 == NULL) SWIG_fail;
20422 temp2 = true;
20423 }
20424 {
20425 PyThreadState* __tstate = wxPyBeginAllowThreads();
20426 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20427 wxPyEndAllowThreads(__tstate);
20428 if (PyErr_Occurred()) SWIG_fail;
20429 }
20430 resultobj = SWIG_Py_Void();
20431 if (SWIG_IsTmpObj(res3)) {
20432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20433 } else {
20434 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20436 }
20437 if (SWIG_IsTmpObj(res4)) {
20438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20439 } else {
20440 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20442 }
20443 {
20444 if (temp2)
20445 delete arg2;
20446 }
20447 return resultobj;
20448 fail:
20449 {
20450 if (temp2)
20451 delete arg2;
20452 }
20453 return NULL;
20454 }
20455
20456
20457 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20458 PyObject *resultobj = 0;
20459 wxDC *arg1 = (wxDC *) 0 ;
20460 wxString *arg2 = 0 ;
20461 int *arg3 = (int *) 0 ;
20462 int *arg4 = (int *) 0 ;
20463 int *arg5 = (int *) 0 ;
20464 int *arg6 = (int *) 0 ;
20465 wxFont *arg7 = (wxFont *) NULL ;
20466 void *argp1 = 0 ;
20467 int res1 = 0 ;
20468 bool temp2 = false ;
20469 int temp3 ;
20470 int res3 = SWIG_TMPOBJ ;
20471 int temp4 ;
20472 int res4 = SWIG_TMPOBJ ;
20473 int temp5 ;
20474 int res5 = SWIG_TMPOBJ ;
20475 int temp6 ;
20476 int res6 = SWIG_TMPOBJ ;
20477 void *argp7 = 0 ;
20478 int res7 = 0 ;
20479 PyObject * obj0 = 0 ;
20480 PyObject * obj1 = 0 ;
20481 PyObject * obj2 = 0 ;
20482 char * kwnames[] = {
20483 (char *) "self",(char *) "string",(char *) "font", NULL
20484 };
20485
20486 arg3 = &temp3;
20487 arg4 = &temp4;
20488 arg5 = &temp5;
20489 arg6 = &temp6;
20490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20492 if (!SWIG_IsOK(res1)) {
20493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20494 }
20495 arg1 = reinterpret_cast< wxDC * >(argp1);
20496 {
20497 arg2 = wxString_in_helper(obj1);
20498 if (arg2 == NULL) SWIG_fail;
20499 temp2 = true;
20500 }
20501 if (obj2) {
20502 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20503 if (!SWIG_IsOK(res7)) {
20504 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20505 }
20506 arg7 = reinterpret_cast< wxFont * >(argp7);
20507 }
20508 {
20509 PyThreadState* __tstate = wxPyBeginAllowThreads();
20510 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20511 wxPyEndAllowThreads(__tstate);
20512 if (PyErr_Occurred()) SWIG_fail;
20513 }
20514 resultobj = SWIG_Py_Void();
20515 if (SWIG_IsTmpObj(res3)) {
20516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20517 } else {
20518 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20519 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20520 }
20521 if (SWIG_IsTmpObj(res4)) {
20522 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20523 } else {
20524 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20525 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20526 }
20527 if (SWIG_IsTmpObj(res5)) {
20528 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20529 } else {
20530 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20531 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20532 }
20533 if (SWIG_IsTmpObj(res6)) {
20534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20535 } else {
20536 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20538 }
20539 {
20540 if (temp2)
20541 delete arg2;
20542 }
20543 return resultobj;
20544 fail:
20545 {
20546 if (temp2)
20547 delete arg2;
20548 }
20549 return NULL;
20550 }
20551
20552
20553 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20554 PyObject *resultobj = 0;
20555 wxDC *arg1 = (wxDC *) 0 ;
20556 wxString *arg2 = 0 ;
20557 int *arg3 = (int *) 0 ;
20558 int *arg4 = (int *) 0 ;
20559 int *arg5 = (int *) 0 ;
20560 wxFont *arg6 = (wxFont *) NULL ;
20561 void *argp1 = 0 ;
20562 int res1 = 0 ;
20563 bool temp2 = false ;
20564 int temp3 ;
20565 int res3 = SWIG_TMPOBJ ;
20566 int temp4 ;
20567 int res4 = SWIG_TMPOBJ ;
20568 int temp5 ;
20569 int res5 = SWIG_TMPOBJ ;
20570 void *argp6 = 0 ;
20571 int res6 = 0 ;
20572 PyObject * obj0 = 0 ;
20573 PyObject * obj1 = 0 ;
20574 PyObject * obj2 = 0 ;
20575 char * kwnames[] = {
20576 (char *) "self",(char *) "text",(char *) "font", NULL
20577 };
20578
20579 arg3 = &temp3;
20580 arg4 = &temp4;
20581 arg5 = &temp5;
20582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20584 if (!SWIG_IsOK(res1)) {
20585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20586 }
20587 arg1 = reinterpret_cast< wxDC * >(argp1);
20588 {
20589 arg2 = wxString_in_helper(obj1);
20590 if (arg2 == NULL) SWIG_fail;
20591 temp2 = true;
20592 }
20593 if (obj2) {
20594 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20595 if (!SWIG_IsOK(res6)) {
20596 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20597 }
20598 arg6 = reinterpret_cast< wxFont * >(argp6);
20599 }
20600 {
20601 PyThreadState* __tstate = wxPyBeginAllowThreads();
20602 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20603 wxPyEndAllowThreads(__tstate);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
20606 resultobj = SWIG_Py_Void();
20607 if (SWIG_IsTmpObj(res3)) {
20608 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20609 } else {
20610 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20612 }
20613 if (SWIG_IsTmpObj(res4)) {
20614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20615 } else {
20616 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20618 }
20619 if (SWIG_IsTmpObj(res5)) {
20620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20621 } else {
20622 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20624 }
20625 {
20626 if (temp2)
20627 delete arg2;
20628 }
20629 return resultobj;
20630 fail:
20631 {
20632 if (temp2)
20633 delete arg2;
20634 }
20635 return NULL;
20636 }
20637
20638
20639 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20640 PyObject *resultobj = 0;
20641 wxDC *arg1 = (wxDC *) 0 ;
20642 wxString *arg2 = 0 ;
20643 wxArrayInt result;
20644 void *argp1 = 0 ;
20645 int res1 = 0 ;
20646 bool temp2 = false ;
20647 PyObject * obj0 = 0 ;
20648 PyObject * obj1 = 0 ;
20649 char * kwnames[] = {
20650 (char *) "self",(char *) "text", NULL
20651 };
20652
20653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20655 if (!SWIG_IsOK(res1)) {
20656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20657 }
20658 arg1 = reinterpret_cast< wxDC * >(argp1);
20659 {
20660 arg2 = wxString_in_helper(obj1);
20661 if (arg2 == NULL) SWIG_fail;
20662 temp2 = true;
20663 }
20664 {
20665 PyThreadState* __tstate = wxPyBeginAllowThreads();
20666 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20667 wxPyEndAllowThreads(__tstate);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 }
20670 {
20671 resultobj = PyList_New(0);
20672 size_t idx;
20673 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20674 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20675 PyList_Append(resultobj, val);
20676 Py_DECREF(val);
20677 }
20678 }
20679 {
20680 if (temp2)
20681 delete arg2;
20682 }
20683 return resultobj;
20684 fail:
20685 {
20686 if (temp2)
20687 delete arg2;
20688 }
20689 return NULL;
20690 }
20691
20692
20693 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20694 PyObject *resultobj = 0;
20695 wxDC *arg1 = (wxDC *) 0 ;
20696 wxSize result;
20697 void *argp1 = 0 ;
20698 int res1 = 0 ;
20699 PyObject *swig_obj[1] ;
20700
20701 if (!args) SWIG_fail;
20702 swig_obj[0] = args;
20703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20704 if (!SWIG_IsOK(res1)) {
20705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20706 }
20707 arg1 = reinterpret_cast< wxDC * >(argp1);
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 result = (arg1)->GetSize();
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20715 return resultobj;
20716 fail:
20717 return NULL;
20718 }
20719
20720
20721 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20722 PyObject *resultobj = 0;
20723 wxDC *arg1 = (wxDC *) 0 ;
20724 int *arg2 = (int *) 0 ;
20725 int *arg3 = (int *) 0 ;
20726 void *argp1 = 0 ;
20727 int res1 = 0 ;
20728 int temp2 ;
20729 int res2 = SWIG_TMPOBJ ;
20730 int temp3 ;
20731 int res3 = SWIG_TMPOBJ ;
20732 PyObject *swig_obj[1] ;
20733
20734 arg2 = &temp2;
20735 arg3 = &temp3;
20736 if (!args) SWIG_fail;
20737 swig_obj[0] = args;
20738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20739 if (!SWIG_IsOK(res1)) {
20740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20741 }
20742 arg1 = reinterpret_cast< wxDC * >(argp1);
20743 {
20744 PyThreadState* __tstate = wxPyBeginAllowThreads();
20745 (arg1)->GetSize(arg2,arg3);
20746 wxPyEndAllowThreads(__tstate);
20747 if (PyErr_Occurred()) SWIG_fail;
20748 }
20749 resultobj = SWIG_Py_Void();
20750 if (SWIG_IsTmpObj(res2)) {
20751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20752 } else {
20753 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20755 }
20756 if (SWIG_IsTmpObj(res3)) {
20757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20758 } else {
20759 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20761 }
20762 return resultobj;
20763 fail:
20764 return NULL;
20765 }
20766
20767
20768 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20769 PyObject *resultobj = 0;
20770 wxDC *arg1 = (wxDC *) 0 ;
20771 wxSize result;
20772 void *argp1 = 0 ;
20773 int res1 = 0 ;
20774 PyObject *swig_obj[1] ;
20775
20776 if (!args) SWIG_fail;
20777 swig_obj[0] = args;
20778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20779 if (!SWIG_IsOK(res1)) {
20780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20781 }
20782 arg1 = reinterpret_cast< wxDC * >(argp1);
20783 {
20784 PyThreadState* __tstate = wxPyBeginAllowThreads();
20785 result = ((wxDC const *)arg1)->GetSizeMM();
20786 wxPyEndAllowThreads(__tstate);
20787 if (PyErr_Occurred()) SWIG_fail;
20788 }
20789 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20790 return resultobj;
20791 fail:
20792 return NULL;
20793 }
20794
20795
20796 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20797 PyObject *resultobj = 0;
20798 wxDC *arg1 = (wxDC *) 0 ;
20799 int *arg2 = (int *) 0 ;
20800 int *arg3 = (int *) 0 ;
20801 void *argp1 = 0 ;
20802 int res1 = 0 ;
20803 int temp2 ;
20804 int res2 = SWIG_TMPOBJ ;
20805 int temp3 ;
20806 int res3 = SWIG_TMPOBJ ;
20807 PyObject *swig_obj[1] ;
20808
20809 arg2 = &temp2;
20810 arg3 = &temp3;
20811 if (!args) SWIG_fail;
20812 swig_obj[0] = args;
20813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20814 if (!SWIG_IsOK(res1)) {
20815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20816 }
20817 arg1 = reinterpret_cast< wxDC * >(argp1);
20818 {
20819 PyThreadState* __tstate = wxPyBeginAllowThreads();
20820 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
20821 wxPyEndAllowThreads(__tstate);
20822 if (PyErr_Occurred()) SWIG_fail;
20823 }
20824 resultobj = SWIG_Py_Void();
20825 if (SWIG_IsTmpObj(res2)) {
20826 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20827 } else {
20828 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20829 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20830 }
20831 if (SWIG_IsTmpObj(res3)) {
20832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20833 } else {
20834 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20836 }
20837 return resultobj;
20838 fail:
20839 return NULL;
20840 }
20841
20842
20843 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20844 PyObject *resultobj = 0;
20845 wxDC *arg1 = (wxDC *) 0 ;
20846 int arg2 ;
20847 int result;
20848 void *argp1 = 0 ;
20849 int res1 = 0 ;
20850 int val2 ;
20851 int ecode2 = 0 ;
20852 PyObject * obj0 = 0 ;
20853 PyObject * obj1 = 0 ;
20854 char * kwnames[] = {
20855 (char *) "self",(char *) "x", NULL
20856 };
20857
20858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
20859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20860 if (!SWIG_IsOK(res1)) {
20861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
20862 }
20863 arg1 = reinterpret_cast< wxDC * >(argp1);
20864 ecode2 = SWIG_AsVal_int(obj1, &val2);
20865 if (!SWIG_IsOK(ecode2)) {
20866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
20867 }
20868 arg2 = static_cast< int >(val2);
20869 {
20870 PyThreadState* __tstate = wxPyBeginAllowThreads();
20871 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
20872 wxPyEndAllowThreads(__tstate);
20873 if (PyErr_Occurred()) SWIG_fail;
20874 }
20875 resultobj = SWIG_From_int(static_cast< int >(result));
20876 return resultobj;
20877 fail:
20878 return NULL;
20879 }
20880
20881
20882 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20883 PyObject *resultobj = 0;
20884 wxDC *arg1 = (wxDC *) 0 ;
20885 int arg2 ;
20886 int result;
20887 void *argp1 = 0 ;
20888 int res1 = 0 ;
20889 int val2 ;
20890 int ecode2 = 0 ;
20891 PyObject * obj0 = 0 ;
20892 PyObject * obj1 = 0 ;
20893 char * kwnames[] = {
20894 (char *) "self",(char *) "y", NULL
20895 };
20896
20897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
20898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20899 if (!SWIG_IsOK(res1)) {
20900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
20901 }
20902 arg1 = reinterpret_cast< wxDC * >(argp1);
20903 ecode2 = SWIG_AsVal_int(obj1, &val2);
20904 if (!SWIG_IsOK(ecode2)) {
20905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
20906 }
20907 arg2 = static_cast< int >(val2);
20908 {
20909 PyThreadState* __tstate = wxPyBeginAllowThreads();
20910 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
20911 wxPyEndAllowThreads(__tstate);
20912 if (PyErr_Occurred()) SWIG_fail;
20913 }
20914 resultobj = SWIG_From_int(static_cast< int >(result));
20915 return resultobj;
20916 fail:
20917 return NULL;
20918 }
20919
20920
20921 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20922 PyObject *resultobj = 0;
20923 wxDC *arg1 = (wxDC *) 0 ;
20924 int arg2 ;
20925 int result;
20926 void *argp1 = 0 ;
20927 int res1 = 0 ;
20928 int val2 ;
20929 int ecode2 = 0 ;
20930 PyObject * obj0 = 0 ;
20931 PyObject * obj1 = 0 ;
20932 char * kwnames[] = {
20933 (char *) "self",(char *) "x", NULL
20934 };
20935
20936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
20937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20938 if (!SWIG_IsOK(res1)) {
20939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20940 }
20941 arg1 = reinterpret_cast< wxDC * >(argp1);
20942 ecode2 = SWIG_AsVal_int(obj1, &val2);
20943 if (!SWIG_IsOK(ecode2)) {
20944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
20945 }
20946 arg2 = static_cast< int >(val2);
20947 {
20948 PyThreadState* __tstate = wxPyBeginAllowThreads();
20949 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
20950 wxPyEndAllowThreads(__tstate);
20951 if (PyErr_Occurred()) SWIG_fail;
20952 }
20953 resultobj = SWIG_From_int(static_cast< int >(result));
20954 return resultobj;
20955 fail:
20956 return NULL;
20957 }
20958
20959
20960 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20961 PyObject *resultobj = 0;
20962 wxDC *arg1 = (wxDC *) 0 ;
20963 int arg2 ;
20964 int result;
20965 void *argp1 = 0 ;
20966 int res1 = 0 ;
20967 int val2 ;
20968 int ecode2 = 0 ;
20969 PyObject * obj0 = 0 ;
20970 PyObject * obj1 = 0 ;
20971 char * kwnames[] = {
20972 (char *) "self",(char *) "y", NULL
20973 };
20974
20975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
20976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20977 if (!SWIG_IsOK(res1)) {
20978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20979 }
20980 arg1 = reinterpret_cast< wxDC * >(argp1);
20981 ecode2 = SWIG_AsVal_int(obj1, &val2);
20982 if (!SWIG_IsOK(ecode2)) {
20983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
20984 }
20985 arg2 = static_cast< int >(val2);
20986 {
20987 PyThreadState* __tstate = wxPyBeginAllowThreads();
20988 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
20989 wxPyEndAllowThreads(__tstate);
20990 if (PyErr_Occurred()) SWIG_fail;
20991 }
20992 resultobj = SWIG_From_int(static_cast< int >(result));
20993 return resultobj;
20994 fail:
20995 return NULL;
20996 }
20997
20998
20999 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21000 PyObject *resultobj = 0;
21001 wxDC *arg1 = (wxDC *) 0 ;
21002 int arg2 ;
21003 int result;
21004 void *argp1 = 0 ;
21005 int res1 = 0 ;
21006 int val2 ;
21007 int ecode2 = 0 ;
21008 PyObject * obj0 = 0 ;
21009 PyObject * obj1 = 0 ;
21010 char * kwnames[] = {
21011 (char *) "self",(char *) "x", NULL
21012 };
21013
21014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21016 if (!SWIG_IsOK(res1)) {
21017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21018 }
21019 arg1 = reinterpret_cast< wxDC * >(argp1);
21020 ecode2 = SWIG_AsVal_int(obj1, &val2);
21021 if (!SWIG_IsOK(ecode2)) {
21022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21023 }
21024 arg2 = static_cast< int >(val2);
21025 {
21026 PyThreadState* __tstate = wxPyBeginAllowThreads();
21027 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21028 wxPyEndAllowThreads(__tstate);
21029 if (PyErr_Occurred()) SWIG_fail;
21030 }
21031 resultobj = SWIG_From_int(static_cast< int >(result));
21032 return resultobj;
21033 fail:
21034 return NULL;
21035 }
21036
21037
21038 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21039 PyObject *resultobj = 0;
21040 wxDC *arg1 = (wxDC *) 0 ;
21041 int arg2 ;
21042 int result;
21043 void *argp1 = 0 ;
21044 int res1 = 0 ;
21045 int val2 ;
21046 int ecode2 = 0 ;
21047 PyObject * obj0 = 0 ;
21048 PyObject * obj1 = 0 ;
21049 char * kwnames[] = {
21050 (char *) "self",(char *) "y", NULL
21051 };
21052
21053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21055 if (!SWIG_IsOK(res1)) {
21056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21057 }
21058 arg1 = reinterpret_cast< wxDC * >(argp1);
21059 ecode2 = SWIG_AsVal_int(obj1, &val2);
21060 if (!SWIG_IsOK(ecode2)) {
21061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21062 }
21063 arg2 = static_cast< int >(val2);
21064 {
21065 PyThreadState* __tstate = wxPyBeginAllowThreads();
21066 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21067 wxPyEndAllowThreads(__tstate);
21068 if (PyErr_Occurred()) SWIG_fail;
21069 }
21070 resultobj = SWIG_From_int(static_cast< int >(result));
21071 return resultobj;
21072 fail:
21073 return NULL;
21074 }
21075
21076
21077 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21078 PyObject *resultobj = 0;
21079 wxDC *arg1 = (wxDC *) 0 ;
21080 int arg2 ;
21081 int result;
21082 void *argp1 = 0 ;
21083 int res1 = 0 ;
21084 int val2 ;
21085 int ecode2 = 0 ;
21086 PyObject * obj0 = 0 ;
21087 PyObject * obj1 = 0 ;
21088 char * kwnames[] = {
21089 (char *) "self",(char *) "x", NULL
21090 };
21091
21092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21094 if (!SWIG_IsOK(res1)) {
21095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21096 }
21097 arg1 = reinterpret_cast< wxDC * >(argp1);
21098 ecode2 = SWIG_AsVal_int(obj1, &val2);
21099 if (!SWIG_IsOK(ecode2)) {
21100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21101 }
21102 arg2 = static_cast< int >(val2);
21103 {
21104 PyThreadState* __tstate = wxPyBeginAllowThreads();
21105 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21106 wxPyEndAllowThreads(__tstate);
21107 if (PyErr_Occurred()) SWIG_fail;
21108 }
21109 resultobj = SWIG_From_int(static_cast< int >(result));
21110 return resultobj;
21111 fail:
21112 return NULL;
21113 }
21114
21115
21116 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21117 PyObject *resultobj = 0;
21118 wxDC *arg1 = (wxDC *) 0 ;
21119 int arg2 ;
21120 int result;
21121 void *argp1 = 0 ;
21122 int res1 = 0 ;
21123 int val2 ;
21124 int ecode2 = 0 ;
21125 PyObject * obj0 = 0 ;
21126 PyObject * obj1 = 0 ;
21127 char * kwnames[] = {
21128 (char *) "self",(char *) "y", NULL
21129 };
21130
21131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21133 if (!SWIG_IsOK(res1)) {
21134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21135 }
21136 arg1 = reinterpret_cast< wxDC * >(argp1);
21137 ecode2 = SWIG_AsVal_int(obj1, &val2);
21138 if (!SWIG_IsOK(ecode2)) {
21139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21140 }
21141 arg2 = static_cast< int >(val2);
21142 {
21143 PyThreadState* __tstate = wxPyBeginAllowThreads();
21144 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21145 wxPyEndAllowThreads(__tstate);
21146 if (PyErr_Occurred()) SWIG_fail;
21147 }
21148 resultobj = SWIG_From_int(static_cast< int >(result));
21149 return resultobj;
21150 fail:
21151 return NULL;
21152 }
21153
21154
21155 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21156 PyObject *resultobj = 0;
21157 wxDC *arg1 = (wxDC *) 0 ;
21158 bool result;
21159 void *argp1 = 0 ;
21160 int res1 = 0 ;
21161 PyObject *swig_obj[1] ;
21162
21163 if (!args) SWIG_fail;
21164 swig_obj[0] = args;
21165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21166 if (!SWIG_IsOK(res1)) {
21167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21168 }
21169 arg1 = reinterpret_cast< wxDC * >(argp1);
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21173 wxPyEndAllowThreads(__tstate);
21174 if (PyErr_Occurred()) SWIG_fail;
21175 }
21176 {
21177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21178 }
21179 return resultobj;
21180 fail:
21181 return NULL;
21182 }
21183
21184
21185 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21186 PyObject *resultobj = 0;
21187 wxDC *arg1 = (wxDC *) 0 ;
21188 bool result;
21189 void *argp1 = 0 ;
21190 int res1 = 0 ;
21191 PyObject *swig_obj[1] ;
21192
21193 if (!args) SWIG_fail;
21194 swig_obj[0] = args;
21195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21196 if (!SWIG_IsOK(res1)) {
21197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21198 }
21199 arg1 = reinterpret_cast< wxDC * >(argp1);
21200 {
21201 PyThreadState* __tstate = wxPyBeginAllowThreads();
21202 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 {
21207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21208 }
21209 return resultobj;
21210 fail:
21211 return NULL;
21212 }
21213
21214
21215 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21216 PyObject *resultobj = 0;
21217 wxDC *arg1 = (wxDC *) 0 ;
21218 int result;
21219 void *argp1 = 0 ;
21220 int res1 = 0 ;
21221 PyObject *swig_obj[1] ;
21222
21223 if (!args) SWIG_fail;
21224 swig_obj[0] = args;
21225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21226 if (!SWIG_IsOK(res1)) {
21227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21228 }
21229 arg1 = reinterpret_cast< wxDC * >(argp1);
21230 {
21231 PyThreadState* __tstate = wxPyBeginAllowThreads();
21232 result = (int)((wxDC const *)arg1)->GetDepth();
21233 wxPyEndAllowThreads(__tstate);
21234 if (PyErr_Occurred()) SWIG_fail;
21235 }
21236 resultobj = SWIG_From_int(static_cast< int >(result));
21237 return resultobj;
21238 fail:
21239 return NULL;
21240 }
21241
21242
21243 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21244 PyObject *resultobj = 0;
21245 wxDC *arg1 = (wxDC *) 0 ;
21246 wxSize result;
21247 void *argp1 = 0 ;
21248 int res1 = 0 ;
21249 PyObject *swig_obj[1] ;
21250
21251 if (!args) SWIG_fail;
21252 swig_obj[0] = args;
21253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21254 if (!SWIG_IsOK(res1)) {
21255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21256 }
21257 arg1 = reinterpret_cast< wxDC * >(argp1);
21258 {
21259 PyThreadState* __tstate = wxPyBeginAllowThreads();
21260 result = ((wxDC const *)arg1)->GetPPI();
21261 wxPyEndAllowThreads(__tstate);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21265 return resultobj;
21266 fail:
21267 return NULL;
21268 }
21269
21270
21271 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21272 PyObject *resultobj = 0;
21273 wxDC *arg1 = (wxDC *) 0 ;
21274 bool result;
21275 void *argp1 = 0 ;
21276 int res1 = 0 ;
21277 PyObject *swig_obj[1] ;
21278
21279 if (!args) SWIG_fail;
21280 swig_obj[0] = args;
21281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21282 if (!SWIG_IsOK(res1)) {
21283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21284 }
21285 arg1 = reinterpret_cast< wxDC * >(argp1);
21286 {
21287 PyThreadState* __tstate = wxPyBeginAllowThreads();
21288 result = (bool)((wxDC const *)arg1)->Ok();
21289 wxPyEndAllowThreads(__tstate);
21290 if (PyErr_Occurred()) SWIG_fail;
21291 }
21292 {
21293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21294 }
21295 return resultobj;
21296 fail:
21297 return NULL;
21298 }
21299
21300
21301 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21302 PyObject *resultobj = 0;
21303 wxDC *arg1 = (wxDC *) 0 ;
21304 int result;
21305 void *argp1 = 0 ;
21306 int res1 = 0 ;
21307 PyObject *swig_obj[1] ;
21308
21309 if (!args) SWIG_fail;
21310 swig_obj[0] = args;
21311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21312 if (!SWIG_IsOK(res1)) {
21313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21314 }
21315 arg1 = reinterpret_cast< wxDC * >(argp1);
21316 {
21317 PyThreadState* __tstate = wxPyBeginAllowThreads();
21318 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21319 wxPyEndAllowThreads(__tstate);
21320 if (PyErr_Occurred()) SWIG_fail;
21321 }
21322 resultobj = SWIG_From_int(static_cast< int >(result));
21323 return resultobj;
21324 fail:
21325 return NULL;
21326 }
21327
21328
21329 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21330 PyObject *resultobj = 0;
21331 wxDC *arg1 = (wxDC *) 0 ;
21332 wxBrush *result = 0 ;
21333 void *argp1 = 0 ;
21334 int res1 = 0 ;
21335 PyObject *swig_obj[1] ;
21336
21337 if (!args) SWIG_fail;
21338 swig_obj[0] = args;
21339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21340 if (!SWIG_IsOK(res1)) {
21341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21342 }
21343 arg1 = reinterpret_cast< wxDC * >(argp1);
21344 {
21345 PyThreadState* __tstate = wxPyBeginAllowThreads();
21346 {
21347 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21348 result = (wxBrush *) &_result_ref;
21349 }
21350 wxPyEndAllowThreads(__tstate);
21351 if (PyErr_Occurred()) SWIG_fail;
21352 }
21353 {
21354 wxBrush* resultptr = new wxBrush(*result);
21355 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21356 }
21357 return resultobj;
21358 fail:
21359 return NULL;
21360 }
21361
21362
21363 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21364 PyObject *resultobj = 0;
21365 wxDC *arg1 = (wxDC *) 0 ;
21366 wxBrush *result = 0 ;
21367 void *argp1 = 0 ;
21368 int res1 = 0 ;
21369 PyObject *swig_obj[1] ;
21370
21371 if (!args) SWIG_fail;
21372 swig_obj[0] = args;
21373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21374 if (!SWIG_IsOK(res1)) {
21375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21376 }
21377 arg1 = reinterpret_cast< wxDC * >(argp1);
21378 {
21379 PyThreadState* __tstate = wxPyBeginAllowThreads();
21380 {
21381 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21382 result = (wxBrush *) &_result_ref;
21383 }
21384 wxPyEndAllowThreads(__tstate);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 }
21387 {
21388 wxBrush* resultptr = new wxBrush(*result);
21389 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21390 }
21391 return resultobj;
21392 fail:
21393 return NULL;
21394 }
21395
21396
21397 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21398 PyObject *resultobj = 0;
21399 wxDC *arg1 = (wxDC *) 0 ;
21400 wxFont *result = 0 ;
21401 void *argp1 = 0 ;
21402 int res1 = 0 ;
21403 PyObject *swig_obj[1] ;
21404
21405 if (!args) SWIG_fail;
21406 swig_obj[0] = args;
21407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21408 if (!SWIG_IsOK(res1)) {
21409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21410 }
21411 arg1 = reinterpret_cast< wxDC * >(argp1);
21412 {
21413 PyThreadState* __tstate = wxPyBeginAllowThreads();
21414 {
21415 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21416 result = (wxFont *) &_result_ref;
21417 }
21418 wxPyEndAllowThreads(__tstate);
21419 if (PyErr_Occurred()) SWIG_fail;
21420 }
21421 {
21422 wxFont* resultptr = new wxFont(*result);
21423 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21424 }
21425 return resultobj;
21426 fail:
21427 return NULL;
21428 }
21429
21430
21431 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21432 PyObject *resultobj = 0;
21433 wxDC *arg1 = (wxDC *) 0 ;
21434 wxPen *result = 0 ;
21435 void *argp1 = 0 ;
21436 int res1 = 0 ;
21437 PyObject *swig_obj[1] ;
21438
21439 if (!args) SWIG_fail;
21440 swig_obj[0] = args;
21441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21442 if (!SWIG_IsOK(res1)) {
21443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21444 }
21445 arg1 = reinterpret_cast< wxDC * >(argp1);
21446 {
21447 PyThreadState* __tstate = wxPyBeginAllowThreads();
21448 {
21449 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21450 result = (wxPen *) &_result_ref;
21451 }
21452 wxPyEndAllowThreads(__tstate);
21453 if (PyErr_Occurred()) SWIG_fail;
21454 }
21455 {
21456 wxPen* resultptr = new wxPen(*result);
21457 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21458 }
21459 return resultobj;
21460 fail:
21461 return NULL;
21462 }
21463
21464
21465 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21466 PyObject *resultobj = 0;
21467 wxDC *arg1 = (wxDC *) 0 ;
21468 wxColour *result = 0 ;
21469 void *argp1 = 0 ;
21470 int res1 = 0 ;
21471 PyObject *swig_obj[1] ;
21472
21473 if (!args) SWIG_fail;
21474 swig_obj[0] = args;
21475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21476 if (!SWIG_IsOK(res1)) {
21477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21478 }
21479 arg1 = reinterpret_cast< wxDC * >(argp1);
21480 {
21481 PyThreadState* __tstate = wxPyBeginAllowThreads();
21482 {
21483 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21484 result = (wxColour *) &_result_ref;
21485 }
21486 wxPyEndAllowThreads(__tstate);
21487 if (PyErr_Occurred()) SWIG_fail;
21488 }
21489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21490 return resultobj;
21491 fail:
21492 return NULL;
21493 }
21494
21495
21496 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21497 PyObject *resultobj = 0;
21498 wxDC *arg1 = (wxDC *) 0 ;
21499 wxColour *result = 0 ;
21500 void *argp1 = 0 ;
21501 int res1 = 0 ;
21502 PyObject *swig_obj[1] ;
21503
21504 if (!args) SWIG_fail;
21505 swig_obj[0] = args;
21506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21507 if (!SWIG_IsOK(res1)) {
21508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21509 }
21510 arg1 = reinterpret_cast< wxDC * >(argp1);
21511 {
21512 PyThreadState* __tstate = wxPyBeginAllowThreads();
21513 {
21514 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21515 result = (wxColour *) &_result_ref;
21516 }
21517 wxPyEndAllowThreads(__tstate);
21518 if (PyErr_Occurred()) SWIG_fail;
21519 }
21520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21521 return resultobj;
21522 fail:
21523 return NULL;
21524 }
21525
21526
21527 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21528 PyObject *resultobj = 0;
21529 wxDC *arg1 = (wxDC *) 0 ;
21530 wxColour *arg2 = 0 ;
21531 void *argp1 = 0 ;
21532 int res1 = 0 ;
21533 wxColour temp2 ;
21534 PyObject * obj0 = 0 ;
21535 PyObject * obj1 = 0 ;
21536 char * kwnames[] = {
21537 (char *) "self",(char *) "colour", NULL
21538 };
21539
21540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21542 if (!SWIG_IsOK(res1)) {
21543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21544 }
21545 arg1 = reinterpret_cast< wxDC * >(argp1);
21546 {
21547 arg2 = &temp2;
21548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21549 }
21550 {
21551 PyThreadState* __tstate = wxPyBeginAllowThreads();
21552 (arg1)->SetTextForeground((wxColour const &)*arg2);
21553 wxPyEndAllowThreads(__tstate);
21554 if (PyErr_Occurred()) SWIG_fail;
21555 }
21556 resultobj = SWIG_Py_Void();
21557 return resultobj;
21558 fail:
21559 return NULL;
21560 }
21561
21562
21563 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21564 PyObject *resultobj = 0;
21565 wxDC *arg1 = (wxDC *) 0 ;
21566 wxColour *arg2 = 0 ;
21567 void *argp1 = 0 ;
21568 int res1 = 0 ;
21569 wxColour temp2 ;
21570 PyObject * obj0 = 0 ;
21571 PyObject * obj1 = 0 ;
21572 char * kwnames[] = {
21573 (char *) "self",(char *) "colour", NULL
21574 };
21575
21576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21578 if (!SWIG_IsOK(res1)) {
21579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21580 }
21581 arg1 = reinterpret_cast< wxDC * >(argp1);
21582 {
21583 arg2 = &temp2;
21584 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21585 }
21586 {
21587 PyThreadState* __tstate = wxPyBeginAllowThreads();
21588 (arg1)->SetTextBackground((wxColour const &)*arg2);
21589 wxPyEndAllowThreads(__tstate);
21590 if (PyErr_Occurred()) SWIG_fail;
21591 }
21592 resultobj = SWIG_Py_Void();
21593 return resultobj;
21594 fail:
21595 return NULL;
21596 }
21597
21598
21599 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21600 PyObject *resultobj = 0;
21601 wxDC *arg1 = (wxDC *) 0 ;
21602 int result;
21603 void *argp1 = 0 ;
21604 int res1 = 0 ;
21605 PyObject *swig_obj[1] ;
21606
21607 if (!args) SWIG_fail;
21608 swig_obj[0] = args;
21609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21610 if (!SWIG_IsOK(res1)) {
21611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21612 }
21613 arg1 = reinterpret_cast< wxDC * >(argp1);
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 result = (int)((wxDC const *)arg1)->GetMapMode();
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 resultobj = SWIG_From_int(static_cast< int >(result));
21621 return resultobj;
21622 fail:
21623 return NULL;
21624 }
21625
21626
21627 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21628 PyObject *resultobj = 0;
21629 wxDC *arg1 = (wxDC *) 0 ;
21630 int arg2 ;
21631 void *argp1 = 0 ;
21632 int res1 = 0 ;
21633 int val2 ;
21634 int ecode2 = 0 ;
21635 PyObject * obj0 = 0 ;
21636 PyObject * obj1 = 0 ;
21637 char * kwnames[] = {
21638 (char *) "self",(char *) "mode", NULL
21639 };
21640
21641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21643 if (!SWIG_IsOK(res1)) {
21644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21645 }
21646 arg1 = reinterpret_cast< wxDC * >(argp1);
21647 ecode2 = SWIG_AsVal_int(obj1, &val2);
21648 if (!SWIG_IsOK(ecode2)) {
21649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21650 }
21651 arg2 = static_cast< int >(val2);
21652 {
21653 PyThreadState* __tstate = wxPyBeginAllowThreads();
21654 (arg1)->SetMapMode(arg2);
21655 wxPyEndAllowThreads(__tstate);
21656 if (PyErr_Occurred()) SWIG_fail;
21657 }
21658 resultobj = SWIG_Py_Void();
21659 return resultobj;
21660 fail:
21661 return NULL;
21662 }
21663
21664
21665 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21666 PyObject *resultobj = 0;
21667 wxDC *arg1 = (wxDC *) 0 ;
21668 double *arg2 = (double *) 0 ;
21669 double *arg3 = (double *) 0 ;
21670 void *argp1 = 0 ;
21671 int res1 = 0 ;
21672 double temp2 ;
21673 int res2 = SWIG_TMPOBJ ;
21674 double temp3 ;
21675 int res3 = SWIG_TMPOBJ ;
21676 PyObject *swig_obj[1] ;
21677
21678 arg2 = &temp2;
21679 arg3 = &temp3;
21680 if (!args) SWIG_fail;
21681 swig_obj[0] = args;
21682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21683 if (!SWIG_IsOK(res1)) {
21684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21685 }
21686 arg1 = reinterpret_cast< wxDC * >(argp1);
21687 {
21688 PyThreadState* __tstate = wxPyBeginAllowThreads();
21689 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21690 wxPyEndAllowThreads(__tstate);
21691 if (PyErr_Occurred()) SWIG_fail;
21692 }
21693 resultobj = SWIG_Py_Void();
21694 if (SWIG_IsTmpObj(res2)) {
21695 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21696 } else {
21697 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21698 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21699 }
21700 if (SWIG_IsTmpObj(res3)) {
21701 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21702 } else {
21703 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21704 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21705 }
21706 return resultobj;
21707 fail:
21708 return NULL;
21709 }
21710
21711
21712 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21713 PyObject *resultobj = 0;
21714 wxDC *arg1 = (wxDC *) 0 ;
21715 double arg2 ;
21716 double arg3 ;
21717 void *argp1 = 0 ;
21718 int res1 = 0 ;
21719 double val2 ;
21720 int ecode2 = 0 ;
21721 double val3 ;
21722 int ecode3 = 0 ;
21723 PyObject * obj0 = 0 ;
21724 PyObject * obj1 = 0 ;
21725 PyObject * obj2 = 0 ;
21726 char * kwnames[] = {
21727 (char *) "self",(char *) "x",(char *) "y", NULL
21728 };
21729
21730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21732 if (!SWIG_IsOK(res1)) {
21733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21734 }
21735 arg1 = reinterpret_cast< wxDC * >(argp1);
21736 ecode2 = SWIG_AsVal_double(obj1, &val2);
21737 if (!SWIG_IsOK(ecode2)) {
21738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21739 }
21740 arg2 = static_cast< double >(val2);
21741 ecode3 = SWIG_AsVal_double(obj2, &val3);
21742 if (!SWIG_IsOK(ecode3)) {
21743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21744 }
21745 arg3 = static_cast< double >(val3);
21746 {
21747 PyThreadState* __tstate = wxPyBeginAllowThreads();
21748 (arg1)->SetUserScale(arg2,arg3);
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 resultobj = SWIG_Py_Void();
21753 return resultobj;
21754 fail:
21755 return NULL;
21756 }
21757
21758
21759 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21760 PyObject *resultobj = 0;
21761 wxDC *arg1 = (wxDC *) 0 ;
21762 double *arg2 = (double *) 0 ;
21763 double *arg3 = (double *) 0 ;
21764 void *argp1 = 0 ;
21765 int res1 = 0 ;
21766 double temp2 ;
21767 int res2 = SWIG_TMPOBJ ;
21768 double temp3 ;
21769 int res3 = SWIG_TMPOBJ ;
21770 PyObject *swig_obj[1] ;
21771
21772 arg2 = &temp2;
21773 arg3 = &temp3;
21774 if (!args) SWIG_fail;
21775 swig_obj[0] = args;
21776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21777 if (!SWIG_IsOK(res1)) {
21778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21779 }
21780 arg1 = reinterpret_cast< wxDC * >(argp1);
21781 {
21782 PyThreadState* __tstate = wxPyBeginAllowThreads();
21783 (arg1)->GetLogicalScale(arg2,arg3);
21784 wxPyEndAllowThreads(__tstate);
21785 if (PyErr_Occurred()) SWIG_fail;
21786 }
21787 resultobj = SWIG_Py_Void();
21788 if (SWIG_IsTmpObj(res2)) {
21789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21790 } else {
21791 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21792 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21793 }
21794 if (SWIG_IsTmpObj(res3)) {
21795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21796 } else {
21797 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21799 }
21800 return resultobj;
21801 fail:
21802 return NULL;
21803 }
21804
21805
21806 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21807 PyObject *resultobj = 0;
21808 wxDC *arg1 = (wxDC *) 0 ;
21809 double arg2 ;
21810 double arg3 ;
21811 void *argp1 = 0 ;
21812 int res1 = 0 ;
21813 double val2 ;
21814 int ecode2 = 0 ;
21815 double val3 ;
21816 int ecode3 = 0 ;
21817 PyObject * obj0 = 0 ;
21818 PyObject * obj1 = 0 ;
21819 PyObject * obj2 = 0 ;
21820 char * kwnames[] = {
21821 (char *) "self",(char *) "x",(char *) "y", NULL
21822 };
21823
21824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21826 if (!SWIG_IsOK(res1)) {
21827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21828 }
21829 arg1 = reinterpret_cast< wxDC * >(argp1);
21830 ecode2 = SWIG_AsVal_double(obj1, &val2);
21831 if (!SWIG_IsOK(ecode2)) {
21832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
21833 }
21834 arg2 = static_cast< double >(val2);
21835 ecode3 = SWIG_AsVal_double(obj2, &val3);
21836 if (!SWIG_IsOK(ecode3)) {
21837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
21838 }
21839 arg3 = static_cast< double >(val3);
21840 {
21841 PyThreadState* __tstate = wxPyBeginAllowThreads();
21842 (arg1)->SetLogicalScale(arg2,arg3);
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 resultobj = SWIG_Py_Void();
21847 return resultobj;
21848 fail:
21849 return NULL;
21850 }
21851
21852
21853 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21854 PyObject *resultobj = 0;
21855 wxDC *arg1 = (wxDC *) 0 ;
21856 wxPoint result;
21857 void *argp1 = 0 ;
21858 int res1 = 0 ;
21859 PyObject *swig_obj[1] ;
21860
21861 if (!args) SWIG_fail;
21862 swig_obj[0] = args;
21863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21864 if (!SWIG_IsOK(res1)) {
21865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21866 }
21867 arg1 = reinterpret_cast< wxDC * >(argp1);
21868 {
21869 PyThreadState* __tstate = wxPyBeginAllowThreads();
21870 result = ((wxDC const *)arg1)->GetLogicalOrigin();
21871 wxPyEndAllowThreads(__tstate);
21872 if (PyErr_Occurred()) SWIG_fail;
21873 }
21874 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21875 return resultobj;
21876 fail:
21877 return NULL;
21878 }
21879
21880
21881 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21882 PyObject *resultobj = 0;
21883 wxDC *arg1 = (wxDC *) 0 ;
21884 int *arg2 = (int *) 0 ;
21885 int *arg3 = (int *) 0 ;
21886 void *argp1 = 0 ;
21887 int res1 = 0 ;
21888 int temp2 ;
21889 int res2 = SWIG_TMPOBJ ;
21890 int temp3 ;
21891 int res3 = SWIG_TMPOBJ ;
21892 PyObject *swig_obj[1] ;
21893
21894 arg2 = &temp2;
21895 arg3 = &temp3;
21896 if (!args) SWIG_fail;
21897 swig_obj[0] = args;
21898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21899 if (!SWIG_IsOK(res1)) {
21900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21901 }
21902 arg1 = reinterpret_cast< wxDC * >(argp1);
21903 {
21904 PyThreadState* __tstate = wxPyBeginAllowThreads();
21905 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
21906 wxPyEndAllowThreads(__tstate);
21907 if (PyErr_Occurred()) SWIG_fail;
21908 }
21909 resultobj = SWIG_Py_Void();
21910 if (SWIG_IsTmpObj(res2)) {
21911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21912 } else {
21913 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21915 }
21916 if (SWIG_IsTmpObj(res3)) {
21917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21918 } else {
21919 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21921 }
21922 return resultobj;
21923 fail:
21924 return NULL;
21925 }
21926
21927
21928 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21929 PyObject *resultobj = 0;
21930 wxDC *arg1 = (wxDC *) 0 ;
21931 int arg2 ;
21932 int arg3 ;
21933 void *argp1 = 0 ;
21934 int res1 = 0 ;
21935 int val2 ;
21936 int ecode2 = 0 ;
21937 int val3 ;
21938 int ecode3 = 0 ;
21939 PyObject * obj0 = 0 ;
21940 PyObject * obj1 = 0 ;
21941 PyObject * obj2 = 0 ;
21942 char * kwnames[] = {
21943 (char *) "self",(char *) "x",(char *) "y", NULL
21944 };
21945
21946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21948 if (!SWIG_IsOK(res1)) {
21949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
21950 }
21951 arg1 = reinterpret_cast< wxDC * >(argp1);
21952 ecode2 = SWIG_AsVal_int(obj1, &val2);
21953 if (!SWIG_IsOK(ecode2)) {
21954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
21955 }
21956 arg2 = static_cast< int >(val2);
21957 ecode3 = SWIG_AsVal_int(obj2, &val3);
21958 if (!SWIG_IsOK(ecode3)) {
21959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
21960 }
21961 arg3 = static_cast< int >(val3);
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 (arg1)->SetLogicalOrigin(arg2,arg3);
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 resultobj = SWIG_Py_Void();
21969 return resultobj;
21970 fail:
21971 return NULL;
21972 }
21973
21974
21975 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21976 PyObject *resultobj = 0;
21977 wxDC *arg1 = (wxDC *) 0 ;
21978 wxPoint *arg2 = 0 ;
21979 void *argp1 = 0 ;
21980 int res1 = 0 ;
21981 wxPoint temp2 ;
21982 PyObject * obj0 = 0 ;
21983 PyObject * obj1 = 0 ;
21984 char * kwnames[] = {
21985 (char *) "self",(char *) "point", NULL
21986 };
21987
21988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
21989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21990 if (!SWIG_IsOK(res1)) {
21991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
21992 }
21993 arg1 = reinterpret_cast< wxDC * >(argp1);
21994 {
21995 arg2 = &temp2;
21996 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21997 }
21998 {
21999 PyThreadState* __tstate = wxPyBeginAllowThreads();
22000 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22001 wxPyEndAllowThreads(__tstate);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 resultobj = SWIG_Py_Void();
22005 return resultobj;
22006 fail:
22007 return NULL;
22008 }
22009
22010
22011 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22012 PyObject *resultobj = 0;
22013 wxDC *arg1 = (wxDC *) 0 ;
22014 wxPoint result;
22015 void *argp1 = 0 ;
22016 int res1 = 0 ;
22017 PyObject *swig_obj[1] ;
22018
22019 if (!args) SWIG_fail;
22020 swig_obj[0] = args;
22021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22022 if (!SWIG_IsOK(res1)) {
22023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22024 }
22025 arg1 = reinterpret_cast< wxDC * >(argp1);
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22029 wxPyEndAllowThreads(__tstate);
22030 if (PyErr_Occurred()) SWIG_fail;
22031 }
22032 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22033 return resultobj;
22034 fail:
22035 return NULL;
22036 }
22037
22038
22039 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22040 PyObject *resultobj = 0;
22041 wxDC *arg1 = (wxDC *) 0 ;
22042 int *arg2 = (int *) 0 ;
22043 int *arg3 = (int *) 0 ;
22044 void *argp1 = 0 ;
22045 int res1 = 0 ;
22046 int temp2 ;
22047 int res2 = SWIG_TMPOBJ ;
22048 int temp3 ;
22049 int res3 = SWIG_TMPOBJ ;
22050 PyObject *swig_obj[1] ;
22051
22052 arg2 = &temp2;
22053 arg3 = &temp3;
22054 if (!args) SWIG_fail;
22055 swig_obj[0] = args;
22056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22057 if (!SWIG_IsOK(res1)) {
22058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22059 }
22060 arg1 = reinterpret_cast< wxDC * >(argp1);
22061 {
22062 PyThreadState* __tstate = wxPyBeginAllowThreads();
22063 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22064 wxPyEndAllowThreads(__tstate);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 }
22067 resultobj = SWIG_Py_Void();
22068 if (SWIG_IsTmpObj(res2)) {
22069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22070 } else {
22071 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22073 }
22074 if (SWIG_IsTmpObj(res3)) {
22075 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22076 } else {
22077 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22078 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22079 }
22080 return resultobj;
22081 fail:
22082 return NULL;
22083 }
22084
22085
22086 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22087 PyObject *resultobj = 0;
22088 wxDC *arg1 = (wxDC *) 0 ;
22089 int arg2 ;
22090 int arg3 ;
22091 void *argp1 = 0 ;
22092 int res1 = 0 ;
22093 int val2 ;
22094 int ecode2 = 0 ;
22095 int val3 ;
22096 int ecode3 = 0 ;
22097 PyObject * obj0 = 0 ;
22098 PyObject * obj1 = 0 ;
22099 PyObject * obj2 = 0 ;
22100 char * kwnames[] = {
22101 (char *) "self",(char *) "x",(char *) "y", NULL
22102 };
22103
22104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22106 if (!SWIG_IsOK(res1)) {
22107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22108 }
22109 arg1 = reinterpret_cast< wxDC * >(argp1);
22110 ecode2 = SWIG_AsVal_int(obj1, &val2);
22111 if (!SWIG_IsOK(ecode2)) {
22112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22113 }
22114 arg2 = static_cast< int >(val2);
22115 ecode3 = SWIG_AsVal_int(obj2, &val3);
22116 if (!SWIG_IsOK(ecode3)) {
22117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22118 }
22119 arg3 = static_cast< int >(val3);
22120 {
22121 PyThreadState* __tstate = wxPyBeginAllowThreads();
22122 (arg1)->SetDeviceOrigin(arg2,arg3);
22123 wxPyEndAllowThreads(__tstate);
22124 if (PyErr_Occurred()) SWIG_fail;
22125 }
22126 resultobj = SWIG_Py_Void();
22127 return resultobj;
22128 fail:
22129 return NULL;
22130 }
22131
22132
22133 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22134 PyObject *resultobj = 0;
22135 wxDC *arg1 = (wxDC *) 0 ;
22136 wxPoint *arg2 = 0 ;
22137 void *argp1 = 0 ;
22138 int res1 = 0 ;
22139 wxPoint temp2 ;
22140 PyObject * obj0 = 0 ;
22141 PyObject * obj1 = 0 ;
22142 char * kwnames[] = {
22143 (char *) "self",(char *) "point", NULL
22144 };
22145
22146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22148 if (!SWIG_IsOK(res1)) {
22149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22150 }
22151 arg1 = reinterpret_cast< wxDC * >(argp1);
22152 {
22153 arg2 = &temp2;
22154 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22155 }
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_Py_Void();
22163 return resultobj;
22164 fail:
22165 return NULL;
22166 }
22167
22168
22169 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj = 0;
22171 wxDC *arg1 = (wxDC *) 0 ;
22172 bool arg2 ;
22173 bool arg3 ;
22174 void *argp1 = 0 ;
22175 int res1 = 0 ;
22176 bool val2 ;
22177 int ecode2 = 0 ;
22178 bool val3 ;
22179 int ecode3 = 0 ;
22180 PyObject * obj0 = 0 ;
22181 PyObject * obj1 = 0 ;
22182 PyObject * obj2 = 0 ;
22183 char * kwnames[] = {
22184 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22185 };
22186
22187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22189 if (!SWIG_IsOK(res1)) {
22190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22191 }
22192 arg1 = reinterpret_cast< wxDC * >(argp1);
22193 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22194 if (!SWIG_IsOK(ecode2)) {
22195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22196 }
22197 arg2 = static_cast< bool >(val2);
22198 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22199 if (!SWIG_IsOK(ecode3)) {
22200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22201 }
22202 arg3 = static_cast< bool >(val3);
22203 {
22204 PyThreadState* __tstate = wxPyBeginAllowThreads();
22205 (arg1)->SetAxisOrientation(arg2,arg3);
22206 wxPyEndAllowThreads(__tstate);
22207 if (PyErr_Occurred()) SWIG_fail;
22208 }
22209 resultobj = SWIG_Py_Void();
22210 return resultobj;
22211 fail:
22212 return NULL;
22213 }
22214
22215
22216 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22217 PyObject *resultobj = 0;
22218 wxDC *arg1 = (wxDC *) 0 ;
22219 int result;
22220 void *argp1 = 0 ;
22221 int res1 = 0 ;
22222 PyObject *swig_obj[1] ;
22223
22224 if (!args) SWIG_fail;
22225 swig_obj[0] = args;
22226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22227 if (!SWIG_IsOK(res1)) {
22228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22229 }
22230 arg1 = reinterpret_cast< wxDC * >(argp1);
22231 {
22232 PyThreadState* __tstate = wxPyBeginAllowThreads();
22233 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22234 wxPyEndAllowThreads(__tstate);
22235 if (PyErr_Occurred()) SWIG_fail;
22236 }
22237 resultobj = SWIG_From_int(static_cast< int >(result));
22238 return resultobj;
22239 fail:
22240 return NULL;
22241 }
22242
22243
22244 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22245 PyObject *resultobj = 0;
22246 wxDC *arg1 = (wxDC *) 0 ;
22247 int arg2 ;
22248 void *argp1 = 0 ;
22249 int res1 = 0 ;
22250 int val2 ;
22251 int ecode2 = 0 ;
22252 PyObject * obj0 = 0 ;
22253 PyObject * obj1 = 0 ;
22254 char * kwnames[] = {
22255 (char *) "self",(char *) "function", NULL
22256 };
22257
22258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22260 if (!SWIG_IsOK(res1)) {
22261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22262 }
22263 arg1 = reinterpret_cast< wxDC * >(argp1);
22264 ecode2 = SWIG_AsVal_int(obj1, &val2);
22265 if (!SWIG_IsOK(ecode2)) {
22266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22267 }
22268 arg2 = static_cast< int >(val2);
22269 {
22270 PyThreadState* __tstate = wxPyBeginAllowThreads();
22271 (arg1)->SetLogicalFunction(arg2);
22272 wxPyEndAllowThreads(__tstate);
22273 if (PyErr_Occurred()) SWIG_fail;
22274 }
22275 resultobj = SWIG_Py_Void();
22276 return resultobj;
22277 fail:
22278 return NULL;
22279 }
22280
22281
22282 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22283 PyObject *resultobj = 0;
22284 wxDC *arg1 = (wxDC *) 0 ;
22285 void *argp1 = 0 ;
22286 int res1 = 0 ;
22287 PyObject *swig_obj[1] ;
22288
22289 if (!args) SWIG_fail;
22290 swig_obj[0] = args;
22291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22292 if (!SWIG_IsOK(res1)) {
22293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22294 }
22295 arg1 = reinterpret_cast< wxDC * >(argp1);
22296 {
22297 PyThreadState* __tstate = wxPyBeginAllowThreads();
22298 (arg1)->ComputeScaleAndOrigin();
22299 wxPyEndAllowThreads(__tstate);
22300 if (PyErr_Occurred()) SWIG_fail;
22301 }
22302 resultobj = SWIG_Py_Void();
22303 return resultobj;
22304 fail:
22305 return NULL;
22306 }
22307
22308
22309 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22310 PyObject *resultobj = 0;
22311 wxDC *arg1 = (wxDC *) 0 ;
22312 int arg2 ;
22313 int arg3 ;
22314 void *argp1 = 0 ;
22315 int res1 = 0 ;
22316 int val2 ;
22317 int ecode2 = 0 ;
22318 int val3 ;
22319 int ecode3 = 0 ;
22320 PyObject * obj0 = 0 ;
22321 PyObject * obj1 = 0 ;
22322 PyObject * obj2 = 0 ;
22323 char * kwnames[] = {
22324 (char *) "self",(char *) "x",(char *) "y", NULL
22325 };
22326
22327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22329 if (!SWIG_IsOK(res1)) {
22330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22331 }
22332 arg1 = reinterpret_cast< wxDC * >(argp1);
22333 ecode2 = SWIG_AsVal_int(obj1, &val2);
22334 if (!SWIG_IsOK(ecode2)) {
22335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22336 }
22337 arg2 = static_cast< int >(val2);
22338 ecode3 = SWIG_AsVal_int(obj2, &val3);
22339 if (!SWIG_IsOK(ecode3)) {
22340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22341 }
22342 arg3 = static_cast< int >(val3);
22343 {
22344 PyThreadState* __tstate = wxPyBeginAllowThreads();
22345 (arg1)->CalcBoundingBox(arg2,arg3);
22346 wxPyEndAllowThreads(__tstate);
22347 if (PyErr_Occurred()) SWIG_fail;
22348 }
22349 resultobj = SWIG_Py_Void();
22350 return resultobj;
22351 fail:
22352 return NULL;
22353 }
22354
22355
22356 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22357 PyObject *resultobj = 0;
22358 wxDC *arg1 = (wxDC *) 0 ;
22359 wxPoint *arg2 = 0 ;
22360 void *argp1 = 0 ;
22361 int res1 = 0 ;
22362 wxPoint temp2 ;
22363 PyObject * obj0 = 0 ;
22364 PyObject * obj1 = 0 ;
22365 char * kwnames[] = {
22366 (char *) "self",(char *) "point", NULL
22367 };
22368
22369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22371 if (!SWIG_IsOK(res1)) {
22372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22373 }
22374 arg1 = reinterpret_cast< wxDC * >(argp1);
22375 {
22376 arg2 = &temp2;
22377 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22378 }
22379 {
22380 PyThreadState* __tstate = wxPyBeginAllowThreads();
22381 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22382 wxPyEndAllowThreads(__tstate);
22383 if (PyErr_Occurred()) SWIG_fail;
22384 }
22385 resultobj = SWIG_Py_Void();
22386 return resultobj;
22387 fail:
22388 return NULL;
22389 }
22390
22391
22392 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22393 PyObject *resultobj = 0;
22394 wxDC *arg1 = (wxDC *) 0 ;
22395 void *argp1 = 0 ;
22396 int res1 = 0 ;
22397 PyObject *swig_obj[1] ;
22398
22399 if (!args) SWIG_fail;
22400 swig_obj[0] = args;
22401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22402 if (!SWIG_IsOK(res1)) {
22403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22404 }
22405 arg1 = reinterpret_cast< wxDC * >(argp1);
22406 {
22407 PyThreadState* __tstate = wxPyBeginAllowThreads();
22408 (arg1)->ResetBoundingBox();
22409 wxPyEndAllowThreads(__tstate);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 }
22412 resultobj = SWIG_Py_Void();
22413 return resultobj;
22414 fail:
22415 return NULL;
22416 }
22417
22418
22419 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22420 PyObject *resultobj = 0;
22421 wxDC *arg1 = (wxDC *) 0 ;
22422 int result;
22423 void *argp1 = 0 ;
22424 int res1 = 0 ;
22425 PyObject *swig_obj[1] ;
22426
22427 if (!args) SWIG_fail;
22428 swig_obj[0] = args;
22429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22430 if (!SWIG_IsOK(res1)) {
22431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22432 }
22433 arg1 = reinterpret_cast< wxDC * >(argp1);
22434 {
22435 PyThreadState* __tstate = wxPyBeginAllowThreads();
22436 result = (int)((wxDC const *)arg1)->MinX();
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 resultobj = SWIG_From_int(static_cast< int >(result));
22441 return resultobj;
22442 fail:
22443 return NULL;
22444 }
22445
22446
22447 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22448 PyObject *resultobj = 0;
22449 wxDC *arg1 = (wxDC *) 0 ;
22450 int result;
22451 void *argp1 = 0 ;
22452 int res1 = 0 ;
22453 PyObject *swig_obj[1] ;
22454
22455 if (!args) SWIG_fail;
22456 swig_obj[0] = args;
22457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22458 if (!SWIG_IsOK(res1)) {
22459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22460 }
22461 arg1 = reinterpret_cast< wxDC * >(argp1);
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 result = (int)((wxDC const *)arg1)->MaxX();
22465 wxPyEndAllowThreads(__tstate);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 }
22468 resultobj = SWIG_From_int(static_cast< int >(result));
22469 return resultobj;
22470 fail:
22471 return NULL;
22472 }
22473
22474
22475 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22476 PyObject *resultobj = 0;
22477 wxDC *arg1 = (wxDC *) 0 ;
22478 int result;
22479 void *argp1 = 0 ;
22480 int res1 = 0 ;
22481 PyObject *swig_obj[1] ;
22482
22483 if (!args) SWIG_fail;
22484 swig_obj[0] = args;
22485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22486 if (!SWIG_IsOK(res1)) {
22487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22488 }
22489 arg1 = reinterpret_cast< wxDC * >(argp1);
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 result = (int)((wxDC const *)arg1)->MinY();
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 resultobj = SWIG_From_int(static_cast< int >(result));
22497 return resultobj;
22498 fail:
22499 return NULL;
22500 }
22501
22502
22503 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22504 PyObject *resultobj = 0;
22505 wxDC *arg1 = (wxDC *) 0 ;
22506 int result;
22507 void *argp1 = 0 ;
22508 int res1 = 0 ;
22509 PyObject *swig_obj[1] ;
22510
22511 if (!args) SWIG_fail;
22512 swig_obj[0] = args;
22513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22514 if (!SWIG_IsOK(res1)) {
22515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22516 }
22517 arg1 = reinterpret_cast< wxDC * >(argp1);
22518 {
22519 PyThreadState* __tstate = wxPyBeginAllowThreads();
22520 result = (int)((wxDC const *)arg1)->MaxY();
22521 wxPyEndAllowThreads(__tstate);
22522 if (PyErr_Occurred()) SWIG_fail;
22523 }
22524 resultobj = SWIG_From_int(static_cast< int >(result));
22525 return resultobj;
22526 fail:
22527 return NULL;
22528 }
22529
22530
22531 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22532 PyObject *resultobj = 0;
22533 wxDC *arg1 = (wxDC *) 0 ;
22534 int *arg2 = (int *) 0 ;
22535 int *arg3 = (int *) 0 ;
22536 int *arg4 = (int *) 0 ;
22537 int *arg5 = (int *) 0 ;
22538 void *argp1 = 0 ;
22539 int res1 = 0 ;
22540 int temp2 ;
22541 int res2 = SWIG_TMPOBJ ;
22542 int temp3 ;
22543 int res3 = SWIG_TMPOBJ ;
22544 int temp4 ;
22545 int res4 = SWIG_TMPOBJ ;
22546 int temp5 ;
22547 int res5 = SWIG_TMPOBJ ;
22548 PyObject *swig_obj[1] ;
22549
22550 arg2 = &temp2;
22551 arg3 = &temp3;
22552 arg4 = &temp4;
22553 arg5 = &temp5;
22554 if (!args) SWIG_fail;
22555 swig_obj[0] = args;
22556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22557 if (!SWIG_IsOK(res1)) {
22558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22559 }
22560 arg1 = reinterpret_cast< wxDC * >(argp1);
22561 {
22562 PyThreadState* __tstate = wxPyBeginAllowThreads();
22563 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22564 wxPyEndAllowThreads(__tstate);
22565 if (PyErr_Occurred()) SWIG_fail;
22566 }
22567 resultobj = SWIG_Py_Void();
22568 if (SWIG_IsTmpObj(res2)) {
22569 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22570 } else {
22571 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22573 }
22574 if (SWIG_IsTmpObj(res3)) {
22575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22576 } else {
22577 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22579 }
22580 if (SWIG_IsTmpObj(res4)) {
22581 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22582 } else {
22583 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22584 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22585 }
22586 if (SWIG_IsTmpObj(res5)) {
22587 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22588 } else {
22589 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22590 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22591 }
22592 return resultobj;
22593 fail:
22594 return NULL;
22595 }
22596
22597
22598 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22599 PyObject *resultobj = 0;
22600 wxDC *arg1 = (wxDC *) 0 ;
22601 PyObject *arg2 = (PyObject *) 0 ;
22602 PyObject *arg3 = (PyObject *) 0 ;
22603 PyObject *arg4 = (PyObject *) 0 ;
22604 PyObject *result = 0 ;
22605 void *argp1 = 0 ;
22606 int res1 = 0 ;
22607 PyObject * obj0 = 0 ;
22608 PyObject * obj1 = 0 ;
22609 PyObject * obj2 = 0 ;
22610 PyObject * obj3 = 0 ;
22611 char * kwnames[] = {
22612 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22613 };
22614
22615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22617 if (!SWIG_IsOK(res1)) {
22618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22619 }
22620 arg1 = reinterpret_cast< wxDC * >(argp1);
22621 arg2 = obj1;
22622 arg3 = obj2;
22623 arg4 = obj3;
22624 {
22625 PyThreadState* __tstate = wxPyBeginAllowThreads();
22626 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22627 wxPyEndAllowThreads(__tstate);
22628 if (PyErr_Occurred()) SWIG_fail;
22629 }
22630 resultobj = result;
22631 return resultobj;
22632 fail:
22633 return NULL;
22634 }
22635
22636
22637 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22638 PyObject *resultobj = 0;
22639 wxDC *arg1 = (wxDC *) 0 ;
22640 PyObject *arg2 = (PyObject *) 0 ;
22641 PyObject *arg3 = (PyObject *) 0 ;
22642 PyObject *arg4 = (PyObject *) 0 ;
22643 PyObject *result = 0 ;
22644 void *argp1 = 0 ;
22645 int res1 = 0 ;
22646 PyObject * obj0 = 0 ;
22647 PyObject * obj1 = 0 ;
22648 PyObject * obj2 = 0 ;
22649 PyObject * obj3 = 0 ;
22650 char * kwnames[] = {
22651 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22652 };
22653
22654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22656 if (!SWIG_IsOK(res1)) {
22657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22658 }
22659 arg1 = reinterpret_cast< wxDC * >(argp1);
22660 arg2 = obj1;
22661 arg3 = obj2;
22662 arg4 = obj3;
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
22665 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22666 wxPyEndAllowThreads(__tstate);
22667 if (PyErr_Occurred()) SWIG_fail;
22668 }
22669 resultobj = result;
22670 return resultobj;
22671 fail:
22672 return NULL;
22673 }
22674
22675
22676 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22677 PyObject *resultobj = 0;
22678 wxDC *arg1 = (wxDC *) 0 ;
22679 PyObject *arg2 = (PyObject *) 0 ;
22680 PyObject *arg3 = (PyObject *) 0 ;
22681 PyObject *arg4 = (PyObject *) 0 ;
22682 PyObject *result = 0 ;
22683 void *argp1 = 0 ;
22684 int res1 = 0 ;
22685 PyObject * obj0 = 0 ;
22686 PyObject * obj1 = 0 ;
22687 PyObject * obj2 = 0 ;
22688 PyObject * obj3 = 0 ;
22689 char * kwnames[] = {
22690 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22691 };
22692
22693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22695 if (!SWIG_IsOK(res1)) {
22696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22697 }
22698 arg1 = reinterpret_cast< wxDC * >(argp1);
22699 arg2 = obj1;
22700 arg3 = obj2;
22701 arg4 = obj3;
22702 {
22703 PyThreadState* __tstate = wxPyBeginAllowThreads();
22704 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22705 wxPyEndAllowThreads(__tstate);
22706 if (PyErr_Occurred()) SWIG_fail;
22707 }
22708 resultobj = result;
22709 return resultobj;
22710 fail:
22711 return NULL;
22712 }
22713
22714
22715 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22716 PyObject *resultobj = 0;
22717 wxDC *arg1 = (wxDC *) 0 ;
22718 PyObject *arg2 = (PyObject *) 0 ;
22719 PyObject *arg3 = (PyObject *) 0 ;
22720 PyObject *arg4 = (PyObject *) 0 ;
22721 PyObject *result = 0 ;
22722 void *argp1 = 0 ;
22723 int res1 = 0 ;
22724 PyObject * obj0 = 0 ;
22725 PyObject * obj1 = 0 ;
22726 PyObject * obj2 = 0 ;
22727 PyObject * obj3 = 0 ;
22728 char * kwnames[] = {
22729 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22730 };
22731
22732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22734 if (!SWIG_IsOK(res1)) {
22735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22736 }
22737 arg1 = reinterpret_cast< wxDC * >(argp1);
22738 arg2 = obj1;
22739 arg3 = obj2;
22740 arg4 = obj3;
22741 {
22742 PyThreadState* __tstate = wxPyBeginAllowThreads();
22743 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22744 wxPyEndAllowThreads(__tstate);
22745 if (PyErr_Occurred()) SWIG_fail;
22746 }
22747 resultobj = result;
22748 return resultobj;
22749 fail:
22750 return NULL;
22751 }
22752
22753
22754 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22755 PyObject *resultobj = 0;
22756 wxDC *arg1 = (wxDC *) 0 ;
22757 PyObject *arg2 = (PyObject *) 0 ;
22758 PyObject *arg3 = (PyObject *) 0 ;
22759 PyObject *arg4 = (PyObject *) 0 ;
22760 PyObject *result = 0 ;
22761 void *argp1 = 0 ;
22762 int res1 = 0 ;
22763 PyObject * obj0 = 0 ;
22764 PyObject * obj1 = 0 ;
22765 PyObject * obj2 = 0 ;
22766 PyObject * obj3 = 0 ;
22767 char * kwnames[] = {
22768 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22769 };
22770
22771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22773 if (!SWIG_IsOK(res1)) {
22774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22775 }
22776 arg1 = reinterpret_cast< wxDC * >(argp1);
22777 arg2 = obj1;
22778 arg3 = obj2;
22779 arg4 = obj3;
22780 {
22781 PyThreadState* __tstate = wxPyBeginAllowThreads();
22782 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22783 wxPyEndAllowThreads(__tstate);
22784 if (PyErr_Occurred()) SWIG_fail;
22785 }
22786 resultobj = result;
22787 return resultobj;
22788 fail:
22789 return NULL;
22790 }
22791
22792
22793 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22794 PyObject *resultobj = 0;
22795 wxDC *arg1 = (wxDC *) 0 ;
22796 PyObject *arg2 = (PyObject *) 0 ;
22797 PyObject *arg3 = (PyObject *) 0 ;
22798 PyObject *arg4 = (PyObject *) 0 ;
22799 PyObject *arg5 = (PyObject *) 0 ;
22800 PyObject *result = 0 ;
22801 void *argp1 = 0 ;
22802 int res1 = 0 ;
22803 PyObject * obj0 = 0 ;
22804 PyObject * obj1 = 0 ;
22805 PyObject * obj2 = 0 ;
22806 PyObject * obj3 = 0 ;
22807 PyObject * obj4 = 0 ;
22808 char * kwnames[] = {
22809 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22810 };
22811
22812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22814 if (!SWIG_IsOK(res1)) {
22815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22816 }
22817 arg1 = reinterpret_cast< wxDC * >(argp1);
22818 arg2 = obj1;
22819 arg3 = obj2;
22820 arg4 = obj3;
22821 arg5 = obj4;
22822 {
22823 PyThreadState* __tstate = wxPyBeginAllowThreads();
22824 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
22825 wxPyEndAllowThreads(__tstate);
22826 if (PyErr_Occurred()) SWIG_fail;
22827 }
22828 resultobj = result;
22829 return resultobj;
22830 fail:
22831 return NULL;
22832 }
22833
22834
22835 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22836 PyObject *obj;
22837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22838 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
22839 return SWIG_Py_Void();
22840 }
22841
22842 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22843 PyObject *resultobj = 0;
22844 wxMemoryDC *result = 0 ;
22845
22846 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
22847 {
22848 if (!wxPyCheckForApp()) SWIG_fail;
22849 PyThreadState* __tstate = wxPyBeginAllowThreads();
22850 result = (wxMemoryDC *)new wxMemoryDC();
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
22855 return resultobj;
22856 fail:
22857 return NULL;
22858 }
22859
22860
22861 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22862 PyObject *resultobj = 0;
22863 wxDC *arg1 = (wxDC *) 0 ;
22864 wxMemoryDC *result = 0 ;
22865 void *argp1 = 0 ;
22866 int res1 = 0 ;
22867 PyObject * obj0 = 0 ;
22868 char * kwnames[] = {
22869 (char *) "oldDC", NULL
22870 };
22871
22872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
22873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22874 if (!SWIG_IsOK(res1)) {
22875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
22876 }
22877 arg1 = reinterpret_cast< wxDC * >(argp1);
22878 {
22879 if (!wxPyCheckForApp()) SWIG_fail;
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 result = (wxMemoryDC *)new wxMemoryDC(arg1);
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
22886 return resultobj;
22887 fail:
22888 return NULL;
22889 }
22890
22891
22892 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj = 0;
22894 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
22895 wxBitmap *arg2 = 0 ;
22896 void *argp1 = 0 ;
22897 int res1 = 0 ;
22898 void *argp2 = 0 ;
22899 int res2 = 0 ;
22900 PyObject * obj0 = 0 ;
22901 PyObject * obj1 = 0 ;
22902 char * kwnames[] = {
22903 (char *) "self",(char *) "bitmap", NULL
22904 };
22905
22906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
22907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
22908 if (!SWIG_IsOK(res1)) {
22909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
22910 }
22911 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
22912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22913 if (!SWIG_IsOK(res2)) {
22914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22915 }
22916 if (!argp2) {
22917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22918 }
22919 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 (arg1)->SelectObject((wxBitmap const &)*arg2);
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 resultobj = SWIG_Py_Void();
22927 return resultobj;
22928 fail:
22929 return NULL;
22930 }
22931
22932
22933 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22934 PyObject *obj;
22935 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22936 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
22937 return SWIG_Py_Void();
22938 }
22939
22940 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22941 return SWIG_Python_InitShadowInstance(args);
22942 }
22943
22944 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22945 PyObject *resultobj = 0;
22946 wxDC *arg1 = (wxDC *) 0 ;
22947 wxBitmap const &arg2_defvalue = wxNullBitmap ;
22948 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
22949 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22950 wxBufferedDC *result = 0 ;
22951 void *argp1 = 0 ;
22952 int res1 = 0 ;
22953 void *argp2 = 0 ;
22954 int res2 = 0 ;
22955 int val3 ;
22956 int ecode3 = 0 ;
22957
22958 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
22959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22960 if (!SWIG_IsOK(res1)) {
22961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22962 }
22963 arg1 = reinterpret_cast< wxDC * >(argp1);
22964 if (swig_obj[1]) {
22965 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22966 if (!SWIG_IsOK(res2)) {
22967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22968 }
22969 if (!argp2) {
22970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22971 }
22972 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22973 }
22974 if (swig_obj[2]) {
22975 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22976 if (!SWIG_IsOK(ecode3)) {
22977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
22978 }
22979 arg3 = static_cast< int >(val3);
22980 }
22981 {
22982 if (!wxPyCheckForApp()) SWIG_fail;
22983 PyThreadState* __tstate = wxPyBeginAllowThreads();
22984 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
22989 return resultobj;
22990 fail:
22991 return NULL;
22992 }
22993
22994
22995 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22996 PyObject *resultobj = 0;
22997 wxDC *arg1 = (wxDC *) 0 ;
22998 wxSize *arg2 = 0 ;
22999 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23000 wxBufferedDC *result = 0 ;
23001 void *argp1 = 0 ;
23002 int res1 = 0 ;
23003 wxSize temp2 ;
23004 int val3 ;
23005 int ecode3 = 0 ;
23006
23007 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23009 if (!SWIG_IsOK(res1)) {
23010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23011 }
23012 arg1 = reinterpret_cast< wxDC * >(argp1);
23013 {
23014 arg2 = &temp2;
23015 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23016 }
23017 if (swig_obj[2]) {
23018 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23019 if (!SWIG_IsOK(ecode3)) {
23020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23021 }
23022 arg3 = static_cast< int >(val3);
23023 }
23024 {
23025 if (!wxPyCheckForApp()) SWIG_fail;
23026 PyThreadState* __tstate = wxPyBeginAllowThreads();
23027 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23028 wxPyEndAllowThreads(__tstate);
23029 if (PyErr_Occurred()) SWIG_fail;
23030 }
23031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23032 return resultobj;
23033 fail:
23034 return NULL;
23035 }
23036
23037
23038 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23039 int argc;
23040 PyObject *argv[4];
23041
23042 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23043 --argc;
23044 if ((argc >= 1) && (argc <= 3)) {
23045 int _v = 0;
23046 if (argc > 1) {
23047 {
23048 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23049 _v = SWIG_CheckState(res);
23050 }
23051 if (!_v) goto check_1;
23052 }
23053 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23054 }
23055 check_1:
23056
23057 if ((argc >= 2) && (argc <= 3)) {
23058 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23059 }
23060
23061 fail:
23062 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23063 return NULL;
23064 }
23065
23066
23067 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23068 PyObject *resultobj = 0;
23069 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23070 void *argp1 = 0 ;
23071 int res1 = 0 ;
23072 PyObject *swig_obj[1] ;
23073
23074 if (!args) SWIG_fail;
23075 swig_obj[0] = args;
23076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23077 if (!SWIG_IsOK(res1)) {
23078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23079 }
23080 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23081 {
23082 PyThreadState* __tstate = wxPyBeginAllowThreads();
23083 delete arg1;
23084
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 resultobj = SWIG_Py_Void();
23089 return resultobj;
23090 fail:
23091 return NULL;
23092 }
23093
23094
23095 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096 PyObject *resultobj = 0;
23097 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23098 void *argp1 = 0 ;
23099 int res1 = 0 ;
23100 PyObject *swig_obj[1] ;
23101
23102 if (!args) SWIG_fail;
23103 swig_obj[0] = args;
23104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23105 if (!SWIG_IsOK(res1)) {
23106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23107 }
23108 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23109 {
23110 PyThreadState* __tstate = wxPyBeginAllowThreads();
23111 (arg1)->UnMask();
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 resultobj = SWIG_Py_Void();
23116 return resultobj;
23117 fail:
23118 return NULL;
23119 }
23120
23121
23122 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23123 PyObject *obj;
23124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23125 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23126 return SWIG_Py_Void();
23127 }
23128
23129 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23130 return SWIG_Python_InitShadowInstance(args);
23131 }
23132
23133 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23134 PyObject *resultobj = 0;
23135 wxWindow *arg1 = (wxWindow *) 0 ;
23136 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23137 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23138 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23139 wxBufferedPaintDC *result = 0 ;
23140 void *argp1 = 0 ;
23141 int res1 = 0 ;
23142 void *argp2 = 0 ;
23143 int res2 = 0 ;
23144 int val3 ;
23145 int ecode3 = 0 ;
23146 PyObject * obj0 = 0 ;
23147 PyObject * obj1 = 0 ;
23148 PyObject * obj2 = 0 ;
23149 char * kwnames[] = {
23150 (char *) "window",(char *) "buffer",(char *) "style", NULL
23151 };
23152
23153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23155 if (!SWIG_IsOK(res1)) {
23156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23157 }
23158 arg1 = reinterpret_cast< wxWindow * >(argp1);
23159 if (obj1) {
23160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23161 if (!SWIG_IsOK(res2)) {
23162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23163 }
23164 if (!argp2) {
23165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23166 }
23167 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23168 }
23169 if (obj2) {
23170 ecode3 = SWIG_AsVal_int(obj2, &val3);
23171 if (!SWIG_IsOK(ecode3)) {
23172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23173 }
23174 arg3 = static_cast< int >(val3);
23175 }
23176 {
23177 if (!wxPyCheckForApp()) SWIG_fail;
23178 PyThreadState* __tstate = wxPyBeginAllowThreads();
23179 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23180 wxPyEndAllowThreads(__tstate);
23181 if (PyErr_Occurred()) SWIG_fail;
23182 }
23183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23184 return resultobj;
23185 fail:
23186 return NULL;
23187 }
23188
23189
23190 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23191 PyObject *obj;
23192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23193 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23194 return SWIG_Py_Void();
23195 }
23196
23197 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23198 return SWIG_Python_InitShadowInstance(args);
23199 }
23200
23201 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23202 PyObject *resultobj = 0;
23203 wxScreenDC *result = 0 ;
23204
23205 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23206 {
23207 if (!wxPyCheckForApp()) SWIG_fail;
23208 PyThreadState* __tstate = wxPyBeginAllowThreads();
23209 result = (wxScreenDC *)new wxScreenDC();
23210 wxPyEndAllowThreads(__tstate);
23211 if (PyErr_Occurred()) SWIG_fail;
23212 }
23213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23214 return resultobj;
23215 fail:
23216 return NULL;
23217 }
23218
23219
23220 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23221 PyObject *resultobj = 0;
23222 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23223 wxWindow *arg2 = (wxWindow *) 0 ;
23224 bool result;
23225 void *argp1 = 0 ;
23226 int res1 = 0 ;
23227 void *argp2 = 0 ;
23228 int res2 = 0 ;
23229 PyObject * obj0 = 0 ;
23230 PyObject * obj1 = 0 ;
23231 char * kwnames[] = {
23232 (char *) "self",(char *) "window", NULL
23233 };
23234
23235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23237 if (!SWIG_IsOK(res1)) {
23238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23239 }
23240 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23241 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23242 if (!SWIG_IsOK(res2)) {
23243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23244 }
23245 arg2 = reinterpret_cast< wxWindow * >(argp2);
23246 {
23247 PyThreadState* __tstate = wxPyBeginAllowThreads();
23248 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23249 wxPyEndAllowThreads(__tstate);
23250 if (PyErr_Occurred()) SWIG_fail;
23251 }
23252 {
23253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23254 }
23255 return resultobj;
23256 fail:
23257 return NULL;
23258 }
23259
23260
23261 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23262 PyObject *resultobj = 0;
23263 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23264 wxRect *arg2 = (wxRect *) NULL ;
23265 bool result;
23266 void *argp1 = 0 ;
23267 int res1 = 0 ;
23268 void *argp2 = 0 ;
23269 int res2 = 0 ;
23270 PyObject * obj0 = 0 ;
23271 PyObject * obj1 = 0 ;
23272 char * kwnames[] = {
23273 (char *) "self",(char *) "rect", NULL
23274 };
23275
23276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23278 if (!SWIG_IsOK(res1)) {
23279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23280 }
23281 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23282 if (obj1) {
23283 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23284 if (!SWIG_IsOK(res2)) {
23285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23286 }
23287 arg2 = reinterpret_cast< wxRect * >(argp2);
23288 }
23289 {
23290 PyThreadState* __tstate = wxPyBeginAllowThreads();
23291 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23292 wxPyEndAllowThreads(__tstate);
23293 if (PyErr_Occurred()) SWIG_fail;
23294 }
23295 {
23296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23297 }
23298 return resultobj;
23299 fail:
23300 return NULL;
23301 }
23302
23303
23304 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23305 PyObject *resultobj = 0;
23306 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23307 bool result;
23308 void *argp1 = 0 ;
23309 int res1 = 0 ;
23310 PyObject *swig_obj[1] ;
23311
23312 if (!args) SWIG_fail;
23313 swig_obj[0] = args;
23314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23315 if (!SWIG_IsOK(res1)) {
23316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23317 }
23318 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 result = (bool)(arg1)->EndDrawingOnTop();
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 {
23326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23327 }
23328 return resultobj;
23329 fail:
23330 return NULL;
23331 }
23332
23333
23334 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23335 PyObject *obj;
23336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23337 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23338 return SWIG_Py_Void();
23339 }
23340
23341 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23342 return SWIG_Python_InitShadowInstance(args);
23343 }
23344
23345 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj = 0;
23347 wxWindow *arg1 = (wxWindow *) 0 ;
23348 wxClientDC *result = 0 ;
23349 void *argp1 = 0 ;
23350 int res1 = 0 ;
23351 PyObject * obj0 = 0 ;
23352 char * kwnames[] = {
23353 (char *) "win", NULL
23354 };
23355
23356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23358 if (!SWIG_IsOK(res1)) {
23359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23360 }
23361 arg1 = reinterpret_cast< wxWindow * >(argp1);
23362 {
23363 if (!wxPyCheckForApp()) SWIG_fail;
23364 PyThreadState* __tstate = wxPyBeginAllowThreads();
23365 result = (wxClientDC *)new wxClientDC(arg1);
23366 wxPyEndAllowThreads(__tstate);
23367 if (PyErr_Occurred()) SWIG_fail;
23368 }
23369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23370 return resultobj;
23371 fail:
23372 return NULL;
23373 }
23374
23375
23376 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23377 PyObject *obj;
23378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23379 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23380 return SWIG_Py_Void();
23381 }
23382
23383 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23384 return SWIG_Python_InitShadowInstance(args);
23385 }
23386
23387 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23388 PyObject *resultobj = 0;
23389 wxWindow *arg1 = (wxWindow *) 0 ;
23390 wxPaintDC *result = 0 ;
23391 void *argp1 = 0 ;
23392 int res1 = 0 ;
23393 PyObject * obj0 = 0 ;
23394 char * kwnames[] = {
23395 (char *) "win", NULL
23396 };
23397
23398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23400 if (!SWIG_IsOK(res1)) {
23401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23402 }
23403 arg1 = reinterpret_cast< wxWindow * >(argp1);
23404 {
23405 if (!wxPyCheckForApp()) SWIG_fail;
23406 PyThreadState* __tstate = wxPyBeginAllowThreads();
23407 result = (wxPaintDC *)new wxPaintDC(arg1);
23408 wxPyEndAllowThreads(__tstate);
23409 if (PyErr_Occurred()) SWIG_fail;
23410 }
23411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23412 return resultobj;
23413 fail:
23414 return NULL;
23415 }
23416
23417
23418 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23419 PyObject *obj;
23420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23421 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23422 return SWIG_Py_Void();
23423 }
23424
23425 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23426 return SWIG_Python_InitShadowInstance(args);
23427 }
23428
23429 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23430 PyObject *resultobj = 0;
23431 wxWindow *arg1 = (wxWindow *) 0 ;
23432 wxWindowDC *result = 0 ;
23433 void *argp1 = 0 ;
23434 int res1 = 0 ;
23435 PyObject * obj0 = 0 ;
23436 char * kwnames[] = {
23437 (char *) "win", NULL
23438 };
23439
23440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23442 if (!SWIG_IsOK(res1)) {
23443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23444 }
23445 arg1 = reinterpret_cast< wxWindow * >(argp1);
23446 {
23447 if (!wxPyCheckForApp()) SWIG_fail;
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 result = (wxWindowDC *)new wxWindowDC(arg1);
23450 wxPyEndAllowThreads(__tstate);
23451 if (PyErr_Occurred()) SWIG_fail;
23452 }
23453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23454 return resultobj;
23455 fail:
23456 return NULL;
23457 }
23458
23459
23460 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23461 PyObject *obj;
23462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23463 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23464 return SWIG_Py_Void();
23465 }
23466
23467 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23468 return SWIG_Python_InitShadowInstance(args);
23469 }
23470
23471 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23472 PyObject *resultobj = 0;
23473 wxDC *arg1 = 0 ;
23474 bool arg2 ;
23475 wxMirrorDC *result = 0 ;
23476 void *argp1 = 0 ;
23477 int res1 = 0 ;
23478 bool val2 ;
23479 int ecode2 = 0 ;
23480 PyObject * obj0 = 0 ;
23481 PyObject * obj1 = 0 ;
23482 char * kwnames[] = {
23483 (char *) "dc",(char *) "mirror", NULL
23484 };
23485
23486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23487 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23488 if (!SWIG_IsOK(res1)) {
23489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23490 }
23491 if (!argp1) {
23492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23493 }
23494 arg1 = reinterpret_cast< wxDC * >(argp1);
23495 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23496 if (!SWIG_IsOK(ecode2)) {
23497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23498 }
23499 arg2 = static_cast< bool >(val2);
23500 {
23501 if (!wxPyCheckForApp()) SWIG_fail;
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23504 wxPyEndAllowThreads(__tstate);
23505 if (PyErr_Occurred()) SWIG_fail;
23506 }
23507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23508 return resultobj;
23509 fail:
23510 return NULL;
23511 }
23512
23513
23514 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23515 PyObject *obj;
23516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23517 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23518 return SWIG_Py_Void();
23519 }
23520
23521 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23522 return SWIG_Python_InitShadowInstance(args);
23523 }
23524
23525 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23526 PyObject *resultobj = 0;
23527 wxPrintData *arg1 = 0 ;
23528 wxPostScriptDC *result = 0 ;
23529 void *argp1 = 0 ;
23530 int res1 = 0 ;
23531 PyObject * obj0 = 0 ;
23532 char * kwnames[] = {
23533 (char *) "printData", NULL
23534 };
23535
23536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23537 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23538 if (!SWIG_IsOK(res1)) {
23539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23540 }
23541 if (!argp1) {
23542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23543 }
23544 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23545 {
23546 if (!wxPyCheckForApp()) SWIG_fail;
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
23548 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23553 return resultobj;
23554 fail:
23555 return NULL;
23556 }
23557
23558
23559 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23560 PyObject *resultobj = 0;
23561 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23562 wxPrintData *result = 0 ;
23563 void *argp1 = 0 ;
23564 int res1 = 0 ;
23565 PyObject *swig_obj[1] ;
23566
23567 if (!args) SWIG_fail;
23568 swig_obj[0] = args;
23569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23570 if (!SWIG_IsOK(res1)) {
23571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23572 }
23573 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23574 {
23575 PyThreadState* __tstate = wxPyBeginAllowThreads();
23576 {
23577 wxPrintData &_result_ref = (arg1)->GetPrintData();
23578 result = (wxPrintData *) &_result_ref;
23579 }
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23584 return resultobj;
23585 fail:
23586 return NULL;
23587 }
23588
23589
23590 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23591 PyObject *resultobj = 0;
23592 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23593 wxPrintData *arg2 = 0 ;
23594 void *argp1 = 0 ;
23595 int res1 = 0 ;
23596 void *argp2 = 0 ;
23597 int res2 = 0 ;
23598 PyObject * obj0 = 0 ;
23599 PyObject * obj1 = 0 ;
23600 char * kwnames[] = {
23601 (char *) "self",(char *) "data", NULL
23602 };
23603
23604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23606 if (!SWIG_IsOK(res1)) {
23607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23608 }
23609 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23610 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23611 if (!SWIG_IsOK(res2)) {
23612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23613 }
23614 if (!argp2) {
23615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23616 }
23617 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23618 {
23619 PyThreadState* __tstate = wxPyBeginAllowThreads();
23620 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23621 wxPyEndAllowThreads(__tstate);
23622 if (PyErr_Occurred()) SWIG_fail;
23623 }
23624 resultobj = SWIG_Py_Void();
23625 return resultobj;
23626 fail:
23627 return NULL;
23628 }
23629
23630
23631 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23632 PyObject *resultobj = 0;
23633 int arg1 ;
23634 int val1 ;
23635 int ecode1 = 0 ;
23636 PyObject * obj0 = 0 ;
23637 char * kwnames[] = {
23638 (char *) "ppi", NULL
23639 };
23640
23641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23642 ecode1 = SWIG_AsVal_int(obj0, &val1);
23643 if (!SWIG_IsOK(ecode1)) {
23644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23645 }
23646 arg1 = static_cast< int >(val1);
23647 {
23648 PyThreadState* __tstate = wxPyBeginAllowThreads();
23649 wxPostScriptDC::SetResolution(arg1);
23650 wxPyEndAllowThreads(__tstate);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 }
23653 resultobj = SWIG_Py_Void();
23654 return resultobj;
23655 fail:
23656 return NULL;
23657 }
23658
23659
23660 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23661 PyObject *resultobj = 0;
23662 int result;
23663
23664 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23665 {
23666 PyThreadState* __tstate = wxPyBeginAllowThreads();
23667 result = (int)wxPostScriptDC::GetResolution();
23668 wxPyEndAllowThreads(__tstate);
23669 if (PyErr_Occurred()) SWIG_fail;
23670 }
23671 resultobj = SWIG_From_int(static_cast< int >(result));
23672 return resultobj;
23673 fail:
23674 return NULL;
23675 }
23676
23677
23678 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23679 PyObject *obj;
23680 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23681 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23682 return SWIG_Py_Void();
23683 }
23684
23685 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23686 return SWIG_Python_InitShadowInstance(args);
23687 }
23688
23689 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23690 PyObject *resultobj = 0;
23691 wxString const &arg1_defvalue = wxPyEmptyString ;
23692 wxString *arg1 = (wxString *) &arg1_defvalue ;
23693 wxMetaFile *result = 0 ;
23694 bool temp1 = false ;
23695 PyObject * obj0 = 0 ;
23696 char * kwnames[] = {
23697 (char *) "filename", NULL
23698 };
23699
23700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23701 if (obj0) {
23702 {
23703 arg1 = wxString_in_helper(obj0);
23704 if (arg1 == NULL) SWIG_fail;
23705 temp1 = true;
23706 }
23707 }
23708 {
23709 if (!wxPyCheckForApp()) SWIG_fail;
23710 PyThreadState* __tstate = wxPyBeginAllowThreads();
23711 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23712 wxPyEndAllowThreads(__tstate);
23713 if (PyErr_Occurred()) SWIG_fail;
23714 }
23715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23716 {
23717 if (temp1)
23718 delete arg1;
23719 }
23720 return resultobj;
23721 fail:
23722 {
23723 if (temp1)
23724 delete arg1;
23725 }
23726 return NULL;
23727 }
23728
23729
23730 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23731 PyObject *resultobj = 0;
23732 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23733 void *argp1 = 0 ;
23734 int res1 = 0 ;
23735 PyObject *swig_obj[1] ;
23736
23737 if (!args) SWIG_fail;
23738 swig_obj[0] = args;
23739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
23740 if (!SWIG_IsOK(res1)) {
23741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23742 }
23743 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23744 {
23745 PyThreadState* __tstate = wxPyBeginAllowThreads();
23746 delete arg1;
23747
23748 wxPyEndAllowThreads(__tstate);
23749 if (PyErr_Occurred()) SWIG_fail;
23750 }
23751 resultobj = SWIG_Py_Void();
23752 return resultobj;
23753 fail:
23754 return NULL;
23755 }
23756
23757
23758 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23759 PyObject *resultobj = 0;
23760 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23761 bool result;
23762 void *argp1 = 0 ;
23763 int res1 = 0 ;
23764 PyObject *swig_obj[1] ;
23765
23766 if (!args) SWIG_fail;
23767 swig_obj[0] = args;
23768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23769 if (!SWIG_IsOK(res1)) {
23770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23771 }
23772 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23773 {
23774 PyThreadState* __tstate = wxPyBeginAllowThreads();
23775 result = (bool)(arg1)->Ok();
23776 wxPyEndAllowThreads(__tstate);
23777 if (PyErr_Occurred()) SWIG_fail;
23778 }
23779 {
23780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23781 }
23782 return resultobj;
23783 fail:
23784 return NULL;
23785 }
23786
23787
23788 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23789 PyObject *resultobj = 0;
23790 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23791 int arg2 = (int) 0 ;
23792 int arg3 = (int) 0 ;
23793 bool result;
23794 void *argp1 = 0 ;
23795 int res1 = 0 ;
23796 int val2 ;
23797 int ecode2 = 0 ;
23798 int val3 ;
23799 int ecode3 = 0 ;
23800 PyObject * obj0 = 0 ;
23801 PyObject * obj1 = 0 ;
23802 PyObject * obj2 = 0 ;
23803 char * kwnames[] = {
23804 (char *) "self",(char *) "width",(char *) "height", NULL
23805 };
23806
23807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23809 if (!SWIG_IsOK(res1)) {
23810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23811 }
23812 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23813 if (obj1) {
23814 ecode2 = SWIG_AsVal_int(obj1, &val2);
23815 if (!SWIG_IsOK(ecode2)) {
23816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
23817 }
23818 arg2 = static_cast< int >(val2);
23819 }
23820 if (obj2) {
23821 ecode3 = SWIG_AsVal_int(obj2, &val3);
23822 if (!SWIG_IsOK(ecode3)) {
23823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
23824 }
23825 arg3 = static_cast< int >(val3);
23826 }
23827 {
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 result = (bool)(arg1)->SetClipboard(arg2,arg3);
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 {
23834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23835 }
23836 return resultobj;
23837 fail:
23838 return NULL;
23839 }
23840
23841
23842 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23843 PyObject *resultobj = 0;
23844 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23845 wxSize result;
23846 void *argp1 = 0 ;
23847 int res1 = 0 ;
23848 PyObject *swig_obj[1] ;
23849
23850 if (!args) SWIG_fail;
23851 swig_obj[0] = args;
23852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23853 if (!SWIG_IsOK(res1)) {
23854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23855 }
23856 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23857 {
23858 PyThreadState* __tstate = wxPyBeginAllowThreads();
23859 result = (arg1)->GetSize();
23860 wxPyEndAllowThreads(__tstate);
23861 if (PyErr_Occurred()) SWIG_fail;
23862 }
23863 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
23864 return resultobj;
23865 fail:
23866 return NULL;
23867 }
23868
23869
23870 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23871 PyObject *resultobj = 0;
23872 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23873 int result;
23874 void *argp1 = 0 ;
23875 int res1 = 0 ;
23876 PyObject *swig_obj[1] ;
23877
23878 if (!args) SWIG_fail;
23879 swig_obj[0] = args;
23880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23881 if (!SWIG_IsOK(res1)) {
23882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23883 }
23884 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23885 {
23886 PyThreadState* __tstate = wxPyBeginAllowThreads();
23887 result = (int)(arg1)->GetWidth();
23888 wxPyEndAllowThreads(__tstate);
23889 if (PyErr_Occurred()) SWIG_fail;
23890 }
23891 resultobj = SWIG_From_int(static_cast< int >(result));
23892 return resultobj;
23893 fail:
23894 return NULL;
23895 }
23896
23897
23898 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23899 PyObject *resultobj = 0;
23900 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23901 int result;
23902 void *argp1 = 0 ;
23903 int res1 = 0 ;
23904 PyObject *swig_obj[1] ;
23905
23906 if (!args) SWIG_fail;
23907 swig_obj[0] = args;
23908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23909 if (!SWIG_IsOK(res1)) {
23910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23911 }
23912 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23913 {
23914 PyThreadState* __tstate = wxPyBeginAllowThreads();
23915 result = (int)(arg1)->GetHeight();
23916 wxPyEndAllowThreads(__tstate);
23917 if (PyErr_Occurred()) SWIG_fail;
23918 }
23919 resultobj = SWIG_From_int(static_cast< int >(result));
23920 return resultobj;
23921 fail:
23922 return NULL;
23923 }
23924
23925
23926 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23927 PyObject *obj;
23928 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23929 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
23930 return SWIG_Py_Void();
23931 }
23932
23933 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23934 return SWIG_Python_InitShadowInstance(args);
23935 }
23936
23937 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23938 PyObject *resultobj = 0;
23939 wxString const &arg1_defvalue = wxPyEmptyString ;
23940 wxString *arg1 = (wxString *) &arg1_defvalue ;
23941 int arg2 = (int) 0 ;
23942 int arg3 = (int) 0 ;
23943 wxString const &arg4_defvalue = wxPyEmptyString ;
23944 wxString *arg4 = (wxString *) &arg4_defvalue ;
23945 wxMetaFileDC *result = 0 ;
23946 bool temp1 = false ;
23947 int val2 ;
23948 int ecode2 = 0 ;
23949 int val3 ;
23950 int ecode3 = 0 ;
23951 bool temp4 = false ;
23952 PyObject * obj0 = 0 ;
23953 PyObject * obj1 = 0 ;
23954 PyObject * obj2 = 0 ;
23955 PyObject * obj3 = 0 ;
23956 char * kwnames[] = {
23957 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
23958 };
23959
23960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23961 if (obj0) {
23962 {
23963 arg1 = wxString_in_helper(obj0);
23964 if (arg1 == NULL) SWIG_fail;
23965 temp1 = true;
23966 }
23967 }
23968 if (obj1) {
23969 ecode2 = SWIG_AsVal_int(obj1, &val2);
23970 if (!SWIG_IsOK(ecode2)) {
23971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
23972 }
23973 arg2 = static_cast< int >(val2);
23974 }
23975 if (obj2) {
23976 ecode3 = SWIG_AsVal_int(obj2, &val3);
23977 if (!SWIG_IsOK(ecode3)) {
23978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
23979 }
23980 arg3 = static_cast< int >(val3);
23981 }
23982 if (obj3) {
23983 {
23984 arg4 = wxString_in_helper(obj3);
23985 if (arg4 == NULL) SWIG_fail;
23986 temp4 = true;
23987 }
23988 }
23989 {
23990 if (!wxPyCheckForApp()) SWIG_fail;
23991 PyThreadState* __tstate = wxPyBeginAllowThreads();
23992 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
23993 wxPyEndAllowThreads(__tstate);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
23997 {
23998 if (temp1)
23999 delete arg1;
24000 }
24001 {
24002 if (temp4)
24003 delete arg4;
24004 }
24005 return resultobj;
24006 fail:
24007 {
24008 if (temp1)
24009 delete arg1;
24010 }
24011 {
24012 if (temp4)
24013 delete arg4;
24014 }
24015 return NULL;
24016 }
24017
24018
24019 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24020 PyObject *resultobj = 0;
24021 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24022 wxMetaFile *result = 0 ;
24023 void *argp1 = 0 ;
24024 int res1 = 0 ;
24025 PyObject *swig_obj[1] ;
24026
24027 if (!args) SWIG_fail;
24028 swig_obj[0] = args;
24029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24030 if (!SWIG_IsOK(res1)) {
24031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24032 }
24033 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24034 {
24035 PyThreadState* __tstate = wxPyBeginAllowThreads();
24036 result = (wxMetaFile *)(arg1)->Close();
24037 wxPyEndAllowThreads(__tstate);
24038 if (PyErr_Occurred()) SWIG_fail;
24039 }
24040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24041 return resultobj;
24042 fail:
24043 return NULL;
24044 }
24045
24046
24047 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24048 PyObject *obj;
24049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24050 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24051 return SWIG_Py_Void();
24052 }
24053
24054 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24055 return SWIG_Python_InitShadowInstance(args);
24056 }
24057
24058 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24059 PyObject *resultobj = 0;
24060 wxPrintData *arg1 = 0 ;
24061 wxPrinterDC *result = 0 ;
24062 void *argp1 = 0 ;
24063 int res1 = 0 ;
24064 PyObject * obj0 = 0 ;
24065 char * kwnames[] = {
24066 (char *) "printData", NULL
24067 };
24068
24069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24070 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24071 if (!SWIG_IsOK(res1)) {
24072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24073 }
24074 if (!argp1) {
24075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24076 }
24077 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24078 {
24079 if (!wxPyCheckForApp()) SWIG_fail;
24080 PyThreadState* __tstate = wxPyBeginAllowThreads();
24081 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24082 wxPyEndAllowThreads(__tstate);
24083 if (PyErr_Occurred()) SWIG_fail;
24084 }
24085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24086 return resultobj;
24087 fail:
24088 return NULL;
24089 }
24090
24091
24092 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24093 PyObject *obj;
24094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24095 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24096 return SWIG_Py_Void();
24097 }
24098
24099 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24100 return SWIG_Python_InitShadowInstance(args);
24101 }
24102
24103 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24104 PyObject *resultobj = 0;
24105 int arg1 ;
24106 int arg2 ;
24107 int arg3 = (int) true ;
24108 int arg4 = (int) 1 ;
24109 wxImageList *result = 0 ;
24110 int val1 ;
24111 int ecode1 = 0 ;
24112 int val2 ;
24113 int ecode2 = 0 ;
24114 int val3 ;
24115 int ecode3 = 0 ;
24116 int val4 ;
24117 int ecode4 = 0 ;
24118 PyObject * obj0 = 0 ;
24119 PyObject * obj1 = 0 ;
24120 PyObject * obj2 = 0 ;
24121 PyObject * obj3 = 0 ;
24122 char * kwnames[] = {
24123 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
24124 };
24125
24126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24127 ecode1 = SWIG_AsVal_int(obj0, &val1);
24128 if (!SWIG_IsOK(ecode1)) {
24129 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
24130 }
24131 arg1 = static_cast< int >(val1);
24132 ecode2 = SWIG_AsVal_int(obj1, &val2);
24133 if (!SWIG_IsOK(ecode2)) {
24134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
24135 }
24136 arg2 = static_cast< int >(val2);
24137 if (obj2) {
24138 ecode3 = SWIG_AsVal_int(obj2, &val3);
24139 if (!SWIG_IsOK(ecode3)) {
24140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
24141 }
24142 arg3 = static_cast< int >(val3);
24143 }
24144 if (obj3) {
24145 ecode4 = SWIG_AsVal_int(obj3, &val4);
24146 if (!SWIG_IsOK(ecode4)) {
24147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
24148 }
24149 arg4 = static_cast< int >(val4);
24150 }
24151 {
24152 if (!wxPyCheckForApp()) SWIG_fail;
24153 PyThreadState* __tstate = wxPyBeginAllowThreads();
24154 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
24155 wxPyEndAllowThreads(__tstate);
24156 if (PyErr_Occurred()) SWIG_fail;
24157 }
24158 {
24159 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
24160 }
24161 return resultobj;
24162 fail:
24163 return NULL;
24164 }
24165
24166
24167 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24168 PyObject *resultobj = 0;
24169 wxImageList *arg1 = (wxImageList *) 0 ;
24170 void *argp1 = 0 ;
24171 int res1 = 0 ;
24172 PyObject *swig_obj[1] ;
24173
24174 if (!args) SWIG_fail;
24175 swig_obj[0] = args;
24176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24177 if (!SWIG_IsOK(res1)) {
24178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24179 }
24180 arg1 = reinterpret_cast< wxImageList * >(argp1);
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 delete arg1;
24184
24185 wxPyEndAllowThreads(__tstate);
24186 if (PyErr_Occurred()) SWIG_fail;
24187 }
24188 resultobj = SWIG_Py_Void();
24189 return resultobj;
24190 fail:
24191 return NULL;
24192 }
24193
24194
24195 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24196 PyObject *resultobj = 0;
24197 wxImageList *arg1 = (wxImageList *) 0 ;
24198 wxBitmap *arg2 = 0 ;
24199 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24200 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24201 int result;
24202 void *argp1 = 0 ;
24203 int res1 = 0 ;
24204 void *argp2 = 0 ;
24205 int res2 = 0 ;
24206 void *argp3 = 0 ;
24207 int res3 = 0 ;
24208 PyObject * obj0 = 0 ;
24209 PyObject * obj1 = 0 ;
24210 PyObject * obj2 = 0 ;
24211 char * kwnames[] = {
24212 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24213 };
24214
24215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24217 if (!SWIG_IsOK(res1)) {
24218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
24219 }
24220 arg1 = reinterpret_cast< wxImageList * >(argp1);
24221 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24222 if (!SWIG_IsOK(res2)) {
24223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24224 }
24225 if (!argp2) {
24226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24227 }
24228 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24229 if (obj2) {
24230 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24231 if (!SWIG_IsOK(res3)) {
24232 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24233 }
24234 if (!argp3) {
24235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24236 }
24237 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24238 }
24239 {
24240 PyThreadState* __tstate = wxPyBeginAllowThreads();
24241 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24242 wxPyEndAllowThreads(__tstate);
24243 if (PyErr_Occurred()) SWIG_fail;
24244 }
24245 resultobj = SWIG_From_int(static_cast< int >(result));
24246 return resultobj;
24247 fail:
24248 return NULL;
24249 }
24250
24251
24252 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24253 PyObject *resultobj = 0;
24254 wxImageList *arg1 = (wxImageList *) 0 ;
24255 wxBitmap *arg2 = 0 ;
24256 wxColour *arg3 = 0 ;
24257 int result;
24258 void *argp1 = 0 ;
24259 int res1 = 0 ;
24260 void *argp2 = 0 ;
24261 int res2 = 0 ;
24262 wxColour temp3 ;
24263 PyObject * obj0 = 0 ;
24264 PyObject * obj1 = 0 ;
24265 PyObject * obj2 = 0 ;
24266 char * kwnames[] = {
24267 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24268 };
24269
24270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24272 if (!SWIG_IsOK(res1)) {
24273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24274 }
24275 arg1 = reinterpret_cast< wxImageList * >(argp1);
24276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24277 if (!SWIG_IsOK(res2)) {
24278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24279 }
24280 if (!argp2) {
24281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24282 }
24283 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24284 {
24285 arg3 = &temp3;
24286 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24287 }
24288 {
24289 PyThreadState* __tstate = wxPyBeginAllowThreads();
24290 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24291 wxPyEndAllowThreads(__tstate);
24292 if (PyErr_Occurred()) SWIG_fail;
24293 }
24294 resultobj = SWIG_From_int(static_cast< int >(result));
24295 return resultobj;
24296 fail:
24297 return NULL;
24298 }
24299
24300
24301 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24302 PyObject *resultobj = 0;
24303 wxImageList *arg1 = (wxImageList *) 0 ;
24304 wxIcon *arg2 = 0 ;
24305 int result;
24306 void *argp1 = 0 ;
24307 int res1 = 0 ;
24308 void *argp2 = 0 ;
24309 int res2 = 0 ;
24310 PyObject * obj0 = 0 ;
24311 PyObject * obj1 = 0 ;
24312 char * kwnames[] = {
24313 (char *) "self",(char *) "icon", NULL
24314 };
24315
24316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24318 if (!SWIG_IsOK(res1)) {
24319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
24320 }
24321 arg1 = reinterpret_cast< wxImageList * >(argp1);
24322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
24323 if (!SWIG_IsOK(res2)) {
24324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24325 }
24326 if (!argp2) {
24327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24328 }
24329 arg2 = reinterpret_cast< wxIcon * >(argp2);
24330 {
24331 PyThreadState* __tstate = wxPyBeginAllowThreads();
24332 result = (int)(arg1)->Add((wxIcon const &)*arg2);
24333 wxPyEndAllowThreads(__tstate);
24334 if (PyErr_Occurred()) SWIG_fail;
24335 }
24336 resultobj = SWIG_From_int(static_cast< int >(result));
24337 return resultobj;
24338 fail:
24339 return NULL;
24340 }
24341
24342
24343 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24344 PyObject *resultobj = 0;
24345 wxImageList *arg1 = (wxImageList *) 0 ;
24346 int arg2 ;
24347 SwigValueWrapper<wxBitmap > result;
24348 void *argp1 = 0 ;
24349 int res1 = 0 ;
24350 int val2 ;
24351 int ecode2 = 0 ;
24352 PyObject * obj0 = 0 ;
24353 PyObject * obj1 = 0 ;
24354 char * kwnames[] = {
24355 (char *) "self",(char *) "index", NULL
24356 };
24357
24358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
24359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24360 if (!SWIG_IsOK(res1)) {
24361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
24362 }
24363 arg1 = reinterpret_cast< wxImageList * >(argp1);
24364 ecode2 = SWIG_AsVal_int(obj1, &val2);
24365 if (!SWIG_IsOK(ecode2)) {
24366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
24367 }
24368 arg2 = static_cast< int >(val2);
24369 {
24370 PyThreadState* __tstate = wxPyBeginAllowThreads();
24371 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
24372 wxPyEndAllowThreads(__tstate);
24373 if (PyErr_Occurred()) SWIG_fail;
24374 }
24375 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
24376 return resultobj;
24377 fail:
24378 return NULL;
24379 }
24380
24381
24382 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24383 PyObject *resultobj = 0;
24384 wxImageList *arg1 = (wxImageList *) 0 ;
24385 int arg2 ;
24386 wxIcon result;
24387 void *argp1 = 0 ;
24388 int res1 = 0 ;
24389 int val2 ;
24390 int ecode2 = 0 ;
24391 PyObject * obj0 = 0 ;
24392 PyObject * obj1 = 0 ;
24393 char * kwnames[] = {
24394 (char *) "self",(char *) "index", NULL
24395 };
24396
24397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24399 if (!SWIG_IsOK(res1)) {
24400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
24401 }
24402 arg1 = reinterpret_cast< wxImageList * >(argp1);
24403 ecode2 = SWIG_AsVal_int(obj1, &val2);
24404 if (!SWIG_IsOK(ecode2)) {
24405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
24406 }
24407 arg2 = static_cast< int >(val2);
24408 {
24409 PyThreadState* __tstate = wxPyBeginAllowThreads();
24410 result = ((wxImageList const *)arg1)->GetIcon(arg2);
24411 wxPyEndAllowThreads(__tstate);
24412 if (PyErr_Occurred()) SWIG_fail;
24413 }
24414 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
24415 return resultobj;
24416 fail:
24417 return NULL;
24418 }
24419
24420
24421 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24422 PyObject *resultobj = 0;
24423 wxImageList *arg1 = (wxImageList *) 0 ;
24424 int arg2 ;
24425 wxBitmap *arg3 = 0 ;
24426 wxBitmap const &arg4_defvalue = wxNullBitmap ;
24427 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
24428 bool result;
24429 void *argp1 = 0 ;
24430 int res1 = 0 ;
24431 int val2 ;
24432 int ecode2 = 0 ;
24433 void *argp3 = 0 ;
24434 int res3 = 0 ;
24435 void *argp4 = 0 ;
24436 int res4 = 0 ;
24437 PyObject * obj0 = 0 ;
24438 PyObject * obj1 = 0 ;
24439 PyObject * obj2 = 0 ;
24440 PyObject * obj3 = 0 ;
24441 char * kwnames[] = {
24442 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
24443 };
24444
24445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24447 if (!SWIG_IsOK(res1)) {
24448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
24449 }
24450 arg1 = reinterpret_cast< wxImageList * >(argp1);
24451 ecode2 = SWIG_AsVal_int(obj1, &val2);
24452 if (!SWIG_IsOK(ecode2)) {
24453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
24454 }
24455 arg2 = static_cast< int >(val2);
24456 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24457 if (!SWIG_IsOK(res3)) {
24458 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24459 }
24460 if (!argp3) {
24461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24462 }
24463 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24464 if (obj3) {
24465 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24466 if (!SWIG_IsOK(res4)) {
24467 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24468 }
24469 if (!argp4) {
24470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24471 }
24472 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24473 }
24474 {
24475 PyThreadState* __tstate = wxPyBeginAllowThreads();
24476 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
24477 wxPyEndAllowThreads(__tstate);
24478 if (PyErr_Occurred()) SWIG_fail;
24479 }
24480 {
24481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24482 }
24483 return resultobj;
24484 fail:
24485 return NULL;
24486 }
24487
24488
24489 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24490 PyObject *resultobj = 0;
24491 wxImageList *arg1 = (wxImageList *) 0 ;
24492 int arg2 ;
24493 wxDC *arg3 = 0 ;
24494 int arg4 ;
24495 int arg5 ;
24496 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
24497 bool arg7 = (bool) (bool)false ;
24498 bool result;
24499 void *argp1 = 0 ;
24500 int res1 = 0 ;
24501 int val2 ;
24502 int ecode2 = 0 ;
24503 void *argp3 = 0 ;
24504 int res3 = 0 ;
24505 int val4 ;
24506 int ecode4 = 0 ;
24507 int val5 ;
24508 int ecode5 = 0 ;
24509 int val6 ;
24510 int ecode6 = 0 ;
24511 bool val7 ;
24512 int ecode7 = 0 ;
24513 PyObject * obj0 = 0 ;
24514 PyObject * obj1 = 0 ;
24515 PyObject * obj2 = 0 ;
24516 PyObject * obj3 = 0 ;
24517 PyObject * obj4 = 0 ;
24518 PyObject * obj5 = 0 ;
24519 PyObject * obj6 = 0 ;
24520 char * kwnames[] = {
24521 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
24522 };
24523
24524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24526 if (!SWIG_IsOK(res1)) {
24527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
24528 }
24529 arg1 = reinterpret_cast< wxImageList * >(argp1);
24530 ecode2 = SWIG_AsVal_int(obj1, &val2);
24531 if (!SWIG_IsOK(ecode2)) {
24532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
24533 }
24534 arg2 = static_cast< int >(val2);
24535 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24536 if (!SWIG_IsOK(res3)) {
24537 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24538 }
24539 if (!argp3) {
24540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24541 }
24542 arg3 = reinterpret_cast< wxDC * >(argp3);
24543 ecode4 = SWIG_AsVal_int(obj3, &val4);
24544 if (!SWIG_IsOK(ecode4)) {
24545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
24546 }
24547 arg4 = static_cast< int >(val4);
24548 ecode5 = SWIG_AsVal_int(obj4, &val5);
24549 if (!SWIG_IsOK(ecode5)) {
24550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
24551 }
24552 arg5 = static_cast< int >(val5);
24553 if (obj5) {
24554 ecode6 = SWIG_AsVal_int(obj5, &val6);
24555 if (!SWIG_IsOK(ecode6)) {
24556 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
24557 }
24558 arg6 = static_cast< int >(val6);
24559 }
24560 if (obj6) {
24561 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24562 if (!SWIG_IsOK(ecode7)) {
24563 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
24564 }
24565 arg7 = static_cast< bool >(val7);
24566 }
24567 {
24568 PyThreadState* __tstate = wxPyBeginAllowThreads();
24569 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
24570 wxPyEndAllowThreads(__tstate);
24571 if (PyErr_Occurred()) SWIG_fail;
24572 }
24573 {
24574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24575 }
24576 return resultobj;
24577 fail:
24578 return NULL;
24579 }
24580
24581
24582 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24583 PyObject *resultobj = 0;
24584 wxImageList *arg1 = (wxImageList *) 0 ;
24585 int result;
24586 void *argp1 = 0 ;
24587 int res1 = 0 ;
24588 PyObject *swig_obj[1] ;
24589
24590 if (!args) SWIG_fail;
24591 swig_obj[0] = args;
24592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24593 if (!SWIG_IsOK(res1)) {
24594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
24595 }
24596 arg1 = reinterpret_cast< wxImageList * >(argp1);
24597 {
24598 PyThreadState* __tstate = wxPyBeginAllowThreads();
24599 result = (int)(arg1)->GetImageCount();
24600 wxPyEndAllowThreads(__tstate);
24601 if (PyErr_Occurred()) SWIG_fail;
24602 }
24603 resultobj = SWIG_From_int(static_cast< int >(result));
24604 return resultobj;
24605 fail:
24606 return NULL;
24607 }
24608
24609
24610 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj = 0;
24612 wxImageList *arg1 = (wxImageList *) 0 ;
24613 int arg2 ;
24614 bool result;
24615 void *argp1 = 0 ;
24616 int res1 = 0 ;
24617 int val2 ;
24618 int ecode2 = 0 ;
24619 PyObject * obj0 = 0 ;
24620 PyObject * obj1 = 0 ;
24621 char * kwnames[] = {
24622 (char *) "self",(char *) "index", NULL
24623 };
24624
24625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
24626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24627 if (!SWIG_IsOK(res1)) {
24628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
24629 }
24630 arg1 = reinterpret_cast< wxImageList * >(argp1);
24631 ecode2 = SWIG_AsVal_int(obj1, &val2);
24632 if (!SWIG_IsOK(ecode2)) {
24633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
24634 }
24635 arg2 = static_cast< int >(val2);
24636 {
24637 PyThreadState* __tstate = wxPyBeginAllowThreads();
24638 result = (bool)(arg1)->Remove(arg2);
24639 wxPyEndAllowThreads(__tstate);
24640 if (PyErr_Occurred()) SWIG_fail;
24641 }
24642 {
24643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24644 }
24645 return resultobj;
24646 fail:
24647 return NULL;
24648 }
24649
24650
24651 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24652 PyObject *resultobj = 0;
24653 wxImageList *arg1 = (wxImageList *) 0 ;
24654 bool result;
24655 void *argp1 = 0 ;
24656 int res1 = 0 ;
24657 PyObject *swig_obj[1] ;
24658
24659 if (!args) SWIG_fail;
24660 swig_obj[0] = args;
24661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24662 if (!SWIG_IsOK(res1)) {
24663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
24664 }
24665 arg1 = reinterpret_cast< wxImageList * >(argp1);
24666 {
24667 PyThreadState* __tstate = wxPyBeginAllowThreads();
24668 result = (bool)(arg1)->RemoveAll();
24669 wxPyEndAllowThreads(__tstate);
24670 if (PyErr_Occurred()) SWIG_fail;
24671 }
24672 {
24673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24674 }
24675 return resultobj;
24676 fail:
24677 return NULL;
24678 }
24679
24680
24681 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24682 PyObject *resultobj = 0;
24683 wxImageList *arg1 = (wxImageList *) 0 ;
24684 int arg2 ;
24685 int *arg3 = 0 ;
24686 int *arg4 = 0 ;
24687 void *argp1 = 0 ;
24688 int res1 = 0 ;
24689 int val2 ;
24690 int ecode2 = 0 ;
24691 int temp3 ;
24692 int res3 = SWIG_TMPOBJ ;
24693 int temp4 ;
24694 int res4 = SWIG_TMPOBJ ;
24695 PyObject * obj0 = 0 ;
24696 PyObject * obj1 = 0 ;
24697 char * kwnames[] = {
24698 (char *) "self",(char *) "index", NULL
24699 };
24700
24701 arg3 = &temp3;
24702 arg4 = &temp4;
24703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
24704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24705 if (!SWIG_IsOK(res1)) {
24706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
24707 }
24708 arg1 = reinterpret_cast< wxImageList * >(argp1);
24709 ecode2 = SWIG_AsVal_int(obj1, &val2);
24710 if (!SWIG_IsOK(ecode2)) {
24711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
24712 }
24713 arg2 = static_cast< int >(val2);
24714 {
24715 PyThreadState* __tstate = wxPyBeginAllowThreads();
24716 (arg1)->GetSize(arg2,*arg3,*arg4);
24717 wxPyEndAllowThreads(__tstate);
24718 if (PyErr_Occurred()) SWIG_fail;
24719 }
24720 resultobj = SWIG_Py_Void();
24721 if (SWIG_IsTmpObj(res3)) {
24722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24723 } else {
24724 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24726 }
24727 if (SWIG_IsTmpObj(res4)) {
24728 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24729 } else {
24730 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24732 }
24733 return resultobj;
24734 fail:
24735 return NULL;
24736 }
24737
24738
24739 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24740 PyObject *obj;
24741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24742 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
24743 return SWIG_Py_Void();
24744 }
24745
24746 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24747 return SWIG_Python_InitShadowInstance(args);
24748 }
24749
24750 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24751 PyObject *resultobj = 0;
24752 wxStockGDI *result = 0 ;
24753
24754 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
24755 {
24756 PyThreadState* __tstate = wxPyBeginAllowThreads();
24757 result = (wxStockGDI *)new wxStockGDI();
24758 wxPyEndAllowThreads(__tstate);
24759 if (PyErr_Occurred()) SWIG_fail;
24760 }
24761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
24762 return resultobj;
24763 fail:
24764 return NULL;
24765 }
24766
24767
24768 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24769 PyObject *resultobj = 0;
24770 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24771 void *argp1 = 0 ;
24772 int res1 = 0 ;
24773 PyObject *swig_obj[1] ;
24774
24775 if (!args) SWIG_fail;
24776 swig_obj[0] = args;
24777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
24778 if (!SWIG_IsOK(res1)) {
24779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24780 }
24781 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24782 {
24783 PyThreadState* __tstate = wxPyBeginAllowThreads();
24784 delete arg1;
24785
24786 wxPyEndAllowThreads(__tstate);
24787 if (PyErr_Occurred()) SWIG_fail;
24788 }
24789 resultobj = SWIG_Py_Void();
24790 return resultobj;
24791 fail:
24792 return NULL;
24793 }
24794
24795
24796 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24797 PyObject *resultobj = 0;
24798
24799 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
24800 {
24801 PyThreadState* __tstate = wxPyBeginAllowThreads();
24802 wxStockGDI::DeleteAll();
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 resultobj = SWIG_Py_Void();
24807 return resultobj;
24808 fail:
24809 return NULL;
24810 }
24811
24812
24813 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24814 PyObject *resultobj = 0;
24815 wxStockGDI *result = 0 ;
24816
24817 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
24818 {
24819 PyThreadState* __tstate = wxPyBeginAllowThreads();
24820 {
24821 wxStockGDI &_result_ref = wxStockGDI::instance();
24822 result = (wxStockGDI *) &_result_ref;
24823 }
24824 wxPyEndAllowThreads(__tstate);
24825 if (PyErr_Occurred()) SWIG_fail;
24826 }
24827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
24828 return resultobj;
24829 fail:
24830 return NULL;
24831 }
24832
24833
24834 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24835 PyObject *resultobj = 0;
24836 wxStockGDI::Item arg1 ;
24837 wxBrush *result = 0 ;
24838 int val1 ;
24839 int ecode1 = 0 ;
24840 PyObject * obj0 = 0 ;
24841 char * kwnames[] = {
24842 (char *) "item", NULL
24843 };
24844
24845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
24846 ecode1 = SWIG_AsVal_int(obj0, &val1);
24847 if (!SWIG_IsOK(ecode1)) {
24848 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24849 }
24850 arg1 = static_cast< wxStockGDI::Item >(val1);
24851 {
24852 PyThreadState* __tstate = wxPyBeginAllowThreads();
24853 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
24854 wxPyEndAllowThreads(__tstate);
24855 if (PyErr_Occurred()) SWIG_fail;
24856 }
24857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
24858 return resultobj;
24859 fail:
24860 return NULL;
24861 }
24862
24863
24864 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24865 PyObject *resultobj = 0;
24866 wxStockGDI::Item arg1 ;
24867 wxColour *result = 0 ;
24868 int val1 ;
24869 int ecode1 = 0 ;
24870 PyObject * obj0 = 0 ;
24871 char * kwnames[] = {
24872 (char *) "item", NULL
24873 };
24874
24875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
24876 ecode1 = SWIG_AsVal_int(obj0, &val1);
24877 if (!SWIG_IsOK(ecode1)) {
24878 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24879 }
24880 arg1 = static_cast< wxStockGDI::Item >(val1);
24881 {
24882 PyThreadState* __tstate = wxPyBeginAllowThreads();
24883 result = (wxColour *)wxStockGDI::GetColour(arg1);
24884 wxPyEndAllowThreads(__tstate);
24885 if (PyErr_Occurred()) SWIG_fail;
24886 }
24887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
24888 return resultobj;
24889 fail:
24890 return NULL;
24891 }
24892
24893
24894 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24895 PyObject *resultobj = 0;
24896 wxStockGDI::Item arg1 ;
24897 wxCursor *result = 0 ;
24898 int val1 ;
24899 int ecode1 = 0 ;
24900 PyObject * obj0 = 0 ;
24901 char * kwnames[] = {
24902 (char *) "item", NULL
24903 };
24904
24905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
24906 ecode1 = SWIG_AsVal_int(obj0, &val1);
24907 if (!SWIG_IsOK(ecode1)) {
24908 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24909 }
24910 arg1 = static_cast< wxStockGDI::Item >(val1);
24911 {
24912 PyThreadState* __tstate = wxPyBeginAllowThreads();
24913 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
24914 wxPyEndAllowThreads(__tstate);
24915 if (PyErr_Occurred()) SWIG_fail;
24916 }
24917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
24918 return resultobj;
24919 fail:
24920 return NULL;
24921 }
24922
24923
24924 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24925 PyObject *resultobj = 0;
24926 wxStockGDI::Item arg1 ;
24927 wxPen *result = 0 ;
24928 int val1 ;
24929 int ecode1 = 0 ;
24930 PyObject * obj0 = 0 ;
24931 char * kwnames[] = {
24932 (char *) "item", NULL
24933 };
24934
24935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
24936 ecode1 = SWIG_AsVal_int(obj0, &val1);
24937 if (!SWIG_IsOK(ecode1)) {
24938 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24939 }
24940 arg1 = static_cast< wxStockGDI::Item >(val1);
24941 {
24942 PyThreadState* __tstate = wxPyBeginAllowThreads();
24943 result = (wxPen *)wxStockGDI::GetPen(arg1);
24944 wxPyEndAllowThreads(__tstate);
24945 if (PyErr_Occurred()) SWIG_fail;
24946 }
24947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24948 return resultobj;
24949 fail:
24950 return NULL;
24951 }
24952
24953
24954 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24955 PyObject *resultobj = 0;
24956 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24957 wxStockGDI::Item arg2 ;
24958 wxFont *result = 0 ;
24959 void *argp1 = 0 ;
24960 int res1 = 0 ;
24961 int val2 ;
24962 int ecode2 = 0 ;
24963 PyObject * obj0 = 0 ;
24964 PyObject * obj1 = 0 ;
24965 char * kwnames[] = {
24966 (char *) "self",(char *) "item", NULL
24967 };
24968
24969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
24970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
24971 if (!SWIG_IsOK(res1)) {
24972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24973 }
24974 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24975 ecode2 = SWIG_AsVal_int(obj1, &val2);
24976 if (!SWIG_IsOK(ecode2)) {
24977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
24978 }
24979 arg2 = static_cast< wxStockGDI::Item >(val2);
24980 {
24981 PyThreadState* __tstate = wxPyBeginAllowThreads();
24982 result = (wxFont *)(arg1)->GetFont(arg2);
24983 wxPyEndAllowThreads(__tstate);
24984 if (PyErr_Occurred()) SWIG_fail;
24985 }
24986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
24987 return resultobj;
24988 fail:
24989 return NULL;
24990 }
24991
24992
24993 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24994 PyObject *obj;
24995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24996 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
24997 return SWIG_Py_Void();
24998 }
24999
25000 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25001 return SWIG_Python_InitShadowInstance(args);
25002 }
25003
25004 SWIGINTERN int NullBitmap_set(PyObject *) {
25005 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
25006 return 1;
25007 }
25008
25009
25010 SWIGINTERN PyObject *NullBitmap_get(void) {
25011 PyObject *pyobj = 0;
25012
25013 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
25014 return pyobj;
25015 }
25016
25017
25018 SWIGINTERN int NullIcon_set(PyObject *) {
25019 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
25020 return 1;
25021 }
25022
25023
25024 SWIGINTERN PyObject *NullIcon_get(void) {
25025 PyObject *pyobj = 0;
25026
25027 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
25028 return pyobj;
25029 }
25030
25031
25032 SWIGINTERN int NullCursor_set(PyObject *) {
25033 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
25034 return 1;
25035 }
25036
25037
25038 SWIGINTERN PyObject *NullCursor_get(void) {
25039 PyObject *pyobj = 0;
25040
25041 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
25042 return pyobj;
25043 }
25044
25045
25046 SWIGINTERN int NullPen_set(PyObject *) {
25047 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
25048 return 1;
25049 }
25050
25051
25052 SWIGINTERN PyObject *NullPen_get(void) {
25053 PyObject *pyobj = 0;
25054
25055 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
25056 return pyobj;
25057 }
25058
25059
25060 SWIGINTERN int NullBrush_set(PyObject *) {
25061 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
25062 return 1;
25063 }
25064
25065
25066 SWIGINTERN PyObject *NullBrush_get(void) {
25067 PyObject *pyobj = 0;
25068
25069 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
25070 return pyobj;
25071 }
25072
25073
25074 SWIGINTERN int NullPalette_set(PyObject *) {
25075 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
25076 return 1;
25077 }
25078
25079
25080 SWIGINTERN PyObject *NullPalette_get(void) {
25081 PyObject *pyobj = 0;
25082
25083 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
25084 return pyobj;
25085 }
25086
25087
25088 SWIGINTERN int NullFont_set(PyObject *) {
25089 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
25090 return 1;
25091 }
25092
25093
25094 SWIGINTERN PyObject *NullFont_get(void) {
25095 PyObject *pyobj = 0;
25096
25097 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
25098 return pyobj;
25099 }
25100
25101
25102 SWIGINTERN int NullColour_set(PyObject *) {
25103 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
25104 return 1;
25105 }
25106
25107
25108 SWIGINTERN PyObject *NullColour_get(void) {
25109 PyObject *pyobj = 0;
25110
25111 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
25112 return pyobj;
25113 }
25114
25115
25116 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25117 PyObject *resultobj = 0;
25118 wxGDIObjListBase *result = 0 ;
25119
25120 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
25121 {
25122 PyThreadState* __tstate = wxPyBeginAllowThreads();
25123 result = (wxGDIObjListBase *)new wxGDIObjListBase();
25124 wxPyEndAllowThreads(__tstate);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
25127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
25128 return resultobj;
25129 fail:
25130 return NULL;
25131 }
25132
25133
25134 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25135 PyObject *resultobj = 0;
25136 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
25137 void *argp1 = 0 ;
25138 int res1 = 0 ;
25139 PyObject *swig_obj[1] ;
25140
25141 if (!args) SWIG_fail;
25142 swig_obj[0] = args;
25143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
25144 if (!SWIG_IsOK(res1)) {
25145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
25146 }
25147 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
25148 {
25149 PyThreadState* __tstate = wxPyBeginAllowThreads();
25150 delete arg1;
25151
25152 wxPyEndAllowThreads(__tstate);
25153 if (PyErr_Occurred()) SWIG_fail;
25154 }
25155 resultobj = SWIG_Py_Void();
25156 return resultobj;
25157 fail:
25158 return NULL;
25159 }
25160
25161
25162 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25163 PyObject *obj;
25164 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25165 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25166 return SWIG_Py_Void();
25167 }
25168
25169 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25170 return SWIG_Python_InitShadowInstance(args);
25171 }
25172
25173 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25174 PyObject *resultobj = 0;
25175 wxPenList *arg1 = (wxPenList *) 0 ;
25176 wxColour *arg2 = 0 ;
25177 int arg3 ;
25178 int arg4 ;
25179 wxPen *result = 0 ;
25180 void *argp1 = 0 ;
25181 int res1 = 0 ;
25182 wxColour temp2 ;
25183 int val3 ;
25184 int ecode3 = 0 ;
25185 int val4 ;
25186 int ecode4 = 0 ;
25187 PyObject * obj0 = 0 ;
25188 PyObject * obj1 = 0 ;
25189 PyObject * obj2 = 0 ;
25190 PyObject * obj3 = 0 ;
25191 char * kwnames[] = {
25192 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25193 };
25194
25195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25197 if (!SWIG_IsOK(res1)) {
25198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25199 }
25200 arg1 = reinterpret_cast< wxPenList * >(argp1);
25201 {
25202 arg2 = &temp2;
25203 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25204 }
25205 ecode3 = SWIG_AsVal_int(obj2, &val3);
25206 if (!SWIG_IsOK(ecode3)) {
25207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25208 }
25209 arg3 = static_cast< int >(val3);
25210 ecode4 = SWIG_AsVal_int(obj3, &val4);
25211 if (!SWIG_IsOK(ecode4)) {
25212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25213 }
25214 arg4 = static_cast< int >(val4);
25215 {
25216 PyThreadState* __tstate = wxPyBeginAllowThreads();
25217 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
25218 wxPyEndAllowThreads(__tstate);
25219 if (PyErr_Occurred()) SWIG_fail;
25220 }
25221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25222 return resultobj;
25223 fail:
25224 return NULL;
25225 }
25226
25227
25228 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25229 PyObject *resultobj = 0;
25230 wxPenList *arg1 = (wxPenList *) 0 ;
25231 wxPen *arg2 = (wxPen *) 0 ;
25232 void *argp1 = 0 ;
25233 int res1 = 0 ;
25234 void *argp2 = 0 ;
25235 int res2 = 0 ;
25236 PyObject * obj0 = 0 ;
25237 PyObject * obj1 = 0 ;
25238 char * kwnames[] = {
25239 (char *) "self",(char *) "pen", NULL
25240 };
25241
25242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
25243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25244 if (!SWIG_IsOK(res1)) {
25245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
25246 }
25247 arg1 = reinterpret_cast< wxPenList * >(argp1);
25248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25249 if (!SWIG_IsOK(res2)) {
25250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
25251 }
25252 arg2 = reinterpret_cast< wxPen * >(argp2);
25253 {
25254 PyThreadState* __tstate = wxPyBeginAllowThreads();
25255 (arg1)->AddPen(arg2);
25256 wxPyEndAllowThreads(__tstate);
25257 if (PyErr_Occurred()) SWIG_fail;
25258 }
25259 resultobj = SWIG_Py_Void();
25260 return resultobj;
25261 fail:
25262 return NULL;
25263 }
25264
25265
25266 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25267 PyObject *resultobj = 0;
25268 wxPenList *arg1 = (wxPenList *) 0 ;
25269 wxPen *arg2 = (wxPen *) 0 ;
25270 void *argp1 = 0 ;
25271 int res1 = 0 ;
25272 void *argp2 = 0 ;
25273 int res2 = 0 ;
25274 PyObject * obj0 = 0 ;
25275 PyObject * obj1 = 0 ;
25276 char * kwnames[] = {
25277 (char *) "self",(char *) "pen", NULL
25278 };
25279
25280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25282 if (!SWIG_IsOK(res1)) {
25283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25284 }
25285 arg1 = reinterpret_cast< wxPenList * >(argp1);
25286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25287 if (!SWIG_IsOK(res2)) {
25288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25289 }
25290 arg2 = reinterpret_cast< wxPen * >(argp2);
25291 {
25292 PyThreadState* __tstate = wxPyBeginAllowThreads();
25293 (arg1)->RemovePen(arg2);
25294 wxPyEndAllowThreads(__tstate);
25295 if (PyErr_Occurred()) SWIG_fail;
25296 }
25297 resultobj = SWIG_Py_Void();
25298 return resultobj;
25299 fail:
25300 return NULL;
25301 }
25302
25303
25304 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25305 PyObject *obj;
25306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25307 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
25308 return SWIG_Py_Void();
25309 }
25310
25311 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25312 PyObject *resultobj = 0;
25313 wxBrushList *arg1 = (wxBrushList *) 0 ;
25314 wxColour *arg2 = 0 ;
25315 int arg3 = (int) wxSOLID ;
25316 wxBrush *result = 0 ;
25317 void *argp1 = 0 ;
25318 int res1 = 0 ;
25319 wxColour temp2 ;
25320 int val3 ;
25321 int ecode3 = 0 ;
25322 PyObject * obj0 = 0 ;
25323 PyObject * obj1 = 0 ;
25324 PyObject * obj2 = 0 ;
25325 char * kwnames[] = {
25326 (char *) "self",(char *) "colour",(char *) "style", NULL
25327 };
25328
25329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25331 if (!SWIG_IsOK(res1)) {
25332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25333 }
25334 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25335 {
25336 arg2 = &temp2;
25337 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25338 }
25339 if (obj2) {
25340 ecode3 = SWIG_AsVal_int(obj2, &val3);
25341 if (!SWIG_IsOK(ecode3)) {
25342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
25343 }
25344 arg3 = static_cast< int >(val3);
25345 }
25346 {
25347 PyThreadState* __tstate = wxPyBeginAllowThreads();
25348 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
25349 wxPyEndAllowThreads(__tstate);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25353 return resultobj;
25354 fail:
25355 return NULL;
25356 }
25357
25358
25359 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25360 PyObject *resultobj = 0;
25361 wxBrushList *arg1 = (wxBrushList *) 0 ;
25362 wxBrush *arg2 = (wxBrush *) 0 ;
25363 void *argp1 = 0 ;
25364 int res1 = 0 ;
25365 void *argp2 = 0 ;
25366 int res2 = 0 ;
25367 PyObject * obj0 = 0 ;
25368 PyObject * obj1 = 0 ;
25369 char * kwnames[] = {
25370 (char *) "self",(char *) "brush", NULL
25371 };
25372
25373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25375 if (!SWIG_IsOK(res1)) {
25376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25377 }
25378 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25380 if (!SWIG_IsOK(res2)) {
25381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25382 }
25383 arg2 = reinterpret_cast< wxBrush * >(argp2);
25384 {
25385 PyThreadState* __tstate = wxPyBeginAllowThreads();
25386 (arg1)->AddBrush(arg2);
25387 wxPyEndAllowThreads(__tstate);
25388 if (PyErr_Occurred()) SWIG_fail;
25389 }
25390 resultobj = SWIG_Py_Void();
25391 return resultobj;
25392 fail:
25393 return NULL;
25394 }
25395
25396
25397 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25398 PyObject *resultobj = 0;
25399 wxBrushList *arg1 = (wxBrushList *) 0 ;
25400 wxBrush *arg2 = (wxBrush *) 0 ;
25401 void *argp1 = 0 ;
25402 int res1 = 0 ;
25403 void *argp2 = 0 ;
25404 int res2 = 0 ;
25405 PyObject * obj0 = 0 ;
25406 PyObject * obj1 = 0 ;
25407 char * kwnames[] = {
25408 (char *) "self",(char *) "brush", NULL
25409 };
25410
25411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25413 if (!SWIG_IsOK(res1)) {
25414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25415 }
25416 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25417 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25418 if (!SWIG_IsOK(res2)) {
25419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25420 }
25421 arg2 = reinterpret_cast< wxBrush * >(argp2);
25422 {
25423 PyThreadState* __tstate = wxPyBeginAllowThreads();
25424 (arg1)->RemoveBrush(arg2);
25425 wxPyEndAllowThreads(__tstate);
25426 if (PyErr_Occurred()) SWIG_fail;
25427 }
25428 resultobj = SWIG_Py_Void();
25429 return resultobj;
25430 fail:
25431 return NULL;
25432 }
25433
25434
25435 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25436 PyObject *obj;
25437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25438 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
25439 return SWIG_Py_Void();
25440 }
25441
25442 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25443 PyObject *resultobj = 0;
25444 wxFontList *arg1 = (wxFontList *) 0 ;
25445 int arg2 ;
25446 int arg3 ;
25447 int arg4 ;
25448 int arg5 ;
25449 bool arg6 = (bool) false ;
25450 wxString const &arg7_defvalue = wxPyEmptyString ;
25451 wxString *arg7 = (wxString *) &arg7_defvalue ;
25452 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
25453 wxFont *result = 0 ;
25454 void *argp1 = 0 ;
25455 int res1 = 0 ;
25456 int val2 ;
25457 int ecode2 = 0 ;
25458 int val3 ;
25459 int ecode3 = 0 ;
25460 int val4 ;
25461 int ecode4 = 0 ;
25462 int val5 ;
25463 int ecode5 = 0 ;
25464 bool val6 ;
25465 int ecode6 = 0 ;
25466 bool temp7 = false ;
25467 int val8 ;
25468 int ecode8 = 0 ;
25469 PyObject * obj0 = 0 ;
25470 PyObject * obj1 = 0 ;
25471 PyObject * obj2 = 0 ;
25472 PyObject * obj3 = 0 ;
25473 PyObject * obj4 = 0 ;
25474 PyObject * obj5 = 0 ;
25475 PyObject * obj6 = 0 ;
25476 PyObject * obj7 = 0 ;
25477 char * kwnames[] = {
25478 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
25479 };
25480
25481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25483 if (!SWIG_IsOK(res1)) {
25484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25485 }
25486 arg1 = reinterpret_cast< wxFontList * >(argp1);
25487 ecode2 = SWIG_AsVal_int(obj1, &val2);
25488 if (!SWIG_IsOK(ecode2)) {
25489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
25490 }
25491 arg2 = static_cast< int >(val2);
25492 ecode3 = SWIG_AsVal_int(obj2, &val3);
25493 if (!SWIG_IsOK(ecode3)) {
25494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
25495 }
25496 arg3 = static_cast< int >(val3);
25497 ecode4 = SWIG_AsVal_int(obj3, &val4);
25498 if (!SWIG_IsOK(ecode4)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
25500 }
25501 arg4 = static_cast< int >(val4);
25502 ecode5 = SWIG_AsVal_int(obj4, &val5);
25503 if (!SWIG_IsOK(ecode5)) {
25504 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
25505 }
25506 arg5 = static_cast< int >(val5);
25507 if (obj5) {
25508 ecode6 = SWIG_AsVal_bool(obj5, &val6);
25509 if (!SWIG_IsOK(ecode6)) {
25510 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
25511 }
25512 arg6 = static_cast< bool >(val6);
25513 }
25514 if (obj6) {
25515 {
25516 arg7 = wxString_in_helper(obj6);
25517 if (arg7 == NULL) SWIG_fail;
25518 temp7 = true;
25519 }
25520 }
25521 if (obj7) {
25522 ecode8 = SWIG_AsVal_int(obj7, &val8);
25523 if (!SWIG_IsOK(ecode8)) {
25524 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
25525 }
25526 arg8 = static_cast< wxFontEncoding >(val8);
25527 }
25528 {
25529 PyThreadState* __tstate = wxPyBeginAllowThreads();
25530 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
25531 wxPyEndAllowThreads(__tstate);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25535 {
25536 if (temp7)
25537 delete arg7;
25538 }
25539 return resultobj;
25540 fail:
25541 {
25542 if (temp7)
25543 delete arg7;
25544 }
25545 return NULL;
25546 }
25547
25548
25549 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25550 PyObject *resultobj = 0;
25551 wxFontList *arg1 = (wxFontList *) 0 ;
25552 wxFont *arg2 = (wxFont *) 0 ;
25553 void *argp1 = 0 ;
25554 int res1 = 0 ;
25555 void *argp2 = 0 ;
25556 int res2 = 0 ;
25557 PyObject * obj0 = 0 ;
25558 PyObject * obj1 = 0 ;
25559 char * kwnames[] = {
25560 (char *) "self",(char *) "font", NULL
25561 };
25562
25563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
25564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25565 if (!SWIG_IsOK(res1)) {
25566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25567 }
25568 arg1 = reinterpret_cast< wxFontList * >(argp1);
25569 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25570 if (!SWIG_IsOK(res2)) {
25571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
25572 }
25573 arg2 = reinterpret_cast< wxFont * >(argp2);
25574 {
25575 PyThreadState* __tstate = wxPyBeginAllowThreads();
25576 (arg1)->AddFont(arg2);
25577 wxPyEndAllowThreads(__tstate);
25578 if (PyErr_Occurred()) SWIG_fail;
25579 }
25580 resultobj = SWIG_Py_Void();
25581 return resultobj;
25582 fail:
25583 return NULL;
25584 }
25585
25586
25587 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25588 PyObject *resultobj = 0;
25589 wxFontList *arg1 = (wxFontList *) 0 ;
25590 wxFont *arg2 = (wxFont *) 0 ;
25591 void *argp1 = 0 ;
25592 int res1 = 0 ;
25593 void *argp2 = 0 ;
25594 int res2 = 0 ;
25595 PyObject * obj0 = 0 ;
25596 PyObject * obj1 = 0 ;
25597 char * kwnames[] = {
25598 (char *) "self",(char *) "font", NULL
25599 };
25600
25601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
25602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25603 if (!SWIG_IsOK(res1)) {
25604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25605 }
25606 arg1 = reinterpret_cast< wxFontList * >(argp1);
25607 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25608 if (!SWIG_IsOK(res2)) {
25609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
25610 }
25611 arg2 = reinterpret_cast< wxFont * >(argp2);
25612 {
25613 PyThreadState* __tstate = wxPyBeginAllowThreads();
25614 (arg1)->RemoveFont(arg2);
25615 wxPyEndAllowThreads(__tstate);
25616 if (PyErr_Occurred()) SWIG_fail;
25617 }
25618 resultobj = SWIG_Py_Void();
25619 return resultobj;
25620 fail:
25621 return NULL;
25622 }
25623
25624
25625 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25626 PyObject *obj;
25627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25628 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
25629 return SWIG_Py_Void();
25630 }
25631
25632 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25633 PyObject *resultobj = 0;
25634 wxColourDatabase *result = 0 ;
25635
25636 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
25637 {
25638 if (!wxPyCheckForApp()) SWIG_fail;
25639 PyThreadState* __tstate = wxPyBeginAllowThreads();
25640 result = (wxColourDatabase *)new wxColourDatabase();
25641 wxPyEndAllowThreads(__tstate);
25642 if (PyErr_Occurred()) SWIG_fail;
25643 }
25644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
25645 return resultobj;
25646 fail:
25647 return NULL;
25648 }
25649
25650
25651 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25652 PyObject *resultobj = 0;
25653 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25654 void *argp1 = 0 ;
25655 int res1 = 0 ;
25656 PyObject *swig_obj[1] ;
25657
25658 if (!args) SWIG_fail;
25659 swig_obj[0] = args;
25660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
25661 if (!SWIG_IsOK(res1)) {
25662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25663 }
25664 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25665 {
25666 PyThreadState* __tstate = wxPyBeginAllowThreads();
25667 delete arg1;
25668
25669 wxPyEndAllowThreads(__tstate);
25670 if (PyErr_Occurred()) SWIG_fail;
25671 }
25672 resultobj = SWIG_Py_Void();
25673 return resultobj;
25674 fail:
25675 return NULL;
25676 }
25677
25678
25679 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25680 PyObject *resultobj = 0;
25681 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25682 wxString *arg2 = 0 ;
25683 wxColour result;
25684 void *argp1 = 0 ;
25685 int res1 = 0 ;
25686 bool temp2 = false ;
25687 PyObject * obj0 = 0 ;
25688 PyObject * obj1 = 0 ;
25689 char * kwnames[] = {
25690 (char *) "self",(char *) "name", NULL
25691 };
25692
25693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
25694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25695 if (!SWIG_IsOK(res1)) {
25696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25697 }
25698 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25699 {
25700 arg2 = wxString_in_helper(obj1);
25701 if (arg2 == NULL) SWIG_fail;
25702 temp2 = true;
25703 }
25704 {
25705 PyThreadState* __tstate = wxPyBeginAllowThreads();
25706 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
25707 wxPyEndAllowThreads(__tstate);
25708 if (PyErr_Occurred()) SWIG_fail;
25709 }
25710 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25711 {
25712 if (temp2)
25713 delete arg2;
25714 }
25715 return resultobj;
25716 fail:
25717 {
25718 if (temp2)
25719 delete arg2;
25720 }
25721 return NULL;
25722 }
25723
25724
25725 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25726 PyObject *resultobj = 0;
25727 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25728 wxColour *arg2 = 0 ;
25729 wxString result;
25730 void *argp1 = 0 ;
25731 int res1 = 0 ;
25732 wxColour temp2 ;
25733 PyObject * obj0 = 0 ;
25734 PyObject * obj1 = 0 ;
25735 char * kwnames[] = {
25736 (char *) "self",(char *) "colour", NULL
25737 };
25738
25739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
25740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25741 if (!SWIG_IsOK(res1)) {
25742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25743 }
25744 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25745 {
25746 arg2 = &temp2;
25747 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25748 }
25749 {
25750 PyThreadState* __tstate = wxPyBeginAllowThreads();
25751 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
25752 wxPyEndAllowThreads(__tstate);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 {
25756 #if wxUSE_UNICODE
25757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25758 #else
25759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25760 #endif
25761 }
25762 return resultobj;
25763 fail:
25764 return NULL;
25765 }
25766
25767
25768 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25769 PyObject *resultobj = 0;
25770 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25771 wxString *arg2 = 0 ;
25772 wxColour *arg3 = 0 ;
25773 void *argp1 = 0 ;
25774 int res1 = 0 ;
25775 bool temp2 = false ;
25776 wxColour temp3 ;
25777 PyObject * obj0 = 0 ;
25778 PyObject * obj1 = 0 ;
25779 PyObject * obj2 = 0 ;
25780 char * kwnames[] = {
25781 (char *) "self",(char *) "name",(char *) "colour", NULL
25782 };
25783
25784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25786 if (!SWIG_IsOK(res1)) {
25787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25788 }
25789 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25790 {
25791 arg2 = wxString_in_helper(obj1);
25792 if (arg2 == NULL) SWIG_fail;
25793 temp2 = true;
25794 }
25795 {
25796 arg3 = &temp3;
25797 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25798 }
25799 {
25800 PyThreadState* __tstate = wxPyBeginAllowThreads();
25801 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
25802 wxPyEndAllowThreads(__tstate);
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
25805 resultobj = SWIG_Py_Void();
25806 {
25807 if (temp2)
25808 delete arg2;
25809 }
25810 return resultobj;
25811 fail:
25812 {
25813 if (temp2)
25814 delete arg2;
25815 }
25816 return NULL;
25817 }
25818
25819
25820 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25821 PyObject *resultobj = 0;
25822 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25823 wxString *arg2 = 0 ;
25824 int arg3 ;
25825 int arg4 ;
25826 int arg5 ;
25827 void *argp1 = 0 ;
25828 int res1 = 0 ;
25829 bool temp2 = false ;
25830 int val3 ;
25831 int ecode3 = 0 ;
25832 int val4 ;
25833 int ecode4 = 0 ;
25834 int val5 ;
25835 int ecode5 = 0 ;
25836 PyObject * obj0 = 0 ;
25837 PyObject * obj1 = 0 ;
25838 PyObject * obj2 = 0 ;
25839 PyObject * obj3 = 0 ;
25840 PyObject * obj4 = 0 ;
25841 char * kwnames[] = {
25842 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
25843 };
25844
25845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25847 if (!SWIG_IsOK(res1)) {
25848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25849 }
25850 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25851 {
25852 arg2 = wxString_in_helper(obj1);
25853 if (arg2 == NULL) SWIG_fail;
25854 temp2 = true;
25855 }
25856 ecode3 = SWIG_AsVal_int(obj2, &val3);
25857 if (!SWIG_IsOK(ecode3)) {
25858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
25859 }
25860 arg3 = static_cast< int >(val3);
25861 ecode4 = SWIG_AsVal_int(obj3, &val4);
25862 if (!SWIG_IsOK(ecode4)) {
25863 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
25864 }
25865 arg4 = static_cast< int >(val4);
25866 ecode5 = SWIG_AsVal_int(obj4, &val5);
25867 if (!SWIG_IsOK(ecode5)) {
25868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
25869 }
25870 arg5 = static_cast< int >(val5);
25871 {
25872 PyThreadState* __tstate = wxPyBeginAllowThreads();
25873 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
25874 wxPyEndAllowThreads(__tstate);
25875 if (PyErr_Occurred()) SWIG_fail;
25876 }
25877 resultobj = SWIG_Py_Void();
25878 {
25879 if (temp2)
25880 delete arg2;
25881 }
25882 return resultobj;
25883 fail:
25884 {
25885 if (temp2)
25886 delete arg2;
25887 }
25888 return NULL;
25889 }
25890
25891
25892 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25893 PyObject *obj;
25894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25895 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
25896 return SWIG_Py_Void();
25897 }
25898
25899 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25900 return SWIG_Python_InitShadowInstance(args);
25901 }
25902
25903 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25904 PyObject *resultobj = 0;
25905 wxFontList *result = 0 ;
25906
25907 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
25908 {
25909 PyThreadState* __tstate = wxPyBeginAllowThreads();
25910 result = (wxFontList *)_wxPyInitTheFontList();
25911 wxPyEndAllowThreads(__tstate);
25912 if (PyErr_Occurred()) SWIG_fail;
25913 }
25914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
25915 return resultobj;
25916 fail:
25917 return NULL;
25918 }
25919
25920
25921 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25922 PyObject *resultobj = 0;
25923 wxPenList *result = 0 ;
25924
25925 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
25926 {
25927 PyThreadState* __tstate = wxPyBeginAllowThreads();
25928 result = (wxPenList *)_wxPyInitThePenList();
25929 wxPyEndAllowThreads(__tstate);
25930 if (PyErr_Occurred()) SWIG_fail;
25931 }
25932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
25933 return resultobj;
25934 fail:
25935 return NULL;
25936 }
25937
25938
25939 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25940 PyObject *resultobj = 0;
25941 wxBrushList *result = 0 ;
25942
25943 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
25944 {
25945 PyThreadState* __tstate = wxPyBeginAllowThreads();
25946 result = (wxBrushList *)_wxPyInitTheBrushList();
25947 wxPyEndAllowThreads(__tstate);
25948 if (PyErr_Occurred()) SWIG_fail;
25949 }
25950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
25951 return resultobj;
25952 fail:
25953 return NULL;
25954 }
25955
25956
25957 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25958 PyObject *resultobj = 0;
25959 wxColourDatabase *result = 0 ;
25960
25961 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
25962 {
25963 PyThreadState* __tstate = wxPyBeginAllowThreads();
25964 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
25965 wxPyEndAllowThreads(__tstate);
25966 if (PyErr_Occurred()) SWIG_fail;
25967 }
25968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25969 return resultobj;
25970 fail:
25971 return NULL;
25972 }
25973
25974
25975 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25976 PyObject *resultobj = 0;
25977 wxEffects *result = 0 ;
25978
25979 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
25980 {
25981 PyThreadState* __tstate = wxPyBeginAllowThreads();
25982 result = (wxEffects *)new wxEffects();
25983 wxPyEndAllowThreads(__tstate);
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
25987 return resultobj;
25988 fail:
25989 return NULL;
25990 }
25991
25992
25993 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25994 PyObject *resultobj = 0;
25995 wxEffects *arg1 = (wxEffects *) 0 ;
25996 wxColour result;
25997 void *argp1 = 0 ;
25998 int res1 = 0 ;
25999 PyObject *swig_obj[1] ;
26000
26001 if (!args) SWIG_fail;
26002 swig_obj[0] = args;
26003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26004 if (!SWIG_IsOK(res1)) {
26005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26006 }
26007 arg1 = reinterpret_cast< wxEffects * >(argp1);
26008 {
26009 PyThreadState* __tstate = wxPyBeginAllowThreads();
26010 result = ((wxEffects const *)arg1)->GetHighlightColour();
26011 wxPyEndAllowThreads(__tstate);
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
26014 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26015 return resultobj;
26016 fail:
26017 return NULL;
26018 }
26019
26020
26021 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26022 PyObject *resultobj = 0;
26023 wxEffects *arg1 = (wxEffects *) 0 ;
26024 wxColour result;
26025 void *argp1 = 0 ;
26026 int res1 = 0 ;
26027 PyObject *swig_obj[1] ;
26028
26029 if (!args) SWIG_fail;
26030 swig_obj[0] = args;
26031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26032 if (!SWIG_IsOK(res1)) {
26033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26034 }
26035 arg1 = reinterpret_cast< wxEffects * >(argp1);
26036 {
26037 PyThreadState* __tstate = wxPyBeginAllowThreads();
26038 result = ((wxEffects const *)arg1)->GetLightShadow();
26039 wxPyEndAllowThreads(__tstate);
26040 if (PyErr_Occurred()) SWIG_fail;
26041 }
26042 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26043 return resultobj;
26044 fail:
26045 return NULL;
26046 }
26047
26048
26049 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26050 PyObject *resultobj = 0;
26051 wxEffects *arg1 = (wxEffects *) 0 ;
26052 wxColour result;
26053 void *argp1 = 0 ;
26054 int res1 = 0 ;
26055 PyObject *swig_obj[1] ;
26056
26057 if (!args) SWIG_fail;
26058 swig_obj[0] = args;
26059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26060 if (!SWIG_IsOK(res1)) {
26061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26062 }
26063 arg1 = reinterpret_cast< wxEffects * >(argp1);
26064 {
26065 PyThreadState* __tstate = wxPyBeginAllowThreads();
26066 result = ((wxEffects const *)arg1)->GetFaceColour();
26067 wxPyEndAllowThreads(__tstate);
26068 if (PyErr_Occurred()) SWIG_fail;
26069 }
26070 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26071 return resultobj;
26072 fail:
26073 return NULL;
26074 }
26075
26076
26077 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26078 PyObject *resultobj = 0;
26079 wxEffects *arg1 = (wxEffects *) 0 ;
26080 wxColour result;
26081 void *argp1 = 0 ;
26082 int res1 = 0 ;
26083 PyObject *swig_obj[1] ;
26084
26085 if (!args) SWIG_fail;
26086 swig_obj[0] = args;
26087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26088 if (!SWIG_IsOK(res1)) {
26089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26090 }
26091 arg1 = reinterpret_cast< wxEffects * >(argp1);
26092 {
26093 PyThreadState* __tstate = wxPyBeginAllowThreads();
26094 result = ((wxEffects const *)arg1)->GetMediumShadow();
26095 wxPyEndAllowThreads(__tstate);
26096 if (PyErr_Occurred()) SWIG_fail;
26097 }
26098 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26099 return resultobj;
26100 fail:
26101 return NULL;
26102 }
26103
26104
26105 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26106 PyObject *resultobj = 0;
26107 wxEffects *arg1 = (wxEffects *) 0 ;
26108 wxColour result;
26109 void *argp1 = 0 ;
26110 int res1 = 0 ;
26111 PyObject *swig_obj[1] ;
26112
26113 if (!args) SWIG_fail;
26114 swig_obj[0] = args;
26115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26116 if (!SWIG_IsOK(res1)) {
26117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26118 }
26119 arg1 = reinterpret_cast< wxEffects * >(argp1);
26120 {
26121 PyThreadState* __tstate = wxPyBeginAllowThreads();
26122 result = ((wxEffects const *)arg1)->GetDarkShadow();
26123 wxPyEndAllowThreads(__tstate);
26124 if (PyErr_Occurred()) SWIG_fail;
26125 }
26126 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26127 return resultobj;
26128 fail:
26129 return NULL;
26130 }
26131
26132
26133 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26134 PyObject *resultobj = 0;
26135 wxEffects *arg1 = (wxEffects *) 0 ;
26136 wxColour *arg2 = 0 ;
26137 void *argp1 = 0 ;
26138 int res1 = 0 ;
26139 wxColour temp2 ;
26140 PyObject * obj0 = 0 ;
26141 PyObject * obj1 = 0 ;
26142 char * kwnames[] = {
26143 (char *) "self",(char *) "c", NULL
26144 };
26145
26146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
26147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26148 if (!SWIG_IsOK(res1)) {
26149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26150 }
26151 arg1 = reinterpret_cast< wxEffects * >(argp1);
26152 {
26153 arg2 = &temp2;
26154 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26155 }
26156 {
26157 PyThreadState* __tstate = wxPyBeginAllowThreads();
26158 (arg1)->SetHighlightColour((wxColour const &)*arg2);
26159 wxPyEndAllowThreads(__tstate);
26160 if (PyErr_Occurred()) SWIG_fail;
26161 }
26162 resultobj = SWIG_Py_Void();
26163 return resultobj;
26164 fail:
26165 return NULL;
26166 }
26167
26168
26169 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26170 PyObject *resultobj = 0;
26171 wxEffects *arg1 = (wxEffects *) 0 ;
26172 wxColour *arg2 = 0 ;
26173 void *argp1 = 0 ;
26174 int res1 = 0 ;
26175 wxColour temp2 ;
26176 PyObject * obj0 = 0 ;
26177 PyObject * obj1 = 0 ;
26178 char * kwnames[] = {
26179 (char *) "self",(char *) "c", NULL
26180 };
26181
26182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26184 if (!SWIG_IsOK(res1)) {
26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26186 }
26187 arg1 = reinterpret_cast< wxEffects * >(argp1);
26188 {
26189 arg2 = &temp2;
26190 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26191 }
26192 {
26193 PyThreadState* __tstate = wxPyBeginAllowThreads();
26194 (arg1)->SetLightShadow((wxColour const &)*arg2);
26195 wxPyEndAllowThreads(__tstate);
26196 if (PyErr_Occurred()) SWIG_fail;
26197 }
26198 resultobj = SWIG_Py_Void();
26199 return resultobj;
26200 fail:
26201 return NULL;
26202 }
26203
26204
26205 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26206 PyObject *resultobj = 0;
26207 wxEffects *arg1 = (wxEffects *) 0 ;
26208 wxColour *arg2 = 0 ;
26209 void *argp1 = 0 ;
26210 int res1 = 0 ;
26211 wxColour temp2 ;
26212 PyObject * obj0 = 0 ;
26213 PyObject * obj1 = 0 ;
26214 char * kwnames[] = {
26215 (char *) "self",(char *) "c", NULL
26216 };
26217
26218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
26219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26220 if (!SWIG_IsOK(res1)) {
26221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26222 }
26223 arg1 = reinterpret_cast< wxEffects * >(argp1);
26224 {
26225 arg2 = &temp2;
26226 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26227 }
26228 {
26229 PyThreadState* __tstate = wxPyBeginAllowThreads();
26230 (arg1)->SetFaceColour((wxColour const &)*arg2);
26231 wxPyEndAllowThreads(__tstate);
26232 if (PyErr_Occurred()) SWIG_fail;
26233 }
26234 resultobj = SWIG_Py_Void();
26235 return resultobj;
26236 fail:
26237 return NULL;
26238 }
26239
26240
26241 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26242 PyObject *resultobj = 0;
26243 wxEffects *arg1 = (wxEffects *) 0 ;
26244 wxColour *arg2 = 0 ;
26245 void *argp1 = 0 ;
26246 int res1 = 0 ;
26247 wxColour temp2 ;
26248 PyObject * obj0 = 0 ;
26249 PyObject * obj1 = 0 ;
26250 char * kwnames[] = {
26251 (char *) "self",(char *) "c", NULL
26252 };
26253
26254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26256 if (!SWIG_IsOK(res1)) {
26257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26258 }
26259 arg1 = reinterpret_cast< wxEffects * >(argp1);
26260 {
26261 arg2 = &temp2;
26262 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26263 }
26264 {
26265 PyThreadState* __tstate = wxPyBeginAllowThreads();
26266 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26267 wxPyEndAllowThreads(__tstate);
26268 if (PyErr_Occurred()) SWIG_fail;
26269 }
26270 resultobj = SWIG_Py_Void();
26271 return resultobj;
26272 fail:
26273 return NULL;
26274 }
26275
26276
26277 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26278 PyObject *resultobj = 0;
26279 wxEffects *arg1 = (wxEffects *) 0 ;
26280 wxColour *arg2 = 0 ;
26281 void *argp1 = 0 ;
26282 int res1 = 0 ;
26283 wxColour temp2 ;
26284 PyObject * obj0 = 0 ;
26285 PyObject * obj1 = 0 ;
26286 char * kwnames[] = {
26287 (char *) "self",(char *) "c", NULL
26288 };
26289
26290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26292 if (!SWIG_IsOK(res1)) {
26293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26294 }
26295 arg1 = reinterpret_cast< wxEffects * >(argp1);
26296 {
26297 arg2 = &temp2;
26298 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26299 }
26300 {
26301 PyThreadState* __tstate = wxPyBeginAllowThreads();
26302 (arg1)->SetDarkShadow((wxColour const &)*arg2);
26303 wxPyEndAllowThreads(__tstate);
26304 if (PyErr_Occurred()) SWIG_fail;
26305 }
26306 resultobj = SWIG_Py_Void();
26307 return resultobj;
26308 fail:
26309 return NULL;
26310 }
26311
26312
26313 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26314 PyObject *resultobj = 0;
26315 wxEffects *arg1 = (wxEffects *) 0 ;
26316 wxColour *arg2 = 0 ;
26317 wxColour *arg3 = 0 ;
26318 wxColour *arg4 = 0 ;
26319 wxColour *arg5 = 0 ;
26320 wxColour *arg6 = 0 ;
26321 void *argp1 = 0 ;
26322 int res1 = 0 ;
26323 wxColour temp2 ;
26324 wxColour temp3 ;
26325 wxColour temp4 ;
26326 wxColour temp5 ;
26327 wxColour temp6 ;
26328 PyObject * obj0 = 0 ;
26329 PyObject * obj1 = 0 ;
26330 PyObject * obj2 = 0 ;
26331 PyObject * obj3 = 0 ;
26332 PyObject * obj4 = 0 ;
26333 PyObject * obj5 = 0 ;
26334 char * kwnames[] = {
26335 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
26336 };
26337
26338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26340 if (!SWIG_IsOK(res1)) {
26341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
26342 }
26343 arg1 = reinterpret_cast< wxEffects * >(argp1);
26344 {
26345 arg2 = &temp2;
26346 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26347 }
26348 {
26349 arg3 = &temp3;
26350 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26351 }
26352 {
26353 arg4 = &temp4;
26354 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26355 }
26356 {
26357 arg5 = &temp5;
26358 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
26359 }
26360 {
26361 arg6 = &temp6;
26362 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26363 }
26364 {
26365 PyThreadState* __tstate = wxPyBeginAllowThreads();
26366 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
26367 wxPyEndAllowThreads(__tstate);
26368 if (PyErr_Occurred()) SWIG_fail;
26369 }
26370 resultobj = SWIG_Py_Void();
26371 return resultobj;
26372 fail:
26373 return NULL;
26374 }
26375
26376
26377 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26378 PyObject *resultobj = 0;
26379 wxEffects *arg1 = (wxEffects *) 0 ;
26380 wxDC *arg2 = 0 ;
26381 wxRect *arg3 = 0 ;
26382 int arg4 = (int) 1 ;
26383 void *argp1 = 0 ;
26384 int res1 = 0 ;
26385 void *argp2 = 0 ;
26386 int res2 = 0 ;
26387 wxRect temp3 ;
26388 int val4 ;
26389 int ecode4 = 0 ;
26390 PyObject * obj0 = 0 ;
26391 PyObject * obj1 = 0 ;
26392 PyObject * obj2 = 0 ;
26393 PyObject * obj3 = 0 ;
26394 char * kwnames[] = {
26395 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
26396 };
26397
26398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26400 if (!SWIG_IsOK(res1)) {
26401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
26402 }
26403 arg1 = reinterpret_cast< wxEffects * >(argp1);
26404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
26405 if (!SWIG_IsOK(res2)) {
26406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26407 }
26408 if (!argp2) {
26409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26410 }
26411 arg2 = reinterpret_cast< wxDC * >(argp2);
26412 {
26413 arg3 = &temp3;
26414 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26415 }
26416 if (obj3) {
26417 ecode4 = SWIG_AsVal_int(obj3, &val4);
26418 if (!SWIG_IsOK(ecode4)) {
26419 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
26420 }
26421 arg4 = static_cast< int >(val4);
26422 }
26423 {
26424 PyThreadState* __tstate = wxPyBeginAllowThreads();
26425 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
26426 wxPyEndAllowThreads(__tstate);
26427 if (PyErr_Occurred()) SWIG_fail;
26428 }
26429 resultobj = SWIG_Py_Void();
26430 return resultobj;
26431 fail:
26432 return NULL;
26433 }
26434
26435
26436 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26437 PyObject *resultobj = 0;
26438 wxEffects *arg1 = (wxEffects *) 0 ;
26439 wxRect *arg2 = 0 ;
26440 wxDC *arg3 = 0 ;
26441 wxBitmap *arg4 = 0 ;
26442 bool result;
26443 void *argp1 = 0 ;
26444 int res1 = 0 ;
26445 wxRect temp2 ;
26446 void *argp3 = 0 ;
26447 int res3 = 0 ;
26448 void *argp4 = 0 ;
26449 int res4 = 0 ;
26450 PyObject * obj0 = 0 ;
26451 PyObject * obj1 = 0 ;
26452 PyObject * obj2 = 0 ;
26453 PyObject * obj3 = 0 ;
26454 char * kwnames[] = {
26455 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
26456 };
26457
26458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26460 if (!SWIG_IsOK(res1)) {
26461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
26462 }
26463 arg1 = reinterpret_cast< wxEffects * >(argp1);
26464 {
26465 arg2 = &temp2;
26466 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26467 }
26468 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26469 if (!SWIG_IsOK(res3)) {
26470 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26471 }
26472 if (!argp3) {
26473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26474 }
26475 arg3 = reinterpret_cast< wxDC * >(argp3);
26476 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
26477 if (!SWIG_IsOK(res4)) {
26478 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26479 }
26480 if (!argp4) {
26481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26482 }
26483 arg4 = reinterpret_cast< wxBitmap * >(argp4);
26484 {
26485 PyThreadState* __tstate = wxPyBeginAllowThreads();
26486 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
26487 wxPyEndAllowThreads(__tstate);
26488 if (PyErr_Occurred()) SWIG_fail;
26489 }
26490 {
26491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26492 }
26493 return resultobj;
26494 fail:
26495 return NULL;
26496 }
26497
26498
26499 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26500 PyObject *obj;
26501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26502 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
26503 return SWIG_Py_Void();
26504 }
26505
26506 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26507 return SWIG_Python_InitShadowInstance(args);
26508 }
26509
26510 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26511 PyObject *resultobj = 0;
26512 int arg1 ;
26513 int arg2 ;
26514 bool arg3 ;
26515 wxSplitterRenderParams *result = 0 ;
26516 int val1 ;
26517 int ecode1 = 0 ;
26518 int val2 ;
26519 int ecode2 = 0 ;
26520 bool val3 ;
26521 int ecode3 = 0 ;
26522 PyObject * obj0 = 0 ;
26523 PyObject * obj1 = 0 ;
26524 PyObject * obj2 = 0 ;
26525 char * kwnames[] = {
26526 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
26527 };
26528
26529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26530 ecode1 = SWIG_AsVal_int(obj0, &val1);
26531 if (!SWIG_IsOK(ecode1)) {
26532 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
26533 }
26534 arg1 = static_cast< int >(val1);
26535 ecode2 = SWIG_AsVal_int(obj1, &val2);
26536 if (!SWIG_IsOK(ecode2)) {
26537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
26538 }
26539 arg2 = static_cast< int >(val2);
26540 ecode3 = SWIG_AsVal_bool(obj2, &val3);
26541 if (!SWIG_IsOK(ecode3)) {
26542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
26543 }
26544 arg3 = static_cast< bool >(val3);
26545 {
26546 PyThreadState* __tstate = wxPyBeginAllowThreads();
26547 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
26548 wxPyEndAllowThreads(__tstate);
26549 if (PyErr_Occurred()) SWIG_fail;
26550 }
26551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
26552 return resultobj;
26553 fail:
26554 return NULL;
26555 }
26556
26557
26558 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26559 PyObject *resultobj = 0;
26560 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26561 void *argp1 = 0 ;
26562 int res1 = 0 ;
26563 PyObject *swig_obj[1] ;
26564
26565 if (!args) SWIG_fail;
26566 swig_obj[0] = args;
26567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
26568 if (!SWIG_IsOK(res1)) {
26569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26570 }
26571 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26572 {
26573 PyThreadState* __tstate = wxPyBeginAllowThreads();
26574 delete arg1;
26575
26576 wxPyEndAllowThreads(__tstate);
26577 if (PyErr_Occurred()) SWIG_fail;
26578 }
26579 resultobj = SWIG_Py_Void();
26580 return resultobj;
26581 fail:
26582 return NULL;
26583 }
26584
26585
26586 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26587 PyObject *resultobj = 0;
26588 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26589 int result;
26590 void *argp1 = 0 ;
26591 int res1 = 0 ;
26592 PyObject *swig_obj[1] ;
26593
26594 if (!args) SWIG_fail;
26595 swig_obj[0] = args;
26596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26597 if (!SWIG_IsOK(res1)) {
26598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26599 }
26600 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26601 result = (int)(int) ((arg1)->widthSash);
26602 resultobj = SWIG_From_int(static_cast< int >(result));
26603 return resultobj;
26604 fail:
26605 return NULL;
26606 }
26607
26608
26609 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26610 PyObject *resultobj = 0;
26611 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26612 int result;
26613 void *argp1 = 0 ;
26614 int res1 = 0 ;
26615 PyObject *swig_obj[1] ;
26616
26617 if (!args) SWIG_fail;
26618 swig_obj[0] = args;
26619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26620 if (!SWIG_IsOK(res1)) {
26621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26622 }
26623 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26624 result = (int)(int) ((arg1)->border);
26625 resultobj = SWIG_From_int(static_cast< int >(result));
26626 return resultobj;
26627 fail:
26628 return NULL;
26629 }
26630
26631
26632 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26633 PyObject *resultobj = 0;
26634 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26635 bool result;
26636 void *argp1 = 0 ;
26637 int res1 = 0 ;
26638 PyObject *swig_obj[1] ;
26639
26640 if (!args) SWIG_fail;
26641 swig_obj[0] = args;
26642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26643 if (!SWIG_IsOK(res1)) {
26644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26645 }
26646 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26647 result = (bool)(bool) ((arg1)->isHotSensitive);
26648 resultobj = SWIG_From_bool(static_cast< bool >(result));
26649 return resultobj;
26650 fail:
26651 return NULL;
26652 }
26653
26654
26655 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26656 PyObject *obj;
26657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26658 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
26659 return SWIG_Py_Void();
26660 }
26661
26662 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26663 return SWIG_Python_InitShadowInstance(args);
26664 }
26665
26666 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26667 PyObject *resultobj = 0;
26668 wxHeaderButtonParams *result = 0 ;
26669
26670 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
26671 {
26672 PyThreadState* __tstate = wxPyBeginAllowThreads();
26673 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
26674 wxPyEndAllowThreads(__tstate);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26685 PyObject *resultobj = 0;
26686 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26687 void *argp1 = 0 ;
26688 int res1 = 0 ;
26689 PyObject *swig_obj[1] ;
26690
26691 if (!args) SWIG_fail;
26692 swig_obj[0] = args;
26693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
26694 if (!SWIG_IsOK(res1)) {
26695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26696 }
26697 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 delete arg1;
26701
26702 wxPyEndAllowThreads(__tstate);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 resultobj = SWIG_Py_Void();
26706 return resultobj;
26707 fail:
26708 return NULL;
26709 }
26710
26711
26712 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26713 PyObject *resultobj = 0;
26714 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26715 wxColour *arg2 = (wxColour *) 0 ;
26716 void *argp1 = 0 ;
26717 int res1 = 0 ;
26718 wxColour temp2 ;
26719 PyObject *swig_obj[2] ;
26720
26721 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
26722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26723 if (!SWIG_IsOK(res1)) {
26724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26725 }
26726 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26727 {
26728 arg2 = &temp2;
26729 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26730 }
26731 if (arg1) (arg1)->m_arrowColour = *arg2;
26732
26733 resultobj = SWIG_Py_Void();
26734 return resultobj;
26735 fail:
26736 return NULL;
26737 }
26738
26739
26740 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26741 PyObject *resultobj = 0;
26742 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26743 wxColour *result = 0 ;
26744 void *argp1 = 0 ;
26745 int res1 = 0 ;
26746 PyObject *swig_obj[1] ;
26747
26748 if (!args) SWIG_fail;
26749 swig_obj[0] = args;
26750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26751 if (!SWIG_IsOK(res1)) {
26752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26753 }
26754 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26755 result = (wxColour *)& ((arg1)->m_arrowColour);
26756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
26757 return resultobj;
26758 fail:
26759 return NULL;
26760 }
26761
26762
26763 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26764 PyObject *resultobj = 0;
26765 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26766 wxColour *arg2 = (wxColour *) 0 ;
26767 void *argp1 = 0 ;
26768 int res1 = 0 ;
26769 wxColour temp2 ;
26770 PyObject *swig_obj[2] ;
26771
26772 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
26773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26774 if (!SWIG_IsOK(res1)) {
26775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26776 }
26777 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26778 {
26779 arg2 = &temp2;
26780 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26781 }
26782 if (arg1) (arg1)->m_selectionColour = *arg2;
26783
26784 resultobj = SWIG_Py_Void();
26785 return resultobj;
26786 fail:
26787 return NULL;
26788 }
26789
26790
26791 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26792 PyObject *resultobj = 0;
26793 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26794 wxColour *result = 0 ;
26795 void *argp1 = 0 ;
26796 int res1 = 0 ;
26797 PyObject *swig_obj[1] ;
26798
26799 if (!args) SWIG_fail;
26800 swig_obj[0] = args;
26801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26802 if (!SWIG_IsOK(res1)) {
26803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26804 }
26805 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26806 result = (wxColour *)& ((arg1)->m_selectionColour);
26807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
26808 return resultobj;
26809 fail:
26810 return NULL;
26811 }
26812
26813
26814 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26815 PyObject *resultobj = 0;
26816 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26817 wxString *arg2 = (wxString *) 0 ;
26818 void *argp1 = 0 ;
26819 int res1 = 0 ;
26820 bool temp2 = false ;
26821 PyObject *swig_obj[2] ;
26822
26823 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
26824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26825 if (!SWIG_IsOK(res1)) {
26826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26827 }
26828 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26829 {
26830 arg2 = wxString_in_helper(swig_obj[1]);
26831 if (arg2 == NULL) SWIG_fail;
26832 temp2 = true;
26833 }
26834 if (arg1) (arg1)->m_labelText = *arg2;
26835
26836 resultobj = SWIG_Py_Void();
26837 {
26838 if (temp2)
26839 delete arg2;
26840 }
26841 return resultobj;
26842 fail:
26843 {
26844 if (temp2)
26845 delete arg2;
26846 }
26847 return NULL;
26848 }
26849
26850
26851 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26852 PyObject *resultobj = 0;
26853 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26854 wxString *result = 0 ;
26855 void *argp1 = 0 ;
26856 int res1 = 0 ;
26857 PyObject *swig_obj[1] ;
26858
26859 if (!args) SWIG_fail;
26860 swig_obj[0] = args;
26861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26862 if (!SWIG_IsOK(res1)) {
26863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26864 }
26865 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26866 result = (wxString *)& ((arg1)->m_labelText);
26867 {
26868 #if wxUSE_UNICODE
26869 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26870 #else
26871 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26872 #endif
26873 }
26874 return resultobj;
26875 fail:
26876 return NULL;
26877 }
26878
26879
26880 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26881 PyObject *resultobj = 0;
26882 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26883 wxFont *arg2 = (wxFont *) 0 ;
26884 void *argp1 = 0 ;
26885 int res1 = 0 ;
26886 void *argp2 = 0 ;
26887 int res2 = 0 ;
26888 PyObject *swig_obj[2] ;
26889
26890 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
26891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26892 if (!SWIG_IsOK(res1)) {
26893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26894 }
26895 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26896 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26897 if (!SWIG_IsOK(res2)) {
26898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
26899 }
26900 arg2 = reinterpret_cast< wxFont * >(argp2);
26901 if (arg1) (arg1)->m_labelFont = *arg2;
26902
26903 resultobj = SWIG_Py_Void();
26904 return resultobj;
26905 fail:
26906 return NULL;
26907 }
26908
26909
26910 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26911 PyObject *resultobj = 0;
26912 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26913 wxFont *result = 0 ;
26914 void *argp1 = 0 ;
26915 int res1 = 0 ;
26916 PyObject *swig_obj[1] ;
26917
26918 if (!args) SWIG_fail;
26919 swig_obj[0] = args;
26920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26921 if (!SWIG_IsOK(res1)) {
26922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26923 }
26924 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26925 result = (wxFont *)& ((arg1)->m_labelFont);
26926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26934 PyObject *resultobj = 0;
26935 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26936 wxColour *arg2 = (wxColour *) 0 ;
26937 void *argp1 = 0 ;
26938 int res1 = 0 ;
26939 wxColour temp2 ;
26940 PyObject *swig_obj[2] ;
26941
26942 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
26943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26944 if (!SWIG_IsOK(res1)) {
26945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26946 }
26947 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26948 {
26949 arg2 = &temp2;
26950 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26951 }
26952 if (arg1) (arg1)->m_labelColour = *arg2;
26953
26954 resultobj = SWIG_Py_Void();
26955 return resultobj;
26956 fail:
26957 return NULL;
26958 }
26959
26960
26961 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26962 PyObject *resultobj = 0;
26963 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26964 wxColour *result = 0 ;
26965 void *argp1 = 0 ;
26966 int res1 = 0 ;
26967 PyObject *swig_obj[1] ;
26968
26969 if (!args) SWIG_fail;
26970 swig_obj[0] = args;
26971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26972 if (!SWIG_IsOK(res1)) {
26973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26974 }
26975 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26976 result = (wxColour *)& ((arg1)->m_labelColour);
26977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
26978 return resultobj;
26979 fail:
26980 return NULL;
26981 }
26982
26983
26984 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26985 PyObject *resultobj = 0;
26986 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26987 wxBitmap *arg2 = (wxBitmap *) 0 ;
26988 void *argp1 = 0 ;
26989 int res1 = 0 ;
26990 void *argp2 = 0 ;
26991 int res2 = 0 ;
26992 PyObject *swig_obj[2] ;
26993
26994 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
26995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26996 if (!SWIG_IsOK(res1)) {
26997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26998 }
26999 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27000 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
27001 if (!SWIG_IsOK(res2)) {
27002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
27003 }
27004 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27005 if (arg1) (arg1)->m_labelBitmap = *arg2;
27006
27007 resultobj = SWIG_Py_Void();
27008 return resultobj;
27009 fail:
27010 return NULL;
27011 }
27012
27013
27014 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27015 PyObject *resultobj = 0;
27016 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27017 wxBitmap *result = 0 ;
27018 void *argp1 = 0 ;
27019 int res1 = 0 ;
27020 PyObject *swig_obj[1] ;
27021
27022 if (!args) SWIG_fail;
27023 swig_obj[0] = args;
27024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27025 if (!SWIG_IsOK(res1)) {
27026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27027 }
27028 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27029 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
27030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
27031 return resultobj;
27032 fail:
27033 return NULL;
27034 }
27035
27036
27037 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27038 PyObject *resultobj = 0;
27039 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27040 int arg2 ;
27041 void *argp1 = 0 ;
27042 int res1 = 0 ;
27043 int val2 ;
27044 int ecode2 = 0 ;
27045 PyObject *swig_obj[2] ;
27046
27047 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
27048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27049 if (!SWIG_IsOK(res1)) {
27050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27051 }
27052 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27053 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27054 if (!SWIG_IsOK(ecode2)) {
27055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
27056 }
27057 arg2 = static_cast< int >(val2);
27058 if (arg1) (arg1)->m_labelAlignment = arg2;
27059
27060 resultobj = SWIG_Py_Void();
27061 return resultobj;
27062 fail:
27063 return NULL;
27064 }
27065
27066
27067 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27068 PyObject *resultobj = 0;
27069 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27070 int result;
27071 void *argp1 = 0 ;
27072 int res1 = 0 ;
27073 PyObject *swig_obj[1] ;
27074
27075 if (!args) SWIG_fail;
27076 swig_obj[0] = args;
27077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27078 if (!SWIG_IsOK(res1)) {
27079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27080 }
27081 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27082 result = (int) ((arg1)->m_labelAlignment);
27083 resultobj = SWIG_From_int(static_cast< int >(result));
27084 return resultobj;
27085 fail:
27086 return NULL;
27087 }
27088
27089
27090 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27091 PyObject *obj;
27092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27093 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
27094 return SWIG_Py_Void();
27095 }
27096
27097 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27098 return SWIG_Python_InitShadowInstance(args);
27099 }
27100
27101 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27102 PyObject *resultobj = 0;
27103 int arg1 ;
27104 int arg2 ;
27105 wxRendererVersion *result = 0 ;
27106 int val1 ;
27107 int ecode1 = 0 ;
27108 int val2 ;
27109 int ecode2 = 0 ;
27110 PyObject * obj0 = 0 ;
27111 PyObject * obj1 = 0 ;
27112 char * kwnames[] = {
27113 (char *) "version_",(char *) "age_", NULL
27114 };
27115
27116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
27117 ecode1 = SWIG_AsVal_int(obj0, &val1);
27118 if (!SWIG_IsOK(ecode1)) {
27119 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
27120 }
27121 arg1 = static_cast< int >(val1);
27122 ecode2 = SWIG_AsVal_int(obj1, &val2);
27123 if (!SWIG_IsOK(ecode2)) {
27124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
27125 }
27126 arg2 = static_cast< int >(val2);
27127 {
27128 PyThreadState* __tstate = wxPyBeginAllowThreads();
27129 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
27130 wxPyEndAllowThreads(__tstate);
27131 if (PyErr_Occurred()) SWIG_fail;
27132 }
27133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
27134 return resultobj;
27135 fail:
27136 return NULL;
27137 }
27138
27139
27140 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27141 PyObject *resultobj = 0;
27142 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27143 void *argp1 = 0 ;
27144 int res1 = 0 ;
27145 PyObject *swig_obj[1] ;
27146
27147 if (!args) SWIG_fail;
27148 swig_obj[0] = args;
27149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
27150 if (!SWIG_IsOK(res1)) {
27151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27152 }
27153 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27154 {
27155 PyThreadState* __tstate = wxPyBeginAllowThreads();
27156 delete arg1;
27157
27158 wxPyEndAllowThreads(__tstate);
27159 if (PyErr_Occurred()) SWIG_fail;
27160 }
27161 resultobj = SWIG_Py_Void();
27162 return resultobj;
27163 fail:
27164 return NULL;
27165 }
27166
27167
27168 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27169 PyObject *resultobj = 0;
27170 wxRendererVersion *arg1 = 0 ;
27171 bool result;
27172 void *argp1 = 0 ;
27173 int res1 = 0 ;
27174 PyObject * obj0 = 0 ;
27175 char * kwnames[] = {
27176 (char *) "ver", NULL
27177 };
27178
27179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
27180 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
27181 if (!SWIG_IsOK(res1)) {
27182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27183 }
27184 if (!argp1) {
27185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27186 }
27187 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27188 {
27189 PyThreadState* __tstate = wxPyBeginAllowThreads();
27190 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
27191 wxPyEndAllowThreads(__tstate);
27192 if (PyErr_Occurred()) SWIG_fail;
27193 }
27194 {
27195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27196 }
27197 return resultobj;
27198 fail:
27199 return NULL;
27200 }
27201
27202
27203 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27204 PyObject *resultobj = 0;
27205 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27206 int result;
27207 void *argp1 = 0 ;
27208 int res1 = 0 ;
27209 PyObject *swig_obj[1] ;
27210
27211 if (!args) SWIG_fail;
27212 swig_obj[0] = args;
27213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27214 if (!SWIG_IsOK(res1)) {
27215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27216 }
27217 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27218 result = (int)(int) ((arg1)->version);
27219 resultobj = SWIG_From_int(static_cast< int >(result));
27220 return resultobj;
27221 fail:
27222 return NULL;
27223 }
27224
27225
27226 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27227 PyObject *resultobj = 0;
27228 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27229 int result;
27230 void *argp1 = 0 ;
27231 int res1 = 0 ;
27232 PyObject *swig_obj[1] ;
27233
27234 if (!args) SWIG_fail;
27235 swig_obj[0] = args;
27236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27237 if (!SWIG_IsOK(res1)) {
27238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27239 }
27240 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27241 result = (int)(int) ((arg1)->age);
27242 resultobj = SWIG_From_int(static_cast< int >(result));
27243 return resultobj;
27244 fail:
27245 return NULL;
27246 }
27247
27248
27249 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27250 PyObject *obj;
27251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27252 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
27253 return SWIG_Py_Void();
27254 }
27255
27256 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27257 return SWIG_Python_InitShadowInstance(args);
27258 }
27259
27260 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27261 PyObject *resultobj = 0;
27262 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27263 wxWindow *arg2 = (wxWindow *) 0 ;
27264 wxDC *arg3 = 0 ;
27265 wxRect *arg4 = 0 ;
27266 int arg5 = (int) 0 ;
27267 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
27268 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
27269 void *argp1 = 0 ;
27270 int res1 = 0 ;
27271 void *argp2 = 0 ;
27272 int res2 = 0 ;
27273 void *argp3 = 0 ;
27274 int res3 = 0 ;
27275 wxRect temp4 ;
27276 int val5 ;
27277 int ecode5 = 0 ;
27278 int val6 ;
27279 int ecode6 = 0 ;
27280 void *argp7 = 0 ;
27281 int res7 = 0 ;
27282 PyObject * obj0 = 0 ;
27283 PyObject * obj1 = 0 ;
27284 PyObject * obj2 = 0 ;
27285 PyObject * obj3 = 0 ;
27286 PyObject * obj4 = 0 ;
27287 PyObject * obj5 = 0 ;
27288 PyObject * obj6 = 0 ;
27289 char * kwnames[] = {
27290 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
27291 };
27292
27293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27295 if (!SWIG_IsOK(res1)) {
27296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27297 }
27298 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27299 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27300 if (!SWIG_IsOK(res2)) {
27301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27302 }
27303 arg2 = reinterpret_cast< wxWindow * >(argp2);
27304 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27305 if (!SWIG_IsOK(res3)) {
27306 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27307 }
27308 if (!argp3) {
27309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27310 }
27311 arg3 = reinterpret_cast< wxDC * >(argp3);
27312 {
27313 arg4 = &temp4;
27314 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27315 }
27316 if (obj4) {
27317 ecode5 = SWIG_AsVal_int(obj4, &val5);
27318 if (!SWIG_IsOK(ecode5)) {
27319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
27320 }
27321 arg5 = static_cast< int >(val5);
27322 }
27323 if (obj5) {
27324 ecode6 = SWIG_AsVal_int(obj5, &val6);
27325 if (!SWIG_IsOK(ecode6)) {
27326 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
27327 }
27328 arg6 = static_cast< wxHeaderSortIconType >(val6);
27329 }
27330 if (obj6) {
27331 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27332 if (!SWIG_IsOK(res7)) {
27333 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
27334 }
27335 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
27336 }
27337 {
27338 PyThreadState* __tstate = wxPyBeginAllowThreads();
27339 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
27340 wxPyEndAllowThreads(__tstate);
27341 if (PyErr_Occurred()) SWIG_fail;
27342 }
27343 resultobj = SWIG_Py_Void();
27344 return resultobj;
27345 fail:
27346 return NULL;
27347 }
27348
27349
27350 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27351 PyObject *resultobj = 0;
27352 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27353 wxWindow *arg2 = (wxWindow *) 0 ;
27354 wxDC *arg3 = 0 ;
27355 wxRect *arg4 = 0 ;
27356 int arg5 = (int) 0 ;
27357 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
27358 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
27359 void *argp1 = 0 ;
27360 int res1 = 0 ;
27361 void *argp2 = 0 ;
27362 int res2 = 0 ;
27363 void *argp3 = 0 ;
27364 int res3 = 0 ;
27365 wxRect temp4 ;
27366 int val5 ;
27367 int ecode5 = 0 ;
27368 int val6 ;
27369 int ecode6 = 0 ;
27370 void *argp7 = 0 ;
27371 int res7 = 0 ;
27372 PyObject * obj0 = 0 ;
27373 PyObject * obj1 = 0 ;
27374 PyObject * obj2 = 0 ;
27375 PyObject * obj3 = 0 ;
27376 PyObject * obj4 = 0 ;
27377 PyObject * obj5 = 0 ;
27378 PyObject * obj6 = 0 ;
27379 char * kwnames[] = {
27380 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
27381 };
27382
27383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27385 if (!SWIG_IsOK(res1)) {
27386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27387 }
27388 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27389 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27390 if (!SWIG_IsOK(res2)) {
27391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
27392 }
27393 arg2 = reinterpret_cast< wxWindow * >(argp2);
27394 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27395 if (!SWIG_IsOK(res3)) {
27396 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
27397 }
27398 if (!argp3) {
27399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
27400 }
27401 arg3 = reinterpret_cast< wxDC * >(argp3);
27402 {
27403 arg4 = &temp4;
27404 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27405 }
27406 if (obj4) {
27407 ecode5 = SWIG_AsVal_int(obj4, &val5);
27408 if (!SWIG_IsOK(ecode5)) {
27409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
27410 }
27411 arg5 = static_cast< int >(val5);
27412 }
27413 if (obj5) {
27414 ecode6 = SWIG_AsVal_int(obj5, &val6);
27415 if (!SWIG_IsOK(ecode6)) {
27416 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
27417 }
27418 arg6 = static_cast< wxHeaderSortIconType >(val6);
27419 }
27420 if (obj6) {
27421 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27422 if (!SWIG_IsOK(res7)) {
27423 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
27424 }
27425 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
27426 }
27427 {
27428 PyThreadState* __tstate = wxPyBeginAllowThreads();
27429 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
27430 wxPyEndAllowThreads(__tstate);
27431 if (PyErr_Occurred()) SWIG_fail;
27432 }
27433 resultobj = SWIG_Py_Void();
27434 return resultobj;
27435 fail:
27436 return NULL;
27437 }
27438
27439
27440 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27441 PyObject *resultobj = 0;
27442 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27443 wxWindow *arg2 = (wxWindow *) 0 ;
27444 int result;
27445 void *argp1 = 0 ;
27446 int res1 = 0 ;
27447 void *argp2 = 0 ;
27448 int res2 = 0 ;
27449 PyObject * obj0 = 0 ;
27450 PyObject * obj1 = 0 ;
27451 char * kwnames[] = {
27452 (char *) "self",(char *) "win", NULL
27453 };
27454
27455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
27456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27457 if (!SWIG_IsOK(res1)) {
27458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27459 }
27460 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27461 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27462 if (!SWIG_IsOK(res2)) {
27463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
27464 }
27465 arg2 = reinterpret_cast< wxWindow * >(argp2);
27466 {
27467 PyThreadState* __tstate = wxPyBeginAllowThreads();
27468 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
27469 wxPyEndAllowThreads(__tstate);
27470 if (PyErr_Occurred()) SWIG_fail;
27471 }
27472 resultobj = SWIG_From_int(static_cast< int >(result));
27473 return resultobj;
27474 fail:
27475 return NULL;
27476 }
27477
27478
27479 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27480 PyObject *resultobj = 0;
27481 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27482 wxWindow *arg2 = (wxWindow *) 0 ;
27483 wxDC *arg3 = 0 ;
27484 wxRect *arg4 = 0 ;
27485 int arg5 = (int) 0 ;
27486 void *argp1 = 0 ;
27487 int res1 = 0 ;
27488 void *argp2 = 0 ;
27489 int res2 = 0 ;
27490 void *argp3 = 0 ;
27491 int res3 = 0 ;
27492 wxRect temp4 ;
27493 int val5 ;
27494 int ecode5 = 0 ;
27495 PyObject * obj0 = 0 ;
27496 PyObject * obj1 = 0 ;
27497 PyObject * obj2 = 0 ;
27498 PyObject * obj3 = 0 ;
27499 PyObject * obj4 = 0 ;
27500 char * kwnames[] = {
27501 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27502 };
27503
27504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27506 if (!SWIG_IsOK(res1)) {
27507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27508 }
27509 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27511 if (!SWIG_IsOK(res2)) {
27512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27513 }
27514 arg2 = reinterpret_cast< wxWindow * >(argp2);
27515 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27516 if (!SWIG_IsOK(res3)) {
27517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27518 }
27519 if (!argp3) {
27520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27521 }
27522 arg3 = reinterpret_cast< wxDC * >(argp3);
27523 {
27524 arg4 = &temp4;
27525 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27526 }
27527 if (obj4) {
27528 ecode5 = SWIG_AsVal_int(obj4, &val5);
27529 if (!SWIG_IsOK(ecode5)) {
27530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
27531 }
27532 arg5 = static_cast< int >(val5);
27533 }
27534 {
27535 PyThreadState* __tstate = wxPyBeginAllowThreads();
27536 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27537 wxPyEndAllowThreads(__tstate);
27538 if (PyErr_Occurred()) SWIG_fail;
27539 }
27540 resultobj = SWIG_Py_Void();
27541 return resultobj;
27542 fail:
27543 return NULL;
27544 }
27545
27546
27547 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27548 PyObject *resultobj = 0;
27549 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27550 wxWindow *arg2 = (wxWindow *) 0 ;
27551 wxDC *arg3 = 0 ;
27552 wxRect *arg4 = 0 ;
27553 int arg5 = (int) 0 ;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556 void *argp2 = 0 ;
27557 int res2 = 0 ;
27558 void *argp3 = 0 ;
27559 int res3 = 0 ;
27560 wxRect temp4 ;
27561 int val5 ;
27562 int ecode5 = 0 ;
27563 PyObject * obj0 = 0 ;
27564 PyObject * obj1 = 0 ;
27565 PyObject * obj2 = 0 ;
27566 PyObject * obj3 = 0 ;
27567 PyObject * obj4 = 0 ;
27568 char * kwnames[] = {
27569 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27570 };
27571
27572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27574 if (!SWIG_IsOK(res1)) {
27575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27576 }
27577 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27579 if (!SWIG_IsOK(res2)) {
27580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
27581 }
27582 arg2 = reinterpret_cast< wxWindow * >(argp2);
27583 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27584 if (!SWIG_IsOK(res3)) {
27585 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27586 }
27587 if (!argp3) {
27588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27589 }
27590 arg3 = reinterpret_cast< wxDC * >(argp3);
27591 {
27592 arg4 = &temp4;
27593 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27594 }
27595 if (obj4) {
27596 ecode5 = SWIG_AsVal_int(obj4, &val5);
27597 if (!SWIG_IsOK(ecode5)) {
27598 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
27599 }
27600 arg5 = static_cast< int >(val5);
27601 }
27602 {
27603 PyThreadState* __tstate = wxPyBeginAllowThreads();
27604 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
27605 wxPyEndAllowThreads(__tstate);
27606 if (PyErr_Occurred()) SWIG_fail;
27607 }
27608 resultobj = SWIG_Py_Void();
27609 return resultobj;
27610 fail:
27611 return NULL;
27612 }
27613
27614
27615 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27616 PyObject *resultobj = 0;
27617 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27618 wxWindow *arg2 = (wxWindow *) 0 ;
27619 wxDC *arg3 = 0 ;
27620 wxSize *arg4 = 0 ;
27621 int arg5 ;
27622 wxOrientation arg6 ;
27623 int arg7 = (int) 0 ;
27624 void *argp1 = 0 ;
27625 int res1 = 0 ;
27626 void *argp2 = 0 ;
27627 int res2 = 0 ;
27628 void *argp3 = 0 ;
27629 int res3 = 0 ;
27630 wxSize temp4 ;
27631 int val5 ;
27632 int ecode5 = 0 ;
27633 int val6 ;
27634 int ecode6 = 0 ;
27635 int val7 ;
27636 int ecode7 = 0 ;
27637 PyObject * obj0 = 0 ;
27638 PyObject * obj1 = 0 ;
27639 PyObject * obj2 = 0 ;
27640 PyObject * obj3 = 0 ;
27641 PyObject * obj4 = 0 ;
27642 PyObject * obj5 = 0 ;
27643 PyObject * obj6 = 0 ;
27644 char * kwnames[] = {
27645 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
27646 };
27647
27648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27650 if (!SWIG_IsOK(res1)) {
27651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27652 }
27653 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27654 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27655 if (!SWIG_IsOK(res2)) {
27656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
27657 }
27658 arg2 = reinterpret_cast< wxWindow * >(argp2);
27659 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27660 if (!SWIG_IsOK(res3)) {
27661 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27662 }
27663 if (!argp3) {
27664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27665 }
27666 arg3 = reinterpret_cast< wxDC * >(argp3);
27667 {
27668 arg4 = &temp4;
27669 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27670 }
27671 ecode5 = SWIG_AsVal_int(obj4, &val5);
27672 if (!SWIG_IsOK(ecode5)) {
27673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
27674 }
27675 arg5 = static_cast< int >(val5);
27676 ecode6 = SWIG_AsVal_int(obj5, &val6);
27677 if (!SWIG_IsOK(ecode6)) {
27678 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
27679 }
27680 arg6 = static_cast< wxOrientation >(val6);
27681 if (obj6) {
27682 ecode7 = SWIG_AsVal_int(obj6, &val7);
27683 if (!SWIG_IsOK(ecode7)) {
27684 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
27685 }
27686 arg7 = static_cast< int >(val7);
27687 }
27688 {
27689 PyThreadState* __tstate = wxPyBeginAllowThreads();
27690 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
27691 wxPyEndAllowThreads(__tstate);
27692 if (PyErr_Occurred()) SWIG_fail;
27693 }
27694 resultobj = SWIG_Py_Void();
27695 return resultobj;
27696 fail:
27697 return NULL;
27698 }
27699
27700
27701 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27702 PyObject *resultobj = 0;
27703 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27704 wxWindow *arg2 = (wxWindow *) 0 ;
27705 wxDC *arg3 = 0 ;
27706 wxRect *arg4 = 0 ;
27707 int arg5 = (int) 0 ;
27708 void *argp1 = 0 ;
27709 int res1 = 0 ;
27710 void *argp2 = 0 ;
27711 int res2 = 0 ;
27712 void *argp3 = 0 ;
27713 int res3 = 0 ;
27714 wxRect temp4 ;
27715 int val5 ;
27716 int ecode5 = 0 ;
27717 PyObject * obj0 = 0 ;
27718 PyObject * obj1 = 0 ;
27719 PyObject * obj2 = 0 ;
27720 PyObject * obj3 = 0 ;
27721 PyObject * obj4 = 0 ;
27722 char * kwnames[] = {
27723 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27724 };
27725
27726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27728 if (!SWIG_IsOK(res1)) {
27729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27730 }
27731 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27732 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27733 if (!SWIG_IsOK(res2)) {
27734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27735 }
27736 arg2 = reinterpret_cast< wxWindow * >(argp2);
27737 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27738 if (!SWIG_IsOK(res3)) {
27739 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27740 }
27741 if (!argp3) {
27742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27743 }
27744 arg3 = reinterpret_cast< wxDC * >(argp3);
27745 {
27746 arg4 = &temp4;
27747 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27748 }
27749 if (obj4) {
27750 ecode5 = SWIG_AsVal_int(obj4, &val5);
27751 if (!SWIG_IsOK(ecode5)) {
27752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
27753 }
27754 arg5 = static_cast< int >(val5);
27755 }
27756 {
27757 PyThreadState* __tstate = wxPyBeginAllowThreads();
27758 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27759 wxPyEndAllowThreads(__tstate);
27760 if (PyErr_Occurred()) SWIG_fail;
27761 }
27762 resultobj = SWIG_Py_Void();
27763 return resultobj;
27764 fail:
27765 return NULL;
27766 }
27767
27768
27769 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27770 PyObject *resultobj = 0;
27771 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27772 wxWindow *arg2 = (wxWindow *) 0 ;
27773 wxDC *arg3 = 0 ;
27774 wxRect *arg4 = 0 ;
27775 int arg5 = (int) 0 ;
27776 void *argp1 = 0 ;
27777 int res1 = 0 ;
27778 void *argp2 = 0 ;
27779 int res2 = 0 ;
27780 void *argp3 = 0 ;
27781 int res3 = 0 ;
27782 wxRect temp4 ;
27783 int val5 ;
27784 int ecode5 = 0 ;
27785 PyObject * obj0 = 0 ;
27786 PyObject * obj1 = 0 ;
27787 PyObject * obj2 = 0 ;
27788 PyObject * obj3 = 0 ;
27789 PyObject * obj4 = 0 ;
27790 char * kwnames[] = {
27791 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27792 };
27793
27794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27796 if (!SWIG_IsOK(res1)) {
27797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27798 }
27799 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27800 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27801 if (!SWIG_IsOK(res2)) {
27802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
27803 }
27804 arg2 = reinterpret_cast< wxWindow * >(argp2);
27805 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27806 if (!SWIG_IsOK(res3)) {
27807 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27808 }
27809 if (!argp3) {
27810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27811 }
27812 arg3 = reinterpret_cast< wxDC * >(argp3);
27813 {
27814 arg4 = &temp4;
27815 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27816 }
27817 if (obj4) {
27818 ecode5 = SWIG_AsVal_int(obj4, &val5);
27819 if (!SWIG_IsOK(ecode5)) {
27820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
27821 }
27822 arg5 = static_cast< int >(val5);
27823 }
27824 {
27825 PyThreadState* __tstate = wxPyBeginAllowThreads();
27826 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
27827 wxPyEndAllowThreads(__tstate);
27828 if (PyErr_Occurred()) SWIG_fail;
27829 }
27830 resultobj = SWIG_Py_Void();
27831 return resultobj;
27832 fail:
27833 return NULL;
27834 }
27835
27836
27837 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27838 PyObject *resultobj = 0;
27839 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27840 wxWindow *arg2 = (wxWindow *) 0 ;
27841 wxDC *arg3 = 0 ;
27842 wxRect *arg4 = 0 ;
27843 int arg5 = (int) 0 ;
27844 void *argp1 = 0 ;
27845 int res1 = 0 ;
27846 void *argp2 = 0 ;
27847 int res2 = 0 ;
27848 void *argp3 = 0 ;
27849 int res3 = 0 ;
27850 wxRect temp4 ;
27851 int val5 ;
27852 int ecode5 = 0 ;
27853 PyObject * obj0 = 0 ;
27854 PyObject * obj1 = 0 ;
27855 PyObject * obj2 = 0 ;
27856 PyObject * obj3 = 0 ;
27857 PyObject * obj4 = 0 ;
27858 char * kwnames[] = {
27859 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27860 };
27861
27862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27864 if (!SWIG_IsOK(res1)) {
27865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27866 }
27867 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27868 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27869 if (!SWIG_IsOK(res2)) {
27870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
27871 }
27872 arg2 = reinterpret_cast< wxWindow * >(argp2);
27873 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27874 if (!SWIG_IsOK(res3)) {
27875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27876 }
27877 if (!argp3) {
27878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27879 }
27880 arg3 = reinterpret_cast< wxDC * >(argp3);
27881 {
27882 arg4 = &temp4;
27883 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27884 }
27885 if (obj4) {
27886 ecode5 = SWIG_AsVal_int(obj4, &val5);
27887 if (!SWIG_IsOK(ecode5)) {
27888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
27889 }
27890 arg5 = static_cast< int >(val5);
27891 }
27892 {
27893 PyThreadState* __tstate = wxPyBeginAllowThreads();
27894 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
27895 wxPyEndAllowThreads(__tstate);
27896 if (PyErr_Occurred()) SWIG_fail;
27897 }
27898 resultobj = SWIG_Py_Void();
27899 return resultobj;
27900 fail:
27901 return NULL;
27902 }
27903
27904
27905 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27906 PyObject *resultobj = 0;
27907 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27908 wxWindow *arg2 = (wxWindow *) 0 ;
27909 wxDC *arg3 = 0 ;
27910 wxRect *arg4 = 0 ;
27911 int arg5 = (int) 0 ;
27912 void *argp1 = 0 ;
27913 int res1 = 0 ;
27914 void *argp2 = 0 ;
27915 int res2 = 0 ;
27916 void *argp3 = 0 ;
27917 int res3 = 0 ;
27918 wxRect temp4 ;
27919 int val5 ;
27920 int ecode5 = 0 ;
27921 PyObject * obj0 = 0 ;
27922 PyObject * obj1 = 0 ;
27923 PyObject * obj2 = 0 ;
27924 PyObject * obj3 = 0 ;
27925 PyObject * obj4 = 0 ;
27926 char * kwnames[] = {
27927 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27928 };
27929
27930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27932 if (!SWIG_IsOK(res1)) {
27933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27934 }
27935 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27937 if (!SWIG_IsOK(res2)) {
27938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27939 }
27940 arg2 = reinterpret_cast< wxWindow * >(argp2);
27941 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27942 if (!SWIG_IsOK(res3)) {
27943 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27944 }
27945 if (!argp3) {
27946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27947 }
27948 arg3 = reinterpret_cast< wxDC * >(argp3);
27949 {
27950 arg4 = &temp4;
27951 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27952 }
27953 if (obj4) {
27954 ecode5 = SWIG_AsVal_int(obj4, &val5);
27955 if (!SWIG_IsOK(ecode5)) {
27956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
27957 }
27958 arg5 = static_cast< int >(val5);
27959 }
27960 {
27961 PyThreadState* __tstate = wxPyBeginAllowThreads();
27962 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27963 wxPyEndAllowThreads(__tstate);
27964 if (PyErr_Occurred()) SWIG_fail;
27965 }
27966 resultobj = SWIG_Py_Void();
27967 return resultobj;
27968 fail:
27969 return NULL;
27970 }
27971
27972
27973 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27974 PyObject *resultobj = 0;
27975 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27976 wxWindow *arg2 = (wxWindow *) 0 ;
27977 wxDC *arg3 = 0 ;
27978 wxRect *arg4 = 0 ;
27979 int arg5 = (int) 0 ;
27980 void *argp1 = 0 ;
27981 int res1 = 0 ;
27982 void *argp2 = 0 ;
27983 int res2 = 0 ;
27984 void *argp3 = 0 ;
27985 int res3 = 0 ;
27986 wxRect temp4 ;
27987 int val5 ;
27988 int ecode5 = 0 ;
27989 PyObject * obj0 = 0 ;
27990 PyObject * obj1 = 0 ;
27991 PyObject * obj2 = 0 ;
27992 PyObject * obj3 = 0 ;
27993 PyObject * obj4 = 0 ;
27994 char * kwnames[] = {
27995 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27996 };
27997
27998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28000 if (!SWIG_IsOK(res1)) {
28001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28002 }
28003 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28004 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28005 if (!SWIG_IsOK(res2)) {
28006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
28007 }
28008 arg2 = reinterpret_cast< wxWindow * >(argp2);
28009 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28010 if (!SWIG_IsOK(res3)) {
28011 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28012 }
28013 if (!argp3) {
28014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28015 }
28016 arg3 = reinterpret_cast< wxDC * >(argp3);
28017 {
28018 arg4 = &temp4;
28019 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28020 }
28021 if (obj4) {
28022 ecode5 = SWIG_AsVal_int(obj4, &val5);
28023 if (!SWIG_IsOK(ecode5)) {
28024 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
28025 }
28026 arg5 = static_cast< int >(val5);
28027 }
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
28031 wxPyEndAllowThreads(__tstate);
28032 if (PyErr_Occurred()) SWIG_fail;
28033 }
28034 resultobj = SWIG_Py_Void();
28035 return resultobj;
28036 fail:
28037 return NULL;
28038 }
28039
28040
28041 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28042 PyObject *resultobj = 0;
28043 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28044 wxWindow *arg2 = (wxWindow *) 0 ;
28045 SwigValueWrapper<wxSplitterRenderParams > result;
28046 void *argp1 = 0 ;
28047 int res1 = 0 ;
28048 void *argp2 = 0 ;
28049 int res2 = 0 ;
28050 PyObject * obj0 = 0 ;
28051 PyObject * obj1 = 0 ;
28052 char * kwnames[] = {
28053 (char *) "self",(char *) "win", NULL
28054 };
28055
28056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
28057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28058 if (!SWIG_IsOK(res1)) {
28059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28060 }
28061 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28062 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28063 if (!SWIG_IsOK(res2)) {
28064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
28065 }
28066 arg2 = reinterpret_cast< wxWindow * >(argp2);
28067 {
28068 PyThreadState* __tstate = wxPyBeginAllowThreads();
28069 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
28070 wxPyEndAllowThreads(__tstate);
28071 if (PyErr_Occurred()) SWIG_fail;
28072 }
28073 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
28074 return resultobj;
28075 fail:
28076 return NULL;
28077 }
28078
28079
28080 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28081 PyObject *resultobj = 0;
28082 wxRendererNative *result = 0 ;
28083
28084 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
28085 {
28086 if (!wxPyCheckForApp()) SWIG_fail;
28087 PyThreadState* __tstate = wxPyBeginAllowThreads();
28088 {
28089 wxRendererNative &_result_ref = wxRendererNative::Get();
28090 result = (wxRendererNative *) &_result_ref;
28091 }
28092 wxPyEndAllowThreads(__tstate);
28093 if (PyErr_Occurred()) SWIG_fail;
28094 }
28095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28096 return resultobj;
28097 fail:
28098 return NULL;
28099 }
28100
28101
28102 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28103 PyObject *resultobj = 0;
28104 wxRendererNative *result = 0 ;
28105
28106 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
28107 {
28108 if (!wxPyCheckForApp()) SWIG_fail;
28109 PyThreadState* __tstate = wxPyBeginAllowThreads();
28110 {
28111 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
28112 result = (wxRendererNative *) &_result_ref;
28113 }
28114 wxPyEndAllowThreads(__tstate);
28115 if (PyErr_Occurred()) SWIG_fail;
28116 }
28117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28118 return resultobj;
28119 fail:
28120 return NULL;
28121 }
28122
28123
28124 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28125 PyObject *resultobj = 0;
28126 wxRendererNative *result = 0 ;
28127
28128 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
28129 {
28130 if (!wxPyCheckForApp()) SWIG_fail;
28131 PyThreadState* __tstate = wxPyBeginAllowThreads();
28132 {
28133 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
28134 result = (wxRendererNative *) &_result_ref;
28135 }
28136 wxPyEndAllowThreads(__tstate);
28137 if (PyErr_Occurred()) SWIG_fail;
28138 }
28139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28140 return resultobj;
28141 fail:
28142 return NULL;
28143 }
28144
28145
28146 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28147 PyObject *resultobj = 0;
28148 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28149 wxRendererNative *result = 0 ;
28150 void *argp1 = 0 ;
28151 int res1 = 0 ;
28152 PyObject * obj0 = 0 ;
28153 char * kwnames[] = {
28154 (char *) "renderer", NULL
28155 };
28156
28157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
28158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28159 if (!SWIG_IsOK(res1)) {
28160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28161 }
28162 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28163 {
28164 if (!wxPyCheckForApp()) SWIG_fail;
28165 PyThreadState* __tstate = wxPyBeginAllowThreads();
28166 result = (wxRendererNative *)wxRendererNative::Set(arg1);
28167 wxPyEndAllowThreads(__tstate);
28168 if (PyErr_Occurred()) SWIG_fail;
28169 }
28170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28171 return resultobj;
28172 fail:
28173 return NULL;
28174 }
28175
28176
28177 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28178 PyObject *resultobj = 0;
28179 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28180 SwigValueWrapper<wxRendererVersion > result;
28181 void *argp1 = 0 ;
28182 int res1 = 0 ;
28183 PyObject *swig_obj[1] ;
28184
28185 if (!args) SWIG_fail;
28186 swig_obj[0] = args;
28187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28188 if (!SWIG_IsOK(res1)) {
28189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
28190 }
28191 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28192 {
28193 PyThreadState* __tstate = wxPyBeginAllowThreads();
28194 result = ((wxRendererNative const *)arg1)->GetVersion();
28195 wxPyEndAllowThreads(__tstate);
28196 if (PyErr_Occurred()) SWIG_fail;
28197 }
28198 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
28199 return resultobj;
28200 fail:
28201 return NULL;
28202 }
28203
28204
28205 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28206 PyObject *obj;
28207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28208 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
28209 return SWIG_Py_Void();
28210 }
28211
28212 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28213 PyObject *resultobj = 0;
28214 wxPseudoDC *result = 0 ;
28215
28216 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
28217 {
28218 PyThreadState* __tstate = wxPyBeginAllowThreads();
28219 result = (wxPseudoDC *)new wxPseudoDC();
28220 wxPyEndAllowThreads(__tstate);
28221 if (PyErr_Occurred()) SWIG_fail;
28222 }
28223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
28224 return resultobj;
28225 fail:
28226 return NULL;
28227 }
28228
28229
28230 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28231 PyObject *resultobj = 0;
28232 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28233 void *argp1 = 0 ;
28234 int res1 = 0 ;
28235 PyObject *swig_obj[1] ;
28236
28237 if (!args) SWIG_fail;
28238 swig_obj[0] = args;
28239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28240 if (!SWIG_IsOK(res1)) {
28241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28242 }
28243 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28244 {
28245 PyThreadState* __tstate = wxPyBeginAllowThreads();
28246 (arg1)->BeginDrawing();
28247 wxPyEndAllowThreads(__tstate);
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
28250 resultobj = SWIG_Py_Void();
28251 return resultobj;
28252 fail:
28253 return NULL;
28254 }
28255
28256
28257 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28258 PyObject *resultobj = 0;
28259 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28260 void *argp1 = 0 ;
28261 int res1 = 0 ;
28262 PyObject *swig_obj[1] ;
28263
28264 if (!args) SWIG_fail;
28265 swig_obj[0] = args;
28266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28267 if (!SWIG_IsOK(res1)) {
28268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28269 }
28270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28271 {
28272 PyThreadState* __tstate = wxPyBeginAllowThreads();
28273 (arg1)->EndDrawing();
28274 wxPyEndAllowThreads(__tstate);
28275 if (PyErr_Occurred()) SWIG_fail;
28276 }
28277 resultobj = SWIG_Py_Void();
28278 return resultobj;
28279 fail:
28280 return NULL;
28281 }
28282
28283
28284 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28285 PyObject *resultobj = 0;
28286 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28287 void *argp1 = 0 ;
28288 int res1 = 0 ;
28289 PyObject *swig_obj[1] ;
28290
28291 if (!args) SWIG_fail;
28292 swig_obj[0] = args;
28293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
28294 if (!SWIG_IsOK(res1)) {
28295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28296 }
28297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28298 {
28299 PyThreadState* __tstate = wxPyBeginAllowThreads();
28300 delete arg1;
28301
28302 wxPyEndAllowThreads(__tstate);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 resultobj = SWIG_Py_Void();
28306 return resultobj;
28307 fail:
28308 return NULL;
28309 }
28310
28311
28312 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28313 PyObject *resultobj = 0;
28314 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28315 void *argp1 = 0 ;
28316 int res1 = 0 ;
28317 PyObject *swig_obj[1] ;
28318
28319 if (!args) SWIG_fail;
28320 swig_obj[0] = args;
28321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28322 if (!SWIG_IsOK(res1)) {
28323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28324 }
28325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28326 {
28327 PyThreadState* __tstate = wxPyBeginAllowThreads();
28328 (arg1)->RemoveAll();
28329 wxPyEndAllowThreads(__tstate);
28330 if (PyErr_Occurred()) SWIG_fail;
28331 }
28332 resultobj = SWIG_Py_Void();
28333 return resultobj;
28334 fail:
28335 return NULL;
28336 }
28337
28338
28339 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28340 PyObject *resultobj = 0;
28341 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28342 int result;
28343 void *argp1 = 0 ;
28344 int res1 = 0 ;
28345 PyObject *swig_obj[1] ;
28346
28347 if (!args) SWIG_fail;
28348 swig_obj[0] = args;
28349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28350 if (!SWIG_IsOK(res1)) {
28351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28352 }
28353 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28354 {
28355 PyThreadState* __tstate = wxPyBeginAllowThreads();
28356 result = (int)(arg1)->GetLen();
28357 wxPyEndAllowThreads(__tstate);
28358 if (PyErr_Occurred()) SWIG_fail;
28359 }
28360 resultobj = SWIG_From_int(static_cast< int >(result));
28361 return resultobj;
28362 fail:
28363 return NULL;
28364 }
28365
28366
28367 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28368 PyObject *resultobj = 0;
28369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28370 int arg2 ;
28371 void *argp1 = 0 ;
28372 int res1 = 0 ;
28373 int val2 ;
28374 int ecode2 = 0 ;
28375 PyObject * obj0 = 0 ;
28376 PyObject * obj1 = 0 ;
28377 char * kwnames[] = {
28378 (char *) "self",(char *) "id", NULL
28379 };
28380
28381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
28382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28383 if (!SWIG_IsOK(res1)) {
28384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28385 }
28386 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28387 ecode2 = SWIG_AsVal_int(obj1, &val2);
28388 if (!SWIG_IsOK(ecode2)) {
28389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
28390 }
28391 arg2 = static_cast< int >(val2);
28392 {
28393 PyThreadState* __tstate = wxPyBeginAllowThreads();
28394 (arg1)->SetId(arg2);
28395 wxPyEndAllowThreads(__tstate);
28396 if (PyErr_Occurred()) SWIG_fail;
28397 }
28398 resultobj = SWIG_Py_Void();
28399 return resultobj;
28400 fail:
28401 return NULL;
28402 }
28403
28404
28405 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28406 PyObject *resultobj = 0;
28407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28408 int arg2 ;
28409 void *argp1 = 0 ;
28410 int res1 = 0 ;
28411 int val2 ;
28412 int ecode2 = 0 ;
28413 PyObject * obj0 = 0 ;
28414 PyObject * obj1 = 0 ;
28415 char * kwnames[] = {
28416 (char *) "self",(char *) "id", NULL
28417 };
28418
28419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
28420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28421 if (!SWIG_IsOK(res1)) {
28422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28423 }
28424 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28425 ecode2 = SWIG_AsVal_int(obj1, &val2);
28426 if (!SWIG_IsOK(ecode2)) {
28427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
28428 }
28429 arg2 = static_cast< int >(val2);
28430 {
28431 PyThreadState* __tstate = wxPyBeginAllowThreads();
28432 (arg1)->ClearId(arg2);
28433 wxPyEndAllowThreads(__tstate);
28434 if (PyErr_Occurred()) SWIG_fail;
28435 }
28436 resultobj = SWIG_Py_Void();
28437 return resultobj;
28438 fail:
28439 return NULL;
28440 }
28441
28442
28443 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28444 PyObject *resultobj = 0;
28445 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28446 int arg2 ;
28447 void *argp1 = 0 ;
28448 int res1 = 0 ;
28449 int val2 ;
28450 int ecode2 = 0 ;
28451 PyObject * obj0 = 0 ;
28452 PyObject * obj1 = 0 ;
28453 char * kwnames[] = {
28454 (char *) "self",(char *) "id", NULL
28455 };
28456
28457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
28458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28459 if (!SWIG_IsOK(res1)) {
28460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28461 }
28462 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28463 ecode2 = SWIG_AsVal_int(obj1, &val2);
28464 if (!SWIG_IsOK(ecode2)) {
28465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
28466 }
28467 arg2 = static_cast< int >(val2);
28468 {
28469 PyThreadState* __tstate = wxPyBeginAllowThreads();
28470 (arg1)->RemoveId(arg2);
28471 wxPyEndAllowThreads(__tstate);
28472 if (PyErr_Occurred()) SWIG_fail;
28473 }
28474 resultobj = SWIG_Py_Void();
28475 return resultobj;
28476 fail:
28477 return NULL;
28478 }
28479
28480
28481 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28482 PyObject *resultobj = 0;
28483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28484 int arg2 ;
28485 int arg3 ;
28486 int arg4 ;
28487 void *argp1 = 0 ;
28488 int res1 = 0 ;
28489 int val2 ;
28490 int ecode2 = 0 ;
28491 int val3 ;
28492 int ecode3 = 0 ;
28493 int val4 ;
28494 int ecode4 = 0 ;
28495 PyObject * obj0 = 0 ;
28496 PyObject * obj1 = 0 ;
28497 PyObject * obj2 = 0 ;
28498 PyObject * obj3 = 0 ;
28499 char * kwnames[] = {
28500 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
28501 };
28502
28503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28505 if (!SWIG_IsOK(res1)) {
28506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28507 }
28508 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28509 ecode2 = SWIG_AsVal_int(obj1, &val2);
28510 if (!SWIG_IsOK(ecode2)) {
28511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
28512 }
28513 arg2 = static_cast< int >(val2);
28514 ecode3 = SWIG_AsVal_int(obj2, &val3);
28515 if (!SWIG_IsOK(ecode3)) {
28516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
28517 }
28518 arg3 = static_cast< int >(val3);
28519 ecode4 = SWIG_AsVal_int(obj3, &val4);
28520 if (!SWIG_IsOK(ecode4)) {
28521 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
28522 }
28523 arg4 = static_cast< int >(val4);
28524 {
28525 PyThreadState* __tstate = wxPyBeginAllowThreads();
28526 (arg1)->TranslateId(arg2,arg3,arg4);
28527 wxPyEndAllowThreads(__tstate);
28528 if (PyErr_Occurred()) SWIG_fail;
28529 }
28530 resultobj = SWIG_Py_Void();
28531 return resultobj;
28532 fail:
28533 return NULL;
28534 }
28535
28536
28537 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28538 PyObject *resultobj = 0;
28539 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28540 int arg2 ;
28541 wxDC *arg3 = (wxDC *) 0 ;
28542 void *argp1 = 0 ;
28543 int res1 = 0 ;
28544 int val2 ;
28545 int ecode2 = 0 ;
28546 void *argp3 = 0 ;
28547 int res3 = 0 ;
28548 PyObject * obj0 = 0 ;
28549 PyObject * obj1 = 0 ;
28550 PyObject * obj2 = 0 ;
28551 char * kwnames[] = {
28552 (char *) "self",(char *) "id",(char *) "dc", NULL
28553 };
28554
28555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28557 if (!SWIG_IsOK(res1)) {
28558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28559 }
28560 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28561 ecode2 = SWIG_AsVal_int(obj1, &val2);
28562 if (!SWIG_IsOK(ecode2)) {
28563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
28564 }
28565 arg2 = static_cast< int >(val2);
28566 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
28567 if (!SWIG_IsOK(res3)) {
28568 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
28569 }
28570 arg3 = reinterpret_cast< wxDC * >(argp3);
28571 {
28572 PyThreadState* __tstate = wxPyBeginAllowThreads();
28573 (arg1)->DrawIdToDC(arg2,arg3);
28574 wxPyEndAllowThreads(__tstate);
28575 if (PyErr_Occurred()) SWIG_fail;
28576 }
28577 resultobj = SWIG_Py_Void();
28578 return resultobj;
28579 fail:
28580 return NULL;
28581 }
28582
28583
28584 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28585 PyObject *resultobj = 0;
28586 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28587 int arg2 ;
28588 wxRect *arg3 = 0 ;
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 int val2 ;
28592 int ecode2 = 0 ;
28593 wxRect temp3 ;
28594 PyObject * obj0 = 0 ;
28595 PyObject * obj1 = 0 ;
28596 PyObject * obj2 = 0 ;
28597 char * kwnames[] = {
28598 (char *) "self",(char *) "id",(char *) "rect", NULL
28599 };
28600
28601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28603 if (!SWIG_IsOK(res1)) {
28604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28605 }
28606 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28607 ecode2 = SWIG_AsVal_int(obj1, &val2);
28608 if (!SWIG_IsOK(ecode2)) {
28609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
28610 }
28611 arg2 = static_cast< int >(val2);
28612 {
28613 arg3 = &temp3;
28614 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28615 }
28616 {
28617 PyThreadState* __tstate = wxPyBeginAllowThreads();
28618 (arg1)->SetIdBounds(arg2,*arg3);
28619 wxPyEndAllowThreads(__tstate);
28620 if (PyErr_Occurred()) SWIG_fail;
28621 }
28622 resultobj = SWIG_Py_Void();
28623 return resultobj;
28624 fail:
28625 return NULL;
28626 }
28627
28628
28629 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28630 PyObject *resultobj = 0;
28631 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28632 int arg2 ;
28633 wxRect result;
28634 void *argp1 = 0 ;
28635 int res1 = 0 ;
28636 int val2 ;
28637 int ecode2 = 0 ;
28638 PyObject * obj0 = 0 ;
28639 PyObject * obj1 = 0 ;
28640 char * kwnames[] = {
28641 (char *) "self",(char *) "id", NULL
28642 };
28643
28644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
28645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28646 if (!SWIG_IsOK(res1)) {
28647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28648 }
28649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28650 ecode2 = SWIG_AsVal_int(obj1, &val2);
28651 if (!SWIG_IsOK(ecode2)) {
28652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
28653 }
28654 arg2 = static_cast< int >(val2);
28655 {
28656 PyThreadState* __tstate = wxPyBeginAllowThreads();
28657 result = wxPseudoDC_GetIdBounds(arg1,arg2);
28658 wxPyEndAllowThreads(__tstate);
28659 if (PyErr_Occurred()) SWIG_fail;
28660 }
28661 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28662 return resultobj;
28663 fail:
28664 return NULL;
28665 }
28666
28667
28668 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28669 PyObject *resultobj = 0;
28670 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28671 wxDC *arg2 = (wxDC *) 0 ;
28672 wxRect *arg3 = 0 ;
28673 void *argp1 = 0 ;
28674 int res1 = 0 ;
28675 void *argp2 = 0 ;
28676 int res2 = 0 ;
28677 wxRect temp3 ;
28678 PyObject * obj0 = 0 ;
28679 PyObject * obj1 = 0 ;
28680 PyObject * obj2 = 0 ;
28681 char * kwnames[] = {
28682 (char *) "self",(char *) "dc",(char *) "rect", NULL
28683 };
28684
28685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28687 if (!SWIG_IsOK(res1)) {
28688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28689 }
28690 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28691 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28692 if (!SWIG_IsOK(res2)) {
28693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
28694 }
28695 arg2 = reinterpret_cast< wxDC * >(argp2);
28696 {
28697 arg3 = &temp3;
28698 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28699 }
28700 {
28701 PyThreadState* __tstate = wxPyBeginAllowThreads();
28702 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
28703 wxPyEndAllowThreads(__tstate);
28704 if (PyErr_Occurred()) SWIG_fail;
28705 }
28706 resultobj = SWIG_Py_Void();
28707 return resultobj;
28708 fail:
28709 return NULL;
28710 }
28711
28712
28713 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28714 PyObject *resultobj = 0;
28715 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28716 wxDC *arg2 = (wxDC *) 0 ;
28717 wxRegion *arg3 = 0 ;
28718 void *argp1 = 0 ;
28719 int res1 = 0 ;
28720 void *argp2 = 0 ;
28721 int res2 = 0 ;
28722 void *argp3 = 0 ;
28723 int res3 = 0 ;
28724 PyObject * obj0 = 0 ;
28725 PyObject * obj1 = 0 ;
28726 PyObject * obj2 = 0 ;
28727 char * kwnames[] = {
28728 (char *) "self",(char *) "dc",(char *) "region", NULL
28729 };
28730
28731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28733 if (!SWIG_IsOK(res1)) {
28734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28735 }
28736 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28737 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28738 if (!SWIG_IsOK(res2)) {
28739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
28740 }
28741 arg2 = reinterpret_cast< wxDC * >(argp2);
28742 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
28743 if (!SWIG_IsOK(res3)) {
28744 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28745 }
28746 if (!argp3) {
28747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28748 }
28749 arg3 = reinterpret_cast< wxRegion * >(argp3);
28750 {
28751 PyThreadState* __tstate = wxPyBeginAllowThreads();
28752 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
28753 wxPyEndAllowThreads(__tstate);
28754 if (PyErr_Occurred()) SWIG_fail;
28755 }
28756 resultobj = SWIG_Py_Void();
28757 return resultobj;
28758 fail:
28759 return NULL;
28760 }
28761
28762
28763 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28764 PyObject *resultobj = 0;
28765 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28766 wxDC *arg2 = (wxDC *) 0 ;
28767 void *argp1 = 0 ;
28768 int res1 = 0 ;
28769 void *argp2 = 0 ;
28770 int res2 = 0 ;
28771 PyObject * obj0 = 0 ;
28772 PyObject * obj1 = 0 ;
28773 char * kwnames[] = {
28774 (char *) "self",(char *) "dc", NULL
28775 };
28776
28777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
28778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28779 if (!SWIG_IsOK(res1)) {
28780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28781 }
28782 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28784 if (!SWIG_IsOK(res2)) {
28785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
28786 }
28787 arg2 = reinterpret_cast< wxDC * >(argp2);
28788 {
28789 PyThreadState* __tstate = wxPyBeginAllowThreads();
28790 (arg1)->DrawToDC(arg2);
28791 wxPyEndAllowThreads(__tstate);
28792 if (PyErr_Occurred()) SWIG_fail;
28793 }
28794 resultobj = SWIG_Py_Void();
28795 return resultobj;
28796 fail:
28797 return NULL;
28798 }
28799
28800
28801 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28802 PyObject *resultobj = 0;
28803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28804 int arg2 ;
28805 int arg3 ;
28806 wxColour *arg4 = 0 ;
28807 int arg5 = (int) wxFLOOD_SURFACE ;
28808 void *argp1 = 0 ;
28809 int res1 = 0 ;
28810 int val2 ;
28811 int ecode2 = 0 ;
28812 int val3 ;
28813 int ecode3 = 0 ;
28814 wxColour temp4 ;
28815 int val5 ;
28816 int ecode5 = 0 ;
28817 PyObject * obj0 = 0 ;
28818 PyObject * obj1 = 0 ;
28819 PyObject * obj2 = 0 ;
28820 PyObject * obj3 = 0 ;
28821 PyObject * obj4 = 0 ;
28822 char * kwnames[] = {
28823 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
28824 };
28825
28826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28828 if (!SWIG_IsOK(res1)) {
28829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28830 }
28831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28832 ecode2 = SWIG_AsVal_int(obj1, &val2);
28833 if (!SWIG_IsOK(ecode2)) {
28834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
28835 }
28836 arg2 = static_cast< int >(val2);
28837 ecode3 = SWIG_AsVal_int(obj2, &val3);
28838 if (!SWIG_IsOK(ecode3)) {
28839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28840 }
28841 arg3 = static_cast< int >(val3);
28842 {
28843 arg4 = &temp4;
28844 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28845 }
28846 if (obj4) {
28847 ecode5 = SWIG_AsVal_int(obj4, &val5);
28848 if (!SWIG_IsOK(ecode5)) {
28849 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28850 }
28851 arg5 = static_cast< int >(val5);
28852 }
28853 {
28854 PyThreadState* __tstate = wxPyBeginAllowThreads();
28855 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28856 wxPyEndAllowThreads(__tstate);
28857 if (PyErr_Occurred()) SWIG_fail;
28858 }
28859 resultobj = SWIG_Py_Void();
28860 return resultobj;
28861 fail:
28862 return NULL;
28863 }
28864
28865
28866 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28867 PyObject *resultobj = 0;
28868 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28869 wxPoint *arg2 = 0 ;
28870 wxColour *arg3 = 0 ;
28871 int arg4 = (int) wxFLOOD_SURFACE ;
28872 void *argp1 = 0 ;
28873 int res1 = 0 ;
28874 wxPoint temp2 ;
28875 wxColour temp3 ;
28876 int val4 ;
28877 int ecode4 = 0 ;
28878 PyObject * obj0 = 0 ;
28879 PyObject * obj1 = 0 ;
28880 PyObject * obj2 = 0 ;
28881 PyObject * obj3 = 0 ;
28882 char * kwnames[] = {
28883 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
28884 };
28885
28886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28888 if (!SWIG_IsOK(res1)) {
28889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28890 }
28891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28892 {
28893 arg2 = &temp2;
28894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28895 }
28896 {
28897 arg3 = &temp3;
28898 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28899 }
28900 if (obj3) {
28901 ecode4 = SWIG_AsVal_int(obj3, &val4);
28902 if (!SWIG_IsOK(ecode4)) {
28903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
28904 }
28905 arg4 = static_cast< int >(val4);
28906 }
28907 {
28908 PyThreadState* __tstate = wxPyBeginAllowThreads();
28909 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
28910 wxPyEndAllowThreads(__tstate);
28911 if (PyErr_Occurred()) SWIG_fail;
28912 }
28913 resultobj = SWIG_Py_Void();
28914 return resultobj;
28915 fail:
28916 return NULL;
28917 }
28918
28919
28920 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28921 PyObject *resultobj = 0;
28922 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28923 int arg2 ;
28924 int arg3 ;
28925 int arg4 ;
28926 int arg5 ;
28927 void *argp1 = 0 ;
28928 int res1 = 0 ;
28929 int val2 ;
28930 int ecode2 = 0 ;
28931 int val3 ;
28932 int ecode3 = 0 ;
28933 int val4 ;
28934 int ecode4 = 0 ;
28935 int val5 ;
28936 int ecode5 = 0 ;
28937 PyObject * obj0 = 0 ;
28938 PyObject * obj1 = 0 ;
28939 PyObject * obj2 = 0 ;
28940 PyObject * obj3 = 0 ;
28941 PyObject * obj4 = 0 ;
28942 char * kwnames[] = {
28943 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
28944 };
28945
28946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28948 if (!SWIG_IsOK(res1)) {
28949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28950 }
28951 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28952 ecode2 = SWIG_AsVal_int(obj1, &val2);
28953 if (!SWIG_IsOK(ecode2)) {
28954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
28955 }
28956 arg2 = static_cast< int >(val2);
28957 ecode3 = SWIG_AsVal_int(obj2, &val3);
28958 if (!SWIG_IsOK(ecode3)) {
28959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
28960 }
28961 arg3 = static_cast< int >(val3);
28962 ecode4 = SWIG_AsVal_int(obj3, &val4);
28963 if (!SWIG_IsOK(ecode4)) {
28964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
28965 }
28966 arg4 = static_cast< int >(val4);
28967 ecode5 = SWIG_AsVal_int(obj4, &val5);
28968 if (!SWIG_IsOK(ecode5)) {
28969 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
28970 }
28971 arg5 = static_cast< int >(val5);
28972 {
28973 PyThreadState* __tstate = wxPyBeginAllowThreads();
28974 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
28975 wxPyEndAllowThreads(__tstate);
28976 if (PyErr_Occurred()) SWIG_fail;
28977 }
28978 resultobj = SWIG_Py_Void();
28979 return resultobj;
28980 fail:
28981 return NULL;
28982 }
28983
28984
28985 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28986 PyObject *resultobj = 0;
28987 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28988 wxPoint *arg2 = 0 ;
28989 wxPoint *arg3 = 0 ;
28990 void *argp1 = 0 ;
28991 int res1 = 0 ;
28992 wxPoint temp2 ;
28993 wxPoint temp3 ;
28994 PyObject * obj0 = 0 ;
28995 PyObject * obj1 = 0 ;
28996 PyObject * obj2 = 0 ;
28997 char * kwnames[] = {
28998 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
28999 };
29000
29001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29003 if (!SWIG_IsOK(res1)) {
29004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29005 }
29006 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29007 {
29008 arg2 = &temp2;
29009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29010 }
29011 {
29012 arg3 = &temp3;
29013 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29014 }
29015 {
29016 PyThreadState* __tstate = wxPyBeginAllowThreads();
29017 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
29018 wxPyEndAllowThreads(__tstate);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 }
29021 resultobj = SWIG_Py_Void();
29022 return resultobj;
29023 fail:
29024 return NULL;
29025 }
29026
29027
29028 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29029 PyObject *resultobj = 0;
29030 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29031 int arg2 ;
29032 int arg3 ;
29033 void *argp1 = 0 ;
29034 int res1 = 0 ;
29035 int val2 ;
29036 int ecode2 = 0 ;
29037 int val3 ;
29038 int ecode3 = 0 ;
29039 PyObject * obj0 = 0 ;
29040 PyObject * obj1 = 0 ;
29041 PyObject * obj2 = 0 ;
29042 char * kwnames[] = {
29043 (char *) "self",(char *) "x",(char *) "y", NULL
29044 };
29045
29046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29048 if (!SWIG_IsOK(res1)) {
29049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29050 }
29051 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29052 ecode2 = SWIG_AsVal_int(obj1, &val2);
29053 if (!SWIG_IsOK(ecode2)) {
29054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
29055 }
29056 arg2 = static_cast< int >(val2);
29057 ecode3 = SWIG_AsVal_int(obj2, &val3);
29058 if (!SWIG_IsOK(ecode3)) {
29059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
29060 }
29061 arg3 = static_cast< int >(val3);
29062 {
29063 PyThreadState* __tstate = wxPyBeginAllowThreads();
29064 (arg1)->CrossHair(arg2,arg3);
29065 wxPyEndAllowThreads(__tstate);
29066 if (PyErr_Occurred()) SWIG_fail;
29067 }
29068 resultobj = SWIG_Py_Void();
29069 return resultobj;
29070 fail:
29071 return NULL;
29072 }
29073
29074
29075 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29076 PyObject *resultobj = 0;
29077 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29078 wxPoint *arg2 = 0 ;
29079 void *argp1 = 0 ;
29080 int res1 = 0 ;
29081 wxPoint temp2 ;
29082 PyObject * obj0 = 0 ;
29083 PyObject * obj1 = 0 ;
29084 char * kwnames[] = {
29085 (char *) "self",(char *) "pt", NULL
29086 };
29087
29088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29090 if (!SWIG_IsOK(res1)) {
29091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29092 }
29093 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29094 {
29095 arg2 = &temp2;
29096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29097 }
29098 {
29099 PyThreadState* __tstate = wxPyBeginAllowThreads();
29100 (arg1)->CrossHair((wxPoint const &)*arg2);
29101 wxPyEndAllowThreads(__tstate);
29102 if (PyErr_Occurred()) SWIG_fail;
29103 }
29104 resultobj = SWIG_Py_Void();
29105 return resultobj;
29106 fail:
29107 return NULL;
29108 }
29109
29110
29111 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29112 PyObject *resultobj = 0;
29113 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29114 int arg2 ;
29115 int arg3 ;
29116 int arg4 ;
29117 int arg5 ;
29118 int arg6 ;
29119 int arg7 ;
29120 void *argp1 = 0 ;
29121 int res1 = 0 ;
29122 int val2 ;
29123 int ecode2 = 0 ;
29124 int val3 ;
29125 int ecode3 = 0 ;
29126 int val4 ;
29127 int ecode4 = 0 ;
29128 int val5 ;
29129 int ecode5 = 0 ;
29130 int val6 ;
29131 int ecode6 = 0 ;
29132 int val7 ;
29133 int ecode7 = 0 ;
29134 PyObject * obj0 = 0 ;
29135 PyObject * obj1 = 0 ;
29136 PyObject * obj2 = 0 ;
29137 PyObject * obj3 = 0 ;
29138 PyObject * obj4 = 0 ;
29139 PyObject * obj5 = 0 ;
29140 PyObject * obj6 = 0 ;
29141 char * kwnames[] = {
29142 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
29143 };
29144
29145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29147 if (!SWIG_IsOK(res1)) {
29148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29149 }
29150 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29151 ecode2 = SWIG_AsVal_int(obj1, &val2);
29152 if (!SWIG_IsOK(ecode2)) {
29153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
29154 }
29155 arg2 = static_cast< int >(val2);
29156 ecode3 = SWIG_AsVal_int(obj2, &val3);
29157 if (!SWIG_IsOK(ecode3)) {
29158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
29159 }
29160 arg3 = static_cast< int >(val3);
29161 ecode4 = SWIG_AsVal_int(obj3, &val4);
29162 if (!SWIG_IsOK(ecode4)) {
29163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
29164 }
29165 arg4 = static_cast< int >(val4);
29166 ecode5 = SWIG_AsVal_int(obj4, &val5);
29167 if (!SWIG_IsOK(ecode5)) {
29168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
29169 }
29170 arg5 = static_cast< int >(val5);
29171 ecode6 = SWIG_AsVal_int(obj5, &val6);
29172 if (!SWIG_IsOK(ecode6)) {
29173 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
29174 }
29175 arg6 = static_cast< int >(val6);
29176 ecode7 = SWIG_AsVal_int(obj6, &val7);
29177 if (!SWIG_IsOK(ecode7)) {
29178 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
29179 }
29180 arg7 = static_cast< int >(val7);
29181 {
29182 PyThreadState* __tstate = wxPyBeginAllowThreads();
29183 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
29184 wxPyEndAllowThreads(__tstate);
29185 if (PyErr_Occurred()) SWIG_fail;
29186 }
29187 resultobj = SWIG_Py_Void();
29188 return resultobj;
29189 fail:
29190 return NULL;
29191 }
29192
29193
29194 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29195 PyObject *resultobj = 0;
29196 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29197 wxPoint *arg2 = 0 ;
29198 wxPoint *arg3 = 0 ;
29199 wxPoint *arg4 = 0 ;
29200 void *argp1 = 0 ;
29201 int res1 = 0 ;
29202 wxPoint temp2 ;
29203 wxPoint temp3 ;
29204 wxPoint temp4 ;
29205 PyObject * obj0 = 0 ;
29206 PyObject * obj1 = 0 ;
29207 PyObject * obj2 = 0 ;
29208 PyObject * obj3 = 0 ;
29209 char * kwnames[] = {
29210 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
29211 };
29212
29213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29215 if (!SWIG_IsOK(res1)) {
29216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29217 }
29218 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29219 {
29220 arg2 = &temp2;
29221 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29222 }
29223 {
29224 arg3 = &temp3;
29225 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29226 }
29227 {
29228 arg4 = &temp4;
29229 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29230 }
29231 {
29232 PyThreadState* __tstate = wxPyBeginAllowThreads();
29233 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
29234 wxPyEndAllowThreads(__tstate);
29235 if (PyErr_Occurred()) SWIG_fail;
29236 }
29237 resultobj = SWIG_Py_Void();
29238 return resultobj;
29239 fail:
29240 return NULL;
29241 }
29242
29243
29244 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29245 PyObject *resultobj = 0;
29246 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29247 int arg2 ;
29248 int arg3 ;
29249 int arg4 ;
29250 int arg5 ;
29251 void *argp1 = 0 ;
29252 int res1 = 0 ;
29253 int val2 ;
29254 int ecode2 = 0 ;
29255 int val3 ;
29256 int ecode3 = 0 ;
29257 int val4 ;
29258 int ecode4 = 0 ;
29259 int val5 ;
29260 int ecode5 = 0 ;
29261 PyObject * obj0 = 0 ;
29262 PyObject * obj1 = 0 ;
29263 PyObject * obj2 = 0 ;
29264 PyObject * obj3 = 0 ;
29265 PyObject * obj4 = 0 ;
29266 char * kwnames[] = {
29267 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29268 };
29269
29270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29272 if (!SWIG_IsOK(res1)) {
29273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29274 }
29275 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29276 ecode2 = SWIG_AsVal_int(obj1, &val2);
29277 if (!SWIG_IsOK(ecode2)) {
29278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
29279 }
29280 arg2 = static_cast< int >(val2);
29281 ecode3 = SWIG_AsVal_int(obj2, &val3);
29282 if (!SWIG_IsOK(ecode3)) {
29283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
29284 }
29285 arg3 = static_cast< int >(val3);
29286 ecode4 = SWIG_AsVal_int(obj3, &val4);
29287 if (!SWIG_IsOK(ecode4)) {
29288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
29289 }
29290 arg4 = static_cast< int >(val4);
29291 ecode5 = SWIG_AsVal_int(obj4, &val5);
29292 if (!SWIG_IsOK(ecode5)) {
29293 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
29294 }
29295 arg5 = static_cast< int >(val5);
29296 {
29297 PyThreadState* __tstate = wxPyBeginAllowThreads();
29298 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
29299 wxPyEndAllowThreads(__tstate);
29300 if (PyErr_Occurred()) SWIG_fail;
29301 }
29302 resultobj = SWIG_Py_Void();
29303 return resultobj;
29304 fail:
29305 return NULL;
29306 }
29307
29308
29309 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29310 PyObject *resultobj = 0;
29311 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29312 wxRect *arg2 = 0 ;
29313 void *argp1 = 0 ;
29314 int res1 = 0 ;
29315 wxRect temp2 ;
29316 PyObject * obj0 = 0 ;
29317 PyObject * obj1 = 0 ;
29318 char * kwnames[] = {
29319 (char *) "self",(char *) "rect", NULL
29320 };
29321
29322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
29323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29324 if (!SWIG_IsOK(res1)) {
29325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29326 }
29327 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29328 {
29329 arg2 = &temp2;
29330 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29331 }
29332 {
29333 PyThreadState* __tstate = wxPyBeginAllowThreads();
29334 (arg1)->DrawCheckMark((wxRect const &)*arg2);
29335 wxPyEndAllowThreads(__tstate);
29336 if (PyErr_Occurred()) SWIG_fail;
29337 }
29338 resultobj = SWIG_Py_Void();
29339 return resultobj;
29340 fail:
29341 return NULL;
29342 }
29343
29344
29345 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29346 PyObject *resultobj = 0;
29347 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29348 int arg2 ;
29349 int arg3 ;
29350 int arg4 ;
29351 int arg5 ;
29352 double arg6 ;
29353 double arg7 ;
29354 void *argp1 = 0 ;
29355 int res1 = 0 ;
29356 int val2 ;
29357 int ecode2 = 0 ;
29358 int val3 ;
29359 int ecode3 = 0 ;
29360 int val4 ;
29361 int ecode4 = 0 ;
29362 int val5 ;
29363 int ecode5 = 0 ;
29364 double val6 ;
29365 int ecode6 = 0 ;
29366 double val7 ;
29367 int ecode7 = 0 ;
29368 PyObject * obj0 = 0 ;
29369 PyObject * obj1 = 0 ;
29370 PyObject * obj2 = 0 ;
29371 PyObject * obj3 = 0 ;
29372 PyObject * obj4 = 0 ;
29373 PyObject * obj5 = 0 ;
29374 PyObject * obj6 = 0 ;
29375 char * kwnames[] = {
29376 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
29377 };
29378
29379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29381 if (!SWIG_IsOK(res1)) {
29382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29383 }
29384 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29385 ecode2 = SWIG_AsVal_int(obj1, &val2);
29386 if (!SWIG_IsOK(ecode2)) {
29387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
29388 }
29389 arg2 = static_cast< int >(val2);
29390 ecode3 = SWIG_AsVal_int(obj2, &val3);
29391 if (!SWIG_IsOK(ecode3)) {
29392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
29393 }
29394 arg3 = static_cast< int >(val3);
29395 ecode4 = SWIG_AsVal_int(obj3, &val4);
29396 if (!SWIG_IsOK(ecode4)) {
29397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
29398 }
29399 arg4 = static_cast< int >(val4);
29400 ecode5 = SWIG_AsVal_int(obj4, &val5);
29401 if (!SWIG_IsOK(ecode5)) {
29402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
29403 }
29404 arg5 = static_cast< int >(val5);
29405 ecode6 = SWIG_AsVal_double(obj5, &val6);
29406 if (!SWIG_IsOK(ecode6)) {
29407 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
29408 }
29409 arg6 = static_cast< double >(val6);
29410 ecode7 = SWIG_AsVal_double(obj6, &val7);
29411 if (!SWIG_IsOK(ecode7)) {
29412 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
29413 }
29414 arg7 = static_cast< double >(val7);
29415 {
29416 PyThreadState* __tstate = wxPyBeginAllowThreads();
29417 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
29418 wxPyEndAllowThreads(__tstate);
29419 if (PyErr_Occurred()) SWIG_fail;
29420 }
29421 resultobj = SWIG_Py_Void();
29422 return resultobj;
29423 fail:
29424 return NULL;
29425 }
29426
29427
29428 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29429 PyObject *resultobj = 0;
29430 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29431 wxPoint *arg2 = 0 ;
29432 wxSize *arg3 = 0 ;
29433 double arg4 ;
29434 double arg5 ;
29435 void *argp1 = 0 ;
29436 int res1 = 0 ;
29437 wxPoint temp2 ;
29438 wxSize temp3 ;
29439 double val4 ;
29440 int ecode4 = 0 ;
29441 double val5 ;
29442 int ecode5 = 0 ;
29443 PyObject * obj0 = 0 ;
29444 PyObject * obj1 = 0 ;
29445 PyObject * obj2 = 0 ;
29446 PyObject * obj3 = 0 ;
29447 PyObject * obj4 = 0 ;
29448 char * kwnames[] = {
29449 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
29450 };
29451
29452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29454 if (!SWIG_IsOK(res1)) {
29455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29456 }
29457 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29458 {
29459 arg2 = &temp2;
29460 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29461 }
29462 {
29463 arg3 = &temp3;
29464 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29465 }
29466 ecode4 = SWIG_AsVal_double(obj3, &val4);
29467 if (!SWIG_IsOK(ecode4)) {
29468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
29469 }
29470 arg4 = static_cast< double >(val4);
29471 ecode5 = SWIG_AsVal_double(obj4, &val5);
29472 if (!SWIG_IsOK(ecode5)) {
29473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
29474 }
29475 arg5 = static_cast< double >(val5);
29476 {
29477 PyThreadState* __tstate = wxPyBeginAllowThreads();
29478 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
29479 wxPyEndAllowThreads(__tstate);
29480 if (PyErr_Occurred()) SWIG_fail;
29481 }
29482 resultobj = SWIG_Py_Void();
29483 return resultobj;
29484 fail:
29485 return NULL;
29486 }
29487
29488
29489 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29490 PyObject *resultobj = 0;
29491 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29492 int arg2 ;
29493 int arg3 ;
29494 void *argp1 = 0 ;
29495 int res1 = 0 ;
29496 int val2 ;
29497 int ecode2 = 0 ;
29498 int val3 ;
29499 int ecode3 = 0 ;
29500 PyObject * obj0 = 0 ;
29501 PyObject * obj1 = 0 ;
29502 PyObject * obj2 = 0 ;
29503 char * kwnames[] = {
29504 (char *) "self",(char *) "x",(char *) "y", NULL
29505 };
29506
29507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29509 if (!SWIG_IsOK(res1)) {
29510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29511 }
29512 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29513 ecode2 = SWIG_AsVal_int(obj1, &val2);
29514 if (!SWIG_IsOK(ecode2)) {
29515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
29516 }
29517 arg2 = static_cast< int >(val2);
29518 ecode3 = SWIG_AsVal_int(obj2, &val3);
29519 if (!SWIG_IsOK(ecode3)) {
29520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
29521 }
29522 arg3 = static_cast< int >(val3);
29523 {
29524 PyThreadState* __tstate = wxPyBeginAllowThreads();
29525 (arg1)->DrawPoint(arg2,arg3);
29526 wxPyEndAllowThreads(__tstate);
29527 if (PyErr_Occurred()) SWIG_fail;
29528 }
29529 resultobj = SWIG_Py_Void();
29530 return resultobj;
29531 fail:
29532 return NULL;
29533 }
29534
29535
29536 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29537 PyObject *resultobj = 0;
29538 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29539 wxPoint *arg2 = 0 ;
29540 void *argp1 = 0 ;
29541 int res1 = 0 ;
29542 wxPoint temp2 ;
29543 PyObject * obj0 = 0 ;
29544 PyObject * obj1 = 0 ;
29545 char * kwnames[] = {
29546 (char *) "self",(char *) "pt", NULL
29547 };
29548
29549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29551 if (!SWIG_IsOK(res1)) {
29552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29553 }
29554 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29555 {
29556 arg2 = &temp2;
29557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29558 }
29559 {
29560 PyThreadState* __tstate = wxPyBeginAllowThreads();
29561 (arg1)->DrawPoint((wxPoint const &)*arg2);
29562 wxPyEndAllowThreads(__tstate);
29563 if (PyErr_Occurred()) SWIG_fail;
29564 }
29565 resultobj = SWIG_Py_Void();
29566 return resultobj;
29567 fail:
29568 return NULL;
29569 }
29570
29571
29572 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29573 PyObject *resultobj = 0;
29574 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29575 int arg2 ;
29576 int arg3 ;
29577 int arg4 ;
29578 int arg5 ;
29579 void *argp1 = 0 ;
29580 int res1 = 0 ;
29581 int val2 ;
29582 int ecode2 = 0 ;
29583 int val3 ;
29584 int ecode3 = 0 ;
29585 int val4 ;
29586 int ecode4 = 0 ;
29587 int val5 ;
29588 int ecode5 = 0 ;
29589 PyObject * obj0 = 0 ;
29590 PyObject * obj1 = 0 ;
29591 PyObject * obj2 = 0 ;
29592 PyObject * obj3 = 0 ;
29593 PyObject * obj4 = 0 ;
29594 char * kwnames[] = {
29595 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29596 };
29597
29598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29600 if (!SWIG_IsOK(res1)) {
29601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29602 }
29603 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29604 ecode2 = SWIG_AsVal_int(obj1, &val2);
29605 if (!SWIG_IsOK(ecode2)) {
29606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
29607 }
29608 arg2 = static_cast< int >(val2);
29609 ecode3 = SWIG_AsVal_int(obj2, &val3);
29610 if (!SWIG_IsOK(ecode3)) {
29611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
29612 }
29613 arg3 = static_cast< int >(val3);
29614 ecode4 = SWIG_AsVal_int(obj3, &val4);
29615 if (!SWIG_IsOK(ecode4)) {
29616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
29617 }
29618 arg4 = static_cast< int >(val4);
29619 ecode5 = SWIG_AsVal_int(obj4, &val5);
29620 if (!SWIG_IsOK(ecode5)) {
29621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
29622 }
29623 arg5 = static_cast< int >(val5);
29624 {
29625 PyThreadState* __tstate = wxPyBeginAllowThreads();
29626 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29627 wxPyEndAllowThreads(__tstate);
29628 if (PyErr_Occurred()) SWIG_fail;
29629 }
29630 resultobj = SWIG_Py_Void();
29631 return resultobj;
29632 fail:
29633 return NULL;
29634 }
29635
29636
29637 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29638 PyObject *resultobj = 0;
29639 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29640 wxRect *arg2 = 0 ;
29641 void *argp1 = 0 ;
29642 int res1 = 0 ;
29643 wxRect temp2 ;
29644 PyObject * obj0 = 0 ;
29645 PyObject * obj1 = 0 ;
29646 char * kwnames[] = {
29647 (char *) "self",(char *) "rect", NULL
29648 };
29649
29650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
29651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29652 if (!SWIG_IsOK(res1)) {
29653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29654 }
29655 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29656 {
29657 arg2 = &temp2;
29658 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29659 }
29660 {
29661 PyThreadState* __tstate = wxPyBeginAllowThreads();
29662 (arg1)->DrawRectangle((wxRect const &)*arg2);
29663 wxPyEndAllowThreads(__tstate);
29664 if (PyErr_Occurred()) SWIG_fail;
29665 }
29666 resultobj = SWIG_Py_Void();
29667 return resultobj;
29668 fail:
29669 return NULL;
29670 }
29671
29672
29673 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29674 PyObject *resultobj = 0;
29675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29676 wxPoint *arg2 = 0 ;
29677 wxSize *arg3 = 0 ;
29678 void *argp1 = 0 ;
29679 int res1 = 0 ;
29680 wxPoint temp2 ;
29681 wxSize temp3 ;
29682 PyObject * obj0 = 0 ;
29683 PyObject * obj1 = 0 ;
29684 PyObject * obj2 = 0 ;
29685 char * kwnames[] = {
29686 (char *) "self",(char *) "pt",(char *) "sz", NULL
29687 };
29688
29689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29691 if (!SWIG_IsOK(res1)) {
29692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29693 }
29694 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29695 {
29696 arg2 = &temp2;
29697 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29698 }
29699 {
29700 arg3 = &temp3;
29701 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29702 }
29703 {
29704 PyThreadState* __tstate = wxPyBeginAllowThreads();
29705 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
29706 wxPyEndAllowThreads(__tstate);
29707 if (PyErr_Occurred()) SWIG_fail;
29708 }
29709 resultobj = SWIG_Py_Void();
29710 return resultobj;
29711 fail:
29712 return NULL;
29713 }
29714
29715
29716 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29717 PyObject *resultobj = 0;
29718 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29719 int arg2 ;
29720 int arg3 ;
29721 int arg4 ;
29722 int arg5 ;
29723 double arg6 ;
29724 void *argp1 = 0 ;
29725 int res1 = 0 ;
29726 int val2 ;
29727 int ecode2 = 0 ;
29728 int val3 ;
29729 int ecode3 = 0 ;
29730 int val4 ;
29731 int ecode4 = 0 ;
29732 int val5 ;
29733 int ecode5 = 0 ;
29734 double val6 ;
29735 int ecode6 = 0 ;
29736 PyObject * obj0 = 0 ;
29737 PyObject * obj1 = 0 ;
29738 PyObject * obj2 = 0 ;
29739 PyObject * obj3 = 0 ;
29740 PyObject * obj4 = 0 ;
29741 PyObject * obj5 = 0 ;
29742 char * kwnames[] = {
29743 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
29744 };
29745
29746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29748 if (!SWIG_IsOK(res1)) {
29749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29750 }
29751 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29752 ecode2 = SWIG_AsVal_int(obj1, &val2);
29753 if (!SWIG_IsOK(ecode2)) {
29754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
29755 }
29756 arg2 = static_cast< int >(val2);
29757 ecode3 = SWIG_AsVal_int(obj2, &val3);
29758 if (!SWIG_IsOK(ecode3)) {
29759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
29760 }
29761 arg3 = static_cast< int >(val3);
29762 ecode4 = SWIG_AsVal_int(obj3, &val4);
29763 if (!SWIG_IsOK(ecode4)) {
29764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
29765 }
29766 arg4 = static_cast< int >(val4);
29767 ecode5 = SWIG_AsVal_int(obj4, &val5);
29768 if (!SWIG_IsOK(ecode5)) {
29769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
29770 }
29771 arg5 = static_cast< int >(val5);
29772 ecode6 = SWIG_AsVal_double(obj5, &val6);
29773 if (!SWIG_IsOK(ecode6)) {
29774 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
29775 }
29776 arg6 = static_cast< double >(val6);
29777 {
29778 PyThreadState* __tstate = wxPyBeginAllowThreads();
29779 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29780 wxPyEndAllowThreads(__tstate);
29781 if (PyErr_Occurred()) SWIG_fail;
29782 }
29783 resultobj = SWIG_Py_Void();
29784 return resultobj;
29785 fail:
29786 return NULL;
29787 }
29788
29789
29790 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29791 PyObject *resultobj = 0;
29792 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29793 wxRect *arg2 = 0 ;
29794 double arg3 ;
29795 void *argp1 = 0 ;
29796 int res1 = 0 ;
29797 wxRect temp2 ;
29798 double val3 ;
29799 int ecode3 = 0 ;
29800 PyObject * obj0 = 0 ;
29801 PyObject * obj1 = 0 ;
29802 PyObject * obj2 = 0 ;
29803 char * kwnames[] = {
29804 (char *) "self",(char *) "r",(char *) "radius", NULL
29805 };
29806
29807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29809 if (!SWIG_IsOK(res1)) {
29810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29811 }
29812 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29813 {
29814 arg2 = &temp2;
29815 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29816 }
29817 ecode3 = SWIG_AsVal_double(obj2, &val3);
29818 if (!SWIG_IsOK(ecode3)) {
29819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
29820 }
29821 arg3 = static_cast< double >(val3);
29822 {
29823 PyThreadState* __tstate = wxPyBeginAllowThreads();
29824 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
29825 wxPyEndAllowThreads(__tstate);
29826 if (PyErr_Occurred()) SWIG_fail;
29827 }
29828 resultobj = SWIG_Py_Void();
29829 return resultobj;
29830 fail:
29831 return NULL;
29832 }
29833
29834
29835 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29836 PyObject *resultobj = 0;
29837 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29838 wxPoint *arg2 = 0 ;
29839 wxSize *arg3 = 0 ;
29840 double arg4 ;
29841 void *argp1 = 0 ;
29842 int res1 = 0 ;
29843 wxPoint temp2 ;
29844 wxSize temp3 ;
29845 double val4 ;
29846 int ecode4 = 0 ;
29847 PyObject * obj0 = 0 ;
29848 PyObject * obj1 = 0 ;
29849 PyObject * obj2 = 0 ;
29850 PyObject * obj3 = 0 ;
29851 char * kwnames[] = {
29852 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29853 };
29854
29855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29857 if (!SWIG_IsOK(res1)) {
29858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29859 }
29860 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29861 {
29862 arg2 = &temp2;
29863 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29864 }
29865 {
29866 arg3 = &temp3;
29867 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29868 }
29869 ecode4 = SWIG_AsVal_double(obj3, &val4);
29870 if (!SWIG_IsOK(ecode4)) {
29871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29872 }
29873 arg4 = static_cast< double >(val4);
29874 {
29875 PyThreadState* __tstate = wxPyBeginAllowThreads();
29876 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29877 wxPyEndAllowThreads(__tstate);
29878 if (PyErr_Occurred()) SWIG_fail;
29879 }
29880 resultobj = SWIG_Py_Void();
29881 return resultobj;
29882 fail:
29883 return NULL;
29884 }
29885
29886
29887 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29888 PyObject *resultobj = 0;
29889 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29890 int arg2 ;
29891 int arg3 ;
29892 int arg4 ;
29893 void *argp1 = 0 ;
29894 int res1 = 0 ;
29895 int val2 ;
29896 int ecode2 = 0 ;
29897 int val3 ;
29898 int ecode3 = 0 ;
29899 int val4 ;
29900 int ecode4 = 0 ;
29901 PyObject * obj0 = 0 ;
29902 PyObject * obj1 = 0 ;
29903 PyObject * obj2 = 0 ;
29904 PyObject * obj3 = 0 ;
29905 char * kwnames[] = {
29906 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
29907 };
29908
29909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29911 if (!SWIG_IsOK(res1)) {
29912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29913 }
29914 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29915 ecode2 = SWIG_AsVal_int(obj1, &val2);
29916 if (!SWIG_IsOK(ecode2)) {
29917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
29918 }
29919 arg2 = static_cast< int >(val2);
29920 ecode3 = SWIG_AsVal_int(obj2, &val3);
29921 if (!SWIG_IsOK(ecode3)) {
29922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
29923 }
29924 arg3 = static_cast< int >(val3);
29925 ecode4 = SWIG_AsVal_int(obj3, &val4);
29926 if (!SWIG_IsOK(ecode4)) {
29927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
29928 }
29929 arg4 = static_cast< int >(val4);
29930 {
29931 PyThreadState* __tstate = wxPyBeginAllowThreads();
29932 (arg1)->DrawCircle(arg2,arg3,arg4);
29933 wxPyEndAllowThreads(__tstate);
29934 if (PyErr_Occurred()) SWIG_fail;
29935 }
29936 resultobj = SWIG_Py_Void();
29937 return resultobj;
29938 fail:
29939 return NULL;
29940 }
29941
29942
29943 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29944 PyObject *resultobj = 0;
29945 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29946 wxPoint *arg2 = 0 ;
29947 int arg3 ;
29948 void *argp1 = 0 ;
29949 int res1 = 0 ;
29950 wxPoint temp2 ;
29951 int val3 ;
29952 int ecode3 = 0 ;
29953 PyObject * obj0 = 0 ;
29954 PyObject * obj1 = 0 ;
29955 PyObject * obj2 = 0 ;
29956 char * kwnames[] = {
29957 (char *) "self",(char *) "pt",(char *) "radius", NULL
29958 };
29959
29960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29962 if (!SWIG_IsOK(res1)) {
29963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29964 }
29965 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29966 {
29967 arg2 = &temp2;
29968 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29969 }
29970 ecode3 = SWIG_AsVal_int(obj2, &val3);
29971 if (!SWIG_IsOK(ecode3)) {
29972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
29973 }
29974 arg3 = static_cast< int >(val3);
29975 {
29976 PyThreadState* __tstate = wxPyBeginAllowThreads();
29977 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
29978 wxPyEndAllowThreads(__tstate);
29979 if (PyErr_Occurred()) SWIG_fail;
29980 }
29981 resultobj = SWIG_Py_Void();
29982 return resultobj;
29983 fail:
29984 return NULL;
29985 }
29986
29987
29988 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29989 PyObject *resultobj = 0;
29990 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29991 int arg2 ;
29992 int arg3 ;
29993 int arg4 ;
29994 int arg5 ;
29995 void *argp1 = 0 ;
29996 int res1 = 0 ;
29997 int val2 ;
29998 int ecode2 = 0 ;
29999 int val3 ;
30000 int ecode3 = 0 ;
30001 int val4 ;
30002 int ecode4 = 0 ;
30003 int val5 ;
30004 int ecode5 = 0 ;
30005 PyObject * obj0 = 0 ;
30006 PyObject * obj1 = 0 ;
30007 PyObject * obj2 = 0 ;
30008 PyObject * obj3 = 0 ;
30009 PyObject * obj4 = 0 ;
30010 char * kwnames[] = {
30011 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30012 };
30013
30014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30016 if (!SWIG_IsOK(res1)) {
30017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30018 }
30019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30020 ecode2 = SWIG_AsVal_int(obj1, &val2);
30021 if (!SWIG_IsOK(ecode2)) {
30022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
30023 }
30024 arg2 = static_cast< int >(val2);
30025 ecode3 = SWIG_AsVal_int(obj2, &val3);
30026 if (!SWIG_IsOK(ecode3)) {
30027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
30028 }
30029 arg3 = static_cast< int >(val3);
30030 ecode4 = SWIG_AsVal_int(obj3, &val4);
30031 if (!SWIG_IsOK(ecode4)) {
30032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
30033 }
30034 arg4 = static_cast< int >(val4);
30035 ecode5 = SWIG_AsVal_int(obj4, &val5);
30036 if (!SWIG_IsOK(ecode5)) {
30037 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
30038 }
30039 arg5 = static_cast< int >(val5);
30040 {
30041 PyThreadState* __tstate = wxPyBeginAllowThreads();
30042 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30043 wxPyEndAllowThreads(__tstate);
30044 if (PyErr_Occurred()) SWIG_fail;
30045 }
30046 resultobj = SWIG_Py_Void();
30047 return resultobj;
30048 fail:
30049 return NULL;
30050 }
30051
30052
30053 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30054 PyObject *resultobj = 0;
30055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30056 wxRect *arg2 = 0 ;
30057 void *argp1 = 0 ;
30058 int res1 = 0 ;
30059 wxRect temp2 ;
30060 PyObject * obj0 = 0 ;
30061 PyObject * obj1 = 0 ;
30062 char * kwnames[] = {
30063 (char *) "self",(char *) "rect", NULL
30064 };
30065
30066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
30067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30068 if (!SWIG_IsOK(res1)) {
30069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30070 }
30071 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30072 {
30073 arg2 = &temp2;
30074 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30075 }
30076 {
30077 PyThreadState* __tstate = wxPyBeginAllowThreads();
30078 (arg1)->DrawEllipse((wxRect const &)*arg2);
30079 wxPyEndAllowThreads(__tstate);
30080 if (PyErr_Occurred()) SWIG_fail;
30081 }
30082 resultobj = SWIG_Py_Void();
30083 return resultobj;
30084 fail:
30085 return NULL;
30086 }
30087
30088
30089 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30090 PyObject *resultobj = 0;
30091 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30092 wxPoint *arg2 = 0 ;
30093 wxSize *arg3 = 0 ;
30094 void *argp1 = 0 ;
30095 int res1 = 0 ;
30096 wxPoint temp2 ;
30097 wxSize temp3 ;
30098 PyObject * obj0 = 0 ;
30099 PyObject * obj1 = 0 ;
30100 PyObject * obj2 = 0 ;
30101 char * kwnames[] = {
30102 (char *) "self",(char *) "pt",(char *) "sz", NULL
30103 };
30104
30105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30107 if (!SWIG_IsOK(res1)) {
30108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30109 }
30110 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30111 {
30112 arg2 = &temp2;
30113 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30114 }
30115 {
30116 arg3 = &temp3;
30117 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30118 }
30119 {
30120 PyThreadState* __tstate = wxPyBeginAllowThreads();
30121 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
30122 wxPyEndAllowThreads(__tstate);
30123 if (PyErr_Occurred()) SWIG_fail;
30124 }
30125 resultobj = SWIG_Py_Void();
30126 return resultobj;
30127 fail:
30128 return NULL;
30129 }
30130
30131
30132 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30133 PyObject *resultobj = 0;
30134 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30135 wxIcon *arg2 = 0 ;
30136 int arg3 ;
30137 int arg4 ;
30138 void *argp1 = 0 ;
30139 int res1 = 0 ;
30140 void *argp2 = 0 ;
30141 int res2 = 0 ;
30142 int val3 ;
30143 int ecode3 = 0 ;
30144 int val4 ;
30145 int ecode4 = 0 ;
30146 PyObject * obj0 = 0 ;
30147 PyObject * obj1 = 0 ;
30148 PyObject * obj2 = 0 ;
30149 PyObject * obj3 = 0 ;
30150 char * kwnames[] = {
30151 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
30152 };
30153
30154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30156 if (!SWIG_IsOK(res1)) {
30157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30158 }
30159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30161 if (!SWIG_IsOK(res2)) {
30162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30163 }
30164 if (!argp2) {
30165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30166 }
30167 arg2 = reinterpret_cast< wxIcon * >(argp2);
30168 ecode3 = SWIG_AsVal_int(obj2, &val3);
30169 if (!SWIG_IsOK(ecode3)) {
30170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
30171 }
30172 arg3 = static_cast< int >(val3);
30173 ecode4 = SWIG_AsVal_int(obj3, &val4);
30174 if (!SWIG_IsOK(ecode4)) {
30175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
30176 }
30177 arg4 = static_cast< int >(val4);
30178 {
30179 PyThreadState* __tstate = wxPyBeginAllowThreads();
30180 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
30181 wxPyEndAllowThreads(__tstate);
30182 if (PyErr_Occurred()) SWIG_fail;
30183 }
30184 resultobj = SWIG_Py_Void();
30185 return resultobj;
30186 fail:
30187 return NULL;
30188 }
30189
30190
30191 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30192 PyObject *resultobj = 0;
30193 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30194 wxIcon *arg2 = 0 ;
30195 wxPoint *arg3 = 0 ;
30196 void *argp1 = 0 ;
30197 int res1 = 0 ;
30198 void *argp2 = 0 ;
30199 int res2 = 0 ;
30200 wxPoint temp3 ;
30201 PyObject * obj0 = 0 ;
30202 PyObject * obj1 = 0 ;
30203 PyObject * obj2 = 0 ;
30204 char * kwnames[] = {
30205 (char *) "self",(char *) "icon",(char *) "pt", NULL
30206 };
30207
30208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30210 if (!SWIG_IsOK(res1)) {
30211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30212 }
30213 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30215 if (!SWIG_IsOK(res2)) {
30216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30217 }
30218 if (!argp2) {
30219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30220 }
30221 arg2 = reinterpret_cast< wxIcon * >(argp2);
30222 {
30223 arg3 = &temp3;
30224 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30225 }
30226 {
30227 PyThreadState* __tstate = wxPyBeginAllowThreads();
30228 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
30229 wxPyEndAllowThreads(__tstate);
30230 if (PyErr_Occurred()) SWIG_fail;
30231 }
30232 resultobj = SWIG_Py_Void();
30233 return resultobj;
30234 fail:
30235 return NULL;
30236 }
30237
30238
30239 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30240 PyObject *resultobj = 0;
30241 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30242 wxBitmap *arg2 = 0 ;
30243 int arg3 ;
30244 int arg4 ;
30245 bool arg5 = (bool) false ;
30246 void *argp1 = 0 ;
30247 int res1 = 0 ;
30248 void *argp2 = 0 ;
30249 int res2 = 0 ;
30250 int val3 ;
30251 int ecode3 = 0 ;
30252 int val4 ;
30253 int ecode4 = 0 ;
30254 bool val5 ;
30255 int ecode5 = 0 ;
30256 PyObject * obj0 = 0 ;
30257 PyObject * obj1 = 0 ;
30258 PyObject * obj2 = 0 ;
30259 PyObject * obj3 = 0 ;
30260 PyObject * obj4 = 0 ;
30261 char * kwnames[] = {
30262 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
30263 };
30264
30265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30267 if (!SWIG_IsOK(res1)) {
30268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30269 }
30270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30272 if (!SWIG_IsOK(res2)) {
30273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30274 }
30275 if (!argp2) {
30276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30277 }
30278 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30279 ecode3 = SWIG_AsVal_int(obj2, &val3);
30280 if (!SWIG_IsOK(ecode3)) {
30281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
30282 }
30283 arg3 = static_cast< int >(val3);
30284 ecode4 = SWIG_AsVal_int(obj3, &val4);
30285 if (!SWIG_IsOK(ecode4)) {
30286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
30287 }
30288 arg4 = static_cast< int >(val4);
30289 if (obj4) {
30290 ecode5 = SWIG_AsVal_bool(obj4, &val5);
30291 if (!SWIG_IsOK(ecode5)) {
30292 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
30293 }
30294 arg5 = static_cast< bool >(val5);
30295 }
30296 {
30297 PyThreadState* __tstate = wxPyBeginAllowThreads();
30298 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
30299 wxPyEndAllowThreads(__tstate);
30300 if (PyErr_Occurred()) SWIG_fail;
30301 }
30302 resultobj = SWIG_Py_Void();
30303 return resultobj;
30304 fail:
30305 return NULL;
30306 }
30307
30308
30309 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30310 PyObject *resultobj = 0;
30311 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30312 wxBitmap *arg2 = 0 ;
30313 wxPoint *arg3 = 0 ;
30314 bool arg4 = (bool) false ;
30315 void *argp1 = 0 ;
30316 int res1 = 0 ;
30317 void *argp2 = 0 ;
30318 int res2 = 0 ;
30319 wxPoint temp3 ;
30320 bool val4 ;
30321 int ecode4 = 0 ;
30322 PyObject * obj0 = 0 ;
30323 PyObject * obj1 = 0 ;
30324 PyObject * obj2 = 0 ;
30325 PyObject * obj3 = 0 ;
30326 char * kwnames[] = {
30327 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
30328 };
30329
30330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30332 if (!SWIG_IsOK(res1)) {
30333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30334 }
30335 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30337 if (!SWIG_IsOK(res2)) {
30338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30339 }
30340 if (!argp2) {
30341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30342 }
30343 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30344 {
30345 arg3 = &temp3;
30346 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30347 }
30348 if (obj3) {
30349 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30350 if (!SWIG_IsOK(ecode4)) {
30351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
30352 }
30353 arg4 = static_cast< bool >(val4);
30354 }
30355 {
30356 PyThreadState* __tstate = wxPyBeginAllowThreads();
30357 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
30358 wxPyEndAllowThreads(__tstate);
30359 if (PyErr_Occurred()) SWIG_fail;
30360 }
30361 resultobj = SWIG_Py_Void();
30362 return resultobj;
30363 fail:
30364 return NULL;
30365 }
30366
30367
30368 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30369 PyObject *resultobj = 0;
30370 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30371 wxString *arg2 = 0 ;
30372 int arg3 ;
30373 int arg4 ;
30374 void *argp1 = 0 ;
30375 int res1 = 0 ;
30376 bool temp2 = false ;
30377 int val3 ;
30378 int ecode3 = 0 ;
30379 int val4 ;
30380 int ecode4 = 0 ;
30381 PyObject * obj0 = 0 ;
30382 PyObject * obj1 = 0 ;
30383 PyObject * obj2 = 0 ;
30384 PyObject * obj3 = 0 ;
30385 char * kwnames[] = {
30386 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
30387 };
30388
30389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30391 if (!SWIG_IsOK(res1)) {
30392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30393 }
30394 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30395 {
30396 arg2 = wxString_in_helper(obj1);
30397 if (arg2 == NULL) SWIG_fail;
30398 temp2 = true;
30399 }
30400 ecode3 = SWIG_AsVal_int(obj2, &val3);
30401 if (!SWIG_IsOK(ecode3)) {
30402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
30403 }
30404 arg3 = static_cast< int >(val3);
30405 ecode4 = SWIG_AsVal_int(obj3, &val4);
30406 if (!SWIG_IsOK(ecode4)) {
30407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
30408 }
30409 arg4 = static_cast< int >(val4);
30410 {
30411 PyThreadState* __tstate = wxPyBeginAllowThreads();
30412 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
30413 wxPyEndAllowThreads(__tstate);
30414 if (PyErr_Occurred()) SWIG_fail;
30415 }
30416 resultobj = SWIG_Py_Void();
30417 {
30418 if (temp2)
30419 delete arg2;
30420 }
30421 return resultobj;
30422 fail:
30423 {
30424 if (temp2)
30425 delete arg2;
30426 }
30427 return NULL;
30428 }
30429
30430
30431 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30432 PyObject *resultobj = 0;
30433 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30434 wxString *arg2 = 0 ;
30435 wxPoint *arg3 = 0 ;
30436 void *argp1 = 0 ;
30437 int res1 = 0 ;
30438 bool temp2 = false ;
30439 wxPoint temp3 ;
30440 PyObject * obj0 = 0 ;
30441 PyObject * obj1 = 0 ;
30442 PyObject * obj2 = 0 ;
30443 char * kwnames[] = {
30444 (char *) "self",(char *) "text",(char *) "pt", NULL
30445 };
30446
30447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30449 if (!SWIG_IsOK(res1)) {
30450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30451 }
30452 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30453 {
30454 arg2 = wxString_in_helper(obj1);
30455 if (arg2 == NULL) SWIG_fail;
30456 temp2 = true;
30457 }
30458 {
30459 arg3 = &temp3;
30460 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30461 }
30462 {
30463 PyThreadState* __tstate = wxPyBeginAllowThreads();
30464 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
30465 wxPyEndAllowThreads(__tstate);
30466 if (PyErr_Occurred()) SWIG_fail;
30467 }
30468 resultobj = SWIG_Py_Void();
30469 {
30470 if (temp2)
30471 delete arg2;
30472 }
30473 return resultobj;
30474 fail:
30475 {
30476 if (temp2)
30477 delete arg2;
30478 }
30479 return NULL;
30480 }
30481
30482
30483 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30484 PyObject *resultobj = 0;
30485 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30486 wxString *arg2 = 0 ;
30487 int arg3 ;
30488 int arg4 ;
30489 double arg5 ;
30490 void *argp1 = 0 ;
30491 int res1 = 0 ;
30492 bool temp2 = false ;
30493 int val3 ;
30494 int ecode3 = 0 ;
30495 int val4 ;
30496 int ecode4 = 0 ;
30497 double val5 ;
30498 int ecode5 = 0 ;
30499 PyObject * obj0 = 0 ;
30500 PyObject * obj1 = 0 ;
30501 PyObject * obj2 = 0 ;
30502 PyObject * obj3 = 0 ;
30503 PyObject * obj4 = 0 ;
30504 char * kwnames[] = {
30505 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
30506 };
30507
30508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30510 if (!SWIG_IsOK(res1)) {
30511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30512 }
30513 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30514 {
30515 arg2 = wxString_in_helper(obj1);
30516 if (arg2 == NULL) SWIG_fail;
30517 temp2 = true;
30518 }
30519 ecode3 = SWIG_AsVal_int(obj2, &val3);
30520 if (!SWIG_IsOK(ecode3)) {
30521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
30522 }
30523 arg3 = static_cast< int >(val3);
30524 ecode4 = SWIG_AsVal_int(obj3, &val4);
30525 if (!SWIG_IsOK(ecode4)) {
30526 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
30527 }
30528 arg4 = static_cast< int >(val4);
30529 ecode5 = SWIG_AsVal_double(obj4, &val5);
30530 if (!SWIG_IsOK(ecode5)) {
30531 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
30532 }
30533 arg5 = static_cast< double >(val5);
30534 {
30535 PyThreadState* __tstate = wxPyBeginAllowThreads();
30536 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
30537 wxPyEndAllowThreads(__tstate);
30538 if (PyErr_Occurred()) SWIG_fail;
30539 }
30540 resultobj = SWIG_Py_Void();
30541 {
30542 if (temp2)
30543 delete arg2;
30544 }
30545 return resultobj;
30546 fail:
30547 {
30548 if (temp2)
30549 delete arg2;
30550 }
30551 return NULL;
30552 }
30553
30554
30555 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30556 PyObject *resultobj = 0;
30557 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30558 wxString *arg2 = 0 ;
30559 wxPoint *arg3 = 0 ;
30560 double arg4 ;
30561 void *argp1 = 0 ;
30562 int res1 = 0 ;
30563 bool temp2 = false ;
30564 wxPoint temp3 ;
30565 double val4 ;
30566 int ecode4 = 0 ;
30567 PyObject * obj0 = 0 ;
30568 PyObject * obj1 = 0 ;
30569 PyObject * obj2 = 0 ;
30570 PyObject * obj3 = 0 ;
30571 char * kwnames[] = {
30572 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
30573 };
30574
30575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30577 if (!SWIG_IsOK(res1)) {
30578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30579 }
30580 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30581 {
30582 arg2 = wxString_in_helper(obj1);
30583 if (arg2 == NULL) SWIG_fail;
30584 temp2 = true;
30585 }
30586 {
30587 arg3 = &temp3;
30588 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30589 }
30590 ecode4 = SWIG_AsVal_double(obj3, &val4);
30591 if (!SWIG_IsOK(ecode4)) {
30592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
30593 }
30594 arg4 = static_cast< double >(val4);
30595 {
30596 PyThreadState* __tstate = wxPyBeginAllowThreads();
30597 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
30598 wxPyEndAllowThreads(__tstate);
30599 if (PyErr_Occurred()) SWIG_fail;
30600 }
30601 resultobj = SWIG_Py_Void();
30602 {
30603 if (temp2)
30604 delete arg2;
30605 }
30606 return resultobj;
30607 fail:
30608 {
30609 if (temp2)
30610 delete arg2;
30611 }
30612 return NULL;
30613 }
30614
30615
30616 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30617 PyObject *resultobj = 0;
30618 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30619 int arg2 ;
30620 wxPoint *arg3 = (wxPoint *) 0 ;
30621 int arg4 = (int) 0 ;
30622 int arg5 = (int) 0 ;
30623 void *argp1 = 0 ;
30624 int res1 = 0 ;
30625 int val4 ;
30626 int ecode4 = 0 ;
30627 int val5 ;
30628 int ecode5 = 0 ;
30629 PyObject * obj0 = 0 ;
30630 PyObject * obj1 = 0 ;
30631 PyObject * obj2 = 0 ;
30632 PyObject * obj3 = 0 ;
30633 char * kwnames[] = {
30634 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
30635 };
30636
30637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30639 if (!SWIG_IsOK(res1)) {
30640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30641 }
30642 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30643 {
30644 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30645 if (arg3 == NULL) SWIG_fail;
30646 }
30647 if (obj2) {
30648 ecode4 = SWIG_AsVal_int(obj2, &val4);
30649 if (!SWIG_IsOK(ecode4)) {
30650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
30651 }
30652 arg4 = static_cast< int >(val4);
30653 }
30654 if (obj3) {
30655 ecode5 = SWIG_AsVal_int(obj3, &val5);
30656 if (!SWIG_IsOK(ecode5)) {
30657 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
30658 }
30659 arg5 = static_cast< int >(val5);
30660 }
30661 {
30662 PyThreadState* __tstate = wxPyBeginAllowThreads();
30663 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
30664 wxPyEndAllowThreads(__tstate);
30665 if (PyErr_Occurred()) SWIG_fail;
30666 }
30667 resultobj = SWIG_Py_Void();
30668 {
30669 if (arg3) delete [] arg3;
30670 }
30671 return resultobj;
30672 fail:
30673 {
30674 if (arg3) delete [] arg3;
30675 }
30676 return NULL;
30677 }
30678
30679
30680 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30681 PyObject *resultobj = 0;
30682 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30683 int arg2 ;
30684 wxPoint *arg3 = (wxPoint *) 0 ;
30685 int arg4 = (int) 0 ;
30686 int arg5 = (int) 0 ;
30687 int arg6 = (int) wxODDEVEN_RULE ;
30688 void *argp1 = 0 ;
30689 int res1 = 0 ;
30690 int val4 ;
30691 int ecode4 = 0 ;
30692 int val5 ;
30693 int ecode5 = 0 ;
30694 int val6 ;
30695 int ecode6 = 0 ;
30696 PyObject * obj0 = 0 ;
30697 PyObject * obj1 = 0 ;
30698 PyObject * obj2 = 0 ;
30699 PyObject * obj3 = 0 ;
30700 PyObject * obj4 = 0 ;
30701 char * kwnames[] = {
30702 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
30703 };
30704
30705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30707 if (!SWIG_IsOK(res1)) {
30708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30709 }
30710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30711 {
30712 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30713 if (arg3 == NULL) SWIG_fail;
30714 }
30715 if (obj2) {
30716 ecode4 = SWIG_AsVal_int(obj2, &val4);
30717 if (!SWIG_IsOK(ecode4)) {
30718 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
30719 }
30720 arg4 = static_cast< int >(val4);
30721 }
30722 if (obj3) {
30723 ecode5 = SWIG_AsVal_int(obj3, &val5);
30724 if (!SWIG_IsOK(ecode5)) {
30725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
30726 }
30727 arg5 = static_cast< int >(val5);
30728 }
30729 if (obj4) {
30730 ecode6 = SWIG_AsVal_int(obj4, &val6);
30731 if (!SWIG_IsOK(ecode6)) {
30732 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
30733 }
30734 arg6 = static_cast< int >(val6);
30735 }
30736 {
30737 PyThreadState* __tstate = wxPyBeginAllowThreads();
30738 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
30739 wxPyEndAllowThreads(__tstate);
30740 if (PyErr_Occurred()) SWIG_fail;
30741 }
30742 resultobj = SWIG_Py_Void();
30743 {
30744 if (arg3) delete [] arg3;
30745 }
30746 return resultobj;
30747 fail:
30748 {
30749 if (arg3) delete [] arg3;
30750 }
30751 return NULL;
30752 }
30753
30754
30755 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30756 PyObject *resultobj = 0;
30757 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30758 wxString *arg2 = 0 ;
30759 wxRect *arg3 = 0 ;
30760 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30761 int arg5 = (int) -1 ;
30762 void *argp1 = 0 ;
30763 int res1 = 0 ;
30764 bool temp2 = false ;
30765 wxRect temp3 ;
30766 int val4 ;
30767 int ecode4 = 0 ;
30768 int val5 ;
30769 int ecode5 = 0 ;
30770 PyObject * obj0 = 0 ;
30771 PyObject * obj1 = 0 ;
30772 PyObject * obj2 = 0 ;
30773 PyObject * obj3 = 0 ;
30774 PyObject * obj4 = 0 ;
30775 char * kwnames[] = {
30776 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30777 };
30778
30779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30781 if (!SWIG_IsOK(res1)) {
30782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30783 }
30784 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30785 {
30786 arg2 = wxString_in_helper(obj1);
30787 if (arg2 == NULL) SWIG_fail;
30788 temp2 = true;
30789 }
30790 {
30791 arg3 = &temp3;
30792 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30793 }
30794 if (obj3) {
30795 ecode4 = SWIG_AsVal_int(obj3, &val4);
30796 if (!SWIG_IsOK(ecode4)) {
30797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
30798 }
30799 arg4 = static_cast< int >(val4);
30800 }
30801 if (obj4) {
30802 ecode5 = SWIG_AsVal_int(obj4, &val5);
30803 if (!SWIG_IsOK(ecode5)) {
30804 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
30805 }
30806 arg5 = static_cast< int >(val5);
30807 }
30808 {
30809 PyThreadState* __tstate = wxPyBeginAllowThreads();
30810 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
30811 wxPyEndAllowThreads(__tstate);
30812 if (PyErr_Occurred()) SWIG_fail;
30813 }
30814 resultobj = SWIG_Py_Void();
30815 {
30816 if (temp2)
30817 delete arg2;
30818 }
30819 return resultobj;
30820 fail:
30821 {
30822 if (temp2)
30823 delete arg2;
30824 }
30825 return NULL;
30826 }
30827
30828
30829 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30830 PyObject *resultobj = 0;
30831 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30832 wxString *arg2 = 0 ;
30833 wxBitmap *arg3 = 0 ;
30834 wxRect *arg4 = 0 ;
30835 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30836 int arg6 = (int) -1 ;
30837 void *argp1 = 0 ;
30838 int res1 = 0 ;
30839 bool temp2 = false ;
30840 void *argp3 = 0 ;
30841 int res3 = 0 ;
30842 wxRect temp4 ;
30843 int val5 ;
30844 int ecode5 = 0 ;
30845 int val6 ;
30846 int ecode6 = 0 ;
30847 PyObject * obj0 = 0 ;
30848 PyObject * obj1 = 0 ;
30849 PyObject * obj2 = 0 ;
30850 PyObject * obj3 = 0 ;
30851 PyObject * obj4 = 0 ;
30852 PyObject * obj5 = 0 ;
30853 char * kwnames[] = {
30854 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30855 };
30856
30857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30859 if (!SWIG_IsOK(res1)) {
30860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30861 }
30862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30863 {
30864 arg2 = wxString_in_helper(obj1);
30865 if (arg2 == NULL) SWIG_fail;
30866 temp2 = true;
30867 }
30868 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30869 if (!SWIG_IsOK(res3)) {
30870 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30871 }
30872 if (!argp3) {
30873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30874 }
30875 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30876 {
30877 arg4 = &temp4;
30878 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30879 }
30880 if (obj4) {
30881 ecode5 = SWIG_AsVal_int(obj4, &val5);
30882 if (!SWIG_IsOK(ecode5)) {
30883 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
30884 }
30885 arg5 = static_cast< int >(val5);
30886 }
30887 if (obj5) {
30888 ecode6 = SWIG_AsVal_int(obj5, &val6);
30889 if (!SWIG_IsOK(ecode6)) {
30890 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
30891 }
30892 arg6 = static_cast< int >(val6);
30893 }
30894 {
30895 PyThreadState* __tstate = wxPyBeginAllowThreads();
30896 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
30897 wxPyEndAllowThreads(__tstate);
30898 if (PyErr_Occurred()) SWIG_fail;
30899 }
30900 resultobj = SWIG_Py_Void();
30901 {
30902 if (temp2)
30903 delete arg2;
30904 }
30905 return resultobj;
30906 fail:
30907 {
30908 if (temp2)
30909 delete arg2;
30910 }
30911 return NULL;
30912 }
30913
30914
30915 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30916 PyObject *resultobj = 0;
30917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30918 int arg2 ;
30919 wxPoint *arg3 = (wxPoint *) 0 ;
30920 void *argp1 = 0 ;
30921 int res1 = 0 ;
30922 PyObject * obj0 = 0 ;
30923 PyObject * obj1 = 0 ;
30924 char * kwnames[] = {
30925 (char *) "self",(char *) "points", NULL
30926 };
30927
30928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
30929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30930 if (!SWIG_IsOK(res1)) {
30931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30932 }
30933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30934 {
30935 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30936 if (arg3 == NULL) SWIG_fail;
30937 }
30938 {
30939 PyThreadState* __tstate = wxPyBeginAllowThreads();
30940 (arg1)->DrawSpline(arg2,arg3);
30941 wxPyEndAllowThreads(__tstate);
30942 if (PyErr_Occurred()) SWIG_fail;
30943 }
30944 resultobj = SWIG_Py_Void();
30945 {
30946 if (arg3) delete [] arg3;
30947 }
30948 return resultobj;
30949 fail:
30950 {
30951 if (arg3) delete [] arg3;
30952 }
30953 return NULL;
30954 }
30955
30956
30957 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30958 PyObject *resultobj = 0;
30959 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30960 void *argp1 = 0 ;
30961 int res1 = 0 ;
30962 PyObject *swig_obj[1] ;
30963
30964 if (!args) SWIG_fail;
30965 swig_obj[0] = args;
30966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30967 if (!SWIG_IsOK(res1)) {
30968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30969 }
30970 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30971 {
30972 PyThreadState* __tstate = wxPyBeginAllowThreads();
30973 (arg1)->Clear();
30974 wxPyEndAllowThreads(__tstate);
30975 if (PyErr_Occurred()) SWIG_fail;
30976 }
30977 resultobj = SWIG_Py_Void();
30978 return resultobj;
30979 fail:
30980 return NULL;
30981 }
30982
30983
30984 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30985 PyObject *resultobj = 0;
30986 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30987 wxFont *arg2 = 0 ;
30988 void *argp1 = 0 ;
30989 int res1 = 0 ;
30990 void *argp2 = 0 ;
30991 int res2 = 0 ;
30992 PyObject * obj0 = 0 ;
30993 PyObject * obj1 = 0 ;
30994 char * kwnames[] = {
30995 (char *) "self",(char *) "font", NULL
30996 };
30997
30998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
30999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31000 if (!SWIG_IsOK(res1)) {
31001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31002 }
31003 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31005 if (!SWIG_IsOK(res2)) {
31006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31007 }
31008 if (!argp2) {
31009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31010 }
31011 arg2 = reinterpret_cast< wxFont * >(argp2);
31012 {
31013 PyThreadState* __tstate = wxPyBeginAllowThreads();
31014 (arg1)->SetFont((wxFont const &)*arg2);
31015 wxPyEndAllowThreads(__tstate);
31016 if (PyErr_Occurred()) SWIG_fail;
31017 }
31018 resultobj = SWIG_Py_Void();
31019 return resultobj;
31020 fail:
31021 return NULL;
31022 }
31023
31024
31025 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31026 PyObject *resultobj = 0;
31027 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31028 wxPen *arg2 = 0 ;
31029 void *argp1 = 0 ;
31030 int res1 = 0 ;
31031 void *argp2 = 0 ;
31032 int res2 = 0 ;
31033 PyObject * obj0 = 0 ;
31034 PyObject * obj1 = 0 ;
31035 char * kwnames[] = {
31036 (char *) "self",(char *) "pen", NULL
31037 };
31038
31039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
31040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31041 if (!SWIG_IsOK(res1)) {
31042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31043 }
31044 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31046 if (!SWIG_IsOK(res2)) {
31047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31048 }
31049 if (!argp2) {
31050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31051 }
31052 arg2 = reinterpret_cast< wxPen * >(argp2);
31053 {
31054 PyThreadState* __tstate = wxPyBeginAllowThreads();
31055 (arg1)->SetPen((wxPen const &)*arg2);
31056 wxPyEndAllowThreads(__tstate);
31057 if (PyErr_Occurred()) SWIG_fail;
31058 }
31059 resultobj = SWIG_Py_Void();
31060 return resultobj;
31061 fail:
31062 return NULL;
31063 }
31064
31065
31066 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31067 PyObject *resultobj = 0;
31068 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31069 wxBrush *arg2 = 0 ;
31070 void *argp1 = 0 ;
31071 int res1 = 0 ;
31072 void *argp2 = 0 ;
31073 int res2 = 0 ;
31074 PyObject * obj0 = 0 ;
31075 PyObject * obj1 = 0 ;
31076 char * kwnames[] = {
31077 (char *) "self",(char *) "brush", NULL
31078 };
31079
31080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31082 if (!SWIG_IsOK(res1)) {
31083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31084 }
31085 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31086 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31087 if (!SWIG_IsOK(res2)) {
31088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31089 }
31090 if (!argp2) {
31091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31092 }
31093 arg2 = reinterpret_cast< wxBrush * >(argp2);
31094 {
31095 PyThreadState* __tstate = wxPyBeginAllowThreads();
31096 (arg1)->SetBrush((wxBrush const &)*arg2);
31097 wxPyEndAllowThreads(__tstate);
31098 if (PyErr_Occurred()) SWIG_fail;
31099 }
31100 resultobj = SWIG_Py_Void();
31101 return resultobj;
31102 fail:
31103 return NULL;
31104 }
31105
31106
31107 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31108 PyObject *resultobj = 0;
31109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31110 wxBrush *arg2 = 0 ;
31111 void *argp1 = 0 ;
31112 int res1 = 0 ;
31113 void *argp2 = 0 ;
31114 int res2 = 0 ;
31115 PyObject * obj0 = 0 ;
31116 PyObject * obj1 = 0 ;
31117 char * kwnames[] = {
31118 (char *) "self",(char *) "brush", NULL
31119 };
31120
31121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31123 if (!SWIG_IsOK(res1)) {
31124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31125 }
31126 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31128 if (!SWIG_IsOK(res2)) {
31129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31130 }
31131 if (!argp2) {
31132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31133 }
31134 arg2 = reinterpret_cast< wxBrush * >(argp2);
31135 {
31136 PyThreadState* __tstate = wxPyBeginAllowThreads();
31137 (arg1)->SetBackground((wxBrush const &)*arg2);
31138 wxPyEndAllowThreads(__tstate);
31139 if (PyErr_Occurred()) SWIG_fail;
31140 }
31141 resultobj = SWIG_Py_Void();
31142 return resultobj;
31143 fail:
31144 return NULL;
31145 }
31146
31147
31148 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31149 PyObject *resultobj = 0;
31150 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31151 int arg2 ;
31152 void *argp1 = 0 ;
31153 int res1 = 0 ;
31154 int val2 ;
31155 int ecode2 = 0 ;
31156 PyObject * obj0 = 0 ;
31157 PyObject * obj1 = 0 ;
31158 char * kwnames[] = {
31159 (char *) "self",(char *) "mode", NULL
31160 };
31161
31162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
31163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31164 if (!SWIG_IsOK(res1)) {
31165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31166 }
31167 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31168 ecode2 = SWIG_AsVal_int(obj1, &val2);
31169 if (!SWIG_IsOK(ecode2)) {
31170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
31171 }
31172 arg2 = static_cast< int >(val2);
31173 {
31174 PyThreadState* __tstate = wxPyBeginAllowThreads();
31175 (arg1)->SetBackgroundMode(arg2);
31176 wxPyEndAllowThreads(__tstate);
31177 if (PyErr_Occurred()) SWIG_fail;
31178 }
31179 resultobj = SWIG_Py_Void();
31180 return resultobj;
31181 fail:
31182 return NULL;
31183 }
31184
31185
31186 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31187 PyObject *resultobj = 0;
31188 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31189 wxPalette *arg2 = 0 ;
31190 void *argp1 = 0 ;
31191 int res1 = 0 ;
31192 void *argp2 = 0 ;
31193 int res2 = 0 ;
31194 PyObject * obj0 = 0 ;
31195 PyObject * obj1 = 0 ;
31196 char * kwnames[] = {
31197 (char *) "self",(char *) "palette", NULL
31198 };
31199
31200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
31201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31202 if (!SWIG_IsOK(res1)) {
31203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31204 }
31205 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31206 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
31207 if (!SWIG_IsOK(res2)) {
31208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31209 }
31210 if (!argp2) {
31211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31212 }
31213 arg2 = reinterpret_cast< wxPalette * >(argp2);
31214 {
31215 PyThreadState* __tstate = wxPyBeginAllowThreads();
31216 (arg1)->SetPalette((wxPalette const &)*arg2);
31217 wxPyEndAllowThreads(__tstate);
31218 if (PyErr_Occurred()) SWIG_fail;
31219 }
31220 resultobj = SWIG_Py_Void();
31221 return resultobj;
31222 fail:
31223 return NULL;
31224 }
31225
31226
31227 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31228 PyObject *resultobj = 0;
31229 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31230 wxColour *arg2 = 0 ;
31231 void *argp1 = 0 ;
31232 int res1 = 0 ;
31233 wxColour temp2 ;
31234 PyObject * obj0 = 0 ;
31235 PyObject * obj1 = 0 ;
31236 char * kwnames[] = {
31237 (char *) "self",(char *) "colour", NULL
31238 };
31239
31240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
31241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31242 if (!SWIG_IsOK(res1)) {
31243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31244 }
31245 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31246 {
31247 arg2 = &temp2;
31248 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31249 }
31250 {
31251 PyThreadState* __tstate = wxPyBeginAllowThreads();
31252 (arg1)->SetTextForeground((wxColour const &)*arg2);
31253 wxPyEndAllowThreads(__tstate);
31254 if (PyErr_Occurred()) SWIG_fail;
31255 }
31256 resultobj = SWIG_Py_Void();
31257 return resultobj;
31258 fail:
31259 return NULL;
31260 }
31261
31262
31263 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31264 PyObject *resultobj = 0;
31265 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31266 wxColour *arg2 = 0 ;
31267 void *argp1 = 0 ;
31268 int res1 = 0 ;
31269 wxColour temp2 ;
31270 PyObject * obj0 = 0 ;
31271 PyObject * obj1 = 0 ;
31272 char * kwnames[] = {
31273 (char *) "self",(char *) "colour", NULL
31274 };
31275
31276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31278 if (!SWIG_IsOK(res1)) {
31279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31280 }
31281 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31282 {
31283 arg2 = &temp2;
31284 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31285 }
31286 {
31287 PyThreadState* __tstate = wxPyBeginAllowThreads();
31288 (arg1)->SetTextBackground((wxColour const &)*arg2);
31289 wxPyEndAllowThreads(__tstate);
31290 if (PyErr_Occurred()) SWIG_fail;
31291 }
31292 resultobj = SWIG_Py_Void();
31293 return resultobj;
31294 fail:
31295 return NULL;
31296 }
31297
31298
31299 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31300 PyObject *resultobj = 0;
31301 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31302 int arg2 ;
31303 void *argp1 = 0 ;
31304 int res1 = 0 ;
31305 int val2 ;
31306 int ecode2 = 0 ;
31307 PyObject * obj0 = 0 ;
31308 PyObject * obj1 = 0 ;
31309 char * kwnames[] = {
31310 (char *) "self",(char *) "function", NULL
31311 };
31312
31313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
31314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31315 if (!SWIG_IsOK(res1)) {
31316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31317 }
31318 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31319 ecode2 = SWIG_AsVal_int(obj1, &val2);
31320 if (!SWIG_IsOK(ecode2)) {
31321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
31322 }
31323 arg2 = static_cast< int >(val2);
31324 {
31325 PyThreadState* __tstate = wxPyBeginAllowThreads();
31326 (arg1)->SetLogicalFunction(arg2);
31327 wxPyEndAllowThreads(__tstate);
31328 if (PyErr_Occurred()) SWIG_fail;
31329 }
31330 resultobj = SWIG_Py_Void();
31331 return resultobj;
31332 fail:
31333 return NULL;
31334 }
31335
31336
31337 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31338 PyObject *obj;
31339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31340 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
31341 return SWIG_Py_Void();
31342 }
31343
31344 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31345 return SWIG_Python_InitShadowInstance(args);
31346 }
31347
31348 static PyMethodDef SwigMethods[] = {
31349 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
31350 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
31351 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
31352 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
31353 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
31354 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
31355 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
31356 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31357 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
31358 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
31359 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
31360 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
31361 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
31362 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
31363 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31364 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31365 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31366 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
31367 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
31368 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31369 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31370 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
31371 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
31372 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
31373 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
31374 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
31375 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
31376 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31377 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31378 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
31379 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
31380 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
31381 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
31382 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
31383 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
31384 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
31385 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
31386 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
31387 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
31388 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
31389 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
31390 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
31391 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31392 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
31393 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31394 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31395 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31396 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
31397 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31398 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31399 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31400 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
31401 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
31402 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
31403 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31404 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
31405 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31406 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31407 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
31408 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
31409 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
31410 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
31411 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
31412 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
31413 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
31414 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
31415 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
31416 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
31417 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31418 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
31419 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31420 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31421 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31422 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31423 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
31424 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
31425 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
31426 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
31427 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
31428 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
31429 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
31430 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
31431 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
31432 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
31433 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31434 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
31435 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
31436 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
31437 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31438 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31439 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31440 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31441 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31442 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31443 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31444 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
31445 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
31446 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
31447 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
31448 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
31449 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
31450 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
31451 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
31452 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
31453 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
31454 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
31455 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
31456 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
31457 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
31458 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
31459 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
31460 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
31461 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
31462 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
31463 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
31464 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31465 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
31466 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
31467 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31468 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31469 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31470 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31471 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31472 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
31473 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
31474 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
31475 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
31476 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
31477 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
31478 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
31479 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
31480 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
31481 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
31482 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
31483 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
31484 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31485 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
31486 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
31487 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31488 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31489 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31490 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31491 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31492 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
31493 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
31494 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
31495 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
31496 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
31497 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
31498 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
31499 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
31500 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
31501 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
31502 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31503 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31504 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31505 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
31506 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
31507 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
31508 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
31509 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31510 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31511 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31512 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31513 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
31514 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
31515 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31516 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
31517 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
31518 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
31519 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
31520 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
31521 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
31522 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
31523 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
31524 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
31525 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31526 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31527 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
31528 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31529 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31530 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31531 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
31532 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
31533 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
31534 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
31535 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31536 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31537 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
31538 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
31539 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
31540 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
31541 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31542 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31543 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
31544 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
31545 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
31546 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31547 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
31548 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31549 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
31550 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
31551 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
31552 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
31553 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
31554 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31555 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
31556 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
31557 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31558 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31559 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
31560 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
31561 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31562 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
31563 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
31564 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31565 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
31566 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31567 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31568 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
31569 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
31570 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
31571 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
31572 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
31573 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
31574 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
31575 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
31576 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
31577 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
31578 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
31579 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
31580 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
31581 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
31582 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
31583 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
31584 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
31585 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
31586 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
31587 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
31588 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
31589 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
31590 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
31591 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
31592 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
31593 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
31594 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
31595 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
31596 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31597 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31598 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31599 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31600 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31601 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31602 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31603 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31604 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
31605 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
31606 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
31607 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
31608 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
31609 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
31610 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
31611 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
31612 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
31613 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
31614 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
31615 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
31616 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31617 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
31618 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
31619 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
31620 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31621 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31622 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
31623 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
31624 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
31625 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31626 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31627 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
31628 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31629 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
31630 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
31631 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31632 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
31633 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
31634 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31635 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31636 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
31637 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
31638 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
31639 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
31640 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
31641 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
31642 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31643 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
31644 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
31645 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31646 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31647 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
31648 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31649 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31650 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
31651 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
31652 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
31653 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
31654 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
31655 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
31656 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
31657 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
31658 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
31659 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
31660 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
31661 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
31662 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
31663 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31664 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31665 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31666 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31667 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31668 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31669 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31670 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31671 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31672 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
31673 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
31674 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
31675 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
31676 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
31677 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
31678 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
31679 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
31680 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31681 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
31682 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
31683 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
31684 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
31685 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31686 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
31687 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
31688 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
31689 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
31690 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
31691 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
31692 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
31693 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
31694 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
31695 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
31696 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
31697 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
31698 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
31699 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
31700 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
31701 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
31702 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
31703 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
31704 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
31705 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
31706 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
31707 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
31708 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
31709 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
31710 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
31711 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
31712 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
31713 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
31714 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31715 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
31716 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31717 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
31718 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31719 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
31720 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
31721 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
31722 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
31723 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
31724 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
31725 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
31726 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31727 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
31728 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
31729 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
31730 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
31731 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
31732 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
31733 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
31734 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
31735 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
31736 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
31737 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31738 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31739 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
31740 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
31741 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
31742 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
31743 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31744 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31745 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
31746 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
31747 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31748 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31749 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31750 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31751 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31752 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31753 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31754 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31755 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31756 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31757 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31758 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31759 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31760 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31761 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31762 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31763 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31764 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31765 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31766 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31767 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31768 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31769 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31770 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31771 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31772 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31773 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31774 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31775 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31776 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31777 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31778 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31779 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31780 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
31781 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31782 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31783 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31784 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31785 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
31786 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31787 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31788 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31789 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31790 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31791 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
31792 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
31793 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
31794 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
31795 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
31796 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31797 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31798 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31799 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31800 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31801 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31802 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
31803 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
31804 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
31805 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
31806 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
31807 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31808 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31809 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31810 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
31811 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
31812 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
31813 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
31814 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
31815 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
31816 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
31817 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31818 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31819 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
31820 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
31821 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31822 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31823 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
31824 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
31825 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
31826 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
31827 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
31828 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
31829 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
31830 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
31831 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
31832 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
31833 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
31834 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
31835 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31836 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31837 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31838 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31839 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31840 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31841 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31842 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31843 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31844 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31845 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31846 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31847 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31848 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31849 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31850 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31851 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31852 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31853 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31854 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31855 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31856 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31857 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31858 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31859 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
31860 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
31861 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
31862 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
31863 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
31864 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
31865 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
31866 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
31867 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
31868 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
31869 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
31870 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
31871 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
31872 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
31873 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
31874 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
31875 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
31876 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
31877 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
31878 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
31879 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
31880 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31881 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
31882 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
31883 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
31884 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
31885 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
31886 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
31887 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
31888 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
31889 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
31890 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
31891 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
31892 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31893 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
31894 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
31895 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
31896 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
31897 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
31898 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
31899 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
31900 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
31901 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
31902 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
31903 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
31904 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
31905 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
31906 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
31907 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
31908 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
31909 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
31910 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
31911 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
31912 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
31913 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
31914 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
31915 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
31916 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
31917 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
31918 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
31919 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
31920 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
31921 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
31922 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
31923 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
31924 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
31925 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
31926 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
31927 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
31928 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31929 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31930 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31931 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
31932 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
31933 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
31934 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
31935 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
31936 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31937 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
31938 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
31939 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
31940 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
31941 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
31942 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
31943 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31944 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31945 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31946 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31947 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31948 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
31949 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
31950 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
31951 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
31952 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
31953 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
31954 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
31955 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
31956 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
31957 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
31958 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31959 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31960 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31961 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
31962 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
31963 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
31964 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
31965 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
31966 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
31967 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
31968 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
31969 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
31970 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
31971 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
31972 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
31973 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
31974 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
31975 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
31976 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
31977 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
31978 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
31979 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
31980 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
31981 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
31982 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
31983 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
31984 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
31985 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31986 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
31987 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31988 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31989 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31990 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
31991 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31992 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
31993 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
31994 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
31995 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
31996 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
31997 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
31998 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
31999 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
32000 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
32001 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
32002 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
32003 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
32004 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
32005 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
32006 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
32007 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
32008 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
32009 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
32010 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
32011 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
32012 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
32013 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
32014 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
32015 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
32016 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
32017 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
32018 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
32019 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32020 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
32021 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
32022 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
32023 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
32024 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
32025 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
32026 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
32027 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
32028 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
32029 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
32030 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
32031 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
32032 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
32033 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
32034 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
32035 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
32036 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
32037 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
32038 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
32039 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
32040 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
32041 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32042 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
32043 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
32044 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
32045 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
32046 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
32047 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
32048 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
32049 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
32050 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
32051 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
32052 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
32053 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
32054 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32055 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32056 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32057 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
32058 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
32059 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32060 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
32061 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32062 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
32063 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32064 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
32065 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32066 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
32067 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32068 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
32069 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
32070 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
32071 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32072 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32073 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32074 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32075 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32076 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32077 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32078 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32079 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32080 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
32081 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32082 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
32083 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
32084 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32085 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32086 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32087 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32088 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32089 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
32090 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32091 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
32092 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32093 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
32094 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
32095 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32096 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32097 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
32098 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
32099 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32100 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32101 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32102 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32103 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
32104 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32105 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
32106 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32107 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
32108 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
32109 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
32110 { NULL, NULL, 0, NULL }
32111 };
32112
32113
32114 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32115
32116 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
32117 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
32118 }
32119 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
32120 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
32121 }
32122 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
32123 return (void *)((wxLocale *) ((wxPyLocale *) x));
32124 }
32125 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
32126 return (void *)((wxGDIObject *) ((wxIcon *) x));
32127 }
32128 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
32129 return (void *)((wxGDIObject *) ((wxPalette *) x));
32130 }
32131 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
32132 return (void *)((wxGDIObject *) ((wxPen *) x));
32133 }
32134 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
32135 return (void *)((wxGDIObject *) ((wxFont *) x));
32136 }
32137 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
32138 return (void *)((wxGDIObject *) ((wxCursor *) x));
32139 }
32140 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
32141 return (void *)((wxGDIObject *) ((wxBitmap *) x));
32142 }
32143 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
32144 return (void *)((wxGDIObject *) ((wxRegion *) x));
32145 }
32146 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
32147 return (void *)((wxGDIObject *) ((wxBrush *) x));
32148 }
32149 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
32150 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
32151 }
32152 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
32153 return (void *)((wxDC *) ((wxScreenDC *) x));
32154 }
32155 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
32156 return (void *)((wxDC *) ((wxMirrorDC *) x));
32157 }
32158 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
32159 return (void *)((wxDC *) ((wxMemoryDC *) x));
32160 }
32161 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
32162 return (void *)((wxDC *) ((wxWindowDC *) x));
32163 }
32164 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
32165 return (void *)((wxDC *) ((wxMetaFileDC *) x));
32166 }
32167 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
32168 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32169 }
32170 static void *_p_wxClientDCTo_p_wxDC(void *x) {
32171 return (void *)((wxDC *) ((wxClientDC *) x));
32172 }
32173 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
32174 return (void *)((wxDC *) ((wxPaintDC *) x));
32175 }
32176 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
32177 return (void *)((wxDC *) ((wxPostScriptDC *) x));
32178 }
32179 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
32180 return (void *)((wxDC *) ((wxPrinterDC *) x));
32181 }
32182 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
32183 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
32184 }
32185 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
32186 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
32187 }
32188 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
32189 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
32190 }
32191 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
32192 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
32193 }
32194 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32195 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32196 }
32197 static void *_p_wxPenTo_p_wxObject(void *x) {
32198 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
32199 }
32200 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
32201 return (void *)((wxObject *) ((wxRegionIterator *) x));
32202 }
32203 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32204 return (void *)((wxObject *) ((wxSizerItem *) x));
32205 }
32206 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32207 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32208 }
32209 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32210 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32211 }
32212 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32213 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32214 }
32215 static void *_p_wxIconTo_p_wxObject(void *x) {
32216 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
32217 }
32218 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32219 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32220 }
32221 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32222 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32223 }
32224 static void *_p_wxSizerTo_p_wxObject(void *x) {
32225 return (void *)((wxObject *) ((wxSizer *) x));
32226 }
32227 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32228 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32229 }
32230 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32231 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32232 }
32233 static void *_p_wxEventTo_p_wxObject(void *x) {
32234 return (void *)((wxObject *) ((wxEvent *) x));
32235 }
32236 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32237 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32238 }
32239 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32240 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32241 }
32242 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32243 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32244 }
32245 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
32246 return (void *)((wxObject *) ((wxPseudoDC *) x));
32247 }
32248 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
32249 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
32250 }
32251 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32252 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32253 }
32254 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32255 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32256 }
32257 static void *_p_wxDCTo_p_wxObject(void *x) {
32258 return (void *)((wxObject *) ((wxDC *) x));
32259 }
32260 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32261 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32262 }
32263 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32264 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32265 }
32266 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32267 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32268 }
32269 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32270 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32271 }
32272 static void *_p_wxControlTo_p_wxObject(void *x) {
32273 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32274 }
32275 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32276 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32277 }
32278 static void *_p_wxClientDCTo_p_wxObject(void *x) {
32279 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
32280 }
32281 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32282 return (void *)((wxObject *) ((wxFSFile *) x));
32283 }
32284 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
32285 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
32286 }
32287 static void *_p_wxRegionTo_p_wxObject(void *x) {
32288 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
32289 }
32290 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32291 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32292 }
32293 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
32294 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
32295 }
32296 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
32297 return (void *)((wxObject *) ((wxGDIObject *) x));
32298 }
32299 static void *_p_wxEffectsTo_p_wxObject(void *x) {
32300 return (void *)((wxObject *) ((wxEffects *) x));
32301 }
32302 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32303 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32304 }
32305 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32306 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32307 }
32308 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
32309 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
32310 }
32311 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32312 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32313 }
32314 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32315 return (void *)((wxObject *) ((wxMenuItem *) x));
32316 }
32317 static void *_p_wxDateEventTo_p_wxObject(void *x) {
32318 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
32319 }
32320 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32321 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32322 }
32323 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32324 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32325 }
32326 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32327 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32328 }
32329 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32330 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32331 }
32332 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32333 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32334 }
32335 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32336 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32337 }
32338 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32339 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32340 }
32341 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32342 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32343 }
32344 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32345 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32346 }
32347 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32348 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32349 }
32350 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32351 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32352 }
32353 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32354 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32355 }
32356 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32357 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32358 }
32359 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32360 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32361 }
32362 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32363 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32364 }
32365 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32366 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32367 }
32368 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32369 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32370 }
32371 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
32372 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
32373 }
32374 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32375 return (void *)((wxObject *) ((wxImageHandler *) x));
32376 }
32377 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32378 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32379 }
32380 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32381 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32382 }
32383 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32384 return (void *)((wxObject *) ((wxEvtHandler *) x));
32385 }
32386 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
32387 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
32388 }
32389 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
32390 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32391 }
32392 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
32393 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
32394 }
32395 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
32396 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
32397 }
32398 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
32399 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
32400 }
32401 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
32402 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
32403 }
32404 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32405 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32406 }
32407 static void *_p_wxImageTo_p_wxObject(void *x) {
32408 return (void *)((wxObject *) ((wxImage *) x));
32409 }
32410 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32411 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32412 }
32413 static void *_p_wxPaletteTo_p_wxObject(void *x) {
32414 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
32415 }
32416 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
32417 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
32418 }
32419 static void *_p_wxImageListTo_p_wxObject(void *x) {
32420 return (void *)((wxObject *) ((wxImageList *) x));
32421 }
32422 static void *_p_wxCursorTo_p_wxObject(void *x) {
32423 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
32424 }
32425 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
32426 return (void *)((wxObject *) ((wxEncodingConverter *) x));
32427 }
32428 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
32429 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
32430 }
32431 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32432 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32433 }
32434 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32435 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32436 }
32437 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32438 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32439 }
32440 static void *_p_wxWindowTo_p_wxObject(void *x) {
32441 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32442 }
32443 static void *_p_wxMenuTo_p_wxObject(void *x) {
32444 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32445 }
32446 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32447 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32448 }
32449 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
32450 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
32451 }
32452 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32453 return (void *)((wxObject *) ((wxFileSystem *) x));
32454 }
32455 static void *_p_wxBitmapTo_p_wxObject(void *x) {
32456 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
32457 }
32458 static void *_p_wxMaskTo_p_wxObject(void *x) {
32459 return (void *)((wxObject *) ((wxMask *) x));
32460 }
32461 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32462 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32463 }
32464 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32465 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32466 }
32467 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32468 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32469 }
32470 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32471 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32472 }
32473 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32474 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32475 }
32476 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32477 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32478 }
32479 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32480 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32481 }
32482 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32483 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32484 }
32485 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32486 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32487 }
32488 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32489 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32490 }
32491 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32492 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32493 }
32494 static void *_p_wxFontTo_p_wxObject(void *x) {
32495 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
32496 }
32497 static void *_p_wxBrushTo_p_wxObject(void *x) {
32498 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
32499 }
32500 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
32501 return (void *)((wxObject *) ((wxMetaFile *) x));
32502 }
32503 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32504 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32505 }
32506 static void *_p_wxColourTo_p_wxObject(void *x) {
32507 return (void *)((wxObject *) ((wxColour *) x));
32508 }
32509 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32510 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32511 }
32512 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32513 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32514 }
32515 static void *_p_wxControlTo_p_wxWindow(void *x) {
32516 return (void *)((wxWindow *) ((wxControl *) x));
32517 }
32518 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32519 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32520 }
32521 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32522 return (void *)((wxWindow *) ((wxMenuBar *) x));
32523 }
32524 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
32525 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
32526 }
32527 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
32528 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
32529 }
32530 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
32531 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
32532 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
32533 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};
32534 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
32535 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
32536 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
32537 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
32538 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
32539 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
32540 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
32541 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
32542 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
32543 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
32544 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
32545 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
32546 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
32547 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
32548 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
32549 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
32550 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
32551 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
32552 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
32553 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
32554 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
32555 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
32556 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
32557 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
32558 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
32559 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
32560 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
32561 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
32562 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
32563 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
32564 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
32565 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
32566 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
32567 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
32568 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
32569 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
32570 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
32571 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
32572 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
32573 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
32574 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
32575 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
32576 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
32577 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
32578 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
32579 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
32580 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
32581 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
32582 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
32583 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
32584 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
32585 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
32586 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
32587 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
32588 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
32589 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
32590 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
32591 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
32592 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
32593 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
32594 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
32595 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
32596 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
32597 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
32598 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
32599 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
32600 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
32601 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
32602 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
32603 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
32604 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
32605 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
32606 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
32607 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
32608 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
32609 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
32610 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
32611 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
32612 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
32613 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
32614 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
32615 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
32616 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
32617 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
32618 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
32619 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
32620 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
32621 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
32622 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
32623 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
32624 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
32625 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
32626 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
32627 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
32628 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
32629 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
32630 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
32631 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
32632 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
32633 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
32634 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
32635 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
32636 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
32637 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
32638 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
32639 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
32640 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
32641 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
32642 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
32643 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
32644 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
32645 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
32646 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
32647 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
32648 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
32649 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
32650 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
32651 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
32652 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
32653 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
32654 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
32655 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
32656 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
32657 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
32658 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
32659 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
32660 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
32661 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
32662 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
32663 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
32664 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
32665 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
32666 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
32667 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
32668 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
32669 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
32670 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
32671 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
32672 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
32673 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
32674 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
32675 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
32676 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
32677 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
32678 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
32679
32680 static swig_type_info *swig_type_initial[] = {
32681 &_swigt__p_buffer,
32682 &_swigt__p_char,
32683 &_swigt__p_double,
32684 &_swigt__p_form_ops_t,
32685 &_swigt__p_int,
32686 &_swigt__p_unsigned_char,
32687 &_swigt__p_unsigned_int,
32688 &_swigt__p_unsigned_long,
32689 &_swigt__p_wxANIHandler,
32690 &_swigt__p_wxAcceleratorTable,
32691 &_swigt__p_wxActivateEvent,
32692 &_swigt__p_wxAlphaPixelData,
32693 &_swigt__p_wxAlphaPixelData_Accessor,
32694 &_swigt__p_wxBMPHandler,
32695 &_swigt__p_wxBitmap,
32696 &_swigt__p_wxBoxSizer,
32697 &_swigt__p_wxBrush,
32698 &_swigt__p_wxBrushList,
32699 &_swigt__p_wxBufferedDC,
32700 &_swigt__p_wxBufferedPaintDC,
32701 &_swigt__p_wxCURHandler,
32702 &_swigt__p_wxChar,
32703 &_swigt__p_wxChildFocusEvent,
32704 &_swigt__p_wxClientDC,
32705 &_swigt__p_wxClipboardTextEvent,
32706 &_swigt__p_wxCloseEvent,
32707 &_swigt__p_wxColour,
32708 &_swigt__p_wxColourDatabase,
32709 &_swigt__p_wxCommandEvent,
32710 &_swigt__p_wxContextMenuEvent,
32711 &_swigt__p_wxControl,
32712 &_swigt__p_wxControlWithItems,
32713 &_swigt__p_wxCursor,
32714 &_swigt__p_wxDC,
32715 &_swigt__p_wxDash,
32716 &_swigt__p_wxDateEvent,
32717 &_swigt__p_wxDisplayChangedEvent,
32718 &_swigt__p_wxDropFilesEvent,
32719 &_swigt__p_wxDuplexMode,
32720 &_swigt__p_wxEffects,
32721 &_swigt__p_wxEncodingConverter,
32722 &_swigt__p_wxEraseEvent,
32723 &_swigt__p_wxEvent,
32724 &_swigt__p_wxEvtHandler,
32725 &_swigt__p_wxFSFile,
32726 &_swigt__p_wxFileSystem,
32727 &_swigt__p_wxFlexGridSizer,
32728 &_swigt__p_wxFocusEvent,
32729 &_swigt__p_wxFont,
32730 &_swigt__p_wxFontList,
32731 &_swigt__p_wxFontMapper,
32732 &_swigt__p_wxGBSizerItem,
32733 &_swigt__p_wxGDIObjListBase,
32734 &_swigt__p_wxGDIObject,
32735 &_swigt__p_wxGIFHandler,
32736 &_swigt__p_wxGridBagSizer,
32737 &_swigt__p_wxGridSizer,
32738 &_swigt__p_wxHeaderButtonParams,
32739 &_swigt__p_wxICOHandler,
32740 &_swigt__p_wxIcon,
32741 &_swigt__p_wxIconBundle,
32742 &_swigt__p_wxIconLocation,
32743 &_swigt__p_wxIconizeEvent,
32744 &_swigt__p_wxIdleEvent,
32745 &_swigt__p_wxImage,
32746 &_swigt__p_wxImageHandler,
32747 &_swigt__p_wxImageList,
32748 &_swigt__p_wxIndividualLayoutConstraint,
32749 &_swigt__p_wxInitDialogEvent,
32750 &_swigt__p_wxJPEGHandler,
32751 &_swigt__p_wxKeyEvent,
32752 &_swigt__p_wxLanguageInfo,
32753 &_swigt__p_wxLayoutConstraints,
32754 &_swigt__p_wxLocale,
32755 &_swigt__p_wxMask,
32756 &_swigt__p_wxMaximizeEvent,
32757 &_swigt__p_wxMemoryDC,
32758 &_swigt__p_wxMenu,
32759 &_swigt__p_wxMenuBar,
32760 &_swigt__p_wxMenuEvent,
32761 &_swigt__p_wxMenuItem,
32762 &_swigt__p_wxMetaFile,
32763 &_swigt__p_wxMetaFileDC,
32764 &_swigt__p_wxMirrorDC,
32765 &_swigt__p_wxMouseCaptureChangedEvent,
32766 &_swigt__p_wxMouseCaptureLostEvent,
32767 &_swigt__p_wxMouseEvent,
32768 &_swigt__p_wxMoveEvent,
32769 &_swigt__p_wxNativeEncodingInfo,
32770 &_swigt__p_wxNativeFontInfo,
32771 &_swigt__p_wxNativePixelData,
32772 &_swigt__p_wxNativePixelData_Accessor,
32773 &_swigt__p_wxNavigationKeyEvent,
32774 &_swigt__p_wxNcPaintEvent,
32775 &_swigt__p_wxNotifyEvent,
32776 &_swigt__p_wxObject,
32777 &_swigt__p_wxPCXHandler,
32778 &_swigt__p_wxPNGHandler,
32779 &_swigt__p_wxPNMHandler,
32780 &_swigt__p_wxPaintDC,
32781 &_swigt__p_wxPaintEvent,
32782 &_swigt__p_wxPalette,
32783 &_swigt__p_wxPaletteChangedEvent,
32784 &_swigt__p_wxPaperSize,
32785 &_swigt__p_wxPen,
32786 &_swigt__p_wxPenList,
32787 &_swigt__p_wxPixelDataBase,
32788 &_swigt__p_wxPoint,
32789 &_swigt__p_wxPostScriptDC,
32790 &_swigt__p_wxPrintData,
32791 &_swigt__p_wxPrinterDC,
32792 &_swigt__p_wxPseudoDC,
32793 &_swigt__p_wxPyApp,
32794 &_swigt__p_wxPyCommandEvent,
32795 &_swigt__p_wxPyEvent,
32796 &_swigt__p_wxPyFontEnumerator,
32797 &_swigt__p_wxPyImageHandler,
32798 &_swigt__p_wxPyLocale,
32799 &_swigt__p_wxPySizer,
32800 &_swigt__p_wxPyValidator,
32801 &_swigt__p_wxQueryNewPaletteEvent,
32802 &_swigt__p_wxRect,
32803 &_swigt__p_wxRegion,
32804 &_swigt__p_wxRegionIterator,
32805 &_swigt__p_wxRendererNative,
32806 &_swigt__p_wxRendererVersion,
32807 &_swigt__p_wxScreenDC,
32808 &_swigt__p_wxScrollEvent,
32809 &_swigt__p_wxScrollWinEvent,
32810 &_swigt__p_wxSetCursorEvent,
32811 &_swigt__p_wxShowEvent,
32812 &_swigt__p_wxSize,
32813 &_swigt__p_wxSizeEvent,
32814 &_swigt__p_wxSizer,
32815 &_swigt__p_wxSizerItem,
32816 &_swigt__p_wxSplitterRenderParams,
32817 &_swigt__p_wxStaticBoxSizer,
32818 &_swigt__p_wxStdDialogButtonSizer,
32819 &_swigt__p_wxStockGDI,
32820 &_swigt__p_wxString,
32821 &_swigt__p_wxSysColourChangedEvent,
32822 &_swigt__p_wxTIFFHandler,
32823 &_swigt__p_wxUpdateUIEvent,
32824 &_swigt__p_wxValidator,
32825 &_swigt__p_wxWindow,
32826 &_swigt__p_wxWindowCreateEvent,
32827 &_swigt__p_wxWindowDC,
32828 &_swigt__p_wxWindowDestroyEvent,
32829 &_swigt__p_wxXPMHandler,
32830 };
32831
32832 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
32833 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
32834 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
32835 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
32836 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
32837 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
32838 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
32839 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
32840 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
32841 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32842 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
32843 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
32844 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
32845 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}};
32846 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32847 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
32848 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
32849 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
32850 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
32851 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
32852 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}};
32853 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
32854 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
32855 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
32856 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
32857 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
32858 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
32859 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
32860 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}};
32861 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}};
32862 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
32863 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
32864 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
32865 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
32866 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32867 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32868 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
32869 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}};
32870 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32871 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}};
32872 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32873 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32874 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32875 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32876 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
32877 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32878 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32879 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
32880 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32881 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32882 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
32883 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
32884 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32885 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32886 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
32887 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
32888 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
32889 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
32890 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
32891 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32892 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32893 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
32894 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
32895 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32896 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32897 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32898 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32899 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32900 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32901 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
32902 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
32903 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
32904 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
32905 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
32906 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
32907 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
32908 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
32909 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
32910 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
32911 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
32912 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
32913 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32914 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32915 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32916 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
32917 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
32918 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
32919 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
32920 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
32921 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
32922 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32923 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32924 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
32925 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
32926 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
32927 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
32928 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
32929 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
32930 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
32931 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
32932 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
32933 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
32934 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
32935 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
32936 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
32937 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32938 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32939 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
32940 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
32941 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32942 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32943 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
32944 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
32945 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
32946 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
32947 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32948 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32949 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
32950 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32951 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32952 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
32953 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
32954 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
32955 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}};
32956 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32957 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
32958 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
32959 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
32960 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
32961 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}};
32962 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
32963 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
32964 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
32965 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
32966 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
32967 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
32968 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
32969 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
32970 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
32971 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
32972 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
32973 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
32974 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
32975 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
32976 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
32977 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
32978 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
32979 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}};
32980 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
32981
32982 static swig_cast_info *swig_cast_initial[] = {
32983 _swigc__p_buffer,
32984 _swigc__p_char,
32985 _swigc__p_double,
32986 _swigc__p_form_ops_t,
32987 _swigc__p_int,
32988 _swigc__p_unsigned_char,
32989 _swigc__p_unsigned_int,
32990 _swigc__p_unsigned_long,
32991 _swigc__p_wxANIHandler,
32992 _swigc__p_wxAcceleratorTable,
32993 _swigc__p_wxActivateEvent,
32994 _swigc__p_wxAlphaPixelData,
32995 _swigc__p_wxAlphaPixelData_Accessor,
32996 _swigc__p_wxBMPHandler,
32997 _swigc__p_wxBitmap,
32998 _swigc__p_wxBoxSizer,
32999 _swigc__p_wxBrush,
33000 _swigc__p_wxBrushList,
33001 _swigc__p_wxBufferedDC,
33002 _swigc__p_wxBufferedPaintDC,
33003 _swigc__p_wxCURHandler,
33004 _swigc__p_wxChar,
33005 _swigc__p_wxChildFocusEvent,
33006 _swigc__p_wxClientDC,
33007 _swigc__p_wxClipboardTextEvent,
33008 _swigc__p_wxCloseEvent,
33009 _swigc__p_wxColour,
33010 _swigc__p_wxColourDatabase,
33011 _swigc__p_wxCommandEvent,
33012 _swigc__p_wxContextMenuEvent,
33013 _swigc__p_wxControl,
33014 _swigc__p_wxControlWithItems,
33015 _swigc__p_wxCursor,
33016 _swigc__p_wxDC,
33017 _swigc__p_wxDash,
33018 _swigc__p_wxDateEvent,
33019 _swigc__p_wxDisplayChangedEvent,
33020 _swigc__p_wxDropFilesEvent,
33021 _swigc__p_wxDuplexMode,
33022 _swigc__p_wxEffects,
33023 _swigc__p_wxEncodingConverter,
33024 _swigc__p_wxEraseEvent,
33025 _swigc__p_wxEvent,
33026 _swigc__p_wxEvtHandler,
33027 _swigc__p_wxFSFile,
33028 _swigc__p_wxFileSystem,
33029 _swigc__p_wxFlexGridSizer,
33030 _swigc__p_wxFocusEvent,
33031 _swigc__p_wxFont,
33032 _swigc__p_wxFontList,
33033 _swigc__p_wxFontMapper,
33034 _swigc__p_wxGBSizerItem,
33035 _swigc__p_wxGDIObjListBase,
33036 _swigc__p_wxGDIObject,
33037 _swigc__p_wxGIFHandler,
33038 _swigc__p_wxGridBagSizer,
33039 _swigc__p_wxGridSizer,
33040 _swigc__p_wxHeaderButtonParams,
33041 _swigc__p_wxICOHandler,
33042 _swigc__p_wxIcon,
33043 _swigc__p_wxIconBundle,
33044 _swigc__p_wxIconLocation,
33045 _swigc__p_wxIconizeEvent,
33046 _swigc__p_wxIdleEvent,
33047 _swigc__p_wxImage,
33048 _swigc__p_wxImageHandler,
33049 _swigc__p_wxImageList,
33050 _swigc__p_wxIndividualLayoutConstraint,
33051 _swigc__p_wxInitDialogEvent,
33052 _swigc__p_wxJPEGHandler,
33053 _swigc__p_wxKeyEvent,
33054 _swigc__p_wxLanguageInfo,
33055 _swigc__p_wxLayoutConstraints,
33056 _swigc__p_wxLocale,
33057 _swigc__p_wxMask,
33058 _swigc__p_wxMaximizeEvent,
33059 _swigc__p_wxMemoryDC,
33060 _swigc__p_wxMenu,
33061 _swigc__p_wxMenuBar,
33062 _swigc__p_wxMenuEvent,
33063 _swigc__p_wxMenuItem,
33064 _swigc__p_wxMetaFile,
33065 _swigc__p_wxMetaFileDC,
33066 _swigc__p_wxMirrorDC,
33067 _swigc__p_wxMouseCaptureChangedEvent,
33068 _swigc__p_wxMouseCaptureLostEvent,
33069 _swigc__p_wxMouseEvent,
33070 _swigc__p_wxMoveEvent,
33071 _swigc__p_wxNativeEncodingInfo,
33072 _swigc__p_wxNativeFontInfo,
33073 _swigc__p_wxNativePixelData,
33074 _swigc__p_wxNativePixelData_Accessor,
33075 _swigc__p_wxNavigationKeyEvent,
33076 _swigc__p_wxNcPaintEvent,
33077 _swigc__p_wxNotifyEvent,
33078 _swigc__p_wxObject,
33079 _swigc__p_wxPCXHandler,
33080 _swigc__p_wxPNGHandler,
33081 _swigc__p_wxPNMHandler,
33082 _swigc__p_wxPaintDC,
33083 _swigc__p_wxPaintEvent,
33084 _swigc__p_wxPalette,
33085 _swigc__p_wxPaletteChangedEvent,
33086 _swigc__p_wxPaperSize,
33087 _swigc__p_wxPen,
33088 _swigc__p_wxPenList,
33089 _swigc__p_wxPixelDataBase,
33090 _swigc__p_wxPoint,
33091 _swigc__p_wxPostScriptDC,
33092 _swigc__p_wxPrintData,
33093 _swigc__p_wxPrinterDC,
33094 _swigc__p_wxPseudoDC,
33095 _swigc__p_wxPyApp,
33096 _swigc__p_wxPyCommandEvent,
33097 _swigc__p_wxPyEvent,
33098 _swigc__p_wxPyFontEnumerator,
33099 _swigc__p_wxPyImageHandler,
33100 _swigc__p_wxPyLocale,
33101 _swigc__p_wxPySizer,
33102 _swigc__p_wxPyValidator,
33103 _swigc__p_wxQueryNewPaletteEvent,
33104 _swigc__p_wxRect,
33105 _swigc__p_wxRegion,
33106 _swigc__p_wxRegionIterator,
33107 _swigc__p_wxRendererNative,
33108 _swigc__p_wxRendererVersion,
33109 _swigc__p_wxScreenDC,
33110 _swigc__p_wxScrollEvent,
33111 _swigc__p_wxScrollWinEvent,
33112 _swigc__p_wxSetCursorEvent,
33113 _swigc__p_wxShowEvent,
33114 _swigc__p_wxSize,
33115 _swigc__p_wxSizeEvent,
33116 _swigc__p_wxSizer,
33117 _swigc__p_wxSizerItem,
33118 _swigc__p_wxSplitterRenderParams,
33119 _swigc__p_wxStaticBoxSizer,
33120 _swigc__p_wxStdDialogButtonSizer,
33121 _swigc__p_wxStockGDI,
33122 _swigc__p_wxString,
33123 _swigc__p_wxSysColourChangedEvent,
33124 _swigc__p_wxTIFFHandler,
33125 _swigc__p_wxUpdateUIEvent,
33126 _swigc__p_wxValidator,
33127 _swigc__p_wxWindow,
33128 _swigc__p_wxWindowCreateEvent,
33129 _swigc__p_wxWindowDC,
33130 _swigc__p_wxWindowDestroyEvent,
33131 _swigc__p_wxXPMHandler,
33132 };
33133
33134
33135 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33136
33137 static swig_const_info swig_const_table[] = {
33138 {0, 0, 0, 0.0, 0, 0}};
33139
33140 #ifdef __cplusplus
33141 }
33142 #endif
33143 /* -----------------------------------------------------------------------------
33144 * Type initialization:
33145 * This problem is tough by the requirement that no dynamic
33146 * memory is used. Also, since swig_type_info structures store pointers to
33147 * swig_cast_info structures and swig_cast_info structures store pointers back
33148 * to swig_type_info structures, we need some lookup code at initialization.
33149 * The idea is that swig generates all the structures that are needed.
33150 * The runtime then collects these partially filled structures.
33151 * The SWIG_InitializeModule function takes these initial arrays out of
33152 * swig_module, and does all the lookup, filling in the swig_module.types
33153 * array with the correct data and linking the correct swig_cast_info
33154 * structures together.
33155 *
33156 * The generated swig_type_info structures are assigned staticly to an initial
33157 * array. We just loop though that array, and handle each type individually.
33158 * First we lookup if this type has been already loaded, and if so, use the
33159 * loaded structure instead of the generated one. Then we have to fill in the
33160 * cast linked list. The cast data is initially stored in something like a
33161 * two-dimensional array. Each row corresponds to a type (there are the same
33162 * number of rows as there are in the swig_type_initial array). Each entry in
33163 * a column is one of the swig_cast_info structures for that type.
33164 * The cast_initial array is actually an array of arrays, because each row has
33165 * a variable number of columns. So to actually build the cast linked list,
33166 * we find the array of casts associated with the type, and loop through it
33167 * adding the casts to the list. The one last trick we need to do is making
33168 * sure the type pointer in the swig_cast_info struct is correct.
33169 *
33170 * First off, we lookup the cast->type name to see if it is already loaded.
33171 * There are three cases to handle:
33172 * 1) If the cast->type has already been loaded AND the type we are adding
33173 * casting info to has not been loaded (it is in this module), THEN we
33174 * replace the cast->type pointer with the type pointer that has already
33175 * been loaded.
33176 * 2) If BOTH types (the one we are adding casting info to, and the
33177 * cast->type) are loaded, THEN the cast info has already been loaded by
33178 * the previous module so we just ignore it.
33179 * 3) Finally, if cast->type has not already been loaded, then we add that
33180 * swig_cast_info to the linked list (because the cast->type) pointer will
33181 * be correct.
33182 * ----------------------------------------------------------------------------- */
33183
33184 #ifdef __cplusplus
33185 extern "C" {
33186 #if 0
33187 } /* c-mode */
33188 #endif
33189 #endif
33190
33191 #if 0
33192 #define SWIGRUNTIME_DEBUG
33193 #endif
33194
33195 SWIGRUNTIME void
33196 SWIG_InitializeModule(void *clientdata) {
33197 size_t i;
33198 swig_module_info *module_head;
33199 static int init_run = 0;
33200
33201 clientdata = clientdata;
33202
33203 if (init_run) return;
33204 init_run = 1;
33205
33206 /* Initialize the swig_module */
33207 swig_module.type_initial = swig_type_initial;
33208 swig_module.cast_initial = swig_cast_initial;
33209
33210 /* Try and load any already created modules */
33211 module_head = SWIG_GetModule(clientdata);
33212 if (module_head) {
33213 swig_module.next = module_head->next;
33214 module_head->next = &swig_module;
33215 } else {
33216 /* This is the first module loaded */
33217 swig_module.next = &swig_module;
33218 SWIG_SetModule(clientdata, &swig_module);
33219 }
33220
33221 /* Now work on filling in swig_module.types */
33222 #ifdef SWIGRUNTIME_DEBUG
33223 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
33224 #endif
33225 for (i = 0; i < swig_module.size; ++i) {
33226 swig_type_info *type = 0;
33227 swig_type_info *ret;
33228 swig_cast_info *cast;
33229
33230 #ifdef SWIGRUNTIME_DEBUG
33231 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33232 #endif
33233
33234 /* if there is another module already loaded */
33235 if (swig_module.next != &swig_module) {
33236 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
33237 }
33238 if (type) {
33239 /* Overwrite clientdata field */
33240 #ifdef SWIGRUNTIME_DEBUG
33241 printf("SWIG_InitializeModule: found type %s\n", type->name);
33242 #endif
33243 if (swig_module.type_initial[i]->clientdata) {
33244 type->clientdata = swig_module.type_initial[i]->clientdata;
33245 #ifdef SWIGRUNTIME_DEBUG
33246 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
33247 #endif
33248 }
33249 } else {
33250 type = swig_module.type_initial[i];
33251 }
33252
33253 /* Insert casting types */
33254 cast = swig_module.cast_initial[i];
33255 while (cast->type) {
33256 /* Don't need to add information already in the list */
33257 ret = 0;
33258 #ifdef SWIGRUNTIME_DEBUG
33259 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
33260 #endif
33261 if (swig_module.next != &swig_module) {
33262 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
33263 #ifdef SWIGRUNTIME_DEBUG
33264 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
33265 #endif
33266 }
33267 if (ret) {
33268 if (type == swig_module.type_initial[i]) {
33269 #ifdef SWIGRUNTIME_DEBUG
33270 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
33271 #endif
33272 cast->type = ret;
33273 ret = 0;
33274 } else {
33275 /* Check for casting already in the list */
33276 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
33277 #ifdef SWIGRUNTIME_DEBUG
33278 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
33279 #endif
33280 if (!ocast) ret = 0;
33281 }
33282 }
33283
33284 if (!ret) {
33285 #ifdef SWIGRUNTIME_DEBUG
33286 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
33287 #endif
33288 if (type->cast) {
33289 type->cast->prev = cast;
33290 cast->next = type->cast;
33291 }
33292 type->cast = cast;
33293 }
33294 cast++;
33295 }
33296 /* Set entry in modules->types array equal to the type */
33297 swig_module.types[i] = type;
33298 }
33299 swig_module.types[i] = 0;
33300
33301 #ifdef SWIGRUNTIME_DEBUG
33302 printf("**** SWIG_InitializeModule: Cast List ******\n");
33303 for (i = 0; i < swig_module.size; ++i) {
33304 int j = 0;
33305 swig_cast_info *cast = swig_module.cast_initial[i];
33306 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33307 while (cast->type) {
33308 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
33309 cast++;
33310 ++j;
33311 }
33312 printf("---- Total casts: %d\n",j);
33313 }
33314 printf("**** SWIG_InitializeModule: Cast List ******\n");
33315 #endif
33316 }
33317
33318 /* This function will propagate the clientdata field of type to
33319 * any new swig_type_info structures that have been added into the list
33320 * of equivalent types. It is like calling
33321 * SWIG_TypeClientData(type, clientdata) a second time.
33322 */
33323 SWIGRUNTIME void
33324 SWIG_PropagateClientData(void) {
33325 size_t i;
33326 swig_cast_info *equiv;
33327 static int init_run = 0;
33328
33329 if (init_run) return;
33330 init_run = 1;
33331
33332 for (i = 0; i < swig_module.size; i++) {
33333 if (swig_module.types[i]->clientdata) {
33334 equiv = swig_module.types[i]->cast;
33335 while (equiv) {
33336 if (!equiv->converter) {
33337 if (equiv->type && !equiv->type->clientdata)
33338 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
33339 }
33340 equiv = equiv->next;
33341 }
33342 }
33343 }
33344 }
33345
33346 #ifdef __cplusplus
33347 #if 0
33348 {
33349 /* c-mode */
33350 #endif
33351 }
33352 #endif
33353
33354
33355
33356 #ifdef __cplusplus
33357 extern "C" {
33358 #endif
33359
33360 /* Python-specific SWIG API */
33361 #define SWIG_newvarlink() SWIG_Python_newvarlink()
33362 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
33363 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
33364
33365 /* -----------------------------------------------------------------------------
33366 * global variable support code.
33367 * ----------------------------------------------------------------------------- */
33368
33369 typedef struct swig_globalvar {
33370 char *name; /* Name of global variable */
33371 PyObject *(*get_attr)(void); /* Return the current value */
33372 int (*set_attr)(PyObject *); /* Set the value */
33373 struct swig_globalvar *next;
33374 } swig_globalvar;
33375
33376 typedef struct swig_varlinkobject {
33377 PyObject_HEAD
33378 swig_globalvar *vars;
33379 } swig_varlinkobject;
33380
33381 SWIGINTERN PyObject *
33382 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
33383 return PyString_FromString("<Swig global variables>");
33384 }
33385
33386 SWIGINTERN PyObject *
33387 swig_varlink_str(swig_varlinkobject *v) {
33388 PyObject *str = PyString_FromString("(");
33389 swig_globalvar *var;
33390 for (var = v->vars; var; var=var->next) {
33391 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
33392 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
33393 }
33394 PyString_ConcatAndDel(&str,PyString_FromString(")"));
33395 return str;
33396 }
33397
33398 SWIGINTERN int
33399 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
33400 PyObject *str = swig_varlink_str(v);
33401 fprintf(fp,"Swig global variables ");
33402 fprintf(fp,"%s\n", PyString_AsString(str));
33403 Py_DECREF(str);
33404 return 0;
33405 }
33406
33407 SWIGINTERN void
33408 swig_varlink_dealloc(swig_varlinkobject *v) {
33409 swig_globalvar *var = v->vars;
33410 while (var) {
33411 swig_globalvar *n = var->next;
33412 free(var->name);
33413 free(var);
33414 var = n;
33415 }
33416 }
33417
33418 SWIGINTERN PyObject *
33419 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
33420 PyObject *res = NULL;
33421 swig_globalvar *var = v->vars;
33422 while (var) {
33423 if (strcmp(var->name,n) == 0) {
33424 res = (*var->get_attr)();
33425 break;
33426 }
33427 var = var->next;
33428 }
33429 if (res == NULL && !PyErr_Occurred()) {
33430 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
33431 }
33432 return res;
33433 }
33434
33435 SWIGINTERN int
33436 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
33437 int res = 1;
33438 swig_globalvar *var = v->vars;
33439 while (var) {
33440 if (strcmp(var->name,n) == 0) {
33441 res = (*var->set_attr)(p);
33442 break;
33443 }
33444 var = var->next;
33445 }
33446 if (res == 1 && !PyErr_Occurred()) {
33447 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
33448 }
33449 return res;
33450 }
33451
33452 SWIGINTERN PyTypeObject*
33453 swig_varlink_type(void) {
33454 static char varlink__doc__[] = "Swig var link object";
33455 static PyTypeObject varlink_type;
33456 static int type_init = 0;
33457 if (!type_init) {
33458 const PyTypeObject tmp
33459 = {
33460 PyObject_HEAD_INIT(NULL)
33461 0, /* Number of items in variable part (ob_size) */
33462 (char *)"swigvarlink", /* Type name (tp_name) */
33463 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
33464 0, /* Itemsize (tp_itemsize) */
33465 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
33466 (printfunc) swig_varlink_print, /* Print (tp_print) */
33467 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
33468 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
33469 0, /* tp_compare */
33470 (reprfunc) swig_varlink_repr, /* tp_repr */
33471 0, /* tp_as_number */
33472 0, /* tp_as_sequence */
33473 0, /* tp_as_mapping */
33474 0, /* tp_hash */
33475 0, /* tp_call */
33476 (reprfunc)swig_varlink_str, /* tp_str */
33477 0, /* tp_getattro */
33478 0, /* tp_setattro */
33479 0, /* tp_as_buffer */
33480 0, /* tp_flags */
33481 varlink__doc__, /* tp_doc */
33482 0, /* tp_traverse */
33483 0, /* tp_clear */
33484 0, /* tp_richcompare */
33485 0, /* tp_weaklistoffset */
33486 #if PY_VERSION_HEX >= 0x02020000
33487 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
33488 #endif
33489 #if PY_VERSION_HEX >= 0x02030000
33490 0, /* tp_del */
33491 #endif
33492 #ifdef COUNT_ALLOCS
33493 0,0,0,0 /* tp_alloc -> tp_next */
33494 #endif
33495 };
33496 varlink_type = tmp;
33497 varlink_type.ob_type = &PyType_Type;
33498 type_init = 1;
33499 }
33500 return &varlink_type;
33501 }
33502
33503 /* Create a variable linking object for use later */
33504 SWIGINTERN PyObject *
33505 SWIG_Python_newvarlink(void) {
33506 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
33507 if (result) {
33508 result->vars = 0;
33509 }
33510 return ((PyObject*) result);
33511 }
33512
33513 SWIGINTERN void
33514 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
33515 swig_varlinkobject *v = (swig_varlinkobject *) p;
33516 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
33517 if (gv) {
33518 size_t size = strlen(name)+1;
33519 gv->name = (char *)malloc(size);
33520 if (gv->name) {
33521 strncpy(gv->name,name,size);
33522 gv->get_attr = get_attr;
33523 gv->set_attr = set_attr;
33524 gv->next = v->vars;
33525 }
33526 }
33527 v->vars = gv;
33528 }
33529
33530 SWIGINTERN PyObject *
33531 SWIG_globals() {
33532 static PyObject *_SWIG_globals = 0;
33533 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
33534 return _SWIG_globals;
33535 }
33536
33537 /* -----------------------------------------------------------------------------
33538 * constants/methods manipulation
33539 * ----------------------------------------------------------------------------- */
33540
33541 /* Install Constants */
33542 SWIGINTERN void
33543 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
33544 PyObject *obj = 0;
33545 size_t i;
33546 for (i = 0; constants[i].type; ++i) {
33547 switch(constants[i].type) {
33548 case SWIG_PY_POINTER:
33549 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
33550 break;
33551 case SWIG_PY_BINARY:
33552 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
33553 break;
33554 default:
33555 obj = 0;
33556 break;
33557 }
33558 if (obj) {
33559 PyDict_SetItemString(d, constants[i].name, obj);
33560 Py_DECREF(obj);
33561 }
33562 }
33563 }
33564
33565 /* -----------------------------------------------------------------------------*/
33566 /* Fix SwigMethods to carry the callback ptrs when needed */
33567 /* -----------------------------------------------------------------------------*/
33568
33569 SWIGINTERN void
33570 SWIG_Python_FixMethods(PyMethodDef *methods,
33571 swig_const_info *const_table,
33572 swig_type_info **types,
33573 swig_type_info **types_initial) {
33574 size_t i;
33575 for (i = 0; methods[i].ml_name; ++i) {
33576 const char *c = methods[i].ml_doc;
33577 if (c && (c = strstr(c, "swig_ptr: "))) {
33578 int j;
33579 swig_const_info *ci = 0;
33580 const char *name = c + 10;
33581 for (j = 0; const_table[j].type; ++j) {
33582 if (strncmp(const_table[j].name, name,
33583 strlen(const_table[j].name)) == 0) {
33584 ci = &(const_table[j]);
33585 break;
33586 }
33587 }
33588 if (ci) {
33589 size_t shift = (ci->ptype) - types;
33590 swig_type_info *ty = types_initial[shift];
33591 size_t ldoc = (c - methods[i].ml_doc);
33592 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
33593 char *ndoc = (char*)malloc(ldoc + lptr + 10);
33594 if (ndoc) {
33595 char *buff = ndoc;
33596 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
33597 if (ptr) {
33598 strncpy(buff, methods[i].ml_doc, ldoc);
33599 buff += ldoc;
33600 strncpy(buff, "swig_ptr: ", 10);
33601 buff += 10;
33602 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
33603 methods[i].ml_doc = ndoc;
33604 }
33605 }
33606 }
33607 }
33608 }
33609 }
33610
33611 #ifdef __cplusplus
33612 }
33613 #endif
33614
33615 /* -----------------------------------------------------------------------------*
33616 * Partial Init method
33617 * -----------------------------------------------------------------------------*/
33618
33619 #ifdef __cplusplus
33620 extern "C"
33621 #endif
33622 SWIGEXPORT void SWIG_init(void) {
33623 PyObject *m, *d;
33624
33625 /* Fix SwigMethods to carry the callback ptrs when needed */
33626 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
33627
33628 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33629 d = PyModule_GetDict(m);
33630
33631 SWIG_InitializeModule(0);
33632 SWIG_InstallConstants(d,swig_const_table);
33633
33634
33635 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
33636 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
33637 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
33638 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
33639 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
33640 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
33641 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
33642 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
33643 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
33644 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
33645 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
33646 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
33647 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
33648 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
33649 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
33650 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
33651 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
33652 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
33653 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
33654 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
33655 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
33656 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
33657 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
33658 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
33659 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
33660 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
33661 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
33662 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
33663 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
33664 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
33665 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
33666 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
33667 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
33668 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
33669 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
33670 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
33671 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
33672 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
33673 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
33674 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
33675 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
33676 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
33677 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
33678 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
33679 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
33680 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
33681 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
33682 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
33683 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
33684 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
33685 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
33686 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
33687 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
33688 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
33689 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
33690 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
33691 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
33692 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
33693 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
33694 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
33695 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
33696 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
33697 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
33698 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
33699 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
33700 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
33701 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
33702 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
33703 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
33704 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
33705 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
33706 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
33707 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
33708 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
33709 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
33710 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
33711 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
33712 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
33713 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
33714 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
33715 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
33716 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
33717 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
33718 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
33719 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
33720 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
33721 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
33722 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
33723 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
33724 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
33725 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
33726 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
33727 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
33728 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
33729 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
33730 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
33731 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
33732 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
33733 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
33734 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
33735 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
33736 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
33737 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
33738 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
33739 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
33740 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
33741 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
33742 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
33743 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
33744 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
33745 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
33746 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
33747 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
33748 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
33749 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
33750 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
33751 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
33752 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
33753 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
33754 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
33755 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
33756 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
33757 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
33758 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
33759 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
33760 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
33761 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
33762 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
33763 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
33764 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
33765 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
33766 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
33767
33768 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
33769
33770 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
33771 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
33772 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
33773 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
33774 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
33775 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
33776 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
33777 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
33778 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
33779 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
33780 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
33781 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
33782 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
33783 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
33784 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
33785 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
33786 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
33787 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
33788 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
33789 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
33790 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
33791 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
33792 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
33793 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
33794 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
33795 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
33796 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
33797 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
33798 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
33799 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
33800 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
33801 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
33802 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
33803 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
33804 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
33805 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
33806 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
33807 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
33808 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
33809 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
33810 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
33811 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
33812 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
33813 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
33814 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
33815 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
33816 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
33817 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
33818 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
33819 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
33820 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
33821 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
33822 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
33823 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
33824 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
33825 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
33826 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
33827 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
33828 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
33829 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
33830 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
33831 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
33832 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
33833 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
33834 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
33835 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
33836 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
33837 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
33838 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
33839 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
33840 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
33841 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
33842 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
33843 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
33844 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
33845 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
33846 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
33847 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
33848 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
33849 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
33850 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
33851 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
33852 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
33853 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
33854 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
33855 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
33856 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
33857 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
33858 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
33859 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
33860 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
33861 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
33862 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
33863 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
33864 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
33865 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
33866 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
33867 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33868 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33869 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33870 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33871 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33872 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33873 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33874 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33875 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33876 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33877 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33878 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33879 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33880 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33881 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
33882 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
33883 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
33884 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
33885 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
33886 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
33887 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
33888 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
33889 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
33890 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
33891 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
33892 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
33893 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
33894 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
33895 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
33896 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
33897 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
33898 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
33899 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
33900 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
33901 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
33902 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
33903 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
33904 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
33905 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
33906 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
33907 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
33908 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
33909 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
33910 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
33911 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
33912 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
33913 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
33914 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
33915 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
33916 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
33917 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
33918 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
33919 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
33920 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
33921 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
33922 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
33923 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
33924 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
33925 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
33926 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
33927 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
33928 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
33929 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
33930 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
33931 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
33932 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
33933 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
33934 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
33935 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
33936 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
33937 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
33938 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
33939 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
33940 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
33941 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
33942 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
33943 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
33944 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
33945 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
33946 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
33947 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
33948 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
33949 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
33950 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
33951 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
33952 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
33953 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
33954 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
33955 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
33956 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
33957 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
33958 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
33959 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
33960 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
33961 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
33962 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
33963 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
33964 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
33965 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
33966 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
33967 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
33968 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
33969 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
33970 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
33971 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
33972 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
33973 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
33974 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
33975 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
33976 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
33977 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
33978 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
33979 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
33980 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
33981 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
33982 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
33983 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
33984 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
33985 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
33986 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
33987 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
33988 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
33989 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
33990 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
33991 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
33992 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
33993 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
33994 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
33995 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
33996 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
33997 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
33998 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
33999 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
34000 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
34001 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
34002 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
34003 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
34004 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
34005 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
34006 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
34007 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
34008 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
34009 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
34010 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
34011 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
34012 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
34013 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
34014 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
34015 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
34016 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
34017 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
34018 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
34019 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
34020 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
34021 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
34022 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
34023 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
34024 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
34025 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
34026 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
34027 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
34028 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
34029 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
34030 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
34031 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
34032 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
34033 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
34034 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
34035 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
34036 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
34037 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
34038 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
34039 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
34040 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
34041 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
34042 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
34043 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
34044 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
34045 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
34046 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
34047 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
34048 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
34049 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
34050 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
34051 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
34052 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
34053 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
34054 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
34055 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
34056 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
34057 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
34058 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
34059 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
34060 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
34061 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
34062 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
34063 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
34064 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
34065 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
34066 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
34067 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
34068 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
34069 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
34070 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
34071 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
34072 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
34073 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
34074 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
34075 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
34076 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
34077 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
34078 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
34079 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
34080 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
34081 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
34082 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
34083 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
34084 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
34085 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
34086 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
34087
34088 // Work around a chicken/egg problem in drawlist.cpp
34089 wxPyDrawList_SetAPIPtr();
34090
34091 }
34092