]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480 #define SWIGTYPE_p_wxBitmap swig_types[14]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482 #define SWIGTYPE_p_wxBrush swig_types[16]
2483 #define SWIGTYPE_p_wxBrushList swig_types[17]
2484 #define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486 #define SWIGTYPE_p_wxCURHandler swig_types[20]
2487 #define SWIGTYPE_p_wxChar swig_types[21]
2488 #define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489 #define SWIGTYPE_p_wxClientDC swig_types[23]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492 #define SWIGTYPE_p_wxColour swig_types[26]
2493 #define SWIGTYPE_p_wxColourDatabase swig_types[27]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[28]
2495 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
2496 #define SWIGTYPE_p_wxControl swig_types[30]
2497 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
2498 #define SWIGTYPE_p_wxCursor swig_types[32]
2499 #define SWIGTYPE_p_wxDC swig_types[33]
2500 #define SWIGTYPE_p_wxDash swig_types[34]
2501 #define SWIGTYPE_p_wxDateEvent swig_types[35]
2502 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2503 #define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDuplexMode swig_types[38]
2505 #define SWIGTYPE_p_wxEffects swig_types[39]
2506 #define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2507 #define SWIGTYPE_p_wxEraseEvent swig_types[41]
2508 #define SWIGTYPE_p_wxEvent swig_types[42]
2509 #define SWIGTYPE_p_wxEvtHandler swig_types[43]
2510 #define SWIGTYPE_p_wxFSFile swig_types[44]
2511 #define SWIGTYPE_p_wxFileSystem swig_types[45]
2512 #define SWIGTYPE_p_wxFlexGridSizer swig_types[46]
2513 #define SWIGTYPE_p_wxFocusEvent swig_types[47]
2514 #define SWIGTYPE_p_wxFont swig_types[48]
2515 #define SWIGTYPE_p_wxFontList swig_types[49]
2516 #define SWIGTYPE_p_wxFontMapper swig_types[50]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[51]
2518 #define SWIGTYPE_p_wxGDIObjListBase swig_types[52]
2519 #define SWIGTYPE_p_wxGDIObject swig_types[53]
2520 #define SWIGTYPE_p_wxGIFHandler swig_types[54]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[55]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[56]
2523 #define SWIGTYPE_p_wxICOHandler swig_types[57]
2524 #define SWIGTYPE_p_wxIcon swig_types[58]
2525 #define SWIGTYPE_p_wxIconBundle swig_types[59]
2526 #define SWIGTYPE_p_wxIconLocation swig_types[60]
2527 #define SWIGTYPE_p_wxIconizeEvent swig_types[61]
2528 #define SWIGTYPE_p_wxIdleEvent swig_types[62]
2529 #define SWIGTYPE_p_wxImage swig_types[63]
2530 #define SWIGTYPE_p_wxImageHandler swig_types[64]
2531 #define SWIGTYPE_p_wxImageList swig_types[65]
2532 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[66]
2533 #define SWIGTYPE_p_wxInitDialogEvent swig_types[67]
2534 #define SWIGTYPE_p_wxJPEGHandler swig_types[68]
2535 #define SWIGTYPE_p_wxKeyEvent swig_types[69]
2536 #define SWIGTYPE_p_wxLanguageInfo swig_types[70]
2537 #define SWIGTYPE_p_wxLayoutConstraints swig_types[71]
2538 #define SWIGTYPE_p_wxLocale swig_types[72]
2539 #define SWIGTYPE_p_wxMask swig_types[73]
2540 #define SWIGTYPE_p_wxMaximizeEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMemoryDC swig_types[75]
2542 #define SWIGTYPE_p_wxMenu swig_types[76]
2543 #define SWIGTYPE_p_wxMenuBar swig_types[77]
2544 #define SWIGTYPE_p_wxMenuEvent swig_types[78]
2545 #define SWIGTYPE_p_wxMenuItem swig_types[79]
2546 #define SWIGTYPE_p_wxMetaFile swig_types[80]
2547 #define SWIGTYPE_p_wxMetaFileDC swig_types[81]
2548 #define SWIGTYPE_p_wxMirrorDC swig_types[82]
2549 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[83]
2550 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMouseEvent swig_types[85]
2552 #define SWIGTYPE_p_wxMoveEvent swig_types[86]
2553 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[87]
2554 #define SWIGTYPE_p_wxNativeFontInfo swig_types[88]
2555 #define SWIGTYPE_p_wxNativePixelData swig_types[89]
2556 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[90]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNotifyEvent swig_types[93]
2560 #define SWIGTYPE_p_wxObject swig_types[94]
2561 #define SWIGTYPE_p_wxPCXHandler swig_types[95]
2562 #define SWIGTYPE_p_wxPNGHandler swig_types[96]
2563 #define SWIGTYPE_p_wxPNMHandler swig_types[97]
2564 #define SWIGTYPE_p_wxPaintDC swig_types[98]
2565 #define SWIGTYPE_p_wxPaintEvent swig_types[99]
2566 #define SWIGTYPE_p_wxPalette swig_types[100]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[102]
2569 #define SWIGTYPE_p_wxPen swig_types[103]
2570 #define SWIGTYPE_p_wxPenList swig_types[104]
2571 #define SWIGTYPE_p_wxPixelDataBase swig_types[105]
2572 #define SWIGTYPE_p_wxPoint swig_types[106]
2573 #define SWIGTYPE_p_wxPostScriptDC swig_types[107]
2574 #define SWIGTYPE_p_wxPrintData swig_types[108]
2575 #define SWIGTYPE_p_wxPrinterDC swig_types[109]
2576 #define SWIGTYPE_p_wxPseudoDC swig_types[110]
2577 #define SWIGTYPE_p_wxPyApp swig_types[111]
2578 #define SWIGTYPE_p_wxPyCommandEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPyEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[114]
2581 #define SWIGTYPE_p_wxPyImageHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPyLocale swig_types[116]
2583 #define SWIGTYPE_p_wxPySizer swig_types[117]
2584 #define SWIGTYPE_p_wxPyValidator swig_types[118]
2585 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[119]
2586 #define SWIGTYPE_p_wxRect swig_types[120]
2587 #define SWIGTYPE_p_wxRegion swig_types[121]
2588 #define SWIGTYPE_p_wxRegionIterator swig_types[122]
2589 #define SWIGTYPE_p_wxRendererNative swig_types[123]
2590 #define SWIGTYPE_p_wxRendererVersion swig_types[124]
2591 #define SWIGTYPE_p_wxScreenDC swig_types[125]
2592 #define SWIGTYPE_p_wxScrollEvent swig_types[126]
2593 #define SWIGTYPE_p_wxScrollWinEvent swig_types[127]
2594 #define SWIGTYPE_p_wxSetCursorEvent swig_types[128]
2595 #define SWIGTYPE_p_wxShowEvent swig_types[129]
2596 #define SWIGTYPE_p_wxSize swig_types[130]
2597 #define SWIGTYPE_p_wxSizeEvent swig_types[131]
2598 #define SWIGTYPE_p_wxSizer swig_types[132]
2599 #define SWIGTYPE_p_wxSizerItem swig_types[133]
2600 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[134]
2601 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2602 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[136]
2603 #define SWIGTYPE_p_wxStockGDI swig_types[137]
2604 #define SWIGTYPE_p_wxString swig_types[138]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[139]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[140]
2607 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[141]
2608 #define SWIGTYPE_p_wxValidator swig_types[142]
2609 #define SWIGTYPE_p_wxWindow swig_types[143]
2610 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[144]
2611 #define SWIGTYPE_p_wxWindowDC swig_types[145]
2612 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[146]
2613 #define SWIGTYPE_p_wxXPMHandler swig_types[147]
2614 static swig_type_info *swig_types[149];
2615 static swig_module_info swig_module = {swig_types, 148, 0, 0, 0, 0};
2616 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2617 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2618
2619 /* -------- TYPES TABLE (END) -------- */
2620
2621 #if (PY_VERSION_HEX <= 0x02000000)
2622 # if !defined(SWIG_PYTHON_CLASSIC)
2623 # error "This python version requires to use swig with the '-classic' option"
2624 # endif
2625 #endif
2626 #if (PY_VERSION_HEX <= 0x02020000)
2627 # error "This python version requires to use swig with the '-nomodern' option"
2628 #endif
2629 #if (PY_VERSION_HEX <= 0x02020000)
2630 # error "This python version requires to use swig with the '-nomodernargs' option"
2631 #endif
2632 #ifndef METH_O
2633 # error "This python version requires to use swig with the '-nofastunpack' option"
2634 #endif
2635
2636 /*-----------------------------------------------
2637 @(target):= _gdi_.so
2638 ------------------------------------------------*/
2639 #define SWIG_init init_gdi_
2640
2641 #define SWIG_name "_gdi_"
2642
2643 #define SWIGVERSION 0x010329
2644
2645
2646 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2647 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2648
2649
2650 #include <stdexcept>
2651
2652
2653 namespace swig {
2654 class PyObject_ptr {
2655 protected:
2656 PyObject *_obj;
2657
2658 public:
2659 PyObject_ptr() :_obj(0)
2660 {
2661 }
2662
2663 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2664 {
2665 Py_XINCREF(_obj);
2666 }
2667
2668 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2669 {
2670 if (initial_ref) Py_XINCREF(_obj);
2671 }
2672
2673 PyObject_ptr & operator=(const PyObject_ptr& item)
2674 {
2675 Py_XINCREF(item._obj);
2676 Py_XDECREF(_obj);
2677 _obj = item._obj;
2678 return *this;
2679 }
2680
2681 ~PyObject_ptr()
2682 {
2683 Py_XDECREF(_obj);
2684 }
2685
2686 operator PyObject *() const
2687 {
2688 return _obj;
2689 }
2690
2691 PyObject *operator->() const
2692 {
2693 return _obj;
2694 }
2695 };
2696 }
2697
2698
2699 namespace swig {
2700 struct PyObject_var : PyObject_ptr {
2701 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2702
2703 PyObject_var & operator = (PyObject* obj)
2704 {
2705 Py_XDECREF(_obj);
2706 _obj = obj;
2707 return *this;
2708 }
2709 };
2710 }
2711
2712
2713 #include "wx/wxPython/wxPython.h"
2714 #include "wx/wxPython/pyclasses.h"
2715
2716
2717 static const wxString wxPyEmptyString(wxEmptyString);
2718
2719 #define SWIG_From_long PyInt_FromLong
2720
2721
2722 SWIGINTERNINLINE PyObject *
2723 SWIG_From_int (int value)
2724 {
2725 return SWIG_From_long (value);
2726 }
2727
2728
2729 #include <limits.h>
2730 #ifndef LLONG_MIN
2731 # define LLONG_MIN LONG_LONG_MIN
2732 #endif
2733 #ifndef LLONG_MAX
2734 # define LLONG_MAX LONG_LONG_MAX
2735 #endif
2736 #ifndef ULLONG_MAX
2737 # define ULLONG_MAX ULONG_LONG_MAX
2738 #endif
2739
2740
2741 SWIGINTERN int
2742 SWIG_AsVal_long (PyObject* obj, long* val)
2743 {
2744 if (PyNumber_Check(obj)) {
2745 if (val) *val = PyInt_AsLong(obj);
2746 return SWIG_OK;
2747 }
2748 return SWIG_TypeError;
2749 }
2750
2751
2752 SWIGINTERN int
2753 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2754 {
2755 long v = 0;
2756 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2757 return SWIG_TypeError;
2758 }
2759 else if (val)
2760 *val = (unsigned long)v;
2761 return SWIG_OK;
2762 }
2763
2764
2765 SWIGINTERN int
2766 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2767 {
2768 unsigned long v;
2769 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2770 if (SWIG_IsOK(res)) {
2771 if ((v > UCHAR_MAX)) {
2772 return SWIG_OverflowError;
2773 } else {
2774 if (val) *val = static_cast< unsigned char >(v);
2775 }
2776 }
2777 return res;
2778 }
2779
2780
2781 SWIGINTERNINLINE PyObject*
2782 SWIG_From_unsigned_SS_long (unsigned long value)
2783 {
2784 return (value > LONG_MAX) ?
2785 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2786 }
2787
2788
2789 SWIGINTERNINLINE PyObject *
2790 SWIG_From_unsigned_SS_char (unsigned char value)
2791 {
2792 return SWIG_From_unsigned_SS_long (value);
2793 }
2794
2795 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2796 wxColour temp, *obj = &temp;
2797 if ( other == Py_None ) return false;
2798 if ( ! wxColour_helper(other, &obj) ) {
2799 PyErr_Clear();
2800 return false;
2801 }
2802 return self->operator==(*obj);
2803 }
2804 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2805 wxColour temp, *obj = &temp;
2806 if ( other == Py_None ) return true;
2807 if ( ! wxColour_helper(other, &obj)) {
2808 PyErr_Clear();
2809 return true;
2810 }
2811 return self->operator!=(*obj);
2812 }
2813
2814 SWIGINTERN int
2815 SWIG_AsVal_bool (PyObject *obj, bool *val)
2816 {
2817 if (obj == Py_True) {
2818 if (val) *val = true;
2819 return SWIG_OK;
2820 } else if (obj == Py_False) {
2821 if (val) *val = false;
2822 return SWIG_OK;
2823 } else {
2824 long v = 0;
2825 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2826 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2827 return res;
2828 }
2829 }
2830
2831 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2832 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2833 int red = -1;
2834 int green = -1;
2835 int blue = -1;
2836 int alpha = wxALPHA_OPAQUE;
2837 if (self->Ok()) {
2838 red = self->Red();
2839 green = self->Green();
2840 blue = self->Blue();
2841 alpha = self->Alpha();
2842 }
2843 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2844 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2845 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2846 if (includeAlpha)
2847 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2848 return rv;
2849 }
2850 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2851 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2852 }
2853
2854 SWIGINTERN int
2855 SWIG_AsVal_int (PyObject * obj, int *val)
2856 {
2857 long v;
2858 int res = SWIG_AsVal_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v < INT_MIN || v > INT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< int >(v);
2864 }
2865 }
2866 return res;
2867 }
2868
2869 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2870 wxDash* dashes;
2871 int count = self->GetDashes(&dashes);
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 PyObject* retval = PyList_New(0);
2874 for (int x=0; x<count; x++) {
2875 PyObject* pyint = PyInt_FromLong(dashes[x]);
2876 PyList_Append(retval, pyint);
2877 Py_DECREF(pyint);
2878 }
2879 wxPyEndBlockThreads(blocked);
2880 return retval;
2881 }
2882 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2884 int size = PyList_Size(pyDashes);
2885 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2886
2887 // black magic warning! The array of wxDashes needs to exist as
2888 // long as the pen does because wxPen does not copy the array. So
2889 // stick a copy in a Python string object and attach it to _self,
2890 // and then call SetDashes with a pointer to that array. Then
2891 // when the Python pen object is destroyed the array will be
2892 // cleaned up too.
2893 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2894 PyObject_SetAttrString(_self, "_dashes", strDashes);
2895
2896 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2897 delete [] dashes;
2898 Py_DECREF(strDashes);
2899 wxPyEndBlockThreads(blocked);
2900 }
2901 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2902 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2903
2904 #include <wx/rawbmp.h>
2905
2906
2907 #include <wx/image.h>
2908
2909 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2910 char** cArray = NULL;
2911 int count;
2912
2913 if (!PyList_Check(listOfStrings)) {
2914 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2915 return NULL;
2916 }
2917 count = PyList_Size(listOfStrings);
2918 cArray = new char*[count];
2919
2920 for(int x=0; x<count; x++) {
2921 // TODO: Need some validation and error checking here
2922 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2923 }
2924 return cArray;
2925 }
2926
2927
2928 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2929 char** cArray = NULL;
2930 wxBitmap* bmp;
2931
2932 cArray = ConvertListOfStrings(listOfStrings);
2933 if (! cArray)
2934 return NULL;
2935 bmp = new wxBitmap(cArray);
2936 delete [] cArray;
2937 return bmp;
2938 }
2939 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2940 char* buf;
2941 Py_ssize_t length;
2942 PyString_AsStringAndSize(bits, &buf, &length);
2943 return new wxBitmap(buf, width, height, depth);
2944 }
2945 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2946 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2947 wxSize size(self->GetWidth(), self->GetHeight());
2948 return size;
2949 }
2950 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2951 wxMask *mask = new wxMask(*self, colour);
2952 self->SetMask(mask);
2953 }
2954 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2955 self->SetWidth(size.x);
2956 self->SetHeight(size.y);
2957 }
2958 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2959 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2960
2961 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2962 // appears to me that the other platforms are already doing it, so I'll just
2963 // automatically do it for wxMSW here.
2964 #ifdef __WXMSW__
2965 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2966 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2967 #else
2968 #define wxPy_premultiply(p, a) (p)
2969 #define wxPy_unpremultiply(p, a) (p)
2970 #endif
2971
2972
2973 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2974 buffer data, int DATASIZE,
2975 buffer alpha, int ALPHASIZE)
2976 {
2977 if (DATASIZE != width*height*3) {
2978 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2979 return NULL;
2980 }
2981
2982 if (ALPHASIZE != width*height) {
2983 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2984 return NULL;
2985 }
2986
2987 wxBitmap* bmp = new wxBitmap(width, height, 32);
2988 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2989 if (! pixData) {
2990 // raise an exception...
2991 wxPyErr_SetString(PyExc_RuntimeError,
2992 "Failed to gain raw access to bitmap data.");
2993 return NULL;
2994 }
2995
2996 pixData.UseAlpha();
2997 wxAlphaPixelData::Iterator p(pixData);
2998 for (int y=0; y<height; y++) {
2999 wxAlphaPixelData::Iterator rowStart = p;
3000 for (int x=0; x<width; x++) {
3001 byte a = *(alpha++);
3002 p.Red() = wxPy_premultiply(*(data++), a);
3003 p.Green() = wxPy_premultiply(*(data++), a);
3004 p.Blue() = wxPy_premultiply(*(data++), a);
3005 p.Alpha() = a;
3006 ++p;
3007 }
3008 p = rowStart;
3009 p.OffsetY(pixData, 1);
3010 }
3011 return bmp;
3012 }
3013
3014 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3015 {
3016 if (DATASIZE != width*height*3) {
3017 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3018 return NULL;
3019 }
3020
3021 wxBitmap* bmp = new wxBitmap(width, height, 24);
3022 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return NULL;
3028 }
3029
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 return bmp;
3043 }
3044
3045
3046 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3047 {
3048 if (DATASIZE != width*height*4) {
3049 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3050 return NULL;
3051 }
3052
3053 wxBitmap* bmp = new wxBitmap(width, height, 32);
3054 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3055 if (! pixData) {
3056 // raise an exception...
3057 wxPyErr_SetString(PyExc_RuntimeError,
3058 "Failed to gain raw access to bitmap data.");
3059 return NULL;
3060 }
3061
3062 pixData.UseAlpha();
3063 wxAlphaPixelData::Iterator p(pixData);
3064 for (int y=0; y<height; y++) {
3065 wxAlphaPixelData::Iterator rowStart = p;
3066 for (int x=0; x<width; x++) {
3067 byte a = data[3];
3068 p.Red() = wxPy_premultiply(*(data++), a);
3069 p.Green() = wxPy_premultiply(*(data++), a);
3070 p.Blue() = wxPy_premultiply(*(data++), a);
3071 p.Alpha() = a; data++;
3072 ++p;
3073 }
3074 p = rowStart;
3075 p.OffsetY(pixData, 1);
3076 }
3077 return bmp;
3078 }
3079
3080
3081 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3082
3083 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3084 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3085 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3086 self->Red() = red;
3087 self->Green() = green;
3088 self->Blue() = blue;
3089 }
3090 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3091 PyObject* rv = PyTuple_New(3);
3092 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3093 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3094 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3095 return rv;
3096 }
3097
3098 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3099
3100 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3101 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3102 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3103 self->Red() = wxPy_premultiply(red, alpha);
3104 self->Green() = wxPy_premultiply(green, alpha);
3105 self->Blue() = wxPy_premultiply(blue, alpha);
3106 self->Alpha() = alpha;
3107 }
3108 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3109 PyObject* rv = PyTuple_New(4);
3110 int red = self->Red();
3111 int green = self->Green();
3112 int blue = self->Blue();
3113 int alpha = self->Alpha();
3114
3115 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3116 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3117 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3118 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3119 return rv;
3120 }
3121 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3122 if ( !colour.Ok() )
3123 return new wxMask(bitmap, *wxBLACK);
3124 else
3125 return new wxMask(bitmap, colour);
3126 }
3127
3128 #include <wx/iconbndl.h>
3129
3130 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3131 wxIcon* icon = new wxIcon();
3132 icon->CopyFromBitmap(bmp);
3133 return icon;
3134 }
3135 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3136 char** cArray = NULL;
3137 wxIcon* icon;
3138
3139 cArray = ConvertListOfStrings(listOfStrings);
3140 if (! cArray)
3141 return NULL;
3142 icon = new wxIcon(cArray);
3143 delete [] cArray;
3144 return icon;
3145 }
3146 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3147 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3148
3149 return new wxIconLocation(*filename, num);
3150
3151
3152
3153 }
3154 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3155
3156 self->SetIndex(num);
3157
3158
3159
3160 }
3161 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3162
3163 return self->GetIndex();
3164
3165
3166
3167 }
3168 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3169 #ifdef __WXGTK__
3170 wxImage img(cursorName, type);
3171 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3172 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3173 return new wxCursor(img);
3174 #else
3175 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3176 #endif
3177 }
3178 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3179
3180
3181 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3182 (*self) ++;
3183 }
3184 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3185 return self->operator bool();
3186 }
3187
3188 #include <wx/fontutil.h>
3189 #include <wx/fontmap.h>
3190 #include <wx/fontenum.h>
3191
3192 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3193 return self->ToString();
3194 }
3195
3196 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3197 { wxPyRaiseNotImplemented(); return NULL; }
3198
3199 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3200 { wxPyRaiseNotImplemented(); return false; }
3201
3202
3203 SWIGINTERNINLINE PyObject *
3204 SWIG_From_size_t (size_t value)
3205 {
3206 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3207 }
3208
3209
3210 SWIGINTERNINLINE int
3211 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3212 {
3213 unsigned long v;
3214 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3215 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3216 return res;
3217 }
3218
3219 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3220 wxFontEncoding alt_enc;
3221 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3222 return PyInt_FromLong(alt_enc);
3223 else {
3224 Py_INCREF(Py_None);
3225 return Py_None;
3226 }
3227 }
3228 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3229 wxNativeFontInfo nfi;
3230 nfi.FromString(info);
3231 return new wxFont(nfi);
3232 }
3233 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3234 return wxFont::New(pointSize, family, flags, face, encoding);
3235 }
3236 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3237 return wxFontBase::New(pixelSize, family,
3238 style, weight, underlined,
3239 face, encoding);
3240 }
3241 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3242 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3243 }
3244 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3245 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3246
3247 class wxPyFontEnumerator : public wxFontEnumerator {
3248 public:
3249 wxPyFontEnumerator() {}
3250 ~wxPyFontEnumerator() {}
3251
3252 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3253 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3254
3255 PYPRIVATE;
3256 };
3257
3258 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3259 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3260
3261
3262 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3263 PyObject* ret;
3264 wxArrayString arr = wxFontEnumerator::GetEncodings();
3265 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3266 ret = wxArrayString2PyList_helper(arr);
3267 wxPyEndBlockThreads(blocked);
3268 return ret;
3269 }
3270 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3271 PyObject* ret;
3272 wxArrayString arr = wxFontEnumerator::GetFacenames();
3273 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3274 ret = wxArrayString2PyList_helper(arr);
3275 wxPyEndBlockThreads(blocked);
3276 return ret;
3277 }
3278
3279 #include <locale.h>
3280
3281 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3282 wxLocale* loc;
3283 if (language == -1)
3284 loc = new wxLocale();
3285 else
3286 loc = new wxLocale(language, flags);
3287 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3288 // for the floating point conversions and such to work right.
3289 #if PY_VERSION_HEX < 0x02040000
3290 setlocale(LC_NUMERIC, "C");
3291 #endif
3292 return loc;
3293 }
3294 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3295 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3296 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3297 // for the floating point conversions and such to work right.
3298 #if PY_VERSION_HEX < 0x02040000
3299 setlocale(LC_NUMERIC, "C");
3300 #endif
3301 return rc;
3302 }
3303 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3304 bool rc = self->Init(language, flags);
3305 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3306 // for the floating point conversions and such to work right.
3307 #if PY_VERSION_HEX < 0x02040000
3308 setlocale(LC_NUMERIC, "C");
3309 #endif
3310 return rc;
3311 }
3312
3313 class wxPyLocale : public wxLocale
3314 {
3315 public:
3316 wxPyLocale();
3317
3318 wxPyLocale(const wxChar *szName, // name (for messages)
3319 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3320 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3321 bool bLoadDefault = true, // preload wxstd.mo?
3322 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3323
3324 wxPyLocale(int language, // wxLanguage id or custom language
3325 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3326
3327 ~wxPyLocale();
3328
3329 virtual const wxChar *GetString(const wxChar *szOrigString,
3330 const wxChar *szDomain = NULL) const;
3331 virtual const wxChar *GetString(const wxChar *szOrigString,
3332 const wxChar *szOrigString2, size_t n,
3333 const wxChar *szDomain = NULL) const;
3334
3335 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3336 const wxChar *szDomain = NULL) const;
3337 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3338 const wxChar *szOrigString2, size_t n,
3339 const wxChar *szDomain = NULL) const;
3340
3341 PYPRIVATE;
3342 private:
3343 DECLARE_NO_COPY_CLASS(wxPyLocale)
3344 };
3345
3346 wxPyLocale::wxPyLocale() : wxLocale()
3347 {
3348 }
3349
3350 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3351 const wxChar *szShort, // dir prefix (for msg files)
3352 const wxChar *szLocale, // locale (for setlocale)
3353 bool bLoadDefault, // preload wxstd.mo?
3354 bool bConvertEncoding) // convert Win<->Unix if necessary?
3355 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3356 {
3357 }
3358
3359 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3360 int flags) : wxLocale(language, flags)
3361 {
3362 }
3363
3364 wxPyLocale::~wxPyLocale()
3365 {
3366 }
3367
3368 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3369 const wxChar *szDomain) const
3370 {
3371 wxChar *str = GetSingularString(szOrigString, szDomain);
3372 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3373 }
3374
3375 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3376 const wxChar *szOrigString2, size_t n,
3377 const wxChar *szDomain) const
3378 {
3379 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3380 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3381 }
3382
3383 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3384 const wxChar *szDomain) const
3385 {
3386 bool found;
3387 static wxString str;
3388 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3389 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3390 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3391 PyObject* param1 = wx2PyString(szOrigString);
3392 PyObject* param2 = wx2PyString(szDomain);
3393 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3394 Py_DECREF(param1);
3395 Py_DECREF(param2);
3396 if (ret) {
3397 str = Py2wxString(ret);
3398 Py_DECREF(ret);
3399 }
3400 }
3401 wxPyEndBlockThreads(blocked);
3402 return (found ? (wxChar*)str.c_str() : NULL);
3403 }
3404
3405 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3406 const wxChar *szOrigString2, size_t n,
3407 const wxChar *szDomain) const
3408 {
3409 bool found;
3410 static wxString str;
3411 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3412 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3413 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3414 PyObject* param1 = wx2PyString(szOrigString);
3415 PyObject* param2 = wx2PyString(szOrigString2);
3416 PyObject* param4 = wx2PyString(szDomain);
3417 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3418 Py_DECREF(param1);
3419 Py_DECREF(param2);
3420 Py_DECREF(param4);
3421 if( ret) {
3422 str = Py2wxString(ret);
3423 Py_DECREF(ret);
3424 }
3425 }
3426 wxPyEndBlockThreads(blocked);
3427 return (found ? (wxChar*)str.c_str() : NULL);
3428 }
3429
3430 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3431 wxPyLocale* loc;
3432 if (language == -1)
3433 loc = new wxPyLocale();
3434 else
3435 loc = new wxPyLocale(language, flags);
3436 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3437 // for the floating point conversions and such to work right.
3438 #if PY_VERSION_HEX < 0x02040000
3439 setlocale(LC_NUMERIC, "C");
3440 #endif
3441 return loc;
3442 }
3443
3444 #include "wx/wxPython/pydrawxxx.h"
3445
3446 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3447 wxColour col;
3448 self->GetPixel(x, y, &col);
3449 return col;
3450 }
3451 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3452 wxColour col;
3453 self->GetPixel(pt, &col);
3454 return col;
3455 }
3456
3457 SWIGINTERN int
3458 SWIG_AsVal_double (PyObject *obj, double* val)
3459 {
3460 if (PyNumber_Check(obj)) {
3461 if (val) *val = PyFloat_AsDouble(obj);
3462 return SWIG_OK;
3463 }
3464 return SWIG_TypeError;
3465 }
3466
3467 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3468 wxRect rv;
3469 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3470 return rv;
3471 }
3472 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3473 wxRect rect;
3474 self->GetClippingBox(rect);
3475 return rect;
3476 }
3477 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3478 wxArrayInt widths;
3479 self->GetPartialTextExtents(text, widths);
3480 return widths;
3481 }
3482
3483 #define SWIG_From_double PyFloat_FromDouble
3484
3485 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3486 self->SetLogicalOrigin(point.x, point.y);
3487 }
3488 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3489 self->SetDeviceOrigin(point.x, point.y);
3490 }
3491 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3492 self->CalcBoundingBox(point.x, point.y);
3493 }
3494 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3495 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3496 }
3497 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3498 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3499 }
3500 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3501 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3502 }
3503 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3504 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3505 }
3506 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3507 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3508 }
3509 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3510 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3511 }
3512
3513 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3514 *x1 = dc->MinX();
3515 *y1 = dc->MinY();
3516 *x2 = dc->MaxX();
3517 *y2 = dc->MaxY();
3518 }
3519
3520
3521 #include <wx/dcbuffer.h>
3522
3523
3524 #include <wx/dcps.h>
3525
3526
3527 #include <wx/metafile.h>
3528
3529
3530
3531 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3532 self->AddColour(name, wxColour(red, green, blue));
3533 }
3534
3535 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3536 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3537 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3538 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3539
3540
3541 #include <wx/effects.h>
3542
3543
3544 #include "wx/renderer.h"
3545
3546
3547 SWIGINTERNINLINE PyObject*
3548 SWIG_From_bool (bool value)
3549 {
3550 return PyBool_FromLong(value ? 1 : 0);
3551 }
3552
3553
3554 #include "wx/wxPython/pseudodc.h"
3555
3556 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3557 wxRect rect;
3558 self->GetIdBounds(id, rect);
3559 return rect;
3560 }
3561 #ifdef __cplusplus
3562 extern "C" {
3563 #endif
3564 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3565 PyObject *resultobj = 0;
3566 wxGDIObject *result = 0 ;
3567
3568 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3569 {
3570 if (!wxPyCheckForApp()) SWIG_fail;
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 result = (wxGDIObject *)new wxGDIObject();
3573 wxPyEndAllowThreads(__tstate);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3577 return resultobj;
3578 fail:
3579 return NULL;
3580 }
3581
3582
3583 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3584 PyObject *resultobj = 0;
3585 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3586 void *argp1 = 0 ;
3587 int res1 = 0 ;
3588 PyObject *swig_obj[1] ;
3589
3590 if (!args) SWIG_fail;
3591 swig_obj[0] = args;
3592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3593 if (!SWIG_IsOK(res1)) {
3594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3595 }
3596 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3597 {
3598 PyThreadState* __tstate = wxPyBeginAllowThreads();
3599 delete arg1;
3600
3601 wxPyEndAllowThreads(__tstate);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 }
3604 resultobj = SWIG_Py_Void();
3605 return resultobj;
3606 fail:
3607 return NULL;
3608 }
3609
3610
3611 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3612 PyObject *resultobj = 0;
3613 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3614 bool result;
3615 void *argp1 = 0 ;
3616 int res1 = 0 ;
3617 PyObject *swig_obj[1] ;
3618
3619 if (!args) SWIG_fail;
3620 swig_obj[0] = args;
3621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3622 if (!SWIG_IsOK(res1)) {
3623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3624 }
3625 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3626 {
3627 PyThreadState* __tstate = wxPyBeginAllowThreads();
3628 result = (bool)(arg1)->IsNull();
3629 wxPyEndAllowThreads(__tstate);
3630 if (PyErr_Occurred()) SWIG_fail;
3631 }
3632 {
3633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3634 }
3635 return resultobj;
3636 fail:
3637 return NULL;
3638 }
3639
3640
3641 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3642 PyObject *obj;
3643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3644 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3645 return SWIG_Py_Void();
3646 }
3647
3648 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3649 return SWIG_Python_InitShadowInstance(args);
3650 }
3651
3652 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3653 PyObject *resultobj = 0;
3654 byte arg1 = (byte) 0 ;
3655 byte arg2 = (byte) 0 ;
3656 byte arg3 = (byte) 0 ;
3657 byte arg4 = (byte) wxALPHA_OPAQUE ;
3658 wxColour *result = 0 ;
3659 unsigned char val1 ;
3660 int ecode1 = 0 ;
3661 unsigned char val2 ;
3662 int ecode2 = 0 ;
3663 unsigned char val3 ;
3664 int ecode3 = 0 ;
3665 unsigned char val4 ;
3666 int ecode4 = 0 ;
3667 PyObject * obj0 = 0 ;
3668 PyObject * obj1 = 0 ;
3669 PyObject * obj2 = 0 ;
3670 PyObject * obj3 = 0 ;
3671 char * kwnames[] = {
3672 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3673 };
3674
3675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3676 if (obj0) {
3677 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3678 if (!SWIG_IsOK(ecode1)) {
3679 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3680 }
3681 arg1 = static_cast< byte >(val1);
3682 }
3683 if (obj1) {
3684 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3685 if (!SWIG_IsOK(ecode2)) {
3686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3687 }
3688 arg2 = static_cast< byte >(val2);
3689 }
3690 if (obj2) {
3691 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3692 if (!SWIG_IsOK(ecode3)) {
3693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3694 }
3695 arg3 = static_cast< byte >(val3);
3696 }
3697 if (obj3) {
3698 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3699 if (!SWIG_IsOK(ecode4)) {
3700 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3701 }
3702 arg4 = static_cast< byte >(val4);
3703 }
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3711 return resultobj;
3712 fail:
3713 return NULL;
3714 }
3715
3716
3717 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj = 0;
3719 wxString *arg1 = 0 ;
3720 wxColour *result = 0 ;
3721 bool temp1 = false ;
3722 PyObject * obj0 = 0 ;
3723 char * kwnames[] = {
3724 (char *) "colorName", NULL
3725 };
3726
3727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3728 {
3729 arg1 = wxString_in_helper(obj0);
3730 if (arg1 == NULL) SWIG_fail;
3731 temp1 = true;
3732 }
3733 {
3734 if (!wxPyCheckForApp()) SWIG_fail;
3735 PyThreadState* __tstate = wxPyBeginAllowThreads();
3736 result = (wxColour *)new wxColour((wxString const &)*arg1);
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) SWIG_fail;
3739 }
3740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3741 {
3742 if (temp1)
3743 delete arg1;
3744 }
3745 return resultobj;
3746 fail:
3747 {
3748 if (temp1)
3749 delete arg1;
3750 }
3751 return NULL;
3752 }
3753
3754
3755 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3756 PyObject *resultobj = 0;
3757 unsigned long arg1 ;
3758 wxColour *result = 0 ;
3759 unsigned long val1 ;
3760 int ecode1 = 0 ;
3761 PyObject * obj0 = 0 ;
3762 char * kwnames[] = {
3763 (char *) "colRGB", NULL
3764 };
3765
3766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3767 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3768 if (!SWIG_IsOK(ecode1)) {
3769 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3770 }
3771 arg1 = static_cast< unsigned long >(val1);
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 result = (wxColour *)new wxColour(arg1);
3775 wxPyEndAllowThreads(__tstate);
3776 if (PyErr_Occurred()) SWIG_fail;
3777 }
3778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3779 return resultobj;
3780 fail:
3781 return NULL;
3782 }
3783
3784
3785 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3786 PyObject *resultobj = 0;
3787 wxColour *arg1 = (wxColour *) 0 ;
3788 void *argp1 = 0 ;
3789 int res1 = 0 ;
3790 PyObject *swig_obj[1] ;
3791
3792 if (!args) SWIG_fail;
3793 swig_obj[0] = args;
3794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3795 if (!SWIG_IsOK(res1)) {
3796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3797 }
3798 arg1 = reinterpret_cast< wxColour * >(argp1);
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 delete arg1;
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 resultobj = SWIG_Py_Void();
3807 return resultobj;
3808 fail:
3809 return NULL;
3810 }
3811
3812
3813 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3814 PyObject *resultobj = 0;
3815 wxColour *arg1 = (wxColour *) 0 ;
3816 byte result;
3817 void *argp1 = 0 ;
3818 int res1 = 0 ;
3819 PyObject *swig_obj[1] ;
3820
3821 if (!args) SWIG_fail;
3822 swig_obj[0] = args;
3823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3824 if (!SWIG_IsOK(res1)) {
3825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3826 }
3827 arg1 = reinterpret_cast< wxColour * >(argp1);
3828 {
3829 PyThreadState* __tstate = wxPyBeginAllowThreads();
3830 result = (byte)(arg1)->Red();
3831 wxPyEndAllowThreads(__tstate);
3832 if (PyErr_Occurred()) SWIG_fail;
3833 }
3834 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3835 return resultobj;
3836 fail:
3837 return NULL;
3838 }
3839
3840
3841 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3842 PyObject *resultobj = 0;
3843 wxColour *arg1 = (wxColour *) 0 ;
3844 byte result;
3845 void *argp1 = 0 ;
3846 int res1 = 0 ;
3847 PyObject *swig_obj[1] ;
3848
3849 if (!args) SWIG_fail;
3850 swig_obj[0] = args;
3851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3852 if (!SWIG_IsOK(res1)) {
3853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3854 }
3855 arg1 = reinterpret_cast< wxColour * >(argp1);
3856 {
3857 PyThreadState* __tstate = wxPyBeginAllowThreads();
3858 result = (byte)(arg1)->Green();
3859 wxPyEndAllowThreads(__tstate);
3860 if (PyErr_Occurred()) SWIG_fail;
3861 }
3862 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3863 return resultobj;
3864 fail:
3865 return NULL;
3866 }
3867
3868
3869 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3870 PyObject *resultobj = 0;
3871 wxColour *arg1 = (wxColour *) 0 ;
3872 byte result;
3873 void *argp1 = 0 ;
3874 int res1 = 0 ;
3875 PyObject *swig_obj[1] ;
3876
3877 if (!args) SWIG_fail;
3878 swig_obj[0] = args;
3879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3880 if (!SWIG_IsOK(res1)) {
3881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3882 }
3883 arg1 = reinterpret_cast< wxColour * >(argp1);
3884 {
3885 PyThreadState* __tstate = wxPyBeginAllowThreads();
3886 result = (byte)(arg1)->Blue();
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3898 PyObject *resultobj = 0;
3899 wxColour *arg1 = (wxColour *) 0 ;
3900 byte result;
3901 void *argp1 = 0 ;
3902 int res1 = 0 ;
3903 PyObject *swig_obj[1] ;
3904
3905 if (!args) SWIG_fail;
3906 swig_obj[0] = args;
3907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3908 if (!SWIG_IsOK(res1)) {
3909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3910 }
3911 arg1 = reinterpret_cast< wxColour * >(argp1);
3912 {
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = (byte)(arg1)->Alpha();
3915 wxPyEndAllowThreads(__tstate);
3916 if (PyErr_Occurred()) SWIG_fail;
3917 }
3918 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3919 return resultobj;
3920 fail:
3921 return NULL;
3922 }
3923
3924
3925 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3926 PyObject *resultobj = 0;
3927 wxColour *arg1 = (wxColour *) 0 ;
3928 bool result;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 PyObject *swig_obj[1] ;
3932
3933 if (!args) SWIG_fail;
3934 swig_obj[0] = args;
3935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3936 if (!SWIG_IsOK(res1)) {
3937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3938 }
3939 arg1 = reinterpret_cast< wxColour * >(argp1);
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 result = (bool)(arg1)->Ok();
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 {
3947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3948 }
3949 return resultobj;
3950 fail:
3951 return NULL;
3952 }
3953
3954
3955 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3956 PyObject *resultobj = 0;
3957 wxColour *arg1 = (wxColour *) 0 ;
3958 byte arg2 ;
3959 byte arg3 ;
3960 byte arg4 ;
3961 byte arg5 = (byte) wxALPHA_OPAQUE ;
3962 void *argp1 = 0 ;
3963 int res1 = 0 ;
3964 unsigned char val2 ;
3965 int ecode2 = 0 ;
3966 unsigned char val3 ;
3967 int ecode3 = 0 ;
3968 unsigned char val4 ;
3969 int ecode4 = 0 ;
3970 unsigned char val5 ;
3971 int ecode5 = 0 ;
3972 PyObject * obj0 = 0 ;
3973 PyObject * obj1 = 0 ;
3974 PyObject * obj2 = 0 ;
3975 PyObject * obj3 = 0 ;
3976 PyObject * obj4 = 0 ;
3977 char * kwnames[] = {
3978 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3979 };
3980
3981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
3982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3983 if (!SWIG_IsOK(res1)) {
3984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3985 }
3986 arg1 = reinterpret_cast< wxColour * >(argp1);
3987 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3988 if (!SWIG_IsOK(ecode2)) {
3989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3990 }
3991 arg2 = static_cast< byte >(val2);
3992 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3993 if (!SWIG_IsOK(ecode3)) {
3994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3995 }
3996 arg3 = static_cast< byte >(val3);
3997 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3998 if (!SWIG_IsOK(ecode4)) {
3999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4000 }
4001 arg4 = static_cast< byte >(val4);
4002 if (obj4) {
4003 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4004 if (!SWIG_IsOK(ecode5)) {
4005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4006 }
4007 arg5 = static_cast< byte >(val5);
4008 }
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 (arg1)->Set(arg2,arg3,arg4,arg5);
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 resultobj = SWIG_Py_Void();
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj = 0;
4024 wxColour *arg1 = (wxColour *) 0 ;
4025 unsigned long arg2 ;
4026 void *argp1 = 0 ;
4027 int res1 = 0 ;
4028 unsigned long val2 ;
4029 int ecode2 = 0 ;
4030 PyObject * obj0 = 0 ;
4031 PyObject * obj1 = 0 ;
4032 char * kwnames[] = {
4033 (char *) "self",(char *) "colRGB", NULL
4034 };
4035
4036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4038 if (!SWIG_IsOK(res1)) {
4039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4040 }
4041 arg1 = reinterpret_cast< wxColour * >(argp1);
4042 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4043 if (!SWIG_IsOK(ecode2)) {
4044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4045 }
4046 arg2 = static_cast< unsigned long >(val2);
4047 {
4048 PyThreadState* __tstate = wxPyBeginAllowThreads();
4049 (arg1)->Set(arg2);
4050 wxPyEndAllowThreads(__tstate);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 resultobj = SWIG_Py_Void();
4054 return resultobj;
4055 fail:
4056 return NULL;
4057 }
4058
4059
4060 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4061 PyObject *resultobj = 0;
4062 wxColour *arg1 = (wxColour *) 0 ;
4063 wxString *arg2 = 0 ;
4064 void *argp1 = 0 ;
4065 int res1 = 0 ;
4066 bool temp2 = false ;
4067 PyObject * obj0 = 0 ;
4068 PyObject * obj1 = 0 ;
4069 char * kwnames[] = {
4070 (char *) "self",(char *) "colourName", NULL
4071 };
4072
4073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4075 if (!SWIG_IsOK(res1)) {
4076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4077 }
4078 arg1 = reinterpret_cast< wxColour * >(argp1);
4079 {
4080 arg2 = wxString_in_helper(obj1);
4081 if (arg2 == NULL) SWIG_fail;
4082 temp2 = true;
4083 }
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 (arg1)->InitFromName((wxString const &)*arg2);
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_Py_Void();
4091 {
4092 if (temp2)
4093 delete arg2;
4094 }
4095 return resultobj;
4096 fail:
4097 {
4098 if (temp2)
4099 delete arg2;
4100 }
4101 return NULL;
4102 }
4103
4104
4105 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4106 PyObject *resultobj = 0;
4107 wxColour *arg1 = (wxColour *) 0 ;
4108 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4109 wxString result;
4110 void *argp1 = 0 ;
4111 int res1 = 0 ;
4112 long val2 ;
4113 int ecode2 = 0 ;
4114 PyObject * obj0 = 0 ;
4115 PyObject * obj1 = 0 ;
4116 char * kwnames[] = {
4117 (char *) "self",(char *) "flags", NULL
4118 };
4119
4120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4122 if (!SWIG_IsOK(res1)) {
4123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4124 }
4125 arg1 = reinterpret_cast< wxColour * >(argp1);
4126 if (obj1) {
4127 ecode2 = SWIG_AsVal_long(obj1, &val2);
4128 if (!SWIG_IsOK(ecode2)) {
4129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4130 }
4131 arg2 = static_cast< long >(val2);
4132 }
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 result = ((wxColour const *)arg1)->GetAsString(arg2);
4136 wxPyEndAllowThreads(__tstate);
4137 if (PyErr_Occurred()) SWIG_fail;
4138 }
4139 {
4140 #if wxUSE_UNICODE
4141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4142 #else
4143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4144 #endif
4145 }
4146 return resultobj;
4147 fail:
4148 return NULL;
4149 }
4150
4151
4152 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4153 PyObject *resultobj = 0;
4154 wxColour *arg1 = (wxColour *) 0 ;
4155 long result;
4156 void *argp1 = 0 ;
4157 int res1 = 0 ;
4158 PyObject *swig_obj[1] ;
4159
4160 if (!args) SWIG_fail;
4161 swig_obj[0] = args;
4162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4163 if (!SWIG_IsOK(res1)) {
4164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4165 }
4166 arg1 = reinterpret_cast< wxColour * >(argp1);
4167 {
4168 PyThreadState* __tstate = wxPyBeginAllowThreads();
4169 result = (long)((wxColour const *)arg1)->GetPixel();
4170 wxPyEndAllowThreads(__tstate);
4171 if (PyErr_Occurred()) SWIG_fail;
4172 }
4173 resultobj = SWIG_From_long(static_cast< long >(result));
4174 return resultobj;
4175 fail:
4176 return NULL;
4177 }
4178
4179
4180 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4181 PyObject *resultobj = 0;
4182 wxColour *arg1 = (wxColour *) 0 ;
4183 PyObject *arg2 = (PyObject *) 0 ;
4184 bool result;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 PyObject * obj0 = 0 ;
4188 PyObject * obj1 = 0 ;
4189 char * kwnames[] = {
4190 (char *) "self",(char *) "other", NULL
4191 };
4192
4193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4195 if (!SWIG_IsOK(res1)) {
4196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4197 }
4198 arg1 = reinterpret_cast< wxColour * >(argp1);
4199 arg2 = obj1;
4200 {
4201 result = (bool)wxColour___eq__(arg1,arg2);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
4204 {
4205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4206 }
4207 return resultobj;
4208 fail:
4209 return NULL;
4210 }
4211
4212
4213 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4214 PyObject *resultobj = 0;
4215 wxColour *arg1 = (wxColour *) 0 ;
4216 PyObject *arg2 = (PyObject *) 0 ;
4217 bool result;
4218 void *argp1 = 0 ;
4219 int res1 = 0 ;
4220 PyObject * obj0 = 0 ;
4221 PyObject * obj1 = 0 ;
4222 char * kwnames[] = {
4223 (char *) "self",(char *) "other", NULL
4224 };
4225
4226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4228 if (!SWIG_IsOK(res1)) {
4229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4230 }
4231 arg1 = reinterpret_cast< wxColour * >(argp1);
4232 arg2 = obj1;
4233 {
4234 result = (bool)wxColour___ne__(arg1,arg2);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 {
4238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4239 }
4240 return resultobj;
4241 fail:
4242 return NULL;
4243 }
4244
4245
4246 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4247 PyObject *resultobj = 0;
4248 wxColour *arg1 = (wxColour *) 0 ;
4249 bool arg2 = (bool) false ;
4250 PyObject *result = 0 ;
4251 void *argp1 = 0 ;
4252 int res1 = 0 ;
4253 bool val2 ;
4254 int ecode2 = 0 ;
4255 PyObject * obj0 = 0 ;
4256 PyObject * obj1 = 0 ;
4257 char * kwnames[] = {
4258 (char *) "self",(char *) "includeAlpha", NULL
4259 };
4260
4261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4263 if (!SWIG_IsOK(res1)) {
4264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4265 }
4266 arg1 = reinterpret_cast< wxColour * >(argp1);
4267 if (obj1) {
4268 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4269 if (!SWIG_IsOK(ecode2)) {
4270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4271 }
4272 arg2 = static_cast< bool >(val2);
4273 }
4274 {
4275 result = (PyObject *)wxColour_Get(arg1,arg2);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 resultobj = result;
4279 return resultobj;
4280 fail:
4281 return NULL;
4282 }
4283
4284
4285 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4286 PyObject *resultobj = 0;
4287 wxColour *arg1 = (wxColour *) 0 ;
4288 unsigned long result;
4289 void *argp1 = 0 ;
4290 int res1 = 0 ;
4291 PyObject *swig_obj[1] ;
4292
4293 if (!args) SWIG_fail;
4294 swig_obj[0] = args;
4295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4296 if (!SWIG_IsOK(res1)) {
4297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4298 }
4299 arg1 = reinterpret_cast< wxColour * >(argp1);
4300 {
4301 result = (unsigned long)wxColour_GetRGB(arg1);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4305 return resultobj;
4306 fail:
4307 return NULL;
4308 }
4309
4310
4311 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4312 PyObject *obj;
4313 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4314 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4315 return SWIG_Py_Void();
4316 }
4317
4318 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4319 return SWIG_Python_InitShadowInstance(args);
4320 }
4321
4322 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj = 0;
4324 int arg1 ;
4325 unsigned char *arg2 = (unsigned char *) 0 ;
4326 unsigned char *arg3 = (unsigned char *) 0 ;
4327 unsigned char *arg4 = (unsigned char *) 0 ;
4328 wxPalette *result = 0 ;
4329 int val1 ;
4330 int ecode1 = 0 ;
4331 void *argp2 = 0 ;
4332 int res2 = 0 ;
4333 void *argp3 = 0 ;
4334 int res3 = 0 ;
4335 void *argp4 = 0 ;
4336 int res4 = 0 ;
4337 PyObject * obj0 = 0 ;
4338 PyObject * obj1 = 0 ;
4339 PyObject * obj2 = 0 ;
4340 PyObject * obj3 = 0 ;
4341 char * kwnames[] = {
4342 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4343 };
4344
4345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4346 ecode1 = SWIG_AsVal_int(obj0, &val1);
4347 if (!SWIG_IsOK(ecode1)) {
4348 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4349 }
4350 arg1 = static_cast< int >(val1);
4351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4352 if (!SWIG_IsOK(res2)) {
4353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4354 }
4355 arg2 = reinterpret_cast< unsigned char * >(argp2);
4356 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4357 if (!SWIG_IsOK(res3)) {
4358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4359 }
4360 arg3 = reinterpret_cast< unsigned char * >(argp3);
4361 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4362 if (!SWIG_IsOK(res4)) {
4363 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4364 }
4365 arg4 = reinterpret_cast< unsigned char * >(argp4);
4366 {
4367 if (!wxPyCheckForApp()) SWIG_fail;
4368 PyThreadState* __tstate = wxPyBeginAllowThreads();
4369 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 }
4373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4374 return resultobj;
4375 fail:
4376 return NULL;
4377 }
4378
4379
4380 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4381 PyObject *resultobj = 0;
4382 wxPalette *arg1 = (wxPalette *) 0 ;
4383 void *argp1 = 0 ;
4384 int res1 = 0 ;
4385 PyObject *swig_obj[1] ;
4386
4387 if (!args) SWIG_fail;
4388 swig_obj[0] = args;
4389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4390 if (!SWIG_IsOK(res1)) {
4391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4392 }
4393 arg1 = reinterpret_cast< wxPalette * >(argp1);
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 delete arg1;
4397
4398 wxPyEndAllowThreads(__tstate);
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 resultobj = SWIG_Py_Void();
4402 return resultobj;
4403 fail:
4404 return NULL;
4405 }
4406
4407
4408 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj = 0;
4410 wxPalette *arg1 = (wxPalette *) 0 ;
4411 byte arg2 ;
4412 byte arg3 ;
4413 byte arg4 ;
4414 int result;
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
4417 unsigned char val2 ;
4418 int ecode2 = 0 ;
4419 unsigned char val3 ;
4420 int ecode3 = 0 ;
4421 unsigned char val4 ;
4422 int ecode4 = 0 ;
4423 PyObject * obj0 = 0 ;
4424 PyObject * obj1 = 0 ;
4425 PyObject * obj2 = 0 ;
4426 PyObject * obj3 = 0 ;
4427 char * kwnames[] = {
4428 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4429 };
4430
4431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4433 if (!SWIG_IsOK(res1)) {
4434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4435 }
4436 arg1 = reinterpret_cast< wxPalette * >(argp1);
4437 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4438 if (!SWIG_IsOK(ecode2)) {
4439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4440 }
4441 arg2 = static_cast< byte >(val2);
4442 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4443 if (!SWIG_IsOK(ecode3)) {
4444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4445 }
4446 arg3 = static_cast< byte >(val3);
4447 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4448 if (!SWIG_IsOK(ecode4)) {
4449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4450 }
4451 arg4 = static_cast< byte >(val4);
4452 {
4453 PyThreadState* __tstate = wxPyBeginAllowThreads();
4454 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4455 wxPyEndAllowThreads(__tstate);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 resultobj = SWIG_From_int(static_cast< int >(result));
4459 return resultobj;
4460 fail:
4461 return NULL;
4462 }
4463
4464
4465 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4466 PyObject *resultobj = 0;
4467 wxPalette *arg1 = (wxPalette *) 0 ;
4468 int arg2 ;
4469 byte *arg3 = (byte *) 0 ;
4470 byte *arg4 = (byte *) 0 ;
4471 byte *arg5 = (byte *) 0 ;
4472 bool result;
4473 void *argp1 = 0 ;
4474 int res1 = 0 ;
4475 int val2 ;
4476 int ecode2 = 0 ;
4477 byte temp3 ;
4478 int res3 = SWIG_TMPOBJ ;
4479 byte temp4 ;
4480 int res4 = SWIG_TMPOBJ ;
4481 byte temp5 ;
4482 int res5 = SWIG_TMPOBJ ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char * kwnames[] = {
4486 (char *) "self",(char *) "pixel", NULL
4487 };
4488
4489 arg3 = &temp3;
4490 arg4 = &temp4;
4491 arg5 = &temp5;
4492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4494 if (!SWIG_IsOK(res1)) {
4495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4496 }
4497 arg1 = reinterpret_cast< wxPalette * >(argp1);
4498 ecode2 = SWIG_AsVal_int(obj1, &val2);
4499 if (!SWIG_IsOK(ecode2)) {
4500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4501 }
4502 arg2 = static_cast< int >(val2);
4503 {
4504 PyThreadState* __tstate = wxPyBeginAllowThreads();
4505 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4506 wxPyEndAllowThreads(__tstate);
4507 if (PyErr_Occurred()) SWIG_fail;
4508 }
4509 {
4510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4511 }
4512 if (SWIG_IsTmpObj(res3)) {
4513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4514 } else {
4515 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4517 }
4518 if (SWIG_IsTmpObj(res4)) {
4519 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4520 } else {
4521 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4522 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4523 }
4524 if (SWIG_IsTmpObj(res5)) {
4525 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4526 } else {
4527 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4528 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4529 }
4530 return resultobj;
4531 fail:
4532 return NULL;
4533 }
4534
4535
4536 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4537 PyObject *resultobj = 0;
4538 wxPalette *arg1 = (wxPalette *) 0 ;
4539 int result;
4540 void *argp1 = 0 ;
4541 int res1 = 0 ;
4542 PyObject *swig_obj[1] ;
4543
4544 if (!args) SWIG_fail;
4545 swig_obj[0] = args;
4546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4547 if (!SWIG_IsOK(res1)) {
4548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4549 }
4550 arg1 = reinterpret_cast< wxPalette * >(argp1);
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4554 wxPyEndAllowThreads(__tstate);
4555 if (PyErr_Occurred()) SWIG_fail;
4556 }
4557 resultobj = SWIG_From_int(static_cast< int >(result));
4558 return resultobj;
4559 fail:
4560 return NULL;
4561 }
4562
4563
4564 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4565 PyObject *resultobj = 0;
4566 wxPalette *arg1 = (wxPalette *) 0 ;
4567 bool result;
4568 void *argp1 = 0 ;
4569 int res1 = 0 ;
4570 PyObject *swig_obj[1] ;
4571
4572 if (!args) SWIG_fail;
4573 swig_obj[0] = args;
4574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4577 }
4578 arg1 = reinterpret_cast< wxPalette * >(argp1);
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 result = (bool)(arg1)->Ok();
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 {
4586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4587 }
4588 return resultobj;
4589 fail:
4590 return NULL;
4591 }
4592
4593
4594 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4595 PyObject *obj;
4596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4597 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4598 return SWIG_Py_Void();
4599 }
4600
4601 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4602 return SWIG_Python_InitShadowInstance(args);
4603 }
4604
4605 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4606 PyObject *resultobj = 0;
4607 wxColour *arg1 = 0 ;
4608 int arg2 = (int) 1 ;
4609 int arg3 = (int) wxSOLID ;
4610 wxPen *result = 0 ;
4611 wxColour temp1 ;
4612 int val2 ;
4613 int ecode2 = 0 ;
4614 int val3 ;
4615 int ecode3 = 0 ;
4616 PyObject * obj0 = 0 ;
4617 PyObject * obj1 = 0 ;
4618 PyObject * obj2 = 0 ;
4619 char * kwnames[] = {
4620 (char *) "colour",(char *) "width",(char *) "style", NULL
4621 };
4622
4623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4624 {
4625 arg1 = &temp1;
4626 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4627 }
4628 if (obj1) {
4629 ecode2 = SWIG_AsVal_int(obj1, &val2);
4630 if (!SWIG_IsOK(ecode2)) {
4631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4632 }
4633 arg2 = static_cast< int >(val2);
4634 }
4635 if (obj2) {
4636 ecode3 = SWIG_AsVal_int(obj2, &val3);
4637 if (!SWIG_IsOK(ecode3)) {
4638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4639 }
4640 arg3 = static_cast< int >(val3);
4641 }
4642 {
4643 if (!wxPyCheckForApp()) SWIG_fail;
4644 PyThreadState* __tstate = wxPyBeginAllowThreads();
4645 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4657 PyObject *resultobj = 0;
4658 wxPen *arg1 = (wxPen *) 0 ;
4659 void *argp1 = 0 ;
4660 int res1 = 0 ;
4661 PyObject *swig_obj[1] ;
4662
4663 if (!args) SWIG_fail;
4664 swig_obj[0] = args;
4665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4666 if (!SWIG_IsOK(res1)) {
4667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4668 }
4669 arg1 = reinterpret_cast< wxPen * >(argp1);
4670 {
4671 PyThreadState* __tstate = wxPyBeginAllowThreads();
4672 delete arg1;
4673
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_Py_Void();
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4685 PyObject *resultobj = 0;
4686 wxPen *arg1 = (wxPen *) 0 ;
4687 int result;
4688 void *argp1 = 0 ;
4689 int res1 = 0 ;
4690 PyObject *swig_obj[1] ;
4691
4692 if (!args) SWIG_fail;
4693 swig_obj[0] = args;
4694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4695 if (!SWIG_IsOK(res1)) {
4696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4697 }
4698 arg1 = reinterpret_cast< wxPen * >(argp1);
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 result = (int)(arg1)->GetCap();
4702 wxPyEndAllowThreads(__tstate);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 resultobj = SWIG_From_int(static_cast< int >(result));
4706 return resultobj;
4707 fail:
4708 return NULL;
4709 }
4710
4711
4712 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4713 PyObject *resultobj = 0;
4714 wxPen *arg1 = (wxPen *) 0 ;
4715 wxColour result;
4716 void *argp1 = 0 ;
4717 int res1 = 0 ;
4718 PyObject *swig_obj[1] ;
4719
4720 if (!args) SWIG_fail;
4721 swig_obj[0] = args;
4722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4723 if (!SWIG_IsOK(res1)) {
4724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4725 }
4726 arg1 = reinterpret_cast< wxPen * >(argp1);
4727 {
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 result = (arg1)->GetColour();
4730 wxPyEndAllowThreads(__tstate);
4731 if (PyErr_Occurred()) SWIG_fail;
4732 }
4733 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4734 return resultobj;
4735 fail:
4736 return NULL;
4737 }
4738
4739
4740 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4741 PyObject *resultobj = 0;
4742 wxPen *arg1 = (wxPen *) 0 ;
4743 int result;
4744 void *argp1 = 0 ;
4745 int res1 = 0 ;
4746 PyObject *swig_obj[1] ;
4747
4748 if (!args) SWIG_fail;
4749 swig_obj[0] = args;
4750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4751 if (!SWIG_IsOK(res1)) {
4752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4753 }
4754 arg1 = reinterpret_cast< wxPen * >(argp1);
4755 {
4756 PyThreadState* __tstate = wxPyBeginAllowThreads();
4757 result = (int)(arg1)->GetJoin();
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = SWIG_From_int(static_cast< int >(result));
4762 return resultobj;
4763 fail:
4764 return NULL;
4765 }
4766
4767
4768 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4769 PyObject *resultobj = 0;
4770 wxPen *arg1 = (wxPen *) 0 ;
4771 int result;
4772 void *argp1 = 0 ;
4773 int res1 = 0 ;
4774 PyObject *swig_obj[1] ;
4775
4776 if (!args) SWIG_fail;
4777 swig_obj[0] = args;
4778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4779 if (!SWIG_IsOK(res1)) {
4780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4781 }
4782 arg1 = reinterpret_cast< wxPen * >(argp1);
4783 {
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 result = (int)(arg1)->GetStyle();
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 resultobj = SWIG_From_int(static_cast< int >(result));
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4797 PyObject *resultobj = 0;
4798 wxPen *arg1 = (wxPen *) 0 ;
4799 int result;
4800 void *argp1 = 0 ;
4801 int res1 = 0 ;
4802 PyObject *swig_obj[1] ;
4803
4804 if (!args) SWIG_fail;
4805 swig_obj[0] = args;
4806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4807 if (!SWIG_IsOK(res1)) {
4808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4809 }
4810 arg1 = reinterpret_cast< wxPen * >(argp1);
4811 {
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 result = (int)(arg1)->GetWidth();
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 resultobj = SWIG_From_int(static_cast< int >(result));
4818 return resultobj;
4819 fail:
4820 return NULL;
4821 }
4822
4823
4824 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4825 PyObject *resultobj = 0;
4826 wxPen *arg1 = (wxPen *) 0 ;
4827 bool result;
4828 void *argp1 = 0 ;
4829 int res1 = 0 ;
4830 PyObject *swig_obj[1] ;
4831
4832 if (!args) SWIG_fail;
4833 swig_obj[0] = args;
4834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4835 if (!SWIG_IsOK(res1)) {
4836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4837 }
4838 arg1 = reinterpret_cast< wxPen * >(argp1);
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 result = (bool)(arg1)->Ok();
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) SWIG_fail;
4844 }
4845 {
4846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4847 }
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4855 PyObject *resultobj = 0;
4856 wxPen *arg1 = (wxPen *) 0 ;
4857 int arg2 ;
4858 void *argp1 = 0 ;
4859 int res1 = 0 ;
4860 int val2 ;
4861 int ecode2 = 0 ;
4862 PyObject * obj0 = 0 ;
4863 PyObject * obj1 = 0 ;
4864 char * kwnames[] = {
4865 (char *) "self",(char *) "cap_style", NULL
4866 };
4867
4868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4870 if (!SWIG_IsOK(res1)) {
4871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4872 }
4873 arg1 = reinterpret_cast< wxPen * >(argp1);
4874 ecode2 = SWIG_AsVal_int(obj1, &val2);
4875 if (!SWIG_IsOK(ecode2)) {
4876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4877 }
4878 arg2 = static_cast< int >(val2);
4879 {
4880 PyThreadState* __tstate = wxPyBeginAllowThreads();
4881 (arg1)->SetCap(arg2);
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 }
4885 resultobj = SWIG_Py_Void();
4886 return resultobj;
4887 fail:
4888 return NULL;
4889 }
4890
4891
4892 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4893 PyObject *resultobj = 0;
4894 wxPen *arg1 = (wxPen *) 0 ;
4895 wxColour *arg2 = 0 ;
4896 void *argp1 = 0 ;
4897 int res1 = 0 ;
4898 wxColour temp2 ;
4899 PyObject * obj0 = 0 ;
4900 PyObject * obj1 = 0 ;
4901 char * kwnames[] = {
4902 (char *) "self",(char *) "colour", NULL
4903 };
4904
4905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4907 if (!SWIG_IsOK(res1)) {
4908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4909 }
4910 arg1 = reinterpret_cast< wxPen * >(argp1);
4911 {
4912 arg2 = &temp2;
4913 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4914 }
4915 {
4916 PyThreadState* __tstate = wxPyBeginAllowThreads();
4917 (arg1)->SetColour(*arg2);
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 resultobj = SWIG_Py_Void();
4922 return resultobj;
4923 fail:
4924 return NULL;
4925 }
4926
4927
4928 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4929 PyObject *resultobj = 0;
4930 wxPen *arg1 = (wxPen *) 0 ;
4931 int arg2 ;
4932 void *argp1 = 0 ;
4933 int res1 = 0 ;
4934 int val2 ;
4935 int ecode2 = 0 ;
4936 PyObject * obj0 = 0 ;
4937 PyObject * obj1 = 0 ;
4938 char * kwnames[] = {
4939 (char *) "self",(char *) "join_style", NULL
4940 };
4941
4942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4944 if (!SWIG_IsOK(res1)) {
4945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4946 }
4947 arg1 = reinterpret_cast< wxPen * >(argp1);
4948 ecode2 = SWIG_AsVal_int(obj1, &val2);
4949 if (!SWIG_IsOK(ecode2)) {
4950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4951 }
4952 arg2 = static_cast< int >(val2);
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 (arg1)->SetJoin(arg2);
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 resultobj = SWIG_Py_Void();
4960 return resultobj;
4961 fail:
4962 return NULL;
4963 }
4964
4965
4966 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj = 0;
4968 wxPen *arg1 = (wxPen *) 0 ;
4969 int arg2 ;
4970 void *argp1 = 0 ;
4971 int res1 = 0 ;
4972 int val2 ;
4973 int ecode2 = 0 ;
4974 PyObject * obj0 = 0 ;
4975 PyObject * obj1 = 0 ;
4976 char * kwnames[] = {
4977 (char *) "self",(char *) "style", NULL
4978 };
4979
4980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4984 }
4985 arg1 = reinterpret_cast< wxPen * >(argp1);
4986 ecode2 = SWIG_AsVal_int(obj1, &val2);
4987 if (!SWIG_IsOK(ecode2)) {
4988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4989 }
4990 arg2 = static_cast< int >(val2);
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 (arg1)->SetStyle(arg2);
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) SWIG_fail;
4996 }
4997 resultobj = SWIG_Py_Void();
4998 return resultobj;
4999 fail:
5000 return NULL;
5001 }
5002
5003
5004 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5005 PyObject *resultobj = 0;
5006 wxPen *arg1 = (wxPen *) 0 ;
5007 int arg2 ;
5008 void *argp1 = 0 ;
5009 int res1 = 0 ;
5010 int val2 ;
5011 int ecode2 = 0 ;
5012 PyObject * obj0 = 0 ;
5013 PyObject * obj1 = 0 ;
5014 char * kwnames[] = {
5015 (char *) "self",(char *) "width", NULL
5016 };
5017
5018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5020 if (!SWIG_IsOK(res1)) {
5021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5022 }
5023 arg1 = reinterpret_cast< wxPen * >(argp1);
5024 ecode2 = SWIG_AsVal_int(obj1, &val2);
5025 if (!SWIG_IsOK(ecode2)) {
5026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5027 }
5028 arg2 = static_cast< int >(val2);
5029 {
5030 PyThreadState* __tstate = wxPyBeginAllowThreads();
5031 (arg1)->SetWidth(arg2);
5032 wxPyEndAllowThreads(__tstate);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 resultobj = SWIG_Py_Void();
5036 return resultobj;
5037 fail:
5038 return NULL;
5039 }
5040
5041
5042 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5043 PyObject *resultobj = 0;
5044 wxPen *arg1 = (wxPen *) 0 ;
5045 int arg2 ;
5046 wxDash *arg3 = (wxDash *) 0 ;
5047 void *argp1 = 0 ;
5048 int res1 = 0 ;
5049 PyObject * obj0 = 0 ;
5050 PyObject * obj1 = 0 ;
5051 char * kwnames[] = {
5052 (char *) "self",(char *) "dashes", NULL
5053 };
5054
5055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5057 if (!SWIG_IsOK(res1)) {
5058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5059 }
5060 arg1 = reinterpret_cast< wxPen * >(argp1);
5061 {
5062 arg2 = PyList_Size(obj1);
5063 arg3 = (wxDash*)byte_LIST_helper(obj1);
5064 if (arg3 == NULL) SWIG_fail;
5065 }
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 (arg1)->SetDashes(arg2,arg3);
5069 wxPyEndAllowThreads(__tstate);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 }
5072 resultobj = SWIG_Py_Void();
5073 {
5074 if (arg3) delete [] arg3;
5075 }
5076 return resultobj;
5077 fail:
5078 {
5079 if (arg3) delete [] arg3;
5080 }
5081 return NULL;
5082 }
5083
5084
5085 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5086 PyObject *resultobj = 0;
5087 wxPen *arg1 = (wxPen *) 0 ;
5088 PyObject *result = 0 ;
5089 void *argp1 = 0 ;
5090 int res1 = 0 ;
5091 PyObject *swig_obj[1] ;
5092
5093 if (!args) SWIG_fail;
5094 swig_obj[0] = args;
5095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5096 if (!SWIG_IsOK(res1)) {
5097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5098 }
5099 arg1 = reinterpret_cast< wxPen * >(argp1);
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 result = (PyObject *)wxPen_GetDashes(arg1);
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = result;
5107 return resultobj;
5108 fail:
5109 return NULL;
5110 }
5111
5112
5113 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj = 0;
5115 wxPen *arg1 = (wxPen *) 0 ;
5116 PyObject *arg2 = (PyObject *) 0 ;
5117 PyObject *arg3 = (PyObject *) 0 ;
5118 void *argp1 = 0 ;
5119 int res1 = 0 ;
5120 PyObject * obj0 = 0 ;
5121 PyObject * obj1 = 0 ;
5122 PyObject * obj2 = 0 ;
5123 char * kwnames[] = {
5124 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5125 };
5126
5127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5129 if (!SWIG_IsOK(res1)) {
5130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5131 }
5132 arg1 = reinterpret_cast< wxPen * >(argp1);
5133 arg2 = obj1;
5134 arg3 = obj2;
5135 {
5136 PyThreadState* __tstate = wxPyBeginAllowThreads();
5137 wxPen__SetDashes(arg1,arg2,arg3);
5138 wxPyEndAllowThreads(__tstate);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 }
5141 resultobj = SWIG_Py_Void();
5142 return resultobj;
5143 fail:
5144 return NULL;
5145 }
5146
5147
5148 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5149 PyObject *resultobj = 0;
5150 wxPen *arg1 = (wxPen *) 0 ;
5151 int result;
5152 void *argp1 = 0 ;
5153 int res1 = 0 ;
5154 PyObject *swig_obj[1] ;
5155
5156 if (!args) SWIG_fail;
5157 swig_obj[0] = args;
5158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5159 if (!SWIG_IsOK(res1)) {
5160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5161 }
5162 arg1 = reinterpret_cast< wxPen * >(argp1);
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 result = (int)((wxPen const *)arg1)->GetDashCount();
5166 wxPyEndAllowThreads(__tstate);
5167 if (PyErr_Occurred()) SWIG_fail;
5168 }
5169 resultobj = SWIG_From_int(static_cast< int >(result));
5170 return resultobj;
5171 fail:
5172 return NULL;
5173 }
5174
5175
5176 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5177 PyObject *resultobj = 0;
5178 wxPen *arg1 = (wxPen *) 0 ;
5179 wxBitmap *result = 0 ;
5180 void *argp1 = 0 ;
5181 int res1 = 0 ;
5182 PyObject *swig_obj[1] ;
5183
5184 if (!args) SWIG_fail;
5185 swig_obj[0] = args;
5186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5187 if (!SWIG_IsOK(res1)) {
5188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5189 }
5190 arg1 = reinterpret_cast< wxPen * >(argp1);
5191 {
5192 PyThreadState* __tstate = wxPyBeginAllowThreads();
5193 result = (wxBitmap *)(arg1)->GetStipple();
5194 wxPyEndAllowThreads(__tstate);
5195 if (PyErr_Occurred()) SWIG_fail;
5196 }
5197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5198 return resultobj;
5199 fail:
5200 return NULL;
5201 }
5202
5203
5204 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5205 PyObject *resultobj = 0;
5206 wxPen *arg1 = (wxPen *) 0 ;
5207 wxBitmap *arg2 = 0 ;
5208 void *argp1 = 0 ;
5209 int res1 = 0 ;
5210 void *argp2 = 0 ;
5211 int res2 = 0 ;
5212 PyObject * obj0 = 0 ;
5213 PyObject * obj1 = 0 ;
5214 char * kwnames[] = {
5215 (char *) "self",(char *) "stipple", NULL
5216 };
5217
5218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5220 if (!SWIG_IsOK(res1)) {
5221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5222 }
5223 arg1 = reinterpret_cast< wxPen * >(argp1);
5224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5225 if (!SWIG_IsOK(res2)) {
5226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5227 }
5228 if (!argp2) {
5229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5230 }
5231 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 (arg1)->SetStipple(*arg2);
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 resultobj = SWIG_Py_Void();
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5246 PyObject *resultobj = 0;
5247 wxPen *arg1 = (wxPen *) 0 ;
5248 wxPen *arg2 = (wxPen *) 0 ;
5249 bool result;
5250 void *argp1 = 0 ;
5251 int res1 = 0 ;
5252 void *argp2 = 0 ;
5253 int res2 = 0 ;
5254 PyObject * obj0 = 0 ;
5255 PyObject * obj1 = 0 ;
5256 char * kwnames[] = {
5257 (char *) "self",(char *) "other", NULL
5258 };
5259
5260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5262 if (!SWIG_IsOK(res1)) {
5263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5264 }
5265 arg1 = reinterpret_cast< wxPen * >(argp1);
5266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5267 if (!SWIG_IsOK(res2)) {
5268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5269 }
5270 arg2 = reinterpret_cast< wxPen * >(argp2);
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5274 wxPyEndAllowThreads(__tstate);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 {
5278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5279 }
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj = 0;
5288 wxPen *arg1 = (wxPen *) 0 ;
5289 wxPen *arg2 = (wxPen *) 0 ;
5290 bool result;
5291 void *argp1 = 0 ;
5292 int res1 = 0 ;
5293 void *argp2 = 0 ;
5294 int res2 = 0 ;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 char * kwnames[] = {
5298 (char *) "self",(char *) "other", NULL
5299 };
5300
5301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5303 if (!SWIG_IsOK(res1)) {
5304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5305 }
5306 arg1 = reinterpret_cast< wxPen * >(argp1);
5307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5308 if (!SWIG_IsOK(res2)) {
5309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5310 }
5311 arg2 = reinterpret_cast< wxPen * >(argp2);
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 }
5318 {
5319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5320 }
5321 return resultobj;
5322 fail:
5323 return NULL;
5324 }
5325
5326
5327 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5328 PyObject *obj;
5329 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5330 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5331 return SWIG_Py_Void();
5332 }
5333
5334 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5335 return SWIG_Python_InitShadowInstance(args);
5336 }
5337
5338 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj = 0;
5340 wxColour *arg1 = 0 ;
5341 int arg2 = (int) wxSOLID ;
5342 wxBrush *result = 0 ;
5343 wxColour temp1 ;
5344 int val2 ;
5345 int ecode2 = 0 ;
5346 PyObject * obj0 = 0 ;
5347 PyObject * obj1 = 0 ;
5348 char * kwnames[] = {
5349 (char *) "colour",(char *) "style", NULL
5350 };
5351
5352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5353 {
5354 arg1 = &temp1;
5355 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5356 }
5357 if (obj1) {
5358 ecode2 = SWIG_AsVal_int(obj1, &val2);
5359 if (!SWIG_IsOK(ecode2)) {
5360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5361 }
5362 arg2 = static_cast< int >(val2);
5363 }
5364 {
5365 if (!wxPyCheckForApp()) SWIG_fail;
5366 PyThreadState* __tstate = wxPyBeginAllowThreads();
5367 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj = 0;
5380 wxBitmap *arg1 = 0 ;
5381 wxBrush *result = 0 ;
5382 void *argp1 = 0 ;
5383 int res1 = 0 ;
5384 PyObject * obj0 = 0 ;
5385 char * kwnames[] = {
5386 (char *) "stippleBitmap", NULL
5387 };
5388
5389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5390 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5391 if (!SWIG_IsOK(res1)) {
5392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5393 }
5394 if (!argp1) {
5395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5396 }
5397 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5398 {
5399 if (!wxPyCheckForApp()) SWIG_fail;
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5402 wxPyEndAllowThreads(__tstate);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5406 return resultobj;
5407 fail:
5408 return NULL;
5409 }
5410
5411
5412 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5413 PyObject *resultobj = 0;
5414 wxBrush *arg1 = (wxBrush *) 0 ;
5415 void *argp1 = 0 ;
5416 int res1 = 0 ;
5417 PyObject *swig_obj[1] ;
5418
5419 if (!args) SWIG_fail;
5420 swig_obj[0] = args;
5421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5422 if (!SWIG_IsOK(res1)) {
5423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5424 }
5425 arg1 = reinterpret_cast< wxBrush * >(argp1);
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 delete arg1;
5429
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_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5441 PyObject *resultobj = 0;
5442 wxBrush *arg1 = (wxBrush *) 0 ;
5443 wxColour *arg2 = 0 ;
5444 void *argp1 = 0 ;
5445 int res1 = 0 ;
5446 wxColour temp2 ;
5447 PyObject * obj0 = 0 ;
5448 PyObject * obj1 = 0 ;
5449 char * kwnames[] = {
5450 (char *) "self",(char *) "col", NULL
5451 };
5452
5453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5457 }
5458 arg1 = reinterpret_cast< wxBrush * >(argp1);
5459 {
5460 arg2 = &temp2;
5461 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5462 }
5463 {
5464 PyThreadState* __tstate = wxPyBeginAllowThreads();
5465 (arg1)->SetColour((wxColour const &)*arg2);
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 resultobj = SWIG_Py_Void();
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj = 0;
5478 wxBrush *arg1 = (wxBrush *) 0 ;
5479 int arg2 ;
5480 void *argp1 = 0 ;
5481 int res1 = 0 ;
5482 int val2 ;
5483 int ecode2 = 0 ;
5484 PyObject * obj0 = 0 ;
5485 PyObject * obj1 = 0 ;
5486 char * kwnames[] = {
5487 (char *) "self",(char *) "style", NULL
5488 };
5489
5490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5492 if (!SWIG_IsOK(res1)) {
5493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5494 }
5495 arg1 = reinterpret_cast< wxBrush * >(argp1);
5496 ecode2 = SWIG_AsVal_int(obj1, &val2);
5497 if (!SWIG_IsOK(ecode2)) {
5498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5499 }
5500 arg2 = static_cast< int >(val2);
5501 {
5502 PyThreadState* __tstate = wxPyBeginAllowThreads();
5503 (arg1)->SetStyle(arg2);
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 resultobj = SWIG_Py_Void();
5508 return resultobj;
5509 fail:
5510 return NULL;
5511 }
5512
5513
5514 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj = 0;
5516 wxBrush *arg1 = (wxBrush *) 0 ;
5517 wxBitmap *arg2 = 0 ;
5518 void *argp1 = 0 ;
5519 int res1 = 0 ;
5520 void *argp2 = 0 ;
5521 int res2 = 0 ;
5522 PyObject * obj0 = 0 ;
5523 PyObject * obj1 = 0 ;
5524 char * kwnames[] = {
5525 (char *) "self",(char *) "stipple", NULL
5526 };
5527
5528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5530 if (!SWIG_IsOK(res1)) {
5531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5532 }
5533 arg1 = reinterpret_cast< wxBrush * >(argp1);
5534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5535 if (!SWIG_IsOK(res2)) {
5536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5537 }
5538 if (!argp2) {
5539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5540 }
5541 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 (arg1)->SetStipple((wxBitmap const &)*arg2);
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 }
5548 resultobj = SWIG_Py_Void();
5549 return resultobj;
5550 fail:
5551 return NULL;
5552 }
5553
5554
5555 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5556 PyObject *resultobj = 0;
5557 wxBrush *arg1 = (wxBrush *) 0 ;
5558 wxColour result;
5559 void *argp1 = 0 ;
5560 int res1 = 0 ;
5561 PyObject *swig_obj[1] ;
5562
5563 if (!args) SWIG_fail;
5564 swig_obj[0] = args;
5565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5566 if (!SWIG_IsOK(res1)) {
5567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5568 }
5569 arg1 = reinterpret_cast< wxBrush * >(argp1);
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 result = ((wxBrush const *)arg1)->GetColour();
5573 wxPyEndAllowThreads(__tstate);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 }
5576 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5577 return resultobj;
5578 fail:
5579 return NULL;
5580 }
5581
5582
5583 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5584 PyObject *resultobj = 0;
5585 wxBrush *arg1 = (wxBrush *) 0 ;
5586 int result;
5587 void *argp1 = 0 ;
5588 int res1 = 0 ;
5589 PyObject *swig_obj[1] ;
5590
5591 if (!args) SWIG_fail;
5592 swig_obj[0] = args;
5593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5594 if (!SWIG_IsOK(res1)) {
5595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5596 }
5597 arg1 = reinterpret_cast< wxBrush * >(argp1);
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = (int)((wxBrush const *)arg1)->GetStyle();
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_From_int(static_cast< int >(result));
5605 return resultobj;
5606 fail:
5607 return NULL;
5608 }
5609
5610
5611 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 wxBrush *arg1 = (wxBrush *) 0 ;
5614 wxBitmap *result = 0 ;
5615 void *argp1 = 0 ;
5616 int res1 = 0 ;
5617 PyObject *swig_obj[1] ;
5618
5619 if (!args) SWIG_fail;
5620 swig_obj[0] = args;
5621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5624 }
5625 arg1 = reinterpret_cast< wxBrush * >(argp1);
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5633 return resultobj;
5634 fail:
5635 return NULL;
5636 }
5637
5638
5639 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5640 PyObject *resultobj = 0;
5641 wxBrush *arg1 = (wxBrush *) 0 ;
5642 bool result;
5643 void *argp1 = 0 ;
5644 int res1 = 0 ;
5645 PyObject *swig_obj[1] ;
5646
5647 if (!args) SWIG_fail;
5648 swig_obj[0] = args;
5649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5650 if (!SWIG_IsOK(res1)) {
5651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5652 }
5653 arg1 = reinterpret_cast< wxBrush * >(argp1);
5654 {
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 result = (bool)((wxBrush const *)arg1)->IsHatch();
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 {
5661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5662 }
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5670 PyObject *resultobj = 0;
5671 wxBrush *arg1 = (wxBrush *) 0 ;
5672 bool result;
5673 void *argp1 = 0 ;
5674 int res1 = 0 ;
5675 PyObject *swig_obj[1] ;
5676
5677 if (!args) SWIG_fail;
5678 swig_obj[0] = args;
5679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5680 if (!SWIG_IsOK(res1)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5682 }
5683 arg1 = reinterpret_cast< wxBrush * >(argp1);
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (bool)(arg1)->Ok();
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 {
5691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5692 }
5693 return resultobj;
5694 fail:
5695 return NULL;
5696 }
5697
5698
5699 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5700 PyObject *obj;
5701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5702 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5703 return SWIG_Py_Void();
5704 }
5705
5706 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5707 return SWIG_Python_InitShadowInstance(args);
5708 }
5709
5710 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj = 0;
5712 wxString *arg1 = 0 ;
5713 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5714 wxBitmap *result = 0 ;
5715 bool temp1 = false ;
5716 int val2 ;
5717 int ecode2 = 0 ;
5718 PyObject * obj0 = 0 ;
5719 PyObject * obj1 = 0 ;
5720 char * kwnames[] = {
5721 (char *) "name",(char *) "type", NULL
5722 };
5723
5724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5725 {
5726 arg1 = wxString_in_helper(obj0);
5727 if (arg1 == NULL) SWIG_fail;
5728 temp1 = true;
5729 }
5730 if (obj1) {
5731 ecode2 = SWIG_AsVal_int(obj1, &val2);
5732 if (!SWIG_IsOK(ecode2)) {
5733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5734 }
5735 arg2 = static_cast< wxBitmapType >(val2);
5736 }
5737 {
5738 if (!wxPyCheckForApp()) SWIG_fail;
5739 PyThreadState* __tstate = wxPyBeginAllowThreads();
5740 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5741 wxPyEndAllowThreads(__tstate);
5742 if (PyErr_Occurred()) SWIG_fail;
5743 }
5744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5745 {
5746 if (temp1)
5747 delete arg1;
5748 }
5749 return resultobj;
5750 fail:
5751 {
5752 if (temp1)
5753 delete arg1;
5754 }
5755 return NULL;
5756 }
5757
5758
5759 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5760 PyObject *resultobj = 0;
5761 wxBitmap *arg1 = (wxBitmap *) 0 ;
5762 void *argp1 = 0 ;
5763 int res1 = 0 ;
5764 PyObject *swig_obj[1] ;
5765
5766 if (!args) SWIG_fail;
5767 swig_obj[0] = args;
5768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5769 if (!SWIG_IsOK(res1)) {
5770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5771 }
5772 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5773 {
5774 delete arg1;
5775
5776 if (PyErr_Occurred()) SWIG_fail;
5777 }
5778 resultobj = SWIG_Py_Void();
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj = 0;
5787 int arg1 ;
5788 int arg2 ;
5789 int arg3 = (int) -1 ;
5790 wxBitmap *result = 0 ;
5791 int val1 ;
5792 int ecode1 = 0 ;
5793 int val2 ;
5794 int ecode2 = 0 ;
5795 int val3 ;
5796 int ecode3 = 0 ;
5797 PyObject * obj0 = 0 ;
5798 PyObject * obj1 = 0 ;
5799 PyObject * obj2 = 0 ;
5800 char * kwnames[] = {
5801 (char *) "width",(char *) "height",(char *) "depth", NULL
5802 };
5803
5804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5805 ecode1 = SWIG_AsVal_int(obj0, &val1);
5806 if (!SWIG_IsOK(ecode1)) {
5807 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5808 }
5809 arg1 = static_cast< int >(val1);
5810 ecode2 = SWIG_AsVal_int(obj1, &val2);
5811 if (!SWIG_IsOK(ecode2)) {
5812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5813 }
5814 arg2 = static_cast< int >(val2);
5815 if (obj2) {
5816 ecode3 = SWIG_AsVal_int(obj2, &val3);
5817 if (!SWIG_IsOK(ecode3)) {
5818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5819 }
5820 arg3 = static_cast< int >(val3);
5821 }
5822 {
5823 if (!wxPyCheckForApp()) SWIG_fail;
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5830 return resultobj;
5831 fail:
5832 return NULL;
5833 }
5834
5835
5836 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj = 0;
5838 wxIcon *arg1 = 0 ;
5839 wxBitmap *result = 0 ;
5840 void *argp1 = 0 ;
5841 int res1 = 0 ;
5842 PyObject * obj0 = 0 ;
5843 char * kwnames[] = {
5844 (char *) "icon", NULL
5845 };
5846
5847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5848 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5851 }
5852 if (!argp1) {
5853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5854 }
5855 arg1 = reinterpret_cast< wxIcon * >(argp1);
5856 {
5857 if (!wxPyCheckForApp()) SWIG_fail;
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5864 return resultobj;
5865 fail:
5866 return NULL;
5867 }
5868
5869
5870 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj = 0;
5872 wxImage *arg1 = 0 ;
5873 int arg2 = (int) -1 ;
5874 wxBitmap *result = 0 ;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 int val2 ;
5878 int ecode2 = 0 ;
5879 PyObject * obj0 = 0 ;
5880 PyObject * obj1 = 0 ;
5881 char * kwnames[] = {
5882 (char *) "image",(char *) "depth", NULL
5883 };
5884
5885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5886 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5887 if (!SWIG_IsOK(res1)) {
5888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5889 }
5890 if (!argp1) {
5891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5892 }
5893 arg1 = reinterpret_cast< wxImage * >(argp1);
5894 if (obj1) {
5895 ecode2 = SWIG_AsVal_int(obj1, &val2);
5896 if (!SWIG_IsOK(ecode2)) {
5897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5898 }
5899 arg2 = static_cast< int >(val2);
5900 }
5901 {
5902 if (!wxPyCheckForApp()) SWIG_fail;
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5909 return resultobj;
5910 fail:
5911 return NULL;
5912 }
5913
5914
5915 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5916 PyObject *resultobj = 0;
5917 PyObject *arg1 = (PyObject *) 0 ;
5918 wxBitmap *result = 0 ;
5919 PyObject * obj0 = 0 ;
5920 char * kwnames[] = {
5921 (char *) "listOfStrings", NULL
5922 };
5923
5924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5925 arg1 = obj0;
5926 {
5927 if (!wxPyCheckForApp()) SWIG_fail;
5928 PyThreadState* __tstate = wxPyBeginAllowThreads();
5929 result = (wxBitmap *)new_wxBitmap(arg1);
5930 wxPyEndAllowThreads(__tstate);
5931 if (PyErr_Occurred()) SWIG_fail;
5932 }
5933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5934 return resultobj;
5935 fail:
5936 return NULL;
5937 }
5938
5939
5940 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj = 0;
5942 PyObject *arg1 = (PyObject *) 0 ;
5943 int arg2 ;
5944 int arg3 ;
5945 int arg4 = (int) 1 ;
5946 wxBitmap *result = 0 ;
5947 int val2 ;
5948 int ecode2 = 0 ;
5949 int val3 ;
5950 int ecode3 = 0 ;
5951 int val4 ;
5952 int ecode4 = 0 ;
5953 PyObject * obj0 = 0 ;
5954 PyObject * obj1 = 0 ;
5955 PyObject * obj2 = 0 ;
5956 PyObject * obj3 = 0 ;
5957 char * kwnames[] = {
5958 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5959 };
5960
5961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5962 arg1 = obj0;
5963 ecode2 = SWIG_AsVal_int(obj1, &val2);
5964 if (!SWIG_IsOK(ecode2)) {
5965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5966 }
5967 arg2 = static_cast< int >(val2);
5968 ecode3 = SWIG_AsVal_int(obj2, &val3);
5969 if (!SWIG_IsOK(ecode3)) {
5970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5971 }
5972 arg3 = static_cast< int >(val3);
5973 if (obj3) {
5974 ecode4 = SWIG_AsVal_int(obj3, &val4);
5975 if (!SWIG_IsOK(ecode4)) {
5976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5977 }
5978 arg4 = static_cast< int >(val4);
5979 }
5980 {
5981 if (!wxPyCheckForApp()) SWIG_fail;
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5988 return resultobj;
5989 fail:
5990 return NULL;
5991 }
5992
5993
5994 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5995 PyObject *resultobj = 0;
5996 wxBitmap *arg1 = (wxBitmap *) 0 ;
5997 long result;
5998 void *argp1 = 0 ;
5999 int res1 = 0 ;
6000 PyObject *swig_obj[1] ;
6001
6002 if (!args) SWIG_fail;
6003 swig_obj[0] = args;
6004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6005 if (!SWIG_IsOK(res1)) {
6006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6007 }
6008 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6009 {
6010 result = (long)(arg1)->GetHandle();
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 resultobj = SWIG_From_long(static_cast< long >(result));
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6021 PyObject *resultobj = 0;
6022 wxBitmap *arg1 = (wxBitmap *) 0 ;
6023 long arg2 ;
6024 void *argp1 = 0 ;
6025 int res1 = 0 ;
6026 long val2 ;
6027 int ecode2 = 0 ;
6028 PyObject * obj0 = 0 ;
6029 PyObject * obj1 = 0 ;
6030 char * kwnames[] = {
6031 (char *) "self",(char *) "handle", NULL
6032 };
6033
6034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6036 if (!SWIG_IsOK(res1)) {
6037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6038 }
6039 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6040 ecode2 = SWIG_AsVal_long(obj1, &val2);
6041 if (!SWIG_IsOK(ecode2)) {
6042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6043 }
6044 arg2 = static_cast< long >(val2);
6045 {
6046 wxBitmap_SetHandle(arg1,arg2);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 resultobj = SWIG_Py_Void();
6050 return resultobj;
6051 fail:
6052 return NULL;
6053 }
6054
6055
6056 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6057 PyObject *resultobj = 0;
6058 wxBitmap *arg1 = (wxBitmap *) 0 ;
6059 bool result;
6060 void *argp1 = 0 ;
6061 int res1 = 0 ;
6062 PyObject *swig_obj[1] ;
6063
6064 if (!args) SWIG_fail;
6065 swig_obj[0] = args;
6066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6067 if (!SWIG_IsOK(res1)) {
6068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
6069 }
6070 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6071 {
6072 result = (bool)(arg1)->Ok();
6073 if (PyErr_Occurred()) SWIG_fail;
6074 }
6075 {
6076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6077 }
6078 return resultobj;
6079 fail:
6080 return NULL;
6081 }
6082
6083
6084 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6085 PyObject *resultobj = 0;
6086 wxBitmap *arg1 = (wxBitmap *) 0 ;
6087 int result;
6088 void *argp1 = 0 ;
6089 int res1 = 0 ;
6090 PyObject *swig_obj[1] ;
6091
6092 if (!args) SWIG_fail;
6093 swig_obj[0] = args;
6094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6095 if (!SWIG_IsOK(res1)) {
6096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6097 }
6098 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6099 {
6100 result = (int)(arg1)->GetWidth();
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 resultobj = SWIG_From_int(static_cast< int >(result));
6104 return resultobj;
6105 fail:
6106 return NULL;
6107 }
6108
6109
6110 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6111 PyObject *resultobj = 0;
6112 wxBitmap *arg1 = (wxBitmap *) 0 ;
6113 int result;
6114 void *argp1 = 0 ;
6115 int res1 = 0 ;
6116 PyObject *swig_obj[1] ;
6117
6118 if (!args) SWIG_fail;
6119 swig_obj[0] = args;
6120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6121 if (!SWIG_IsOK(res1)) {
6122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6123 }
6124 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6125 {
6126 result = (int)(arg1)->GetHeight();
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 resultobj = SWIG_From_int(static_cast< int >(result));
6130 return resultobj;
6131 fail:
6132 return NULL;
6133 }
6134
6135
6136 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6137 PyObject *resultobj = 0;
6138 wxBitmap *arg1 = (wxBitmap *) 0 ;
6139 int result;
6140 void *argp1 = 0 ;
6141 int res1 = 0 ;
6142 PyObject *swig_obj[1] ;
6143
6144 if (!args) SWIG_fail;
6145 swig_obj[0] = args;
6146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6147 if (!SWIG_IsOK(res1)) {
6148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6149 }
6150 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6151 {
6152 result = (int)(arg1)->GetDepth();
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_From_int(static_cast< int >(result));
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6163 PyObject *resultobj = 0;
6164 wxBitmap *arg1 = (wxBitmap *) 0 ;
6165 wxSize result;
6166 void *argp1 = 0 ;
6167 int res1 = 0 ;
6168 PyObject *swig_obj[1] ;
6169
6170 if (!args) SWIG_fail;
6171 swig_obj[0] = args;
6172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6173 if (!SWIG_IsOK(res1)) {
6174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6175 }
6176 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6177 {
6178 result = wxBitmap_GetSize(arg1);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6182 return resultobj;
6183 fail:
6184 return NULL;
6185 }
6186
6187
6188 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 wxBitmap *arg1 = (wxBitmap *) 0 ;
6191 SwigValueWrapper<wxImage > result;
6192 void *argp1 = 0 ;
6193 int res1 = 0 ;
6194 PyObject *swig_obj[1] ;
6195
6196 if (!args) SWIG_fail;
6197 swig_obj[0] = args;
6198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6199 if (!SWIG_IsOK(res1)) {
6200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6201 }
6202 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6203 {
6204 result = ((wxBitmap const *)arg1)->ConvertToImage();
6205 if (PyErr_Occurred()) SWIG_fail;
6206 }
6207 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6208 return resultobj;
6209 fail:
6210 return NULL;
6211 }
6212
6213
6214 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6215 PyObject *resultobj = 0;
6216 wxBitmap *arg1 = (wxBitmap *) 0 ;
6217 wxMask *result = 0 ;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 PyObject *swig_obj[1] ;
6221
6222 if (!args) SWIG_fail;
6223 swig_obj[0] = args;
6224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6225 if (!SWIG_IsOK(res1)) {
6226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6227 }
6228 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6229 {
6230 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6234 return resultobj;
6235 fail:
6236 return NULL;
6237 }
6238
6239
6240 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj = 0;
6242 wxBitmap *arg1 = (wxBitmap *) 0 ;
6243 wxMask *arg2 = (wxMask *) 0 ;
6244 void *argp1 = 0 ;
6245 int res1 = 0 ;
6246 int res2 = 0 ;
6247 PyObject * obj0 = 0 ;
6248 PyObject * obj1 = 0 ;
6249 char * kwnames[] = {
6250 (char *) "self",(char *) "mask", NULL
6251 };
6252
6253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6255 if (!SWIG_IsOK(res1)) {
6256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6257 }
6258 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6259 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6260 if (!SWIG_IsOK(res2)) {
6261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6262 }
6263 {
6264 (arg1)->SetMask(arg2);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_Py_Void();
6268 return resultobj;
6269 fail:
6270 return NULL;
6271 }
6272
6273
6274 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj = 0;
6276 wxBitmap *arg1 = (wxBitmap *) 0 ;
6277 wxColour *arg2 = 0 ;
6278 void *argp1 = 0 ;
6279 int res1 = 0 ;
6280 wxColour temp2 ;
6281 PyObject * obj0 = 0 ;
6282 PyObject * obj1 = 0 ;
6283 char * kwnames[] = {
6284 (char *) "self",(char *) "colour", NULL
6285 };
6286
6287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6289 if (!SWIG_IsOK(res1)) {
6290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6291 }
6292 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6293 {
6294 arg2 = &temp2;
6295 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6296 }
6297 {
6298 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 resultobj = SWIG_Py_Void();
6302 return resultobj;
6303 fail:
6304 return NULL;
6305 }
6306
6307
6308 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxBitmap *arg1 = (wxBitmap *) 0 ;
6311 wxRect *arg2 = 0 ;
6312 SwigValueWrapper<wxBitmap > result;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 wxRect temp2 ;
6316 PyObject * obj0 = 0 ;
6317 PyObject * obj1 = 0 ;
6318 char * kwnames[] = {
6319 (char *) "self",(char *) "rect", NULL
6320 };
6321
6322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6324 if (!SWIG_IsOK(res1)) {
6325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6326 }
6327 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6328 {
6329 arg2 = &temp2;
6330 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6331 }
6332 {
6333 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6334 if (PyErr_Occurred()) SWIG_fail;
6335 }
6336 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6337 return resultobj;
6338 fail:
6339 return NULL;
6340 }
6341
6342
6343 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6344 PyObject *resultobj = 0;
6345 wxBitmap *arg1 = (wxBitmap *) 0 ;
6346 wxString *arg2 = 0 ;
6347 wxBitmapType arg3 ;
6348 wxPalette *arg4 = (wxPalette *) NULL ;
6349 bool result;
6350 void *argp1 = 0 ;
6351 int res1 = 0 ;
6352 bool temp2 = false ;
6353 int val3 ;
6354 int ecode3 = 0 ;
6355 void *argp4 = 0 ;
6356 int res4 = 0 ;
6357 PyObject * obj0 = 0 ;
6358 PyObject * obj1 = 0 ;
6359 PyObject * obj2 = 0 ;
6360 PyObject * obj3 = 0 ;
6361 char * kwnames[] = {
6362 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6363 };
6364
6365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6367 if (!SWIG_IsOK(res1)) {
6368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6369 }
6370 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6371 {
6372 arg2 = wxString_in_helper(obj1);
6373 if (arg2 == NULL) SWIG_fail;
6374 temp2 = true;
6375 }
6376 ecode3 = SWIG_AsVal_int(obj2, &val3);
6377 if (!SWIG_IsOK(ecode3)) {
6378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6379 }
6380 arg3 = static_cast< wxBitmapType >(val3);
6381 if (obj3) {
6382 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6383 if (!SWIG_IsOK(res4)) {
6384 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6385 }
6386 arg4 = reinterpret_cast< wxPalette * >(argp4);
6387 }
6388 {
6389 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 {
6393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6394 }
6395 {
6396 if (temp2)
6397 delete arg2;
6398 }
6399 return resultobj;
6400 fail:
6401 {
6402 if (temp2)
6403 delete arg2;
6404 }
6405 return NULL;
6406 }
6407
6408
6409 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6410 PyObject *resultobj = 0;
6411 wxBitmap *arg1 = (wxBitmap *) 0 ;
6412 wxString *arg2 = 0 ;
6413 wxBitmapType arg3 ;
6414 bool result;
6415 void *argp1 = 0 ;
6416 int res1 = 0 ;
6417 bool temp2 = false ;
6418 int val3 ;
6419 int ecode3 = 0 ;
6420 PyObject * obj0 = 0 ;
6421 PyObject * obj1 = 0 ;
6422 PyObject * obj2 = 0 ;
6423 char * kwnames[] = {
6424 (char *) "self",(char *) "name",(char *) "type", NULL
6425 };
6426
6427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6429 if (!SWIG_IsOK(res1)) {
6430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6431 }
6432 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6433 {
6434 arg2 = wxString_in_helper(obj1);
6435 if (arg2 == NULL) SWIG_fail;
6436 temp2 = true;
6437 }
6438 ecode3 = SWIG_AsVal_int(obj2, &val3);
6439 if (!SWIG_IsOK(ecode3)) {
6440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6441 }
6442 arg3 = static_cast< wxBitmapType >(val3);
6443 {
6444 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 {
6448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6449 }
6450 {
6451 if (temp2)
6452 delete arg2;
6453 }
6454 return resultobj;
6455 fail:
6456 {
6457 if (temp2)
6458 delete arg2;
6459 }
6460 return NULL;
6461 }
6462
6463
6464 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6465 PyObject *resultobj = 0;
6466 wxBitmap *arg1 = (wxBitmap *) 0 ;
6467 wxPalette *result = 0 ;
6468 void *argp1 = 0 ;
6469 int res1 = 0 ;
6470 PyObject *swig_obj[1] ;
6471
6472 if (!args) SWIG_fail;
6473 swig_obj[0] = args;
6474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6475 if (!SWIG_IsOK(res1)) {
6476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6477 }
6478 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6479 {
6480 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6484 return resultobj;
6485 fail:
6486 return NULL;
6487 }
6488
6489
6490 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj = 0;
6492 wxBitmap *arg1 = (wxBitmap *) 0 ;
6493 wxPalette *arg2 = 0 ;
6494 void *argp1 = 0 ;
6495 int res1 = 0 ;
6496 void *argp2 = 0 ;
6497 int res2 = 0 ;
6498 PyObject * obj0 = 0 ;
6499 PyObject * obj1 = 0 ;
6500 char * kwnames[] = {
6501 (char *) "self",(char *) "palette", NULL
6502 };
6503
6504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6506 if (!SWIG_IsOK(res1)) {
6507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6508 }
6509 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6511 if (!SWIG_IsOK(res2)) {
6512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6513 }
6514 if (!argp2) {
6515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6516 }
6517 arg2 = reinterpret_cast< wxPalette * >(argp2);
6518 {
6519 (arg1)->SetPalette((wxPalette const &)*arg2);
6520 if (PyErr_Occurred()) SWIG_fail;
6521 }
6522 resultobj = SWIG_Py_Void();
6523 return resultobj;
6524 fail:
6525 return NULL;
6526 }
6527
6528
6529 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6530 PyObject *resultobj = 0;
6531 wxBitmap *arg1 = (wxBitmap *) 0 ;
6532 wxIcon *arg2 = 0 ;
6533 bool result;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 void *argp2 = 0 ;
6537 int res2 = 0 ;
6538 PyObject * obj0 = 0 ;
6539 PyObject * obj1 = 0 ;
6540 char * kwnames[] = {
6541 (char *) "self",(char *) "icon", NULL
6542 };
6543
6544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6546 if (!SWIG_IsOK(res1)) {
6547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6548 }
6549 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6551 if (!SWIG_IsOK(res2)) {
6552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6553 }
6554 if (!argp2) {
6555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6556 }
6557 arg2 = reinterpret_cast< wxIcon * >(argp2);
6558 {
6559 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 {
6563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6564 }
6565 return resultobj;
6566 fail:
6567 return NULL;
6568 }
6569
6570
6571 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj = 0;
6573 wxBitmap *arg1 = (wxBitmap *) 0 ;
6574 int arg2 ;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 int val2 ;
6578 int ecode2 = 0 ;
6579 PyObject * obj0 = 0 ;
6580 PyObject * obj1 = 0 ;
6581 char * kwnames[] = {
6582 (char *) "self",(char *) "height", NULL
6583 };
6584
6585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6587 if (!SWIG_IsOK(res1)) {
6588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6589 }
6590 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6591 ecode2 = SWIG_AsVal_int(obj1, &val2);
6592 if (!SWIG_IsOK(ecode2)) {
6593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6594 }
6595 arg2 = static_cast< int >(val2);
6596 {
6597 (arg1)->SetHeight(arg2);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 resultobj = SWIG_Py_Void();
6601 return resultobj;
6602 fail:
6603 return NULL;
6604 }
6605
6606
6607 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6608 PyObject *resultobj = 0;
6609 wxBitmap *arg1 = (wxBitmap *) 0 ;
6610 int arg2 ;
6611 void *argp1 = 0 ;
6612 int res1 = 0 ;
6613 int val2 ;
6614 int ecode2 = 0 ;
6615 PyObject * obj0 = 0 ;
6616 PyObject * obj1 = 0 ;
6617 char * kwnames[] = {
6618 (char *) "self",(char *) "width", NULL
6619 };
6620
6621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6623 if (!SWIG_IsOK(res1)) {
6624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6625 }
6626 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6627 ecode2 = SWIG_AsVal_int(obj1, &val2);
6628 if (!SWIG_IsOK(ecode2)) {
6629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6630 }
6631 arg2 = static_cast< int >(val2);
6632 {
6633 (arg1)->SetWidth(arg2);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 resultobj = SWIG_Py_Void();
6637 return resultobj;
6638 fail:
6639 return NULL;
6640 }
6641
6642
6643 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj = 0;
6645 wxBitmap *arg1 = (wxBitmap *) 0 ;
6646 int arg2 ;
6647 void *argp1 = 0 ;
6648 int res1 = 0 ;
6649 int val2 ;
6650 int ecode2 = 0 ;
6651 PyObject * obj0 = 0 ;
6652 PyObject * obj1 = 0 ;
6653 char * kwnames[] = {
6654 (char *) "self",(char *) "depth", NULL
6655 };
6656
6657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6661 }
6662 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6663 ecode2 = SWIG_AsVal_int(obj1, &val2);
6664 if (!SWIG_IsOK(ecode2)) {
6665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6666 }
6667 arg2 = static_cast< int >(val2);
6668 {
6669 (arg1)->SetDepth(arg2);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 resultobj = SWIG_Py_Void();
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6680 PyObject *resultobj = 0;
6681 wxBitmap *arg1 = (wxBitmap *) 0 ;
6682 wxSize *arg2 = 0 ;
6683 void *argp1 = 0 ;
6684 int res1 = 0 ;
6685 wxSize temp2 ;
6686 PyObject * obj0 = 0 ;
6687 PyObject * obj1 = 0 ;
6688 char * kwnames[] = {
6689 (char *) "self",(char *) "size", NULL
6690 };
6691
6692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6694 if (!SWIG_IsOK(res1)) {
6695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6696 }
6697 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6698 {
6699 arg2 = &temp2;
6700 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6701 }
6702 {
6703 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 resultobj = SWIG_Py_Void();
6707 return resultobj;
6708 fail:
6709 return NULL;
6710 }
6711
6712
6713 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6714 PyObject *resultobj = 0;
6715 wxBitmap *arg1 = (wxBitmap *) 0 ;
6716 wxCursor *arg2 = 0 ;
6717 bool result;
6718 void *argp1 = 0 ;
6719 int res1 = 0 ;
6720 void *argp2 = 0 ;
6721 int res2 = 0 ;
6722 PyObject * obj0 = 0 ;
6723 PyObject * obj1 = 0 ;
6724 char * kwnames[] = {
6725 (char *) "self",(char *) "cursor", NULL
6726 };
6727
6728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6730 if (!SWIG_IsOK(res1)) {
6731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6732 }
6733 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6735 if (!SWIG_IsOK(res2)) {
6736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6737 }
6738 if (!argp2) {
6739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6740 }
6741 arg2 = reinterpret_cast< wxCursor * >(argp2);
6742 {
6743 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 {
6747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6748 }
6749 return resultobj;
6750 fail:
6751 return NULL;
6752 }
6753
6754
6755 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6756 PyObject *resultobj = 0;
6757 wxBitmap *arg1 = (wxBitmap *) 0 ;
6758 wxBitmap *arg2 = (wxBitmap *) 0 ;
6759 bool result;
6760 void *argp1 = 0 ;
6761 int res1 = 0 ;
6762 void *argp2 = 0 ;
6763 int res2 = 0 ;
6764 PyObject * obj0 = 0 ;
6765 PyObject * obj1 = 0 ;
6766 char * kwnames[] = {
6767 (char *) "self",(char *) "other", NULL
6768 };
6769
6770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6772 if (!SWIG_IsOK(res1)) {
6773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6774 }
6775 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6777 if (!SWIG_IsOK(res2)) {
6778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6779 }
6780 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6781 {
6782 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6783 if (PyErr_Occurred()) SWIG_fail;
6784 }
6785 {
6786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6787 }
6788 return resultobj;
6789 fail:
6790 return NULL;
6791 }
6792
6793
6794 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6795 PyObject *resultobj = 0;
6796 wxBitmap *arg1 = (wxBitmap *) 0 ;
6797 wxBitmap *arg2 = (wxBitmap *) 0 ;
6798 bool result;
6799 void *argp1 = 0 ;
6800 int res1 = 0 ;
6801 void *argp2 = 0 ;
6802 int res2 = 0 ;
6803 PyObject * obj0 = 0 ;
6804 PyObject * obj1 = 0 ;
6805 char * kwnames[] = {
6806 (char *) "self",(char *) "other", NULL
6807 };
6808
6809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6811 if (!SWIG_IsOK(res1)) {
6812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6813 }
6814 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6816 if (!SWIG_IsOK(res2)) {
6817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6818 }
6819 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6820 {
6821 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 {
6825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6826 }
6827 return resultobj;
6828 fail:
6829 return NULL;
6830 }
6831
6832
6833 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6834 PyObject *obj;
6835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6836 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6837 return SWIG_Py_Void();
6838 }
6839
6840 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6841 return SWIG_Python_InitShadowInstance(args);
6842 }
6843
6844 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj = 0;
6846 int arg1 ;
6847 int arg2 ;
6848 buffer arg3 ;
6849 int arg4 ;
6850 buffer arg5 ;
6851 int arg6 ;
6852 wxBitmap *result = 0 ;
6853 int val1 ;
6854 int ecode1 = 0 ;
6855 int val2 ;
6856 int ecode2 = 0 ;
6857 Py_ssize_t temp3 ;
6858 Py_ssize_t temp5 ;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 PyObject * obj2 = 0 ;
6862 PyObject * obj3 = 0 ;
6863 char * kwnames[] = {
6864 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6865 };
6866
6867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6868 ecode1 = SWIG_AsVal_int(obj0, &val1);
6869 if (!SWIG_IsOK(ecode1)) {
6870 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6871 }
6872 arg1 = static_cast< int >(val1);
6873 ecode2 = SWIG_AsVal_int(obj1, &val2);
6874 if (!SWIG_IsOK(ecode2)) {
6875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6876 }
6877 arg2 = static_cast< int >(val2);
6878 {
6879 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6880 arg4 = (int)temp3;
6881 }
6882 {
6883 if (obj3 != Py_None) {
6884 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6885 arg6 = (int)temp5;
6886 }
6887 }
6888 {
6889 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6890 if (PyErr_Occurred()) SWIG_fail;
6891 }
6892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6893 return resultobj;
6894 fail:
6895 return NULL;
6896 }
6897
6898
6899 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6900 PyObject *resultobj = 0;
6901 int arg1 ;
6902 int arg2 ;
6903 buffer arg3 ;
6904 int arg4 ;
6905 wxBitmap *result = 0 ;
6906 int val1 ;
6907 int ecode1 = 0 ;
6908 int val2 ;
6909 int ecode2 = 0 ;
6910 Py_ssize_t temp3 ;
6911 PyObject * obj0 = 0 ;
6912 PyObject * obj1 = 0 ;
6913 PyObject * obj2 = 0 ;
6914 char * kwnames[] = {
6915 (char *) "width",(char *) "height",(char *) "data", NULL
6916 };
6917
6918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6919 ecode1 = SWIG_AsVal_int(obj0, &val1);
6920 if (!SWIG_IsOK(ecode1)) {
6921 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6922 }
6923 arg1 = static_cast< int >(val1);
6924 ecode2 = SWIG_AsVal_int(obj1, &val2);
6925 if (!SWIG_IsOK(ecode2)) {
6926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6927 }
6928 arg2 = static_cast< int >(val2);
6929 {
6930 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6931 arg4 = (int)temp3;
6932 }
6933 {
6934 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6938 return resultobj;
6939 fail:
6940 return NULL;
6941 }
6942
6943
6944 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6945 PyObject *resultobj = 0;
6946 int arg1 ;
6947 int arg2 ;
6948 buffer arg3 ;
6949 int arg4 ;
6950 wxBitmap *result = 0 ;
6951 int val1 ;
6952 int ecode1 = 0 ;
6953 int val2 ;
6954 int ecode2 = 0 ;
6955 Py_ssize_t temp3 ;
6956 PyObject * obj0 = 0 ;
6957 PyObject * obj1 = 0 ;
6958 PyObject * obj2 = 0 ;
6959 char * kwnames[] = {
6960 (char *) "width",(char *) "height",(char *) "data", NULL
6961 };
6962
6963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6964 ecode1 = SWIG_AsVal_int(obj0, &val1);
6965 if (!SWIG_IsOK(ecode1)) {
6966 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6967 }
6968 arg1 = static_cast< int >(val1);
6969 ecode2 = SWIG_AsVal_int(obj1, &val2);
6970 if (!SWIG_IsOK(ecode2)) {
6971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6972 }
6973 arg2 = static_cast< int >(val2);
6974 {
6975 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6976 arg4 = (int)temp3;
6977 }
6978 {
6979 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6983 return resultobj;
6984 fail:
6985 return NULL;
6986 }
6987
6988
6989 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6990 PyObject *resultobj = 0;
6991 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6992 wxPoint result;
6993 void *argp1 = 0 ;
6994 int res1 = 0 ;
6995 PyObject *swig_obj[1] ;
6996
6997 if (!args) SWIG_fail;
6998 swig_obj[0] = args;
6999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7000 if (!SWIG_IsOK(res1)) {
7001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7002 }
7003 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7004 {
7005 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7009 return resultobj;
7010 fail:
7011 return NULL;
7012 }
7013
7014
7015 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7016 PyObject *resultobj = 0;
7017 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7018 int result;
7019 void *argp1 = 0 ;
7020 int res1 = 0 ;
7021 PyObject *swig_obj[1] ;
7022
7023 if (!args) SWIG_fail;
7024 swig_obj[0] = args;
7025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7026 if (!SWIG_IsOK(res1)) {
7027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7028 }
7029 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7030 {
7031 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_From_int(static_cast< int >(result));
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7042 PyObject *resultobj = 0;
7043 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7044 int result;
7045 void *argp1 = 0 ;
7046 int res1 = 0 ;
7047 PyObject *swig_obj[1] ;
7048
7049 if (!args) SWIG_fail;
7050 swig_obj[0] = args;
7051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7052 if (!SWIG_IsOK(res1)) {
7053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7054 }
7055 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7056 {
7057 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 resultobj = SWIG_From_int(static_cast< int >(result));
7061 return resultobj;
7062 fail:
7063 return NULL;
7064 }
7065
7066
7067 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7068 PyObject *resultobj = 0;
7069 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7070 wxSize result;
7071 void *argp1 = 0 ;
7072 int res1 = 0 ;
7073 PyObject *swig_obj[1] ;
7074
7075 if (!args) SWIG_fail;
7076 swig_obj[0] = args;
7077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7078 if (!SWIG_IsOK(res1)) {
7079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7080 }
7081 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7082 {
7083 result = ((wxPixelDataBase const *)arg1)->GetSize();
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7087 return resultobj;
7088 fail:
7089 return NULL;
7090 }
7091
7092
7093 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7094 PyObject *resultobj = 0;
7095 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7096 int result;
7097 void *argp1 = 0 ;
7098 int res1 = 0 ;
7099 PyObject *swig_obj[1] ;
7100
7101 if (!args) SWIG_fail;
7102 swig_obj[0] = args;
7103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7104 if (!SWIG_IsOK(res1)) {
7105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7106 }
7107 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7108 {
7109 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 resultobj = SWIG_From_int(static_cast< int >(result));
7113 return resultobj;
7114 fail:
7115 return NULL;
7116 }
7117
7118
7119 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7120 PyObject *obj;
7121 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7122 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7123 return SWIG_Py_Void();
7124 }
7125
7126 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7127 PyObject *resultobj = 0;
7128 wxBitmap *arg1 = 0 ;
7129 wxNativePixelData *result = 0 ;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132
7133 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7135 if (!SWIG_IsOK(res1)) {
7136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7137 }
7138 if (!argp1) {
7139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7140 }
7141 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7142 {
7143 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7144 if (PyErr_Occurred()) SWIG_fail;
7145 }
7146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7147 return resultobj;
7148 fail:
7149 return NULL;
7150 }
7151
7152
7153 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7154 PyObject *resultobj = 0;
7155 wxBitmap *arg1 = 0 ;
7156 wxRect *arg2 = 0 ;
7157 wxNativePixelData *result = 0 ;
7158 void *argp1 = 0 ;
7159 int res1 = 0 ;
7160 wxRect temp2 ;
7161
7162 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7164 if (!SWIG_IsOK(res1)) {
7165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7166 }
7167 if (!argp1) {
7168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7169 }
7170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7171 {
7172 arg2 = &temp2;
7173 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7174 }
7175 {
7176 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
7179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7187 PyObject *resultobj = 0;
7188 wxBitmap *arg1 = 0 ;
7189 wxPoint *arg2 = 0 ;
7190 wxSize *arg3 = 0 ;
7191 wxNativePixelData *result = 0 ;
7192 void *argp1 = 0 ;
7193 int res1 = 0 ;
7194 wxPoint temp2 ;
7195 wxSize temp3 ;
7196
7197 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7199 if (!SWIG_IsOK(res1)) {
7200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7201 }
7202 if (!argp1) {
7203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7204 }
7205 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7206 {
7207 arg2 = &temp2;
7208 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7209 }
7210 {
7211 arg3 = &temp3;
7212 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7213 }
7214 {
7215 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7226 int argc;
7227 PyObject *argv[4];
7228
7229 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7230 --argc;
7231 if (argc == 1) {
7232 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7233 }
7234 if (argc == 2) {
7235 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7236 }
7237 if (argc == 3) {
7238 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7239 }
7240
7241 fail:
7242 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7243 return NULL;
7244 }
7245
7246
7247 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7248 PyObject *resultobj = 0;
7249 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7250 void *argp1 = 0 ;
7251 int res1 = 0 ;
7252 PyObject *swig_obj[1] ;
7253
7254 if (!args) SWIG_fail;
7255 swig_obj[0] = args;
7256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7257 if (!SWIG_IsOK(res1)) {
7258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7259 }
7260 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7261 {
7262 delete arg1;
7263
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 resultobj = SWIG_Py_Void();
7267 return resultobj;
7268 fail:
7269 return NULL;
7270 }
7271
7272
7273 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7274 PyObject *resultobj = 0;
7275 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7276 wxNativePixelData_Accessor result;
7277 void *argp1 = 0 ;
7278 int res1 = 0 ;
7279 PyObject *swig_obj[1] ;
7280
7281 if (!args) SWIG_fail;
7282 swig_obj[0] = args;
7283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7284 if (!SWIG_IsOK(res1)) {
7285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7286 }
7287 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7288 {
7289 result = ((wxNativePixelData const *)arg1)->GetPixels();
7290 if (PyErr_Occurred()) SWIG_fail;
7291 }
7292 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7293 return resultobj;
7294 fail:
7295 return NULL;
7296 }
7297
7298
7299 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7300 PyObject *resultobj = 0;
7301 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7302 void *argp1 = 0 ;
7303 int res1 = 0 ;
7304 PyObject *swig_obj[1] ;
7305
7306 if (!args) SWIG_fail;
7307 swig_obj[0] = args;
7308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7309 if (!SWIG_IsOK(res1)) {
7310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7311 }
7312 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7313 {
7314 (arg1)->UseAlpha();
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 resultobj = SWIG_Py_Void();
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7325 PyObject *resultobj = 0;
7326 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7327 bool result;
7328 void *argp1 = 0 ;
7329 int res1 = 0 ;
7330 PyObject *swig_obj[1] ;
7331
7332 if (!args) SWIG_fail;
7333 swig_obj[0] = args;
7334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7335 if (!SWIG_IsOK(res1)) {
7336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7337 }
7338 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7339 {
7340 result = (bool)wxNativePixelData___nonzero__(arg1);
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 {
7344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7345 }
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7353 PyObject *obj;
7354 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7355 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7356 return SWIG_Py_Void();
7357 }
7358
7359 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7360 return SWIG_Python_InitShadowInstance(args);
7361 }
7362
7363 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7364 PyObject *resultobj = 0;
7365 wxNativePixelData *arg1 = 0 ;
7366 wxNativePixelData_Accessor *result = 0 ;
7367 void *argp1 = 0 ;
7368 int res1 = 0 ;
7369
7370 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7372 if (!SWIG_IsOK(res1)) {
7373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7374 }
7375 if (!argp1) {
7376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7377 }
7378 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7379 {
7380 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7384 return resultobj;
7385 fail:
7386 return NULL;
7387 }
7388
7389
7390 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7391 PyObject *resultobj = 0;
7392 wxBitmap *arg1 = 0 ;
7393 wxNativePixelData *arg2 = 0 ;
7394 wxNativePixelData_Accessor *result = 0 ;
7395 void *argp1 = 0 ;
7396 int res1 = 0 ;
7397 void *argp2 = 0 ;
7398 int res2 = 0 ;
7399
7400 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7402 if (!SWIG_IsOK(res1)) {
7403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7404 }
7405 if (!argp1) {
7406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7407 }
7408 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7409 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7410 if (!SWIG_IsOK(res2)) {
7411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7412 }
7413 if (!argp2) {
7414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7415 }
7416 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7417 {
7418 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7419 if (PyErr_Occurred()) SWIG_fail;
7420 }
7421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7422 return resultobj;
7423 fail:
7424 return NULL;
7425 }
7426
7427
7428 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7429 PyObject *resultobj = 0;
7430 wxNativePixelData_Accessor *result = 0 ;
7431
7432 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7433 {
7434 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7435 if (PyErr_Occurred()) SWIG_fail;
7436 }
7437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7438 return resultobj;
7439 fail:
7440 return NULL;
7441 }
7442
7443
7444 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7445 int argc;
7446 PyObject *argv[3];
7447
7448 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7449 --argc;
7450 if (argc == 0) {
7451 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7452 }
7453 if (argc == 1) {
7454 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7455 }
7456 if (argc == 2) {
7457 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7458 }
7459
7460 fail:
7461 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7462 return NULL;
7463 }
7464
7465
7466 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7467 PyObject *resultobj = 0;
7468 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7469 void *argp1 = 0 ;
7470 int res1 = 0 ;
7471 PyObject *swig_obj[1] ;
7472
7473 if (!args) SWIG_fail;
7474 swig_obj[0] = args;
7475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7476 if (!SWIG_IsOK(res1)) {
7477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7478 }
7479 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7480 {
7481 delete arg1;
7482
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 resultobj = SWIG_Py_Void();
7486 return resultobj;
7487 fail:
7488 return NULL;
7489 }
7490
7491
7492 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj = 0;
7494 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7495 wxNativePixelData *arg2 = 0 ;
7496 void *argp1 = 0 ;
7497 int res1 = 0 ;
7498 void *argp2 = 0 ;
7499 int res2 = 0 ;
7500 PyObject * obj0 = 0 ;
7501 PyObject * obj1 = 0 ;
7502 char * kwnames[] = {
7503 (char *) "self",(char *) "data", NULL
7504 };
7505
7506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7508 if (!SWIG_IsOK(res1)) {
7509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7510 }
7511 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7513 if (!SWIG_IsOK(res2)) {
7514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7515 }
7516 if (!argp2) {
7517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7518 }
7519 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7520 {
7521 (arg1)->Reset((wxNativePixelData const &)*arg2);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 resultobj = SWIG_Py_Void();
7525 return resultobj;
7526 fail:
7527 return NULL;
7528 }
7529
7530
7531 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7532 PyObject *resultobj = 0;
7533 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7534 bool result;
7535 void *argp1 = 0 ;
7536 int res1 = 0 ;
7537 PyObject *swig_obj[1] ;
7538
7539 if (!args) SWIG_fail;
7540 swig_obj[0] = args;
7541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7542 if (!SWIG_IsOK(res1)) {
7543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7544 }
7545 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7546 {
7547 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7548 if (PyErr_Occurred()) SWIG_fail;
7549 }
7550 {
7551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7552 }
7553 return resultobj;
7554 fail:
7555 return NULL;
7556 }
7557
7558
7559 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7560 PyObject *resultobj = 0;
7561 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7562 void *argp1 = 0 ;
7563 int res1 = 0 ;
7564 PyObject *swig_obj[1] ;
7565
7566 if (!args) SWIG_fail;
7567 swig_obj[0] = args;
7568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7569 if (!SWIG_IsOK(res1)) {
7570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7571 }
7572 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7573 {
7574 wxNativePixelData_Accessor_nextPixel(arg1);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_Py_Void();
7578 return resultobj;
7579 fail:
7580 return NULL;
7581 }
7582
7583
7584 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7585 PyObject *resultobj = 0;
7586 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7587 wxNativePixelData *arg2 = 0 ;
7588 int arg3 ;
7589 int arg4 ;
7590 void *argp1 = 0 ;
7591 int res1 = 0 ;
7592 void *argp2 = 0 ;
7593 int res2 = 0 ;
7594 int val3 ;
7595 int ecode3 = 0 ;
7596 int val4 ;
7597 int ecode4 = 0 ;
7598 PyObject * obj0 = 0 ;
7599 PyObject * obj1 = 0 ;
7600 PyObject * obj2 = 0 ;
7601 PyObject * obj3 = 0 ;
7602 char * kwnames[] = {
7603 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7604 };
7605
7606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7608 if (!SWIG_IsOK(res1)) {
7609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7610 }
7611 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7613 if (!SWIG_IsOK(res2)) {
7614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7615 }
7616 if (!argp2) {
7617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7618 }
7619 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7620 ecode3 = SWIG_AsVal_int(obj2, &val3);
7621 if (!SWIG_IsOK(ecode3)) {
7622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7623 }
7624 arg3 = static_cast< int >(val3);
7625 ecode4 = SWIG_AsVal_int(obj3, &val4);
7626 if (!SWIG_IsOK(ecode4)) {
7627 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7628 }
7629 arg4 = static_cast< int >(val4);
7630 {
7631 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7632 if (PyErr_Occurred()) SWIG_fail;
7633 }
7634 resultobj = SWIG_Py_Void();
7635 return resultobj;
7636 fail:
7637 return NULL;
7638 }
7639
7640
7641 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7642 PyObject *resultobj = 0;
7643 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7644 wxNativePixelData *arg2 = 0 ;
7645 int arg3 ;
7646 void *argp1 = 0 ;
7647 int res1 = 0 ;
7648 void *argp2 = 0 ;
7649 int res2 = 0 ;
7650 int val3 ;
7651 int ecode3 = 0 ;
7652 PyObject * obj0 = 0 ;
7653 PyObject * obj1 = 0 ;
7654 PyObject * obj2 = 0 ;
7655 char * kwnames[] = {
7656 (char *) "self",(char *) "data",(char *) "x", NULL
7657 };
7658
7659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7661 if (!SWIG_IsOK(res1)) {
7662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7663 }
7664 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7666 if (!SWIG_IsOK(res2)) {
7667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7668 }
7669 if (!argp2) {
7670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7671 }
7672 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7673 ecode3 = SWIG_AsVal_int(obj2, &val3);
7674 if (!SWIG_IsOK(ecode3)) {
7675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7676 }
7677 arg3 = static_cast< int >(val3);
7678 {
7679 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 resultobj = SWIG_Py_Void();
7683 return resultobj;
7684 fail:
7685 return NULL;
7686 }
7687
7688
7689 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj = 0;
7691 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7692 wxNativePixelData *arg2 = 0 ;
7693 int arg3 ;
7694 void *argp1 = 0 ;
7695 int res1 = 0 ;
7696 void *argp2 = 0 ;
7697 int res2 = 0 ;
7698 int val3 ;
7699 int ecode3 = 0 ;
7700 PyObject * obj0 = 0 ;
7701 PyObject * obj1 = 0 ;
7702 PyObject * obj2 = 0 ;
7703 char * kwnames[] = {
7704 (char *) "self",(char *) "data",(char *) "y", NULL
7705 };
7706
7707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7709 if (!SWIG_IsOK(res1)) {
7710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7711 }
7712 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7714 if (!SWIG_IsOK(res2)) {
7715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7716 }
7717 if (!argp2) {
7718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7719 }
7720 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7721 ecode3 = SWIG_AsVal_int(obj2, &val3);
7722 if (!SWIG_IsOK(ecode3)) {
7723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7724 }
7725 arg3 = static_cast< int >(val3);
7726 {
7727 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 resultobj = SWIG_Py_Void();
7731 return resultobj;
7732 fail:
7733 return NULL;
7734 }
7735
7736
7737 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj = 0;
7739 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7740 wxNativePixelData *arg2 = 0 ;
7741 int arg3 ;
7742 int arg4 ;
7743 void *argp1 = 0 ;
7744 int res1 = 0 ;
7745 void *argp2 = 0 ;
7746 int res2 = 0 ;
7747 int val3 ;
7748 int ecode3 = 0 ;
7749 int val4 ;
7750 int ecode4 = 0 ;
7751 PyObject * obj0 = 0 ;
7752 PyObject * obj1 = 0 ;
7753 PyObject * obj2 = 0 ;
7754 PyObject * obj3 = 0 ;
7755 char * kwnames[] = {
7756 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7757 };
7758
7759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7761 if (!SWIG_IsOK(res1)) {
7762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7763 }
7764 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7766 if (!SWIG_IsOK(res2)) {
7767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7768 }
7769 if (!argp2) {
7770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7771 }
7772 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7773 ecode3 = SWIG_AsVal_int(obj2, &val3);
7774 if (!SWIG_IsOK(ecode3)) {
7775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7776 }
7777 arg3 = static_cast< int >(val3);
7778 ecode4 = SWIG_AsVal_int(obj3, &val4);
7779 if (!SWIG_IsOK(ecode4)) {
7780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7781 }
7782 arg4 = static_cast< int >(val4);
7783 {
7784 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_Py_Void();
7788 return resultobj;
7789 fail:
7790 return NULL;
7791 }
7792
7793
7794 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7795 PyObject *resultobj = 0;
7796 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7797 byte arg2 ;
7798 byte arg3 ;
7799 byte arg4 ;
7800 void *argp1 = 0 ;
7801 int res1 = 0 ;
7802 unsigned char val2 ;
7803 int ecode2 = 0 ;
7804 unsigned char val3 ;
7805 int ecode3 = 0 ;
7806 unsigned char val4 ;
7807 int ecode4 = 0 ;
7808 PyObject * obj0 = 0 ;
7809 PyObject * obj1 = 0 ;
7810 PyObject * obj2 = 0 ;
7811 PyObject * obj3 = 0 ;
7812 char * kwnames[] = {
7813 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7814 };
7815
7816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7818 if (!SWIG_IsOK(res1)) {
7819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7820 }
7821 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7822 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7823 if (!SWIG_IsOK(ecode2)) {
7824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7825 }
7826 arg2 = static_cast< byte >(val2);
7827 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7828 if (!SWIG_IsOK(ecode3)) {
7829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7830 }
7831 arg3 = static_cast< byte >(val3);
7832 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7833 if (!SWIG_IsOK(ecode4)) {
7834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7835 }
7836 arg4 = static_cast< byte >(val4);
7837 {
7838 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 resultobj = SWIG_Py_Void();
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7849 PyObject *resultobj = 0;
7850 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7851 PyObject *result = 0 ;
7852 void *argp1 = 0 ;
7853 int res1 = 0 ;
7854 PyObject *swig_obj[1] ;
7855
7856 if (!args) SWIG_fail;
7857 swig_obj[0] = args;
7858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7859 if (!SWIG_IsOK(res1)) {
7860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7861 }
7862 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7863 {
7864 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7865 if (PyErr_Occurred()) SWIG_fail;
7866 }
7867 resultobj = result;
7868 return resultobj;
7869 fail:
7870 return NULL;
7871 }
7872
7873
7874 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7875 PyObject *obj;
7876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7877 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7878 return SWIG_Py_Void();
7879 }
7880
7881 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7882 return SWIG_Python_InitShadowInstance(args);
7883 }
7884
7885 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7886 PyObject *resultobj = 0;
7887 wxBitmap *arg1 = 0 ;
7888 wxAlphaPixelData *result = 0 ;
7889 void *argp1 = 0 ;
7890 int res1 = 0 ;
7891
7892 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7894 if (!SWIG_IsOK(res1)) {
7895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7896 }
7897 if (!argp1) {
7898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7899 }
7900 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7901 {
7902 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7913 PyObject *resultobj = 0;
7914 wxBitmap *arg1 = 0 ;
7915 wxRect *arg2 = 0 ;
7916 wxAlphaPixelData *result = 0 ;
7917 void *argp1 = 0 ;
7918 int res1 = 0 ;
7919 wxRect temp2 ;
7920
7921 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7923 if (!SWIG_IsOK(res1)) {
7924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7925 }
7926 if (!argp1) {
7927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7928 }
7929 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7930 {
7931 arg2 = &temp2;
7932 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7933 }
7934 {
7935 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7936 if (PyErr_Occurred()) SWIG_fail;
7937 }
7938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7946 PyObject *resultobj = 0;
7947 wxBitmap *arg1 = 0 ;
7948 wxPoint *arg2 = 0 ;
7949 wxSize *arg3 = 0 ;
7950 wxAlphaPixelData *result = 0 ;
7951 void *argp1 = 0 ;
7952 int res1 = 0 ;
7953 wxPoint temp2 ;
7954 wxSize temp3 ;
7955
7956 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7958 if (!SWIG_IsOK(res1)) {
7959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7960 }
7961 if (!argp1) {
7962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7963 }
7964 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7965 {
7966 arg2 = &temp2;
7967 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7968 }
7969 {
7970 arg3 = &temp3;
7971 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7972 }
7973 {
7974 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7975 if (PyErr_Occurred()) SWIG_fail;
7976 }
7977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7978 return resultobj;
7979 fail:
7980 return NULL;
7981 }
7982
7983
7984 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7985 int argc;
7986 PyObject *argv[4];
7987
7988 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7989 --argc;
7990 if (argc == 1) {
7991 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7992 }
7993 if (argc == 2) {
7994 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7995 }
7996 if (argc == 3) {
7997 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7998 }
7999
8000 fail:
8001 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8002 return NULL;
8003 }
8004
8005
8006 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8007 PyObject *resultobj = 0;
8008 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8009 void *argp1 = 0 ;
8010 int res1 = 0 ;
8011 PyObject *swig_obj[1] ;
8012
8013 if (!args) SWIG_fail;
8014 swig_obj[0] = args;
8015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8016 if (!SWIG_IsOK(res1)) {
8017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8018 }
8019 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8020 {
8021 delete arg1;
8022
8023 if (PyErr_Occurred()) SWIG_fail;
8024 }
8025 resultobj = SWIG_Py_Void();
8026 return resultobj;
8027 fail:
8028 return NULL;
8029 }
8030
8031
8032 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8033 PyObject *resultobj = 0;
8034 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8035 wxAlphaPixelData_Accessor result;
8036 void *argp1 = 0 ;
8037 int res1 = 0 ;
8038 PyObject *swig_obj[1] ;
8039
8040 if (!args) SWIG_fail;
8041 swig_obj[0] = args;
8042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8043 if (!SWIG_IsOK(res1)) {
8044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8045 }
8046 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8047 {
8048 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8049 if (PyErr_Occurred()) SWIG_fail;
8050 }
8051 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8052 return resultobj;
8053 fail:
8054 return NULL;
8055 }
8056
8057
8058 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8059 PyObject *resultobj = 0;
8060 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8061 void *argp1 = 0 ;
8062 int res1 = 0 ;
8063 PyObject *swig_obj[1] ;
8064
8065 if (!args) SWIG_fail;
8066 swig_obj[0] = args;
8067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8068 if (!SWIG_IsOK(res1)) {
8069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8070 }
8071 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8072 {
8073 (arg1)->UseAlpha();
8074 if (PyErr_Occurred()) SWIG_fail;
8075 }
8076 resultobj = SWIG_Py_Void();
8077 return resultobj;
8078 fail:
8079 return NULL;
8080 }
8081
8082
8083 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8084 PyObject *resultobj = 0;
8085 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8086 bool result;
8087 void *argp1 = 0 ;
8088 int res1 = 0 ;
8089 PyObject *swig_obj[1] ;
8090
8091 if (!args) SWIG_fail;
8092 swig_obj[0] = args;
8093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8094 if (!SWIG_IsOK(res1)) {
8095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8096 }
8097 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8098 {
8099 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8100 if (PyErr_Occurred()) SWIG_fail;
8101 }
8102 {
8103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8104 }
8105 return resultobj;
8106 fail:
8107 return NULL;
8108 }
8109
8110
8111 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8112 PyObject *obj;
8113 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8114 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8115 return SWIG_Py_Void();
8116 }
8117
8118 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8119 return SWIG_Python_InitShadowInstance(args);
8120 }
8121
8122 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8123 PyObject *resultobj = 0;
8124 wxAlphaPixelData *arg1 = 0 ;
8125 wxAlphaPixelData_Accessor *result = 0 ;
8126 void *argp1 = 0 ;
8127 int res1 = 0 ;
8128
8129 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8131 if (!SWIG_IsOK(res1)) {
8132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8133 }
8134 if (!argp1) {
8135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8136 }
8137 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8138 {
8139 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8140 if (PyErr_Occurred()) SWIG_fail;
8141 }
8142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8143 return resultobj;
8144 fail:
8145 return NULL;
8146 }
8147
8148
8149 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8150 PyObject *resultobj = 0;
8151 wxBitmap *arg1 = 0 ;
8152 wxAlphaPixelData *arg2 = 0 ;
8153 wxAlphaPixelData_Accessor *result = 0 ;
8154 void *argp1 = 0 ;
8155 int res1 = 0 ;
8156 void *argp2 = 0 ;
8157 int res2 = 0 ;
8158
8159 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8161 if (!SWIG_IsOK(res1)) {
8162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8163 }
8164 if (!argp1) {
8165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8166 }
8167 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8168 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8169 if (!SWIG_IsOK(res2)) {
8170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8171 }
8172 if (!argp2) {
8173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8174 }
8175 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8176 {
8177 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
8180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8181 return resultobj;
8182 fail:
8183 return NULL;
8184 }
8185
8186
8187 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8188 PyObject *resultobj = 0;
8189 wxAlphaPixelData_Accessor *result = 0 ;
8190
8191 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8192 {
8193 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8197 return resultobj;
8198 fail:
8199 return NULL;
8200 }
8201
8202
8203 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8204 int argc;
8205 PyObject *argv[3];
8206
8207 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8208 --argc;
8209 if (argc == 0) {
8210 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8211 }
8212 if (argc == 1) {
8213 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8214 }
8215 if (argc == 2) {
8216 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8217 }
8218
8219 fail:
8220 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8221 return NULL;
8222 }
8223
8224
8225 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8226 PyObject *resultobj = 0;
8227 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8228 void *argp1 = 0 ;
8229 int res1 = 0 ;
8230 PyObject *swig_obj[1] ;
8231
8232 if (!args) SWIG_fail;
8233 swig_obj[0] = args;
8234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8235 if (!SWIG_IsOK(res1)) {
8236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8237 }
8238 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8239 {
8240 delete arg1;
8241
8242 if (PyErr_Occurred()) SWIG_fail;
8243 }
8244 resultobj = SWIG_Py_Void();
8245 return resultobj;
8246 fail:
8247 return NULL;
8248 }
8249
8250
8251 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8252 PyObject *resultobj = 0;
8253 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8254 wxAlphaPixelData *arg2 = 0 ;
8255 void *argp1 = 0 ;
8256 int res1 = 0 ;
8257 void *argp2 = 0 ;
8258 int res2 = 0 ;
8259 PyObject * obj0 = 0 ;
8260 PyObject * obj1 = 0 ;
8261 char * kwnames[] = {
8262 (char *) "self",(char *) "data", NULL
8263 };
8264
8265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8267 if (!SWIG_IsOK(res1)) {
8268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8269 }
8270 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8272 if (!SWIG_IsOK(res2)) {
8273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8274 }
8275 if (!argp2) {
8276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8277 }
8278 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8279 {
8280 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 resultobj = SWIG_Py_Void();
8284 return resultobj;
8285 fail:
8286 return NULL;
8287 }
8288
8289
8290 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8291 PyObject *resultobj = 0;
8292 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8293 bool result;
8294 void *argp1 = 0 ;
8295 int res1 = 0 ;
8296 PyObject *swig_obj[1] ;
8297
8298 if (!args) SWIG_fail;
8299 swig_obj[0] = args;
8300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8301 if (!SWIG_IsOK(res1)) {
8302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8303 }
8304 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8305 {
8306 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8307 if (PyErr_Occurred()) SWIG_fail;
8308 }
8309 {
8310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8311 }
8312 return resultobj;
8313 fail:
8314 return NULL;
8315 }
8316
8317
8318 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8319 PyObject *resultobj = 0;
8320 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8321 void *argp1 = 0 ;
8322 int res1 = 0 ;
8323 PyObject *swig_obj[1] ;
8324
8325 if (!args) SWIG_fail;
8326 swig_obj[0] = args;
8327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8328 if (!SWIG_IsOK(res1)) {
8329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8330 }
8331 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8332 {
8333 wxAlphaPixelData_Accessor_nextPixel(arg1);
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 resultobj = SWIG_Py_Void();
8337 return resultobj;
8338 fail:
8339 return NULL;
8340 }
8341
8342
8343 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8344 PyObject *resultobj = 0;
8345 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8346 wxAlphaPixelData *arg2 = 0 ;
8347 int arg3 ;
8348 int arg4 ;
8349 void *argp1 = 0 ;
8350 int res1 = 0 ;
8351 void *argp2 = 0 ;
8352 int res2 = 0 ;
8353 int val3 ;
8354 int ecode3 = 0 ;
8355 int val4 ;
8356 int ecode4 = 0 ;
8357 PyObject * obj0 = 0 ;
8358 PyObject * obj1 = 0 ;
8359 PyObject * obj2 = 0 ;
8360 PyObject * obj3 = 0 ;
8361 char * kwnames[] = {
8362 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8363 };
8364
8365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8367 if (!SWIG_IsOK(res1)) {
8368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8369 }
8370 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8372 if (!SWIG_IsOK(res2)) {
8373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8374 }
8375 if (!argp2) {
8376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8377 }
8378 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8379 ecode3 = SWIG_AsVal_int(obj2, &val3);
8380 if (!SWIG_IsOK(ecode3)) {
8381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8382 }
8383 arg3 = static_cast< int >(val3);
8384 ecode4 = SWIG_AsVal_int(obj3, &val4);
8385 if (!SWIG_IsOK(ecode4)) {
8386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8387 }
8388 arg4 = static_cast< int >(val4);
8389 {
8390 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8391 if (PyErr_Occurred()) SWIG_fail;
8392 }
8393 resultobj = SWIG_Py_Void();
8394 return resultobj;
8395 fail:
8396 return NULL;
8397 }
8398
8399
8400 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8401 PyObject *resultobj = 0;
8402 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8403 wxAlphaPixelData *arg2 = 0 ;
8404 int arg3 ;
8405 void *argp1 = 0 ;
8406 int res1 = 0 ;
8407 void *argp2 = 0 ;
8408 int res2 = 0 ;
8409 int val3 ;
8410 int ecode3 = 0 ;
8411 PyObject * obj0 = 0 ;
8412 PyObject * obj1 = 0 ;
8413 PyObject * obj2 = 0 ;
8414 char * kwnames[] = {
8415 (char *) "self",(char *) "data",(char *) "x", NULL
8416 };
8417
8418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8420 if (!SWIG_IsOK(res1)) {
8421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8422 }
8423 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8424 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8425 if (!SWIG_IsOK(res2)) {
8426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8427 }
8428 if (!argp2) {
8429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8430 }
8431 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8432 ecode3 = SWIG_AsVal_int(obj2, &val3);
8433 if (!SWIG_IsOK(ecode3)) {
8434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8435 }
8436 arg3 = static_cast< int >(val3);
8437 {
8438 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
8441 resultobj = SWIG_Py_Void();
8442 return resultobj;
8443 fail:
8444 return NULL;
8445 }
8446
8447
8448 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8449 PyObject *resultobj = 0;
8450 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8451 wxAlphaPixelData *arg2 = 0 ;
8452 int arg3 ;
8453 void *argp1 = 0 ;
8454 int res1 = 0 ;
8455 void *argp2 = 0 ;
8456 int res2 = 0 ;
8457 int val3 ;
8458 int ecode3 = 0 ;
8459 PyObject * obj0 = 0 ;
8460 PyObject * obj1 = 0 ;
8461 PyObject * obj2 = 0 ;
8462 char * kwnames[] = {
8463 (char *) "self",(char *) "data",(char *) "y", NULL
8464 };
8465
8466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8468 if (!SWIG_IsOK(res1)) {
8469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8470 }
8471 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8473 if (!SWIG_IsOK(res2)) {
8474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8475 }
8476 if (!argp2) {
8477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8478 }
8479 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8480 ecode3 = SWIG_AsVal_int(obj2, &val3);
8481 if (!SWIG_IsOK(ecode3)) {
8482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8483 }
8484 arg3 = static_cast< int >(val3);
8485 {
8486 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8487 if (PyErr_Occurred()) SWIG_fail;
8488 }
8489 resultobj = SWIG_Py_Void();
8490 return resultobj;
8491 fail:
8492 return NULL;
8493 }
8494
8495
8496 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8497 PyObject *resultobj = 0;
8498 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8499 wxAlphaPixelData *arg2 = 0 ;
8500 int arg3 ;
8501 int arg4 ;
8502 void *argp1 = 0 ;
8503 int res1 = 0 ;
8504 void *argp2 = 0 ;
8505 int res2 = 0 ;
8506 int val3 ;
8507 int ecode3 = 0 ;
8508 int val4 ;
8509 int ecode4 = 0 ;
8510 PyObject * obj0 = 0 ;
8511 PyObject * obj1 = 0 ;
8512 PyObject * obj2 = 0 ;
8513 PyObject * obj3 = 0 ;
8514 char * kwnames[] = {
8515 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8516 };
8517
8518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8520 if (!SWIG_IsOK(res1)) {
8521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8522 }
8523 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8525 if (!SWIG_IsOK(res2)) {
8526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8527 }
8528 if (!argp2) {
8529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8530 }
8531 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8532 ecode3 = SWIG_AsVal_int(obj2, &val3);
8533 if (!SWIG_IsOK(ecode3)) {
8534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8535 }
8536 arg3 = static_cast< int >(val3);
8537 ecode4 = SWIG_AsVal_int(obj3, &val4);
8538 if (!SWIG_IsOK(ecode4)) {
8539 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8540 }
8541 arg4 = static_cast< int >(val4);
8542 {
8543 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8544 if (PyErr_Occurred()) SWIG_fail;
8545 }
8546 resultobj = SWIG_Py_Void();
8547 return resultobj;
8548 fail:
8549 return NULL;
8550 }
8551
8552
8553 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8554 PyObject *resultobj = 0;
8555 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8556 byte arg2 ;
8557 byte arg3 ;
8558 byte arg4 ;
8559 byte arg5 ;
8560 void *argp1 = 0 ;
8561 int res1 = 0 ;
8562 unsigned char val2 ;
8563 int ecode2 = 0 ;
8564 unsigned char val3 ;
8565 int ecode3 = 0 ;
8566 unsigned char val4 ;
8567 int ecode4 = 0 ;
8568 unsigned char val5 ;
8569 int ecode5 = 0 ;
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj1 = 0 ;
8572 PyObject * obj2 = 0 ;
8573 PyObject * obj3 = 0 ;
8574 PyObject * obj4 = 0 ;
8575 char * kwnames[] = {
8576 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8577 };
8578
8579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8581 if (!SWIG_IsOK(res1)) {
8582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8583 }
8584 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8585 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8586 if (!SWIG_IsOK(ecode2)) {
8587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8588 }
8589 arg2 = static_cast< byte >(val2);
8590 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8591 if (!SWIG_IsOK(ecode3)) {
8592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8593 }
8594 arg3 = static_cast< byte >(val3);
8595 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8596 if (!SWIG_IsOK(ecode4)) {
8597 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8598 }
8599 arg4 = static_cast< byte >(val4);
8600 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8601 if (!SWIG_IsOK(ecode5)) {
8602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8603 }
8604 arg5 = static_cast< byte >(val5);
8605 {
8606 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8607 if (PyErr_Occurred()) SWIG_fail;
8608 }
8609 resultobj = SWIG_Py_Void();
8610 return resultobj;
8611 fail:
8612 return NULL;
8613 }
8614
8615
8616 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8617 PyObject *resultobj = 0;
8618 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8619 PyObject *result = 0 ;
8620 void *argp1 = 0 ;
8621 int res1 = 0 ;
8622 PyObject *swig_obj[1] ;
8623
8624 if (!args) SWIG_fail;
8625 swig_obj[0] = args;
8626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8627 if (!SWIG_IsOK(res1)) {
8628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8629 }
8630 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8631 {
8632 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8633 if (PyErr_Occurred()) SWIG_fail;
8634 }
8635 resultobj = result;
8636 return resultobj;
8637 fail:
8638 return NULL;
8639 }
8640
8641
8642 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8643 PyObject *obj;
8644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8645 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8646 return SWIG_Py_Void();
8647 }
8648
8649 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8650 return SWIG_Python_InitShadowInstance(args);
8651 }
8652
8653 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8654 PyObject *resultobj = 0;
8655 wxBitmap *arg1 = 0 ;
8656 wxColour const &arg2_defvalue = wxNullColour ;
8657 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8658 wxMask *result = 0 ;
8659 void *argp1 = 0 ;
8660 int res1 = 0 ;
8661 wxColour temp2 ;
8662 PyObject * obj0 = 0 ;
8663 PyObject * obj1 = 0 ;
8664 char * kwnames[] = {
8665 (char *) "bitmap",(char *) "colour", NULL
8666 };
8667
8668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8669 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8670 if (!SWIG_IsOK(res1)) {
8671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8672 }
8673 if (!argp1) {
8674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8675 }
8676 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8677 if (obj1) {
8678 {
8679 arg2 = &temp2;
8680 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8681 }
8682 }
8683 {
8684 if (!wxPyCheckForApp()) SWIG_fail;
8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
8686 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8687 wxPyEndAllowThreads(__tstate);
8688 if (PyErr_Occurred()) SWIG_fail;
8689 }
8690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8691 return resultobj;
8692 fail:
8693 return NULL;
8694 }
8695
8696
8697 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8698 PyObject *resultobj = 0;
8699 wxMask *arg1 = (wxMask *) 0 ;
8700 void *argp1 = 0 ;
8701 int res1 = 0 ;
8702 PyObject *swig_obj[1] ;
8703
8704 if (!args) SWIG_fail;
8705 swig_obj[0] = args;
8706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8707 if (!SWIG_IsOK(res1)) {
8708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8709 }
8710 arg1 = reinterpret_cast< wxMask * >(argp1);
8711 {
8712 delete arg1;
8713
8714 if (PyErr_Occurred()) SWIG_fail;
8715 }
8716 resultobj = SWIG_Py_Void();
8717 return resultobj;
8718 fail:
8719 return NULL;
8720 }
8721
8722
8723 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8724 PyObject *obj;
8725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8726 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8727 return SWIG_Py_Void();
8728 }
8729
8730 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8731 return SWIG_Python_InitShadowInstance(args);
8732 }
8733
8734 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj = 0;
8736 wxString *arg1 = 0 ;
8737 wxBitmapType arg2 ;
8738 int arg3 = (int) -1 ;
8739 int arg4 = (int) -1 ;
8740 wxIcon *result = 0 ;
8741 bool temp1 = false ;
8742 int val2 ;
8743 int ecode2 = 0 ;
8744 int val3 ;
8745 int ecode3 = 0 ;
8746 int val4 ;
8747 int ecode4 = 0 ;
8748 PyObject * obj0 = 0 ;
8749 PyObject * obj1 = 0 ;
8750 PyObject * obj2 = 0 ;
8751 PyObject * obj3 = 0 ;
8752 char * kwnames[] = {
8753 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8754 };
8755
8756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8757 {
8758 arg1 = wxString_in_helper(obj0);
8759 if (arg1 == NULL) SWIG_fail;
8760 temp1 = true;
8761 }
8762 ecode2 = SWIG_AsVal_int(obj1, &val2);
8763 if (!SWIG_IsOK(ecode2)) {
8764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8765 }
8766 arg2 = static_cast< wxBitmapType >(val2);
8767 if (obj2) {
8768 ecode3 = SWIG_AsVal_int(obj2, &val3);
8769 if (!SWIG_IsOK(ecode3)) {
8770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8771 }
8772 arg3 = static_cast< int >(val3);
8773 }
8774 if (obj3) {
8775 ecode4 = SWIG_AsVal_int(obj3, &val4);
8776 if (!SWIG_IsOK(ecode4)) {
8777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8778 }
8779 arg4 = static_cast< int >(val4);
8780 }
8781 {
8782 if (!wxPyCheckForApp()) SWIG_fail;
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8785 wxPyEndAllowThreads(__tstate);
8786 if (PyErr_Occurred()) SWIG_fail;
8787 }
8788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8789 {
8790 if (temp1)
8791 delete arg1;
8792 }
8793 return resultobj;
8794 fail:
8795 {
8796 if (temp1)
8797 delete arg1;
8798 }
8799 return NULL;
8800 }
8801
8802
8803 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8804 PyObject *resultobj = 0;
8805 wxIcon *arg1 = (wxIcon *) 0 ;
8806 void *argp1 = 0 ;
8807 int res1 = 0 ;
8808 PyObject *swig_obj[1] ;
8809
8810 if (!args) SWIG_fail;
8811 swig_obj[0] = args;
8812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8813 if (!SWIG_IsOK(res1)) {
8814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8815 }
8816 arg1 = reinterpret_cast< wxIcon * >(argp1);
8817 {
8818 PyThreadState* __tstate = wxPyBeginAllowThreads();
8819 delete arg1;
8820
8821 wxPyEndAllowThreads(__tstate);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 }
8824 resultobj = SWIG_Py_Void();
8825 return resultobj;
8826 fail:
8827 return NULL;
8828 }
8829
8830
8831 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8832 PyObject *resultobj = 0;
8833 wxIcon *result = 0 ;
8834
8835 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8836 {
8837 if (!wxPyCheckForApp()) SWIG_fail;
8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
8839 result = (wxIcon *)new wxIcon();
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 }
8843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8844 return resultobj;
8845 fail:
8846 return NULL;
8847 }
8848
8849
8850 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8851 PyObject *resultobj = 0;
8852 wxIconLocation *arg1 = 0 ;
8853 wxIcon *result = 0 ;
8854 void *argp1 = 0 ;
8855 int res1 = 0 ;
8856 PyObject * obj0 = 0 ;
8857 char * kwnames[] = {
8858 (char *) "loc", NULL
8859 };
8860
8861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8862 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8863 if (!SWIG_IsOK(res1)) {
8864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8865 }
8866 if (!argp1) {
8867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8868 }
8869 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8870 {
8871 if (!wxPyCheckForApp()) SWIG_fail;
8872 PyThreadState* __tstate = wxPyBeginAllowThreads();
8873 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8874 wxPyEndAllowThreads(__tstate);
8875 if (PyErr_Occurred()) SWIG_fail;
8876 }
8877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8878 return resultobj;
8879 fail:
8880 return NULL;
8881 }
8882
8883
8884 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8885 PyObject *resultobj = 0;
8886 wxBitmap *arg1 = 0 ;
8887 wxIcon *result = 0 ;
8888 void *argp1 = 0 ;
8889 int res1 = 0 ;
8890 PyObject * obj0 = 0 ;
8891 char * kwnames[] = {
8892 (char *) "bmp", NULL
8893 };
8894
8895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8896 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8897 if (!SWIG_IsOK(res1)) {
8898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8899 }
8900 if (!argp1) {
8901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8902 }
8903 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8904 {
8905 if (!wxPyCheckForApp()) SWIG_fail;
8906 PyThreadState* __tstate = wxPyBeginAllowThreads();
8907 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8912 return resultobj;
8913 fail:
8914 return NULL;
8915 }
8916
8917
8918 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8919 PyObject *resultobj = 0;
8920 PyObject *arg1 = (PyObject *) 0 ;
8921 wxIcon *result = 0 ;
8922 PyObject * obj0 = 0 ;
8923 char * kwnames[] = {
8924 (char *) "listOfStrings", NULL
8925 };
8926
8927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8928 arg1 = obj0;
8929 {
8930 if (!wxPyCheckForApp()) SWIG_fail;
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 result = (wxIcon *)new_wxIcon(arg1);
8933 wxPyEndAllowThreads(__tstate);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 }
8936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8937 return resultobj;
8938 fail:
8939 return NULL;
8940 }
8941
8942
8943 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8944 PyObject *resultobj = 0;
8945 wxIcon *arg1 = (wxIcon *) 0 ;
8946 wxString *arg2 = 0 ;
8947 wxBitmapType arg3 ;
8948 bool result;
8949 void *argp1 = 0 ;
8950 int res1 = 0 ;
8951 bool temp2 = false ;
8952 int val3 ;
8953 int ecode3 = 0 ;
8954 PyObject * obj0 = 0 ;
8955 PyObject * obj1 = 0 ;
8956 PyObject * obj2 = 0 ;
8957 char * kwnames[] = {
8958 (char *) "self",(char *) "name",(char *) "type", NULL
8959 };
8960
8961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8963 if (!SWIG_IsOK(res1)) {
8964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8965 }
8966 arg1 = reinterpret_cast< wxIcon * >(argp1);
8967 {
8968 arg2 = wxString_in_helper(obj1);
8969 if (arg2 == NULL) SWIG_fail;
8970 temp2 = true;
8971 }
8972 ecode3 = SWIG_AsVal_int(obj2, &val3);
8973 if (!SWIG_IsOK(ecode3)) {
8974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8975 }
8976 arg3 = static_cast< wxBitmapType >(val3);
8977 {
8978 PyThreadState* __tstate = wxPyBeginAllowThreads();
8979 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 {
8984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8985 }
8986 {
8987 if (temp2)
8988 delete arg2;
8989 }
8990 return resultobj;
8991 fail:
8992 {
8993 if (temp2)
8994 delete arg2;
8995 }
8996 return NULL;
8997 }
8998
8999
9000 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9001 PyObject *resultobj = 0;
9002 wxIcon *arg1 = (wxIcon *) 0 ;
9003 long result;
9004 void *argp1 = 0 ;
9005 int res1 = 0 ;
9006 PyObject *swig_obj[1] ;
9007
9008 if (!args) SWIG_fail;
9009 swig_obj[0] = args;
9010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9011 if (!SWIG_IsOK(res1)) {
9012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9013 }
9014 arg1 = reinterpret_cast< wxIcon * >(argp1);
9015 {
9016 PyThreadState* __tstate = wxPyBeginAllowThreads();
9017 result = (long)(arg1)->GetHandle();
9018 wxPyEndAllowThreads(__tstate);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 resultobj = SWIG_From_long(static_cast< long >(result));
9022 return resultobj;
9023 fail:
9024 return NULL;
9025 }
9026
9027
9028 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj = 0;
9030 wxIcon *arg1 = (wxIcon *) 0 ;
9031 long arg2 ;
9032 void *argp1 = 0 ;
9033 int res1 = 0 ;
9034 long val2 ;
9035 int ecode2 = 0 ;
9036 PyObject * obj0 = 0 ;
9037 PyObject * obj1 = 0 ;
9038 char * kwnames[] = {
9039 (char *) "self",(char *) "handle", NULL
9040 };
9041
9042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9044 if (!SWIG_IsOK(res1)) {
9045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9046 }
9047 arg1 = reinterpret_cast< wxIcon * >(argp1);
9048 ecode2 = SWIG_AsVal_long(obj1, &val2);
9049 if (!SWIG_IsOK(ecode2)) {
9050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9051 }
9052 arg2 = static_cast< long >(val2);
9053 {
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 wxIcon_SetHandle(arg1,arg2);
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 resultobj = SWIG_Py_Void();
9060 return resultobj;
9061 fail:
9062 return NULL;
9063 }
9064
9065
9066 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9067 PyObject *resultobj = 0;
9068 wxIcon *arg1 = (wxIcon *) 0 ;
9069 bool result;
9070 void *argp1 = 0 ;
9071 int res1 = 0 ;
9072 PyObject *swig_obj[1] ;
9073
9074 if (!args) SWIG_fail;
9075 swig_obj[0] = args;
9076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9077 if (!SWIG_IsOK(res1)) {
9078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
9079 }
9080 arg1 = reinterpret_cast< wxIcon * >(argp1);
9081 {
9082 PyThreadState* __tstate = wxPyBeginAllowThreads();
9083 result = (bool)(arg1)->Ok();
9084 wxPyEndAllowThreads(__tstate);
9085 if (PyErr_Occurred()) SWIG_fail;
9086 }
9087 {
9088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9089 }
9090 return resultobj;
9091 fail:
9092 return NULL;
9093 }
9094
9095
9096 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9097 PyObject *resultobj = 0;
9098 wxIcon *arg1 = (wxIcon *) 0 ;
9099 int result;
9100 void *argp1 = 0 ;
9101 int res1 = 0 ;
9102 PyObject *swig_obj[1] ;
9103
9104 if (!args) SWIG_fail;
9105 swig_obj[0] = args;
9106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9107 if (!SWIG_IsOK(res1)) {
9108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9109 }
9110 arg1 = reinterpret_cast< wxIcon * >(argp1);
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 result = (int)(arg1)->GetWidth();
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 resultobj = SWIG_From_int(static_cast< int >(result));
9118 return resultobj;
9119 fail:
9120 return NULL;
9121 }
9122
9123
9124 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9125 PyObject *resultobj = 0;
9126 wxIcon *arg1 = (wxIcon *) 0 ;
9127 int result;
9128 void *argp1 = 0 ;
9129 int res1 = 0 ;
9130 PyObject *swig_obj[1] ;
9131
9132 if (!args) SWIG_fail;
9133 swig_obj[0] = args;
9134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9135 if (!SWIG_IsOK(res1)) {
9136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9137 }
9138 arg1 = reinterpret_cast< wxIcon * >(argp1);
9139 {
9140 PyThreadState* __tstate = wxPyBeginAllowThreads();
9141 result = (int)(arg1)->GetHeight();
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 resultobj = SWIG_From_int(static_cast< int >(result));
9146 return resultobj;
9147 fail:
9148 return NULL;
9149 }
9150
9151
9152 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9153 PyObject *resultobj = 0;
9154 wxIcon *arg1 = (wxIcon *) 0 ;
9155 int result;
9156 void *argp1 = 0 ;
9157 int res1 = 0 ;
9158 PyObject *swig_obj[1] ;
9159
9160 if (!args) SWIG_fail;
9161 swig_obj[0] = args;
9162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9163 if (!SWIG_IsOK(res1)) {
9164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9165 }
9166 arg1 = reinterpret_cast< wxIcon * >(argp1);
9167 {
9168 PyThreadState* __tstate = wxPyBeginAllowThreads();
9169 result = (int)(arg1)->GetDepth();
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
9173 resultobj = SWIG_From_int(static_cast< int >(result));
9174 return resultobj;
9175 fail:
9176 return NULL;
9177 }
9178
9179
9180 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9181 PyObject *resultobj = 0;
9182 wxIcon *arg1 = (wxIcon *) 0 ;
9183 int arg2 ;
9184 void *argp1 = 0 ;
9185 int res1 = 0 ;
9186 int val2 ;
9187 int ecode2 = 0 ;
9188 PyObject * obj0 = 0 ;
9189 PyObject * obj1 = 0 ;
9190 char * kwnames[] = {
9191 (char *) "self",(char *) "w", NULL
9192 };
9193
9194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9196 if (!SWIG_IsOK(res1)) {
9197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9198 }
9199 arg1 = reinterpret_cast< wxIcon * >(argp1);
9200 ecode2 = SWIG_AsVal_int(obj1, &val2);
9201 if (!SWIG_IsOK(ecode2)) {
9202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9203 }
9204 arg2 = static_cast< int >(val2);
9205 {
9206 PyThreadState* __tstate = wxPyBeginAllowThreads();
9207 (arg1)->SetWidth(arg2);
9208 wxPyEndAllowThreads(__tstate);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 resultobj = SWIG_Py_Void();
9212 return resultobj;
9213 fail:
9214 return NULL;
9215 }
9216
9217
9218 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj = 0;
9220 wxIcon *arg1 = (wxIcon *) 0 ;
9221 int arg2 ;
9222 void *argp1 = 0 ;
9223 int res1 = 0 ;
9224 int val2 ;
9225 int ecode2 = 0 ;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 char * kwnames[] = {
9229 (char *) "self",(char *) "h", NULL
9230 };
9231
9232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9234 if (!SWIG_IsOK(res1)) {
9235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9236 }
9237 arg1 = reinterpret_cast< wxIcon * >(argp1);
9238 ecode2 = SWIG_AsVal_int(obj1, &val2);
9239 if (!SWIG_IsOK(ecode2)) {
9240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9241 }
9242 arg2 = static_cast< int >(val2);
9243 {
9244 PyThreadState* __tstate = wxPyBeginAllowThreads();
9245 (arg1)->SetHeight(arg2);
9246 wxPyEndAllowThreads(__tstate);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 resultobj = SWIG_Py_Void();
9250 return resultobj;
9251 fail:
9252 return NULL;
9253 }
9254
9255
9256 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9257 PyObject *resultobj = 0;
9258 wxIcon *arg1 = (wxIcon *) 0 ;
9259 int arg2 ;
9260 void *argp1 = 0 ;
9261 int res1 = 0 ;
9262 int val2 ;
9263 int ecode2 = 0 ;
9264 PyObject * obj0 = 0 ;
9265 PyObject * obj1 = 0 ;
9266 char * kwnames[] = {
9267 (char *) "self",(char *) "d", NULL
9268 };
9269
9270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9272 if (!SWIG_IsOK(res1)) {
9273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9274 }
9275 arg1 = reinterpret_cast< wxIcon * >(argp1);
9276 ecode2 = SWIG_AsVal_int(obj1, &val2);
9277 if (!SWIG_IsOK(ecode2)) {
9278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9279 }
9280 arg2 = static_cast< int >(val2);
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 (arg1)->SetDepth(arg2);
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 resultobj = SWIG_Py_Void();
9288 return resultobj;
9289 fail:
9290 return NULL;
9291 }
9292
9293
9294 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9295 PyObject *resultobj = 0;
9296 wxIcon *arg1 = (wxIcon *) 0 ;
9297 wxSize *arg2 = 0 ;
9298 void *argp1 = 0 ;
9299 int res1 = 0 ;
9300 wxSize temp2 ;
9301 PyObject * obj0 = 0 ;
9302 PyObject * obj1 = 0 ;
9303 char * kwnames[] = {
9304 (char *) "self",(char *) "size", NULL
9305 };
9306
9307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9309 if (!SWIG_IsOK(res1)) {
9310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9311 }
9312 arg1 = reinterpret_cast< wxIcon * >(argp1);
9313 {
9314 arg2 = &temp2;
9315 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9316 }
9317 {
9318 PyThreadState* __tstate = wxPyBeginAllowThreads();
9319 (arg1)->SetSize((wxSize const &)*arg2);
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 resultobj = SWIG_Py_Void();
9324 return resultobj;
9325 fail:
9326 return NULL;
9327 }
9328
9329
9330 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj = 0;
9332 wxIcon *arg1 = (wxIcon *) 0 ;
9333 wxBitmap *arg2 = 0 ;
9334 void *argp1 = 0 ;
9335 int res1 = 0 ;
9336 void *argp2 = 0 ;
9337 int res2 = 0 ;
9338 PyObject * obj0 = 0 ;
9339 PyObject * obj1 = 0 ;
9340 char * kwnames[] = {
9341 (char *) "self",(char *) "bmp", NULL
9342 };
9343
9344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9346 if (!SWIG_IsOK(res1)) {
9347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9348 }
9349 arg1 = reinterpret_cast< wxIcon * >(argp1);
9350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9351 if (!SWIG_IsOK(res2)) {
9352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9353 }
9354 if (!argp2) {
9355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9356 }
9357 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9358 {
9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
9360 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9361 wxPyEndAllowThreads(__tstate);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
9364 resultobj = SWIG_Py_Void();
9365 return resultobj;
9366 fail:
9367 return NULL;
9368 }
9369
9370
9371 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9372 PyObject *obj;
9373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9374 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9375 return SWIG_Py_Void();
9376 }
9377
9378 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9379 return SWIG_Python_InitShadowInstance(args);
9380 }
9381
9382 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9383 PyObject *resultobj = 0;
9384 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9385 int arg2 = (int) 0 ;
9386 wxIconLocation *result = 0 ;
9387 bool temp1 = false ;
9388 int val2 ;
9389 int ecode2 = 0 ;
9390 PyObject * obj0 = 0 ;
9391 PyObject * obj1 = 0 ;
9392 char * kwnames[] = {
9393 (char *) "filename",(char *) "num", NULL
9394 };
9395
9396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9397 if (obj0) {
9398 {
9399 arg1 = wxString_in_helper(obj0);
9400 if (arg1 == NULL) SWIG_fail;
9401 temp1 = true;
9402 }
9403 }
9404 if (obj1) {
9405 ecode2 = SWIG_AsVal_int(obj1, &val2);
9406 if (!SWIG_IsOK(ecode2)) {
9407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9408 }
9409 arg2 = static_cast< int >(val2);
9410 }
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
9413 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 }
9417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9418 {
9419 if (temp1)
9420 delete arg1;
9421 }
9422 return resultobj;
9423 fail:
9424 {
9425 if (temp1)
9426 delete arg1;
9427 }
9428 return NULL;
9429 }
9430
9431
9432 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9433 PyObject *resultobj = 0;
9434 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9435 void *argp1 = 0 ;
9436 int res1 = 0 ;
9437 PyObject *swig_obj[1] ;
9438
9439 if (!args) SWIG_fail;
9440 swig_obj[0] = args;
9441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9442 if (!SWIG_IsOK(res1)) {
9443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9444 }
9445 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9446 {
9447 PyThreadState* __tstate = wxPyBeginAllowThreads();
9448 delete arg1;
9449
9450 wxPyEndAllowThreads(__tstate);
9451 if (PyErr_Occurred()) SWIG_fail;
9452 }
9453 resultobj = SWIG_Py_Void();
9454 return resultobj;
9455 fail:
9456 return NULL;
9457 }
9458
9459
9460 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9461 PyObject *resultobj = 0;
9462 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9463 bool result;
9464 void *argp1 = 0 ;
9465 int res1 = 0 ;
9466 PyObject *swig_obj[1] ;
9467
9468 if (!args) SWIG_fail;
9469 swig_obj[0] = args;
9470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9471 if (!SWIG_IsOK(res1)) {
9472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9473 }
9474 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 {
9482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9483 }
9484 return resultobj;
9485 fail:
9486 return NULL;
9487 }
9488
9489
9490 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9491 PyObject *resultobj = 0;
9492 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9493 wxString *arg2 = 0 ;
9494 void *argp1 = 0 ;
9495 int res1 = 0 ;
9496 bool temp2 = false ;
9497 PyObject * obj0 = 0 ;
9498 PyObject * obj1 = 0 ;
9499 char * kwnames[] = {
9500 (char *) "self",(char *) "filename", NULL
9501 };
9502
9503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9505 if (!SWIG_IsOK(res1)) {
9506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9507 }
9508 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9509 {
9510 arg2 = wxString_in_helper(obj1);
9511 if (arg2 == NULL) SWIG_fail;
9512 temp2 = true;
9513 }
9514 {
9515 PyThreadState* __tstate = wxPyBeginAllowThreads();
9516 (arg1)->SetFileName((wxString const &)*arg2);
9517 wxPyEndAllowThreads(__tstate);
9518 if (PyErr_Occurred()) SWIG_fail;
9519 }
9520 resultobj = SWIG_Py_Void();
9521 {
9522 if (temp2)
9523 delete arg2;
9524 }
9525 return resultobj;
9526 fail:
9527 {
9528 if (temp2)
9529 delete arg2;
9530 }
9531 return NULL;
9532 }
9533
9534
9535 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9536 PyObject *resultobj = 0;
9537 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9538 wxString *result = 0 ;
9539 void *argp1 = 0 ;
9540 int res1 = 0 ;
9541 PyObject *swig_obj[1] ;
9542
9543 if (!args) SWIG_fail;
9544 swig_obj[0] = args;
9545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9546 if (!SWIG_IsOK(res1)) {
9547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9548 }
9549 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9550 {
9551 PyThreadState* __tstate = wxPyBeginAllowThreads();
9552 {
9553 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9554 result = (wxString *) &_result_ref;
9555 }
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 {
9560 #if wxUSE_UNICODE
9561 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9562 #else
9563 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9564 #endif
9565 }
9566 return resultobj;
9567 fail:
9568 return NULL;
9569 }
9570
9571
9572 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9573 PyObject *resultobj = 0;
9574 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9575 int arg2 ;
9576 void *argp1 = 0 ;
9577 int res1 = 0 ;
9578 int val2 ;
9579 int ecode2 = 0 ;
9580 PyObject * obj0 = 0 ;
9581 PyObject * obj1 = 0 ;
9582 char * kwnames[] = {
9583 (char *) "self",(char *) "num", NULL
9584 };
9585
9586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9588 if (!SWIG_IsOK(res1)) {
9589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9590 }
9591 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9592 ecode2 = SWIG_AsVal_int(obj1, &val2);
9593 if (!SWIG_IsOK(ecode2)) {
9594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9595 }
9596 arg2 = static_cast< int >(val2);
9597 {
9598 PyThreadState* __tstate = wxPyBeginAllowThreads();
9599 wxIconLocation_SetIndex(arg1,arg2);
9600 wxPyEndAllowThreads(__tstate);
9601 if (PyErr_Occurred()) SWIG_fail;
9602 }
9603 resultobj = SWIG_Py_Void();
9604 return resultobj;
9605 fail:
9606 return NULL;
9607 }
9608
9609
9610 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9611 PyObject *resultobj = 0;
9612 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9613 int result;
9614 void *argp1 = 0 ;
9615 int res1 = 0 ;
9616 PyObject *swig_obj[1] ;
9617
9618 if (!args) SWIG_fail;
9619 swig_obj[0] = args;
9620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9621 if (!SWIG_IsOK(res1)) {
9622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9623 }
9624 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9625 {
9626 PyThreadState* __tstate = wxPyBeginAllowThreads();
9627 result = (int)wxIconLocation_GetIndex(arg1);
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 resultobj = SWIG_From_int(static_cast< int >(result));
9632 return resultobj;
9633 fail:
9634 return NULL;
9635 }
9636
9637
9638 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9639 PyObject *obj;
9640 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9641 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9642 return SWIG_Py_Void();
9643 }
9644
9645 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9646 return SWIG_Python_InitShadowInstance(args);
9647 }
9648
9649 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9650 PyObject *resultobj = 0;
9651 wxIconBundle *result = 0 ;
9652
9653 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 result = (wxIconBundle *)new wxIconBundle();
9657 wxPyEndAllowThreads(__tstate);
9658 if (PyErr_Occurred()) SWIG_fail;
9659 }
9660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9661 return resultobj;
9662 fail:
9663 return NULL;
9664 }
9665
9666
9667 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj = 0;
9669 wxString *arg1 = 0 ;
9670 long arg2 ;
9671 wxIconBundle *result = 0 ;
9672 bool temp1 = false ;
9673 long val2 ;
9674 int ecode2 = 0 ;
9675 PyObject * obj0 = 0 ;
9676 PyObject * obj1 = 0 ;
9677 char * kwnames[] = {
9678 (char *) "file",(char *) "type", NULL
9679 };
9680
9681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9682 {
9683 arg1 = wxString_in_helper(obj0);
9684 if (arg1 == NULL) SWIG_fail;
9685 temp1 = true;
9686 }
9687 ecode2 = SWIG_AsVal_long(obj1, &val2);
9688 if (!SWIG_IsOK(ecode2)) {
9689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9690 }
9691 arg2 = static_cast< long >(val2);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9699 {
9700 if (temp1)
9701 delete arg1;
9702 }
9703 return resultobj;
9704 fail:
9705 {
9706 if (temp1)
9707 delete arg1;
9708 }
9709 return NULL;
9710 }
9711
9712
9713 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9714 PyObject *resultobj = 0;
9715 wxIcon *arg1 = 0 ;
9716 wxIconBundle *result = 0 ;
9717 void *argp1 = 0 ;
9718 int res1 = 0 ;
9719 PyObject * obj0 = 0 ;
9720 char * kwnames[] = {
9721 (char *) "icon", NULL
9722 };
9723
9724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9725 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9726 if (!SWIG_IsOK(res1)) {
9727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9728 }
9729 if (!argp1) {
9730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9731 }
9732 arg1 = reinterpret_cast< wxIcon * >(argp1);
9733 {
9734 PyThreadState* __tstate = wxPyBeginAllowThreads();
9735 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9736 wxPyEndAllowThreads(__tstate);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9740 return resultobj;
9741 fail:
9742 return NULL;
9743 }
9744
9745
9746 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9747 PyObject *resultobj = 0;
9748 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9749 void *argp1 = 0 ;
9750 int res1 = 0 ;
9751 PyObject *swig_obj[1] ;
9752
9753 if (!args) SWIG_fail;
9754 swig_obj[0] = args;
9755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9756 if (!SWIG_IsOK(res1)) {
9757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9758 }
9759 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 delete arg1;
9763
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 resultobj = SWIG_Py_Void();
9768 return resultobj;
9769 fail:
9770 return NULL;
9771 }
9772
9773
9774 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9775 PyObject *resultobj = 0;
9776 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9777 wxIcon *arg2 = 0 ;
9778 void *argp1 = 0 ;
9779 int res1 = 0 ;
9780 void *argp2 = 0 ;
9781 int res2 = 0 ;
9782 PyObject * obj0 = 0 ;
9783 PyObject * obj1 = 0 ;
9784 char * kwnames[] = {
9785 (char *) "self",(char *) "icon", NULL
9786 };
9787
9788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9790 if (!SWIG_IsOK(res1)) {
9791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9792 }
9793 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9794 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9795 if (!SWIG_IsOK(res2)) {
9796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9797 }
9798 if (!argp2) {
9799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9800 }
9801 arg2 = reinterpret_cast< wxIcon * >(argp2);
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 (arg1)->AddIcon((wxIcon const &)*arg2);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_Py_Void();
9809 return resultobj;
9810 fail:
9811 return NULL;
9812 }
9813
9814
9815 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9816 PyObject *resultobj = 0;
9817 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9818 wxString *arg2 = 0 ;
9819 long arg3 ;
9820 void *argp1 = 0 ;
9821 int res1 = 0 ;
9822 bool temp2 = false ;
9823 long val3 ;
9824 int ecode3 = 0 ;
9825 PyObject * obj0 = 0 ;
9826 PyObject * obj1 = 0 ;
9827 PyObject * obj2 = 0 ;
9828 char * kwnames[] = {
9829 (char *) "self",(char *) "file",(char *) "type", NULL
9830 };
9831
9832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9834 if (!SWIG_IsOK(res1)) {
9835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9836 }
9837 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9838 {
9839 arg2 = wxString_in_helper(obj1);
9840 if (arg2 == NULL) SWIG_fail;
9841 temp2 = true;
9842 }
9843 ecode3 = SWIG_AsVal_long(obj2, &val3);
9844 if (!SWIG_IsOK(ecode3)) {
9845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9846 }
9847 arg3 = static_cast< long >(val3);
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 resultobj = SWIG_Py_Void();
9855 {
9856 if (temp2)
9857 delete arg2;
9858 }
9859 return resultobj;
9860 fail:
9861 {
9862 if (temp2)
9863 delete arg2;
9864 }
9865 return NULL;
9866 }
9867
9868
9869 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9870 PyObject *resultobj = 0;
9871 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9872 wxSize *arg2 = 0 ;
9873 wxIcon *result = 0 ;
9874 void *argp1 = 0 ;
9875 int res1 = 0 ;
9876 wxSize temp2 ;
9877 PyObject * obj0 = 0 ;
9878 PyObject * obj1 = 0 ;
9879 char * kwnames[] = {
9880 (char *) "self",(char *) "size", NULL
9881 };
9882
9883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9885 if (!SWIG_IsOK(res1)) {
9886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9887 }
9888 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9889 {
9890 arg2 = &temp2;
9891 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9892 }
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 {
9896 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9897 result = (wxIcon *) &_result_ref;
9898 }
9899 wxPyEndAllowThreads(__tstate);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 }
9902 {
9903 wxIcon* resultptr = new wxIcon(*result);
9904 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9905 }
9906 return resultobj;
9907 fail:
9908 return NULL;
9909 }
9910
9911
9912 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9913 PyObject *obj;
9914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9915 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9916 return SWIG_Py_Void();
9917 }
9918
9919 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9920 return SWIG_Python_InitShadowInstance(args);
9921 }
9922
9923 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9924 PyObject *resultobj = 0;
9925 wxString *arg1 = 0 ;
9926 long arg2 ;
9927 int arg3 = (int) 0 ;
9928 int arg4 = (int) 0 ;
9929 wxCursor *result = 0 ;
9930 bool temp1 = false ;
9931 long val2 ;
9932 int ecode2 = 0 ;
9933 int val3 ;
9934 int ecode3 = 0 ;
9935 int val4 ;
9936 int ecode4 = 0 ;
9937 PyObject * obj0 = 0 ;
9938 PyObject * obj1 = 0 ;
9939 PyObject * obj2 = 0 ;
9940 PyObject * obj3 = 0 ;
9941 char * kwnames[] = {
9942 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9943 };
9944
9945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9946 {
9947 arg1 = wxString_in_helper(obj0);
9948 if (arg1 == NULL) SWIG_fail;
9949 temp1 = true;
9950 }
9951 ecode2 = SWIG_AsVal_long(obj1, &val2);
9952 if (!SWIG_IsOK(ecode2)) {
9953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9954 }
9955 arg2 = static_cast< long >(val2);
9956 if (obj2) {
9957 ecode3 = SWIG_AsVal_int(obj2, &val3);
9958 if (!SWIG_IsOK(ecode3)) {
9959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9960 }
9961 arg3 = static_cast< int >(val3);
9962 }
9963 if (obj3) {
9964 ecode4 = SWIG_AsVal_int(obj3, &val4);
9965 if (!SWIG_IsOK(ecode4)) {
9966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9967 }
9968 arg4 = static_cast< int >(val4);
9969 }
9970 {
9971 if (!wxPyCheckForApp()) SWIG_fail;
9972 PyThreadState* __tstate = wxPyBeginAllowThreads();
9973 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9978 {
9979 if (temp1)
9980 delete arg1;
9981 }
9982 return resultobj;
9983 fail:
9984 {
9985 if (temp1)
9986 delete arg1;
9987 }
9988 return NULL;
9989 }
9990
9991
9992 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9993 PyObject *resultobj = 0;
9994 wxCursor *arg1 = (wxCursor *) 0 ;
9995 void *argp1 = 0 ;
9996 int res1 = 0 ;
9997 PyObject *swig_obj[1] ;
9998
9999 if (!args) SWIG_fail;
10000 swig_obj[0] = args;
10001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10002 if (!SWIG_IsOK(res1)) {
10003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10004 }
10005 arg1 = reinterpret_cast< wxCursor * >(argp1);
10006 {
10007 PyThreadState* __tstate = wxPyBeginAllowThreads();
10008 delete arg1;
10009
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 resultobj = SWIG_Py_Void();
10014 return resultobj;
10015 fail:
10016 return NULL;
10017 }
10018
10019
10020 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10021 PyObject *resultobj = 0;
10022 int arg1 ;
10023 wxCursor *result = 0 ;
10024 int val1 ;
10025 int ecode1 = 0 ;
10026 PyObject * obj0 = 0 ;
10027 char * kwnames[] = {
10028 (char *) "id", NULL
10029 };
10030
10031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10032 ecode1 = SWIG_AsVal_int(obj0, &val1);
10033 if (!SWIG_IsOK(ecode1)) {
10034 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10035 }
10036 arg1 = static_cast< int >(val1);
10037 {
10038 if (!wxPyCheckForApp()) SWIG_fail;
10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
10040 result = (wxCursor *)new wxCursor(arg1);
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10045 return resultobj;
10046 fail:
10047 return NULL;
10048 }
10049
10050
10051 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10052 PyObject *resultobj = 0;
10053 wxImage *arg1 = 0 ;
10054 wxCursor *result = 0 ;
10055 void *argp1 = 0 ;
10056 int res1 = 0 ;
10057 PyObject * obj0 = 0 ;
10058 char * kwnames[] = {
10059 (char *) "image", NULL
10060 };
10061
10062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10063 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10064 if (!SWIG_IsOK(res1)) {
10065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10066 }
10067 if (!argp1) {
10068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10069 }
10070 arg1 = reinterpret_cast< wxImage * >(argp1);
10071 {
10072 if (!wxPyCheckForApp()) SWIG_fail;
10073 PyThreadState* __tstate = wxPyBeginAllowThreads();
10074 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10079 return resultobj;
10080 fail:
10081 return NULL;
10082 }
10083
10084
10085 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10086 PyObject *resultobj = 0;
10087 wxCursor *arg1 = (wxCursor *) 0 ;
10088 long result;
10089 void *argp1 = 0 ;
10090 int res1 = 0 ;
10091 PyObject *swig_obj[1] ;
10092
10093 if (!args) SWIG_fail;
10094 swig_obj[0] = args;
10095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10096 if (!SWIG_IsOK(res1)) {
10097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10098 }
10099 arg1 = reinterpret_cast< wxCursor * >(argp1);
10100 {
10101 PyThreadState* __tstate = wxPyBeginAllowThreads();
10102 result = (long)(arg1)->GetHandle();
10103 wxPyEndAllowThreads(__tstate);
10104 if (PyErr_Occurred()) SWIG_fail;
10105 }
10106 resultobj = SWIG_From_long(static_cast< long >(result));
10107 return resultobj;
10108 fail:
10109 return NULL;
10110 }
10111
10112
10113 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10114 PyObject *resultobj = 0;
10115 wxCursor *arg1 = (wxCursor *) 0 ;
10116 long arg2 ;
10117 void *argp1 = 0 ;
10118 int res1 = 0 ;
10119 long val2 ;
10120 int ecode2 = 0 ;
10121 PyObject * obj0 = 0 ;
10122 PyObject * obj1 = 0 ;
10123 char * kwnames[] = {
10124 (char *) "self",(char *) "handle", NULL
10125 };
10126
10127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10129 if (!SWIG_IsOK(res1)) {
10130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10131 }
10132 arg1 = reinterpret_cast< wxCursor * >(argp1);
10133 ecode2 = SWIG_AsVal_long(obj1, &val2);
10134 if (!SWIG_IsOK(ecode2)) {
10135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10136 }
10137 arg2 = static_cast< long >(val2);
10138 {
10139 PyThreadState* __tstate = wxPyBeginAllowThreads();
10140 wxCursor_SetHandle(arg1,arg2);
10141 wxPyEndAllowThreads(__tstate);
10142 if (PyErr_Occurred()) SWIG_fail;
10143 }
10144 resultobj = SWIG_Py_Void();
10145 return resultobj;
10146 fail:
10147 return NULL;
10148 }
10149
10150
10151 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10152 PyObject *resultobj = 0;
10153 wxCursor *arg1 = (wxCursor *) 0 ;
10154 bool result;
10155 void *argp1 = 0 ;
10156 int res1 = 0 ;
10157 PyObject *swig_obj[1] ;
10158
10159 if (!args) SWIG_fail;
10160 swig_obj[0] = args;
10161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10162 if (!SWIG_IsOK(res1)) {
10163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
10164 }
10165 arg1 = reinterpret_cast< wxCursor * >(argp1);
10166 {
10167 PyThreadState* __tstate = wxPyBeginAllowThreads();
10168 result = (bool)(arg1)->Ok();
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 {
10173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10174 }
10175 return resultobj;
10176 fail:
10177 return NULL;
10178 }
10179
10180
10181 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10182 PyObject *resultobj = 0;
10183 wxCursor *arg1 = (wxCursor *) 0 ;
10184 int result;
10185 void *argp1 = 0 ;
10186 int res1 = 0 ;
10187 PyObject *swig_obj[1] ;
10188
10189 if (!args) SWIG_fail;
10190 swig_obj[0] = args;
10191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10192 if (!SWIG_IsOK(res1)) {
10193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10194 }
10195 arg1 = reinterpret_cast< wxCursor * >(argp1);
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 result = (int)(arg1)->GetWidth();
10199 wxPyEndAllowThreads(__tstate);
10200 if (PyErr_Occurred()) SWIG_fail;
10201 }
10202 resultobj = SWIG_From_int(static_cast< int >(result));
10203 return resultobj;
10204 fail:
10205 return NULL;
10206 }
10207
10208
10209 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10210 PyObject *resultobj = 0;
10211 wxCursor *arg1 = (wxCursor *) 0 ;
10212 int result;
10213 void *argp1 = 0 ;
10214 int res1 = 0 ;
10215 PyObject *swig_obj[1] ;
10216
10217 if (!args) SWIG_fail;
10218 swig_obj[0] = args;
10219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10220 if (!SWIG_IsOK(res1)) {
10221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10222 }
10223 arg1 = reinterpret_cast< wxCursor * >(argp1);
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (int)(arg1)->GetHeight();
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 resultobj = SWIG_From_int(static_cast< int >(result));
10231 return resultobj;
10232 fail:
10233 return NULL;
10234 }
10235
10236
10237 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10238 PyObject *resultobj = 0;
10239 wxCursor *arg1 = (wxCursor *) 0 ;
10240 int result;
10241 void *argp1 = 0 ;
10242 int res1 = 0 ;
10243 PyObject *swig_obj[1] ;
10244
10245 if (!args) SWIG_fail;
10246 swig_obj[0] = args;
10247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10248 if (!SWIG_IsOK(res1)) {
10249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10250 }
10251 arg1 = reinterpret_cast< wxCursor * >(argp1);
10252 {
10253 PyThreadState* __tstate = wxPyBeginAllowThreads();
10254 result = (int)(arg1)->GetDepth();
10255 wxPyEndAllowThreads(__tstate);
10256 if (PyErr_Occurred()) SWIG_fail;
10257 }
10258 resultobj = SWIG_From_int(static_cast< int >(result));
10259 return resultobj;
10260 fail:
10261 return NULL;
10262 }
10263
10264
10265 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10266 PyObject *resultobj = 0;
10267 wxCursor *arg1 = (wxCursor *) 0 ;
10268 int arg2 ;
10269 void *argp1 = 0 ;
10270 int res1 = 0 ;
10271 int val2 ;
10272 int ecode2 = 0 ;
10273 PyObject * obj0 = 0 ;
10274 PyObject * obj1 = 0 ;
10275 char * kwnames[] = {
10276 (char *) "self",(char *) "w", NULL
10277 };
10278
10279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10281 if (!SWIG_IsOK(res1)) {
10282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10283 }
10284 arg1 = reinterpret_cast< wxCursor * >(argp1);
10285 ecode2 = SWIG_AsVal_int(obj1, &val2);
10286 if (!SWIG_IsOK(ecode2)) {
10287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10288 }
10289 arg2 = static_cast< int >(val2);
10290 {
10291 PyThreadState* __tstate = wxPyBeginAllowThreads();
10292 (arg1)->SetWidth(arg2);
10293 wxPyEndAllowThreads(__tstate);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 resultobj = SWIG_Py_Void();
10297 return resultobj;
10298 fail:
10299 return NULL;
10300 }
10301
10302
10303 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10304 PyObject *resultobj = 0;
10305 wxCursor *arg1 = (wxCursor *) 0 ;
10306 int arg2 ;
10307 void *argp1 = 0 ;
10308 int res1 = 0 ;
10309 int val2 ;
10310 int ecode2 = 0 ;
10311 PyObject * obj0 = 0 ;
10312 PyObject * obj1 = 0 ;
10313 char * kwnames[] = {
10314 (char *) "self",(char *) "h", NULL
10315 };
10316
10317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10319 if (!SWIG_IsOK(res1)) {
10320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10321 }
10322 arg1 = reinterpret_cast< wxCursor * >(argp1);
10323 ecode2 = SWIG_AsVal_int(obj1, &val2);
10324 if (!SWIG_IsOK(ecode2)) {
10325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10326 }
10327 arg2 = static_cast< int >(val2);
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 (arg1)->SetHeight(arg2);
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 resultobj = SWIG_Py_Void();
10335 return resultobj;
10336 fail:
10337 return NULL;
10338 }
10339
10340
10341 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10342 PyObject *resultobj = 0;
10343 wxCursor *arg1 = (wxCursor *) 0 ;
10344 int arg2 ;
10345 void *argp1 = 0 ;
10346 int res1 = 0 ;
10347 int val2 ;
10348 int ecode2 = 0 ;
10349 PyObject * obj0 = 0 ;
10350 PyObject * obj1 = 0 ;
10351 char * kwnames[] = {
10352 (char *) "self",(char *) "d", NULL
10353 };
10354
10355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10357 if (!SWIG_IsOK(res1)) {
10358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10359 }
10360 arg1 = reinterpret_cast< wxCursor * >(argp1);
10361 ecode2 = SWIG_AsVal_int(obj1, &val2);
10362 if (!SWIG_IsOK(ecode2)) {
10363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10364 }
10365 arg2 = static_cast< int >(val2);
10366 {
10367 PyThreadState* __tstate = wxPyBeginAllowThreads();
10368 (arg1)->SetDepth(arg2);
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 resultobj = SWIG_Py_Void();
10373 return resultobj;
10374 fail:
10375 return NULL;
10376 }
10377
10378
10379 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10380 PyObject *resultobj = 0;
10381 wxCursor *arg1 = (wxCursor *) 0 ;
10382 wxSize *arg2 = 0 ;
10383 void *argp1 = 0 ;
10384 int res1 = 0 ;
10385 wxSize temp2 ;
10386 PyObject * obj0 = 0 ;
10387 PyObject * obj1 = 0 ;
10388 char * kwnames[] = {
10389 (char *) "self",(char *) "size", NULL
10390 };
10391
10392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10394 if (!SWIG_IsOK(res1)) {
10395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10396 }
10397 arg1 = reinterpret_cast< wxCursor * >(argp1);
10398 {
10399 arg2 = &temp2;
10400 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10401 }
10402 {
10403 PyThreadState* __tstate = wxPyBeginAllowThreads();
10404 (arg1)->SetSize((wxSize const &)*arg2);
10405 wxPyEndAllowThreads(__tstate);
10406 if (PyErr_Occurred()) SWIG_fail;
10407 }
10408 resultobj = SWIG_Py_Void();
10409 return resultobj;
10410 fail:
10411 return NULL;
10412 }
10413
10414
10415 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10416 PyObject *obj;
10417 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10418 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10419 return SWIG_Py_Void();
10420 }
10421
10422 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10423 return SWIG_Python_InitShadowInstance(args);
10424 }
10425
10426 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10427 PyObject *resultobj = 0;
10428 int arg1 = (int) 0 ;
10429 int arg2 = (int) 0 ;
10430 int arg3 = (int) 0 ;
10431 int arg4 = (int) 0 ;
10432 wxRegion *result = 0 ;
10433 int val1 ;
10434 int ecode1 = 0 ;
10435 int val2 ;
10436 int ecode2 = 0 ;
10437 int val3 ;
10438 int ecode3 = 0 ;
10439 int val4 ;
10440 int ecode4 = 0 ;
10441 PyObject * obj0 = 0 ;
10442 PyObject * obj1 = 0 ;
10443 PyObject * obj2 = 0 ;
10444 PyObject * obj3 = 0 ;
10445 char * kwnames[] = {
10446 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10447 };
10448
10449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10450 if (obj0) {
10451 ecode1 = SWIG_AsVal_int(obj0, &val1);
10452 if (!SWIG_IsOK(ecode1)) {
10453 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10454 }
10455 arg1 = static_cast< int >(val1);
10456 }
10457 if (obj1) {
10458 ecode2 = SWIG_AsVal_int(obj1, &val2);
10459 if (!SWIG_IsOK(ecode2)) {
10460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10461 }
10462 arg2 = static_cast< int >(val2);
10463 }
10464 if (obj2) {
10465 ecode3 = SWIG_AsVal_int(obj2, &val3);
10466 if (!SWIG_IsOK(ecode3)) {
10467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10468 }
10469 arg3 = static_cast< int >(val3);
10470 }
10471 if (obj3) {
10472 ecode4 = SWIG_AsVal_int(obj3, &val4);
10473 if (!SWIG_IsOK(ecode4)) {
10474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10475 }
10476 arg4 = static_cast< int >(val4);
10477 }
10478 {
10479 if (!wxPyCheckForApp()) SWIG_fail;
10480 PyThreadState* __tstate = wxPyBeginAllowThreads();
10481 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10493 PyObject *resultobj = 0;
10494 wxBitmap *arg1 = 0 ;
10495 wxRegion *result = 0 ;
10496 void *argp1 = 0 ;
10497 int res1 = 0 ;
10498 PyObject * obj0 = 0 ;
10499 char * kwnames[] = {
10500 (char *) "bmp", NULL
10501 };
10502
10503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10504 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10505 if (!SWIG_IsOK(res1)) {
10506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10507 }
10508 if (!argp1) {
10509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10510 }
10511 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10512 {
10513 if (!wxPyCheckForApp()) SWIG_fail;
10514 PyThreadState* __tstate = wxPyBeginAllowThreads();
10515 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10520 return resultobj;
10521 fail:
10522 return NULL;
10523 }
10524
10525
10526 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10527 PyObject *resultobj = 0;
10528 wxBitmap *arg1 = 0 ;
10529 wxColour *arg2 = 0 ;
10530 int arg3 = (int) 0 ;
10531 wxRegion *result = 0 ;
10532 void *argp1 = 0 ;
10533 int res1 = 0 ;
10534 wxColour temp2 ;
10535 int val3 ;
10536 int ecode3 = 0 ;
10537 PyObject * obj0 = 0 ;
10538 PyObject * obj1 = 0 ;
10539 PyObject * obj2 = 0 ;
10540 char * kwnames[] = {
10541 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10542 };
10543
10544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10545 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10546 if (!SWIG_IsOK(res1)) {
10547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10548 }
10549 if (!argp1) {
10550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10551 }
10552 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10553 {
10554 arg2 = &temp2;
10555 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10556 }
10557 if (obj2) {
10558 ecode3 = SWIG_AsVal_int(obj2, &val3);
10559 if (!SWIG_IsOK(ecode3)) {
10560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10561 }
10562 arg3 = static_cast< int >(val3);
10563 }
10564 {
10565 if (!wxPyCheckForApp()) SWIG_fail;
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10568 wxPyEndAllowThreads(__tstate);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10572 return resultobj;
10573 fail:
10574 return NULL;
10575 }
10576
10577
10578 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj = 0;
10580 int arg1 ;
10581 wxPoint *arg2 = (wxPoint *) 0 ;
10582 int arg3 = (int) wxWINDING_RULE ;
10583 wxRegion *result = 0 ;
10584 int val3 ;
10585 int ecode3 = 0 ;
10586 PyObject * obj0 = 0 ;
10587 PyObject * obj1 = 0 ;
10588 char * kwnames[] = {
10589 (char *) "points",(char *) "fillStyle", NULL
10590 };
10591
10592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10593 {
10594 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10595 if (arg2 == NULL) SWIG_fail;
10596 }
10597 if (obj1) {
10598 ecode3 = SWIG_AsVal_int(obj1, &val3);
10599 if (!SWIG_IsOK(ecode3)) {
10600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10601 }
10602 arg3 = static_cast< int >(val3);
10603 }
10604 {
10605 if (!wxPyCheckForApp()) SWIG_fail;
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10612 {
10613 if (arg2) delete [] arg2;
10614 }
10615 return resultobj;
10616 fail:
10617 {
10618 if (arg2) delete [] arg2;
10619 }
10620 return NULL;
10621 }
10622
10623
10624 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10625 PyObject *resultobj = 0;
10626 wxRegion *arg1 = (wxRegion *) 0 ;
10627 void *argp1 = 0 ;
10628 int res1 = 0 ;
10629 PyObject *swig_obj[1] ;
10630
10631 if (!args) SWIG_fail;
10632 swig_obj[0] = args;
10633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10636 }
10637 arg1 = reinterpret_cast< wxRegion * >(argp1);
10638 {
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 delete arg1;
10641
10642 wxPyEndAllowThreads(__tstate);
10643 if (PyErr_Occurred()) SWIG_fail;
10644 }
10645 resultobj = SWIG_Py_Void();
10646 return resultobj;
10647 fail:
10648 return NULL;
10649 }
10650
10651
10652 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10653 PyObject *resultobj = 0;
10654 wxRegion *arg1 = (wxRegion *) 0 ;
10655 void *argp1 = 0 ;
10656 int res1 = 0 ;
10657 PyObject *swig_obj[1] ;
10658
10659 if (!args) SWIG_fail;
10660 swig_obj[0] = args;
10661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10662 if (!SWIG_IsOK(res1)) {
10663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10664 }
10665 arg1 = reinterpret_cast< wxRegion * >(argp1);
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 (arg1)->Clear();
10669 wxPyEndAllowThreads(__tstate);
10670 if (PyErr_Occurred()) SWIG_fail;
10671 }
10672 resultobj = SWIG_Py_Void();
10673 return resultobj;
10674 fail:
10675 return NULL;
10676 }
10677
10678
10679 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10680 PyObject *resultobj = 0;
10681 wxRegion *arg1 = (wxRegion *) 0 ;
10682 int arg2 ;
10683 int arg3 ;
10684 bool result;
10685 void *argp1 = 0 ;
10686 int res1 = 0 ;
10687 int val2 ;
10688 int ecode2 = 0 ;
10689 int val3 ;
10690 int ecode3 = 0 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 PyObject * obj2 = 0 ;
10694 char * kwnames[] = {
10695 (char *) "self",(char *) "x",(char *) "y", NULL
10696 };
10697
10698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10700 if (!SWIG_IsOK(res1)) {
10701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10702 }
10703 arg1 = reinterpret_cast< wxRegion * >(argp1);
10704 ecode2 = SWIG_AsVal_int(obj1, &val2);
10705 if (!SWIG_IsOK(ecode2)) {
10706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10707 }
10708 arg2 = static_cast< int >(val2);
10709 ecode3 = SWIG_AsVal_int(obj2, &val3);
10710 if (!SWIG_IsOK(ecode3)) {
10711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10712 }
10713 arg3 = static_cast< int >(val3);
10714 {
10715 PyThreadState* __tstate = wxPyBeginAllowThreads();
10716 result = (bool)(arg1)->Offset(arg2,arg3);
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 {
10721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10722 }
10723 return resultobj;
10724 fail:
10725 return NULL;
10726 }
10727
10728
10729 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10730 PyObject *resultobj = 0;
10731 wxRegion *arg1 = (wxRegion *) 0 ;
10732 int arg2 ;
10733 int arg3 ;
10734 wxRegionContain result;
10735 void *argp1 = 0 ;
10736 int res1 = 0 ;
10737 int val2 ;
10738 int ecode2 = 0 ;
10739 int val3 ;
10740 int ecode3 = 0 ;
10741 PyObject * obj0 = 0 ;
10742 PyObject * obj1 = 0 ;
10743 PyObject * obj2 = 0 ;
10744 char * kwnames[] = {
10745 (char *) "self",(char *) "x",(char *) "y", NULL
10746 };
10747
10748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10750 if (!SWIG_IsOK(res1)) {
10751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10752 }
10753 arg1 = reinterpret_cast< wxRegion * >(argp1);
10754 ecode2 = SWIG_AsVal_int(obj1, &val2);
10755 if (!SWIG_IsOK(ecode2)) {
10756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10757 }
10758 arg2 = static_cast< int >(val2);
10759 ecode3 = SWIG_AsVal_int(obj2, &val3);
10760 if (!SWIG_IsOK(ecode3)) {
10761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10762 }
10763 arg3 = static_cast< int >(val3);
10764 {
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10767 wxPyEndAllowThreads(__tstate);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 }
10770 resultobj = SWIG_From_int(static_cast< int >(result));
10771 return resultobj;
10772 fail:
10773 return NULL;
10774 }
10775
10776
10777 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10778 PyObject *resultobj = 0;
10779 wxRegion *arg1 = (wxRegion *) 0 ;
10780 wxPoint *arg2 = 0 ;
10781 wxRegionContain result;
10782 void *argp1 = 0 ;
10783 int res1 = 0 ;
10784 wxPoint temp2 ;
10785 PyObject * obj0 = 0 ;
10786 PyObject * obj1 = 0 ;
10787 char * kwnames[] = {
10788 (char *) "self",(char *) "pt", NULL
10789 };
10790
10791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10793 if (!SWIG_IsOK(res1)) {
10794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10795 }
10796 arg1 = reinterpret_cast< wxRegion * >(argp1);
10797 {
10798 arg2 = &temp2;
10799 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10800 }
10801 {
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 resultobj = SWIG_From_int(static_cast< int >(result));
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj = 0;
10816 wxRegion *arg1 = (wxRegion *) 0 ;
10817 wxRect *arg2 = 0 ;
10818 wxRegionContain result;
10819 void *argp1 = 0 ;
10820 int res1 = 0 ;
10821 wxRect temp2 ;
10822 PyObject * obj0 = 0 ;
10823 PyObject * obj1 = 0 ;
10824 char * kwnames[] = {
10825 (char *) "self",(char *) "rect", NULL
10826 };
10827
10828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10830 if (!SWIG_IsOK(res1)) {
10831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10832 }
10833 arg1 = reinterpret_cast< wxRegion * >(argp1);
10834 {
10835 arg2 = &temp2;
10836 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10837 }
10838 {
10839 PyThreadState* __tstate = wxPyBeginAllowThreads();
10840 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10841 wxPyEndAllowThreads(__tstate);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 }
10844 resultobj = SWIG_From_int(static_cast< int >(result));
10845 return resultobj;
10846 fail:
10847 return NULL;
10848 }
10849
10850
10851 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10852 PyObject *resultobj = 0;
10853 wxRegion *arg1 = (wxRegion *) 0 ;
10854 int arg2 ;
10855 int arg3 ;
10856 int arg4 ;
10857 int arg5 ;
10858 wxRegionContain result;
10859 void *argp1 = 0 ;
10860 int res1 = 0 ;
10861 int val2 ;
10862 int ecode2 = 0 ;
10863 int val3 ;
10864 int ecode3 = 0 ;
10865 int val4 ;
10866 int ecode4 = 0 ;
10867 int val5 ;
10868 int ecode5 = 0 ;
10869 PyObject * obj0 = 0 ;
10870 PyObject * obj1 = 0 ;
10871 PyObject * obj2 = 0 ;
10872 PyObject * obj3 = 0 ;
10873 PyObject * obj4 = 0 ;
10874 char * kwnames[] = {
10875 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10876 };
10877
10878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10880 if (!SWIG_IsOK(res1)) {
10881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10882 }
10883 arg1 = reinterpret_cast< wxRegion * >(argp1);
10884 ecode2 = SWIG_AsVal_int(obj1, &val2);
10885 if (!SWIG_IsOK(ecode2)) {
10886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10887 }
10888 arg2 = static_cast< int >(val2);
10889 ecode3 = SWIG_AsVal_int(obj2, &val3);
10890 if (!SWIG_IsOK(ecode3)) {
10891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10892 }
10893 arg3 = static_cast< int >(val3);
10894 ecode4 = SWIG_AsVal_int(obj3, &val4);
10895 if (!SWIG_IsOK(ecode4)) {
10896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10897 }
10898 arg4 = static_cast< int >(val4);
10899 ecode5 = SWIG_AsVal_int(obj4, &val5);
10900 if (!SWIG_IsOK(ecode5)) {
10901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10902 }
10903 arg5 = static_cast< int >(val5);
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10907 wxPyEndAllowThreads(__tstate);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 }
10910 resultobj = SWIG_From_int(static_cast< int >(result));
10911 return resultobj;
10912 fail:
10913 return NULL;
10914 }
10915
10916
10917 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10918 PyObject *resultobj = 0;
10919 wxRegion *arg1 = (wxRegion *) 0 ;
10920 wxRect result;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 PyObject *swig_obj[1] ;
10924
10925 if (!args) SWIG_fail;
10926 swig_obj[0] = args;
10927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10928 if (!SWIG_IsOK(res1)) {
10929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10930 }
10931 arg1 = reinterpret_cast< wxRegion * >(argp1);
10932 {
10933 PyThreadState* __tstate = wxPyBeginAllowThreads();
10934 result = (arg1)->GetBox();
10935 wxPyEndAllowThreads(__tstate);
10936 if (PyErr_Occurred()) SWIG_fail;
10937 }
10938 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10939 return resultobj;
10940 fail:
10941 return NULL;
10942 }
10943
10944
10945 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10946 PyObject *resultobj = 0;
10947 wxRegion *arg1 = (wxRegion *) 0 ;
10948 int arg2 ;
10949 int arg3 ;
10950 int arg4 ;
10951 int arg5 ;
10952 bool result;
10953 void *argp1 = 0 ;
10954 int res1 = 0 ;
10955 int val2 ;
10956 int ecode2 = 0 ;
10957 int val3 ;
10958 int ecode3 = 0 ;
10959 int val4 ;
10960 int ecode4 = 0 ;
10961 int val5 ;
10962 int ecode5 = 0 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 PyObject * obj2 = 0 ;
10966 PyObject * obj3 = 0 ;
10967 PyObject * obj4 = 0 ;
10968 char * kwnames[] = {
10969 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10970 };
10971
10972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10974 if (!SWIG_IsOK(res1)) {
10975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10976 }
10977 arg1 = reinterpret_cast< wxRegion * >(argp1);
10978 ecode2 = SWIG_AsVal_int(obj1, &val2);
10979 if (!SWIG_IsOK(ecode2)) {
10980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10981 }
10982 arg2 = static_cast< int >(val2);
10983 ecode3 = SWIG_AsVal_int(obj2, &val3);
10984 if (!SWIG_IsOK(ecode3)) {
10985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10986 }
10987 arg3 = static_cast< int >(val3);
10988 ecode4 = SWIG_AsVal_int(obj3, &val4);
10989 if (!SWIG_IsOK(ecode4)) {
10990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10991 }
10992 arg4 = static_cast< int >(val4);
10993 ecode5 = SWIG_AsVal_int(obj4, &val5);
10994 if (!SWIG_IsOK(ecode5)) {
10995 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10996 }
10997 arg5 = static_cast< int >(val5);
10998 {
10999 PyThreadState* __tstate = wxPyBeginAllowThreads();
11000 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11001 wxPyEndAllowThreads(__tstate);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 }
11004 {
11005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11006 }
11007 return resultobj;
11008 fail:
11009 return NULL;
11010 }
11011
11012
11013 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj = 0;
11015 wxRegion *arg1 = (wxRegion *) 0 ;
11016 wxRect *arg2 = 0 ;
11017 bool result;
11018 void *argp1 = 0 ;
11019 int res1 = 0 ;
11020 wxRect temp2 ;
11021 PyObject * obj0 = 0 ;
11022 PyObject * obj1 = 0 ;
11023 char * kwnames[] = {
11024 (char *) "self",(char *) "rect", NULL
11025 };
11026
11027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11029 if (!SWIG_IsOK(res1)) {
11030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11031 }
11032 arg1 = reinterpret_cast< wxRegion * >(argp1);
11033 {
11034 arg2 = &temp2;
11035 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11036 }
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 {
11044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11045 }
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11053 PyObject *resultobj = 0;
11054 wxRegion *arg1 = (wxRegion *) 0 ;
11055 wxRegion *arg2 = 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 void *argp2 = 0 ;
11060 int res2 = 0 ;
11061 PyObject * obj0 = 0 ;
11062 PyObject * obj1 = 0 ;
11063 char * kwnames[] = {
11064 (char *) "self",(char *) "region", NULL
11065 };
11066
11067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11069 if (!SWIG_IsOK(res1)) {
11070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11071 }
11072 arg1 = reinterpret_cast< wxRegion * >(argp1);
11073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11074 if (!SWIG_IsOK(res2)) {
11075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11076 }
11077 if (!argp2) {
11078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11079 }
11080 arg2 = reinterpret_cast< wxRegion * >(argp2);
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11084 wxPyEndAllowThreads(__tstate);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 }
11087 {
11088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11089 }
11090 return resultobj;
11091 fail:
11092 return NULL;
11093 }
11094
11095
11096 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11097 PyObject *resultobj = 0;
11098 wxRegion *arg1 = (wxRegion *) 0 ;
11099 bool result;
11100 void *argp1 = 0 ;
11101 int res1 = 0 ;
11102 PyObject *swig_obj[1] ;
11103
11104 if (!args) SWIG_fail;
11105 swig_obj[0] = args;
11106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11109 }
11110 arg1 = reinterpret_cast< wxRegion * >(argp1);
11111 {
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 result = (bool)(arg1)->IsEmpty();
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 {
11118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11119 }
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11127 PyObject *resultobj = 0;
11128 wxRegion *arg1 = (wxRegion *) 0 ;
11129 int arg2 ;
11130 int arg3 ;
11131 int arg4 ;
11132 int arg5 ;
11133 bool result;
11134 void *argp1 = 0 ;
11135 int res1 = 0 ;
11136 int val2 ;
11137 int ecode2 = 0 ;
11138 int val3 ;
11139 int ecode3 = 0 ;
11140 int val4 ;
11141 int ecode4 = 0 ;
11142 int val5 ;
11143 int ecode5 = 0 ;
11144 PyObject * obj0 = 0 ;
11145 PyObject * obj1 = 0 ;
11146 PyObject * obj2 = 0 ;
11147 PyObject * obj3 = 0 ;
11148 PyObject * obj4 = 0 ;
11149 char * kwnames[] = {
11150 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11151 };
11152
11153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11155 if (!SWIG_IsOK(res1)) {
11156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11157 }
11158 arg1 = reinterpret_cast< wxRegion * >(argp1);
11159 ecode2 = SWIG_AsVal_int(obj1, &val2);
11160 if (!SWIG_IsOK(ecode2)) {
11161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11162 }
11163 arg2 = static_cast< int >(val2);
11164 ecode3 = SWIG_AsVal_int(obj2, &val3);
11165 if (!SWIG_IsOK(ecode3)) {
11166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11167 }
11168 arg3 = static_cast< int >(val3);
11169 ecode4 = SWIG_AsVal_int(obj3, &val4);
11170 if (!SWIG_IsOK(ecode4)) {
11171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11172 }
11173 arg4 = static_cast< int >(val4);
11174 ecode5 = SWIG_AsVal_int(obj4, &val5);
11175 if (!SWIG_IsOK(ecode5)) {
11176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11177 }
11178 arg5 = static_cast< int >(val5);
11179 {
11180 PyThreadState* __tstate = wxPyBeginAllowThreads();
11181 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11182 wxPyEndAllowThreads(__tstate);
11183 if (PyErr_Occurred()) SWIG_fail;
11184 }
11185 {
11186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11187 }
11188 return resultobj;
11189 fail:
11190 return NULL;
11191 }
11192
11193
11194 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11195 PyObject *resultobj = 0;
11196 wxRegion *arg1 = (wxRegion *) 0 ;
11197 wxRect *arg2 = 0 ;
11198 bool result;
11199 void *argp1 = 0 ;
11200 int res1 = 0 ;
11201 wxRect temp2 ;
11202 PyObject * obj0 = 0 ;
11203 PyObject * obj1 = 0 ;
11204 char * kwnames[] = {
11205 (char *) "self",(char *) "rect", NULL
11206 };
11207
11208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11210 if (!SWIG_IsOK(res1)) {
11211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11212 }
11213 arg1 = reinterpret_cast< wxRegion * >(argp1);
11214 {
11215 arg2 = &temp2;
11216 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11217 }
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11221 wxPyEndAllowThreads(__tstate);
11222 if (PyErr_Occurred()) SWIG_fail;
11223 }
11224 {
11225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11226 }
11227 return resultobj;
11228 fail:
11229 return NULL;
11230 }
11231
11232
11233 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11234 PyObject *resultobj = 0;
11235 wxRegion *arg1 = (wxRegion *) 0 ;
11236 wxRegion *arg2 = 0 ;
11237 bool result;
11238 void *argp1 = 0 ;
11239 int res1 = 0 ;
11240 void *argp2 = 0 ;
11241 int res2 = 0 ;
11242 PyObject * obj0 = 0 ;
11243 PyObject * obj1 = 0 ;
11244 char * kwnames[] = {
11245 (char *) "self",(char *) "region", NULL
11246 };
11247
11248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11250 if (!SWIG_IsOK(res1)) {
11251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11252 }
11253 arg1 = reinterpret_cast< wxRegion * >(argp1);
11254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11255 if (!SWIG_IsOK(res2)) {
11256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11257 }
11258 if (!argp2) {
11259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11260 }
11261 arg2 = reinterpret_cast< wxRegion * >(argp2);
11262 {
11263 PyThreadState* __tstate = wxPyBeginAllowThreads();
11264 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 {
11269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11270 }
11271 return resultobj;
11272 fail:
11273 return NULL;
11274 }
11275
11276
11277 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11278 PyObject *resultobj = 0;
11279 wxRegion *arg1 = (wxRegion *) 0 ;
11280 int arg2 ;
11281 int arg3 ;
11282 int arg4 ;
11283 int arg5 ;
11284 bool result;
11285 void *argp1 = 0 ;
11286 int res1 = 0 ;
11287 int val2 ;
11288 int ecode2 = 0 ;
11289 int val3 ;
11290 int ecode3 = 0 ;
11291 int val4 ;
11292 int ecode4 = 0 ;
11293 int val5 ;
11294 int ecode5 = 0 ;
11295 PyObject * obj0 = 0 ;
11296 PyObject * obj1 = 0 ;
11297 PyObject * obj2 = 0 ;
11298 PyObject * obj3 = 0 ;
11299 PyObject * obj4 = 0 ;
11300 char * kwnames[] = {
11301 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11302 };
11303
11304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11306 if (!SWIG_IsOK(res1)) {
11307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11308 }
11309 arg1 = reinterpret_cast< wxRegion * >(argp1);
11310 ecode2 = SWIG_AsVal_int(obj1, &val2);
11311 if (!SWIG_IsOK(ecode2)) {
11312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11313 }
11314 arg2 = static_cast< int >(val2);
11315 ecode3 = SWIG_AsVal_int(obj2, &val3);
11316 if (!SWIG_IsOK(ecode3)) {
11317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11318 }
11319 arg3 = static_cast< int >(val3);
11320 ecode4 = SWIG_AsVal_int(obj3, &val4);
11321 if (!SWIG_IsOK(ecode4)) {
11322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11323 }
11324 arg4 = static_cast< int >(val4);
11325 ecode5 = SWIG_AsVal_int(obj4, &val5);
11326 if (!SWIG_IsOK(ecode5)) {
11327 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11328 }
11329 arg5 = static_cast< int >(val5);
11330 {
11331 PyThreadState* __tstate = wxPyBeginAllowThreads();
11332 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11333 wxPyEndAllowThreads(__tstate);
11334 if (PyErr_Occurred()) SWIG_fail;
11335 }
11336 {
11337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11338 }
11339 return resultobj;
11340 fail:
11341 return NULL;
11342 }
11343
11344
11345 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11346 PyObject *resultobj = 0;
11347 wxRegion *arg1 = (wxRegion *) 0 ;
11348 wxRect *arg2 = 0 ;
11349 bool result;
11350 void *argp1 = 0 ;
11351 int res1 = 0 ;
11352 wxRect temp2 ;
11353 PyObject * obj0 = 0 ;
11354 PyObject * obj1 = 0 ;
11355 char * kwnames[] = {
11356 (char *) "self",(char *) "rect", NULL
11357 };
11358
11359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11361 if (!SWIG_IsOK(res1)) {
11362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11363 }
11364 arg1 = reinterpret_cast< wxRegion * >(argp1);
11365 {
11366 arg2 = &temp2;
11367 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11368 }
11369 {
11370 PyThreadState* __tstate = wxPyBeginAllowThreads();
11371 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11372 wxPyEndAllowThreads(__tstate);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
11375 {
11376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11377 }
11378 return resultobj;
11379 fail:
11380 return NULL;
11381 }
11382
11383
11384 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11385 PyObject *resultobj = 0;
11386 wxRegion *arg1 = (wxRegion *) 0 ;
11387 wxRegion *arg2 = 0 ;
11388 bool result;
11389 void *argp1 = 0 ;
11390 int res1 = 0 ;
11391 void *argp2 = 0 ;
11392 int res2 = 0 ;
11393 PyObject * obj0 = 0 ;
11394 PyObject * obj1 = 0 ;
11395 char * kwnames[] = {
11396 (char *) "self",(char *) "region", NULL
11397 };
11398
11399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11401 if (!SWIG_IsOK(res1)) {
11402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11403 }
11404 arg1 = reinterpret_cast< wxRegion * >(argp1);
11405 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11406 if (!SWIG_IsOK(res2)) {
11407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11408 }
11409 if (!argp2) {
11410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11411 }
11412 arg2 = reinterpret_cast< wxRegion * >(argp2);
11413 {
11414 PyThreadState* __tstate = wxPyBeginAllowThreads();
11415 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11416 wxPyEndAllowThreads(__tstate);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 {
11420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11421 }
11422 return resultobj;
11423 fail:
11424 return NULL;
11425 }
11426
11427
11428 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11429 PyObject *resultobj = 0;
11430 wxRegion *arg1 = (wxRegion *) 0 ;
11431 int arg2 ;
11432 int arg3 ;
11433 int arg4 ;
11434 int arg5 ;
11435 bool result;
11436 void *argp1 = 0 ;
11437 int res1 = 0 ;
11438 int val2 ;
11439 int ecode2 = 0 ;
11440 int val3 ;
11441 int ecode3 = 0 ;
11442 int val4 ;
11443 int ecode4 = 0 ;
11444 int val5 ;
11445 int ecode5 = 0 ;
11446 PyObject * obj0 = 0 ;
11447 PyObject * obj1 = 0 ;
11448 PyObject * obj2 = 0 ;
11449 PyObject * obj3 = 0 ;
11450 PyObject * obj4 = 0 ;
11451 char * kwnames[] = {
11452 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11453 };
11454
11455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11457 if (!SWIG_IsOK(res1)) {
11458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11459 }
11460 arg1 = reinterpret_cast< wxRegion * >(argp1);
11461 ecode2 = SWIG_AsVal_int(obj1, &val2);
11462 if (!SWIG_IsOK(ecode2)) {
11463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11464 }
11465 arg2 = static_cast< int >(val2);
11466 ecode3 = SWIG_AsVal_int(obj2, &val3);
11467 if (!SWIG_IsOK(ecode3)) {
11468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11469 }
11470 arg3 = static_cast< int >(val3);
11471 ecode4 = SWIG_AsVal_int(obj3, &val4);
11472 if (!SWIG_IsOK(ecode4)) {
11473 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11474 }
11475 arg4 = static_cast< int >(val4);
11476 ecode5 = SWIG_AsVal_int(obj4, &val5);
11477 if (!SWIG_IsOK(ecode5)) {
11478 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11479 }
11480 arg5 = static_cast< int >(val5);
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 {
11488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11489 }
11490 return resultobj;
11491 fail:
11492 return NULL;
11493 }
11494
11495
11496 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11497 PyObject *resultobj = 0;
11498 wxRegion *arg1 = (wxRegion *) 0 ;
11499 wxRect *arg2 = 0 ;
11500 bool result;
11501 void *argp1 = 0 ;
11502 int res1 = 0 ;
11503 wxRect temp2 ;
11504 PyObject * obj0 = 0 ;
11505 PyObject * obj1 = 0 ;
11506 char * kwnames[] = {
11507 (char *) "self",(char *) "rect", NULL
11508 };
11509
11510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11512 if (!SWIG_IsOK(res1)) {
11513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11514 }
11515 arg1 = reinterpret_cast< wxRegion * >(argp1);
11516 {
11517 arg2 = &temp2;
11518 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11519 }
11520 {
11521 PyThreadState* __tstate = wxPyBeginAllowThreads();
11522 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11523 wxPyEndAllowThreads(__tstate);
11524 if (PyErr_Occurred()) SWIG_fail;
11525 }
11526 {
11527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11528 }
11529 return resultobj;
11530 fail:
11531 return NULL;
11532 }
11533
11534
11535 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11536 PyObject *resultobj = 0;
11537 wxRegion *arg1 = (wxRegion *) 0 ;
11538 wxRegion *arg2 = 0 ;
11539 bool result;
11540 void *argp1 = 0 ;
11541 int res1 = 0 ;
11542 void *argp2 = 0 ;
11543 int res2 = 0 ;
11544 PyObject * obj0 = 0 ;
11545 PyObject * obj1 = 0 ;
11546 char * kwnames[] = {
11547 (char *) "self",(char *) "region", NULL
11548 };
11549
11550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11552 if (!SWIG_IsOK(res1)) {
11553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11554 }
11555 arg1 = reinterpret_cast< wxRegion * >(argp1);
11556 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11557 if (!SWIG_IsOK(res2)) {
11558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11559 }
11560 if (!argp2) {
11561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11562 }
11563 arg2 = reinterpret_cast< wxRegion * >(argp2);
11564 {
11565 PyThreadState* __tstate = wxPyBeginAllowThreads();
11566 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11567 wxPyEndAllowThreads(__tstate);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 }
11570 {
11571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11572 }
11573 return resultobj;
11574 fail:
11575 return NULL;
11576 }
11577
11578
11579 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11580 PyObject *resultobj = 0;
11581 wxRegion *arg1 = (wxRegion *) 0 ;
11582 SwigValueWrapper<wxBitmap > result;
11583 void *argp1 = 0 ;
11584 int res1 = 0 ;
11585 PyObject *swig_obj[1] ;
11586
11587 if (!args) SWIG_fail;
11588 swig_obj[0] = args;
11589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11590 if (!SWIG_IsOK(res1)) {
11591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11592 }
11593 arg1 = reinterpret_cast< wxRegion * >(argp1);
11594 {
11595 PyThreadState* __tstate = wxPyBeginAllowThreads();
11596 result = (arg1)->ConvertToBitmap();
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj = 0;
11609 wxRegion *arg1 = (wxRegion *) 0 ;
11610 wxBitmap *arg2 = 0 ;
11611 bool result;
11612 void *argp1 = 0 ;
11613 int res1 = 0 ;
11614 void *argp2 = 0 ;
11615 int res2 = 0 ;
11616 PyObject * obj0 = 0 ;
11617 PyObject * obj1 = 0 ;
11618 char * kwnames[] = {
11619 (char *) "self",(char *) "bmp", NULL
11620 };
11621
11622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11624 if (!SWIG_IsOK(res1)) {
11625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11626 }
11627 arg1 = reinterpret_cast< wxRegion * >(argp1);
11628 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11629 if (!SWIG_IsOK(res2)) {
11630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11631 }
11632 if (!argp2) {
11633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11634 }
11635 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11636 {
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 {
11643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11644 }
11645 return resultobj;
11646 fail:
11647 return NULL;
11648 }
11649
11650
11651 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11652 PyObject *resultobj = 0;
11653 wxRegion *arg1 = (wxRegion *) 0 ;
11654 wxBitmap *arg2 = 0 ;
11655 wxColour *arg3 = 0 ;
11656 int arg4 = (int) 0 ;
11657 bool result;
11658 void *argp1 = 0 ;
11659 int res1 = 0 ;
11660 void *argp2 = 0 ;
11661 int res2 = 0 ;
11662 wxColour temp3 ;
11663 int val4 ;
11664 int ecode4 = 0 ;
11665 PyObject * obj0 = 0 ;
11666 PyObject * obj1 = 0 ;
11667 PyObject * obj2 = 0 ;
11668 PyObject * obj3 = 0 ;
11669 char * kwnames[] = {
11670 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11671 };
11672
11673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11675 if (!SWIG_IsOK(res1)) {
11676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11677 }
11678 arg1 = reinterpret_cast< wxRegion * >(argp1);
11679 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11680 if (!SWIG_IsOK(res2)) {
11681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11682 }
11683 if (!argp2) {
11684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11685 }
11686 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11687 {
11688 arg3 = &temp3;
11689 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11690 }
11691 if (obj3) {
11692 ecode4 = SWIG_AsVal_int(obj3, &val4);
11693 if (!SWIG_IsOK(ecode4)) {
11694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11695 }
11696 arg4 = static_cast< int >(val4);
11697 }
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 {
11705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11706 }
11707 return resultobj;
11708 fail:
11709 return NULL;
11710 }
11711
11712
11713 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11714 PyObject *obj;
11715 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11716 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11717 return SWIG_Py_Void();
11718 }
11719
11720 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11721 return SWIG_Python_InitShadowInstance(args);
11722 }
11723
11724 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11725 PyObject *resultobj = 0;
11726 wxRegion *arg1 = 0 ;
11727 wxRegionIterator *result = 0 ;
11728 void *argp1 = 0 ;
11729 int res1 = 0 ;
11730 PyObject * obj0 = 0 ;
11731 char * kwnames[] = {
11732 (char *) "region", NULL
11733 };
11734
11735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11736 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11737 if (!SWIG_IsOK(res1)) {
11738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11739 }
11740 if (!argp1) {
11741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11742 }
11743 arg1 = reinterpret_cast< wxRegion * >(argp1);
11744 {
11745 if (!wxPyCheckForApp()) SWIG_fail;
11746 PyThreadState* __tstate = wxPyBeginAllowThreads();
11747 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11748 wxPyEndAllowThreads(__tstate);
11749 if (PyErr_Occurred()) SWIG_fail;
11750 }
11751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11752 return resultobj;
11753 fail:
11754 return NULL;
11755 }
11756
11757
11758 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11759 PyObject *resultobj = 0;
11760 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11761 void *argp1 = 0 ;
11762 int res1 = 0 ;
11763 PyObject *swig_obj[1] ;
11764
11765 if (!args) SWIG_fail;
11766 swig_obj[0] = args;
11767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11768 if (!SWIG_IsOK(res1)) {
11769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11770 }
11771 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11772 {
11773 PyThreadState* __tstate = wxPyBeginAllowThreads();
11774 delete arg1;
11775
11776 wxPyEndAllowThreads(__tstate);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 }
11779 resultobj = SWIG_Py_Void();
11780 return resultobj;
11781 fail:
11782 return NULL;
11783 }
11784
11785
11786 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11787 PyObject *resultobj = 0;
11788 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11789 int result;
11790 void *argp1 = 0 ;
11791 int res1 = 0 ;
11792 PyObject *swig_obj[1] ;
11793
11794 if (!args) SWIG_fail;
11795 swig_obj[0] = args;
11796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11797 if (!SWIG_IsOK(res1)) {
11798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11799 }
11800 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11801 {
11802 PyThreadState* __tstate = wxPyBeginAllowThreads();
11803 result = (int)(arg1)->GetX();
11804 wxPyEndAllowThreads(__tstate);
11805 if (PyErr_Occurred()) SWIG_fail;
11806 }
11807 resultobj = SWIG_From_int(static_cast< int >(result));
11808 return resultobj;
11809 fail:
11810 return NULL;
11811 }
11812
11813
11814 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11815 PyObject *resultobj = 0;
11816 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11817 int result;
11818 void *argp1 = 0 ;
11819 int res1 = 0 ;
11820 PyObject *swig_obj[1] ;
11821
11822 if (!args) SWIG_fail;
11823 swig_obj[0] = args;
11824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11825 if (!SWIG_IsOK(res1)) {
11826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11827 }
11828 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11829 {
11830 PyThreadState* __tstate = wxPyBeginAllowThreads();
11831 result = (int)(arg1)->GetY();
11832 wxPyEndAllowThreads(__tstate);
11833 if (PyErr_Occurred()) SWIG_fail;
11834 }
11835 resultobj = SWIG_From_int(static_cast< int >(result));
11836 return resultobj;
11837 fail:
11838 return NULL;
11839 }
11840
11841
11842 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11843 PyObject *resultobj = 0;
11844 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11845 int result;
11846 void *argp1 = 0 ;
11847 int res1 = 0 ;
11848 PyObject *swig_obj[1] ;
11849
11850 if (!args) SWIG_fail;
11851 swig_obj[0] = args;
11852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11853 if (!SWIG_IsOK(res1)) {
11854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11855 }
11856 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 result = (int)(arg1)->GetW();
11860 wxPyEndAllowThreads(__tstate);
11861 if (PyErr_Occurred()) SWIG_fail;
11862 }
11863 resultobj = SWIG_From_int(static_cast< int >(result));
11864 return resultobj;
11865 fail:
11866 return NULL;
11867 }
11868
11869
11870 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11871 PyObject *resultobj = 0;
11872 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11873 int result;
11874 void *argp1 = 0 ;
11875 int res1 = 0 ;
11876 PyObject *swig_obj[1] ;
11877
11878 if (!args) SWIG_fail;
11879 swig_obj[0] = args;
11880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11881 if (!SWIG_IsOK(res1)) {
11882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11883 }
11884 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11885 {
11886 PyThreadState* __tstate = wxPyBeginAllowThreads();
11887 result = (int)(arg1)->GetWidth();
11888 wxPyEndAllowThreads(__tstate);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 resultobj = SWIG_From_int(static_cast< int >(result));
11892 return resultobj;
11893 fail:
11894 return NULL;
11895 }
11896
11897
11898 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11899 PyObject *resultobj = 0;
11900 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11901 int result;
11902 void *argp1 = 0 ;
11903 int res1 = 0 ;
11904 PyObject *swig_obj[1] ;
11905
11906 if (!args) SWIG_fail;
11907 swig_obj[0] = args;
11908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11909 if (!SWIG_IsOK(res1)) {
11910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11911 }
11912 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11913 {
11914 PyThreadState* __tstate = wxPyBeginAllowThreads();
11915 result = (int)(arg1)->GetH();
11916 wxPyEndAllowThreads(__tstate);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 }
11919 resultobj = SWIG_From_int(static_cast< int >(result));
11920 return resultobj;
11921 fail:
11922 return NULL;
11923 }
11924
11925
11926 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11927 PyObject *resultobj = 0;
11928 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11929 int result;
11930 void *argp1 = 0 ;
11931 int res1 = 0 ;
11932 PyObject *swig_obj[1] ;
11933
11934 if (!args) SWIG_fail;
11935 swig_obj[0] = args;
11936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11937 if (!SWIG_IsOK(res1)) {
11938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11939 }
11940 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11941 {
11942 PyThreadState* __tstate = wxPyBeginAllowThreads();
11943 result = (int)(arg1)->GetHeight();
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 resultobj = SWIG_From_int(static_cast< int >(result));
11948 return resultobj;
11949 fail:
11950 return NULL;
11951 }
11952
11953
11954 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11955 PyObject *resultobj = 0;
11956 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11957 wxRect result;
11958 void *argp1 = 0 ;
11959 int res1 = 0 ;
11960 PyObject *swig_obj[1] ;
11961
11962 if (!args) SWIG_fail;
11963 swig_obj[0] = args;
11964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11965 if (!SWIG_IsOK(res1)) {
11966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11967 }
11968 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11969 {
11970 PyThreadState* __tstate = wxPyBeginAllowThreads();
11971 result = (arg1)->GetRect();
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11976 return resultobj;
11977 fail:
11978 return NULL;
11979 }
11980
11981
11982 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11983 PyObject *resultobj = 0;
11984 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11985 bool result;
11986 void *argp1 = 0 ;
11987 int res1 = 0 ;
11988 PyObject *swig_obj[1] ;
11989
11990 if (!args) SWIG_fail;
11991 swig_obj[0] = args;
11992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11993 if (!SWIG_IsOK(res1)) {
11994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11995 }
11996 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11997 {
11998 PyThreadState* __tstate = wxPyBeginAllowThreads();
11999 result = (bool)(arg1)->HaveRects();
12000 wxPyEndAllowThreads(__tstate);
12001 if (PyErr_Occurred()) SWIG_fail;
12002 }
12003 {
12004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12005 }
12006 return resultobj;
12007 fail:
12008 return NULL;
12009 }
12010
12011
12012 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12013 PyObject *resultobj = 0;
12014 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12015 void *argp1 = 0 ;
12016 int res1 = 0 ;
12017 PyObject *swig_obj[1] ;
12018
12019 if (!args) SWIG_fail;
12020 swig_obj[0] = args;
12021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12022 if (!SWIG_IsOK(res1)) {
12023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12024 }
12025 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12026 {
12027 PyThreadState* __tstate = wxPyBeginAllowThreads();
12028 (arg1)->Reset();
12029 wxPyEndAllowThreads(__tstate);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 }
12032 resultobj = SWIG_Py_Void();
12033 return resultobj;
12034 fail:
12035 return NULL;
12036 }
12037
12038
12039 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12040 PyObject *resultobj = 0;
12041 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12042 void *argp1 = 0 ;
12043 int res1 = 0 ;
12044 PyObject *swig_obj[1] ;
12045
12046 if (!args) SWIG_fail;
12047 swig_obj[0] = args;
12048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12049 if (!SWIG_IsOK(res1)) {
12050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12051 }
12052 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12053 {
12054 PyThreadState* __tstate = wxPyBeginAllowThreads();
12055 wxRegionIterator_Next(arg1);
12056 wxPyEndAllowThreads(__tstate);
12057 if (PyErr_Occurred()) SWIG_fail;
12058 }
12059 resultobj = SWIG_Py_Void();
12060 return resultobj;
12061 fail:
12062 return NULL;
12063 }
12064
12065
12066 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12067 PyObject *resultobj = 0;
12068 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12069 bool result;
12070 void *argp1 = 0 ;
12071 int res1 = 0 ;
12072 PyObject *swig_obj[1] ;
12073
12074 if (!args) SWIG_fail;
12075 swig_obj[0] = args;
12076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12077 if (!SWIG_IsOK(res1)) {
12078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12079 }
12080 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12081 {
12082 PyThreadState* __tstate = wxPyBeginAllowThreads();
12083 result = (bool)wxRegionIterator___nonzero__(arg1);
12084 wxPyEndAllowThreads(__tstate);
12085 if (PyErr_Occurred()) SWIG_fail;
12086 }
12087 {
12088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12089 }
12090 return resultobj;
12091 fail:
12092 return NULL;
12093 }
12094
12095
12096 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12097 PyObject *obj;
12098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12099 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12100 return SWIG_Py_Void();
12101 }
12102
12103 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12104 return SWIG_Python_InitShadowInstance(args);
12105 }
12106
12107 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12108 PyObject *resultobj = 0;
12109 wxNativeFontInfo *result = 0 ;
12110
12111 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12112 {
12113 PyThreadState* __tstate = wxPyBeginAllowThreads();
12114 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12115 wxPyEndAllowThreads(__tstate);
12116 if (PyErr_Occurred()) SWIG_fail;
12117 }
12118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12119 return resultobj;
12120 fail:
12121 return NULL;
12122 }
12123
12124
12125 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12126 PyObject *resultobj = 0;
12127 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12128 void *argp1 = 0 ;
12129 int res1 = 0 ;
12130 PyObject *swig_obj[1] ;
12131
12132 if (!args) SWIG_fail;
12133 swig_obj[0] = args;
12134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12135 if (!SWIG_IsOK(res1)) {
12136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12137 }
12138 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 delete arg1;
12142
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 resultobj = SWIG_Py_Void();
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12154 PyObject *resultobj = 0;
12155 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12156 void *argp1 = 0 ;
12157 int res1 = 0 ;
12158 PyObject *swig_obj[1] ;
12159
12160 if (!args) SWIG_fail;
12161 swig_obj[0] = args;
12162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12163 if (!SWIG_IsOK(res1)) {
12164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12165 }
12166 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12167 {
12168 PyThreadState* __tstate = wxPyBeginAllowThreads();
12169 (arg1)->Init();
12170 wxPyEndAllowThreads(__tstate);
12171 if (PyErr_Occurred()) SWIG_fail;
12172 }
12173 resultobj = SWIG_Py_Void();
12174 return resultobj;
12175 fail:
12176 return NULL;
12177 }
12178
12179
12180 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12181 PyObject *resultobj = 0;
12182 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12183 wxFont *arg2 = 0 ;
12184 void *argp1 = 0 ;
12185 int res1 = 0 ;
12186 void *argp2 = 0 ;
12187 int res2 = 0 ;
12188 PyObject * obj0 = 0 ;
12189 PyObject * obj1 = 0 ;
12190 char * kwnames[] = {
12191 (char *) "self",(char *) "font", NULL
12192 };
12193
12194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12196 if (!SWIG_IsOK(res1)) {
12197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12198 }
12199 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12201 if (!SWIG_IsOK(res2)) {
12202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12203 }
12204 if (!argp2) {
12205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12206 }
12207 arg2 = reinterpret_cast< wxFont * >(argp2);
12208 {
12209 PyThreadState* __tstate = wxPyBeginAllowThreads();
12210 (arg1)->InitFromFont((wxFont const &)*arg2);
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 resultobj = SWIG_Py_Void();
12215 return resultobj;
12216 fail:
12217 return NULL;
12218 }
12219
12220
12221 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12222 PyObject *resultobj = 0;
12223 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12224 int result;
12225 void *argp1 = 0 ;
12226 int res1 = 0 ;
12227 PyObject *swig_obj[1] ;
12228
12229 if (!args) SWIG_fail;
12230 swig_obj[0] = args;
12231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12232 if (!SWIG_IsOK(res1)) {
12233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12234 }
12235 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 resultobj = SWIG_From_int(static_cast< int >(result));
12243 return resultobj;
12244 fail:
12245 return NULL;
12246 }
12247
12248
12249 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12250 PyObject *resultobj = 0;
12251 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12252 wxSize result;
12253 void *argp1 = 0 ;
12254 int res1 = 0 ;
12255 PyObject *swig_obj[1] ;
12256
12257 if (!args) SWIG_fail;
12258 swig_obj[0] = args;
12259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12260 if (!SWIG_IsOK(res1)) {
12261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12262 }
12263 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12264 {
12265 PyThreadState* __tstate = wxPyBeginAllowThreads();
12266 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12267 wxPyEndAllowThreads(__tstate);
12268 if (PyErr_Occurred()) SWIG_fail;
12269 }
12270 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12271 return resultobj;
12272 fail:
12273 return NULL;
12274 }
12275
12276
12277 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12278 PyObject *resultobj = 0;
12279 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12280 wxFontStyle result;
12281 void *argp1 = 0 ;
12282 int res1 = 0 ;
12283 PyObject *swig_obj[1] ;
12284
12285 if (!args) SWIG_fail;
12286 swig_obj[0] = args;
12287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12288 if (!SWIG_IsOK(res1)) {
12289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12290 }
12291 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12292 {
12293 PyThreadState* __tstate = wxPyBeginAllowThreads();
12294 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 resultobj = SWIG_From_int(static_cast< int >(result));
12299 return resultobj;
12300 fail:
12301 return NULL;
12302 }
12303
12304
12305 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12306 PyObject *resultobj = 0;
12307 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12308 wxFontWeight result;
12309 void *argp1 = 0 ;
12310 int res1 = 0 ;
12311 PyObject *swig_obj[1] ;
12312
12313 if (!args) SWIG_fail;
12314 swig_obj[0] = args;
12315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12316 if (!SWIG_IsOK(res1)) {
12317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12318 }
12319 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12320 {
12321 PyThreadState* __tstate = wxPyBeginAllowThreads();
12322 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12323 wxPyEndAllowThreads(__tstate);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 resultobj = SWIG_From_int(static_cast< int >(result));
12327 return resultobj;
12328 fail:
12329 return NULL;
12330 }
12331
12332
12333 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12334 PyObject *resultobj = 0;
12335 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12336 bool result;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 PyObject *swig_obj[1] ;
12340
12341 if (!args) SWIG_fail;
12342 swig_obj[0] = args;
12343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12346 }
12347 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 {
12355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12356 }
12357 return resultobj;
12358 fail:
12359 return NULL;
12360 }
12361
12362
12363 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12364 PyObject *resultobj = 0;
12365 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12366 wxString result;
12367 void *argp1 = 0 ;
12368 int res1 = 0 ;
12369 PyObject *swig_obj[1] ;
12370
12371 if (!args) SWIG_fail;
12372 swig_obj[0] = args;
12373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12374 if (!SWIG_IsOK(res1)) {
12375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12376 }
12377 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12378 {
12379 PyThreadState* __tstate = wxPyBeginAllowThreads();
12380 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 {
12385 #if wxUSE_UNICODE
12386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12387 #else
12388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12389 #endif
12390 }
12391 return resultobj;
12392 fail:
12393 return NULL;
12394 }
12395
12396
12397 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12398 PyObject *resultobj = 0;
12399 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12400 wxFontFamily result;
12401 void *argp1 = 0 ;
12402 int res1 = 0 ;
12403 PyObject *swig_obj[1] ;
12404
12405 if (!args) SWIG_fail;
12406 swig_obj[0] = args;
12407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12408 if (!SWIG_IsOK(res1)) {
12409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12410 }
12411 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12412 {
12413 PyThreadState* __tstate = wxPyBeginAllowThreads();
12414 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12415 wxPyEndAllowThreads(__tstate);
12416 if (PyErr_Occurred()) SWIG_fail;
12417 }
12418 resultobj = SWIG_From_int(static_cast< int >(result));
12419 return resultobj;
12420 fail:
12421 return NULL;
12422 }
12423
12424
12425 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12426 PyObject *resultobj = 0;
12427 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12428 wxFontEncoding result;
12429 void *argp1 = 0 ;
12430 int res1 = 0 ;
12431 PyObject *swig_obj[1] ;
12432
12433 if (!args) SWIG_fail;
12434 swig_obj[0] = args;
12435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12436 if (!SWIG_IsOK(res1)) {
12437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12438 }
12439 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12443 wxPyEndAllowThreads(__tstate);
12444 if (PyErr_Occurred()) SWIG_fail;
12445 }
12446 resultobj = SWIG_From_int(static_cast< int >(result));
12447 return resultobj;
12448 fail:
12449 return NULL;
12450 }
12451
12452
12453 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12454 PyObject *resultobj = 0;
12455 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12456 int arg2 ;
12457 void *argp1 = 0 ;
12458 int res1 = 0 ;
12459 int val2 ;
12460 int ecode2 = 0 ;
12461 PyObject * obj0 = 0 ;
12462 PyObject * obj1 = 0 ;
12463 char * kwnames[] = {
12464 (char *) "self",(char *) "pointsize", NULL
12465 };
12466
12467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12469 if (!SWIG_IsOK(res1)) {
12470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12471 }
12472 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12473 ecode2 = SWIG_AsVal_int(obj1, &val2);
12474 if (!SWIG_IsOK(ecode2)) {
12475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12476 }
12477 arg2 = static_cast< int >(val2);
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 (arg1)->SetPointSize(arg2);
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 resultobj = SWIG_Py_Void();
12485 return resultobj;
12486 fail:
12487 return NULL;
12488 }
12489
12490
12491 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12492 PyObject *resultobj = 0;
12493 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12494 wxSize *arg2 = 0 ;
12495 void *argp1 = 0 ;
12496 int res1 = 0 ;
12497 wxSize temp2 ;
12498 PyObject * obj0 = 0 ;
12499 PyObject * obj1 = 0 ;
12500 char * kwnames[] = {
12501 (char *) "self",(char *) "pixelSize", NULL
12502 };
12503
12504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12506 if (!SWIG_IsOK(res1)) {
12507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12508 }
12509 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12510 {
12511 arg2 = &temp2;
12512 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12513 }
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 (arg1)->SetPixelSize((wxSize const &)*arg2);
12517 wxPyEndAllowThreads(__tstate);
12518 if (PyErr_Occurred()) SWIG_fail;
12519 }
12520 resultobj = SWIG_Py_Void();
12521 return resultobj;
12522 fail:
12523 return NULL;
12524 }
12525
12526
12527 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12528 PyObject *resultobj = 0;
12529 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12530 wxFontStyle arg2 ;
12531 void *argp1 = 0 ;
12532 int res1 = 0 ;
12533 int val2 ;
12534 int ecode2 = 0 ;
12535 PyObject * obj0 = 0 ;
12536 PyObject * obj1 = 0 ;
12537 char * kwnames[] = {
12538 (char *) "self",(char *) "style", NULL
12539 };
12540
12541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12543 if (!SWIG_IsOK(res1)) {
12544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12545 }
12546 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12547 ecode2 = SWIG_AsVal_int(obj1, &val2);
12548 if (!SWIG_IsOK(ecode2)) {
12549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12550 }
12551 arg2 = static_cast< wxFontStyle >(val2);
12552 {
12553 PyThreadState* __tstate = wxPyBeginAllowThreads();
12554 (arg1)->SetStyle(arg2);
12555 wxPyEndAllowThreads(__tstate);
12556 if (PyErr_Occurred()) SWIG_fail;
12557 }
12558 resultobj = SWIG_Py_Void();
12559 return resultobj;
12560 fail:
12561 return NULL;
12562 }
12563
12564
12565 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12566 PyObject *resultobj = 0;
12567 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12568 wxFontWeight arg2 ;
12569 void *argp1 = 0 ;
12570 int res1 = 0 ;
12571 int val2 ;
12572 int ecode2 = 0 ;
12573 PyObject * obj0 = 0 ;
12574 PyObject * obj1 = 0 ;
12575 char * kwnames[] = {
12576 (char *) "self",(char *) "weight", NULL
12577 };
12578
12579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12581 if (!SWIG_IsOK(res1)) {
12582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12583 }
12584 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12585 ecode2 = SWIG_AsVal_int(obj1, &val2);
12586 if (!SWIG_IsOK(ecode2)) {
12587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12588 }
12589 arg2 = static_cast< wxFontWeight >(val2);
12590 {
12591 PyThreadState* __tstate = wxPyBeginAllowThreads();
12592 (arg1)->SetWeight(arg2);
12593 wxPyEndAllowThreads(__tstate);
12594 if (PyErr_Occurred()) SWIG_fail;
12595 }
12596 resultobj = SWIG_Py_Void();
12597 return resultobj;
12598 fail:
12599 return NULL;
12600 }
12601
12602
12603 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12604 PyObject *resultobj = 0;
12605 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12606 bool arg2 ;
12607 void *argp1 = 0 ;
12608 int res1 = 0 ;
12609 bool val2 ;
12610 int ecode2 = 0 ;
12611 PyObject * obj0 = 0 ;
12612 PyObject * obj1 = 0 ;
12613 char * kwnames[] = {
12614 (char *) "self",(char *) "underlined", NULL
12615 };
12616
12617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12619 if (!SWIG_IsOK(res1)) {
12620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12621 }
12622 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12623 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12624 if (!SWIG_IsOK(ecode2)) {
12625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12626 }
12627 arg2 = static_cast< bool >(val2);
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 (arg1)->SetUnderlined(arg2);
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 resultobj = SWIG_Py_Void();
12635 return resultobj;
12636 fail:
12637 return NULL;
12638 }
12639
12640
12641 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12642 PyObject *resultobj = 0;
12643 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12644 wxString arg2 ;
12645 bool result;
12646 void *argp1 = 0 ;
12647 int res1 = 0 ;
12648 PyObject * obj0 = 0 ;
12649 PyObject * obj1 = 0 ;
12650 char * kwnames[] = {
12651 (char *) "self",(char *) "facename", NULL
12652 };
12653
12654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12656 if (!SWIG_IsOK(res1)) {
12657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12658 }
12659 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12660 {
12661 wxString* sptr = wxString_in_helper(obj1);
12662 if (sptr == NULL) SWIG_fail;
12663 arg2 = *sptr;
12664 delete sptr;
12665 }
12666 {
12667 PyThreadState* __tstate = wxPyBeginAllowThreads();
12668 result = (bool)(arg1)->SetFaceName(arg2);
12669 wxPyEndAllowThreads(__tstate);
12670 if (PyErr_Occurred()) SWIG_fail;
12671 }
12672 {
12673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12674 }
12675 return resultobj;
12676 fail:
12677 return NULL;
12678 }
12679
12680
12681 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12682 PyObject *resultobj = 0;
12683 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12684 wxFontFamily arg2 ;
12685 void *argp1 = 0 ;
12686 int res1 = 0 ;
12687 int val2 ;
12688 int ecode2 = 0 ;
12689 PyObject * obj0 = 0 ;
12690 PyObject * obj1 = 0 ;
12691 char * kwnames[] = {
12692 (char *) "self",(char *) "family", NULL
12693 };
12694
12695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12697 if (!SWIG_IsOK(res1)) {
12698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12699 }
12700 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12701 ecode2 = SWIG_AsVal_int(obj1, &val2);
12702 if (!SWIG_IsOK(ecode2)) {
12703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12704 }
12705 arg2 = static_cast< wxFontFamily >(val2);
12706 {
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
12708 (arg1)->SetFamily(arg2);
12709 wxPyEndAllowThreads(__tstate);
12710 if (PyErr_Occurred()) SWIG_fail;
12711 }
12712 resultobj = SWIG_Py_Void();
12713 return resultobj;
12714 fail:
12715 return NULL;
12716 }
12717
12718
12719 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12720 PyObject *resultobj = 0;
12721 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12722 wxFontEncoding arg2 ;
12723 void *argp1 = 0 ;
12724 int res1 = 0 ;
12725 int val2 ;
12726 int ecode2 = 0 ;
12727 PyObject * obj0 = 0 ;
12728 PyObject * obj1 = 0 ;
12729 char * kwnames[] = {
12730 (char *) "self",(char *) "encoding", NULL
12731 };
12732
12733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12735 if (!SWIG_IsOK(res1)) {
12736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12737 }
12738 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12739 ecode2 = SWIG_AsVal_int(obj1, &val2);
12740 if (!SWIG_IsOK(ecode2)) {
12741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12742 }
12743 arg2 = static_cast< wxFontEncoding >(val2);
12744 {
12745 PyThreadState* __tstate = wxPyBeginAllowThreads();
12746 (arg1)->SetEncoding(arg2);
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 resultobj = SWIG_Py_Void();
12751 return resultobj;
12752 fail:
12753 return NULL;
12754 }
12755
12756
12757 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj = 0;
12759 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12760 wxString *arg2 = 0 ;
12761 bool result;
12762 void *argp1 = 0 ;
12763 int res1 = 0 ;
12764 bool temp2 = false ;
12765 PyObject * obj0 = 0 ;
12766 PyObject * obj1 = 0 ;
12767 char * kwnames[] = {
12768 (char *) "self",(char *) "s", NULL
12769 };
12770
12771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12773 if (!SWIG_IsOK(res1)) {
12774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12775 }
12776 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12777 {
12778 arg2 = wxString_in_helper(obj1);
12779 if (arg2 == NULL) SWIG_fail;
12780 temp2 = true;
12781 }
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12785 wxPyEndAllowThreads(__tstate);
12786 if (PyErr_Occurred()) SWIG_fail;
12787 }
12788 {
12789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12790 }
12791 {
12792 if (temp2)
12793 delete arg2;
12794 }
12795 return resultobj;
12796 fail:
12797 {
12798 if (temp2)
12799 delete arg2;
12800 }
12801 return NULL;
12802 }
12803
12804
12805 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12806 PyObject *resultobj = 0;
12807 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12808 wxString result;
12809 void *argp1 = 0 ;
12810 int res1 = 0 ;
12811 PyObject *swig_obj[1] ;
12812
12813 if (!args) SWIG_fail;
12814 swig_obj[0] = args;
12815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12816 if (!SWIG_IsOK(res1)) {
12817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12818 }
12819 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 result = ((wxNativeFontInfo const *)arg1)->ToString();
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 {
12827 #if wxUSE_UNICODE
12828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12829 #else
12830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12831 #endif
12832 }
12833 return resultobj;
12834 fail:
12835 return NULL;
12836 }
12837
12838
12839 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12840 PyObject *resultobj = 0;
12841 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12842 wxString result;
12843 void *argp1 = 0 ;
12844 int res1 = 0 ;
12845 PyObject *swig_obj[1] ;
12846
12847 if (!args) SWIG_fail;
12848 swig_obj[0] = args;
12849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12850 if (!SWIG_IsOK(res1)) {
12851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12852 }
12853 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12854 {
12855 PyThreadState* __tstate = wxPyBeginAllowThreads();
12856 result = wxNativeFontInfo___str__(arg1);
12857 wxPyEndAllowThreads(__tstate);
12858 if (PyErr_Occurred()) SWIG_fail;
12859 }
12860 {
12861 #if wxUSE_UNICODE
12862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12863 #else
12864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12865 #endif
12866 }
12867 return resultobj;
12868 fail:
12869 return NULL;
12870 }
12871
12872
12873 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12874 PyObject *resultobj = 0;
12875 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12876 wxString *arg2 = 0 ;
12877 bool result;
12878 void *argp1 = 0 ;
12879 int res1 = 0 ;
12880 bool temp2 = false ;
12881 PyObject * obj0 = 0 ;
12882 PyObject * obj1 = 0 ;
12883 char * kwnames[] = {
12884 (char *) "self",(char *) "s", NULL
12885 };
12886
12887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12889 if (!SWIG_IsOK(res1)) {
12890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12891 }
12892 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12893 {
12894 arg2 = wxString_in_helper(obj1);
12895 if (arg2 == NULL) SWIG_fail;
12896 temp2 = true;
12897 }
12898 {
12899 PyThreadState* __tstate = wxPyBeginAllowThreads();
12900 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12901 wxPyEndAllowThreads(__tstate);
12902 if (PyErr_Occurred()) SWIG_fail;
12903 }
12904 {
12905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12906 }
12907 {
12908 if (temp2)
12909 delete arg2;
12910 }
12911 return resultobj;
12912 fail:
12913 {
12914 if (temp2)
12915 delete arg2;
12916 }
12917 return NULL;
12918 }
12919
12920
12921 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12922 PyObject *resultobj = 0;
12923 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12924 wxString result;
12925 void *argp1 = 0 ;
12926 int res1 = 0 ;
12927 PyObject *swig_obj[1] ;
12928
12929 if (!args) SWIG_fail;
12930 swig_obj[0] = args;
12931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12932 if (!SWIG_IsOK(res1)) {
12933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12934 }
12935 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 {
12943 #if wxUSE_UNICODE
12944 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12945 #else
12946 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12947 #endif
12948 }
12949 return resultobj;
12950 fail:
12951 return NULL;
12952 }
12953
12954
12955 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12956 PyObject *obj;
12957 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12958 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12959 return SWIG_Py_Void();
12960 }
12961
12962 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12963 return SWIG_Python_InitShadowInstance(args);
12964 }
12965
12966 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 PyObject *resultobj = 0;
12968 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12969 wxString *arg2 = (wxString *) 0 ;
12970 void *argp1 = 0 ;
12971 int res1 = 0 ;
12972 bool temp2 = false ;
12973 PyObject *swig_obj[2] ;
12974
12975 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12979 }
12980 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12981 {
12982 arg2 = wxString_in_helper(swig_obj[1]);
12983 if (arg2 == NULL) SWIG_fail;
12984 temp2 = true;
12985 }
12986 if (arg1) (arg1)->facename = *arg2;
12987
12988 resultobj = SWIG_Py_Void();
12989 {
12990 if (temp2)
12991 delete arg2;
12992 }
12993 return resultobj;
12994 fail:
12995 {
12996 if (temp2)
12997 delete arg2;
12998 }
12999 return NULL;
13000 }
13001
13002
13003 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13004 PyObject *resultobj = 0;
13005 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13006 wxString *result = 0 ;
13007 void *argp1 = 0 ;
13008 int res1 = 0 ;
13009 PyObject *swig_obj[1] ;
13010
13011 if (!args) SWIG_fail;
13012 swig_obj[0] = args;
13013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13016 }
13017 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13018 result = (wxString *)& ((arg1)->facename);
13019 {
13020 #if wxUSE_UNICODE
13021 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13022 #else
13023 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13024 #endif
13025 }
13026 return resultobj;
13027 fail:
13028 return NULL;
13029 }
13030
13031
13032 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13033 PyObject *resultobj = 0;
13034 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13035 wxFontEncoding arg2 ;
13036 void *argp1 = 0 ;
13037 int res1 = 0 ;
13038 int val2 ;
13039 int ecode2 = 0 ;
13040 PyObject *swig_obj[2] ;
13041
13042 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13044 if (!SWIG_IsOK(res1)) {
13045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13046 }
13047 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13048 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13049 if (!SWIG_IsOK(ecode2)) {
13050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13051 }
13052 arg2 = static_cast< wxFontEncoding >(val2);
13053 if (arg1) (arg1)->encoding = arg2;
13054
13055 resultobj = SWIG_Py_Void();
13056 return resultobj;
13057 fail:
13058 return NULL;
13059 }
13060
13061
13062 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13063 PyObject *resultobj = 0;
13064 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13065 wxFontEncoding result;
13066 void *argp1 = 0 ;
13067 int res1 = 0 ;
13068 PyObject *swig_obj[1] ;
13069
13070 if (!args) SWIG_fail;
13071 swig_obj[0] = args;
13072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13073 if (!SWIG_IsOK(res1)) {
13074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13075 }
13076 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13077 result = (wxFontEncoding) ((arg1)->encoding);
13078 resultobj = SWIG_From_int(static_cast< int >(result));
13079 return resultobj;
13080 fail:
13081 return NULL;
13082 }
13083
13084
13085 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13086 PyObject *resultobj = 0;
13087 wxNativeEncodingInfo *result = 0 ;
13088
13089 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13097 return resultobj;
13098 fail:
13099 return NULL;
13100 }
13101
13102
13103 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13104 PyObject *resultobj = 0;
13105 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13106 void *argp1 = 0 ;
13107 int res1 = 0 ;
13108 PyObject *swig_obj[1] ;
13109
13110 if (!args) SWIG_fail;
13111 swig_obj[0] = args;
13112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13113 if (!SWIG_IsOK(res1)) {
13114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13115 }
13116 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13117 {
13118 PyThreadState* __tstate = wxPyBeginAllowThreads();
13119 delete arg1;
13120
13121 wxPyEndAllowThreads(__tstate);
13122 if (PyErr_Occurred()) SWIG_fail;
13123 }
13124 resultobj = SWIG_Py_Void();
13125 return resultobj;
13126 fail:
13127 return NULL;
13128 }
13129
13130
13131 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13132 PyObject *resultobj = 0;
13133 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13134 wxString *arg2 = 0 ;
13135 bool result;
13136 void *argp1 = 0 ;
13137 int res1 = 0 ;
13138 bool temp2 = false ;
13139 PyObject * obj0 = 0 ;
13140 PyObject * obj1 = 0 ;
13141 char * kwnames[] = {
13142 (char *) "self",(char *) "s", NULL
13143 };
13144
13145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13147 if (!SWIG_IsOK(res1)) {
13148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13149 }
13150 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13151 {
13152 arg2 = wxString_in_helper(obj1);
13153 if (arg2 == NULL) SWIG_fail;
13154 temp2 = true;
13155 }
13156 {
13157 PyThreadState* __tstate = wxPyBeginAllowThreads();
13158 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 {
13163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13164 }
13165 {
13166 if (temp2)
13167 delete arg2;
13168 }
13169 return resultobj;
13170 fail:
13171 {
13172 if (temp2)
13173 delete arg2;
13174 }
13175 return NULL;
13176 }
13177
13178
13179 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13180 PyObject *resultobj = 0;
13181 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13182 wxString result;
13183 void *argp1 = 0 ;
13184 int res1 = 0 ;
13185 PyObject *swig_obj[1] ;
13186
13187 if (!args) SWIG_fail;
13188 swig_obj[0] = args;
13189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13190 if (!SWIG_IsOK(res1)) {
13191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13192 }
13193 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13194 {
13195 PyThreadState* __tstate = wxPyBeginAllowThreads();
13196 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 {
13201 #if wxUSE_UNICODE
13202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13203 #else
13204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13205 #endif
13206 }
13207 return resultobj;
13208 fail:
13209 return NULL;
13210 }
13211
13212
13213 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13214 PyObject *obj;
13215 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13216 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13217 return SWIG_Py_Void();
13218 }
13219
13220 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13221 return SWIG_Python_InitShadowInstance(args);
13222 }
13223
13224 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13225 PyObject *resultobj = 0;
13226 wxFontEncoding arg1 ;
13227 wxNativeEncodingInfo *result = 0 ;
13228 int val1 ;
13229 int ecode1 = 0 ;
13230 PyObject * obj0 = 0 ;
13231 char * kwnames[] = {
13232 (char *) "encoding", NULL
13233 };
13234
13235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13236 ecode1 = SWIG_AsVal_int(obj0, &val1);
13237 if (!SWIG_IsOK(ecode1)) {
13238 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13239 }
13240 arg1 = static_cast< wxFontEncoding >(val1);
13241 {
13242 PyThreadState* __tstate = wxPyBeginAllowThreads();
13243 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13244 wxPyEndAllowThreads(__tstate);
13245 if (PyErr_Occurred()) SWIG_fail;
13246 }
13247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13248 return resultobj;
13249 fail:
13250 return NULL;
13251 }
13252
13253
13254 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj = 0;
13256 wxNativeEncodingInfo *arg1 = 0 ;
13257 bool result;
13258 void *argp1 = 0 ;
13259 int res1 = 0 ;
13260 PyObject * obj0 = 0 ;
13261 char * kwnames[] = {
13262 (char *) "info", NULL
13263 };
13264
13265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13266 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13267 if (!SWIG_IsOK(res1)) {
13268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13269 }
13270 if (!argp1) {
13271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13272 }
13273 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13274 {
13275 PyThreadState* __tstate = wxPyBeginAllowThreads();
13276 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13277 wxPyEndAllowThreads(__tstate);
13278 if (PyErr_Occurred()) SWIG_fail;
13279 }
13280 {
13281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13282 }
13283 return resultobj;
13284 fail:
13285 return NULL;
13286 }
13287
13288
13289 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13290 PyObject *resultobj = 0;
13291 wxFontMapper *result = 0 ;
13292
13293 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13294 {
13295 PyThreadState* __tstate = wxPyBeginAllowThreads();
13296 result = (wxFontMapper *)new wxFontMapper();
13297 wxPyEndAllowThreads(__tstate);
13298 if (PyErr_Occurred()) SWIG_fail;
13299 }
13300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13301 return resultobj;
13302 fail:
13303 return NULL;
13304 }
13305
13306
13307 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13308 PyObject *resultobj = 0;
13309 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13310 void *argp1 = 0 ;
13311 int res1 = 0 ;
13312 PyObject *swig_obj[1] ;
13313
13314 if (!args) SWIG_fail;
13315 swig_obj[0] = args;
13316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13317 if (!SWIG_IsOK(res1)) {
13318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13319 }
13320 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13321 {
13322 PyThreadState* __tstate = wxPyBeginAllowThreads();
13323 delete arg1;
13324
13325 wxPyEndAllowThreads(__tstate);
13326 if (PyErr_Occurred()) SWIG_fail;
13327 }
13328 resultobj = SWIG_Py_Void();
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13336 PyObject *resultobj = 0;
13337 wxFontMapper *result = 0 ;
13338
13339 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 result = (wxFontMapper *)wxFontMapper::Get();
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13347 return resultobj;
13348 fail:
13349 return NULL;
13350 }
13351
13352
13353 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13354 PyObject *resultobj = 0;
13355 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13356 wxFontMapper *result = 0 ;
13357 void *argp1 = 0 ;
13358 int res1 = 0 ;
13359 PyObject * obj0 = 0 ;
13360 char * kwnames[] = {
13361 (char *) "mapper", NULL
13362 };
13363
13364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13366 if (!SWIG_IsOK(res1)) {
13367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13368 }
13369 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
13372 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13377 return resultobj;
13378 fail:
13379 return NULL;
13380 }
13381
13382
13383 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13384 PyObject *resultobj = 0;
13385 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13386 wxString *arg2 = 0 ;
13387 bool arg3 = (bool) true ;
13388 wxFontEncoding result;
13389 void *argp1 = 0 ;
13390 int res1 = 0 ;
13391 bool temp2 = false ;
13392 bool val3 ;
13393 int ecode3 = 0 ;
13394 PyObject * obj0 = 0 ;
13395 PyObject * obj1 = 0 ;
13396 PyObject * obj2 = 0 ;
13397 char * kwnames[] = {
13398 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13399 };
13400
13401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13403 if (!SWIG_IsOK(res1)) {
13404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13405 }
13406 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13407 {
13408 arg2 = wxString_in_helper(obj1);
13409 if (arg2 == NULL) SWIG_fail;
13410 temp2 = true;
13411 }
13412 if (obj2) {
13413 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13414 if (!SWIG_IsOK(ecode3)) {
13415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13416 }
13417 arg3 = static_cast< bool >(val3);
13418 }
13419 {
13420 PyThreadState* __tstate = wxPyBeginAllowThreads();
13421 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13422 wxPyEndAllowThreads(__tstate);
13423 if (PyErr_Occurred()) SWIG_fail;
13424 }
13425 resultobj = SWIG_From_int(static_cast< int >(result));
13426 {
13427 if (temp2)
13428 delete arg2;
13429 }
13430 return resultobj;
13431 fail:
13432 {
13433 if (temp2)
13434 delete arg2;
13435 }
13436 return NULL;
13437 }
13438
13439
13440 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13441 PyObject *resultobj = 0;
13442 size_t result;
13443
13444 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13445 {
13446 PyThreadState* __tstate = wxPyBeginAllowThreads();
13447 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13448 wxPyEndAllowThreads(__tstate);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 }
13451 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13452 return resultobj;
13453 fail:
13454 return NULL;
13455 }
13456
13457
13458 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13459 PyObject *resultobj = 0;
13460 size_t arg1 ;
13461 wxFontEncoding result;
13462 size_t val1 ;
13463 int ecode1 = 0 ;
13464 PyObject * obj0 = 0 ;
13465 char * kwnames[] = {
13466 (char *) "n", NULL
13467 };
13468
13469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13470 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13471 if (!SWIG_IsOK(ecode1)) {
13472 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13473 }
13474 arg1 = static_cast< size_t >(val1);
13475 {
13476 PyThreadState* __tstate = wxPyBeginAllowThreads();
13477 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13478 wxPyEndAllowThreads(__tstate);
13479 if (PyErr_Occurred()) SWIG_fail;
13480 }
13481 resultobj = SWIG_From_int(static_cast< int >(result));
13482 return resultobj;
13483 fail:
13484 return NULL;
13485 }
13486
13487
13488 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13489 PyObject *resultobj = 0;
13490 wxFontEncoding arg1 ;
13491 wxString result;
13492 int val1 ;
13493 int ecode1 = 0 ;
13494 PyObject * obj0 = 0 ;
13495 char * kwnames[] = {
13496 (char *) "encoding", NULL
13497 };
13498
13499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13500 ecode1 = SWIG_AsVal_int(obj0, &val1);
13501 if (!SWIG_IsOK(ecode1)) {
13502 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13503 }
13504 arg1 = static_cast< wxFontEncoding >(val1);
13505 {
13506 PyThreadState* __tstate = wxPyBeginAllowThreads();
13507 result = wxFontMapper::GetEncodingName(arg1);
13508 wxPyEndAllowThreads(__tstate);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 }
13511 {
13512 #if wxUSE_UNICODE
13513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13514 #else
13515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13516 #endif
13517 }
13518 return resultobj;
13519 fail:
13520 return NULL;
13521 }
13522
13523
13524 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13525 PyObject *resultobj = 0;
13526 wxFontEncoding arg1 ;
13527 wxString result;
13528 int val1 ;
13529 int ecode1 = 0 ;
13530 PyObject * obj0 = 0 ;
13531 char * kwnames[] = {
13532 (char *) "encoding", NULL
13533 };
13534
13535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13536 ecode1 = SWIG_AsVal_int(obj0, &val1);
13537 if (!SWIG_IsOK(ecode1)) {
13538 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13539 }
13540 arg1 = static_cast< wxFontEncoding >(val1);
13541 {
13542 PyThreadState* __tstate = wxPyBeginAllowThreads();
13543 result = wxFontMapper::GetEncodingDescription(arg1);
13544 wxPyEndAllowThreads(__tstate);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 }
13547 {
13548 #if wxUSE_UNICODE
13549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13550 #else
13551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13552 #endif
13553 }
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13561 PyObject *resultobj = 0;
13562 wxString *arg1 = 0 ;
13563 wxFontEncoding result;
13564 bool temp1 = false ;
13565 PyObject * obj0 = 0 ;
13566 char * kwnames[] = {
13567 (char *) "name", NULL
13568 };
13569
13570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13571 {
13572 arg1 = wxString_in_helper(obj0);
13573 if (arg1 == NULL) SWIG_fail;
13574 temp1 = true;
13575 }
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 resultobj = SWIG_From_int(static_cast< int >(result));
13583 {
13584 if (temp1)
13585 delete arg1;
13586 }
13587 return resultobj;
13588 fail:
13589 {
13590 if (temp1)
13591 delete arg1;
13592 }
13593 return NULL;
13594 }
13595
13596
13597 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13598 PyObject *resultobj = 0;
13599 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13600 wxString *arg2 = 0 ;
13601 void *argp1 = 0 ;
13602 int res1 = 0 ;
13603 bool temp2 = false ;
13604 PyObject * obj0 = 0 ;
13605 PyObject * obj1 = 0 ;
13606 char * kwnames[] = {
13607 (char *) "self",(char *) "prefix", NULL
13608 };
13609
13610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13612 if (!SWIG_IsOK(res1)) {
13613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13614 }
13615 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13616 {
13617 arg2 = wxString_in_helper(obj1);
13618 if (arg2 == NULL) SWIG_fail;
13619 temp2 = true;
13620 }
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 (arg1)->SetConfigPath((wxString const &)*arg2);
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 resultobj = SWIG_Py_Void();
13628 {
13629 if (temp2)
13630 delete arg2;
13631 }
13632 return resultobj;
13633 fail:
13634 {
13635 if (temp2)
13636 delete arg2;
13637 }
13638 return NULL;
13639 }
13640
13641
13642 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13643 PyObject *resultobj = 0;
13644 wxString result;
13645
13646 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13647 {
13648 PyThreadState* __tstate = wxPyBeginAllowThreads();
13649 result = wxFontMapper::GetDefaultConfigPath();
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 {
13654 #if wxUSE_UNICODE
13655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13656 #else
13657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13658 #endif
13659 }
13660 return resultobj;
13661 fail:
13662 return NULL;
13663 }
13664
13665
13666 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13667 PyObject *resultobj = 0;
13668 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13669 wxFontEncoding arg2 ;
13670 wxString const &arg3_defvalue = wxPyEmptyString ;
13671 wxString *arg3 = (wxString *) &arg3_defvalue ;
13672 bool arg4 = (bool) true ;
13673 PyObject *result = 0 ;
13674 void *argp1 = 0 ;
13675 int res1 = 0 ;
13676 int val2 ;
13677 int ecode2 = 0 ;
13678 bool temp3 = false ;
13679 bool val4 ;
13680 int ecode4 = 0 ;
13681 PyObject * obj0 = 0 ;
13682 PyObject * obj1 = 0 ;
13683 PyObject * obj2 = 0 ;
13684 PyObject * obj3 = 0 ;
13685 char * kwnames[] = {
13686 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13687 };
13688
13689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13691 if (!SWIG_IsOK(res1)) {
13692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13693 }
13694 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13695 ecode2 = SWIG_AsVal_int(obj1, &val2);
13696 if (!SWIG_IsOK(ecode2)) {
13697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13698 }
13699 arg2 = static_cast< wxFontEncoding >(val2);
13700 if (obj2) {
13701 {
13702 arg3 = wxString_in_helper(obj2);
13703 if (arg3 == NULL) SWIG_fail;
13704 temp3 = true;
13705 }
13706 }
13707 if (obj3) {
13708 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13709 if (!SWIG_IsOK(ecode4)) {
13710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13711 }
13712 arg4 = static_cast< bool >(val4);
13713 }
13714 {
13715 PyThreadState* __tstate = wxPyBeginAllowThreads();
13716 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13717 wxPyEndAllowThreads(__tstate);
13718 if (PyErr_Occurred()) SWIG_fail;
13719 }
13720 resultobj = result;
13721 {
13722 if (temp3)
13723 delete arg3;
13724 }
13725 return resultobj;
13726 fail:
13727 {
13728 if (temp3)
13729 delete arg3;
13730 }
13731 return NULL;
13732 }
13733
13734
13735 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13736 PyObject *resultobj = 0;
13737 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13738 wxFontEncoding arg2 ;
13739 wxString const &arg3_defvalue = wxPyEmptyString ;
13740 wxString *arg3 = (wxString *) &arg3_defvalue ;
13741 bool result;
13742 void *argp1 = 0 ;
13743 int res1 = 0 ;
13744 int val2 ;
13745 int ecode2 = 0 ;
13746 bool temp3 = false ;
13747 PyObject * obj0 = 0 ;
13748 PyObject * obj1 = 0 ;
13749 PyObject * obj2 = 0 ;
13750 char * kwnames[] = {
13751 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13752 };
13753
13754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13756 if (!SWIG_IsOK(res1)) {
13757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13758 }
13759 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13760 ecode2 = SWIG_AsVal_int(obj1, &val2);
13761 if (!SWIG_IsOK(ecode2)) {
13762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13763 }
13764 arg2 = static_cast< wxFontEncoding >(val2);
13765 if (obj2) {
13766 {
13767 arg3 = wxString_in_helper(obj2);
13768 if (arg3 == NULL) SWIG_fail;
13769 temp3 = true;
13770 }
13771 }
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13775 wxPyEndAllowThreads(__tstate);
13776 if (PyErr_Occurred()) SWIG_fail;
13777 }
13778 {
13779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13780 }
13781 {
13782 if (temp3)
13783 delete arg3;
13784 }
13785 return resultobj;
13786 fail:
13787 {
13788 if (temp3)
13789 delete arg3;
13790 }
13791 return NULL;
13792 }
13793
13794
13795 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13796 PyObject *resultobj = 0;
13797 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13798 wxWindow *arg2 = (wxWindow *) 0 ;
13799 void *argp1 = 0 ;
13800 int res1 = 0 ;
13801 void *argp2 = 0 ;
13802 int res2 = 0 ;
13803 PyObject * obj0 = 0 ;
13804 PyObject * obj1 = 0 ;
13805 char * kwnames[] = {
13806 (char *) "self",(char *) "parent", NULL
13807 };
13808
13809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13811 if (!SWIG_IsOK(res1)) {
13812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13813 }
13814 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13816 if (!SWIG_IsOK(res2)) {
13817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13818 }
13819 arg2 = reinterpret_cast< wxWindow * >(argp2);
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 (arg1)->SetDialogParent(arg2);
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 resultobj = SWIG_Py_Void();
13827 return resultobj;
13828 fail:
13829 return NULL;
13830 }
13831
13832
13833 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13834 PyObject *resultobj = 0;
13835 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13836 wxString *arg2 = 0 ;
13837 void *argp1 = 0 ;
13838 int res1 = 0 ;
13839 bool temp2 = false ;
13840 PyObject * obj0 = 0 ;
13841 PyObject * obj1 = 0 ;
13842 char * kwnames[] = {
13843 (char *) "self",(char *) "title", NULL
13844 };
13845
13846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13848 if (!SWIG_IsOK(res1)) {
13849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13850 }
13851 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13852 {
13853 arg2 = wxString_in_helper(obj1);
13854 if (arg2 == NULL) SWIG_fail;
13855 temp2 = true;
13856 }
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 (arg1)->SetDialogTitle((wxString const &)*arg2);
13860 wxPyEndAllowThreads(__tstate);
13861 if (PyErr_Occurred()) SWIG_fail;
13862 }
13863 resultobj = SWIG_Py_Void();
13864 {
13865 if (temp2)
13866 delete arg2;
13867 }
13868 return resultobj;
13869 fail:
13870 {
13871 if (temp2)
13872 delete arg2;
13873 }
13874 return NULL;
13875 }
13876
13877
13878 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13879 PyObject *obj;
13880 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13881 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13882 return SWIG_Py_Void();
13883 }
13884
13885 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13886 return SWIG_Python_InitShadowInstance(args);
13887 }
13888
13889 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13890 PyObject *resultobj = 0;
13891 int arg1 ;
13892 int arg2 ;
13893 int arg3 ;
13894 int arg4 ;
13895 bool arg5 = (bool) false ;
13896 wxString const &arg6_defvalue = wxPyEmptyString ;
13897 wxString *arg6 = (wxString *) &arg6_defvalue ;
13898 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13899 wxFont *result = 0 ;
13900 int val1 ;
13901 int ecode1 = 0 ;
13902 int val2 ;
13903 int ecode2 = 0 ;
13904 int val3 ;
13905 int ecode3 = 0 ;
13906 int val4 ;
13907 int ecode4 = 0 ;
13908 bool val5 ;
13909 int ecode5 = 0 ;
13910 bool temp6 = false ;
13911 int val7 ;
13912 int ecode7 = 0 ;
13913 PyObject * obj0 = 0 ;
13914 PyObject * obj1 = 0 ;
13915 PyObject * obj2 = 0 ;
13916 PyObject * obj3 = 0 ;
13917 PyObject * obj4 = 0 ;
13918 PyObject * obj5 = 0 ;
13919 PyObject * obj6 = 0 ;
13920 char * kwnames[] = {
13921 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13922 };
13923
13924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13925 ecode1 = SWIG_AsVal_int(obj0, &val1);
13926 if (!SWIG_IsOK(ecode1)) {
13927 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13928 }
13929 arg1 = static_cast< int >(val1);
13930 ecode2 = SWIG_AsVal_int(obj1, &val2);
13931 if (!SWIG_IsOK(ecode2)) {
13932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13933 }
13934 arg2 = static_cast< int >(val2);
13935 ecode3 = SWIG_AsVal_int(obj2, &val3);
13936 if (!SWIG_IsOK(ecode3)) {
13937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13938 }
13939 arg3 = static_cast< int >(val3);
13940 ecode4 = SWIG_AsVal_int(obj3, &val4);
13941 if (!SWIG_IsOK(ecode4)) {
13942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13943 }
13944 arg4 = static_cast< int >(val4);
13945 if (obj4) {
13946 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13947 if (!SWIG_IsOK(ecode5)) {
13948 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13949 }
13950 arg5 = static_cast< bool >(val5);
13951 }
13952 if (obj5) {
13953 {
13954 arg6 = wxString_in_helper(obj5);
13955 if (arg6 == NULL) SWIG_fail;
13956 temp6 = true;
13957 }
13958 }
13959 if (obj6) {
13960 ecode7 = SWIG_AsVal_int(obj6, &val7);
13961 if (!SWIG_IsOK(ecode7)) {
13962 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13963 }
13964 arg7 = static_cast< wxFontEncoding >(val7);
13965 }
13966 {
13967 if (!wxPyCheckForApp()) SWIG_fail;
13968 PyThreadState* __tstate = wxPyBeginAllowThreads();
13969 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13970 wxPyEndAllowThreads(__tstate);
13971 if (PyErr_Occurred()) SWIG_fail;
13972 }
13973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13974 {
13975 if (temp6)
13976 delete arg6;
13977 }
13978 return resultobj;
13979 fail:
13980 {
13981 if (temp6)
13982 delete arg6;
13983 }
13984 return NULL;
13985 }
13986
13987
13988 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13989 PyObject *resultobj = 0;
13990 wxFont *arg1 = (wxFont *) 0 ;
13991 void *argp1 = 0 ;
13992 int res1 = 0 ;
13993 PyObject *swig_obj[1] ;
13994
13995 if (!args) SWIG_fail;
13996 swig_obj[0] = args;
13997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13998 if (!SWIG_IsOK(res1)) {
13999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14000 }
14001 arg1 = reinterpret_cast< wxFont * >(argp1);
14002 {
14003 PyThreadState* __tstate = wxPyBeginAllowThreads();
14004 delete arg1;
14005
14006 wxPyEndAllowThreads(__tstate);
14007 if (PyErr_Occurred()) SWIG_fail;
14008 }
14009 resultobj = SWIG_Py_Void();
14010 return resultobj;
14011 fail:
14012 return NULL;
14013 }
14014
14015
14016 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14017 PyObject *resultobj = 0;
14018 wxNativeFontInfo *arg1 = 0 ;
14019 wxFont *result = 0 ;
14020 void *argp1 = 0 ;
14021 int res1 = 0 ;
14022 PyObject * obj0 = 0 ;
14023 char * kwnames[] = {
14024 (char *) "info", NULL
14025 };
14026
14027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14028 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14029 if (!SWIG_IsOK(res1)) {
14030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14031 }
14032 if (!argp1) {
14033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14034 }
14035 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14036 {
14037 if (!wxPyCheckForApp()) SWIG_fail;
14038 PyThreadState* __tstate = wxPyBeginAllowThreads();
14039 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14040 wxPyEndAllowThreads(__tstate);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 }
14043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14044 return resultobj;
14045 fail:
14046 return NULL;
14047 }
14048
14049
14050 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14051 PyObject *resultobj = 0;
14052 wxString *arg1 = 0 ;
14053 wxFont *result = 0 ;
14054 bool temp1 = false ;
14055 PyObject * obj0 = 0 ;
14056 char * kwnames[] = {
14057 (char *) "info", NULL
14058 };
14059
14060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14061 {
14062 arg1 = wxString_in_helper(obj0);
14063 if (arg1 == NULL) SWIG_fail;
14064 temp1 = true;
14065 }
14066 {
14067 if (!wxPyCheckForApp()) SWIG_fail;
14068 PyThreadState* __tstate = wxPyBeginAllowThreads();
14069 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14070 wxPyEndAllowThreads(__tstate);
14071 if (PyErr_Occurred()) SWIG_fail;
14072 }
14073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14074 {
14075 if (temp1)
14076 delete arg1;
14077 }
14078 return resultobj;
14079 fail:
14080 {
14081 if (temp1)
14082 delete arg1;
14083 }
14084 return NULL;
14085 }
14086
14087
14088 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14089 PyObject *resultobj = 0;
14090 int arg1 ;
14091 wxFontFamily arg2 ;
14092 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14093 wxString const &arg4_defvalue = wxPyEmptyString ;
14094 wxString *arg4 = (wxString *) &arg4_defvalue ;
14095 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14096 wxFont *result = 0 ;
14097 int val1 ;
14098 int ecode1 = 0 ;
14099 int val2 ;
14100 int ecode2 = 0 ;
14101 int val3 ;
14102 int ecode3 = 0 ;
14103 bool temp4 = false ;
14104 int val5 ;
14105 int ecode5 = 0 ;
14106 PyObject * obj0 = 0 ;
14107 PyObject * obj1 = 0 ;
14108 PyObject * obj2 = 0 ;
14109 PyObject * obj3 = 0 ;
14110 PyObject * obj4 = 0 ;
14111 char * kwnames[] = {
14112 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14113 };
14114
14115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14116 ecode1 = SWIG_AsVal_int(obj0, &val1);
14117 if (!SWIG_IsOK(ecode1)) {
14118 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14119 }
14120 arg1 = static_cast< int >(val1);
14121 ecode2 = SWIG_AsVal_int(obj1, &val2);
14122 if (!SWIG_IsOK(ecode2)) {
14123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14124 }
14125 arg2 = static_cast< wxFontFamily >(val2);
14126 if (obj2) {
14127 ecode3 = SWIG_AsVal_int(obj2, &val3);
14128 if (!SWIG_IsOK(ecode3)) {
14129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14130 }
14131 arg3 = static_cast< int >(val3);
14132 }
14133 if (obj3) {
14134 {
14135 arg4 = wxString_in_helper(obj3);
14136 if (arg4 == NULL) SWIG_fail;
14137 temp4 = true;
14138 }
14139 }
14140 if (obj4) {
14141 ecode5 = SWIG_AsVal_int(obj4, &val5);
14142 if (!SWIG_IsOK(ecode5)) {
14143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14144 }
14145 arg5 = static_cast< wxFontEncoding >(val5);
14146 }
14147 {
14148 if (!wxPyCheckForApp()) SWIG_fail;
14149 PyThreadState* __tstate = wxPyBeginAllowThreads();
14150 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14151 wxPyEndAllowThreads(__tstate);
14152 if (PyErr_Occurred()) SWIG_fail;
14153 }
14154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14155 {
14156 if (temp4)
14157 delete arg4;
14158 }
14159 return resultobj;
14160 fail:
14161 {
14162 if (temp4)
14163 delete arg4;
14164 }
14165 return NULL;
14166 }
14167
14168
14169 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14170 PyObject *resultobj = 0;
14171 wxSize *arg1 = 0 ;
14172 int arg2 ;
14173 int arg3 ;
14174 int arg4 ;
14175 bool arg5 = (bool) false ;
14176 wxString const &arg6_defvalue = wxEmptyString ;
14177 wxString *arg6 = (wxString *) &arg6_defvalue ;
14178 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14179 wxFont *result = 0 ;
14180 wxSize temp1 ;
14181 int val2 ;
14182 int ecode2 = 0 ;
14183 int val3 ;
14184 int ecode3 = 0 ;
14185 int val4 ;
14186 int ecode4 = 0 ;
14187 bool val5 ;
14188 int ecode5 = 0 ;
14189 bool temp6 = false ;
14190 int val7 ;
14191 int ecode7 = 0 ;
14192 PyObject * obj0 = 0 ;
14193 PyObject * obj1 = 0 ;
14194 PyObject * obj2 = 0 ;
14195 PyObject * obj3 = 0 ;
14196 PyObject * obj4 = 0 ;
14197 PyObject * obj5 = 0 ;
14198 PyObject * obj6 = 0 ;
14199 char * kwnames[] = {
14200 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14201 };
14202
14203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14204 {
14205 arg1 = &temp1;
14206 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14207 }
14208 ecode2 = SWIG_AsVal_int(obj1, &val2);
14209 if (!SWIG_IsOK(ecode2)) {
14210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14211 }
14212 arg2 = static_cast< int >(val2);
14213 ecode3 = SWIG_AsVal_int(obj2, &val3);
14214 if (!SWIG_IsOK(ecode3)) {
14215 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14216 }
14217 arg3 = static_cast< int >(val3);
14218 ecode4 = SWIG_AsVal_int(obj3, &val4);
14219 if (!SWIG_IsOK(ecode4)) {
14220 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14221 }
14222 arg4 = static_cast< int >(val4);
14223 if (obj4) {
14224 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14225 if (!SWIG_IsOK(ecode5)) {
14226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14227 }
14228 arg5 = static_cast< bool >(val5);
14229 }
14230 if (obj5) {
14231 {
14232 arg6 = wxString_in_helper(obj5);
14233 if (arg6 == NULL) SWIG_fail;
14234 temp6 = true;
14235 }
14236 }
14237 if (obj6) {
14238 ecode7 = SWIG_AsVal_int(obj6, &val7);
14239 if (!SWIG_IsOK(ecode7)) {
14240 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14241 }
14242 arg7 = static_cast< wxFontEncoding >(val7);
14243 }
14244 {
14245 if (!wxPyCheckForApp()) SWIG_fail;
14246 PyThreadState* __tstate = wxPyBeginAllowThreads();
14247 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14252 {
14253 if (temp6)
14254 delete arg6;
14255 }
14256 return resultobj;
14257 fail:
14258 {
14259 if (temp6)
14260 delete arg6;
14261 }
14262 return NULL;
14263 }
14264
14265
14266 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14267 PyObject *resultobj = 0;
14268 wxSize *arg1 = 0 ;
14269 wxFontFamily arg2 ;
14270 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14271 wxString const &arg4_defvalue = wxEmptyString ;
14272 wxString *arg4 = (wxString *) &arg4_defvalue ;
14273 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14274 wxFont *result = 0 ;
14275 wxSize temp1 ;
14276 int val2 ;
14277 int ecode2 = 0 ;
14278 int val3 ;
14279 int ecode3 = 0 ;
14280 bool temp4 = false ;
14281 int val5 ;
14282 int ecode5 = 0 ;
14283 PyObject * obj0 = 0 ;
14284 PyObject * obj1 = 0 ;
14285 PyObject * obj2 = 0 ;
14286 PyObject * obj3 = 0 ;
14287 PyObject * obj4 = 0 ;
14288 char * kwnames[] = {
14289 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14290 };
14291
14292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14293 {
14294 arg1 = &temp1;
14295 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14296 }
14297 ecode2 = SWIG_AsVal_int(obj1, &val2);
14298 if (!SWIG_IsOK(ecode2)) {
14299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14300 }
14301 arg2 = static_cast< wxFontFamily >(val2);
14302 if (obj2) {
14303 ecode3 = SWIG_AsVal_int(obj2, &val3);
14304 if (!SWIG_IsOK(ecode3)) {
14305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14306 }
14307 arg3 = static_cast< int >(val3);
14308 }
14309 if (obj3) {
14310 {
14311 arg4 = wxString_in_helper(obj3);
14312 if (arg4 == NULL) SWIG_fail;
14313 temp4 = true;
14314 }
14315 }
14316 if (obj4) {
14317 ecode5 = SWIG_AsVal_int(obj4, &val5);
14318 if (!SWIG_IsOK(ecode5)) {
14319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14320 }
14321 arg5 = static_cast< wxFontEncoding >(val5);
14322 }
14323 {
14324 if (!wxPyCheckForApp()) SWIG_fail;
14325 PyThreadState* __tstate = wxPyBeginAllowThreads();
14326 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14327 wxPyEndAllowThreads(__tstate);
14328 if (PyErr_Occurred()) SWIG_fail;
14329 }
14330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14331 {
14332 if (temp4)
14333 delete arg4;
14334 }
14335 return resultobj;
14336 fail:
14337 {
14338 if (temp4)
14339 delete arg4;
14340 }
14341 return NULL;
14342 }
14343
14344
14345 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14346 PyObject *resultobj = 0;
14347 wxFont *arg1 = (wxFont *) 0 ;
14348 bool result;
14349 void *argp1 = 0 ;
14350 int res1 = 0 ;
14351 PyObject *swig_obj[1] ;
14352
14353 if (!args) SWIG_fail;
14354 swig_obj[0] = args;
14355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14356 if (!SWIG_IsOK(res1)) {
14357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
14358 }
14359 arg1 = reinterpret_cast< wxFont * >(argp1);
14360 {
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
14362 result = (bool)((wxFont const *)arg1)->Ok();
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 {
14367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14368 }
14369 return resultobj;
14370 fail:
14371 return NULL;
14372 }
14373
14374
14375 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj = 0;
14377 wxFont *arg1 = (wxFont *) 0 ;
14378 wxFont *arg2 = (wxFont *) 0 ;
14379 bool result;
14380 void *argp1 = 0 ;
14381 int res1 = 0 ;
14382 void *argp2 = 0 ;
14383 int res2 = 0 ;
14384 PyObject * obj0 = 0 ;
14385 PyObject * obj1 = 0 ;
14386 char * kwnames[] = {
14387 (char *) "self",(char *) "other", NULL
14388 };
14389
14390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14392 if (!SWIG_IsOK(res1)) {
14393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14394 }
14395 arg1 = reinterpret_cast< wxFont * >(argp1);
14396 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14397 if (!SWIG_IsOK(res2)) {
14398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14399 }
14400 arg2 = reinterpret_cast< wxFont * >(argp2);
14401 {
14402 PyThreadState* __tstate = wxPyBeginAllowThreads();
14403 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14404 wxPyEndAllowThreads(__tstate);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 }
14407 {
14408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14409 }
14410 return resultobj;
14411 fail:
14412 return NULL;
14413 }
14414
14415
14416 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14417 PyObject *resultobj = 0;
14418 wxFont *arg1 = (wxFont *) 0 ;
14419 wxFont *arg2 = (wxFont *) 0 ;
14420 bool result;
14421 void *argp1 = 0 ;
14422 int res1 = 0 ;
14423 void *argp2 = 0 ;
14424 int res2 = 0 ;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14427 char * kwnames[] = {
14428 (char *) "self",(char *) "other", NULL
14429 };
14430
14431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14433 if (!SWIG_IsOK(res1)) {
14434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14435 }
14436 arg1 = reinterpret_cast< wxFont * >(argp1);
14437 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14438 if (!SWIG_IsOK(res2)) {
14439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14440 }
14441 arg2 = reinterpret_cast< wxFont * >(argp2);
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 {
14449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14450 }
14451 return resultobj;
14452 fail:
14453 return NULL;
14454 }
14455
14456
14457 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14458 PyObject *resultobj = 0;
14459 wxFont *arg1 = (wxFont *) 0 ;
14460 int result;
14461 void *argp1 = 0 ;
14462 int res1 = 0 ;
14463 PyObject *swig_obj[1] ;
14464
14465 if (!args) SWIG_fail;
14466 swig_obj[0] = args;
14467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14468 if (!SWIG_IsOK(res1)) {
14469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14470 }
14471 arg1 = reinterpret_cast< wxFont * >(argp1);
14472 {
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 result = (int)((wxFont const *)arg1)->GetPointSize();
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 resultobj = SWIG_From_int(static_cast< int >(result));
14479 return resultobj;
14480 fail:
14481 return NULL;
14482 }
14483
14484
14485 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14486 PyObject *resultobj = 0;
14487 wxFont *arg1 = (wxFont *) 0 ;
14488 wxSize result;
14489 void *argp1 = 0 ;
14490 int res1 = 0 ;
14491 PyObject *swig_obj[1] ;
14492
14493 if (!args) SWIG_fail;
14494 swig_obj[0] = args;
14495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14496 if (!SWIG_IsOK(res1)) {
14497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14498 }
14499 arg1 = reinterpret_cast< wxFont * >(argp1);
14500 {
14501 PyThreadState* __tstate = wxPyBeginAllowThreads();
14502 result = ((wxFont const *)arg1)->GetPixelSize();
14503 wxPyEndAllowThreads(__tstate);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
14506 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14507 return resultobj;
14508 fail:
14509 return NULL;
14510 }
14511
14512
14513 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14514 PyObject *resultobj = 0;
14515 wxFont *arg1 = (wxFont *) 0 ;
14516 bool result;
14517 void *argp1 = 0 ;
14518 int res1 = 0 ;
14519 PyObject *swig_obj[1] ;
14520
14521 if (!args) SWIG_fail;
14522 swig_obj[0] = args;
14523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14524 if (!SWIG_IsOK(res1)) {
14525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14526 }
14527 arg1 = reinterpret_cast< wxFont * >(argp1);
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 {
14535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14536 }
14537 return resultobj;
14538 fail:
14539 return NULL;
14540 }
14541
14542
14543 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14544 PyObject *resultobj = 0;
14545 wxFont *arg1 = (wxFont *) 0 ;
14546 int result;
14547 void *argp1 = 0 ;
14548 int res1 = 0 ;
14549 PyObject *swig_obj[1] ;
14550
14551 if (!args) SWIG_fail;
14552 swig_obj[0] = args;
14553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14554 if (!SWIG_IsOK(res1)) {
14555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14556 }
14557 arg1 = reinterpret_cast< wxFont * >(argp1);
14558 {
14559 PyThreadState* __tstate = wxPyBeginAllowThreads();
14560 result = (int)((wxFont const *)arg1)->GetFamily();
14561 wxPyEndAllowThreads(__tstate);
14562 if (PyErr_Occurred()) SWIG_fail;
14563 }
14564 resultobj = SWIG_From_int(static_cast< int >(result));
14565 return resultobj;
14566 fail:
14567 return NULL;
14568 }
14569
14570
14571 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14572 PyObject *resultobj = 0;
14573 wxFont *arg1 = (wxFont *) 0 ;
14574 int result;
14575 void *argp1 = 0 ;
14576 int res1 = 0 ;
14577 PyObject *swig_obj[1] ;
14578
14579 if (!args) SWIG_fail;
14580 swig_obj[0] = args;
14581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14582 if (!SWIG_IsOK(res1)) {
14583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14584 }
14585 arg1 = reinterpret_cast< wxFont * >(argp1);
14586 {
14587 PyThreadState* __tstate = wxPyBeginAllowThreads();
14588 result = (int)((wxFont const *)arg1)->GetStyle();
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 resultobj = SWIG_From_int(static_cast< int >(result));
14593 return resultobj;
14594 fail:
14595 return NULL;
14596 }
14597
14598
14599 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14600 PyObject *resultobj = 0;
14601 wxFont *arg1 = (wxFont *) 0 ;
14602 int result;
14603 void *argp1 = 0 ;
14604 int res1 = 0 ;
14605 PyObject *swig_obj[1] ;
14606
14607 if (!args) SWIG_fail;
14608 swig_obj[0] = args;
14609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14610 if (!SWIG_IsOK(res1)) {
14611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14612 }
14613 arg1 = reinterpret_cast< wxFont * >(argp1);
14614 {
14615 PyThreadState* __tstate = wxPyBeginAllowThreads();
14616 result = (int)((wxFont const *)arg1)->GetWeight();
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 resultobj = SWIG_From_int(static_cast< int >(result));
14621 return resultobj;
14622 fail:
14623 return NULL;
14624 }
14625
14626
14627 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14628 PyObject *resultobj = 0;
14629 wxFont *arg1 = (wxFont *) 0 ;
14630 bool result;
14631 void *argp1 = 0 ;
14632 int res1 = 0 ;
14633 PyObject *swig_obj[1] ;
14634
14635 if (!args) SWIG_fail;
14636 swig_obj[0] = args;
14637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14638 if (!SWIG_IsOK(res1)) {
14639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14640 }
14641 arg1 = reinterpret_cast< wxFont * >(argp1);
14642 {
14643 PyThreadState* __tstate = wxPyBeginAllowThreads();
14644 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14645 wxPyEndAllowThreads(__tstate);
14646 if (PyErr_Occurred()) SWIG_fail;
14647 }
14648 {
14649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14650 }
14651 return resultobj;
14652 fail:
14653 return NULL;
14654 }
14655
14656
14657 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14658 PyObject *resultobj = 0;
14659 wxFont *arg1 = (wxFont *) 0 ;
14660 wxString result;
14661 void *argp1 = 0 ;
14662 int res1 = 0 ;
14663 PyObject *swig_obj[1] ;
14664
14665 if (!args) SWIG_fail;
14666 swig_obj[0] = args;
14667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14668 if (!SWIG_IsOK(res1)) {
14669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14670 }
14671 arg1 = reinterpret_cast< wxFont * >(argp1);
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 result = ((wxFont const *)arg1)->GetFaceName();
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 {
14679 #if wxUSE_UNICODE
14680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14681 #else
14682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14683 #endif
14684 }
14685 return resultobj;
14686 fail:
14687 return NULL;
14688 }
14689
14690
14691 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14692 PyObject *resultobj = 0;
14693 wxFont *arg1 = (wxFont *) 0 ;
14694 wxFontEncoding result;
14695 void *argp1 = 0 ;
14696 int res1 = 0 ;
14697 PyObject *swig_obj[1] ;
14698
14699 if (!args) SWIG_fail;
14700 swig_obj[0] = args;
14701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14702 if (!SWIG_IsOK(res1)) {
14703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14704 }
14705 arg1 = reinterpret_cast< wxFont * >(argp1);
14706 {
14707 PyThreadState* __tstate = wxPyBeginAllowThreads();
14708 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 resultobj = SWIG_From_int(static_cast< int >(result));
14713 return resultobj;
14714 fail:
14715 return NULL;
14716 }
14717
14718
14719 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14720 PyObject *resultobj = 0;
14721 wxFont *arg1 = (wxFont *) 0 ;
14722 wxNativeFontInfo *result = 0 ;
14723 void *argp1 = 0 ;
14724 int res1 = 0 ;
14725 PyObject *swig_obj[1] ;
14726
14727 if (!args) SWIG_fail;
14728 swig_obj[0] = args;
14729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14730 if (!SWIG_IsOK(res1)) {
14731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14732 }
14733 arg1 = reinterpret_cast< wxFont * >(argp1);
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14741 return resultobj;
14742 fail:
14743 return NULL;
14744 }
14745
14746
14747 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14748 PyObject *resultobj = 0;
14749 wxFont *arg1 = (wxFont *) 0 ;
14750 bool result;
14751 void *argp1 = 0 ;
14752 int res1 = 0 ;
14753 PyObject *swig_obj[1] ;
14754
14755 if (!args) SWIG_fail;
14756 swig_obj[0] = args;
14757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14758 if (!SWIG_IsOK(res1)) {
14759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14760 }
14761 arg1 = reinterpret_cast< wxFont * >(argp1);
14762 {
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14765 wxPyEndAllowThreads(__tstate);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 {
14769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14770 }
14771 return resultobj;
14772 fail:
14773 return NULL;
14774 }
14775
14776
14777 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14778 PyObject *resultobj = 0;
14779 wxFont *arg1 = (wxFont *) 0 ;
14780 wxString result;
14781 void *argp1 = 0 ;
14782 int res1 = 0 ;
14783 PyObject *swig_obj[1] ;
14784
14785 if (!args) SWIG_fail;
14786 swig_obj[0] = args;
14787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14788 if (!SWIG_IsOK(res1)) {
14789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14790 }
14791 arg1 = reinterpret_cast< wxFont * >(argp1);
14792 {
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 {
14799 #if wxUSE_UNICODE
14800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14801 #else
14802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14803 #endif
14804 }
14805 return resultobj;
14806 fail:
14807 return NULL;
14808 }
14809
14810
14811 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14812 PyObject *resultobj = 0;
14813 wxFont *arg1 = (wxFont *) 0 ;
14814 wxString result;
14815 void *argp1 = 0 ;
14816 int res1 = 0 ;
14817 PyObject *swig_obj[1] ;
14818
14819 if (!args) SWIG_fail;
14820 swig_obj[0] = args;
14821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14822 if (!SWIG_IsOK(res1)) {
14823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14824 }
14825 arg1 = reinterpret_cast< wxFont * >(argp1);
14826 {
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14829 wxPyEndAllowThreads(__tstate);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
14832 {
14833 #if wxUSE_UNICODE
14834 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14835 #else
14836 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14837 #endif
14838 }
14839 return resultobj;
14840 fail:
14841 return NULL;
14842 }
14843
14844
14845 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14846 PyObject *resultobj = 0;
14847 wxFont *arg1 = (wxFont *) 0 ;
14848 int arg2 ;
14849 void *argp1 = 0 ;
14850 int res1 = 0 ;
14851 int val2 ;
14852 int ecode2 = 0 ;
14853 PyObject * obj0 = 0 ;
14854 PyObject * obj1 = 0 ;
14855 char * kwnames[] = {
14856 (char *) "self",(char *) "pointSize", NULL
14857 };
14858
14859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14861 if (!SWIG_IsOK(res1)) {
14862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14863 }
14864 arg1 = reinterpret_cast< wxFont * >(argp1);
14865 ecode2 = SWIG_AsVal_int(obj1, &val2);
14866 if (!SWIG_IsOK(ecode2)) {
14867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14868 }
14869 arg2 = static_cast< int >(val2);
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 (arg1)->SetPointSize(arg2);
14873 wxPyEndAllowThreads(__tstate);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 }
14876 resultobj = SWIG_Py_Void();
14877 return resultobj;
14878 fail:
14879 return NULL;
14880 }
14881
14882
14883 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14884 PyObject *resultobj = 0;
14885 wxFont *arg1 = (wxFont *) 0 ;
14886 wxSize *arg2 = 0 ;
14887 void *argp1 = 0 ;
14888 int res1 = 0 ;
14889 wxSize temp2 ;
14890 PyObject * obj0 = 0 ;
14891 PyObject * obj1 = 0 ;
14892 char * kwnames[] = {
14893 (char *) "self",(char *) "pixelSize", NULL
14894 };
14895
14896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14898 if (!SWIG_IsOK(res1)) {
14899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14900 }
14901 arg1 = reinterpret_cast< wxFont * >(argp1);
14902 {
14903 arg2 = &temp2;
14904 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14905 }
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 (arg1)->SetPixelSize((wxSize const &)*arg2);
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
14912 resultobj = SWIG_Py_Void();
14913 return resultobj;
14914 fail:
14915 return NULL;
14916 }
14917
14918
14919 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14920 PyObject *resultobj = 0;
14921 wxFont *arg1 = (wxFont *) 0 ;
14922 int arg2 ;
14923 void *argp1 = 0 ;
14924 int res1 = 0 ;
14925 int val2 ;
14926 int ecode2 = 0 ;
14927 PyObject * obj0 = 0 ;
14928 PyObject * obj1 = 0 ;
14929 char * kwnames[] = {
14930 (char *) "self",(char *) "family", NULL
14931 };
14932
14933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14935 if (!SWIG_IsOK(res1)) {
14936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14937 }
14938 arg1 = reinterpret_cast< wxFont * >(argp1);
14939 ecode2 = SWIG_AsVal_int(obj1, &val2);
14940 if (!SWIG_IsOK(ecode2)) {
14941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14942 }
14943 arg2 = static_cast< int >(val2);
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 (arg1)->SetFamily(arg2);
14947 wxPyEndAllowThreads(__tstate);
14948 if (PyErr_Occurred()) SWIG_fail;
14949 }
14950 resultobj = SWIG_Py_Void();
14951 return resultobj;
14952 fail:
14953 return NULL;
14954 }
14955
14956
14957 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14958 PyObject *resultobj = 0;
14959 wxFont *arg1 = (wxFont *) 0 ;
14960 int arg2 ;
14961 void *argp1 = 0 ;
14962 int res1 = 0 ;
14963 int val2 ;
14964 int ecode2 = 0 ;
14965 PyObject * obj0 = 0 ;
14966 PyObject * obj1 = 0 ;
14967 char * kwnames[] = {
14968 (char *) "self",(char *) "style", NULL
14969 };
14970
14971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14975 }
14976 arg1 = reinterpret_cast< wxFont * >(argp1);
14977 ecode2 = SWIG_AsVal_int(obj1, &val2);
14978 if (!SWIG_IsOK(ecode2)) {
14979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14980 }
14981 arg2 = static_cast< int >(val2);
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 (arg1)->SetStyle(arg2);
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 resultobj = SWIG_Py_Void();
14989 return resultobj;
14990 fail:
14991 return NULL;
14992 }
14993
14994
14995 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14996 PyObject *resultobj = 0;
14997 wxFont *arg1 = (wxFont *) 0 ;
14998 int arg2 ;
14999 void *argp1 = 0 ;
15000 int res1 = 0 ;
15001 int val2 ;
15002 int ecode2 = 0 ;
15003 PyObject * obj0 = 0 ;
15004 PyObject * obj1 = 0 ;
15005 char * kwnames[] = {
15006 (char *) "self",(char *) "weight", NULL
15007 };
15008
15009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15011 if (!SWIG_IsOK(res1)) {
15012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15013 }
15014 arg1 = reinterpret_cast< wxFont * >(argp1);
15015 ecode2 = SWIG_AsVal_int(obj1, &val2);
15016 if (!SWIG_IsOK(ecode2)) {
15017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15018 }
15019 arg2 = static_cast< int >(val2);
15020 {
15021 PyThreadState* __tstate = wxPyBeginAllowThreads();
15022 (arg1)->SetWeight(arg2);
15023 wxPyEndAllowThreads(__tstate);
15024 if (PyErr_Occurred()) SWIG_fail;
15025 }
15026 resultobj = SWIG_Py_Void();
15027 return resultobj;
15028 fail:
15029 return NULL;
15030 }
15031
15032
15033 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15034 PyObject *resultobj = 0;
15035 wxFont *arg1 = (wxFont *) 0 ;
15036 wxString *arg2 = 0 ;
15037 bool result;
15038 void *argp1 = 0 ;
15039 int res1 = 0 ;
15040 bool temp2 = false ;
15041 PyObject * obj0 = 0 ;
15042 PyObject * obj1 = 0 ;
15043 char * kwnames[] = {
15044 (char *) "self",(char *) "faceName", NULL
15045 };
15046
15047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15049 if (!SWIG_IsOK(res1)) {
15050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15051 }
15052 arg1 = reinterpret_cast< wxFont * >(argp1);
15053 {
15054 arg2 = wxString_in_helper(obj1);
15055 if (arg2 == NULL) SWIG_fail;
15056 temp2 = true;
15057 }
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 {
15065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15066 }
15067 {
15068 if (temp2)
15069 delete arg2;
15070 }
15071 return resultobj;
15072 fail:
15073 {
15074 if (temp2)
15075 delete arg2;
15076 }
15077 return NULL;
15078 }
15079
15080
15081 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15082 PyObject *resultobj = 0;
15083 wxFont *arg1 = (wxFont *) 0 ;
15084 bool arg2 ;
15085 void *argp1 = 0 ;
15086 int res1 = 0 ;
15087 bool val2 ;
15088 int ecode2 = 0 ;
15089 PyObject * obj0 = 0 ;
15090 PyObject * obj1 = 0 ;
15091 char * kwnames[] = {
15092 (char *) "self",(char *) "underlined", NULL
15093 };
15094
15095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15097 if (!SWIG_IsOK(res1)) {
15098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15099 }
15100 arg1 = reinterpret_cast< wxFont * >(argp1);
15101 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15102 if (!SWIG_IsOK(ecode2)) {
15103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15104 }
15105 arg2 = static_cast< bool >(val2);
15106 {
15107 PyThreadState* __tstate = wxPyBeginAllowThreads();
15108 (arg1)->SetUnderlined(arg2);
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 resultobj = SWIG_Py_Void();
15113 return resultobj;
15114 fail:
15115 return NULL;
15116 }
15117
15118
15119 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj = 0;
15121 wxFont *arg1 = (wxFont *) 0 ;
15122 wxFontEncoding arg2 ;
15123 void *argp1 = 0 ;
15124 int res1 = 0 ;
15125 int val2 ;
15126 int ecode2 = 0 ;
15127 PyObject * obj0 = 0 ;
15128 PyObject * obj1 = 0 ;
15129 char * kwnames[] = {
15130 (char *) "self",(char *) "encoding", NULL
15131 };
15132
15133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15135 if (!SWIG_IsOK(res1)) {
15136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15137 }
15138 arg1 = reinterpret_cast< wxFont * >(argp1);
15139 ecode2 = SWIG_AsVal_int(obj1, &val2);
15140 if (!SWIG_IsOK(ecode2)) {
15141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15142 }
15143 arg2 = static_cast< wxFontEncoding >(val2);
15144 {
15145 PyThreadState* __tstate = wxPyBeginAllowThreads();
15146 (arg1)->SetEncoding(arg2);
15147 wxPyEndAllowThreads(__tstate);
15148 if (PyErr_Occurred()) SWIG_fail;
15149 }
15150 resultobj = SWIG_Py_Void();
15151 return resultobj;
15152 fail:
15153 return NULL;
15154 }
15155
15156
15157 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15158 PyObject *resultobj = 0;
15159 wxFont *arg1 = (wxFont *) 0 ;
15160 wxNativeFontInfo *arg2 = 0 ;
15161 void *argp1 = 0 ;
15162 int res1 = 0 ;
15163 void *argp2 = 0 ;
15164 int res2 = 0 ;
15165 PyObject * obj0 = 0 ;
15166 PyObject * obj1 = 0 ;
15167 char * kwnames[] = {
15168 (char *) "self",(char *) "info", NULL
15169 };
15170
15171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15173 if (!SWIG_IsOK(res1)) {
15174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15175 }
15176 arg1 = reinterpret_cast< wxFont * >(argp1);
15177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15178 if (!SWIG_IsOK(res2)) {
15179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15180 }
15181 if (!argp2) {
15182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15183 }
15184 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15185 {
15186 PyThreadState* __tstate = wxPyBeginAllowThreads();
15187 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15188 wxPyEndAllowThreads(__tstate);
15189 if (PyErr_Occurred()) SWIG_fail;
15190 }
15191 resultobj = SWIG_Py_Void();
15192 return resultobj;
15193 fail:
15194 return NULL;
15195 }
15196
15197
15198 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj = 0;
15200 wxFont *arg1 = (wxFont *) 0 ;
15201 wxString *arg2 = 0 ;
15202 bool result;
15203 void *argp1 = 0 ;
15204 int res1 = 0 ;
15205 bool temp2 = false ;
15206 PyObject * obj0 = 0 ;
15207 PyObject * obj1 = 0 ;
15208 char * kwnames[] = {
15209 (char *) "self",(char *) "info", NULL
15210 };
15211
15212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15214 if (!SWIG_IsOK(res1)) {
15215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15216 }
15217 arg1 = reinterpret_cast< wxFont * >(argp1);
15218 {
15219 arg2 = wxString_in_helper(obj1);
15220 if (arg2 == NULL) SWIG_fail;
15221 temp2 = true;
15222 }
15223 {
15224 PyThreadState* __tstate = wxPyBeginAllowThreads();
15225 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15226 wxPyEndAllowThreads(__tstate);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 {
15230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15231 }
15232 {
15233 if (temp2)
15234 delete arg2;
15235 }
15236 return resultobj;
15237 fail:
15238 {
15239 if (temp2)
15240 delete arg2;
15241 }
15242 return NULL;
15243 }
15244
15245
15246 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15247 PyObject *resultobj = 0;
15248 wxFont *arg1 = (wxFont *) 0 ;
15249 wxString *arg2 = 0 ;
15250 bool result;
15251 void *argp1 = 0 ;
15252 int res1 = 0 ;
15253 bool temp2 = false ;
15254 PyObject * obj0 = 0 ;
15255 PyObject * obj1 = 0 ;
15256 char * kwnames[] = {
15257 (char *) "self",(char *) "info", NULL
15258 };
15259
15260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15262 if (!SWIG_IsOK(res1)) {
15263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15264 }
15265 arg1 = reinterpret_cast< wxFont * >(argp1);
15266 {
15267 arg2 = wxString_in_helper(obj1);
15268 if (arg2 == NULL) SWIG_fail;
15269 temp2 = true;
15270 }
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15274 wxPyEndAllowThreads(__tstate);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 {
15278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15279 }
15280 {
15281 if (temp2)
15282 delete arg2;
15283 }
15284 return resultobj;
15285 fail:
15286 {
15287 if (temp2)
15288 delete arg2;
15289 }
15290 return NULL;
15291 }
15292
15293
15294 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15295 PyObject *resultobj = 0;
15296 wxFont *arg1 = (wxFont *) 0 ;
15297 wxString result;
15298 void *argp1 = 0 ;
15299 int res1 = 0 ;
15300 PyObject *swig_obj[1] ;
15301
15302 if (!args) SWIG_fail;
15303 swig_obj[0] = args;
15304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15305 if (!SWIG_IsOK(res1)) {
15306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15307 }
15308 arg1 = reinterpret_cast< wxFont * >(argp1);
15309 {
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
15311 result = ((wxFont const *)arg1)->GetFamilyString();
15312 wxPyEndAllowThreads(__tstate);
15313 if (PyErr_Occurred()) SWIG_fail;
15314 }
15315 {
15316 #if wxUSE_UNICODE
15317 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15318 #else
15319 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15320 #endif
15321 }
15322 return resultobj;
15323 fail:
15324 return NULL;
15325 }
15326
15327
15328 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15329 PyObject *resultobj = 0;
15330 wxFont *arg1 = (wxFont *) 0 ;
15331 wxString result;
15332 void *argp1 = 0 ;
15333 int res1 = 0 ;
15334 PyObject *swig_obj[1] ;
15335
15336 if (!args) SWIG_fail;
15337 swig_obj[0] = args;
15338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15339 if (!SWIG_IsOK(res1)) {
15340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15341 }
15342 arg1 = reinterpret_cast< wxFont * >(argp1);
15343 {
15344 PyThreadState* __tstate = wxPyBeginAllowThreads();
15345 result = ((wxFont const *)arg1)->GetStyleString();
15346 wxPyEndAllowThreads(__tstate);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
15349 {
15350 #if wxUSE_UNICODE
15351 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15352 #else
15353 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15354 #endif
15355 }
15356 return resultobj;
15357 fail:
15358 return NULL;
15359 }
15360
15361
15362 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15363 PyObject *resultobj = 0;
15364 wxFont *arg1 = (wxFont *) 0 ;
15365 wxString result;
15366 void *argp1 = 0 ;
15367 int res1 = 0 ;
15368 PyObject *swig_obj[1] ;
15369
15370 if (!args) SWIG_fail;
15371 swig_obj[0] = args;
15372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15373 if (!SWIG_IsOK(res1)) {
15374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15375 }
15376 arg1 = reinterpret_cast< wxFont * >(argp1);
15377 {
15378 PyThreadState* __tstate = wxPyBeginAllowThreads();
15379 result = ((wxFont const *)arg1)->GetWeightString();
15380 wxPyEndAllowThreads(__tstate);
15381 if (PyErr_Occurred()) SWIG_fail;
15382 }
15383 {
15384 #if wxUSE_UNICODE
15385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15386 #else
15387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15388 #endif
15389 }
15390 return resultobj;
15391 fail:
15392 return NULL;
15393 }
15394
15395
15396 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15397 PyObject *resultobj = 0;
15398 wxFont *arg1 = (wxFont *) 0 ;
15399 bool arg2 = (bool) true ;
15400 void *argp1 = 0 ;
15401 int res1 = 0 ;
15402 bool val2 ;
15403 int ecode2 = 0 ;
15404 PyObject * obj0 = 0 ;
15405 PyObject * obj1 = 0 ;
15406 char * kwnames[] = {
15407 (char *) "self",(char *) "no", NULL
15408 };
15409
15410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15412 if (!SWIG_IsOK(res1)) {
15413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15414 }
15415 arg1 = reinterpret_cast< wxFont * >(argp1);
15416 if (obj1) {
15417 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15418 if (!SWIG_IsOK(ecode2)) {
15419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15420 }
15421 arg2 = static_cast< bool >(val2);
15422 }
15423 {
15424 PyThreadState* __tstate = wxPyBeginAllowThreads();
15425 (arg1)->SetNoAntiAliasing(arg2);
15426 wxPyEndAllowThreads(__tstate);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15429 resultobj = SWIG_Py_Void();
15430 return resultobj;
15431 fail:
15432 return NULL;
15433 }
15434
15435
15436 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15437 PyObject *resultobj = 0;
15438 wxFont *arg1 = (wxFont *) 0 ;
15439 bool result;
15440 void *argp1 = 0 ;
15441 int res1 = 0 ;
15442 PyObject *swig_obj[1] ;
15443
15444 if (!args) SWIG_fail;
15445 swig_obj[0] = args;
15446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15447 if (!SWIG_IsOK(res1)) {
15448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15449 }
15450 arg1 = reinterpret_cast< wxFont * >(argp1);
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 {
15458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15459 }
15460 return resultobj;
15461 fail:
15462 return NULL;
15463 }
15464
15465
15466 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15467 PyObject *resultobj = 0;
15468 wxFontEncoding result;
15469
15470 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15471 {
15472 if (!wxPyCheckForApp()) SWIG_fail;
15473 PyThreadState* __tstate = wxPyBeginAllowThreads();
15474 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15475 wxPyEndAllowThreads(__tstate);
15476 if (PyErr_Occurred()) SWIG_fail;
15477 }
15478 resultobj = SWIG_From_int(static_cast< int >(result));
15479 return resultobj;
15480 fail:
15481 return NULL;
15482 }
15483
15484
15485 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15486 PyObject *resultobj = 0;
15487 wxFontEncoding arg1 ;
15488 int val1 ;
15489 int ecode1 = 0 ;
15490 PyObject * obj0 = 0 ;
15491 char * kwnames[] = {
15492 (char *) "encoding", NULL
15493 };
15494
15495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15496 ecode1 = SWIG_AsVal_int(obj0, &val1);
15497 if (!SWIG_IsOK(ecode1)) {
15498 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15499 }
15500 arg1 = static_cast< wxFontEncoding >(val1);
15501 {
15502 if (!wxPyCheckForApp()) SWIG_fail;
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 wxFont::SetDefaultEncoding(arg1);
15505 wxPyEndAllowThreads(__tstate);
15506 if (PyErr_Occurred()) SWIG_fail;
15507 }
15508 resultobj = SWIG_Py_Void();
15509 return resultobj;
15510 fail:
15511 return NULL;
15512 }
15513
15514
15515 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15516 PyObject *obj;
15517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15518 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15519 return SWIG_Py_Void();
15520 }
15521
15522 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15523 return SWIG_Python_InitShadowInstance(args);
15524 }
15525
15526 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15527 PyObject *resultobj = 0;
15528 wxPyFontEnumerator *result = 0 ;
15529
15530 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15531 {
15532 if (!wxPyCheckForApp()) SWIG_fail;
15533 PyThreadState* __tstate = wxPyBeginAllowThreads();
15534 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15539 return resultobj;
15540 fail:
15541 return NULL;
15542 }
15543
15544
15545 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15546 PyObject *resultobj = 0;
15547 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15548 void *argp1 = 0 ;
15549 int res1 = 0 ;
15550 PyObject *swig_obj[1] ;
15551
15552 if (!args) SWIG_fail;
15553 swig_obj[0] = args;
15554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15555 if (!SWIG_IsOK(res1)) {
15556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15557 }
15558 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15559 {
15560 PyThreadState* __tstate = wxPyBeginAllowThreads();
15561 delete arg1;
15562
15563 wxPyEndAllowThreads(__tstate);
15564 if (PyErr_Occurred()) SWIG_fail;
15565 }
15566 resultobj = SWIG_Py_Void();
15567 return resultobj;
15568 fail:
15569 return NULL;
15570 }
15571
15572
15573 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15574 PyObject *resultobj = 0;
15575 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15576 PyObject *arg2 = (PyObject *) 0 ;
15577 PyObject *arg3 = (PyObject *) 0 ;
15578 bool arg4 ;
15579 void *argp1 = 0 ;
15580 int res1 = 0 ;
15581 bool val4 ;
15582 int ecode4 = 0 ;
15583 PyObject * obj0 = 0 ;
15584 PyObject * obj1 = 0 ;
15585 PyObject * obj2 = 0 ;
15586 PyObject * obj3 = 0 ;
15587 char * kwnames[] = {
15588 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15589 };
15590
15591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15593 if (!SWIG_IsOK(res1)) {
15594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15595 }
15596 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15597 arg2 = obj1;
15598 arg3 = obj2;
15599 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15600 if (!SWIG_IsOK(ecode4)) {
15601 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15602 }
15603 arg4 = static_cast< bool >(val4);
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
15606 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 resultobj = SWIG_Py_Void();
15611 return resultobj;
15612 fail:
15613 return NULL;
15614 }
15615
15616
15617 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15618 PyObject *resultobj = 0;
15619 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15620 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15621 bool arg3 = (bool) false ;
15622 bool result;
15623 void *argp1 = 0 ;
15624 int res1 = 0 ;
15625 int val2 ;
15626 int ecode2 = 0 ;
15627 bool val3 ;
15628 int ecode3 = 0 ;
15629 PyObject * obj0 = 0 ;
15630 PyObject * obj1 = 0 ;
15631 PyObject * obj2 = 0 ;
15632 char * kwnames[] = {
15633 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15634 };
15635
15636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15638 if (!SWIG_IsOK(res1)) {
15639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15640 }
15641 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15642 if (obj1) {
15643 ecode2 = SWIG_AsVal_int(obj1, &val2);
15644 if (!SWIG_IsOK(ecode2)) {
15645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15646 }
15647 arg2 = static_cast< wxFontEncoding >(val2);
15648 }
15649 if (obj2) {
15650 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15651 if (!SWIG_IsOK(ecode3)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15653 }
15654 arg3 = static_cast< bool >(val3);
15655 }
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 {
15663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15664 }
15665 return resultobj;
15666 fail:
15667 return NULL;
15668 }
15669
15670
15671 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15672 PyObject *resultobj = 0;
15673 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15674 wxString const &arg2_defvalue = wxPyEmptyString ;
15675 wxString *arg2 = (wxString *) &arg2_defvalue ;
15676 bool result;
15677 void *argp1 = 0 ;
15678 int res1 = 0 ;
15679 bool temp2 = false ;
15680 PyObject * obj0 = 0 ;
15681 PyObject * obj1 = 0 ;
15682 char * kwnames[] = {
15683 (char *) "self",(char *) "facename", NULL
15684 };
15685
15686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15688 if (!SWIG_IsOK(res1)) {
15689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15690 }
15691 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15692 if (obj1) {
15693 {
15694 arg2 = wxString_in_helper(obj1);
15695 if (arg2 == NULL) SWIG_fail;
15696 temp2 = true;
15697 }
15698 }
15699 {
15700 PyThreadState* __tstate = wxPyBeginAllowThreads();
15701 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 {
15706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15707 }
15708 {
15709 if (temp2)
15710 delete arg2;
15711 }
15712 return resultobj;
15713 fail:
15714 {
15715 if (temp2)
15716 delete arg2;
15717 }
15718 return NULL;
15719 }
15720
15721
15722 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15723 PyObject *resultobj = 0;
15724 PyObject *result = 0 ;
15725
15726 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 resultobj = result;
15734 return resultobj;
15735 fail:
15736 return NULL;
15737 }
15738
15739
15740 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15741 PyObject *resultobj = 0;
15742 PyObject *result = 0 ;
15743
15744 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15748 wxPyEndAllowThreads(__tstate);
15749 if (PyErr_Occurred()) SWIG_fail;
15750 }
15751 resultobj = result;
15752 return resultobj;
15753 fail:
15754 return NULL;
15755 }
15756
15757
15758 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15759 PyObject *resultobj = 0;
15760 wxString *arg1 = 0 ;
15761 bool result;
15762 bool temp1 = false ;
15763 PyObject * obj0 = 0 ;
15764 char * kwnames[] = {
15765 (char *) "str", NULL
15766 };
15767
15768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15769 {
15770 arg1 = wxString_in_helper(obj0);
15771 if (arg1 == NULL) SWIG_fail;
15772 temp1 = true;
15773 }
15774 {
15775 PyThreadState* __tstate = wxPyBeginAllowThreads();
15776 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 {
15781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15782 }
15783 {
15784 if (temp1)
15785 delete arg1;
15786 }
15787 return resultobj;
15788 fail:
15789 {
15790 if (temp1)
15791 delete arg1;
15792 }
15793 return NULL;
15794 }
15795
15796
15797 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15798 PyObject *obj;
15799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15800 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15801 return SWIG_Py_Void();
15802 }
15803
15804 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15805 return SWIG_Python_InitShadowInstance(args);
15806 }
15807
15808 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15809 PyObject *resultobj = 0;
15810 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15811 int arg2 ;
15812 void *argp1 = 0 ;
15813 int res1 = 0 ;
15814 int val2 ;
15815 int ecode2 = 0 ;
15816 PyObject *swig_obj[2] ;
15817
15818 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15820 if (!SWIG_IsOK(res1)) {
15821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15822 }
15823 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15824 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15825 if (!SWIG_IsOK(ecode2)) {
15826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15827 }
15828 arg2 = static_cast< int >(val2);
15829 if (arg1) (arg1)->Language = arg2;
15830
15831 resultobj = SWIG_Py_Void();
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15839 PyObject *resultobj = 0;
15840 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15841 int result;
15842 void *argp1 = 0 ;
15843 int res1 = 0 ;
15844 PyObject *swig_obj[1] ;
15845
15846 if (!args) SWIG_fail;
15847 swig_obj[0] = args;
15848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15849 if (!SWIG_IsOK(res1)) {
15850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15851 }
15852 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15853 result = (int) ((arg1)->Language);
15854 resultobj = SWIG_From_int(static_cast< int >(result));
15855 return resultobj;
15856 fail:
15857 return NULL;
15858 }
15859
15860
15861 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15862 PyObject *resultobj = 0;
15863 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15864 wxString *arg2 = (wxString *) 0 ;
15865 void *argp1 = 0 ;
15866 int res1 = 0 ;
15867 bool temp2 = false ;
15868 PyObject *swig_obj[2] ;
15869
15870 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15872 if (!SWIG_IsOK(res1)) {
15873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15874 }
15875 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15876 {
15877 arg2 = wxString_in_helper(swig_obj[1]);
15878 if (arg2 == NULL) SWIG_fail;
15879 temp2 = true;
15880 }
15881 if (arg1) (arg1)->CanonicalName = *arg2;
15882
15883 resultobj = SWIG_Py_Void();
15884 {
15885 if (temp2)
15886 delete arg2;
15887 }
15888 return resultobj;
15889 fail:
15890 {
15891 if (temp2)
15892 delete arg2;
15893 }
15894 return NULL;
15895 }
15896
15897
15898 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15899 PyObject *resultobj = 0;
15900 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15901 wxString *result = 0 ;
15902 void *argp1 = 0 ;
15903 int res1 = 0 ;
15904 PyObject *swig_obj[1] ;
15905
15906 if (!args) SWIG_fail;
15907 swig_obj[0] = args;
15908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15909 if (!SWIG_IsOK(res1)) {
15910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15911 }
15912 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15913 result = (wxString *)& ((arg1)->CanonicalName);
15914 {
15915 #if wxUSE_UNICODE
15916 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15917 #else
15918 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15919 #endif
15920 }
15921 return resultobj;
15922 fail:
15923 return NULL;
15924 }
15925
15926
15927 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15928 PyObject *resultobj = 0;
15929 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15930 wxString *arg2 = (wxString *) 0 ;
15931 void *argp1 = 0 ;
15932 int res1 = 0 ;
15933 bool temp2 = false ;
15934 PyObject *swig_obj[2] ;
15935
15936 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15938 if (!SWIG_IsOK(res1)) {
15939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15940 }
15941 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15942 {
15943 arg2 = wxString_in_helper(swig_obj[1]);
15944 if (arg2 == NULL) SWIG_fail;
15945 temp2 = true;
15946 }
15947 if (arg1) (arg1)->Description = *arg2;
15948
15949 resultobj = SWIG_Py_Void();
15950 {
15951 if (temp2)
15952 delete arg2;
15953 }
15954 return resultobj;
15955 fail:
15956 {
15957 if (temp2)
15958 delete arg2;
15959 }
15960 return NULL;
15961 }
15962
15963
15964 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15965 PyObject *resultobj = 0;
15966 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15967 wxString *result = 0 ;
15968 void *argp1 = 0 ;
15969 int res1 = 0 ;
15970 PyObject *swig_obj[1] ;
15971
15972 if (!args) SWIG_fail;
15973 swig_obj[0] = args;
15974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15975 if (!SWIG_IsOK(res1)) {
15976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15977 }
15978 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15979 result = (wxString *)& ((arg1)->Description);
15980 {
15981 #if wxUSE_UNICODE
15982 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15983 #else
15984 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15985 #endif
15986 }
15987 return resultobj;
15988 fail:
15989 return NULL;
15990 }
15991
15992
15993 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15994 PyObject *obj;
15995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15996 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15997 return SWIG_Py_Void();
15998 }
15999
16000 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16001 PyObject *resultobj = 0;
16002 int arg1 = (int) -1 ;
16003 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16004 wxLocale *result = 0 ;
16005 int val1 ;
16006 int ecode1 = 0 ;
16007 int val2 ;
16008 int ecode2 = 0 ;
16009 PyObject * obj0 = 0 ;
16010 PyObject * obj1 = 0 ;
16011 char * kwnames[] = {
16012 (char *) "language",(char *) "flags", NULL
16013 };
16014
16015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16016 if (obj0) {
16017 ecode1 = SWIG_AsVal_int(obj0, &val1);
16018 if (!SWIG_IsOK(ecode1)) {
16019 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16020 }
16021 arg1 = static_cast< int >(val1);
16022 }
16023 if (obj1) {
16024 ecode2 = SWIG_AsVal_int(obj1, &val2);
16025 if (!SWIG_IsOK(ecode2)) {
16026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16027 }
16028 arg2 = static_cast< int >(val2);
16029 }
16030 {
16031 PyThreadState* __tstate = wxPyBeginAllowThreads();
16032 result = (wxLocale *)new_wxLocale(arg1,arg2);
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16037 return resultobj;
16038 fail:
16039 return NULL;
16040 }
16041
16042
16043 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16044 PyObject *resultobj = 0;
16045 wxLocale *arg1 = (wxLocale *) 0 ;
16046 void *argp1 = 0 ;
16047 int res1 = 0 ;
16048 PyObject *swig_obj[1] ;
16049
16050 if (!args) SWIG_fail;
16051 swig_obj[0] = args;
16052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16053 if (!SWIG_IsOK(res1)) {
16054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16055 }
16056 arg1 = reinterpret_cast< wxLocale * >(argp1);
16057 {
16058 PyThreadState* __tstate = wxPyBeginAllowThreads();
16059 delete arg1;
16060
16061 wxPyEndAllowThreads(__tstate);
16062 if (PyErr_Occurred()) SWIG_fail;
16063 }
16064 resultobj = SWIG_Py_Void();
16065 return resultobj;
16066 fail:
16067 return NULL;
16068 }
16069
16070
16071 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16072 PyObject *resultobj = 0;
16073 wxLocale *arg1 = (wxLocale *) 0 ;
16074 wxString *arg2 = 0 ;
16075 wxString const &arg3_defvalue = wxPyEmptyString ;
16076 wxString *arg3 = (wxString *) &arg3_defvalue ;
16077 wxString const &arg4_defvalue = wxPyEmptyString ;
16078 wxString *arg4 = (wxString *) &arg4_defvalue ;
16079 bool arg5 = (bool) true ;
16080 bool arg6 = (bool) false ;
16081 bool result;
16082 void *argp1 = 0 ;
16083 int res1 = 0 ;
16084 bool temp2 = false ;
16085 bool temp3 = false ;
16086 bool temp4 = false ;
16087 bool val5 ;
16088 int ecode5 = 0 ;
16089 bool val6 ;
16090 int ecode6 = 0 ;
16091 PyObject * obj0 = 0 ;
16092 PyObject * obj1 = 0 ;
16093 PyObject * obj2 = 0 ;
16094 PyObject * obj3 = 0 ;
16095 PyObject * obj4 = 0 ;
16096 PyObject * obj5 = 0 ;
16097 char * kwnames[] = {
16098 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16099 };
16100
16101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16103 if (!SWIG_IsOK(res1)) {
16104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16105 }
16106 arg1 = reinterpret_cast< wxLocale * >(argp1);
16107 {
16108 arg2 = wxString_in_helper(obj1);
16109 if (arg2 == NULL) SWIG_fail;
16110 temp2 = true;
16111 }
16112 if (obj2) {
16113 {
16114 arg3 = wxString_in_helper(obj2);
16115 if (arg3 == NULL) SWIG_fail;
16116 temp3 = true;
16117 }
16118 }
16119 if (obj3) {
16120 {
16121 arg4 = wxString_in_helper(obj3);
16122 if (arg4 == NULL) SWIG_fail;
16123 temp4 = true;
16124 }
16125 }
16126 if (obj4) {
16127 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16128 if (!SWIG_IsOK(ecode5)) {
16129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16130 }
16131 arg5 = static_cast< bool >(val5);
16132 }
16133 if (obj5) {
16134 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16135 if (!SWIG_IsOK(ecode6)) {
16136 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16137 }
16138 arg6 = static_cast< bool >(val6);
16139 }
16140 {
16141 PyThreadState* __tstate = wxPyBeginAllowThreads();
16142 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16143 wxPyEndAllowThreads(__tstate);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 }
16146 {
16147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16148 }
16149 {
16150 if (temp2)
16151 delete arg2;
16152 }
16153 {
16154 if (temp3)
16155 delete arg3;
16156 }
16157 {
16158 if (temp4)
16159 delete arg4;
16160 }
16161 return resultobj;
16162 fail:
16163 {
16164 if (temp2)
16165 delete arg2;
16166 }
16167 {
16168 if (temp3)
16169 delete arg3;
16170 }
16171 {
16172 if (temp4)
16173 delete arg4;
16174 }
16175 return NULL;
16176 }
16177
16178
16179 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16180 PyObject *resultobj = 0;
16181 wxLocale *arg1 = (wxLocale *) 0 ;
16182 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16183 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16184 bool result;
16185 void *argp1 = 0 ;
16186 int res1 = 0 ;
16187 int val2 ;
16188 int ecode2 = 0 ;
16189 int val3 ;
16190 int ecode3 = 0 ;
16191 PyObject * obj0 = 0 ;
16192 PyObject * obj1 = 0 ;
16193 PyObject * obj2 = 0 ;
16194 char * kwnames[] = {
16195 (char *) "self",(char *) "language",(char *) "flags", NULL
16196 };
16197
16198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16200 if (!SWIG_IsOK(res1)) {
16201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16202 }
16203 arg1 = reinterpret_cast< wxLocale * >(argp1);
16204 if (obj1) {
16205 ecode2 = SWIG_AsVal_int(obj1, &val2);
16206 if (!SWIG_IsOK(ecode2)) {
16207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16208 }
16209 arg2 = static_cast< int >(val2);
16210 }
16211 if (obj2) {
16212 ecode3 = SWIG_AsVal_int(obj2, &val3);
16213 if (!SWIG_IsOK(ecode3)) {
16214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16215 }
16216 arg3 = static_cast< int >(val3);
16217 }
16218 {
16219 PyThreadState* __tstate = wxPyBeginAllowThreads();
16220 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16221 wxPyEndAllowThreads(__tstate);
16222 if (PyErr_Occurred()) SWIG_fail;
16223 }
16224 {
16225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16226 }
16227 return resultobj;
16228 fail:
16229 return NULL;
16230 }
16231
16232
16233 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16234 PyObject *resultobj = 0;
16235 int result;
16236
16237 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16238 {
16239 PyThreadState* __tstate = wxPyBeginAllowThreads();
16240 result = (int)wxLocale::GetSystemLanguage();
16241 wxPyEndAllowThreads(__tstate);
16242 if (PyErr_Occurred()) SWIG_fail;
16243 }
16244 resultobj = SWIG_From_int(static_cast< int >(result));
16245 return resultobj;
16246 fail:
16247 return NULL;
16248 }
16249
16250
16251 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16252 PyObject *resultobj = 0;
16253 wxFontEncoding result;
16254
16255 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16256 {
16257 PyThreadState* __tstate = wxPyBeginAllowThreads();
16258 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16259 wxPyEndAllowThreads(__tstate);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 }
16262 resultobj = SWIG_From_int(static_cast< int >(result));
16263 return resultobj;
16264 fail:
16265 return NULL;
16266 }
16267
16268
16269 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16270 PyObject *resultobj = 0;
16271 wxString result;
16272
16273 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16274 {
16275 PyThreadState* __tstate = wxPyBeginAllowThreads();
16276 result = wxLocale::GetSystemEncodingName();
16277 wxPyEndAllowThreads(__tstate);
16278 if (PyErr_Occurred()) SWIG_fail;
16279 }
16280 {
16281 #if wxUSE_UNICODE
16282 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16283 #else
16284 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16285 #endif
16286 }
16287 return resultobj;
16288 fail:
16289 return NULL;
16290 }
16291
16292
16293 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16294 PyObject *resultobj = 0;
16295 wxLocale *arg1 = (wxLocale *) 0 ;
16296 bool result;
16297 void *argp1 = 0 ;
16298 int res1 = 0 ;
16299 PyObject *swig_obj[1] ;
16300
16301 if (!args) SWIG_fail;
16302 swig_obj[0] = args;
16303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16304 if (!SWIG_IsOK(res1)) {
16305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16306 }
16307 arg1 = reinterpret_cast< wxLocale * >(argp1);
16308 {
16309 PyThreadState* __tstate = wxPyBeginAllowThreads();
16310 result = (bool)((wxLocale const *)arg1)->IsOk();
16311 wxPyEndAllowThreads(__tstate);
16312 if (PyErr_Occurred()) SWIG_fail;
16313 }
16314 {
16315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16316 }
16317 return resultobj;
16318 fail:
16319 return NULL;
16320 }
16321
16322
16323 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16324 PyObject *resultobj = 0;
16325 wxLocale *arg1 = (wxLocale *) 0 ;
16326 wxString result;
16327 void *argp1 = 0 ;
16328 int res1 = 0 ;
16329 PyObject *swig_obj[1] ;
16330
16331 if (!args) SWIG_fail;
16332 swig_obj[0] = args;
16333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16334 if (!SWIG_IsOK(res1)) {
16335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16336 }
16337 arg1 = reinterpret_cast< wxLocale * >(argp1);
16338 {
16339 PyThreadState* __tstate = wxPyBeginAllowThreads();
16340 result = ((wxLocale const *)arg1)->GetLocale();
16341 wxPyEndAllowThreads(__tstate);
16342 if (PyErr_Occurred()) SWIG_fail;
16343 }
16344 {
16345 #if wxUSE_UNICODE
16346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16347 #else
16348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16349 #endif
16350 }
16351 return resultobj;
16352 fail:
16353 return NULL;
16354 }
16355
16356
16357 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16358 PyObject *resultobj = 0;
16359 wxLocale *arg1 = (wxLocale *) 0 ;
16360 int result;
16361 void *argp1 = 0 ;
16362 int res1 = 0 ;
16363 PyObject *swig_obj[1] ;
16364
16365 if (!args) SWIG_fail;
16366 swig_obj[0] = args;
16367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16368 if (!SWIG_IsOK(res1)) {
16369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16370 }
16371 arg1 = reinterpret_cast< wxLocale * >(argp1);
16372 {
16373 PyThreadState* __tstate = wxPyBeginAllowThreads();
16374 result = (int)((wxLocale const *)arg1)->GetLanguage();
16375 wxPyEndAllowThreads(__tstate);
16376 if (PyErr_Occurred()) SWIG_fail;
16377 }
16378 resultobj = SWIG_From_int(static_cast< int >(result));
16379 return resultobj;
16380 fail:
16381 return NULL;
16382 }
16383
16384
16385 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16386 PyObject *resultobj = 0;
16387 wxLocale *arg1 = (wxLocale *) 0 ;
16388 wxString result;
16389 void *argp1 = 0 ;
16390 int res1 = 0 ;
16391 PyObject *swig_obj[1] ;
16392
16393 if (!args) SWIG_fail;
16394 swig_obj[0] = args;
16395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16396 if (!SWIG_IsOK(res1)) {
16397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16398 }
16399 arg1 = reinterpret_cast< wxLocale * >(argp1);
16400 {
16401 PyThreadState* __tstate = wxPyBeginAllowThreads();
16402 result = ((wxLocale const *)arg1)->GetSysName();
16403 wxPyEndAllowThreads(__tstate);
16404 if (PyErr_Occurred()) SWIG_fail;
16405 }
16406 {
16407 #if wxUSE_UNICODE
16408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16409 #else
16410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16411 #endif
16412 }
16413 return resultobj;
16414 fail:
16415 return NULL;
16416 }
16417
16418
16419 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16420 PyObject *resultobj = 0;
16421 wxLocale *arg1 = (wxLocale *) 0 ;
16422 wxString result;
16423 void *argp1 = 0 ;
16424 int res1 = 0 ;
16425 PyObject *swig_obj[1] ;
16426
16427 if (!args) SWIG_fail;
16428 swig_obj[0] = args;
16429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16430 if (!SWIG_IsOK(res1)) {
16431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16432 }
16433 arg1 = reinterpret_cast< wxLocale * >(argp1);
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 result = ((wxLocale const *)arg1)->GetCanonicalName();
16437 wxPyEndAllowThreads(__tstate);
16438 if (PyErr_Occurred()) SWIG_fail;
16439 }
16440 {
16441 #if wxUSE_UNICODE
16442 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16443 #else
16444 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16445 #endif
16446 }
16447 return resultobj;
16448 fail:
16449 return NULL;
16450 }
16451
16452
16453 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16454 PyObject *resultobj = 0;
16455 wxString *arg1 = 0 ;
16456 bool temp1 = false ;
16457 PyObject * obj0 = 0 ;
16458 char * kwnames[] = {
16459 (char *) "prefix", NULL
16460 };
16461
16462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16463 {
16464 arg1 = wxString_in_helper(obj0);
16465 if (arg1 == NULL) SWIG_fail;
16466 temp1 = true;
16467 }
16468 {
16469 PyThreadState* __tstate = wxPyBeginAllowThreads();
16470 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 resultobj = SWIG_Py_Void();
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_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16490 PyObject *resultobj = 0;
16491 wxLocale *arg1 = (wxLocale *) 0 ;
16492 wxString *arg2 = 0 ;
16493 bool result;
16494 void *argp1 = 0 ;
16495 int res1 = 0 ;
16496 bool temp2 = false ;
16497 PyObject * obj0 = 0 ;
16498 PyObject * obj1 = 0 ;
16499 char * kwnames[] = {
16500 (char *) "self",(char *) "szDomain", NULL
16501 };
16502
16503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16505 if (!SWIG_IsOK(res1)) {
16506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16507 }
16508 arg1 = reinterpret_cast< wxLocale * >(argp1);
16509 {
16510 arg2 = wxString_in_helper(obj1);
16511 if (arg2 == NULL) SWIG_fail;
16512 temp2 = true;
16513 }
16514 {
16515 PyThreadState* __tstate = wxPyBeginAllowThreads();
16516 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16517 wxPyEndAllowThreads(__tstate);
16518 if (PyErr_Occurred()) SWIG_fail;
16519 }
16520 {
16521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16522 }
16523 {
16524 if (temp2)
16525 delete arg2;
16526 }
16527 return resultobj;
16528 fail:
16529 {
16530 if (temp2)
16531 delete arg2;
16532 }
16533 return NULL;
16534 }
16535
16536
16537 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16538 PyObject *resultobj = 0;
16539 wxLocale *arg1 = (wxLocale *) 0 ;
16540 wxString *arg2 = 0 ;
16541 bool result;
16542 void *argp1 = 0 ;
16543 int res1 = 0 ;
16544 bool temp2 = false ;
16545 PyObject * obj0 = 0 ;
16546 PyObject * obj1 = 0 ;
16547 char * kwnames[] = {
16548 (char *) "self",(char *) "szDomain", NULL
16549 };
16550
16551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16553 if (!SWIG_IsOK(res1)) {
16554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16555 }
16556 arg1 = reinterpret_cast< wxLocale * >(argp1);
16557 {
16558 arg2 = wxString_in_helper(obj1);
16559 if (arg2 == NULL) SWIG_fail;
16560 temp2 = true;
16561 }
16562 {
16563 PyThreadState* __tstate = wxPyBeginAllowThreads();
16564 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16565 wxPyEndAllowThreads(__tstate);
16566 if (PyErr_Occurred()) SWIG_fail;
16567 }
16568 {
16569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16570 }
16571 {
16572 if (temp2)
16573 delete arg2;
16574 }
16575 return resultobj;
16576 fail:
16577 {
16578 if (temp2)
16579 delete arg2;
16580 }
16581 return NULL;
16582 }
16583
16584
16585 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16586 PyObject *resultobj = 0;
16587 int arg1 ;
16588 wxLanguageInfo *result = 0 ;
16589 int val1 ;
16590 int ecode1 = 0 ;
16591 PyObject * obj0 = 0 ;
16592 char * kwnames[] = {
16593 (char *) "lang", NULL
16594 };
16595
16596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16597 ecode1 = SWIG_AsVal_int(obj0, &val1);
16598 if (!SWIG_IsOK(ecode1)) {
16599 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16600 }
16601 arg1 = static_cast< int >(val1);
16602 {
16603 PyThreadState* __tstate = wxPyBeginAllowThreads();
16604 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16605 wxPyEndAllowThreads(__tstate);
16606 if (PyErr_Occurred()) SWIG_fail;
16607 }
16608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16609 return resultobj;
16610 fail:
16611 return NULL;
16612 }
16613
16614
16615 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16616 PyObject *resultobj = 0;
16617 int arg1 ;
16618 wxString result;
16619 int val1 ;
16620 int ecode1 = 0 ;
16621 PyObject * obj0 = 0 ;
16622 char * kwnames[] = {
16623 (char *) "lang", NULL
16624 };
16625
16626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16627 ecode1 = SWIG_AsVal_int(obj0, &val1);
16628 if (!SWIG_IsOK(ecode1)) {
16629 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16630 }
16631 arg1 = static_cast< int >(val1);
16632 {
16633 PyThreadState* __tstate = wxPyBeginAllowThreads();
16634 result = wxLocale::GetLanguageName(arg1);
16635 wxPyEndAllowThreads(__tstate);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
16638 {
16639 #if wxUSE_UNICODE
16640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16641 #else
16642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16643 #endif
16644 }
16645 return resultobj;
16646 fail:
16647 return NULL;
16648 }
16649
16650
16651 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16652 PyObject *resultobj = 0;
16653 wxString *arg1 = 0 ;
16654 wxLanguageInfo *result = 0 ;
16655 bool temp1 = false ;
16656 PyObject * obj0 = 0 ;
16657 char * kwnames[] = {
16658 (char *) "locale", NULL
16659 };
16660
16661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16662 {
16663 arg1 = wxString_in_helper(obj0);
16664 if (arg1 == NULL) SWIG_fail;
16665 temp1 = true;
16666 }
16667 {
16668 PyThreadState* __tstate = wxPyBeginAllowThreads();
16669 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16670 wxPyEndAllowThreads(__tstate);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 }
16673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16674 {
16675 if (temp1)
16676 delete arg1;
16677 }
16678 return resultobj;
16679 fail:
16680 {
16681 if (temp1)
16682 delete arg1;
16683 }
16684 return NULL;
16685 }
16686
16687
16688 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16689 PyObject *resultobj = 0;
16690 wxLanguageInfo *arg1 = 0 ;
16691 void *argp1 = 0 ;
16692 int res1 = 0 ;
16693 PyObject * obj0 = 0 ;
16694 char * kwnames[] = {
16695 (char *) "info", NULL
16696 };
16697
16698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16699 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16700 if (!SWIG_IsOK(res1)) {
16701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16702 }
16703 if (!argp1) {
16704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16705 }
16706 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16707 {
16708 PyThreadState* __tstate = wxPyBeginAllowThreads();
16709 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16710 wxPyEndAllowThreads(__tstate);
16711 if (PyErr_Occurred()) SWIG_fail;
16712 }
16713 resultobj = SWIG_Py_Void();
16714 return resultobj;
16715 fail:
16716 return NULL;
16717 }
16718
16719
16720 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16721 PyObject *resultobj = 0;
16722 wxLocale *arg1 = (wxLocale *) 0 ;
16723 wxString *arg2 = 0 ;
16724 wxString const &arg3_defvalue = wxPyEmptyString ;
16725 wxString *arg3 = (wxString *) &arg3_defvalue ;
16726 wxString result;
16727 void *argp1 = 0 ;
16728 int res1 = 0 ;
16729 bool temp2 = false ;
16730 bool temp3 = false ;
16731 PyObject * obj0 = 0 ;
16732 PyObject * obj1 = 0 ;
16733 PyObject * obj2 = 0 ;
16734 char * kwnames[] = {
16735 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16736 };
16737
16738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16740 if (!SWIG_IsOK(res1)) {
16741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16742 }
16743 arg1 = reinterpret_cast< wxLocale * >(argp1);
16744 {
16745 arg2 = wxString_in_helper(obj1);
16746 if (arg2 == NULL) SWIG_fail;
16747 temp2 = true;
16748 }
16749 if (obj2) {
16750 {
16751 arg3 = wxString_in_helper(obj2);
16752 if (arg3 == NULL) SWIG_fail;
16753 temp3 = true;
16754 }
16755 }
16756 {
16757 PyThreadState* __tstate = wxPyBeginAllowThreads();
16758 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16759 wxPyEndAllowThreads(__tstate);
16760 if (PyErr_Occurred()) SWIG_fail;
16761 }
16762 {
16763 #if wxUSE_UNICODE
16764 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16765 #else
16766 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16767 #endif
16768 }
16769 {
16770 if (temp2)
16771 delete arg2;
16772 }
16773 {
16774 if (temp3)
16775 delete arg3;
16776 }
16777 return resultobj;
16778 fail:
16779 {
16780 if (temp2)
16781 delete arg2;
16782 }
16783 {
16784 if (temp3)
16785 delete arg3;
16786 }
16787 return NULL;
16788 }
16789
16790
16791 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16792 PyObject *resultobj = 0;
16793 wxLocale *arg1 = (wxLocale *) 0 ;
16794 wxString *result = 0 ;
16795 void *argp1 = 0 ;
16796 int res1 = 0 ;
16797 PyObject *swig_obj[1] ;
16798
16799 if (!args) SWIG_fail;
16800 swig_obj[0] = args;
16801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16802 if (!SWIG_IsOK(res1)) {
16803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16804 }
16805 arg1 = reinterpret_cast< wxLocale * >(argp1);
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 {
16809 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16810 result = (wxString *) &_result_ref;
16811 }
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 {
16816 #if wxUSE_UNICODE
16817 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16818 #else
16819 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16820 #endif
16821 }
16822 return resultobj;
16823 fail:
16824 return NULL;
16825 }
16826
16827
16828 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16829 PyObject *obj;
16830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16831 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16832 return SWIG_Py_Void();
16833 }
16834
16835 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16836 return SWIG_Python_InitShadowInstance(args);
16837 }
16838
16839 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16840 PyObject *resultobj = 0;
16841 int arg1 = (int) -1 ;
16842 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16843 wxPyLocale *result = 0 ;
16844 int val1 ;
16845 int ecode1 = 0 ;
16846 int val2 ;
16847 int ecode2 = 0 ;
16848 PyObject * obj0 = 0 ;
16849 PyObject * obj1 = 0 ;
16850 char * kwnames[] = {
16851 (char *) "language",(char *) "flags", NULL
16852 };
16853
16854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16855 if (obj0) {
16856 ecode1 = SWIG_AsVal_int(obj0, &val1);
16857 if (!SWIG_IsOK(ecode1)) {
16858 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16859 }
16860 arg1 = static_cast< int >(val1);
16861 }
16862 if (obj1) {
16863 ecode2 = SWIG_AsVal_int(obj1, &val2);
16864 if (!SWIG_IsOK(ecode2)) {
16865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16866 }
16867 arg2 = static_cast< int >(val2);
16868 }
16869 {
16870 PyThreadState* __tstate = wxPyBeginAllowThreads();
16871 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16872 wxPyEndAllowThreads(__tstate);
16873 if (PyErr_Occurred()) SWIG_fail;
16874 }
16875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16876 return resultobj;
16877 fail:
16878 return NULL;
16879 }
16880
16881
16882 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16883 PyObject *resultobj = 0;
16884 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16885 void *argp1 = 0 ;
16886 int res1 = 0 ;
16887 PyObject *swig_obj[1] ;
16888
16889 if (!args) SWIG_fail;
16890 swig_obj[0] = args;
16891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16892 if (!SWIG_IsOK(res1)) {
16893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16894 }
16895 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16896 {
16897 PyThreadState* __tstate = wxPyBeginAllowThreads();
16898 delete arg1;
16899
16900 wxPyEndAllowThreads(__tstate);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
16903 resultobj = SWIG_Py_Void();
16904 return resultobj;
16905 fail:
16906 return NULL;
16907 }
16908
16909
16910 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj = 0;
16912 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16913 PyObject *arg2 = (PyObject *) 0 ;
16914 PyObject *arg3 = (PyObject *) 0 ;
16915 void *argp1 = 0 ;
16916 int res1 = 0 ;
16917 PyObject * obj0 = 0 ;
16918 PyObject * obj1 = 0 ;
16919 PyObject * obj2 = 0 ;
16920 char * kwnames[] = {
16921 (char *) "self",(char *) "self",(char *) "_class", NULL
16922 };
16923
16924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16926 if (!SWIG_IsOK(res1)) {
16927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16928 }
16929 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16930 arg2 = obj1;
16931 arg3 = obj2;
16932 {
16933 PyThreadState* __tstate = wxPyBeginAllowThreads();
16934 (arg1)->_setCallbackInfo(arg2,arg3);
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 resultobj = SWIG_Py_Void();
16939 return resultobj;
16940 fail:
16941 return NULL;
16942 }
16943
16944
16945 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16946 PyObject *resultobj = 0;
16947 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16948 wxChar *arg2 = (wxChar *) 0 ;
16949 wxChar *arg3 = (wxChar *) NULL ;
16950 wxChar *result = 0 ;
16951 void *argp1 = 0 ;
16952 int res1 = 0 ;
16953 void *argp2 = 0 ;
16954 int res2 = 0 ;
16955 void *argp3 = 0 ;
16956 int res3 = 0 ;
16957 PyObject * obj0 = 0 ;
16958 PyObject * obj1 = 0 ;
16959 PyObject * obj2 = 0 ;
16960 char * kwnames[] = {
16961 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16962 };
16963
16964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16966 if (!SWIG_IsOK(res1)) {
16967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16968 }
16969 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16970 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16971 if (!SWIG_IsOK(res2)) {
16972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16973 }
16974 arg2 = reinterpret_cast< wxChar * >(argp2);
16975 if (obj2) {
16976 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16977 if (!SWIG_IsOK(res3)) {
16978 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16979 }
16980 arg3 = reinterpret_cast< wxChar * >(argp3);
16981 }
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16989 return resultobj;
16990 fail:
16991 return NULL;
16992 }
16993
16994
16995 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj = 0;
16997 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16998 wxChar *arg2 = (wxChar *) 0 ;
16999 wxChar *arg3 = (wxChar *) 0 ;
17000 size_t arg4 ;
17001 wxChar *arg5 = (wxChar *) NULL ;
17002 wxChar *result = 0 ;
17003 void *argp1 = 0 ;
17004 int res1 = 0 ;
17005 void *argp2 = 0 ;
17006 int res2 = 0 ;
17007 void *argp3 = 0 ;
17008 int res3 = 0 ;
17009 size_t val4 ;
17010 int ecode4 = 0 ;
17011 void *argp5 = 0 ;
17012 int res5 = 0 ;
17013 PyObject * obj0 = 0 ;
17014 PyObject * obj1 = 0 ;
17015 PyObject * obj2 = 0 ;
17016 PyObject * obj3 = 0 ;
17017 PyObject * obj4 = 0 ;
17018 char * kwnames[] = {
17019 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17020 };
17021
17022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17024 if (!SWIG_IsOK(res1)) {
17025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17026 }
17027 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17028 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17029 if (!SWIG_IsOK(res2)) {
17030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17031 }
17032 arg2 = reinterpret_cast< wxChar * >(argp2);
17033 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17034 if (!SWIG_IsOK(res3)) {
17035 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17036 }
17037 arg3 = reinterpret_cast< wxChar * >(argp3);
17038 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17039 if (!SWIG_IsOK(ecode4)) {
17040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17041 }
17042 arg4 = static_cast< size_t >(val4);
17043 if (obj4) {
17044 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17045 if (!SWIG_IsOK(res5)) {
17046 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17047 }
17048 arg5 = reinterpret_cast< wxChar * >(argp5);
17049 }
17050 {
17051 PyThreadState* __tstate = wxPyBeginAllowThreads();
17052 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17057 return resultobj;
17058 fail:
17059 return NULL;
17060 }
17061
17062
17063 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17064 PyObject *obj;
17065 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17066 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17067 return SWIG_Py_Void();
17068 }
17069
17070 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17071 return SWIG_Python_InitShadowInstance(args);
17072 }
17073
17074 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17075 PyObject *resultobj = 0;
17076 wxLocale *result = 0 ;
17077
17078 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17079 {
17080 PyThreadState* __tstate = wxPyBeginAllowThreads();
17081 result = (wxLocale *)wxGetLocale();
17082 wxPyEndAllowThreads(__tstate);
17083 if (PyErr_Occurred()) SWIG_fail;
17084 }
17085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17086 return resultobj;
17087 fail:
17088 return NULL;
17089 }
17090
17091
17092 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17093 PyObject *resultobj = 0;
17094 wxString *arg1 = 0 ;
17095 wxString result;
17096 bool temp1 = false ;
17097
17098 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17099 {
17100 arg1 = wxString_in_helper(swig_obj[0]);
17101 if (arg1 == NULL) SWIG_fail;
17102 temp1 = true;
17103 }
17104 {
17105 PyThreadState* __tstate = wxPyBeginAllowThreads();
17106 result = wxGetTranslation((wxString const &)*arg1);
17107 wxPyEndAllowThreads(__tstate);
17108 if (PyErr_Occurred()) SWIG_fail;
17109 }
17110 {
17111 #if wxUSE_UNICODE
17112 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17113 #else
17114 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17115 #endif
17116 }
17117 {
17118 if (temp1)
17119 delete arg1;
17120 }
17121 return resultobj;
17122 fail:
17123 {
17124 if (temp1)
17125 delete arg1;
17126 }
17127 return NULL;
17128 }
17129
17130
17131 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17132 PyObject *resultobj = 0;
17133 wxString *arg1 = 0 ;
17134 wxString *arg2 = 0 ;
17135 wxString result;
17136 bool temp1 = false ;
17137 bool temp2 = false ;
17138
17139 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17140 {
17141 arg1 = wxString_in_helper(swig_obj[0]);
17142 if (arg1 == NULL) SWIG_fail;
17143 temp1 = true;
17144 }
17145 {
17146 arg2 = wxString_in_helper(swig_obj[1]);
17147 if (arg2 == NULL) SWIG_fail;
17148 temp2 = true;
17149 }
17150 {
17151 PyThreadState* __tstate = wxPyBeginAllowThreads();
17152 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17153 wxPyEndAllowThreads(__tstate);
17154 if (PyErr_Occurred()) SWIG_fail;
17155 }
17156 {
17157 #if wxUSE_UNICODE
17158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17159 #else
17160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17161 #endif
17162 }
17163 {
17164 if (temp1)
17165 delete arg1;
17166 }
17167 {
17168 if (temp2)
17169 delete arg2;
17170 }
17171 return resultobj;
17172 fail:
17173 {
17174 if (temp1)
17175 delete arg1;
17176 }
17177 {
17178 if (temp2)
17179 delete arg2;
17180 }
17181 return NULL;
17182 }
17183
17184
17185 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17186 PyObject *resultobj = 0;
17187 wxString *arg1 = 0 ;
17188 wxString *arg2 = 0 ;
17189 size_t arg3 ;
17190 wxString result;
17191 bool temp1 = false ;
17192 bool temp2 = false ;
17193 size_t val3 ;
17194 int ecode3 = 0 ;
17195
17196 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17197 {
17198 arg1 = wxString_in_helper(swig_obj[0]);
17199 if (arg1 == NULL) SWIG_fail;
17200 temp1 = true;
17201 }
17202 {
17203 arg2 = wxString_in_helper(swig_obj[1]);
17204 if (arg2 == NULL) SWIG_fail;
17205 temp2 = true;
17206 }
17207 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17208 if (!SWIG_IsOK(ecode3)) {
17209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17210 }
17211 arg3 = static_cast< size_t >(val3);
17212 {
17213 PyThreadState* __tstate = wxPyBeginAllowThreads();
17214 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17215 wxPyEndAllowThreads(__tstate);
17216 if (PyErr_Occurred()) SWIG_fail;
17217 }
17218 {
17219 #if wxUSE_UNICODE
17220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17221 #else
17222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17223 #endif
17224 }
17225 {
17226 if (temp1)
17227 delete arg1;
17228 }
17229 {
17230 if (temp2)
17231 delete arg2;
17232 }
17233 return resultobj;
17234 fail:
17235 {
17236 if (temp1)
17237 delete arg1;
17238 }
17239 {
17240 if (temp2)
17241 delete arg2;
17242 }
17243 return NULL;
17244 }
17245
17246
17247 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17248 PyObject *resultobj = 0;
17249 wxString *arg1 = 0 ;
17250 wxString *arg2 = 0 ;
17251 size_t arg3 ;
17252 wxString *arg4 = 0 ;
17253 wxString result;
17254 bool temp1 = false ;
17255 bool temp2 = false ;
17256 size_t val3 ;
17257 int ecode3 = 0 ;
17258 bool temp4 = false ;
17259
17260 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17261 {
17262 arg1 = wxString_in_helper(swig_obj[0]);
17263 if (arg1 == NULL) SWIG_fail;
17264 temp1 = true;
17265 }
17266 {
17267 arg2 = wxString_in_helper(swig_obj[1]);
17268 if (arg2 == NULL) SWIG_fail;
17269 temp2 = true;
17270 }
17271 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17272 if (!SWIG_IsOK(ecode3)) {
17273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17274 }
17275 arg3 = static_cast< size_t >(val3);
17276 {
17277 arg4 = wxString_in_helper(swig_obj[3]);
17278 if (arg4 == NULL) SWIG_fail;
17279 temp4 = true;
17280 }
17281 {
17282 PyThreadState* __tstate = wxPyBeginAllowThreads();
17283 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17284 wxPyEndAllowThreads(__tstate);
17285 if (PyErr_Occurred()) SWIG_fail;
17286 }
17287 {
17288 #if wxUSE_UNICODE
17289 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17290 #else
17291 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17292 #endif
17293 }
17294 {
17295 if (temp1)
17296 delete arg1;
17297 }
17298 {
17299 if (temp2)
17300 delete arg2;
17301 }
17302 {
17303 if (temp4)
17304 delete arg4;
17305 }
17306 return resultobj;
17307 fail:
17308 {
17309 if (temp1)
17310 delete arg1;
17311 }
17312 {
17313 if (temp2)
17314 delete arg2;
17315 }
17316 {
17317 if (temp4)
17318 delete arg4;
17319 }
17320 return NULL;
17321 }
17322
17323
17324 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17325 int argc;
17326 PyObject *argv[5];
17327
17328 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17329 --argc;
17330 if (argc == 1) {
17331 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17332 }
17333 if (argc == 2) {
17334 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17335 }
17336 if (argc == 3) {
17337 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17338 }
17339 if (argc == 4) {
17340 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17341 }
17342
17343 fail:
17344 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17345 return NULL;
17346 }
17347
17348
17349 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17350 PyObject *resultobj = 0;
17351 wxEncodingConverter *result = 0 ;
17352
17353 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17354 {
17355 PyThreadState* __tstate = wxPyBeginAllowThreads();
17356 result = (wxEncodingConverter *)new wxEncodingConverter();
17357 wxPyEndAllowThreads(__tstate);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17361 return resultobj;
17362 fail:
17363 return NULL;
17364 }
17365
17366
17367 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17368 PyObject *resultobj = 0;
17369 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17370 void *argp1 = 0 ;
17371 int res1 = 0 ;
17372 PyObject *swig_obj[1] ;
17373
17374 if (!args) SWIG_fail;
17375 swig_obj[0] = args;
17376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17377 if (!SWIG_IsOK(res1)) {
17378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17379 }
17380 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17381 {
17382 PyThreadState* __tstate = wxPyBeginAllowThreads();
17383 delete arg1;
17384
17385 wxPyEndAllowThreads(__tstate);
17386 if (PyErr_Occurred()) SWIG_fail;
17387 }
17388 resultobj = SWIG_Py_Void();
17389 return resultobj;
17390 fail:
17391 return NULL;
17392 }
17393
17394
17395 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17396 PyObject *resultobj = 0;
17397 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17398 wxFontEncoding arg2 ;
17399 wxFontEncoding arg3 ;
17400 int arg4 = (int) wxCONVERT_STRICT ;
17401 bool result;
17402 void *argp1 = 0 ;
17403 int res1 = 0 ;
17404 int val2 ;
17405 int ecode2 = 0 ;
17406 int val3 ;
17407 int ecode3 = 0 ;
17408 int val4 ;
17409 int ecode4 = 0 ;
17410 PyObject * obj0 = 0 ;
17411 PyObject * obj1 = 0 ;
17412 PyObject * obj2 = 0 ;
17413 PyObject * obj3 = 0 ;
17414 char * kwnames[] = {
17415 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17416 };
17417
17418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17420 if (!SWIG_IsOK(res1)) {
17421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17422 }
17423 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17424 ecode2 = SWIG_AsVal_int(obj1, &val2);
17425 if (!SWIG_IsOK(ecode2)) {
17426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17427 }
17428 arg2 = static_cast< wxFontEncoding >(val2);
17429 ecode3 = SWIG_AsVal_int(obj2, &val3);
17430 if (!SWIG_IsOK(ecode3)) {
17431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17432 }
17433 arg3 = static_cast< wxFontEncoding >(val3);
17434 if (obj3) {
17435 ecode4 = SWIG_AsVal_int(obj3, &val4);
17436 if (!SWIG_IsOK(ecode4)) {
17437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17438 }
17439 arg4 = static_cast< int >(val4);
17440 }
17441 {
17442 PyThreadState* __tstate = wxPyBeginAllowThreads();
17443 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17444 wxPyEndAllowThreads(__tstate);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 {
17448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17449 }
17450 return resultobj;
17451 fail:
17452 return NULL;
17453 }
17454
17455
17456 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj = 0;
17458 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17459 wxString *arg2 = 0 ;
17460 wxString result;
17461 void *argp1 = 0 ;
17462 int res1 = 0 ;
17463 bool temp2 = false ;
17464 PyObject * obj0 = 0 ;
17465 PyObject * obj1 = 0 ;
17466 char * kwnames[] = {
17467 (char *) "self",(char *) "input", NULL
17468 };
17469
17470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17472 if (!SWIG_IsOK(res1)) {
17473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17474 }
17475 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17476 {
17477 arg2 = wxString_in_helper(obj1);
17478 if (arg2 == NULL) SWIG_fail;
17479 temp2 = true;
17480 }
17481 {
17482 PyThreadState* __tstate = wxPyBeginAllowThreads();
17483 result = (arg1)->Convert((wxString const &)*arg2);
17484 wxPyEndAllowThreads(__tstate);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 }
17487 {
17488 #if wxUSE_UNICODE
17489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17490 #else
17491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17492 #endif
17493 }
17494 {
17495 if (temp2)
17496 delete arg2;
17497 }
17498 return resultobj;
17499 fail:
17500 {
17501 if (temp2)
17502 delete arg2;
17503 }
17504 return NULL;
17505 }
17506
17507
17508 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17509 PyObject *resultobj = 0;
17510 wxFontEncoding arg1 ;
17511 int arg2 = (int) wxPLATFORM_CURRENT ;
17512 wxFontEncodingArray result;
17513 int val1 ;
17514 int ecode1 = 0 ;
17515 int val2 ;
17516 int ecode2 = 0 ;
17517 PyObject * obj0 = 0 ;
17518 PyObject * obj1 = 0 ;
17519 char * kwnames[] = {
17520 (char *) "enc",(char *) "platform", NULL
17521 };
17522
17523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17524 ecode1 = SWIG_AsVal_int(obj0, &val1);
17525 if (!SWIG_IsOK(ecode1)) {
17526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17527 }
17528 arg1 = static_cast< wxFontEncoding >(val1);
17529 if (obj1) {
17530 ecode2 = SWIG_AsVal_int(obj1, &val2);
17531 if (!SWIG_IsOK(ecode2)) {
17532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17533 }
17534 arg2 = static_cast< int >(val2);
17535 }
17536 {
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 {
17543 resultobj = PyList_New(0);
17544 for (size_t i=0; i < (&result)->GetCount(); i++) {
17545 PyObject* number = PyInt_FromLong((&result)->Item(i));
17546 PyList_Append(resultobj, number);
17547 Py_DECREF(number);
17548 }
17549 }
17550 return resultobj;
17551 fail:
17552 return NULL;
17553 }
17554
17555
17556 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17557 PyObject *resultobj = 0;
17558 wxFontEncoding arg1 ;
17559 wxFontEncodingArray result;
17560 int val1 ;
17561 int ecode1 = 0 ;
17562 PyObject * obj0 = 0 ;
17563 char * kwnames[] = {
17564 (char *) "enc", NULL
17565 };
17566
17567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17568 ecode1 = SWIG_AsVal_int(obj0, &val1);
17569 if (!SWIG_IsOK(ecode1)) {
17570 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17571 }
17572 arg1 = static_cast< wxFontEncoding >(val1);
17573 {
17574 PyThreadState* __tstate = wxPyBeginAllowThreads();
17575 result = wxEncodingConverter::GetAllEquivalents(arg1);
17576 wxPyEndAllowThreads(__tstate);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 {
17580 resultobj = PyList_New(0);
17581 for (size_t i=0; i < (&result)->GetCount(); i++) {
17582 PyObject* number = PyInt_FromLong((&result)->Item(i));
17583 PyList_Append(resultobj, number);
17584 Py_DECREF(number);
17585 }
17586 }
17587 return resultobj;
17588 fail:
17589 return NULL;
17590 }
17591
17592
17593 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17594 PyObject *resultobj = 0;
17595 wxFontEncoding arg1 ;
17596 wxFontEncoding arg2 ;
17597 bool result;
17598 int val1 ;
17599 int ecode1 = 0 ;
17600 int val2 ;
17601 int ecode2 = 0 ;
17602 PyObject * obj0 = 0 ;
17603 PyObject * obj1 = 0 ;
17604 char * kwnames[] = {
17605 (char *) "encIn",(char *) "encOut", NULL
17606 };
17607
17608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17609 ecode1 = SWIG_AsVal_int(obj0, &val1);
17610 if (!SWIG_IsOK(ecode1)) {
17611 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17612 }
17613 arg1 = static_cast< wxFontEncoding >(val1);
17614 ecode2 = SWIG_AsVal_int(obj1, &val2);
17615 if (!SWIG_IsOK(ecode2)) {
17616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17617 }
17618 arg2 = static_cast< wxFontEncoding >(val2);
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 {
17626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17627 }
17628 return resultobj;
17629 fail:
17630 return NULL;
17631 }
17632
17633
17634 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17635 PyObject *obj;
17636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17637 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17638 return SWIG_Py_Void();
17639 }
17640
17641 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17642 return SWIG_Python_InitShadowInstance(args);
17643 }
17644
17645 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17646 PyObject *resultobj = 0;
17647 wxDC *arg1 = (wxDC *) 0 ;
17648 void *argp1 = 0 ;
17649 int res1 = 0 ;
17650 PyObject *swig_obj[1] ;
17651
17652 if (!args) SWIG_fail;
17653 swig_obj[0] = args;
17654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17655 if (!SWIG_IsOK(res1)) {
17656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17657 }
17658 arg1 = reinterpret_cast< wxDC * >(argp1);
17659 {
17660 PyThreadState* __tstate = wxPyBeginAllowThreads();
17661 delete arg1;
17662
17663 wxPyEndAllowThreads(__tstate);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 }
17666 resultobj = SWIG_Py_Void();
17667 return resultobj;
17668 fail:
17669 return NULL;
17670 }
17671
17672
17673 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17674 PyObject *resultobj = 0;
17675 wxDC *arg1 = (wxDC *) 0 ;
17676 int arg2 ;
17677 int arg3 ;
17678 wxColour *arg4 = 0 ;
17679 int arg5 = (int) wxFLOOD_SURFACE ;
17680 bool result;
17681 void *argp1 = 0 ;
17682 int res1 = 0 ;
17683 int val2 ;
17684 int ecode2 = 0 ;
17685 int val3 ;
17686 int ecode3 = 0 ;
17687 wxColour temp4 ;
17688 int val5 ;
17689 int ecode5 = 0 ;
17690 PyObject * obj0 = 0 ;
17691 PyObject * obj1 = 0 ;
17692 PyObject * obj2 = 0 ;
17693 PyObject * obj3 = 0 ;
17694 PyObject * obj4 = 0 ;
17695 char * kwnames[] = {
17696 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17697 };
17698
17699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17701 if (!SWIG_IsOK(res1)) {
17702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17703 }
17704 arg1 = reinterpret_cast< wxDC * >(argp1);
17705 ecode2 = SWIG_AsVal_int(obj1, &val2);
17706 if (!SWIG_IsOK(ecode2)) {
17707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17708 }
17709 arg2 = static_cast< int >(val2);
17710 ecode3 = SWIG_AsVal_int(obj2, &val3);
17711 if (!SWIG_IsOK(ecode3)) {
17712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17713 }
17714 arg3 = static_cast< int >(val3);
17715 {
17716 arg4 = &temp4;
17717 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17718 }
17719 if (obj4) {
17720 ecode5 = SWIG_AsVal_int(obj4, &val5);
17721 if (!SWIG_IsOK(ecode5)) {
17722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17723 }
17724 arg5 = static_cast< int >(val5);
17725 }
17726 {
17727 PyThreadState* __tstate = wxPyBeginAllowThreads();
17728 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17729 wxPyEndAllowThreads(__tstate);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 }
17732 {
17733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17734 }
17735 return resultobj;
17736 fail:
17737 return NULL;
17738 }
17739
17740
17741 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17742 PyObject *resultobj = 0;
17743 wxDC *arg1 = (wxDC *) 0 ;
17744 wxPoint *arg2 = 0 ;
17745 wxColour *arg3 = 0 ;
17746 int arg4 = (int) wxFLOOD_SURFACE ;
17747 bool result;
17748 void *argp1 = 0 ;
17749 int res1 = 0 ;
17750 wxPoint temp2 ;
17751 wxColour temp3 ;
17752 int val4 ;
17753 int ecode4 = 0 ;
17754 PyObject * obj0 = 0 ;
17755 PyObject * obj1 = 0 ;
17756 PyObject * obj2 = 0 ;
17757 PyObject * obj3 = 0 ;
17758 char * kwnames[] = {
17759 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17760 };
17761
17762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17764 if (!SWIG_IsOK(res1)) {
17765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17766 }
17767 arg1 = reinterpret_cast< wxDC * >(argp1);
17768 {
17769 arg2 = &temp2;
17770 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17771 }
17772 {
17773 arg3 = &temp3;
17774 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17775 }
17776 if (obj3) {
17777 ecode4 = SWIG_AsVal_int(obj3, &val4);
17778 if (!SWIG_IsOK(ecode4)) {
17779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17780 }
17781 arg4 = static_cast< int >(val4);
17782 }
17783 {
17784 PyThreadState* __tstate = wxPyBeginAllowThreads();
17785 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17786 wxPyEndAllowThreads(__tstate);
17787 if (PyErr_Occurred()) SWIG_fail;
17788 }
17789 {
17790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17791 }
17792 return resultobj;
17793 fail:
17794 return NULL;
17795 }
17796
17797
17798 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17799 PyObject *resultobj = 0;
17800 wxDC *arg1 = (wxDC *) 0 ;
17801 wxRect *arg2 = 0 ;
17802 wxColour *arg3 = 0 ;
17803 wxColour *arg4 = 0 ;
17804 wxPoint *arg5 = 0 ;
17805 void *argp1 = 0 ;
17806 int res1 = 0 ;
17807 wxRect temp2 ;
17808 wxColour temp3 ;
17809 wxColour temp4 ;
17810 wxPoint temp5 ;
17811 PyObject * obj0 = 0 ;
17812 PyObject * obj1 = 0 ;
17813 PyObject * obj2 = 0 ;
17814 PyObject * obj3 = 0 ;
17815 PyObject * obj4 = 0 ;
17816 char * kwnames[] = {
17817 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17818 };
17819
17820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17822 if (!SWIG_IsOK(res1)) {
17823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17824 }
17825 arg1 = reinterpret_cast< wxDC * >(argp1);
17826 {
17827 arg2 = &temp2;
17828 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17829 }
17830 {
17831 arg3 = &temp3;
17832 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17833 }
17834 {
17835 arg4 = &temp4;
17836 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17837 }
17838 {
17839 arg5 = &temp5;
17840 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17841 }
17842 {
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17845 wxPyEndAllowThreads(__tstate);
17846 if (PyErr_Occurred()) SWIG_fail;
17847 }
17848 resultobj = SWIG_Py_Void();
17849 return resultobj;
17850 fail:
17851 return NULL;
17852 }
17853
17854
17855 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17856 PyObject *resultobj = 0;
17857 wxDC *arg1 = (wxDC *) 0 ;
17858 wxRect *arg2 = 0 ;
17859 wxColour *arg3 = 0 ;
17860 wxColour *arg4 = 0 ;
17861 wxDirection arg5 = (wxDirection) wxEAST ;
17862 void *argp1 = 0 ;
17863 int res1 = 0 ;
17864 wxRect temp2 ;
17865 wxColour temp3 ;
17866 wxColour temp4 ;
17867 int val5 ;
17868 int ecode5 = 0 ;
17869 PyObject * obj0 = 0 ;
17870 PyObject * obj1 = 0 ;
17871 PyObject * obj2 = 0 ;
17872 PyObject * obj3 = 0 ;
17873 PyObject * obj4 = 0 ;
17874 char * kwnames[] = {
17875 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17876 };
17877
17878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17880 if (!SWIG_IsOK(res1)) {
17881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17882 }
17883 arg1 = reinterpret_cast< wxDC * >(argp1);
17884 {
17885 arg2 = &temp2;
17886 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17887 }
17888 {
17889 arg3 = &temp3;
17890 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17891 }
17892 {
17893 arg4 = &temp4;
17894 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17895 }
17896 if (obj4) {
17897 ecode5 = SWIG_AsVal_int(obj4, &val5);
17898 if (!SWIG_IsOK(ecode5)) {
17899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17900 }
17901 arg5 = static_cast< wxDirection >(val5);
17902 }
17903 {
17904 PyThreadState* __tstate = wxPyBeginAllowThreads();
17905 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17906 wxPyEndAllowThreads(__tstate);
17907 if (PyErr_Occurred()) SWIG_fail;
17908 }
17909 resultobj = SWIG_Py_Void();
17910 return resultobj;
17911 fail:
17912 return NULL;
17913 }
17914
17915
17916 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17917 PyObject *resultobj = 0;
17918 wxDC *arg1 = (wxDC *) 0 ;
17919 int arg2 ;
17920 int arg3 ;
17921 wxColour result;
17922 void *argp1 = 0 ;
17923 int res1 = 0 ;
17924 int val2 ;
17925 int ecode2 = 0 ;
17926 int val3 ;
17927 int ecode3 = 0 ;
17928 PyObject * obj0 = 0 ;
17929 PyObject * obj1 = 0 ;
17930 PyObject * obj2 = 0 ;
17931 char * kwnames[] = {
17932 (char *) "self",(char *) "x",(char *) "y", NULL
17933 };
17934
17935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17937 if (!SWIG_IsOK(res1)) {
17938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17939 }
17940 arg1 = reinterpret_cast< wxDC * >(argp1);
17941 ecode2 = SWIG_AsVal_int(obj1, &val2);
17942 if (!SWIG_IsOK(ecode2)) {
17943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17944 }
17945 arg2 = static_cast< int >(val2);
17946 ecode3 = SWIG_AsVal_int(obj2, &val3);
17947 if (!SWIG_IsOK(ecode3)) {
17948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17949 }
17950 arg3 = static_cast< int >(val3);
17951 {
17952 PyThreadState* __tstate = wxPyBeginAllowThreads();
17953 result = wxDC_GetPixel(arg1,arg2,arg3);
17954 wxPyEndAllowThreads(__tstate);
17955 if (PyErr_Occurred()) SWIG_fail;
17956 }
17957 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17958 return resultobj;
17959 fail:
17960 return NULL;
17961 }
17962
17963
17964 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj = 0;
17966 wxDC *arg1 = (wxDC *) 0 ;
17967 wxPoint *arg2 = 0 ;
17968 wxColour result;
17969 void *argp1 = 0 ;
17970 int res1 = 0 ;
17971 wxPoint temp2 ;
17972 PyObject * obj0 = 0 ;
17973 PyObject * obj1 = 0 ;
17974 char * kwnames[] = {
17975 (char *) "self",(char *) "pt", NULL
17976 };
17977
17978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17980 if (!SWIG_IsOK(res1)) {
17981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17982 }
17983 arg1 = reinterpret_cast< wxDC * >(argp1);
17984 {
17985 arg2 = &temp2;
17986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17987 }
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17991 wxPyEndAllowThreads(__tstate);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 }
17994 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17995 return resultobj;
17996 fail:
17997 return NULL;
17998 }
17999
18000
18001 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18002 PyObject *resultobj = 0;
18003 wxDC *arg1 = (wxDC *) 0 ;
18004 int arg2 ;
18005 int arg3 ;
18006 int arg4 ;
18007 int arg5 ;
18008 void *argp1 = 0 ;
18009 int res1 = 0 ;
18010 int val2 ;
18011 int ecode2 = 0 ;
18012 int val3 ;
18013 int ecode3 = 0 ;
18014 int val4 ;
18015 int ecode4 = 0 ;
18016 int val5 ;
18017 int ecode5 = 0 ;
18018 PyObject * obj0 = 0 ;
18019 PyObject * obj1 = 0 ;
18020 PyObject * obj2 = 0 ;
18021 PyObject * obj3 = 0 ;
18022 PyObject * obj4 = 0 ;
18023 char * kwnames[] = {
18024 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18025 };
18026
18027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18029 if (!SWIG_IsOK(res1)) {
18030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18031 }
18032 arg1 = reinterpret_cast< wxDC * >(argp1);
18033 ecode2 = SWIG_AsVal_int(obj1, &val2);
18034 if (!SWIG_IsOK(ecode2)) {
18035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18036 }
18037 arg2 = static_cast< int >(val2);
18038 ecode3 = SWIG_AsVal_int(obj2, &val3);
18039 if (!SWIG_IsOK(ecode3)) {
18040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18041 }
18042 arg3 = static_cast< int >(val3);
18043 ecode4 = SWIG_AsVal_int(obj3, &val4);
18044 if (!SWIG_IsOK(ecode4)) {
18045 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18046 }
18047 arg4 = static_cast< int >(val4);
18048 ecode5 = SWIG_AsVal_int(obj4, &val5);
18049 if (!SWIG_IsOK(ecode5)) {
18050 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18051 }
18052 arg5 = static_cast< int >(val5);
18053 {
18054 PyThreadState* __tstate = wxPyBeginAllowThreads();
18055 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18056 wxPyEndAllowThreads(__tstate);
18057 if (PyErr_Occurred()) SWIG_fail;
18058 }
18059 resultobj = SWIG_Py_Void();
18060 return resultobj;
18061 fail:
18062 return NULL;
18063 }
18064
18065
18066 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18067 PyObject *resultobj = 0;
18068 wxDC *arg1 = (wxDC *) 0 ;
18069 wxPoint *arg2 = 0 ;
18070 wxPoint *arg3 = 0 ;
18071 void *argp1 = 0 ;
18072 int res1 = 0 ;
18073 wxPoint temp2 ;
18074 wxPoint temp3 ;
18075 PyObject * obj0 = 0 ;
18076 PyObject * obj1 = 0 ;
18077 PyObject * obj2 = 0 ;
18078 char * kwnames[] = {
18079 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18080 };
18081
18082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18084 if (!SWIG_IsOK(res1)) {
18085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18086 }
18087 arg1 = reinterpret_cast< wxDC * >(argp1);
18088 {
18089 arg2 = &temp2;
18090 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18091 }
18092 {
18093 arg3 = &temp3;
18094 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18095 }
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 resultobj = SWIG_Py_Void();
18103 return resultobj;
18104 fail:
18105 return NULL;
18106 }
18107
18108
18109 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18110 PyObject *resultobj = 0;
18111 wxDC *arg1 = (wxDC *) 0 ;
18112 int arg2 ;
18113 int arg3 ;
18114 void *argp1 = 0 ;
18115 int res1 = 0 ;
18116 int val2 ;
18117 int ecode2 = 0 ;
18118 int val3 ;
18119 int ecode3 = 0 ;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 PyObject * obj2 = 0 ;
18123 char * kwnames[] = {
18124 (char *) "self",(char *) "x",(char *) "y", NULL
18125 };
18126
18127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18129 if (!SWIG_IsOK(res1)) {
18130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18131 }
18132 arg1 = reinterpret_cast< wxDC * >(argp1);
18133 ecode2 = SWIG_AsVal_int(obj1, &val2);
18134 if (!SWIG_IsOK(ecode2)) {
18135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18136 }
18137 arg2 = static_cast< int >(val2);
18138 ecode3 = SWIG_AsVal_int(obj2, &val3);
18139 if (!SWIG_IsOK(ecode3)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18141 }
18142 arg3 = static_cast< int >(val3);
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 (arg1)->CrossHair(arg2,arg3);
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 resultobj = SWIG_Py_Void();
18150 return resultobj;
18151 fail:
18152 return NULL;
18153 }
18154
18155
18156 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj = 0;
18158 wxDC *arg1 = (wxDC *) 0 ;
18159 wxPoint *arg2 = 0 ;
18160 void *argp1 = 0 ;
18161 int res1 = 0 ;
18162 wxPoint temp2 ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 char * kwnames[] = {
18166 (char *) "self",(char *) "pt", NULL
18167 };
18168
18169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18171 if (!SWIG_IsOK(res1)) {
18172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18173 }
18174 arg1 = reinterpret_cast< wxDC * >(argp1);
18175 {
18176 arg2 = &temp2;
18177 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18178 }
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 (arg1)->CrossHair((wxPoint const &)*arg2);
18182 wxPyEndAllowThreads(__tstate);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 }
18185 resultobj = SWIG_Py_Void();
18186 return resultobj;
18187 fail:
18188 return NULL;
18189 }
18190
18191
18192 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18193 PyObject *resultobj = 0;
18194 wxDC *arg1 = (wxDC *) 0 ;
18195 int arg2 ;
18196 int arg3 ;
18197 int arg4 ;
18198 int arg5 ;
18199 int arg6 ;
18200 int arg7 ;
18201 void *argp1 = 0 ;
18202 int res1 = 0 ;
18203 int val2 ;
18204 int ecode2 = 0 ;
18205 int val3 ;
18206 int ecode3 = 0 ;
18207 int val4 ;
18208 int ecode4 = 0 ;
18209 int val5 ;
18210 int ecode5 = 0 ;
18211 int val6 ;
18212 int ecode6 = 0 ;
18213 int val7 ;
18214 int ecode7 = 0 ;
18215 PyObject * obj0 = 0 ;
18216 PyObject * obj1 = 0 ;
18217 PyObject * obj2 = 0 ;
18218 PyObject * obj3 = 0 ;
18219 PyObject * obj4 = 0 ;
18220 PyObject * obj5 = 0 ;
18221 PyObject * obj6 = 0 ;
18222 char * kwnames[] = {
18223 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18224 };
18225
18226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18228 if (!SWIG_IsOK(res1)) {
18229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18230 }
18231 arg1 = reinterpret_cast< wxDC * >(argp1);
18232 ecode2 = SWIG_AsVal_int(obj1, &val2);
18233 if (!SWIG_IsOK(ecode2)) {
18234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18235 }
18236 arg2 = static_cast< int >(val2);
18237 ecode3 = SWIG_AsVal_int(obj2, &val3);
18238 if (!SWIG_IsOK(ecode3)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18240 }
18241 arg3 = static_cast< int >(val3);
18242 ecode4 = SWIG_AsVal_int(obj3, &val4);
18243 if (!SWIG_IsOK(ecode4)) {
18244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18245 }
18246 arg4 = static_cast< int >(val4);
18247 ecode5 = SWIG_AsVal_int(obj4, &val5);
18248 if (!SWIG_IsOK(ecode5)) {
18249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18250 }
18251 arg5 = static_cast< int >(val5);
18252 ecode6 = SWIG_AsVal_int(obj5, &val6);
18253 if (!SWIG_IsOK(ecode6)) {
18254 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18255 }
18256 arg6 = static_cast< int >(val6);
18257 ecode7 = SWIG_AsVal_int(obj6, &val7);
18258 if (!SWIG_IsOK(ecode7)) {
18259 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18260 }
18261 arg7 = static_cast< int >(val7);
18262 {
18263 PyThreadState* __tstate = wxPyBeginAllowThreads();
18264 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18265 wxPyEndAllowThreads(__tstate);
18266 if (PyErr_Occurred()) SWIG_fail;
18267 }
18268 resultobj = SWIG_Py_Void();
18269 return resultobj;
18270 fail:
18271 return NULL;
18272 }
18273
18274
18275 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18276 PyObject *resultobj = 0;
18277 wxDC *arg1 = (wxDC *) 0 ;
18278 wxPoint *arg2 = 0 ;
18279 wxPoint *arg3 = 0 ;
18280 wxPoint *arg4 = 0 ;
18281 void *argp1 = 0 ;
18282 int res1 = 0 ;
18283 wxPoint temp2 ;
18284 wxPoint temp3 ;
18285 wxPoint temp4 ;
18286 PyObject * obj0 = 0 ;
18287 PyObject * obj1 = 0 ;
18288 PyObject * obj2 = 0 ;
18289 PyObject * obj3 = 0 ;
18290 char * kwnames[] = {
18291 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18292 };
18293
18294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",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_DrawArcPoint" "', 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 ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18307 }
18308 {
18309 arg4 = &temp4;
18310 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18311 }
18312 {
18313 PyThreadState* __tstate = wxPyBeginAllowThreads();
18314 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18315 wxPyEndAllowThreads(__tstate);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 }
18318 resultobj = SWIG_Py_Void();
18319 return resultobj;
18320 fail:
18321 return NULL;
18322 }
18323
18324
18325 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18326 PyObject *resultobj = 0;
18327 wxDC *arg1 = (wxDC *) 0 ;
18328 int arg2 ;
18329 int arg3 ;
18330 int arg4 ;
18331 int arg5 ;
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 int val5 ;
18341 int ecode5 = 0 ;
18342 PyObject * obj0 = 0 ;
18343 PyObject * obj1 = 0 ;
18344 PyObject * obj2 = 0 ;
18345 PyObject * obj3 = 0 ;
18346 PyObject * obj4 = 0 ;
18347 char * kwnames[] = {
18348 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18349 };
18350
18351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18353 if (!SWIG_IsOK(res1)) {
18354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18355 }
18356 arg1 = reinterpret_cast< wxDC * >(argp1);
18357 ecode2 = SWIG_AsVal_int(obj1, &val2);
18358 if (!SWIG_IsOK(ecode2)) {
18359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18360 }
18361 arg2 = static_cast< int >(val2);
18362 ecode3 = SWIG_AsVal_int(obj2, &val3);
18363 if (!SWIG_IsOK(ecode3)) {
18364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18365 }
18366 arg3 = static_cast< int >(val3);
18367 ecode4 = SWIG_AsVal_int(obj3, &val4);
18368 if (!SWIG_IsOK(ecode4)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18370 }
18371 arg4 = static_cast< int >(val4);
18372 ecode5 = SWIG_AsVal_int(obj4, &val5);
18373 if (!SWIG_IsOK(ecode5)) {
18374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18375 }
18376 arg5 = static_cast< int >(val5);
18377 {
18378 PyThreadState* __tstate = wxPyBeginAllowThreads();
18379 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18380 wxPyEndAllowThreads(__tstate);
18381 if (PyErr_Occurred()) SWIG_fail;
18382 }
18383 resultobj = SWIG_Py_Void();
18384 return resultobj;
18385 fail:
18386 return NULL;
18387 }
18388
18389
18390 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18391 PyObject *resultobj = 0;
18392 wxDC *arg1 = (wxDC *) 0 ;
18393 wxRect *arg2 = 0 ;
18394 void *argp1 = 0 ;
18395 int res1 = 0 ;
18396 wxRect temp2 ;
18397 PyObject * obj0 = 0 ;
18398 PyObject * obj1 = 0 ;
18399 char * kwnames[] = {
18400 (char *) "self",(char *) "rect", NULL
18401 };
18402
18403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18405 if (!SWIG_IsOK(res1)) {
18406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18407 }
18408 arg1 = reinterpret_cast< wxDC * >(argp1);
18409 {
18410 arg2 = &temp2;
18411 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18412 }
18413 {
18414 PyThreadState* __tstate = wxPyBeginAllowThreads();
18415 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 resultobj = SWIG_Py_Void();
18420 return resultobj;
18421 fail:
18422 return NULL;
18423 }
18424
18425
18426 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18427 PyObject *resultobj = 0;
18428 wxDC *arg1 = (wxDC *) 0 ;
18429 int arg2 ;
18430 int arg3 ;
18431 int arg4 ;
18432 int arg5 ;
18433 double arg6 ;
18434 double arg7 ;
18435 void *argp1 = 0 ;
18436 int res1 = 0 ;
18437 int val2 ;
18438 int ecode2 = 0 ;
18439 int val3 ;
18440 int ecode3 = 0 ;
18441 int val4 ;
18442 int ecode4 = 0 ;
18443 int val5 ;
18444 int ecode5 = 0 ;
18445 double val6 ;
18446 int ecode6 = 0 ;
18447 double val7 ;
18448 int ecode7 = 0 ;
18449 PyObject * obj0 = 0 ;
18450 PyObject * obj1 = 0 ;
18451 PyObject * obj2 = 0 ;
18452 PyObject * obj3 = 0 ;
18453 PyObject * obj4 = 0 ;
18454 PyObject * obj5 = 0 ;
18455 PyObject * obj6 = 0 ;
18456 char * kwnames[] = {
18457 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18458 };
18459
18460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18462 if (!SWIG_IsOK(res1)) {
18463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18464 }
18465 arg1 = reinterpret_cast< wxDC * >(argp1);
18466 ecode2 = SWIG_AsVal_int(obj1, &val2);
18467 if (!SWIG_IsOK(ecode2)) {
18468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18469 }
18470 arg2 = static_cast< int >(val2);
18471 ecode3 = SWIG_AsVal_int(obj2, &val3);
18472 if (!SWIG_IsOK(ecode3)) {
18473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18474 }
18475 arg3 = static_cast< int >(val3);
18476 ecode4 = SWIG_AsVal_int(obj3, &val4);
18477 if (!SWIG_IsOK(ecode4)) {
18478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18479 }
18480 arg4 = static_cast< int >(val4);
18481 ecode5 = SWIG_AsVal_int(obj4, &val5);
18482 if (!SWIG_IsOK(ecode5)) {
18483 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18484 }
18485 arg5 = static_cast< int >(val5);
18486 ecode6 = SWIG_AsVal_double(obj5, &val6);
18487 if (!SWIG_IsOK(ecode6)) {
18488 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18489 }
18490 arg6 = static_cast< double >(val6);
18491 ecode7 = SWIG_AsVal_double(obj6, &val7);
18492 if (!SWIG_IsOK(ecode7)) {
18493 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18494 }
18495 arg7 = static_cast< double >(val7);
18496 {
18497 PyThreadState* __tstate = wxPyBeginAllowThreads();
18498 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18499 wxPyEndAllowThreads(__tstate);
18500 if (PyErr_Occurred()) SWIG_fail;
18501 }
18502 resultobj = SWIG_Py_Void();
18503 return resultobj;
18504 fail:
18505 return NULL;
18506 }
18507
18508
18509 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18510 PyObject *resultobj = 0;
18511 wxDC *arg1 = (wxDC *) 0 ;
18512 wxPoint *arg2 = 0 ;
18513 wxSize *arg3 = 0 ;
18514 double arg4 ;
18515 double arg5 ;
18516 void *argp1 = 0 ;
18517 int res1 = 0 ;
18518 wxPoint temp2 ;
18519 wxSize temp3 ;
18520 double val4 ;
18521 int ecode4 = 0 ;
18522 double val5 ;
18523 int ecode5 = 0 ;
18524 PyObject * obj0 = 0 ;
18525 PyObject * obj1 = 0 ;
18526 PyObject * obj2 = 0 ;
18527 PyObject * obj3 = 0 ;
18528 PyObject * obj4 = 0 ;
18529 char * kwnames[] = {
18530 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18531 };
18532
18533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18535 if (!SWIG_IsOK(res1)) {
18536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18537 }
18538 arg1 = reinterpret_cast< wxDC * >(argp1);
18539 {
18540 arg2 = &temp2;
18541 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18542 }
18543 {
18544 arg3 = &temp3;
18545 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18546 }
18547 ecode4 = SWIG_AsVal_double(obj3, &val4);
18548 if (!SWIG_IsOK(ecode4)) {
18549 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18550 }
18551 arg4 = static_cast< double >(val4);
18552 ecode5 = SWIG_AsVal_double(obj4, &val5);
18553 if (!SWIG_IsOK(ecode5)) {
18554 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18555 }
18556 arg5 = static_cast< double >(val5);
18557 {
18558 PyThreadState* __tstate = wxPyBeginAllowThreads();
18559 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18560 wxPyEndAllowThreads(__tstate);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 }
18563 resultobj = SWIG_Py_Void();
18564 return resultobj;
18565 fail:
18566 return NULL;
18567 }
18568
18569
18570 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18571 PyObject *resultobj = 0;
18572 wxDC *arg1 = (wxDC *) 0 ;
18573 int arg2 ;
18574 int arg3 ;
18575 void *argp1 = 0 ;
18576 int res1 = 0 ;
18577 int val2 ;
18578 int ecode2 = 0 ;
18579 int val3 ;
18580 int ecode3 = 0 ;
18581 PyObject * obj0 = 0 ;
18582 PyObject * obj1 = 0 ;
18583 PyObject * obj2 = 0 ;
18584 char * kwnames[] = {
18585 (char *) "self",(char *) "x",(char *) "y", NULL
18586 };
18587
18588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18590 if (!SWIG_IsOK(res1)) {
18591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18592 }
18593 arg1 = reinterpret_cast< wxDC * >(argp1);
18594 ecode2 = SWIG_AsVal_int(obj1, &val2);
18595 if (!SWIG_IsOK(ecode2)) {
18596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18597 }
18598 arg2 = static_cast< int >(val2);
18599 ecode3 = SWIG_AsVal_int(obj2, &val3);
18600 if (!SWIG_IsOK(ecode3)) {
18601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18602 }
18603 arg3 = static_cast< int >(val3);
18604 {
18605 PyThreadState* __tstate = wxPyBeginAllowThreads();
18606 (arg1)->DrawPoint(arg2,arg3);
18607 wxPyEndAllowThreads(__tstate);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 }
18610 resultobj = SWIG_Py_Void();
18611 return resultobj;
18612 fail:
18613 return NULL;
18614 }
18615
18616
18617 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18618 PyObject *resultobj = 0;
18619 wxDC *arg1 = (wxDC *) 0 ;
18620 wxPoint *arg2 = 0 ;
18621 void *argp1 = 0 ;
18622 int res1 = 0 ;
18623 wxPoint temp2 ;
18624 PyObject * obj0 = 0 ;
18625 PyObject * obj1 = 0 ;
18626 char * kwnames[] = {
18627 (char *) "self",(char *) "pt", NULL
18628 };
18629
18630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18632 if (!SWIG_IsOK(res1)) {
18633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18634 }
18635 arg1 = reinterpret_cast< wxDC * >(argp1);
18636 {
18637 arg2 = &temp2;
18638 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18639 }
18640 {
18641 PyThreadState* __tstate = wxPyBeginAllowThreads();
18642 (arg1)->DrawPoint((wxPoint const &)*arg2);
18643 wxPyEndAllowThreads(__tstate);
18644 if (PyErr_Occurred()) SWIG_fail;
18645 }
18646 resultobj = SWIG_Py_Void();
18647 return resultobj;
18648 fail:
18649 return NULL;
18650 }
18651
18652
18653 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18654 PyObject *resultobj = 0;
18655 wxDC *arg1 = (wxDC *) 0 ;
18656 int arg2 ;
18657 int arg3 ;
18658 int arg4 ;
18659 int arg5 ;
18660 void *argp1 = 0 ;
18661 int res1 = 0 ;
18662 int val2 ;
18663 int ecode2 = 0 ;
18664 int val3 ;
18665 int ecode3 = 0 ;
18666 int val4 ;
18667 int ecode4 = 0 ;
18668 int val5 ;
18669 int ecode5 = 0 ;
18670 PyObject * obj0 = 0 ;
18671 PyObject * obj1 = 0 ;
18672 PyObject * obj2 = 0 ;
18673 PyObject * obj3 = 0 ;
18674 PyObject * obj4 = 0 ;
18675 char * kwnames[] = {
18676 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18677 };
18678
18679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18681 if (!SWIG_IsOK(res1)) {
18682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18683 }
18684 arg1 = reinterpret_cast< wxDC * >(argp1);
18685 ecode2 = SWIG_AsVal_int(obj1, &val2);
18686 if (!SWIG_IsOK(ecode2)) {
18687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18688 }
18689 arg2 = static_cast< int >(val2);
18690 ecode3 = SWIG_AsVal_int(obj2, &val3);
18691 if (!SWIG_IsOK(ecode3)) {
18692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18693 }
18694 arg3 = static_cast< int >(val3);
18695 ecode4 = SWIG_AsVal_int(obj3, &val4);
18696 if (!SWIG_IsOK(ecode4)) {
18697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18698 }
18699 arg4 = static_cast< int >(val4);
18700 ecode5 = SWIG_AsVal_int(obj4, &val5);
18701 if (!SWIG_IsOK(ecode5)) {
18702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18703 }
18704 arg5 = static_cast< int >(val5);
18705 {
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 resultobj = SWIG_Py_Void();
18712 return resultobj;
18713 fail:
18714 return NULL;
18715 }
18716
18717
18718 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18719 PyObject *resultobj = 0;
18720 wxDC *arg1 = (wxDC *) 0 ;
18721 wxRect *arg2 = 0 ;
18722 void *argp1 = 0 ;
18723 int res1 = 0 ;
18724 wxRect temp2 ;
18725 PyObject * obj0 = 0 ;
18726 PyObject * obj1 = 0 ;
18727 char * kwnames[] = {
18728 (char *) "self",(char *) "rect", NULL
18729 };
18730
18731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18733 if (!SWIG_IsOK(res1)) {
18734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18735 }
18736 arg1 = reinterpret_cast< wxDC * >(argp1);
18737 {
18738 arg2 = &temp2;
18739 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18740 }
18741 {
18742 PyThreadState* __tstate = wxPyBeginAllowThreads();
18743 (arg1)->DrawRectangle((wxRect const &)*arg2);
18744 wxPyEndAllowThreads(__tstate);
18745 if (PyErr_Occurred()) SWIG_fail;
18746 }
18747 resultobj = SWIG_Py_Void();
18748 return resultobj;
18749 fail:
18750 return NULL;
18751 }
18752
18753
18754 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18755 PyObject *resultobj = 0;
18756 wxDC *arg1 = (wxDC *) 0 ;
18757 wxPoint *arg2 = 0 ;
18758 wxSize *arg3 = 0 ;
18759 void *argp1 = 0 ;
18760 int res1 = 0 ;
18761 wxPoint temp2 ;
18762 wxSize temp3 ;
18763 PyObject * obj0 = 0 ;
18764 PyObject * obj1 = 0 ;
18765 PyObject * obj2 = 0 ;
18766 char * kwnames[] = {
18767 (char *) "self",(char *) "pt",(char *) "sz", NULL
18768 };
18769
18770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18772 if (!SWIG_IsOK(res1)) {
18773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18774 }
18775 arg1 = reinterpret_cast< wxDC * >(argp1);
18776 {
18777 arg2 = &temp2;
18778 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18779 }
18780 {
18781 arg3 = &temp3;
18782 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18783 }
18784 {
18785 PyThreadState* __tstate = wxPyBeginAllowThreads();
18786 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18787 wxPyEndAllowThreads(__tstate);
18788 if (PyErr_Occurred()) SWIG_fail;
18789 }
18790 resultobj = SWIG_Py_Void();
18791 return resultobj;
18792 fail:
18793 return NULL;
18794 }
18795
18796
18797 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18798 PyObject *resultobj = 0;
18799 wxDC *arg1 = (wxDC *) 0 ;
18800 int arg2 ;
18801 int arg3 ;
18802 int arg4 ;
18803 int arg5 ;
18804 double arg6 ;
18805 void *argp1 = 0 ;
18806 int res1 = 0 ;
18807 int val2 ;
18808 int ecode2 = 0 ;
18809 int val3 ;
18810 int ecode3 = 0 ;
18811 int val4 ;
18812 int ecode4 = 0 ;
18813 int val5 ;
18814 int ecode5 = 0 ;
18815 double val6 ;
18816 int ecode6 = 0 ;
18817 PyObject * obj0 = 0 ;
18818 PyObject * obj1 = 0 ;
18819 PyObject * obj2 = 0 ;
18820 PyObject * obj3 = 0 ;
18821 PyObject * obj4 = 0 ;
18822 PyObject * obj5 = 0 ;
18823 char * kwnames[] = {
18824 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18825 };
18826
18827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18829 if (!SWIG_IsOK(res1)) {
18830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18831 }
18832 arg1 = reinterpret_cast< wxDC * >(argp1);
18833 ecode2 = SWIG_AsVal_int(obj1, &val2);
18834 if (!SWIG_IsOK(ecode2)) {
18835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18836 }
18837 arg2 = static_cast< int >(val2);
18838 ecode3 = SWIG_AsVal_int(obj2, &val3);
18839 if (!SWIG_IsOK(ecode3)) {
18840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18841 }
18842 arg3 = static_cast< int >(val3);
18843 ecode4 = SWIG_AsVal_int(obj3, &val4);
18844 if (!SWIG_IsOK(ecode4)) {
18845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18846 }
18847 arg4 = static_cast< int >(val4);
18848 ecode5 = SWIG_AsVal_int(obj4, &val5);
18849 if (!SWIG_IsOK(ecode5)) {
18850 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18851 }
18852 arg5 = static_cast< int >(val5);
18853 ecode6 = SWIG_AsVal_double(obj5, &val6);
18854 if (!SWIG_IsOK(ecode6)) {
18855 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18856 }
18857 arg6 = static_cast< double >(val6);
18858 {
18859 PyThreadState* __tstate = wxPyBeginAllowThreads();
18860 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18861 wxPyEndAllowThreads(__tstate);
18862 if (PyErr_Occurred()) SWIG_fail;
18863 }
18864 resultobj = SWIG_Py_Void();
18865 return resultobj;
18866 fail:
18867 return NULL;
18868 }
18869
18870
18871 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18872 PyObject *resultobj = 0;
18873 wxDC *arg1 = (wxDC *) 0 ;
18874 wxRect *arg2 = 0 ;
18875 double arg3 ;
18876 void *argp1 = 0 ;
18877 int res1 = 0 ;
18878 wxRect temp2 ;
18879 double val3 ;
18880 int ecode3 = 0 ;
18881 PyObject * obj0 = 0 ;
18882 PyObject * obj1 = 0 ;
18883 PyObject * obj2 = 0 ;
18884 char * kwnames[] = {
18885 (char *) "self",(char *) "r",(char *) "radius", NULL
18886 };
18887
18888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18890 if (!SWIG_IsOK(res1)) {
18891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18892 }
18893 arg1 = reinterpret_cast< wxDC * >(argp1);
18894 {
18895 arg2 = &temp2;
18896 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18897 }
18898 ecode3 = SWIG_AsVal_double(obj2, &val3);
18899 if (!SWIG_IsOK(ecode3)) {
18900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18901 }
18902 arg3 = static_cast< double >(val3);
18903 {
18904 PyThreadState* __tstate = wxPyBeginAllowThreads();
18905 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18906 wxPyEndAllowThreads(__tstate);
18907 if (PyErr_Occurred()) SWIG_fail;
18908 }
18909 resultobj = SWIG_Py_Void();
18910 return resultobj;
18911 fail:
18912 return NULL;
18913 }
18914
18915
18916 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18917 PyObject *resultobj = 0;
18918 wxDC *arg1 = (wxDC *) 0 ;
18919 wxPoint *arg2 = 0 ;
18920 wxSize *arg3 = 0 ;
18921 double arg4 ;
18922 void *argp1 = 0 ;
18923 int res1 = 0 ;
18924 wxPoint temp2 ;
18925 wxSize temp3 ;
18926 double val4 ;
18927 int ecode4 = 0 ;
18928 PyObject * obj0 = 0 ;
18929 PyObject * obj1 = 0 ;
18930 PyObject * obj2 = 0 ;
18931 PyObject * obj3 = 0 ;
18932 char * kwnames[] = {
18933 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18934 };
18935
18936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18938 if (!SWIG_IsOK(res1)) {
18939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18940 }
18941 arg1 = reinterpret_cast< wxDC * >(argp1);
18942 {
18943 arg2 = &temp2;
18944 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18945 }
18946 {
18947 arg3 = &temp3;
18948 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18949 }
18950 ecode4 = SWIG_AsVal_double(obj3, &val4);
18951 if (!SWIG_IsOK(ecode4)) {
18952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18953 }
18954 arg4 = static_cast< double >(val4);
18955 {
18956 PyThreadState* __tstate = wxPyBeginAllowThreads();
18957 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18958 wxPyEndAllowThreads(__tstate);
18959 if (PyErr_Occurred()) SWIG_fail;
18960 }
18961 resultobj = SWIG_Py_Void();
18962 return resultobj;
18963 fail:
18964 return NULL;
18965 }
18966
18967
18968 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18969 PyObject *resultobj = 0;
18970 wxDC *arg1 = (wxDC *) 0 ;
18971 int arg2 ;
18972 int arg3 ;
18973 int arg4 ;
18974 void *argp1 = 0 ;
18975 int res1 = 0 ;
18976 int val2 ;
18977 int ecode2 = 0 ;
18978 int val3 ;
18979 int ecode3 = 0 ;
18980 int val4 ;
18981 int ecode4 = 0 ;
18982 PyObject * obj0 = 0 ;
18983 PyObject * obj1 = 0 ;
18984 PyObject * obj2 = 0 ;
18985 PyObject * obj3 = 0 ;
18986 char * kwnames[] = {
18987 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18988 };
18989
18990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18992 if (!SWIG_IsOK(res1)) {
18993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18994 }
18995 arg1 = reinterpret_cast< wxDC * >(argp1);
18996 ecode2 = SWIG_AsVal_int(obj1, &val2);
18997 if (!SWIG_IsOK(ecode2)) {
18998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18999 }
19000 arg2 = static_cast< int >(val2);
19001 ecode3 = SWIG_AsVal_int(obj2, &val3);
19002 if (!SWIG_IsOK(ecode3)) {
19003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19004 }
19005 arg3 = static_cast< int >(val3);
19006 ecode4 = SWIG_AsVal_int(obj3, &val4);
19007 if (!SWIG_IsOK(ecode4)) {
19008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19009 }
19010 arg4 = static_cast< int >(val4);
19011 {
19012 PyThreadState* __tstate = wxPyBeginAllowThreads();
19013 (arg1)->DrawCircle(arg2,arg3,arg4);
19014 wxPyEndAllowThreads(__tstate);
19015 if (PyErr_Occurred()) SWIG_fail;
19016 }
19017 resultobj = SWIG_Py_Void();
19018 return resultobj;
19019 fail:
19020 return NULL;
19021 }
19022
19023
19024 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19025 PyObject *resultobj = 0;
19026 wxDC *arg1 = (wxDC *) 0 ;
19027 wxPoint *arg2 = 0 ;
19028 int arg3 ;
19029 void *argp1 = 0 ;
19030 int res1 = 0 ;
19031 wxPoint temp2 ;
19032 int val3 ;
19033 int ecode3 = 0 ;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 PyObject * obj2 = 0 ;
19037 char * kwnames[] = {
19038 (char *) "self",(char *) "pt",(char *) "radius", NULL
19039 };
19040
19041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19043 if (!SWIG_IsOK(res1)) {
19044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19045 }
19046 arg1 = reinterpret_cast< wxDC * >(argp1);
19047 {
19048 arg2 = &temp2;
19049 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19050 }
19051 ecode3 = SWIG_AsVal_int(obj2, &val3);
19052 if (!SWIG_IsOK(ecode3)) {
19053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19054 }
19055 arg3 = static_cast< int >(val3);
19056 {
19057 PyThreadState* __tstate = wxPyBeginAllowThreads();
19058 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19059 wxPyEndAllowThreads(__tstate);
19060 if (PyErr_Occurred()) SWIG_fail;
19061 }
19062 resultobj = SWIG_Py_Void();
19063 return resultobj;
19064 fail:
19065 return NULL;
19066 }
19067
19068
19069 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19070 PyObject *resultobj = 0;
19071 wxDC *arg1 = (wxDC *) 0 ;
19072 int arg2 ;
19073 int arg3 ;
19074 int arg4 ;
19075 int arg5 ;
19076 void *argp1 = 0 ;
19077 int res1 = 0 ;
19078 int val2 ;
19079 int ecode2 = 0 ;
19080 int val3 ;
19081 int ecode3 = 0 ;
19082 int val4 ;
19083 int ecode4 = 0 ;
19084 int val5 ;
19085 int ecode5 = 0 ;
19086 PyObject * obj0 = 0 ;
19087 PyObject * obj1 = 0 ;
19088 PyObject * obj2 = 0 ;
19089 PyObject * obj3 = 0 ;
19090 PyObject * obj4 = 0 ;
19091 char * kwnames[] = {
19092 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19093 };
19094
19095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19097 if (!SWIG_IsOK(res1)) {
19098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19099 }
19100 arg1 = reinterpret_cast< wxDC * >(argp1);
19101 ecode2 = SWIG_AsVal_int(obj1, &val2);
19102 if (!SWIG_IsOK(ecode2)) {
19103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19104 }
19105 arg2 = static_cast< int >(val2);
19106 ecode3 = SWIG_AsVal_int(obj2, &val3);
19107 if (!SWIG_IsOK(ecode3)) {
19108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19109 }
19110 arg3 = static_cast< int >(val3);
19111 ecode4 = SWIG_AsVal_int(obj3, &val4);
19112 if (!SWIG_IsOK(ecode4)) {
19113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19114 }
19115 arg4 = static_cast< int >(val4);
19116 ecode5 = SWIG_AsVal_int(obj4, &val5);
19117 if (!SWIG_IsOK(ecode5)) {
19118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19119 }
19120 arg5 = static_cast< int >(val5);
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 resultobj = SWIG_Py_Void();
19128 return resultobj;
19129 fail:
19130 return NULL;
19131 }
19132
19133
19134 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj = 0;
19136 wxDC *arg1 = (wxDC *) 0 ;
19137 wxRect *arg2 = 0 ;
19138 void *argp1 = 0 ;
19139 int res1 = 0 ;
19140 wxRect temp2 ;
19141 PyObject * obj0 = 0 ;
19142 PyObject * obj1 = 0 ;
19143 char * kwnames[] = {
19144 (char *) "self",(char *) "rect", NULL
19145 };
19146
19147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19149 if (!SWIG_IsOK(res1)) {
19150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19151 }
19152 arg1 = reinterpret_cast< wxDC * >(argp1);
19153 {
19154 arg2 = &temp2;
19155 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19156 }
19157 {
19158 PyThreadState* __tstate = wxPyBeginAllowThreads();
19159 (arg1)->DrawEllipse((wxRect const &)*arg2);
19160 wxPyEndAllowThreads(__tstate);
19161 if (PyErr_Occurred()) SWIG_fail;
19162 }
19163 resultobj = SWIG_Py_Void();
19164 return resultobj;
19165 fail:
19166 return NULL;
19167 }
19168
19169
19170 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19171 PyObject *resultobj = 0;
19172 wxDC *arg1 = (wxDC *) 0 ;
19173 wxPoint *arg2 = 0 ;
19174 wxSize *arg3 = 0 ;
19175 void *argp1 = 0 ;
19176 int res1 = 0 ;
19177 wxPoint temp2 ;
19178 wxSize temp3 ;
19179 PyObject * obj0 = 0 ;
19180 PyObject * obj1 = 0 ;
19181 PyObject * obj2 = 0 ;
19182 char * kwnames[] = {
19183 (char *) "self",(char *) "pt",(char *) "sz", NULL
19184 };
19185
19186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19188 if (!SWIG_IsOK(res1)) {
19189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19190 }
19191 arg1 = reinterpret_cast< wxDC * >(argp1);
19192 {
19193 arg2 = &temp2;
19194 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19195 }
19196 {
19197 arg3 = &temp3;
19198 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19199 }
19200 {
19201 PyThreadState* __tstate = wxPyBeginAllowThreads();
19202 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19203 wxPyEndAllowThreads(__tstate);
19204 if (PyErr_Occurred()) SWIG_fail;
19205 }
19206 resultobj = SWIG_Py_Void();
19207 return resultobj;
19208 fail:
19209 return NULL;
19210 }
19211
19212
19213 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19214 PyObject *resultobj = 0;
19215 wxDC *arg1 = (wxDC *) 0 ;
19216 wxIcon *arg2 = 0 ;
19217 int arg3 ;
19218 int arg4 ;
19219 void *argp1 = 0 ;
19220 int res1 = 0 ;
19221 void *argp2 = 0 ;
19222 int res2 = 0 ;
19223 int val3 ;
19224 int ecode3 = 0 ;
19225 int val4 ;
19226 int ecode4 = 0 ;
19227 PyObject * obj0 = 0 ;
19228 PyObject * obj1 = 0 ;
19229 PyObject * obj2 = 0 ;
19230 PyObject * obj3 = 0 ;
19231 char * kwnames[] = {
19232 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19233 };
19234
19235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19237 if (!SWIG_IsOK(res1)) {
19238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19239 }
19240 arg1 = reinterpret_cast< wxDC * >(argp1);
19241 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19242 if (!SWIG_IsOK(res2)) {
19243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19244 }
19245 if (!argp2) {
19246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19247 }
19248 arg2 = reinterpret_cast< wxIcon * >(argp2);
19249 ecode3 = SWIG_AsVal_int(obj2, &val3);
19250 if (!SWIG_IsOK(ecode3)) {
19251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19252 }
19253 arg3 = static_cast< int >(val3);
19254 ecode4 = SWIG_AsVal_int(obj3, &val4);
19255 if (!SWIG_IsOK(ecode4)) {
19256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19257 }
19258 arg4 = static_cast< int >(val4);
19259 {
19260 PyThreadState* __tstate = wxPyBeginAllowThreads();
19261 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19262 wxPyEndAllowThreads(__tstate);
19263 if (PyErr_Occurred()) SWIG_fail;
19264 }
19265 resultobj = SWIG_Py_Void();
19266 return resultobj;
19267 fail:
19268 return NULL;
19269 }
19270
19271
19272 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19273 PyObject *resultobj = 0;
19274 wxDC *arg1 = (wxDC *) 0 ;
19275 wxIcon *arg2 = 0 ;
19276 wxPoint *arg3 = 0 ;
19277 void *argp1 = 0 ;
19278 int res1 = 0 ;
19279 void *argp2 = 0 ;
19280 int res2 = 0 ;
19281 wxPoint temp3 ;
19282 PyObject * obj0 = 0 ;
19283 PyObject * obj1 = 0 ;
19284 PyObject * obj2 = 0 ;
19285 char * kwnames[] = {
19286 (char *) "self",(char *) "icon",(char *) "pt", NULL
19287 };
19288
19289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19291 if (!SWIG_IsOK(res1)) {
19292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19293 }
19294 arg1 = reinterpret_cast< wxDC * >(argp1);
19295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19296 if (!SWIG_IsOK(res2)) {
19297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19298 }
19299 if (!argp2) {
19300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19301 }
19302 arg2 = reinterpret_cast< wxIcon * >(argp2);
19303 {
19304 arg3 = &temp3;
19305 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19306 }
19307 {
19308 PyThreadState* __tstate = wxPyBeginAllowThreads();
19309 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19310 wxPyEndAllowThreads(__tstate);
19311 if (PyErr_Occurred()) SWIG_fail;
19312 }
19313 resultobj = SWIG_Py_Void();
19314 return resultobj;
19315 fail:
19316 return NULL;
19317 }
19318
19319
19320 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19321 PyObject *resultobj = 0;
19322 wxDC *arg1 = (wxDC *) 0 ;
19323 wxBitmap *arg2 = 0 ;
19324 int arg3 ;
19325 int arg4 ;
19326 bool arg5 = (bool) false ;
19327 void *argp1 = 0 ;
19328 int res1 = 0 ;
19329 void *argp2 = 0 ;
19330 int res2 = 0 ;
19331 int val3 ;
19332 int ecode3 = 0 ;
19333 int val4 ;
19334 int ecode4 = 0 ;
19335 bool val5 ;
19336 int ecode5 = 0 ;
19337 PyObject * obj0 = 0 ;
19338 PyObject * obj1 = 0 ;
19339 PyObject * obj2 = 0 ;
19340 PyObject * obj3 = 0 ;
19341 PyObject * obj4 = 0 ;
19342 char * kwnames[] = {
19343 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19344 };
19345
19346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19348 if (!SWIG_IsOK(res1)) {
19349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19350 }
19351 arg1 = reinterpret_cast< wxDC * >(argp1);
19352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19353 if (!SWIG_IsOK(res2)) {
19354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19355 }
19356 if (!argp2) {
19357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19358 }
19359 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19360 ecode3 = SWIG_AsVal_int(obj2, &val3);
19361 if (!SWIG_IsOK(ecode3)) {
19362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19363 }
19364 arg3 = static_cast< int >(val3);
19365 ecode4 = SWIG_AsVal_int(obj3, &val4);
19366 if (!SWIG_IsOK(ecode4)) {
19367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19368 }
19369 arg4 = static_cast< int >(val4);
19370 if (obj4) {
19371 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19372 if (!SWIG_IsOK(ecode5)) {
19373 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19374 }
19375 arg5 = static_cast< bool >(val5);
19376 }
19377 {
19378 PyThreadState* __tstate = wxPyBeginAllowThreads();
19379 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19380 wxPyEndAllowThreads(__tstate);
19381 if (PyErr_Occurred()) SWIG_fail;
19382 }
19383 resultobj = SWIG_Py_Void();
19384 return resultobj;
19385 fail:
19386 return NULL;
19387 }
19388
19389
19390 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19391 PyObject *resultobj = 0;
19392 wxDC *arg1 = (wxDC *) 0 ;
19393 wxBitmap *arg2 = 0 ;
19394 wxPoint *arg3 = 0 ;
19395 bool arg4 = (bool) false ;
19396 void *argp1 = 0 ;
19397 int res1 = 0 ;
19398 void *argp2 = 0 ;
19399 int res2 = 0 ;
19400 wxPoint temp3 ;
19401 bool val4 ;
19402 int ecode4 = 0 ;
19403 PyObject * obj0 = 0 ;
19404 PyObject * obj1 = 0 ;
19405 PyObject * obj2 = 0 ;
19406 PyObject * obj3 = 0 ;
19407 char * kwnames[] = {
19408 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19409 };
19410
19411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19413 if (!SWIG_IsOK(res1)) {
19414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19415 }
19416 arg1 = reinterpret_cast< wxDC * >(argp1);
19417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19418 if (!SWIG_IsOK(res2)) {
19419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19420 }
19421 if (!argp2) {
19422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19423 }
19424 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19425 {
19426 arg3 = &temp3;
19427 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19428 }
19429 if (obj3) {
19430 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19431 if (!SWIG_IsOK(ecode4)) {
19432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19433 }
19434 arg4 = static_cast< bool >(val4);
19435 }
19436 {
19437 PyThreadState* __tstate = wxPyBeginAllowThreads();
19438 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19439 wxPyEndAllowThreads(__tstate);
19440 if (PyErr_Occurred()) SWIG_fail;
19441 }
19442 resultobj = SWIG_Py_Void();
19443 return resultobj;
19444 fail:
19445 return NULL;
19446 }
19447
19448
19449 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19450 PyObject *resultobj = 0;
19451 wxDC *arg1 = (wxDC *) 0 ;
19452 wxString *arg2 = 0 ;
19453 int arg3 ;
19454 int arg4 ;
19455 void *argp1 = 0 ;
19456 int res1 = 0 ;
19457 bool temp2 = false ;
19458 int val3 ;
19459 int ecode3 = 0 ;
19460 int val4 ;
19461 int ecode4 = 0 ;
19462 PyObject * obj0 = 0 ;
19463 PyObject * obj1 = 0 ;
19464 PyObject * obj2 = 0 ;
19465 PyObject * obj3 = 0 ;
19466 char * kwnames[] = {
19467 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19468 };
19469
19470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19472 if (!SWIG_IsOK(res1)) {
19473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19474 }
19475 arg1 = reinterpret_cast< wxDC * >(argp1);
19476 {
19477 arg2 = wxString_in_helper(obj1);
19478 if (arg2 == NULL) SWIG_fail;
19479 temp2 = true;
19480 }
19481 ecode3 = SWIG_AsVal_int(obj2, &val3);
19482 if (!SWIG_IsOK(ecode3)) {
19483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19484 }
19485 arg3 = static_cast< int >(val3);
19486 ecode4 = SWIG_AsVal_int(obj3, &val4);
19487 if (!SWIG_IsOK(ecode4)) {
19488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19489 }
19490 arg4 = static_cast< int >(val4);
19491 {
19492 PyThreadState* __tstate = wxPyBeginAllowThreads();
19493 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19494 wxPyEndAllowThreads(__tstate);
19495 if (PyErr_Occurred()) SWIG_fail;
19496 }
19497 resultobj = SWIG_Py_Void();
19498 {
19499 if (temp2)
19500 delete arg2;
19501 }
19502 return resultobj;
19503 fail:
19504 {
19505 if (temp2)
19506 delete arg2;
19507 }
19508 return NULL;
19509 }
19510
19511
19512 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19513 PyObject *resultobj = 0;
19514 wxDC *arg1 = (wxDC *) 0 ;
19515 wxString *arg2 = 0 ;
19516 wxPoint *arg3 = 0 ;
19517 void *argp1 = 0 ;
19518 int res1 = 0 ;
19519 bool temp2 = false ;
19520 wxPoint temp3 ;
19521 PyObject * obj0 = 0 ;
19522 PyObject * obj1 = 0 ;
19523 PyObject * obj2 = 0 ;
19524 char * kwnames[] = {
19525 (char *) "self",(char *) "text",(char *) "pt", NULL
19526 };
19527
19528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19530 if (!SWIG_IsOK(res1)) {
19531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19532 }
19533 arg1 = reinterpret_cast< wxDC * >(argp1);
19534 {
19535 arg2 = wxString_in_helper(obj1);
19536 if (arg2 == NULL) SWIG_fail;
19537 temp2 = true;
19538 }
19539 {
19540 arg3 = &temp3;
19541 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19542 }
19543 {
19544 PyThreadState* __tstate = wxPyBeginAllowThreads();
19545 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19546 wxPyEndAllowThreads(__tstate);
19547 if (PyErr_Occurred()) SWIG_fail;
19548 }
19549 resultobj = SWIG_Py_Void();
19550 {
19551 if (temp2)
19552 delete arg2;
19553 }
19554 return resultobj;
19555 fail:
19556 {
19557 if (temp2)
19558 delete arg2;
19559 }
19560 return NULL;
19561 }
19562
19563
19564 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19565 PyObject *resultobj = 0;
19566 wxDC *arg1 = (wxDC *) 0 ;
19567 wxString *arg2 = 0 ;
19568 int arg3 ;
19569 int arg4 ;
19570 double arg5 ;
19571 void *argp1 = 0 ;
19572 int res1 = 0 ;
19573 bool temp2 = false ;
19574 int val3 ;
19575 int ecode3 = 0 ;
19576 int val4 ;
19577 int ecode4 = 0 ;
19578 double val5 ;
19579 int ecode5 = 0 ;
19580 PyObject * obj0 = 0 ;
19581 PyObject * obj1 = 0 ;
19582 PyObject * obj2 = 0 ;
19583 PyObject * obj3 = 0 ;
19584 PyObject * obj4 = 0 ;
19585 char * kwnames[] = {
19586 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19587 };
19588
19589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19591 if (!SWIG_IsOK(res1)) {
19592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19593 }
19594 arg1 = reinterpret_cast< wxDC * >(argp1);
19595 {
19596 arg2 = wxString_in_helper(obj1);
19597 if (arg2 == NULL) SWIG_fail;
19598 temp2 = true;
19599 }
19600 ecode3 = SWIG_AsVal_int(obj2, &val3);
19601 if (!SWIG_IsOK(ecode3)) {
19602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19603 }
19604 arg3 = static_cast< int >(val3);
19605 ecode4 = SWIG_AsVal_int(obj3, &val4);
19606 if (!SWIG_IsOK(ecode4)) {
19607 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19608 }
19609 arg4 = static_cast< int >(val4);
19610 ecode5 = SWIG_AsVal_double(obj4, &val5);
19611 if (!SWIG_IsOK(ecode5)) {
19612 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19613 }
19614 arg5 = static_cast< double >(val5);
19615 {
19616 PyThreadState* __tstate = wxPyBeginAllowThreads();
19617 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19618 wxPyEndAllowThreads(__tstate);
19619 if (PyErr_Occurred()) SWIG_fail;
19620 }
19621 resultobj = SWIG_Py_Void();
19622 {
19623 if (temp2)
19624 delete arg2;
19625 }
19626 return resultobj;
19627 fail:
19628 {
19629 if (temp2)
19630 delete arg2;
19631 }
19632 return NULL;
19633 }
19634
19635
19636 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19637 PyObject *resultobj = 0;
19638 wxDC *arg1 = (wxDC *) 0 ;
19639 wxString *arg2 = 0 ;
19640 wxPoint *arg3 = 0 ;
19641 double arg4 ;
19642 void *argp1 = 0 ;
19643 int res1 = 0 ;
19644 bool temp2 = false ;
19645 wxPoint temp3 ;
19646 double val4 ;
19647 int ecode4 = 0 ;
19648 PyObject * obj0 = 0 ;
19649 PyObject * obj1 = 0 ;
19650 PyObject * obj2 = 0 ;
19651 PyObject * obj3 = 0 ;
19652 char * kwnames[] = {
19653 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19654 };
19655
19656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19658 if (!SWIG_IsOK(res1)) {
19659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19660 }
19661 arg1 = reinterpret_cast< wxDC * >(argp1);
19662 {
19663 arg2 = wxString_in_helper(obj1);
19664 if (arg2 == NULL) SWIG_fail;
19665 temp2 = true;
19666 }
19667 {
19668 arg3 = &temp3;
19669 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19670 }
19671 ecode4 = SWIG_AsVal_double(obj3, &val4);
19672 if (!SWIG_IsOK(ecode4)) {
19673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19674 }
19675 arg4 = static_cast< double >(val4);
19676 {
19677 PyThreadState* __tstate = wxPyBeginAllowThreads();
19678 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 resultobj = SWIG_Py_Void();
19683 {
19684 if (temp2)
19685 delete arg2;
19686 }
19687 return resultobj;
19688 fail:
19689 {
19690 if (temp2)
19691 delete arg2;
19692 }
19693 return NULL;
19694 }
19695
19696
19697 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19698 PyObject *resultobj = 0;
19699 wxDC *arg1 = (wxDC *) 0 ;
19700 int arg2 ;
19701 int arg3 ;
19702 int arg4 ;
19703 int arg5 ;
19704 wxDC *arg6 = (wxDC *) 0 ;
19705 int arg7 ;
19706 int arg8 ;
19707 int arg9 = (int) wxCOPY ;
19708 bool arg10 = (bool) false ;
19709 int arg11 = (int) -1 ;
19710 int arg12 = (int) -1 ;
19711 bool result;
19712 void *argp1 = 0 ;
19713 int res1 = 0 ;
19714 int val2 ;
19715 int ecode2 = 0 ;
19716 int val3 ;
19717 int ecode3 = 0 ;
19718 int val4 ;
19719 int ecode4 = 0 ;
19720 int val5 ;
19721 int ecode5 = 0 ;
19722 void *argp6 = 0 ;
19723 int res6 = 0 ;
19724 int val7 ;
19725 int ecode7 = 0 ;
19726 int val8 ;
19727 int ecode8 = 0 ;
19728 int val9 ;
19729 int ecode9 = 0 ;
19730 bool val10 ;
19731 int ecode10 = 0 ;
19732 int val11 ;
19733 int ecode11 = 0 ;
19734 int val12 ;
19735 int ecode12 = 0 ;
19736 PyObject * obj0 = 0 ;
19737 PyObject * obj1 = 0 ;
19738 PyObject * obj2 = 0 ;
19739 PyObject * obj3 = 0 ;
19740 PyObject * obj4 = 0 ;
19741 PyObject * obj5 = 0 ;
19742 PyObject * obj6 = 0 ;
19743 PyObject * obj7 = 0 ;
19744 PyObject * obj8 = 0 ;
19745 PyObject * obj9 = 0 ;
19746 PyObject * obj10 = 0 ;
19747 PyObject * obj11 = 0 ;
19748 char * kwnames[] = {
19749 (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
19750 };
19751
19752 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;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19756 }
19757 arg1 = reinterpret_cast< wxDC * >(argp1);
19758 ecode2 = SWIG_AsVal_int(obj1, &val2);
19759 if (!SWIG_IsOK(ecode2)) {
19760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19761 }
19762 arg2 = static_cast< int >(val2);
19763 ecode3 = SWIG_AsVal_int(obj2, &val3);
19764 if (!SWIG_IsOK(ecode3)) {
19765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19766 }
19767 arg3 = static_cast< int >(val3);
19768 ecode4 = SWIG_AsVal_int(obj3, &val4);
19769 if (!SWIG_IsOK(ecode4)) {
19770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19771 }
19772 arg4 = static_cast< int >(val4);
19773 ecode5 = SWIG_AsVal_int(obj4, &val5);
19774 if (!SWIG_IsOK(ecode5)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19776 }
19777 arg5 = static_cast< int >(val5);
19778 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19779 if (!SWIG_IsOK(res6)) {
19780 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19781 }
19782 arg6 = reinterpret_cast< wxDC * >(argp6);
19783 ecode7 = SWIG_AsVal_int(obj6, &val7);
19784 if (!SWIG_IsOK(ecode7)) {
19785 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19786 }
19787 arg7 = static_cast< int >(val7);
19788 ecode8 = SWIG_AsVal_int(obj7, &val8);
19789 if (!SWIG_IsOK(ecode8)) {
19790 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19791 }
19792 arg8 = static_cast< int >(val8);
19793 if (obj8) {
19794 ecode9 = SWIG_AsVal_int(obj8, &val9);
19795 if (!SWIG_IsOK(ecode9)) {
19796 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19797 }
19798 arg9 = static_cast< int >(val9);
19799 }
19800 if (obj9) {
19801 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19802 if (!SWIG_IsOK(ecode10)) {
19803 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19804 }
19805 arg10 = static_cast< bool >(val10);
19806 }
19807 if (obj10) {
19808 ecode11 = SWIG_AsVal_int(obj10, &val11);
19809 if (!SWIG_IsOK(ecode11)) {
19810 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19811 }
19812 arg11 = static_cast< int >(val11);
19813 }
19814 if (obj11) {
19815 ecode12 = SWIG_AsVal_int(obj11, &val12);
19816 if (!SWIG_IsOK(ecode12)) {
19817 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19818 }
19819 arg12 = static_cast< int >(val12);
19820 }
19821 {
19822 PyThreadState* __tstate = wxPyBeginAllowThreads();
19823 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19824 wxPyEndAllowThreads(__tstate);
19825 if (PyErr_Occurred()) SWIG_fail;
19826 }
19827 {
19828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19829 }
19830 return resultobj;
19831 fail:
19832 return NULL;
19833 }
19834
19835
19836 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj = 0;
19838 wxDC *arg1 = (wxDC *) 0 ;
19839 wxPoint *arg2 = 0 ;
19840 wxSize *arg3 = 0 ;
19841 wxDC *arg4 = (wxDC *) 0 ;
19842 wxPoint *arg5 = 0 ;
19843 int arg6 = (int) wxCOPY ;
19844 bool arg7 = (bool) false ;
19845 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19846 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19847 bool result;
19848 void *argp1 = 0 ;
19849 int res1 = 0 ;
19850 wxPoint temp2 ;
19851 wxSize temp3 ;
19852 void *argp4 = 0 ;
19853 int res4 = 0 ;
19854 wxPoint temp5 ;
19855 int val6 ;
19856 int ecode6 = 0 ;
19857 bool val7 ;
19858 int ecode7 = 0 ;
19859 wxPoint temp8 ;
19860 PyObject * obj0 = 0 ;
19861 PyObject * obj1 = 0 ;
19862 PyObject * obj2 = 0 ;
19863 PyObject * obj3 = 0 ;
19864 PyObject * obj4 = 0 ;
19865 PyObject * obj5 = 0 ;
19866 PyObject * obj6 = 0 ;
19867 PyObject * obj7 = 0 ;
19868 char * kwnames[] = {
19869 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19870 };
19871
19872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19874 if (!SWIG_IsOK(res1)) {
19875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19876 }
19877 arg1 = reinterpret_cast< wxDC * >(argp1);
19878 {
19879 arg2 = &temp2;
19880 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19881 }
19882 {
19883 arg3 = &temp3;
19884 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19885 }
19886 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19887 if (!SWIG_IsOK(res4)) {
19888 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19889 }
19890 arg4 = reinterpret_cast< wxDC * >(argp4);
19891 {
19892 arg5 = &temp5;
19893 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19894 }
19895 if (obj5) {
19896 ecode6 = SWIG_AsVal_int(obj5, &val6);
19897 if (!SWIG_IsOK(ecode6)) {
19898 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19899 }
19900 arg6 = static_cast< int >(val6);
19901 }
19902 if (obj6) {
19903 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19904 if (!SWIG_IsOK(ecode7)) {
19905 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19906 }
19907 arg7 = static_cast< bool >(val7);
19908 }
19909 if (obj7) {
19910 {
19911 arg8 = &temp8;
19912 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19913 }
19914 }
19915 {
19916 PyThreadState* __tstate = wxPyBeginAllowThreads();
19917 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19918 wxPyEndAllowThreads(__tstate);
19919 if (PyErr_Occurred()) SWIG_fail;
19920 }
19921 {
19922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19923 }
19924 return resultobj;
19925 fail:
19926 return NULL;
19927 }
19928
19929
19930 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19931 PyObject *resultobj = 0;
19932 wxDC *arg1 = (wxDC *) 0 ;
19933 int arg2 ;
19934 int arg3 ;
19935 int arg4 ;
19936 int arg5 ;
19937 void *argp1 = 0 ;
19938 int res1 = 0 ;
19939 int val2 ;
19940 int ecode2 = 0 ;
19941 int val3 ;
19942 int ecode3 = 0 ;
19943 int val4 ;
19944 int ecode4 = 0 ;
19945 int val5 ;
19946 int ecode5 = 0 ;
19947 PyObject * obj0 = 0 ;
19948 PyObject * obj1 = 0 ;
19949 PyObject * obj2 = 0 ;
19950 PyObject * obj3 = 0 ;
19951 PyObject * obj4 = 0 ;
19952 char * kwnames[] = {
19953 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19954 };
19955
19956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19958 if (!SWIG_IsOK(res1)) {
19959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19960 }
19961 arg1 = reinterpret_cast< wxDC * >(argp1);
19962 ecode2 = SWIG_AsVal_int(obj1, &val2);
19963 if (!SWIG_IsOK(ecode2)) {
19964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19965 }
19966 arg2 = static_cast< int >(val2);
19967 ecode3 = SWIG_AsVal_int(obj2, &val3);
19968 if (!SWIG_IsOK(ecode3)) {
19969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19970 }
19971 arg3 = static_cast< int >(val3);
19972 ecode4 = SWIG_AsVal_int(obj3, &val4);
19973 if (!SWIG_IsOK(ecode4)) {
19974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19975 }
19976 arg4 = static_cast< int >(val4);
19977 ecode5 = SWIG_AsVal_int(obj4, &val5);
19978 if (!SWIG_IsOK(ecode5)) {
19979 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19980 }
19981 arg5 = static_cast< int >(val5);
19982 {
19983 PyThreadState* __tstate = wxPyBeginAllowThreads();
19984 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19985 wxPyEndAllowThreads(__tstate);
19986 if (PyErr_Occurred()) SWIG_fail;
19987 }
19988 resultobj = SWIG_Py_Void();
19989 return resultobj;
19990 fail:
19991 return NULL;
19992 }
19993
19994
19995 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19996 PyObject *resultobj = 0;
19997 wxDC *arg1 = (wxDC *) 0 ;
19998 wxPoint *arg2 = 0 ;
19999 wxSize *arg3 = 0 ;
20000 void *argp1 = 0 ;
20001 int res1 = 0 ;
20002 wxPoint temp2 ;
20003 wxSize temp3 ;
20004 PyObject * obj0 = 0 ;
20005 PyObject * obj1 = 0 ;
20006 PyObject * obj2 = 0 ;
20007 char * kwnames[] = {
20008 (char *) "self",(char *) "pt",(char *) "sz", NULL
20009 };
20010
20011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20013 if (!SWIG_IsOK(res1)) {
20014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20015 }
20016 arg1 = reinterpret_cast< wxDC * >(argp1);
20017 {
20018 arg2 = &temp2;
20019 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20020 }
20021 {
20022 arg3 = &temp3;
20023 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20024 }
20025 {
20026 PyThreadState* __tstate = wxPyBeginAllowThreads();
20027 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20028 wxPyEndAllowThreads(__tstate);
20029 if (PyErr_Occurred()) SWIG_fail;
20030 }
20031 resultobj = SWIG_Py_Void();
20032 return resultobj;
20033 fail:
20034 return NULL;
20035 }
20036
20037
20038 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20039 PyObject *resultobj = 0;
20040 wxDC *arg1 = (wxDC *) 0 ;
20041 wxRegion *arg2 = 0 ;
20042 void *argp1 = 0 ;
20043 int res1 = 0 ;
20044 void *argp2 = 0 ;
20045 int res2 = 0 ;
20046 PyObject * obj0 = 0 ;
20047 PyObject * obj1 = 0 ;
20048 char * kwnames[] = {
20049 (char *) "self",(char *) "region", NULL
20050 };
20051
20052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20054 if (!SWIG_IsOK(res1)) {
20055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20056 }
20057 arg1 = reinterpret_cast< wxDC * >(argp1);
20058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20059 if (!SWIG_IsOK(res2)) {
20060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20061 }
20062 if (!argp2) {
20063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20064 }
20065 arg2 = reinterpret_cast< wxRegion * >(argp2);
20066 {
20067 PyThreadState* __tstate = wxPyBeginAllowThreads();
20068 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20069 wxPyEndAllowThreads(__tstate);
20070 if (PyErr_Occurred()) SWIG_fail;
20071 }
20072 resultobj = SWIG_Py_Void();
20073 return resultobj;
20074 fail:
20075 return NULL;
20076 }
20077
20078
20079 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20080 PyObject *resultobj = 0;
20081 wxDC *arg1 = (wxDC *) 0 ;
20082 wxRect *arg2 = 0 ;
20083 void *argp1 = 0 ;
20084 int res1 = 0 ;
20085 wxRect temp2 ;
20086 PyObject * obj0 = 0 ;
20087 PyObject * obj1 = 0 ;
20088 char * kwnames[] = {
20089 (char *) "self",(char *) "rect", NULL
20090 };
20091
20092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20094 if (!SWIG_IsOK(res1)) {
20095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20096 }
20097 arg1 = reinterpret_cast< wxDC * >(argp1);
20098 {
20099 arg2 = &temp2;
20100 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20101 }
20102 {
20103 PyThreadState* __tstate = wxPyBeginAllowThreads();
20104 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20105 wxPyEndAllowThreads(__tstate);
20106 if (PyErr_Occurred()) SWIG_fail;
20107 }
20108 resultobj = SWIG_Py_Void();
20109 return resultobj;
20110 fail:
20111 return NULL;
20112 }
20113
20114
20115 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20116 PyObject *resultobj = 0;
20117 wxDC *arg1 = (wxDC *) 0 ;
20118 int arg2 ;
20119 wxPoint *arg3 = (wxPoint *) 0 ;
20120 int arg4 = (int) 0 ;
20121 int arg5 = (int) 0 ;
20122 void *argp1 = 0 ;
20123 int res1 = 0 ;
20124 int val4 ;
20125 int ecode4 = 0 ;
20126 int val5 ;
20127 int ecode5 = 0 ;
20128 PyObject * obj0 = 0 ;
20129 PyObject * obj1 = 0 ;
20130 PyObject * obj2 = 0 ;
20131 PyObject * obj3 = 0 ;
20132 char * kwnames[] = {
20133 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20134 };
20135
20136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20138 if (!SWIG_IsOK(res1)) {
20139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20140 }
20141 arg1 = reinterpret_cast< wxDC * >(argp1);
20142 {
20143 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20144 if (arg3 == NULL) SWIG_fail;
20145 }
20146 if (obj2) {
20147 ecode4 = SWIG_AsVal_int(obj2, &val4);
20148 if (!SWIG_IsOK(ecode4)) {
20149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20150 }
20151 arg4 = static_cast< int >(val4);
20152 }
20153 if (obj3) {
20154 ecode5 = SWIG_AsVal_int(obj3, &val5);
20155 if (!SWIG_IsOK(ecode5)) {
20156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20157 }
20158 arg5 = static_cast< int >(val5);
20159 }
20160 {
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20163 wxPyEndAllowThreads(__tstate);
20164 if (PyErr_Occurred()) SWIG_fail;
20165 }
20166 resultobj = SWIG_Py_Void();
20167 {
20168 if (arg3) delete [] arg3;
20169 }
20170 return resultobj;
20171 fail:
20172 {
20173 if (arg3) delete [] arg3;
20174 }
20175 return NULL;
20176 }
20177
20178
20179 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20180 PyObject *resultobj = 0;
20181 wxDC *arg1 = (wxDC *) 0 ;
20182 int arg2 ;
20183 wxPoint *arg3 = (wxPoint *) 0 ;
20184 int arg4 = (int) 0 ;
20185 int arg5 = (int) 0 ;
20186 int arg6 = (int) wxODDEVEN_RULE ;
20187 void *argp1 = 0 ;
20188 int res1 = 0 ;
20189 int val4 ;
20190 int ecode4 = 0 ;
20191 int val5 ;
20192 int ecode5 = 0 ;
20193 int val6 ;
20194 int ecode6 = 0 ;
20195 PyObject * obj0 = 0 ;
20196 PyObject * obj1 = 0 ;
20197 PyObject * obj2 = 0 ;
20198 PyObject * obj3 = 0 ;
20199 PyObject * obj4 = 0 ;
20200 char * kwnames[] = {
20201 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20202 };
20203
20204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20206 if (!SWIG_IsOK(res1)) {
20207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20208 }
20209 arg1 = reinterpret_cast< wxDC * >(argp1);
20210 {
20211 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20212 if (arg3 == NULL) SWIG_fail;
20213 }
20214 if (obj2) {
20215 ecode4 = SWIG_AsVal_int(obj2, &val4);
20216 if (!SWIG_IsOK(ecode4)) {
20217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20218 }
20219 arg4 = static_cast< int >(val4);
20220 }
20221 if (obj3) {
20222 ecode5 = SWIG_AsVal_int(obj3, &val5);
20223 if (!SWIG_IsOK(ecode5)) {
20224 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20225 }
20226 arg5 = static_cast< int >(val5);
20227 }
20228 if (obj4) {
20229 ecode6 = SWIG_AsVal_int(obj4, &val6);
20230 if (!SWIG_IsOK(ecode6)) {
20231 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20232 }
20233 arg6 = static_cast< int >(val6);
20234 }
20235 {
20236 PyThreadState* __tstate = wxPyBeginAllowThreads();
20237 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20238 wxPyEndAllowThreads(__tstate);
20239 if (PyErr_Occurred()) SWIG_fail;
20240 }
20241 resultobj = SWIG_Py_Void();
20242 {
20243 if (arg3) delete [] arg3;
20244 }
20245 return resultobj;
20246 fail:
20247 {
20248 if (arg3) delete [] arg3;
20249 }
20250 return NULL;
20251 }
20252
20253
20254 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20255 PyObject *resultobj = 0;
20256 wxDC *arg1 = (wxDC *) 0 ;
20257 wxString *arg2 = 0 ;
20258 wxRect *arg3 = 0 ;
20259 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20260 int arg5 = (int) -1 ;
20261 void *argp1 = 0 ;
20262 int res1 = 0 ;
20263 bool temp2 = false ;
20264 wxRect temp3 ;
20265 int val4 ;
20266 int ecode4 = 0 ;
20267 int val5 ;
20268 int ecode5 = 0 ;
20269 PyObject * obj0 = 0 ;
20270 PyObject * obj1 = 0 ;
20271 PyObject * obj2 = 0 ;
20272 PyObject * obj3 = 0 ;
20273 PyObject * obj4 = 0 ;
20274 char * kwnames[] = {
20275 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20276 };
20277
20278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20280 if (!SWIG_IsOK(res1)) {
20281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20282 }
20283 arg1 = reinterpret_cast< wxDC * >(argp1);
20284 {
20285 arg2 = wxString_in_helper(obj1);
20286 if (arg2 == NULL) SWIG_fail;
20287 temp2 = true;
20288 }
20289 {
20290 arg3 = &temp3;
20291 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20292 }
20293 if (obj3) {
20294 ecode4 = SWIG_AsVal_int(obj3, &val4);
20295 if (!SWIG_IsOK(ecode4)) {
20296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20297 }
20298 arg4 = static_cast< int >(val4);
20299 }
20300 if (obj4) {
20301 ecode5 = SWIG_AsVal_int(obj4, &val5);
20302 if (!SWIG_IsOK(ecode5)) {
20303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20304 }
20305 arg5 = static_cast< int >(val5);
20306 }
20307 {
20308 PyThreadState* __tstate = wxPyBeginAllowThreads();
20309 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20310 wxPyEndAllowThreads(__tstate);
20311 if (PyErr_Occurred()) SWIG_fail;
20312 }
20313 resultobj = SWIG_Py_Void();
20314 {
20315 if (temp2)
20316 delete arg2;
20317 }
20318 return resultobj;
20319 fail:
20320 {
20321 if (temp2)
20322 delete arg2;
20323 }
20324 return NULL;
20325 }
20326
20327
20328 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20329 PyObject *resultobj = 0;
20330 wxDC *arg1 = (wxDC *) 0 ;
20331 wxString *arg2 = 0 ;
20332 wxBitmap *arg3 = 0 ;
20333 wxRect *arg4 = 0 ;
20334 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20335 int arg6 = (int) -1 ;
20336 wxRect result;
20337 void *argp1 = 0 ;
20338 int res1 = 0 ;
20339 bool temp2 = false ;
20340 void *argp3 = 0 ;
20341 int res3 = 0 ;
20342 wxRect temp4 ;
20343 int val5 ;
20344 int ecode5 = 0 ;
20345 int val6 ;
20346 int ecode6 = 0 ;
20347 PyObject * obj0 = 0 ;
20348 PyObject * obj1 = 0 ;
20349 PyObject * obj2 = 0 ;
20350 PyObject * obj3 = 0 ;
20351 PyObject * obj4 = 0 ;
20352 PyObject * obj5 = 0 ;
20353 char * kwnames[] = {
20354 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20355 };
20356
20357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20359 if (!SWIG_IsOK(res1)) {
20360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20361 }
20362 arg1 = reinterpret_cast< wxDC * >(argp1);
20363 {
20364 arg2 = wxString_in_helper(obj1);
20365 if (arg2 == NULL) SWIG_fail;
20366 temp2 = true;
20367 }
20368 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20369 if (!SWIG_IsOK(res3)) {
20370 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20371 }
20372 if (!argp3) {
20373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20374 }
20375 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20376 {
20377 arg4 = &temp4;
20378 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20379 }
20380 if (obj4) {
20381 ecode5 = SWIG_AsVal_int(obj4, &val5);
20382 if (!SWIG_IsOK(ecode5)) {
20383 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20384 }
20385 arg5 = static_cast< int >(val5);
20386 }
20387 if (obj5) {
20388 ecode6 = SWIG_AsVal_int(obj5, &val6);
20389 if (!SWIG_IsOK(ecode6)) {
20390 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20391 }
20392 arg6 = static_cast< int >(val6);
20393 }
20394 {
20395 PyThreadState* __tstate = wxPyBeginAllowThreads();
20396 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20397 wxPyEndAllowThreads(__tstate);
20398 if (PyErr_Occurred()) SWIG_fail;
20399 }
20400 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20401 {
20402 if (temp2)
20403 delete arg2;
20404 }
20405 return resultobj;
20406 fail:
20407 {
20408 if (temp2)
20409 delete arg2;
20410 }
20411 return NULL;
20412 }
20413
20414
20415 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20416 PyObject *resultobj = 0;
20417 wxDC *arg1 = (wxDC *) 0 ;
20418 int arg2 ;
20419 wxPoint *arg3 = (wxPoint *) 0 ;
20420 void *argp1 = 0 ;
20421 int res1 = 0 ;
20422 PyObject * obj0 = 0 ;
20423 PyObject * obj1 = 0 ;
20424 char * kwnames[] = {
20425 (char *) "self",(char *) "points", NULL
20426 };
20427
20428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20430 if (!SWIG_IsOK(res1)) {
20431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20432 }
20433 arg1 = reinterpret_cast< wxDC * >(argp1);
20434 {
20435 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20436 if (arg3 == NULL) SWIG_fail;
20437 }
20438 {
20439 PyThreadState* __tstate = wxPyBeginAllowThreads();
20440 (arg1)->DrawSpline(arg2,arg3);
20441 wxPyEndAllowThreads(__tstate);
20442 if (PyErr_Occurred()) SWIG_fail;
20443 }
20444 resultobj = SWIG_Py_Void();
20445 {
20446 if (arg3) delete [] arg3;
20447 }
20448 return resultobj;
20449 fail:
20450 {
20451 if (arg3) delete [] arg3;
20452 }
20453 return NULL;
20454 }
20455
20456
20457 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20458 PyObject *resultobj = 0;
20459 wxDC *arg1 = (wxDC *) 0 ;
20460 void *argp1 = 0 ;
20461 int res1 = 0 ;
20462 PyObject *swig_obj[1] ;
20463
20464 if (!args) SWIG_fail;
20465 swig_obj[0] = args;
20466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20467 if (!SWIG_IsOK(res1)) {
20468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20469 }
20470 arg1 = reinterpret_cast< wxDC * >(argp1);
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 (arg1)->Clear();
20474 wxPyEndAllowThreads(__tstate);
20475 if (PyErr_Occurred()) SWIG_fail;
20476 }
20477 resultobj = SWIG_Py_Void();
20478 return resultobj;
20479 fail:
20480 return NULL;
20481 }
20482
20483
20484 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20485 PyObject *resultobj = 0;
20486 wxDC *arg1 = (wxDC *) 0 ;
20487 wxString *arg2 = 0 ;
20488 bool result;
20489 void *argp1 = 0 ;
20490 int res1 = 0 ;
20491 bool temp2 = false ;
20492 PyObject * obj0 = 0 ;
20493 PyObject * obj1 = 0 ;
20494 char * kwnames[] = {
20495 (char *) "self",(char *) "message", NULL
20496 };
20497
20498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20500 if (!SWIG_IsOK(res1)) {
20501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20502 }
20503 arg1 = reinterpret_cast< wxDC * >(argp1);
20504 {
20505 arg2 = wxString_in_helper(obj1);
20506 if (arg2 == NULL) SWIG_fail;
20507 temp2 = true;
20508 }
20509 {
20510 PyThreadState* __tstate = wxPyBeginAllowThreads();
20511 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20512 wxPyEndAllowThreads(__tstate);
20513 if (PyErr_Occurred()) SWIG_fail;
20514 }
20515 {
20516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20517 }
20518 {
20519 if (temp2)
20520 delete arg2;
20521 }
20522 return resultobj;
20523 fail:
20524 {
20525 if (temp2)
20526 delete arg2;
20527 }
20528 return NULL;
20529 }
20530
20531
20532 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20533 PyObject *resultobj = 0;
20534 wxDC *arg1 = (wxDC *) 0 ;
20535 void *argp1 = 0 ;
20536 int res1 = 0 ;
20537 PyObject *swig_obj[1] ;
20538
20539 if (!args) SWIG_fail;
20540 swig_obj[0] = args;
20541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20542 if (!SWIG_IsOK(res1)) {
20543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20544 }
20545 arg1 = reinterpret_cast< wxDC * >(argp1);
20546 {
20547 PyThreadState* __tstate = wxPyBeginAllowThreads();
20548 (arg1)->EndDoc();
20549 wxPyEndAllowThreads(__tstate);
20550 if (PyErr_Occurred()) SWIG_fail;
20551 }
20552 resultobj = SWIG_Py_Void();
20553 return resultobj;
20554 fail:
20555 return NULL;
20556 }
20557
20558
20559 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20560 PyObject *resultobj = 0;
20561 wxDC *arg1 = (wxDC *) 0 ;
20562 void *argp1 = 0 ;
20563 int res1 = 0 ;
20564 PyObject *swig_obj[1] ;
20565
20566 if (!args) SWIG_fail;
20567 swig_obj[0] = args;
20568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20569 if (!SWIG_IsOK(res1)) {
20570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20571 }
20572 arg1 = reinterpret_cast< wxDC * >(argp1);
20573 {
20574 PyThreadState* __tstate = wxPyBeginAllowThreads();
20575 (arg1)->StartPage();
20576 wxPyEndAllowThreads(__tstate);
20577 if (PyErr_Occurred()) SWIG_fail;
20578 }
20579 resultobj = SWIG_Py_Void();
20580 return resultobj;
20581 fail:
20582 return NULL;
20583 }
20584
20585
20586 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20587 PyObject *resultobj = 0;
20588 wxDC *arg1 = (wxDC *) 0 ;
20589 void *argp1 = 0 ;
20590 int res1 = 0 ;
20591 PyObject *swig_obj[1] ;
20592
20593 if (!args) SWIG_fail;
20594 swig_obj[0] = args;
20595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20596 if (!SWIG_IsOK(res1)) {
20597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20598 }
20599 arg1 = reinterpret_cast< wxDC * >(argp1);
20600 {
20601 PyThreadState* __tstate = wxPyBeginAllowThreads();
20602 (arg1)->EndPage();
20603 wxPyEndAllowThreads(__tstate);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
20606 resultobj = SWIG_Py_Void();
20607 return resultobj;
20608 fail:
20609 return NULL;
20610 }
20611
20612
20613 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20614 PyObject *resultobj = 0;
20615 wxDC *arg1 = (wxDC *) 0 ;
20616 wxFont *arg2 = 0 ;
20617 void *argp1 = 0 ;
20618 int res1 = 0 ;
20619 void *argp2 = 0 ;
20620 int res2 = 0 ;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20623 char * kwnames[] = {
20624 (char *) "self",(char *) "font", NULL
20625 };
20626
20627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20629 if (!SWIG_IsOK(res1)) {
20630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20631 }
20632 arg1 = reinterpret_cast< wxDC * >(argp1);
20633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20634 if (!SWIG_IsOK(res2)) {
20635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20636 }
20637 if (!argp2) {
20638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20639 }
20640 arg2 = reinterpret_cast< wxFont * >(argp2);
20641 {
20642 PyThreadState* __tstate = wxPyBeginAllowThreads();
20643 (arg1)->SetFont((wxFont const &)*arg2);
20644 wxPyEndAllowThreads(__tstate);
20645 if (PyErr_Occurred()) SWIG_fail;
20646 }
20647 resultobj = SWIG_Py_Void();
20648 return resultobj;
20649 fail:
20650 return NULL;
20651 }
20652
20653
20654 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20655 PyObject *resultobj = 0;
20656 wxDC *arg1 = (wxDC *) 0 ;
20657 wxPen *arg2 = 0 ;
20658 void *argp1 = 0 ;
20659 int res1 = 0 ;
20660 void *argp2 = 0 ;
20661 int res2 = 0 ;
20662 PyObject * obj0 = 0 ;
20663 PyObject * obj1 = 0 ;
20664 char * kwnames[] = {
20665 (char *) "self",(char *) "pen", NULL
20666 };
20667
20668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20670 if (!SWIG_IsOK(res1)) {
20671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20672 }
20673 arg1 = reinterpret_cast< wxDC * >(argp1);
20674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20675 if (!SWIG_IsOK(res2)) {
20676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20677 }
20678 if (!argp2) {
20679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20680 }
20681 arg2 = reinterpret_cast< wxPen * >(argp2);
20682 {
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 (arg1)->SetPen((wxPen const &)*arg2);
20685 wxPyEndAllowThreads(__tstate);
20686 if (PyErr_Occurred()) SWIG_fail;
20687 }
20688 resultobj = SWIG_Py_Void();
20689 return resultobj;
20690 fail:
20691 return NULL;
20692 }
20693
20694
20695 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20696 PyObject *resultobj = 0;
20697 wxDC *arg1 = (wxDC *) 0 ;
20698 wxBrush *arg2 = 0 ;
20699 void *argp1 = 0 ;
20700 int res1 = 0 ;
20701 void *argp2 = 0 ;
20702 int res2 = 0 ;
20703 PyObject * obj0 = 0 ;
20704 PyObject * obj1 = 0 ;
20705 char * kwnames[] = {
20706 (char *) "self",(char *) "brush", NULL
20707 };
20708
20709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20711 if (!SWIG_IsOK(res1)) {
20712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20713 }
20714 arg1 = reinterpret_cast< wxDC * >(argp1);
20715 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20716 if (!SWIG_IsOK(res2)) {
20717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20718 }
20719 if (!argp2) {
20720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20721 }
20722 arg2 = reinterpret_cast< wxBrush * >(argp2);
20723 {
20724 PyThreadState* __tstate = wxPyBeginAllowThreads();
20725 (arg1)->SetBrush((wxBrush const &)*arg2);
20726 wxPyEndAllowThreads(__tstate);
20727 if (PyErr_Occurred()) SWIG_fail;
20728 }
20729 resultobj = SWIG_Py_Void();
20730 return resultobj;
20731 fail:
20732 return NULL;
20733 }
20734
20735
20736 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj = 0;
20738 wxDC *arg1 = (wxDC *) 0 ;
20739 wxBrush *arg2 = 0 ;
20740 void *argp1 = 0 ;
20741 int res1 = 0 ;
20742 void *argp2 = 0 ;
20743 int res2 = 0 ;
20744 PyObject * obj0 = 0 ;
20745 PyObject * obj1 = 0 ;
20746 char * kwnames[] = {
20747 (char *) "self",(char *) "brush", NULL
20748 };
20749
20750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20752 if (!SWIG_IsOK(res1)) {
20753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20754 }
20755 arg1 = reinterpret_cast< wxDC * >(argp1);
20756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20757 if (!SWIG_IsOK(res2)) {
20758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20759 }
20760 if (!argp2) {
20761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20762 }
20763 arg2 = reinterpret_cast< wxBrush * >(argp2);
20764 {
20765 PyThreadState* __tstate = wxPyBeginAllowThreads();
20766 (arg1)->SetBackground((wxBrush const &)*arg2);
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 resultobj = SWIG_Py_Void();
20771 return resultobj;
20772 fail:
20773 return NULL;
20774 }
20775
20776
20777 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20778 PyObject *resultobj = 0;
20779 wxDC *arg1 = (wxDC *) 0 ;
20780 int arg2 ;
20781 void *argp1 = 0 ;
20782 int res1 = 0 ;
20783 int val2 ;
20784 int ecode2 = 0 ;
20785 PyObject * obj0 = 0 ;
20786 PyObject * obj1 = 0 ;
20787 char * kwnames[] = {
20788 (char *) "self",(char *) "mode", NULL
20789 };
20790
20791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20793 if (!SWIG_IsOK(res1)) {
20794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20795 }
20796 arg1 = reinterpret_cast< wxDC * >(argp1);
20797 ecode2 = SWIG_AsVal_int(obj1, &val2);
20798 if (!SWIG_IsOK(ecode2)) {
20799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20800 }
20801 arg2 = static_cast< int >(val2);
20802 {
20803 PyThreadState* __tstate = wxPyBeginAllowThreads();
20804 (arg1)->SetBackgroundMode(arg2);
20805 wxPyEndAllowThreads(__tstate);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 resultobj = SWIG_Py_Void();
20809 return resultobj;
20810 fail:
20811 return NULL;
20812 }
20813
20814
20815 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20816 PyObject *resultobj = 0;
20817 wxDC *arg1 = (wxDC *) 0 ;
20818 wxPalette *arg2 = 0 ;
20819 void *argp1 = 0 ;
20820 int res1 = 0 ;
20821 void *argp2 = 0 ;
20822 int res2 = 0 ;
20823 PyObject * obj0 = 0 ;
20824 PyObject * obj1 = 0 ;
20825 char * kwnames[] = {
20826 (char *) "self",(char *) "palette", NULL
20827 };
20828
20829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20831 if (!SWIG_IsOK(res1)) {
20832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20833 }
20834 arg1 = reinterpret_cast< wxDC * >(argp1);
20835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20836 if (!SWIG_IsOK(res2)) {
20837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20838 }
20839 if (!argp2) {
20840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20841 }
20842 arg2 = reinterpret_cast< wxPalette * >(argp2);
20843 {
20844 PyThreadState* __tstate = wxPyBeginAllowThreads();
20845 (arg1)->SetPalette((wxPalette const &)*arg2);
20846 wxPyEndAllowThreads(__tstate);
20847 if (PyErr_Occurred()) SWIG_fail;
20848 }
20849 resultobj = SWIG_Py_Void();
20850 return resultobj;
20851 fail:
20852 return NULL;
20853 }
20854
20855
20856 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20857 PyObject *resultobj = 0;
20858 wxDC *arg1 = (wxDC *) 0 ;
20859 void *argp1 = 0 ;
20860 int res1 = 0 ;
20861 PyObject *swig_obj[1] ;
20862
20863 if (!args) SWIG_fail;
20864 swig_obj[0] = args;
20865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20866 if (!SWIG_IsOK(res1)) {
20867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20868 }
20869 arg1 = reinterpret_cast< wxDC * >(argp1);
20870 {
20871 PyThreadState* __tstate = wxPyBeginAllowThreads();
20872 (arg1)->DestroyClippingRegion();
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 resultobj = SWIG_Py_Void();
20877 return resultobj;
20878 fail:
20879 return NULL;
20880 }
20881
20882
20883 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20884 PyObject *resultobj = 0;
20885 wxDC *arg1 = (wxDC *) 0 ;
20886 int *arg2 = (int *) 0 ;
20887 int *arg3 = (int *) 0 ;
20888 int *arg4 = (int *) 0 ;
20889 int *arg5 = (int *) 0 ;
20890 void *argp1 = 0 ;
20891 int res1 = 0 ;
20892 int temp2 ;
20893 int res2 = SWIG_TMPOBJ ;
20894 int temp3 ;
20895 int res3 = SWIG_TMPOBJ ;
20896 int temp4 ;
20897 int res4 = SWIG_TMPOBJ ;
20898 int temp5 ;
20899 int res5 = SWIG_TMPOBJ ;
20900 PyObject *swig_obj[1] ;
20901
20902 arg2 = &temp2;
20903 arg3 = &temp3;
20904 arg4 = &temp4;
20905 arg5 = &temp5;
20906 if (!args) SWIG_fail;
20907 swig_obj[0] = args;
20908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20909 if (!SWIG_IsOK(res1)) {
20910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20911 }
20912 arg1 = reinterpret_cast< wxDC * >(argp1);
20913 {
20914 PyThreadState* __tstate = wxPyBeginAllowThreads();
20915 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20916 wxPyEndAllowThreads(__tstate);
20917 if (PyErr_Occurred()) SWIG_fail;
20918 }
20919 resultobj = SWIG_Py_Void();
20920 if (SWIG_IsTmpObj(res2)) {
20921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20922 } else {
20923 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20925 }
20926 if (SWIG_IsTmpObj(res3)) {
20927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20928 } else {
20929 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20931 }
20932 if (SWIG_IsTmpObj(res4)) {
20933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20934 } else {
20935 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20936 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20937 }
20938 if (SWIG_IsTmpObj(res5)) {
20939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20940 } else {
20941 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20943 }
20944 return resultobj;
20945 fail:
20946 return NULL;
20947 }
20948
20949
20950 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20951 PyObject *resultobj = 0;
20952 wxDC *arg1 = (wxDC *) 0 ;
20953 wxRect result;
20954 void *argp1 = 0 ;
20955 int res1 = 0 ;
20956 PyObject *swig_obj[1] ;
20957
20958 if (!args) SWIG_fail;
20959 swig_obj[0] = args;
20960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20961 if (!SWIG_IsOK(res1)) {
20962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20963 }
20964 arg1 = reinterpret_cast< wxDC * >(argp1);
20965 {
20966 PyThreadState* __tstate = wxPyBeginAllowThreads();
20967 result = wxDC_GetClippingRect(arg1);
20968 wxPyEndAllowThreads(__tstate);
20969 if (PyErr_Occurred()) SWIG_fail;
20970 }
20971 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20972 return resultobj;
20973 fail:
20974 return NULL;
20975 }
20976
20977
20978 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20979 PyObject *resultobj = 0;
20980 wxDC *arg1 = (wxDC *) 0 ;
20981 int result;
20982 void *argp1 = 0 ;
20983 int res1 = 0 ;
20984 PyObject *swig_obj[1] ;
20985
20986 if (!args) SWIG_fail;
20987 swig_obj[0] = args;
20988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20989 if (!SWIG_IsOK(res1)) {
20990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20991 }
20992 arg1 = reinterpret_cast< wxDC * >(argp1);
20993 {
20994 PyThreadState* __tstate = wxPyBeginAllowThreads();
20995 result = (int)((wxDC const *)arg1)->GetCharHeight();
20996 wxPyEndAllowThreads(__tstate);
20997 if (PyErr_Occurred()) SWIG_fail;
20998 }
20999 resultobj = SWIG_From_int(static_cast< int >(result));
21000 return resultobj;
21001 fail:
21002 return NULL;
21003 }
21004
21005
21006 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21007 PyObject *resultobj = 0;
21008 wxDC *arg1 = (wxDC *) 0 ;
21009 int result;
21010 void *argp1 = 0 ;
21011 int res1 = 0 ;
21012 PyObject *swig_obj[1] ;
21013
21014 if (!args) SWIG_fail;
21015 swig_obj[0] = args;
21016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21017 if (!SWIG_IsOK(res1)) {
21018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21019 }
21020 arg1 = reinterpret_cast< wxDC * >(argp1);
21021 {
21022 PyThreadState* __tstate = wxPyBeginAllowThreads();
21023 result = (int)((wxDC const *)arg1)->GetCharWidth();
21024 wxPyEndAllowThreads(__tstate);
21025 if (PyErr_Occurred()) SWIG_fail;
21026 }
21027 resultobj = SWIG_From_int(static_cast< int >(result));
21028 return resultobj;
21029 fail:
21030 return NULL;
21031 }
21032
21033
21034 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21035 PyObject *resultobj = 0;
21036 wxDC *arg1 = (wxDC *) 0 ;
21037 wxString *arg2 = 0 ;
21038 int *arg3 = (int *) 0 ;
21039 int *arg4 = (int *) 0 ;
21040 void *argp1 = 0 ;
21041 int res1 = 0 ;
21042 bool temp2 = false ;
21043 int temp3 ;
21044 int res3 = SWIG_TMPOBJ ;
21045 int temp4 ;
21046 int res4 = SWIG_TMPOBJ ;
21047 PyObject * obj0 = 0 ;
21048 PyObject * obj1 = 0 ;
21049 char * kwnames[] = {
21050 (char *) "self",(char *) "string", NULL
21051 };
21052
21053 arg3 = &temp3;
21054 arg4 = &temp4;
21055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21057 if (!SWIG_IsOK(res1)) {
21058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21059 }
21060 arg1 = reinterpret_cast< wxDC * >(argp1);
21061 {
21062 arg2 = wxString_in_helper(obj1);
21063 if (arg2 == NULL) SWIG_fail;
21064 temp2 = true;
21065 }
21066 {
21067 PyThreadState* __tstate = wxPyBeginAllowThreads();
21068 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21069 wxPyEndAllowThreads(__tstate);
21070 if (PyErr_Occurred()) SWIG_fail;
21071 }
21072 resultobj = SWIG_Py_Void();
21073 if (SWIG_IsTmpObj(res3)) {
21074 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21075 } else {
21076 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21077 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21078 }
21079 if (SWIG_IsTmpObj(res4)) {
21080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21081 } else {
21082 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21084 }
21085 {
21086 if (temp2)
21087 delete arg2;
21088 }
21089 return resultobj;
21090 fail:
21091 {
21092 if (temp2)
21093 delete arg2;
21094 }
21095 return NULL;
21096 }
21097
21098
21099 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21100 PyObject *resultobj = 0;
21101 wxDC *arg1 = (wxDC *) 0 ;
21102 wxString *arg2 = 0 ;
21103 int *arg3 = (int *) 0 ;
21104 int *arg4 = (int *) 0 ;
21105 int *arg5 = (int *) 0 ;
21106 int *arg6 = (int *) 0 ;
21107 wxFont *arg7 = (wxFont *) NULL ;
21108 void *argp1 = 0 ;
21109 int res1 = 0 ;
21110 bool temp2 = false ;
21111 int temp3 ;
21112 int res3 = SWIG_TMPOBJ ;
21113 int temp4 ;
21114 int res4 = SWIG_TMPOBJ ;
21115 int temp5 ;
21116 int res5 = SWIG_TMPOBJ ;
21117 int temp6 ;
21118 int res6 = SWIG_TMPOBJ ;
21119 void *argp7 = 0 ;
21120 int res7 = 0 ;
21121 PyObject * obj0 = 0 ;
21122 PyObject * obj1 = 0 ;
21123 PyObject * obj2 = 0 ;
21124 char * kwnames[] = {
21125 (char *) "self",(char *) "string",(char *) "font", NULL
21126 };
21127
21128 arg3 = &temp3;
21129 arg4 = &temp4;
21130 arg5 = &temp5;
21131 arg6 = &temp6;
21132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21134 if (!SWIG_IsOK(res1)) {
21135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21136 }
21137 arg1 = reinterpret_cast< wxDC * >(argp1);
21138 {
21139 arg2 = wxString_in_helper(obj1);
21140 if (arg2 == NULL) SWIG_fail;
21141 temp2 = true;
21142 }
21143 if (obj2) {
21144 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21145 if (!SWIG_IsOK(res7)) {
21146 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21147 }
21148 arg7 = reinterpret_cast< wxFont * >(argp7);
21149 }
21150 {
21151 PyThreadState* __tstate = wxPyBeginAllowThreads();
21152 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21153 wxPyEndAllowThreads(__tstate);
21154 if (PyErr_Occurred()) SWIG_fail;
21155 }
21156 resultobj = SWIG_Py_Void();
21157 if (SWIG_IsTmpObj(res3)) {
21158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21159 } else {
21160 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21162 }
21163 if (SWIG_IsTmpObj(res4)) {
21164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21165 } else {
21166 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21168 }
21169 if (SWIG_IsTmpObj(res5)) {
21170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21171 } else {
21172 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21174 }
21175 if (SWIG_IsTmpObj(res6)) {
21176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21177 } else {
21178 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21180 }
21181 {
21182 if (temp2)
21183 delete arg2;
21184 }
21185 return resultobj;
21186 fail:
21187 {
21188 if (temp2)
21189 delete arg2;
21190 }
21191 return NULL;
21192 }
21193
21194
21195 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21196 PyObject *resultobj = 0;
21197 wxDC *arg1 = (wxDC *) 0 ;
21198 wxString *arg2 = 0 ;
21199 int *arg3 = (int *) 0 ;
21200 int *arg4 = (int *) 0 ;
21201 int *arg5 = (int *) 0 ;
21202 wxFont *arg6 = (wxFont *) NULL ;
21203 void *argp1 = 0 ;
21204 int res1 = 0 ;
21205 bool temp2 = false ;
21206 int temp3 ;
21207 int res3 = SWIG_TMPOBJ ;
21208 int temp4 ;
21209 int res4 = SWIG_TMPOBJ ;
21210 int temp5 ;
21211 int res5 = SWIG_TMPOBJ ;
21212 void *argp6 = 0 ;
21213 int res6 = 0 ;
21214 PyObject * obj0 = 0 ;
21215 PyObject * obj1 = 0 ;
21216 PyObject * obj2 = 0 ;
21217 char * kwnames[] = {
21218 (char *) "self",(char *) "text",(char *) "font", NULL
21219 };
21220
21221 arg3 = &temp3;
21222 arg4 = &temp4;
21223 arg5 = &temp5;
21224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21226 if (!SWIG_IsOK(res1)) {
21227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21228 }
21229 arg1 = reinterpret_cast< wxDC * >(argp1);
21230 {
21231 arg2 = wxString_in_helper(obj1);
21232 if (arg2 == NULL) SWIG_fail;
21233 temp2 = true;
21234 }
21235 if (obj2) {
21236 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21237 if (!SWIG_IsOK(res6)) {
21238 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21239 }
21240 arg6 = reinterpret_cast< wxFont * >(argp6);
21241 }
21242 {
21243 PyThreadState* __tstate = wxPyBeginAllowThreads();
21244 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21245 wxPyEndAllowThreads(__tstate);
21246 if (PyErr_Occurred()) SWIG_fail;
21247 }
21248 resultobj = SWIG_Py_Void();
21249 if (SWIG_IsTmpObj(res3)) {
21250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21251 } else {
21252 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21254 }
21255 if (SWIG_IsTmpObj(res4)) {
21256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21257 } else {
21258 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21260 }
21261 if (SWIG_IsTmpObj(res5)) {
21262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21263 } else {
21264 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21266 }
21267 {
21268 if (temp2)
21269 delete arg2;
21270 }
21271 return resultobj;
21272 fail:
21273 {
21274 if (temp2)
21275 delete arg2;
21276 }
21277 return NULL;
21278 }
21279
21280
21281 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21282 PyObject *resultobj = 0;
21283 wxDC *arg1 = (wxDC *) 0 ;
21284 wxString *arg2 = 0 ;
21285 wxArrayInt result;
21286 void *argp1 = 0 ;
21287 int res1 = 0 ;
21288 bool temp2 = false ;
21289 PyObject * obj0 = 0 ;
21290 PyObject * obj1 = 0 ;
21291 char * kwnames[] = {
21292 (char *) "self",(char *) "text", NULL
21293 };
21294
21295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21297 if (!SWIG_IsOK(res1)) {
21298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21299 }
21300 arg1 = reinterpret_cast< wxDC * >(argp1);
21301 {
21302 arg2 = wxString_in_helper(obj1);
21303 if (arg2 == NULL) SWIG_fail;
21304 temp2 = true;
21305 }
21306 {
21307 PyThreadState* __tstate = wxPyBeginAllowThreads();
21308 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21309 wxPyEndAllowThreads(__tstate);
21310 if (PyErr_Occurred()) SWIG_fail;
21311 }
21312 {
21313 resultobj = PyList_New(0);
21314 size_t idx;
21315 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
21316 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
21317 PyList_Append(resultobj, val);
21318 Py_DECREF(val);
21319 }
21320 }
21321 {
21322 if (temp2)
21323 delete arg2;
21324 }
21325 return resultobj;
21326 fail:
21327 {
21328 if (temp2)
21329 delete arg2;
21330 }
21331 return NULL;
21332 }
21333
21334
21335 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21336 PyObject *resultobj = 0;
21337 wxDC *arg1 = (wxDC *) 0 ;
21338 wxSize result;
21339 void *argp1 = 0 ;
21340 int res1 = 0 ;
21341 PyObject *swig_obj[1] ;
21342
21343 if (!args) SWIG_fail;
21344 swig_obj[0] = args;
21345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21346 if (!SWIG_IsOK(res1)) {
21347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21348 }
21349 arg1 = reinterpret_cast< wxDC * >(argp1);
21350 {
21351 PyThreadState* __tstate = wxPyBeginAllowThreads();
21352 result = (arg1)->GetSize();
21353 wxPyEndAllowThreads(__tstate);
21354 if (PyErr_Occurred()) SWIG_fail;
21355 }
21356 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21357 return resultobj;
21358 fail:
21359 return NULL;
21360 }
21361
21362
21363 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21364 PyObject *resultobj = 0;
21365 wxDC *arg1 = (wxDC *) 0 ;
21366 int *arg2 = (int *) 0 ;
21367 int *arg3 = (int *) 0 ;
21368 void *argp1 = 0 ;
21369 int res1 = 0 ;
21370 int temp2 ;
21371 int res2 = SWIG_TMPOBJ ;
21372 int temp3 ;
21373 int res3 = SWIG_TMPOBJ ;
21374 PyObject *swig_obj[1] ;
21375
21376 arg2 = &temp2;
21377 arg3 = &temp3;
21378 if (!args) SWIG_fail;
21379 swig_obj[0] = args;
21380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21381 if (!SWIG_IsOK(res1)) {
21382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21383 }
21384 arg1 = reinterpret_cast< wxDC * >(argp1);
21385 {
21386 PyThreadState* __tstate = wxPyBeginAllowThreads();
21387 (arg1)->GetSize(arg2,arg3);
21388 wxPyEndAllowThreads(__tstate);
21389 if (PyErr_Occurred()) SWIG_fail;
21390 }
21391 resultobj = SWIG_Py_Void();
21392 if (SWIG_IsTmpObj(res2)) {
21393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21394 } else {
21395 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21397 }
21398 if (SWIG_IsTmpObj(res3)) {
21399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21400 } else {
21401 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21403 }
21404 return resultobj;
21405 fail:
21406 return NULL;
21407 }
21408
21409
21410 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21411 PyObject *resultobj = 0;
21412 wxDC *arg1 = (wxDC *) 0 ;
21413 wxSize result;
21414 void *argp1 = 0 ;
21415 int res1 = 0 ;
21416 PyObject *swig_obj[1] ;
21417
21418 if (!args) SWIG_fail;
21419 swig_obj[0] = args;
21420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21421 if (!SWIG_IsOK(res1)) {
21422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21423 }
21424 arg1 = reinterpret_cast< wxDC * >(argp1);
21425 {
21426 PyThreadState* __tstate = wxPyBeginAllowThreads();
21427 result = ((wxDC const *)arg1)->GetSizeMM();
21428 wxPyEndAllowThreads(__tstate);
21429 if (PyErr_Occurred()) SWIG_fail;
21430 }
21431 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21432 return resultobj;
21433 fail:
21434 return NULL;
21435 }
21436
21437
21438 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21439 PyObject *resultobj = 0;
21440 wxDC *arg1 = (wxDC *) 0 ;
21441 int *arg2 = (int *) 0 ;
21442 int *arg3 = (int *) 0 ;
21443 void *argp1 = 0 ;
21444 int res1 = 0 ;
21445 int temp2 ;
21446 int res2 = SWIG_TMPOBJ ;
21447 int temp3 ;
21448 int res3 = SWIG_TMPOBJ ;
21449 PyObject *swig_obj[1] ;
21450
21451 arg2 = &temp2;
21452 arg3 = &temp3;
21453 if (!args) SWIG_fail;
21454 swig_obj[0] = args;
21455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21456 if (!SWIG_IsOK(res1)) {
21457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21458 }
21459 arg1 = reinterpret_cast< wxDC * >(argp1);
21460 {
21461 PyThreadState* __tstate = wxPyBeginAllowThreads();
21462 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21463 wxPyEndAllowThreads(__tstate);
21464 if (PyErr_Occurred()) SWIG_fail;
21465 }
21466 resultobj = SWIG_Py_Void();
21467 if (SWIG_IsTmpObj(res2)) {
21468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21469 } else {
21470 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21472 }
21473 if (SWIG_IsTmpObj(res3)) {
21474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21475 } else {
21476 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21478 }
21479 return resultobj;
21480 fail:
21481 return NULL;
21482 }
21483
21484
21485 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21486 PyObject *resultobj = 0;
21487 wxDC *arg1 = (wxDC *) 0 ;
21488 int arg2 ;
21489 int result;
21490 void *argp1 = 0 ;
21491 int res1 = 0 ;
21492 int val2 ;
21493 int ecode2 = 0 ;
21494 PyObject * obj0 = 0 ;
21495 PyObject * obj1 = 0 ;
21496 char * kwnames[] = {
21497 (char *) "self",(char *) "x", NULL
21498 };
21499
21500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21502 if (!SWIG_IsOK(res1)) {
21503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21504 }
21505 arg1 = reinterpret_cast< wxDC * >(argp1);
21506 ecode2 = SWIG_AsVal_int(obj1, &val2);
21507 if (!SWIG_IsOK(ecode2)) {
21508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21509 }
21510 arg2 = static_cast< int >(val2);
21511 {
21512 PyThreadState* __tstate = wxPyBeginAllowThreads();
21513 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21514 wxPyEndAllowThreads(__tstate);
21515 if (PyErr_Occurred()) SWIG_fail;
21516 }
21517 resultobj = SWIG_From_int(static_cast< int >(result));
21518 return resultobj;
21519 fail:
21520 return NULL;
21521 }
21522
21523
21524 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21525 PyObject *resultobj = 0;
21526 wxDC *arg1 = (wxDC *) 0 ;
21527 int arg2 ;
21528 int result;
21529 void *argp1 = 0 ;
21530 int res1 = 0 ;
21531 int val2 ;
21532 int ecode2 = 0 ;
21533 PyObject * obj0 = 0 ;
21534 PyObject * obj1 = 0 ;
21535 char * kwnames[] = {
21536 (char *) "self",(char *) "y", NULL
21537 };
21538
21539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21541 if (!SWIG_IsOK(res1)) {
21542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21543 }
21544 arg1 = reinterpret_cast< wxDC * >(argp1);
21545 ecode2 = SWIG_AsVal_int(obj1, &val2);
21546 if (!SWIG_IsOK(ecode2)) {
21547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21548 }
21549 arg2 = static_cast< int >(val2);
21550 {
21551 PyThreadState* __tstate = wxPyBeginAllowThreads();
21552 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21553 wxPyEndAllowThreads(__tstate);
21554 if (PyErr_Occurred()) SWIG_fail;
21555 }
21556 resultobj = SWIG_From_int(static_cast< int >(result));
21557 return resultobj;
21558 fail:
21559 return NULL;
21560 }
21561
21562
21563 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21564 PyObject *resultobj = 0;
21565 wxDC *arg1 = (wxDC *) 0 ;
21566 int arg2 ;
21567 int result;
21568 void *argp1 = 0 ;
21569 int res1 = 0 ;
21570 int val2 ;
21571 int ecode2 = 0 ;
21572 PyObject * obj0 = 0 ;
21573 PyObject * obj1 = 0 ;
21574 char * kwnames[] = {
21575 (char *) "self",(char *) "x", NULL
21576 };
21577
21578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21580 if (!SWIG_IsOK(res1)) {
21581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21582 }
21583 arg1 = reinterpret_cast< wxDC * >(argp1);
21584 ecode2 = SWIG_AsVal_int(obj1, &val2);
21585 if (!SWIG_IsOK(ecode2)) {
21586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21587 }
21588 arg2 = static_cast< int >(val2);
21589 {
21590 PyThreadState* __tstate = wxPyBeginAllowThreads();
21591 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21592 wxPyEndAllowThreads(__tstate);
21593 if (PyErr_Occurred()) SWIG_fail;
21594 }
21595 resultobj = SWIG_From_int(static_cast< int >(result));
21596 return resultobj;
21597 fail:
21598 return NULL;
21599 }
21600
21601
21602 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21603 PyObject *resultobj = 0;
21604 wxDC *arg1 = (wxDC *) 0 ;
21605 int arg2 ;
21606 int result;
21607 void *argp1 = 0 ;
21608 int res1 = 0 ;
21609 int val2 ;
21610 int ecode2 = 0 ;
21611 PyObject * obj0 = 0 ;
21612 PyObject * obj1 = 0 ;
21613 char * kwnames[] = {
21614 (char *) "self",(char *) "y", NULL
21615 };
21616
21617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21619 if (!SWIG_IsOK(res1)) {
21620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21621 }
21622 arg1 = reinterpret_cast< wxDC * >(argp1);
21623 ecode2 = SWIG_AsVal_int(obj1, &val2);
21624 if (!SWIG_IsOK(ecode2)) {
21625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21626 }
21627 arg2 = static_cast< int >(val2);
21628 {
21629 PyThreadState* __tstate = wxPyBeginAllowThreads();
21630 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 resultobj = SWIG_From_int(static_cast< int >(result));
21635 return resultobj;
21636 fail:
21637 return NULL;
21638 }
21639
21640
21641 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21642 PyObject *resultobj = 0;
21643 wxDC *arg1 = (wxDC *) 0 ;
21644 int arg2 ;
21645 int result;
21646 void *argp1 = 0 ;
21647 int res1 = 0 ;
21648 int val2 ;
21649 int ecode2 = 0 ;
21650 PyObject * obj0 = 0 ;
21651 PyObject * obj1 = 0 ;
21652 char * kwnames[] = {
21653 (char *) "self",(char *) "x", NULL
21654 };
21655
21656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21658 if (!SWIG_IsOK(res1)) {
21659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21660 }
21661 arg1 = reinterpret_cast< wxDC * >(argp1);
21662 ecode2 = SWIG_AsVal_int(obj1, &val2);
21663 if (!SWIG_IsOK(ecode2)) {
21664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21665 }
21666 arg2 = static_cast< int >(val2);
21667 {
21668 PyThreadState* __tstate = wxPyBeginAllowThreads();
21669 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21670 wxPyEndAllowThreads(__tstate);
21671 if (PyErr_Occurred()) SWIG_fail;
21672 }
21673 resultobj = SWIG_From_int(static_cast< int >(result));
21674 return resultobj;
21675 fail:
21676 return NULL;
21677 }
21678
21679
21680 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21681 PyObject *resultobj = 0;
21682 wxDC *arg1 = (wxDC *) 0 ;
21683 int arg2 ;
21684 int result;
21685 void *argp1 = 0 ;
21686 int res1 = 0 ;
21687 int val2 ;
21688 int ecode2 = 0 ;
21689 PyObject * obj0 = 0 ;
21690 PyObject * obj1 = 0 ;
21691 char * kwnames[] = {
21692 (char *) "self",(char *) "y", NULL
21693 };
21694
21695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21697 if (!SWIG_IsOK(res1)) {
21698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21699 }
21700 arg1 = reinterpret_cast< wxDC * >(argp1);
21701 ecode2 = SWIG_AsVal_int(obj1, &val2);
21702 if (!SWIG_IsOK(ecode2)) {
21703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21704 }
21705 arg2 = static_cast< int >(val2);
21706 {
21707 PyThreadState* __tstate = wxPyBeginAllowThreads();
21708 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21709 wxPyEndAllowThreads(__tstate);
21710 if (PyErr_Occurred()) SWIG_fail;
21711 }
21712 resultobj = SWIG_From_int(static_cast< int >(result));
21713 return resultobj;
21714 fail:
21715 return NULL;
21716 }
21717
21718
21719 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21720 PyObject *resultobj = 0;
21721 wxDC *arg1 = (wxDC *) 0 ;
21722 int arg2 ;
21723 int result;
21724 void *argp1 = 0 ;
21725 int res1 = 0 ;
21726 int val2 ;
21727 int ecode2 = 0 ;
21728 PyObject * obj0 = 0 ;
21729 PyObject * obj1 = 0 ;
21730 char * kwnames[] = {
21731 (char *) "self",(char *) "x", NULL
21732 };
21733
21734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21736 if (!SWIG_IsOK(res1)) {
21737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21738 }
21739 arg1 = reinterpret_cast< wxDC * >(argp1);
21740 ecode2 = SWIG_AsVal_int(obj1, &val2);
21741 if (!SWIG_IsOK(ecode2)) {
21742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21743 }
21744 arg2 = static_cast< int >(val2);
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21748 wxPyEndAllowThreads(__tstate);
21749 if (PyErr_Occurred()) SWIG_fail;
21750 }
21751 resultobj = SWIG_From_int(static_cast< int >(result));
21752 return resultobj;
21753 fail:
21754 return NULL;
21755 }
21756
21757
21758 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21759 PyObject *resultobj = 0;
21760 wxDC *arg1 = (wxDC *) 0 ;
21761 int arg2 ;
21762 int result;
21763 void *argp1 = 0 ;
21764 int res1 = 0 ;
21765 int val2 ;
21766 int ecode2 = 0 ;
21767 PyObject * obj0 = 0 ;
21768 PyObject * obj1 = 0 ;
21769 char * kwnames[] = {
21770 (char *) "self",(char *) "y", NULL
21771 };
21772
21773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21775 if (!SWIG_IsOK(res1)) {
21776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21777 }
21778 arg1 = reinterpret_cast< wxDC * >(argp1);
21779 ecode2 = SWIG_AsVal_int(obj1, &val2);
21780 if (!SWIG_IsOK(ecode2)) {
21781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21782 }
21783 arg2 = static_cast< int >(val2);
21784 {
21785 PyThreadState* __tstate = wxPyBeginAllowThreads();
21786 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
21790 resultobj = SWIG_From_int(static_cast< int >(result));
21791 return resultobj;
21792 fail:
21793 return NULL;
21794 }
21795
21796
21797 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21798 PyObject *resultobj = 0;
21799 wxDC *arg1 = (wxDC *) 0 ;
21800 bool result;
21801 void *argp1 = 0 ;
21802 int res1 = 0 ;
21803 PyObject *swig_obj[1] ;
21804
21805 if (!args) SWIG_fail;
21806 swig_obj[0] = args;
21807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21808 if (!SWIG_IsOK(res1)) {
21809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21810 }
21811 arg1 = reinterpret_cast< wxDC * >(argp1);
21812 {
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21815 wxPyEndAllowThreads(__tstate);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 {
21819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21820 }
21821 return resultobj;
21822 fail:
21823 return NULL;
21824 }
21825
21826
21827 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21828 PyObject *resultobj = 0;
21829 wxDC *arg1 = (wxDC *) 0 ;
21830 bool result;
21831 void *argp1 = 0 ;
21832 int res1 = 0 ;
21833 PyObject *swig_obj[1] ;
21834
21835 if (!args) SWIG_fail;
21836 swig_obj[0] = args;
21837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21838 if (!SWIG_IsOK(res1)) {
21839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21840 }
21841 arg1 = reinterpret_cast< wxDC * >(argp1);
21842 {
21843 PyThreadState* __tstate = wxPyBeginAllowThreads();
21844 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21845 wxPyEndAllowThreads(__tstate);
21846 if (PyErr_Occurred()) SWIG_fail;
21847 }
21848 {
21849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21850 }
21851 return resultobj;
21852 fail:
21853 return NULL;
21854 }
21855
21856
21857 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21858 PyObject *resultobj = 0;
21859 wxDC *arg1 = (wxDC *) 0 ;
21860 int result;
21861 void *argp1 = 0 ;
21862 int res1 = 0 ;
21863 PyObject *swig_obj[1] ;
21864
21865 if (!args) SWIG_fail;
21866 swig_obj[0] = args;
21867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21868 if (!SWIG_IsOK(res1)) {
21869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21870 }
21871 arg1 = reinterpret_cast< wxDC * >(argp1);
21872 {
21873 PyThreadState* __tstate = wxPyBeginAllowThreads();
21874 result = (int)((wxDC const *)arg1)->GetDepth();
21875 wxPyEndAllowThreads(__tstate);
21876 if (PyErr_Occurred()) SWIG_fail;
21877 }
21878 resultobj = SWIG_From_int(static_cast< int >(result));
21879 return resultobj;
21880 fail:
21881 return NULL;
21882 }
21883
21884
21885 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21886 PyObject *resultobj = 0;
21887 wxDC *arg1 = (wxDC *) 0 ;
21888 wxSize result;
21889 void *argp1 = 0 ;
21890 int res1 = 0 ;
21891 PyObject *swig_obj[1] ;
21892
21893 if (!args) SWIG_fail;
21894 swig_obj[0] = args;
21895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21896 if (!SWIG_IsOK(res1)) {
21897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21898 }
21899 arg1 = reinterpret_cast< wxDC * >(argp1);
21900 {
21901 PyThreadState* __tstate = wxPyBeginAllowThreads();
21902 result = ((wxDC const *)arg1)->GetPPI();
21903 wxPyEndAllowThreads(__tstate);
21904 if (PyErr_Occurred()) SWIG_fail;
21905 }
21906 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21907 return resultobj;
21908 fail:
21909 return NULL;
21910 }
21911
21912
21913 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21914 PyObject *resultobj = 0;
21915 wxDC *arg1 = (wxDC *) 0 ;
21916 bool result;
21917 void *argp1 = 0 ;
21918 int res1 = 0 ;
21919 PyObject *swig_obj[1] ;
21920
21921 if (!args) SWIG_fail;
21922 swig_obj[0] = args;
21923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21924 if (!SWIG_IsOK(res1)) {
21925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21926 }
21927 arg1 = reinterpret_cast< wxDC * >(argp1);
21928 {
21929 PyThreadState* __tstate = wxPyBeginAllowThreads();
21930 result = (bool)((wxDC const *)arg1)->Ok();
21931 wxPyEndAllowThreads(__tstate);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 }
21934 {
21935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21936 }
21937 return resultobj;
21938 fail:
21939 return NULL;
21940 }
21941
21942
21943 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21944 PyObject *resultobj = 0;
21945 wxDC *arg1 = (wxDC *) 0 ;
21946 int result;
21947 void *argp1 = 0 ;
21948 int res1 = 0 ;
21949 PyObject *swig_obj[1] ;
21950
21951 if (!args) SWIG_fail;
21952 swig_obj[0] = args;
21953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21954 if (!SWIG_IsOK(res1)) {
21955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21956 }
21957 arg1 = reinterpret_cast< wxDC * >(argp1);
21958 {
21959 PyThreadState* __tstate = wxPyBeginAllowThreads();
21960 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21961 wxPyEndAllowThreads(__tstate);
21962 if (PyErr_Occurred()) SWIG_fail;
21963 }
21964 resultobj = SWIG_From_int(static_cast< int >(result));
21965 return resultobj;
21966 fail:
21967 return NULL;
21968 }
21969
21970
21971 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21972 PyObject *resultobj = 0;
21973 wxDC *arg1 = (wxDC *) 0 ;
21974 wxBrush *result = 0 ;
21975 void *argp1 = 0 ;
21976 int res1 = 0 ;
21977 PyObject *swig_obj[1] ;
21978
21979 if (!args) SWIG_fail;
21980 swig_obj[0] = args;
21981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21982 if (!SWIG_IsOK(res1)) {
21983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21984 }
21985 arg1 = reinterpret_cast< wxDC * >(argp1);
21986 {
21987 PyThreadState* __tstate = wxPyBeginAllowThreads();
21988 {
21989 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21990 result = (wxBrush *) &_result_ref;
21991 }
21992 wxPyEndAllowThreads(__tstate);
21993 if (PyErr_Occurred()) SWIG_fail;
21994 }
21995 {
21996 wxBrush* resultptr = new wxBrush(*result);
21997 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21998 }
21999 return resultobj;
22000 fail:
22001 return NULL;
22002 }
22003
22004
22005 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22006 PyObject *resultobj = 0;
22007 wxDC *arg1 = (wxDC *) 0 ;
22008 wxBrush *result = 0 ;
22009 void *argp1 = 0 ;
22010 int res1 = 0 ;
22011 PyObject *swig_obj[1] ;
22012
22013 if (!args) SWIG_fail;
22014 swig_obj[0] = args;
22015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22016 if (!SWIG_IsOK(res1)) {
22017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22018 }
22019 arg1 = reinterpret_cast< wxDC * >(argp1);
22020 {
22021 PyThreadState* __tstate = wxPyBeginAllowThreads();
22022 {
22023 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22024 result = (wxBrush *) &_result_ref;
22025 }
22026 wxPyEndAllowThreads(__tstate);
22027 if (PyErr_Occurred()) SWIG_fail;
22028 }
22029 {
22030 wxBrush* resultptr = new wxBrush(*result);
22031 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22032 }
22033 return resultobj;
22034 fail:
22035 return NULL;
22036 }
22037
22038
22039 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22040 PyObject *resultobj = 0;
22041 wxDC *arg1 = (wxDC *) 0 ;
22042 wxFont *result = 0 ;
22043 void *argp1 = 0 ;
22044 int res1 = 0 ;
22045 PyObject *swig_obj[1] ;
22046
22047 if (!args) SWIG_fail;
22048 swig_obj[0] = args;
22049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22050 if (!SWIG_IsOK(res1)) {
22051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22052 }
22053 arg1 = reinterpret_cast< wxDC * >(argp1);
22054 {
22055 PyThreadState* __tstate = wxPyBeginAllowThreads();
22056 {
22057 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22058 result = (wxFont *) &_result_ref;
22059 }
22060 wxPyEndAllowThreads(__tstate);
22061 if (PyErr_Occurred()) SWIG_fail;
22062 }
22063 {
22064 wxFont* resultptr = new wxFont(*result);
22065 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22066 }
22067 return resultobj;
22068 fail:
22069 return NULL;
22070 }
22071
22072
22073 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22074 PyObject *resultobj = 0;
22075 wxDC *arg1 = (wxDC *) 0 ;
22076 wxPen *result = 0 ;
22077 void *argp1 = 0 ;
22078 int res1 = 0 ;
22079 PyObject *swig_obj[1] ;
22080
22081 if (!args) SWIG_fail;
22082 swig_obj[0] = args;
22083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22084 if (!SWIG_IsOK(res1)) {
22085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22086 }
22087 arg1 = reinterpret_cast< wxDC * >(argp1);
22088 {
22089 PyThreadState* __tstate = wxPyBeginAllowThreads();
22090 {
22091 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22092 result = (wxPen *) &_result_ref;
22093 }
22094 wxPyEndAllowThreads(__tstate);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 {
22098 wxPen* resultptr = new wxPen(*result);
22099 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22100 }
22101 return resultobj;
22102 fail:
22103 return NULL;
22104 }
22105
22106
22107 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22108 PyObject *resultobj = 0;
22109 wxDC *arg1 = (wxDC *) 0 ;
22110 wxColour *result = 0 ;
22111 void *argp1 = 0 ;
22112 int res1 = 0 ;
22113 PyObject *swig_obj[1] ;
22114
22115 if (!args) SWIG_fail;
22116 swig_obj[0] = args;
22117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22118 if (!SWIG_IsOK(res1)) {
22119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22120 }
22121 arg1 = reinterpret_cast< wxDC * >(argp1);
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 {
22125 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22126 result = (wxColour *) &_result_ref;
22127 }
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22132 return resultobj;
22133 fail:
22134 return NULL;
22135 }
22136
22137
22138 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22139 PyObject *resultobj = 0;
22140 wxDC *arg1 = (wxDC *) 0 ;
22141 wxColour *result = 0 ;
22142 void *argp1 = 0 ;
22143 int res1 = 0 ;
22144 PyObject *swig_obj[1] ;
22145
22146 if (!args) SWIG_fail;
22147 swig_obj[0] = args;
22148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22149 if (!SWIG_IsOK(res1)) {
22150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22151 }
22152 arg1 = reinterpret_cast< wxDC * >(argp1);
22153 {
22154 PyThreadState* __tstate = wxPyBeginAllowThreads();
22155 {
22156 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22157 result = (wxColour *) &_result_ref;
22158 }
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22163 return resultobj;
22164 fail:
22165 return NULL;
22166 }
22167
22168
22169 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj = 0;
22171 wxDC *arg1 = (wxDC *) 0 ;
22172 wxColour *arg2 = 0 ;
22173 void *argp1 = 0 ;
22174 int res1 = 0 ;
22175 wxColour temp2 ;
22176 PyObject * obj0 = 0 ;
22177 PyObject * obj1 = 0 ;
22178 char * kwnames[] = {
22179 (char *) "self",(char *) "colour", NULL
22180 };
22181
22182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22184 if (!SWIG_IsOK(res1)) {
22185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22186 }
22187 arg1 = reinterpret_cast< wxDC * >(argp1);
22188 {
22189 arg2 = &temp2;
22190 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22191 }
22192 {
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 (arg1)->SetTextForeground((wxColour const &)*arg2);
22195 wxPyEndAllowThreads(__tstate);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 }
22198 resultobj = SWIG_Py_Void();
22199 return resultobj;
22200 fail:
22201 return NULL;
22202 }
22203
22204
22205 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22206 PyObject *resultobj = 0;
22207 wxDC *arg1 = (wxDC *) 0 ;
22208 wxColour *arg2 = 0 ;
22209 void *argp1 = 0 ;
22210 int res1 = 0 ;
22211 wxColour temp2 ;
22212 PyObject * obj0 = 0 ;
22213 PyObject * obj1 = 0 ;
22214 char * kwnames[] = {
22215 (char *) "self",(char *) "colour", NULL
22216 };
22217
22218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22220 if (!SWIG_IsOK(res1)) {
22221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22222 }
22223 arg1 = reinterpret_cast< wxDC * >(argp1);
22224 {
22225 arg2 = &temp2;
22226 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22227 }
22228 {
22229 PyThreadState* __tstate = wxPyBeginAllowThreads();
22230 (arg1)->SetTextBackground((wxColour const &)*arg2);
22231 wxPyEndAllowThreads(__tstate);
22232 if (PyErr_Occurred()) SWIG_fail;
22233 }
22234 resultobj = SWIG_Py_Void();
22235 return resultobj;
22236 fail:
22237 return NULL;
22238 }
22239
22240
22241 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22242 PyObject *resultobj = 0;
22243 wxDC *arg1 = (wxDC *) 0 ;
22244 int result;
22245 void *argp1 = 0 ;
22246 int res1 = 0 ;
22247 PyObject *swig_obj[1] ;
22248
22249 if (!args) SWIG_fail;
22250 swig_obj[0] = args;
22251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22252 if (!SWIG_IsOK(res1)) {
22253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22254 }
22255 arg1 = reinterpret_cast< wxDC * >(argp1);
22256 {
22257 PyThreadState* __tstate = wxPyBeginAllowThreads();
22258 result = (int)((wxDC const *)arg1)->GetMapMode();
22259 wxPyEndAllowThreads(__tstate);
22260 if (PyErr_Occurred()) SWIG_fail;
22261 }
22262 resultobj = SWIG_From_int(static_cast< int >(result));
22263 return resultobj;
22264 fail:
22265 return NULL;
22266 }
22267
22268
22269 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22270 PyObject *resultobj = 0;
22271 wxDC *arg1 = (wxDC *) 0 ;
22272 int arg2 ;
22273 void *argp1 = 0 ;
22274 int res1 = 0 ;
22275 int val2 ;
22276 int ecode2 = 0 ;
22277 PyObject * obj0 = 0 ;
22278 PyObject * obj1 = 0 ;
22279 char * kwnames[] = {
22280 (char *) "self",(char *) "mode", NULL
22281 };
22282
22283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22285 if (!SWIG_IsOK(res1)) {
22286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22287 }
22288 arg1 = reinterpret_cast< wxDC * >(argp1);
22289 ecode2 = SWIG_AsVal_int(obj1, &val2);
22290 if (!SWIG_IsOK(ecode2)) {
22291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22292 }
22293 arg2 = static_cast< int >(val2);
22294 {
22295 PyThreadState* __tstate = wxPyBeginAllowThreads();
22296 (arg1)->SetMapMode(arg2);
22297 wxPyEndAllowThreads(__tstate);
22298 if (PyErr_Occurred()) SWIG_fail;
22299 }
22300 resultobj = SWIG_Py_Void();
22301 return resultobj;
22302 fail:
22303 return NULL;
22304 }
22305
22306
22307 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22308 PyObject *resultobj = 0;
22309 wxDC *arg1 = (wxDC *) 0 ;
22310 double *arg2 = (double *) 0 ;
22311 double *arg3 = (double *) 0 ;
22312 void *argp1 = 0 ;
22313 int res1 = 0 ;
22314 double temp2 ;
22315 int res2 = SWIG_TMPOBJ ;
22316 double temp3 ;
22317 int res3 = SWIG_TMPOBJ ;
22318 PyObject *swig_obj[1] ;
22319
22320 arg2 = &temp2;
22321 arg3 = &temp3;
22322 if (!args) SWIG_fail;
22323 swig_obj[0] = args;
22324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22325 if (!SWIG_IsOK(res1)) {
22326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22327 }
22328 arg1 = reinterpret_cast< wxDC * >(argp1);
22329 {
22330 PyThreadState* __tstate = wxPyBeginAllowThreads();
22331 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22332 wxPyEndAllowThreads(__tstate);
22333 if (PyErr_Occurred()) SWIG_fail;
22334 }
22335 resultobj = SWIG_Py_Void();
22336 if (SWIG_IsTmpObj(res2)) {
22337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22338 } else {
22339 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22340 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22341 }
22342 if (SWIG_IsTmpObj(res3)) {
22343 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22344 } else {
22345 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22346 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22347 }
22348 return resultobj;
22349 fail:
22350 return NULL;
22351 }
22352
22353
22354 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22355 PyObject *resultobj = 0;
22356 wxDC *arg1 = (wxDC *) 0 ;
22357 double arg2 ;
22358 double arg3 ;
22359 void *argp1 = 0 ;
22360 int res1 = 0 ;
22361 double val2 ;
22362 int ecode2 = 0 ;
22363 double val3 ;
22364 int ecode3 = 0 ;
22365 PyObject * obj0 = 0 ;
22366 PyObject * obj1 = 0 ;
22367 PyObject * obj2 = 0 ;
22368 char * kwnames[] = {
22369 (char *) "self",(char *) "x",(char *) "y", NULL
22370 };
22371
22372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22374 if (!SWIG_IsOK(res1)) {
22375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22376 }
22377 arg1 = reinterpret_cast< wxDC * >(argp1);
22378 ecode2 = SWIG_AsVal_double(obj1, &val2);
22379 if (!SWIG_IsOK(ecode2)) {
22380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22381 }
22382 arg2 = static_cast< double >(val2);
22383 ecode3 = SWIG_AsVal_double(obj2, &val3);
22384 if (!SWIG_IsOK(ecode3)) {
22385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22386 }
22387 arg3 = static_cast< double >(val3);
22388 {
22389 PyThreadState* __tstate = wxPyBeginAllowThreads();
22390 (arg1)->SetUserScale(arg2,arg3);
22391 wxPyEndAllowThreads(__tstate);
22392 if (PyErr_Occurred()) SWIG_fail;
22393 }
22394 resultobj = SWIG_Py_Void();
22395 return resultobj;
22396 fail:
22397 return NULL;
22398 }
22399
22400
22401 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22402 PyObject *resultobj = 0;
22403 wxDC *arg1 = (wxDC *) 0 ;
22404 double *arg2 = (double *) 0 ;
22405 double *arg3 = (double *) 0 ;
22406 void *argp1 = 0 ;
22407 int res1 = 0 ;
22408 double temp2 ;
22409 int res2 = SWIG_TMPOBJ ;
22410 double temp3 ;
22411 int res3 = SWIG_TMPOBJ ;
22412 PyObject *swig_obj[1] ;
22413
22414 arg2 = &temp2;
22415 arg3 = &temp3;
22416 if (!args) SWIG_fail;
22417 swig_obj[0] = args;
22418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22419 if (!SWIG_IsOK(res1)) {
22420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22421 }
22422 arg1 = reinterpret_cast< wxDC * >(argp1);
22423 {
22424 PyThreadState* __tstate = wxPyBeginAllowThreads();
22425 (arg1)->GetLogicalScale(arg2,arg3);
22426 wxPyEndAllowThreads(__tstate);
22427 if (PyErr_Occurred()) SWIG_fail;
22428 }
22429 resultobj = SWIG_Py_Void();
22430 if (SWIG_IsTmpObj(res2)) {
22431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22432 } else {
22433 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22434 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22435 }
22436 if (SWIG_IsTmpObj(res3)) {
22437 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22438 } else {
22439 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22440 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22441 }
22442 return resultobj;
22443 fail:
22444 return NULL;
22445 }
22446
22447
22448 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22449 PyObject *resultobj = 0;
22450 wxDC *arg1 = (wxDC *) 0 ;
22451 double arg2 ;
22452 double arg3 ;
22453 void *argp1 = 0 ;
22454 int res1 = 0 ;
22455 double val2 ;
22456 int ecode2 = 0 ;
22457 double val3 ;
22458 int ecode3 = 0 ;
22459 PyObject * obj0 = 0 ;
22460 PyObject * obj1 = 0 ;
22461 PyObject * obj2 = 0 ;
22462 char * kwnames[] = {
22463 (char *) "self",(char *) "x",(char *) "y", NULL
22464 };
22465
22466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22468 if (!SWIG_IsOK(res1)) {
22469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22470 }
22471 arg1 = reinterpret_cast< wxDC * >(argp1);
22472 ecode2 = SWIG_AsVal_double(obj1, &val2);
22473 if (!SWIG_IsOK(ecode2)) {
22474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22475 }
22476 arg2 = static_cast< double >(val2);
22477 ecode3 = SWIG_AsVal_double(obj2, &val3);
22478 if (!SWIG_IsOK(ecode3)) {
22479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22480 }
22481 arg3 = static_cast< double >(val3);
22482 {
22483 PyThreadState* __tstate = wxPyBeginAllowThreads();
22484 (arg1)->SetLogicalScale(arg2,arg3);
22485 wxPyEndAllowThreads(__tstate);
22486 if (PyErr_Occurred()) SWIG_fail;
22487 }
22488 resultobj = SWIG_Py_Void();
22489 return resultobj;
22490 fail:
22491 return NULL;
22492 }
22493
22494
22495 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22496 PyObject *resultobj = 0;
22497 wxDC *arg1 = (wxDC *) 0 ;
22498 wxPoint result;
22499 void *argp1 = 0 ;
22500 int res1 = 0 ;
22501 PyObject *swig_obj[1] ;
22502
22503 if (!args) SWIG_fail;
22504 swig_obj[0] = args;
22505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22506 if (!SWIG_IsOK(res1)) {
22507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22508 }
22509 arg1 = reinterpret_cast< wxDC * >(argp1);
22510 {
22511 PyThreadState* __tstate = wxPyBeginAllowThreads();
22512 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22513 wxPyEndAllowThreads(__tstate);
22514 if (PyErr_Occurred()) SWIG_fail;
22515 }
22516 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22517 return resultobj;
22518 fail:
22519 return NULL;
22520 }
22521
22522
22523 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22524 PyObject *resultobj = 0;
22525 wxDC *arg1 = (wxDC *) 0 ;
22526 int *arg2 = (int *) 0 ;
22527 int *arg3 = (int *) 0 ;
22528 void *argp1 = 0 ;
22529 int res1 = 0 ;
22530 int temp2 ;
22531 int res2 = SWIG_TMPOBJ ;
22532 int temp3 ;
22533 int res3 = SWIG_TMPOBJ ;
22534 PyObject *swig_obj[1] ;
22535
22536 arg2 = &temp2;
22537 arg3 = &temp3;
22538 if (!args) SWIG_fail;
22539 swig_obj[0] = args;
22540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22541 if (!SWIG_IsOK(res1)) {
22542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22543 }
22544 arg1 = reinterpret_cast< wxDC * >(argp1);
22545 {
22546 PyThreadState* __tstate = wxPyBeginAllowThreads();
22547 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22548 wxPyEndAllowThreads(__tstate);
22549 if (PyErr_Occurred()) SWIG_fail;
22550 }
22551 resultobj = SWIG_Py_Void();
22552 if (SWIG_IsTmpObj(res2)) {
22553 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22554 } else {
22555 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22556 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22557 }
22558 if (SWIG_IsTmpObj(res3)) {
22559 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22560 } else {
22561 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22562 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22563 }
22564 return resultobj;
22565 fail:
22566 return NULL;
22567 }
22568
22569
22570 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22571 PyObject *resultobj = 0;
22572 wxDC *arg1 = (wxDC *) 0 ;
22573 int arg2 ;
22574 int arg3 ;
22575 void *argp1 = 0 ;
22576 int res1 = 0 ;
22577 int val2 ;
22578 int ecode2 = 0 ;
22579 int val3 ;
22580 int ecode3 = 0 ;
22581 PyObject * obj0 = 0 ;
22582 PyObject * obj1 = 0 ;
22583 PyObject * obj2 = 0 ;
22584 char * kwnames[] = {
22585 (char *) "self",(char *) "x",(char *) "y", NULL
22586 };
22587
22588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22590 if (!SWIG_IsOK(res1)) {
22591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22592 }
22593 arg1 = reinterpret_cast< wxDC * >(argp1);
22594 ecode2 = SWIG_AsVal_int(obj1, &val2);
22595 if (!SWIG_IsOK(ecode2)) {
22596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22597 }
22598 arg2 = static_cast< int >(val2);
22599 ecode3 = SWIG_AsVal_int(obj2, &val3);
22600 if (!SWIG_IsOK(ecode3)) {
22601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22602 }
22603 arg3 = static_cast< int >(val3);
22604 {
22605 PyThreadState* __tstate = wxPyBeginAllowThreads();
22606 (arg1)->SetLogicalOrigin(arg2,arg3);
22607 wxPyEndAllowThreads(__tstate);
22608 if (PyErr_Occurred()) SWIG_fail;
22609 }
22610 resultobj = SWIG_Py_Void();
22611 return resultobj;
22612 fail:
22613 return NULL;
22614 }
22615
22616
22617 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22618 PyObject *resultobj = 0;
22619 wxDC *arg1 = (wxDC *) 0 ;
22620 wxPoint *arg2 = 0 ;
22621 void *argp1 = 0 ;
22622 int res1 = 0 ;
22623 wxPoint temp2 ;
22624 PyObject * obj0 = 0 ;
22625 PyObject * obj1 = 0 ;
22626 char * kwnames[] = {
22627 (char *) "self",(char *) "point", NULL
22628 };
22629
22630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22632 if (!SWIG_IsOK(res1)) {
22633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22634 }
22635 arg1 = reinterpret_cast< wxDC * >(argp1);
22636 {
22637 arg2 = &temp2;
22638 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22639 }
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 resultobj = SWIG_Py_Void();
22647 return resultobj;
22648 fail:
22649 return NULL;
22650 }
22651
22652
22653 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22654 PyObject *resultobj = 0;
22655 wxDC *arg1 = (wxDC *) 0 ;
22656 wxPoint result;
22657 void *argp1 = 0 ;
22658 int res1 = 0 ;
22659 PyObject *swig_obj[1] ;
22660
22661 if (!args) SWIG_fail;
22662 swig_obj[0] = args;
22663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22664 if (!SWIG_IsOK(res1)) {
22665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22666 }
22667 arg1 = reinterpret_cast< wxDC * >(argp1);
22668 {
22669 PyThreadState* __tstate = wxPyBeginAllowThreads();
22670 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22671 wxPyEndAllowThreads(__tstate);
22672 if (PyErr_Occurred()) SWIG_fail;
22673 }
22674 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22675 return resultobj;
22676 fail:
22677 return NULL;
22678 }
22679
22680
22681 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22682 PyObject *resultobj = 0;
22683 wxDC *arg1 = (wxDC *) 0 ;
22684 int *arg2 = (int *) 0 ;
22685 int *arg3 = (int *) 0 ;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 int temp2 ;
22689 int res2 = SWIG_TMPOBJ ;
22690 int temp3 ;
22691 int res3 = SWIG_TMPOBJ ;
22692 PyObject *swig_obj[1] ;
22693
22694 arg2 = &temp2;
22695 arg3 = &temp3;
22696 if (!args) SWIG_fail;
22697 swig_obj[0] = args;
22698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22701 }
22702 arg1 = reinterpret_cast< wxDC * >(argp1);
22703 {
22704 PyThreadState* __tstate = wxPyBeginAllowThreads();
22705 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22706 wxPyEndAllowThreads(__tstate);
22707 if (PyErr_Occurred()) SWIG_fail;
22708 }
22709 resultobj = SWIG_Py_Void();
22710 if (SWIG_IsTmpObj(res2)) {
22711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22712 } else {
22713 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22714 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22715 }
22716 if (SWIG_IsTmpObj(res3)) {
22717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22718 } else {
22719 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22720 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22721 }
22722 return resultobj;
22723 fail:
22724 return NULL;
22725 }
22726
22727
22728 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22729 PyObject *resultobj = 0;
22730 wxDC *arg1 = (wxDC *) 0 ;
22731 int arg2 ;
22732 int arg3 ;
22733 void *argp1 = 0 ;
22734 int res1 = 0 ;
22735 int val2 ;
22736 int ecode2 = 0 ;
22737 int val3 ;
22738 int ecode3 = 0 ;
22739 PyObject * obj0 = 0 ;
22740 PyObject * obj1 = 0 ;
22741 PyObject * obj2 = 0 ;
22742 char * kwnames[] = {
22743 (char *) "self",(char *) "x",(char *) "y", NULL
22744 };
22745
22746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22748 if (!SWIG_IsOK(res1)) {
22749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22750 }
22751 arg1 = reinterpret_cast< wxDC * >(argp1);
22752 ecode2 = SWIG_AsVal_int(obj1, &val2);
22753 if (!SWIG_IsOK(ecode2)) {
22754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22755 }
22756 arg2 = static_cast< int >(val2);
22757 ecode3 = SWIG_AsVal_int(obj2, &val3);
22758 if (!SWIG_IsOK(ecode3)) {
22759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22760 }
22761 arg3 = static_cast< int >(val3);
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 (arg1)->SetDeviceOrigin(arg2,arg3);
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 resultobj = SWIG_Py_Void();
22769 return resultobj;
22770 fail:
22771 return NULL;
22772 }
22773
22774
22775 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22776 PyObject *resultobj = 0;
22777 wxDC *arg1 = (wxDC *) 0 ;
22778 wxPoint *arg2 = 0 ;
22779 void *argp1 = 0 ;
22780 int res1 = 0 ;
22781 wxPoint temp2 ;
22782 PyObject * obj0 = 0 ;
22783 PyObject * obj1 = 0 ;
22784 char * kwnames[] = {
22785 (char *) "self",(char *) "point", NULL
22786 };
22787
22788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22790 if (!SWIG_IsOK(res1)) {
22791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22792 }
22793 arg1 = reinterpret_cast< wxDC * >(argp1);
22794 {
22795 arg2 = &temp2;
22796 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22797 }
22798 {
22799 PyThreadState* __tstate = wxPyBeginAllowThreads();
22800 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22801 wxPyEndAllowThreads(__tstate);
22802 if (PyErr_Occurred()) SWIG_fail;
22803 }
22804 resultobj = SWIG_Py_Void();
22805 return resultobj;
22806 fail:
22807 return NULL;
22808 }
22809
22810
22811 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22812 PyObject *resultobj = 0;
22813 wxDC *arg1 = (wxDC *) 0 ;
22814 bool arg2 ;
22815 bool arg3 ;
22816 void *argp1 = 0 ;
22817 int res1 = 0 ;
22818 bool val2 ;
22819 int ecode2 = 0 ;
22820 bool val3 ;
22821 int ecode3 = 0 ;
22822 PyObject * obj0 = 0 ;
22823 PyObject * obj1 = 0 ;
22824 PyObject * obj2 = 0 ;
22825 char * kwnames[] = {
22826 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22827 };
22828
22829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22831 if (!SWIG_IsOK(res1)) {
22832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22833 }
22834 arg1 = reinterpret_cast< wxDC * >(argp1);
22835 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22836 if (!SWIG_IsOK(ecode2)) {
22837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22838 }
22839 arg2 = static_cast< bool >(val2);
22840 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22841 if (!SWIG_IsOK(ecode3)) {
22842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22843 }
22844 arg3 = static_cast< bool >(val3);
22845 {
22846 PyThreadState* __tstate = wxPyBeginAllowThreads();
22847 (arg1)->SetAxisOrientation(arg2,arg3);
22848 wxPyEndAllowThreads(__tstate);
22849 if (PyErr_Occurred()) SWIG_fail;
22850 }
22851 resultobj = SWIG_Py_Void();
22852 return resultobj;
22853 fail:
22854 return NULL;
22855 }
22856
22857
22858 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22859 PyObject *resultobj = 0;
22860 wxDC *arg1 = (wxDC *) 0 ;
22861 int result;
22862 void *argp1 = 0 ;
22863 int res1 = 0 ;
22864 PyObject *swig_obj[1] ;
22865
22866 if (!args) SWIG_fail;
22867 swig_obj[0] = args;
22868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22869 if (!SWIG_IsOK(res1)) {
22870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22871 }
22872 arg1 = reinterpret_cast< wxDC * >(argp1);
22873 {
22874 PyThreadState* __tstate = wxPyBeginAllowThreads();
22875 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22876 wxPyEndAllowThreads(__tstate);
22877 if (PyErr_Occurred()) SWIG_fail;
22878 }
22879 resultobj = SWIG_From_int(static_cast< int >(result));
22880 return resultobj;
22881 fail:
22882 return NULL;
22883 }
22884
22885
22886 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22887 PyObject *resultobj = 0;
22888 wxDC *arg1 = (wxDC *) 0 ;
22889 int arg2 ;
22890 void *argp1 = 0 ;
22891 int res1 = 0 ;
22892 int val2 ;
22893 int ecode2 = 0 ;
22894 PyObject * obj0 = 0 ;
22895 PyObject * obj1 = 0 ;
22896 char * kwnames[] = {
22897 (char *) "self",(char *) "function", NULL
22898 };
22899
22900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22902 if (!SWIG_IsOK(res1)) {
22903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22904 }
22905 arg1 = reinterpret_cast< wxDC * >(argp1);
22906 ecode2 = SWIG_AsVal_int(obj1, &val2);
22907 if (!SWIG_IsOK(ecode2)) {
22908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22909 }
22910 arg2 = static_cast< int >(val2);
22911 {
22912 PyThreadState* __tstate = wxPyBeginAllowThreads();
22913 (arg1)->SetLogicalFunction(arg2);
22914 wxPyEndAllowThreads(__tstate);
22915 if (PyErr_Occurred()) SWIG_fail;
22916 }
22917 resultobj = SWIG_Py_Void();
22918 return resultobj;
22919 fail:
22920 return NULL;
22921 }
22922
22923
22924 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22925 PyObject *resultobj = 0;
22926 wxDC *arg1 = (wxDC *) 0 ;
22927 void *argp1 = 0 ;
22928 int res1 = 0 ;
22929 PyObject *swig_obj[1] ;
22930
22931 if (!args) SWIG_fail;
22932 swig_obj[0] = args;
22933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22934 if (!SWIG_IsOK(res1)) {
22935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22936 }
22937 arg1 = reinterpret_cast< wxDC * >(argp1);
22938 {
22939 PyThreadState* __tstate = wxPyBeginAllowThreads();
22940 (arg1)->ComputeScaleAndOrigin();
22941 wxPyEndAllowThreads(__tstate);
22942 if (PyErr_Occurred()) SWIG_fail;
22943 }
22944 resultobj = SWIG_Py_Void();
22945 return resultobj;
22946 fail:
22947 return NULL;
22948 }
22949
22950
22951 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22952 PyObject *resultobj = 0;
22953 wxDC *arg1 = (wxDC *) 0 ;
22954 int arg2 ;
22955 int arg3 ;
22956 void *argp1 = 0 ;
22957 int res1 = 0 ;
22958 int val2 ;
22959 int ecode2 = 0 ;
22960 int val3 ;
22961 int ecode3 = 0 ;
22962 PyObject * obj0 = 0 ;
22963 PyObject * obj1 = 0 ;
22964 PyObject * obj2 = 0 ;
22965 char * kwnames[] = {
22966 (char *) "self",(char *) "x",(char *) "y", NULL
22967 };
22968
22969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22973 }
22974 arg1 = reinterpret_cast< wxDC * >(argp1);
22975 ecode2 = SWIG_AsVal_int(obj1, &val2);
22976 if (!SWIG_IsOK(ecode2)) {
22977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22978 }
22979 arg2 = static_cast< int >(val2);
22980 ecode3 = SWIG_AsVal_int(obj2, &val3);
22981 if (!SWIG_IsOK(ecode3)) {
22982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22983 }
22984 arg3 = static_cast< int >(val3);
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 (arg1)->CalcBoundingBox(arg2,arg3);
22988 wxPyEndAllowThreads(__tstate);
22989 if (PyErr_Occurred()) SWIG_fail;
22990 }
22991 resultobj = SWIG_Py_Void();
22992 return resultobj;
22993 fail:
22994 return NULL;
22995 }
22996
22997
22998 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22999 PyObject *resultobj = 0;
23000 wxDC *arg1 = (wxDC *) 0 ;
23001 wxPoint *arg2 = 0 ;
23002 void *argp1 = 0 ;
23003 int res1 = 0 ;
23004 wxPoint temp2 ;
23005 PyObject * obj0 = 0 ;
23006 PyObject * obj1 = 0 ;
23007 char * kwnames[] = {
23008 (char *) "self",(char *) "point", NULL
23009 };
23010
23011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23013 if (!SWIG_IsOK(res1)) {
23014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23015 }
23016 arg1 = reinterpret_cast< wxDC * >(argp1);
23017 {
23018 arg2 = &temp2;
23019 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23020 }
23021 {
23022 PyThreadState* __tstate = wxPyBeginAllowThreads();
23023 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 resultobj = SWIG_Py_Void();
23028 return resultobj;
23029 fail:
23030 return NULL;
23031 }
23032
23033
23034 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23035 PyObject *resultobj = 0;
23036 wxDC *arg1 = (wxDC *) 0 ;
23037 void *argp1 = 0 ;
23038 int res1 = 0 ;
23039 PyObject *swig_obj[1] ;
23040
23041 if (!args) SWIG_fail;
23042 swig_obj[0] = args;
23043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23044 if (!SWIG_IsOK(res1)) {
23045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23046 }
23047 arg1 = reinterpret_cast< wxDC * >(argp1);
23048 {
23049 PyThreadState* __tstate = wxPyBeginAllowThreads();
23050 (arg1)->ResetBoundingBox();
23051 wxPyEndAllowThreads(__tstate);
23052 if (PyErr_Occurred()) SWIG_fail;
23053 }
23054 resultobj = SWIG_Py_Void();
23055 return resultobj;
23056 fail:
23057 return NULL;
23058 }
23059
23060
23061 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23062 PyObject *resultobj = 0;
23063 wxDC *arg1 = (wxDC *) 0 ;
23064 int result;
23065 void *argp1 = 0 ;
23066 int res1 = 0 ;
23067 PyObject *swig_obj[1] ;
23068
23069 if (!args) SWIG_fail;
23070 swig_obj[0] = args;
23071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23072 if (!SWIG_IsOK(res1)) {
23073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23074 }
23075 arg1 = reinterpret_cast< wxDC * >(argp1);
23076 {
23077 PyThreadState* __tstate = wxPyBeginAllowThreads();
23078 result = (int)((wxDC const *)arg1)->MinX();
23079 wxPyEndAllowThreads(__tstate);
23080 if (PyErr_Occurred()) SWIG_fail;
23081 }
23082 resultobj = SWIG_From_int(static_cast< int >(result));
23083 return resultobj;
23084 fail:
23085 return NULL;
23086 }
23087
23088
23089 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23090 PyObject *resultobj = 0;
23091 wxDC *arg1 = (wxDC *) 0 ;
23092 int result;
23093 void *argp1 = 0 ;
23094 int res1 = 0 ;
23095 PyObject *swig_obj[1] ;
23096
23097 if (!args) SWIG_fail;
23098 swig_obj[0] = args;
23099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23100 if (!SWIG_IsOK(res1)) {
23101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23102 }
23103 arg1 = reinterpret_cast< wxDC * >(argp1);
23104 {
23105 PyThreadState* __tstate = wxPyBeginAllowThreads();
23106 result = (int)((wxDC const *)arg1)->MaxX();
23107 wxPyEndAllowThreads(__tstate);
23108 if (PyErr_Occurred()) SWIG_fail;
23109 }
23110 resultobj = SWIG_From_int(static_cast< int >(result));
23111 return resultobj;
23112 fail:
23113 return NULL;
23114 }
23115
23116
23117 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23118 PyObject *resultobj = 0;
23119 wxDC *arg1 = (wxDC *) 0 ;
23120 int result;
23121 void *argp1 = 0 ;
23122 int res1 = 0 ;
23123 PyObject *swig_obj[1] ;
23124
23125 if (!args) SWIG_fail;
23126 swig_obj[0] = args;
23127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23128 if (!SWIG_IsOK(res1)) {
23129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23130 }
23131 arg1 = reinterpret_cast< wxDC * >(argp1);
23132 {
23133 PyThreadState* __tstate = wxPyBeginAllowThreads();
23134 result = (int)((wxDC const *)arg1)->MinY();
23135 wxPyEndAllowThreads(__tstate);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 }
23138 resultobj = SWIG_From_int(static_cast< int >(result));
23139 return resultobj;
23140 fail:
23141 return NULL;
23142 }
23143
23144
23145 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23146 PyObject *resultobj = 0;
23147 wxDC *arg1 = (wxDC *) 0 ;
23148 int result;
23149 void *argp1 = 0 ;
23150 int res1 = 0 ;
23151 PyObject *swig_obj[1] ;
23152
23153 if (!args) SWIG_fail;
23154 swig_obj[0] = args;
23155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23156 if (!SWIG_IsOK(res1)) {
23157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23158 }
23159 arg1 = reinterpret_cast< wxDC * >(argp1);
23160 {
23161 PyThreadState* __tstate = wxPyBeginAllowThreads();
23162 result = (int)((wxDC const *)arg1)->MaxY();
23163 wxPyEndAllowThreads(__tstate);
23164 if (PyErr_Occurred()) SWIG_fail;
23165 }
23166 resultobj = SWIG_From_int(static_cast< int >(result));
23167 return resultobj;
23168 fail:
23169 return NULL;
23170 }
23171
23172
23173 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23174 PyObject *resultobj = 0;
23175 wxDC *arg1 = (wxDC *) 0 ;
23176 int *arg2 = (int *) 0 ;
23177 int *arg3 = (int *) 0 ;
23178 int *arg4 = (int *) 0 ;
23179 int *arg5 = (int *) 0 ;
23180 void *argp1 = 0 ;
23181 int res1 = 0 ;
23182 int temp2 ;
23183 int res2 = SWIG_TMPOBJ ;
23184 int temp3 ;
23185 int res3 = SWIG_TMPOBJ ;
23186 int temp4 ;
23187 int res4 = SWIG_TMPOBJ ;
23188 int temp5 ;
23189 int res5 = SWIG_TMPOBJ ;
23190 PyObject *swig_obj[1] ;
23191
23192 arg2 = &temp2;
23193 arg3 = &temp3;
23194 arg4 = &temp4;
23195 arg5 = &temp5;
23196 if (!args) SWIG_fail;
23197 swig_obj[0] = args;
23198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23199 if (!SWIG_IsOK(res1)) {
23200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23201 }
23202 arg1 = reinterpret_cast< wxDC * >(argp1);
23203 {
23204 PyThreadState* __tstate = wxPyBeginAllowThreads();
23205 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23206 wxPyEndAllowThreads(__tstate);
23207 if (PyErr_Occurred()) SWIG_fail;
23208 }
23209 resultobj = SWIG_Py_Void();
23210 if (SWIG_IsTmpObj(res2)) {
23211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23212 } else {
23213 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23215 }
23216 if (SWIG_IsTmpObj(res3)) {
23217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23218 } else {
23219 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23221 }
23222 if (SWIG_IsTmpObj(res4)) {
23223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23224 } else {
23225 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23226 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23227 }
23228 if (SWIG_IsTmpObj(res5)) {
23229 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23230 } else {
23231 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23232 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23233 }
23234 return resultobj;
23235 fail:
23236 return NULL;
23237 }
23238
23239
23240 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23241 PyObject *resultobj = 0;
23242 wxDC *arg1 = (wxDC *) 0 ;
23243 long result;
23244 void *argp1 = 0 ;
23245 int res1 = 0 ;
23246 PyObject *swig_obj[1] ;
23247
23248 if (!args) SWIG_fail;
23249 swig_obj[0] = args;
23250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23251 if (!SWIG_IsOK(res1)) {
23252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23253 }
23254 arg1 = reinterpret_cast< wxDC * >(argp1);
23255 {
23256 PyThreadState* __tstate = wxPyBeginAllowThreads();
23257 result = (long)(arg1)->GetHDC();
23258 wxPyEndAllowThreads(__tstate);
23259 if (PyErr_Occurred()) SWIG_fail;
23260 }
23261 resultobj = SWIG_From_long(static_cast< long >(result));
23262 return resultobj;
23263 fail:
23264 return NULL;
23265 }
23266
23267
23268 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23269 PyObject *resultobj = 0;
23270 wxDC *arg1 = (wxDC *) 0 ;
23271 PyObject *arg2 = (PyObject *) 0 ;
23272 PyObject *arg3 = (PyObject *) 0 ;
23273 PyObject *arg4 = (PyObject *) 0 ;
23274 PyObject *result = 0 ;
23275 void *argp1 = 0 ;
23276 int res1 = 0 ;
23277 PyObject * obj0 = 0 ;
23278 PyObject * obj1 = 0 ;
23279 PyObject * obj2 = 0 ;
23280 PyObject * obj3 = 0 ;
23281 char * kwnames[] = {
23282 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23283 };
23284
23285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23287 if (!SWIG_IsOK(res1)) {
23288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23289 }
23290 arg1 = reinterpret_cast< wxDC * >(argp1);
23291 arg2 = obj1;
23292 arg3 = obj2;
23293 arg4 = obj3;
23294 {
23295 PyThreadState* __tstate = wxPyBeginAllowThreads();
23296 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 resultobj = result;
23301 return resultobj;
23302 fail:
23303 return NULL;
23304 }
23305
23306
23307 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23308 PyObject *resultobj = 0;
23309 wxDC *arg1 = (wxDC *) 0 ;
23310 PyObject *arg2 = (PyObject *) 0 ;
23311 PyObject *arg3 = (PyObject *) 0 ;
23312 PyObject *arg4 = (PyObject *) 0 ;
23313 PyObject *result = 0 ;
23314 void *argp1 = 0 ;
23315 int res1 = 0 ;
23316 PyObject * obj0 = 0 ;
23317 PyObject * obj1 = 0 ;
23318 PyObject * obj2 = 0 ;
23319 PyObject * obj3 = 0 ;
23320 char * kwnames[] = {
23321 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23322 };
23323
23324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23326 if (!SWIG_IsOK(res1)) {
23327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23328 }
23329 arg1 = reinterpret_cast< wxDC * >(argp1);
23330 arg2 = obj1;
23331 arg3 = obj2;
23332 arg4 = obj3;
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 resultobj = result;
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23347 PyObject *resultobj = 0;
23348 wxDC *arg1 = (wxDC *) 0 ;
23349 PyObject *arg2 = (PyObject *) 0 ;
23350 PyObject *arg3 = (PyObject *) 0 ;
23351 PyObject *arg4 = (PyObject *) 0 ;
23352 PyObject *result = 0 ;
23353 void *argp1 = 0 ;
23354 int res1 = 0 ;
23355 PyObject * obj0 = 0 ;
23356 PyObject * obj1 = 0 ;
23357 PyObject * obj2 = 0 ;
23358 PyObject * obj3 = 0 ;
23359 char * kwnames[] = {
23360 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23361 };
23362
23363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23365 if (!SWIG_IsOK(res1)) {
23366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23367 }
23368 arg1 = reinterpret_cast< wxDC * >(argp1);
23369 arg2 = obj1;
23370 arg3 = obj2;
23371 arg4 = obj3;
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 resultobj = result;
23379 return resultobj;
23380 fail:
23381 return NULL;
23382 }
23383
23384
23385 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23386 PyObject *resultobj = 0;
23387 wxDC *arg1 = (wxDC *) 0 ;
23388 PyObject *arg2 = (PyObject *) 0 ;
23389 PyObject *arg3 = (PyObject *) 0 ;
23390 PyObject *arg4 = (PyObject *) 0 ;
23391 PyObject *result = 0 ;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 PyObject * obj0 = 0 ;
23395 PyObject * obj1 = 0 ;
23396 PyObject * obj2 = 0 ;
23397 PyObject * obj3 = 0 ;
23398 char * kwnames[] = {
23399 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23400 };
23401
23402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23404 if (!SWIG_IsOK(res1)) {
23405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23406 }
23407 arg1 = reinterpret_cast< wxDC * >(argp1);
23408 arg2 = obj1;
23409 arg3 = obj2;
23410 arg4 = obj3;
23411 {
23412 PyThreadState* __tstate = wxPyBeginAllowThreads();
23413 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23414 wxPyEndAllowThreads(__tstate);
23415 if (PyErr_Occurred()) SWIG_fail;
23416 }
23417 resultobj = result;
23418 return resultobj;
23419 fail:
23420 return NULL;
23421 }
23422
23423
23424 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23425 PyObject *resultobj = 0;
23426 wxDC *arg1 = (wxDC *) 0 ;
23427 PyObject *arg2 = (PyObject *) 0 ;
23428 PyObject *arg3 = (PyObject *) 0 ;
23429 PyObject *arg4 = (PyObject *) 0 ;
23430 PyObject *result = 0 ;
23431 void *argp1 = 0 ;
23432 int res1 = 0 ;
23433 PyObject * obj0 = 0 ;
23434 PyObject * obj1 = 0 ;
23435 PyObject * obj2 = 0 ;
23436 PyObject * obj3 = 0 ;
23437 char * kwnames[] = {
23438 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23439 };
23440
23441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23443 if (!SWIG_IsOK(res1)) {
23444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23445 }
23446 arg1 = reinterpret_cast< wxDC * >(argp1);
23447 arg2 = obj1;
23448 arg3 = obj2;
23449 arg4 = obj3;
23450 {
23451 PyThreadState* __tstate = wxPyBeginAllowThreads();
23452 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23453 wxPyEndAllowThreads(__tstate);
23454 if (PyErr_Occurred()) SWIG_fail;
23455 }
23456 resultobj = result;
23457 return resultobj;
23458 fail:
23459 return NULL;
23460 }
23461
23462
23463 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23464 PyObject *resultobj = 0;
23465 wxDC *arg1 = (wxDC *) 0 ;
23466 PyObject *arg2 = (PyObject *) 0 ;
23467 PyObject *arg3 = (PyObject *) 0 ;
23468 PyObject *arg4 = (PyObject *) 0 ;
23469 PyObject *arg5 = (PyObject *) 0 ;
23470 PyObject *result = 0 ;
23471 void *argp1 = 0 ;
23472 int res1 = 0 ;
23473 PyObject * obj0 = 0 ;
23474 PyObject * obj1 = 0 ;
23475 PyObject * obj2 = 0 ;
23476 PyObject * obj3 = 0 ;
23477 PyObject * obj4 = 0 ;
23478 char * kwnames[] = {
23479 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23480 };
23481
23482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23484 if (!SWIG_IsOK(res1)) {
23485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23486 }
23487 arg1 = reinterpret_cast< wxDC * >(argp1);
23488 arg2 = obj1;
23489 arg3 = obj2;
23490 arg4 = obj3;
23491 arg5 = obj4;
23492 {
23493 PyThreadState* __tstate = wxPyBeginAllowThreads();
23494 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23495 wxPyEndAllowThreads(__tstate);
23496 if (PyErr_Occurred()) SWIG_fail;
23497 }
23498 resultobj = result;
23499 return resultobj;
23500 fail:
23501 return NULL;
23502 }
23503
23504
23505 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23506 PyObject *obj;
23507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23508 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23509 return SWIG_Py_Void();
23510 }
23511
23512 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23513 PyObject *resultobj = 0;
23514 wxMemoryDC *result = 0 ;
23515
23516 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23517 {
23518 if (!wxPyCheckForApp()) SWIG_fail;
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 result = (wxMemoryDC *)new wxMemoryDC();
23521 wxPyEndAllowThreads(__tstate);
23522 if (PyErr_Occurred()) SWIG_fail;
23523 }
23524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23525 return resultobj;
23526 fail:
23527 return NULL;
23528 }
23529
23530
23531 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23532 PyObject *resultobj = 0;
23533 wxDC *arg1 = (wxDC *) 0 ;
23534 wxMemoryDC *result = 0 ;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 PyObject * obj0 = 0 ;
23538 char * kwnames[] = {
23539 (char *) "oldDC", NULL
23540 };
23541
23542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23544 if (!SWIG_IsOK(res1)) {
23545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23546 }
23547 arg1 = reinterpret_cast< wxDC * >(argp1);
23548 {
23549 if (!wxPyCheckForApp()) SWIG_fail;
23550 PyThreadState* __tstate = wxPyBeginAllowThreads();
23551 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23552 wxPyEndAllowThreads(__tstate);
23553 if (PyErr_Occurred()) SWIG_fail;
23554 }
23555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23556 return resultobj;
23557 fail:
23558 return NULL;
23559 }
23560
23561
23562 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23563 PyObject *resultobj = 0;
23564 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23565 wxBitmap *arg2 = 0 ;
23566 void *argp1 = 0 ;
23567 int res1 = 0 ;
23568 void *argp2 = 0 ;
23569 int res2 = 0 ;
23570 PyObject * obj0 = 0 ;
23571 PyObject * obj1 = 0 ;
23572 char * kwnames[] = {
23573 (char *) "self",(char *) "bitmap", NULL
23574 };
23575
23576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23578 if (!SWIG_IsOK(res1)) {
23579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23580 }
23581 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23583 if (!SWIG_IsOK(res2)) {
23584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23585 }
23586 if (!argp2) {
23587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23588 }
23589 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23590 {
23591 PyThreadState* __tstate = wxPyBeginAllowThreads();
23592 (arg1)->SelectObject((wxBitmap const &)*arg2);
23593 wxPyEndAllowThreads(__tstate);
23594 if (PyErr_Occurred()) SWIG_fail;
23595 }
23596 resultobj = SWIG_Py_Void();
23597 return resultobj;
23598 fail:
23599 return NULL;
23600 }
23601
23602
23603 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23604 PyObject *obj;
23605 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23606 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23607 return SWIG_Py_Void();
23608 }
23609
23610 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23611 return SWIG_Python_InitShadowInstance(args);
23612 }
23613
23614 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23615 PyObject *resultobj = 0;
23616 wxDC *arg1 = (wxDC *) 0 ;
23617 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23618 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23619 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23620 wxBufferedDC *result = 0 ;
23621 void *argp1 = 0 ;
23622 int res1 = 0 ;
23623 void *argp2 = 0 ;
23624 int res2 = 0 ;
23625 int val3 ;
23626 int ecode3 = 0 ;
23627
23628 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23630 if (!SWIG_IsOK(res1)) {
23631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23632 }
23633 arg1 = reinterpret_cast< wxDC * >(argp1);
23634 if (swig_obj[1]) {
23635 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23636 if (!SWIG_IsOK(res2)) {
23637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23638 }
23639 if (!argp2) {
23640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23641 }
23642 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23643 }
23644 if (swig_obj[2]) {
23645 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23646 if (!SWIG_IsOK(ecode3)) {
23647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23648 }
23649 arg3 = static_cast< int >(val3);
23650 }
23651 {
23652 if (!wxPyCheckForApp()) SWIG_fail;
23653 PyThreadState* __tstate = wxPyBeginAllowThreads();
23654 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23655 wxPyEndAllowThreads(__tstate);
23656 if (PyErr_Occurred()) SWIG_fail;
23657 }
23658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23659 return resultobj;
23660 fail:
23661 return NULL;
23662 }
23663
23664
23665 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23666 PyObject *resultobj = 0;
23667 wxDC *arg1 = (wxDC *) 0 ;
23668 wxSize *arg2 = 0 ;
23669 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23670 wxBufferedDC *result = 0 ;
23671 void *argp1 = 0 ;
23672 int res1 = 0 ;
23673 wxSize temp2 ;
23674 int val3 ;
23675 int ecode3 = 0 ;
23676
23677 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23679 if (!SWIG_IsOK(res1)) {
23680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23681 }
23682 arg1 = reinterpret_cast< wxDC * >(argp1);
23683 {
23684 arg2 = &temp2;
23685 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23686 }
23687 if (swig_obj[2]) {
23688 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23689 if (!SWIG_IsOK(ecode3)) {
23690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23691 }
23692 arg3 = static_cast< int >(val3);
23693 }
23694 {
23695 if (!wxPyCheckForApp()) SWIG_fail;
23696 PyThreadState* __tstate = wxPyBeginAllowThreads();
23697 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23698 wxPyEndAllowThreads(__tstate);
23699 if (PyErr_Occurred()) SWIG_fail;
23700 }
23701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23702 return resultobj;
23703 fail:
23704 return NULL;
23705 }
23706
23707
23708 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23709 int argc;
23710 PyObject *argv[4];
23711
23712 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23713 --argc;
23714 if ((argc >= 1) && (argc <= 3)) {
23715 int _v = 0;
23716 if (argc > 1) {
23717 {
23718 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23719 _v = SWIG_CheckState(res);
23720 }
23721 if (!_v) goto check_1;
23722 }
23723 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23724 }
23725 check_1:
23726
23727 if ((argc >= 2) && (argc <= 3)) {
23728 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23729 }
23730
23731 fail:
23732 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23733 return NULL;
23734 }
23735
23736
23737 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23738 PyObject *resultobj = 0;
23739 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23740 void *argp1 = 0 ;
23741 int res1 = 0 ;
23742 PyObject *swig_obj[1] ;
23743
23744 if (!args) SWIG_fail;
23745 swig_obj[0] = args;
23746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23747 if (!SWIG_IsOK(res1)) {
23748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23749 }
23750 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23751 {
23752 PyThreadState* __tstate = wxPyBeginAllowThreads();
23753 delete arg1;
23754
23755 wxPyEndAllowThreads(__tstate);
23756 if (PyErr_Occurred()) SWIG_fail;
23757 }
23758 resultobj = SWIG_Py_Void();
23759 return resultobj;
23760 fail:
23761 return NULL;
23762 }
23763
23764
23765 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23766 PyObject *resultobj = 0;
23767 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23768 void *argp1 = 0 ;
23769 int res1 = 0 ;
23770 PyObject *swig_obj[1] ;
23771
23772 if (!args) SWIG_fail;
23773 swig_obj[0] = args;
23774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23775 if (!SWIG_IsOK(res1)) {
23776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23777 }
23778 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23779 {
23780 PyThreadState* __tstate = wxPyBeginAllowThreads();
23781 (arg1)->UnMask();
23782 wxPyEndAllowThreads(__tstate);
23783 if (PyErr_Occurred()) SWIG_fail;
23784 }
23785 resultobj = SWIG_Py_Void();
23786 return resultobj;
23787 fail:
23788 return NULL;
23789 }
23790
23791
23792 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23793 PyObject *obj;
23794 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23795 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23796 return SWIG_Py_Void();
23797 }
23798
23799 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23800 return SWIG_Python_InitShadowInstance(args);
23801 }
23802
23803 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23804 PyObject *resultobj = 0;
23805 wxWindow *arg1 = (wxWindow *) 0 ;
23806 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23807 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23808 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23809 wxBufferedPaintDC *result = 0 ;
23810 void *argp1 = 0 ;
23811 int res1 = 0 ;
23812 void *argp2 = 0 ;
23813 int res2 = 0 ;
23814 int val3 ;
23815 int ecode3 = 0 ;
23816 PyObject * obj0 = 0 ;
23817 PyObject * obj1 = 0 ;
23818 PyObject * obj2 = 0 ;
23819 char * kwnames[] = {
23820 (char *) "window",(char *) "buffer",(char *) "style", NULL
23821 };
23822
23823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23825 if (!SWIG_IsOK(res1)) {
23826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23827 }
23828 arg1 = reinterpret_cast< wxWindow * >(argp1);
23829 if (obj1) {
23830 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23831 if (!SWIG_IsOK(res2)) {
23832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23833 }
23834 if (!argp2) {
23835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23836 }
23837 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23838 }
23839 if (obj2) {
23840 ecode3 = SWIG_AsVal_int(obj2, &val3);
23841 if (!SWIG_IsOK(ecode3)) {
23842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23843 }
23844 arg3 = static_cast< int >(val3);
23845 }
23846 {
23847 if (!wxPyCheckForApp()) SWIG_fail;
23848 PyThreadState* __tstate = wxPyBeginAllowThreads();
23849 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23850 wxPyEndAllowThreads(__tstate);
23851 if (PyErr_Occurred()) SWIG_fail;
23852 }
23853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23854 return resultobj;
23855 fail:
23856 return NULL;
23857 }
23858
23859
23860 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23861 PyObject *obj;
23862 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23863 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23864 return SWIG_Py_Void();
23865 }
23866
23867 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23868 return SWIG_Python_InitShadowInstance(args);
23869 }
23870
23871 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23872 PyObject *resultobj = 0;
23873 wxScreenDC *result = 0 ;
23874
23875 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23876 {
23877 if (!wxPyCheckForApp()) SWIG_fail;
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (wxScreenDC *)new wxScreenDC();
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23884 return resultobj;
23885 fail:
23886 return NULL;
23887 }
23888
23889
23890 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23891 PyObject *resultobj = 0;
23892 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23893 wxWindow *arg2 = (wxWindow *) 0 ;
23894 bool result;
23895 void *argp1 = 0 ;
23896 int res1 = 0 ;
23897 void *argp2 = 0 ;
23898 int res2 = 0 ;
23899 PyObject * obj0 = 0 ;
23900 PyObject * obj1 = 0 ;
23901 char * kwnames[] = {
23902 (char *) "self",(char *) "window", NULL
23903 };
23904
23905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23907 if (!SWIG_IsOK(res1)) {
23908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23909 }
23910 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23911 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23912 if (!SWIG_IsOK(res2)) {
23913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23914 }
23915 arg2 = reinterpret_cast< wxWindow * >(argp2);
23916 {
23917 PyThreadState* __tstate = wxPyBeginAllowThreads();
23918 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 {
23923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23924 }
23925 return resultobj;
23926 fail:
23927 return NULL;
23928 }
23929
23930
23931 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23932 PyObject *resultobj = 0;
23933 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23934 wxRect *arg2 = (wxRect *) NULL ;
23935 bool result;
23936 void *argp1 = 0 ;
23937 int res1 = 0 ;
23938 void *argp2 = 0 ;
23939 int res2 = 0 ;
23940 PyObject * obj0 = 0 ;
23941 PyObject * obj1 = 0 ;
23942 char * kwnames[] = {
23943 (char *) "self",(char *) "rect", NULL
23944 };
23945
23946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23948 if (!SWIG_IsOK(res1)) {
23949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23950 }
23951 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23952 if (obj1) {
23953 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23954 if (!SWIG_IsOK(res2)) {
23955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23956 }
23957 arg2 = reinterpret_cast< wxRect * >(argp2);
23958 }
23959 {
23960 PyThreadState* __tstate = wxPyBeginAllowThreads();
23961 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23962 wxPyEndAllowThreads(__tstate);
23963 if (PyErr_Occurred()) SWIG_fail;
23964 }
23965 {
23966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23967 }
23968 return resultobj;
23969 fail:
23970 return NULL;
23971 }
23972
23973
23974 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23975 PyObject *resultobj = 0;
23976 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23977 bool result;
23978 void *argp1 = 0 ;
23979 int res1 = 0 ;
23980 PyObject *swig_obj[1] ;
23981
23982 if (!args) SWIG_fail;
23983 swig_obj[0] = args;
23984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23985 if (!SWIG_IsOK(res1)) {
23986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23987 }
23988 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 result = (bool)(arg1)->EndDrawingOnTop();
23992 wxPyEndAllowThreads(__tstate);
23993 if (PyErr_Occurred()) SWIG_fail;
23994 }
23995 {
23996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23997 }
23998 return resultobj;
23999 fail:
24000 return NULL;
24001 }
24002
24003
24004 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24005 PyObject *obj;
24006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24007 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24008 return SWIG_Py_Void();
24009 }
24010
24011 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24012 return SWIG_Python_InitShadowInstance(args);
24013 }
24014
24015 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24016 PyObject *resultobj = 0;
24017 wxWindow *arg1 = (wxWindow *) 0 ;
24018 wxClientDC *result = 0 ;
24019 void *argp1 = 0 ;
24020 int res1 = 0 ;
24021 PyObject * obj0 = 0 ;
24022 char * kwnames[] = {
24023 (char *) "win", NULL
24024 };
24025
24026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24028 if (!SWIG_IsOK(res1)) {
24029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24030 }
24031 arg1 = reinterpret_cast< wxWindow * >(argp1);
24032 {
24033 if (!wxPyCheckForApp()) SWIG_fail;
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 result = (wxClientDC *)new wxClientDC(arg1);
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24040 return resultobj;
24041 fail:
24042 return NULL;
24043 }
24044
24045
24046 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24047 PyObject *obj;
24048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24049 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24050 return SWIG_Py_Void();
24051 }
24052
24053 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24054 return SWIG_Python_InitShadowInstance(args);
24055 }
24056
24057 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24058 PyObject *resultobj = 0;
24059 wxWindow *arg1 = (wxWindow *) 0 ;
24060 wxPaintDC *result = 0 ;
24061 void *argp1 = 0 ;
24062 int res1 = 0 ;
24063 PyObject * obj0 = 0 ;
24064 char * kwnames[] = {
24065 (char *) "win", NULL
24066 };
24067
24068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24070 if (!SWIG_IsOK(res1)) {
24071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24072 }
24073 arg1 = reinterpret_cast< wxWindow * >(argp1);
24074 {
24075 if (!wxPyCheckForApp()) SWIG_fail;
24076 PyThreadState* __tstate = wxPyBeginAllowThreads();
24077 result = (wxPaintDC *)new wxPaintDC(arg1);
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
24081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24082 return resultobj;
24083 fail:
24084 return NULL;
24085 }
24086
24087
24088 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24089 PyObject *obj;
24090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24091 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24092 return SWIG_Py_Void();
24093 }
24094
24095 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24096 return SWIG_Python_InitShadowInstance(args);
24097 }
24098
24099 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24100 PyObject *resultobj = 0;
24101 wxWindow *arg1 = (wxWindow *) 0 ;
24102 wxWindowDC *result = 0 ;
24103 void *argp1 = 0 ;
24104 int res1 = 0 ;
24105 PyObject * obj0 = 0 ;
24106 char * kwnames[] = {
24107 (char *) "win", NULL
24108 };
24109
24110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24112 if (!SWIG_IsOK(res1)) {
24113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24114 }
24115 arg1 = reinterpret_cast< wxWindow * >(argp1);
24116 {
24117 if (!wxPyCheckForApp()) SWIG_fail;
24118 PyThreadState* __tstate = wxPyBeginAllowThreads();
24119 result = (wxWindowDC *)new wxWindowDC(arg1);
24120 wxPyEndAllowThreads(__tstate);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 }
24123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24124 return resultobj;
24125 fail:
24126 return NULL;
24127 }
24128
24129
24130 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24131 PyObject *obj;
24132 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24133 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24134 return SWIG_Py_Void();
24135 }
24136
24137 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24138 return SWIG_Python_InitShadowInstance(args);
24139 }
24140
24141 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24142 PyObject *resultobj = 0;
24143 wxDC *arg1 = 0 ;
24144 bool arg2 ;
24145 wxMirrorDC *result = 0 ;
24146 void *argp1 = 0 ;
24147 int res1 = 0 ;
24148 bool val2 ;
24149 int ecode2 = 0 ;
24150 PyObject * obj0 = 0 ;
24151 PyObject * obj1 = 0 ;
24152 char * kwnames[] = {
24153 (char *) "dc",(char *) "mirror", NULL
24154 };
24155
24156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24157 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24158 if (!SWIG_IsOK(res1)) {
24159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24160 }
24161 if (!argp1) {
24162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24163 }
24164 arg1 = reinterpret_cast< wxDC * >(argp1);
24165 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24166 if (!SWIG_IsOK(ecode2)) {
24167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24168 }
24169 arg2 = static_cast< bool >(val2);
24170 {
24171 if (!wxPyCheckForApp()) SWIG_fail;
24172 PyThreadState* __tstate = wxPyBeginAllowThreads();
24173 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24174 wxPyEndAllowThreads(__tstate);
24175 if (PyErr_Occurred()) SWIG_fail;
24176 }
24177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24178 return resultobj;
24179 fail:
24180 return NULL;
24181 }
24182
24183
24184 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24185 PyObject *obj;
24186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24187 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24188 return SWIG_Py_Void();
24189 }
24190
24191 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24192 return SWIG_Python_InitShadowInstance(args);
24193 }
24194
24195 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24196 PyObject *resultobj = 0;
24197 wxPrintData *arg1 = 0 ;
24198 wxPostScriptDC *result = 0 ;
24199 void *argp1 = 0 ;
24200 int res1 = 0 ;
24201 PyObject * obj0 = 0 ;
24202 char * kwnames[] = {
24203 (char *) "printData", NULL
24204 };
24205
24206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24207 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24208 if (!SWIG_IsOK(res1)) {
24209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24210 }
24211 if (!argp1) {
24212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24213 }
24214 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24215 {
24216 if (!wxPyCheckForApp()) SWIG_fail;
24217 PyThreadState* __tstate = wxPyBeginAllowThreads();
24218 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24219 wxPyEndAllowThreads(__tstate);
24220 if (PyErr_Occurred()) SWIG_fail;
24221 }
24222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24223 return resultobj;
24224 fail:
24225 return NULL;
24226 }
24227
24228
24229 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24230 PyObject *resultobj = 0;
24231 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24232 wxPrintData *result = 0 ;
24233 void *argp1 = 0 ;
24234 int res1 = 0 ;
24235 PyObject *swig_obj[1] ;
24236
24237 if (!args) SWIG_fail;
24238 swig_obj[0] = args;
24239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24240 if (!SWIG_IsOK(res1)) {
24241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24242 }
24243 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24244 {
24245 PyThreadState* __tstate = wxPyBeginAllowThreads();
24246 {
24247 wxPrintData &_result_ref = (arg1)->GetPrintData();
24248 result = (wxPrintData *) &_result_ref;
24249 }
24250 wxPyEndAllowThreads(__tstate);
24251 if (PyErr_Occurred()) SWIG_fail;
24252 }
24253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24254 return resultobj;
24255 fail:
24256 return NULL;
24257 }
24258
24259
24260 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24261 PyObject *resultobj = 0;
24262 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24263 wxPrintData *arg2 = 0 ;
24264 void *argp1 = 0 ;
24265 int res1 = 0 ;
24266 void *argp2 = 0 ;
24267 int res2 = 0 ;
24268 PyObject * obj0 = 0 ;
24269 PyObject * obj1 = 0 ;
24270 char * kwnames[] = {
24271 (char *) "self",(char *) "data", NULL
24272 };
24273
24274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24276 if (!SWIG_IsOK(res1)) {
24277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24278 }
24279 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24280 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24281 if (!SWIG_IsOK(res2)) {
24282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24283 }
24284 if (!argp2) {
24285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24286 }
24287 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24288 {
24289 PyThreadState* __tstate = wxPyBeginAllowThreads();
24290 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24291 wxPyEndAllowThreads(__tstate);
24292 if (PyErr_Occurred()) SWIG_fail;
24293 }
24294 resultobj = SWIG_Py_Void();
24295 return resultobj;
24296 fail:
24297 return NULL;
24298 }
24299
24300
24301 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24302 PyObject *resultobj = 0;
24303 int arg1 ;
24304 int val1 ;
24305 int ecode1 = 0 ;
24306 PyObject * obj0 = 0 ;
24307 char * kwnames[] = {
24308 (char *) "ppi", NULL
24309 };
24310
24311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24312 ecode1 = SWIG_AsVal_int(obj0, &val1);
24313 if (!SWIG_IsOK(ecode1)) {
24314 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24315 }
24316 arg1 = static_cast< int >(val1);
24317 {
24318 PyThreadState* __tstate = wxPyBeginAllowThreads();
24319 wxPostScriptDC::SetResolution(arg1);
24320 wxPyEndAllowThreads(__tstate);
24321 if (PyErr_Occurred()) SWIG_fail;
24322 }
24323 resultobj = SWIG_Py_Void();
24324 return resultobj;
24325 fail:
24326 return NULL;
24327 }
24328
24329
24330 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24331 PyObject *resultobj = 0;
24332 int result;
24333
24334 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24335 {
24336 PyThreadState* __tstate = wxPyBeginAllowThreads();
24337 result = (int)wxPostScriptDC::GetResolution();
24338 wxPyEndAllowThreads(__tstate);
24339 if (PyErr_Occurred()) SWIG_fail;
24340 }
24341 resultobj = SWIG_From_int(static_cast< int >(result));
24342 return resultobj;
24343 fail:
24344 return NULL;
24345 }
24346
24347
24348 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24349 PyObject *obj;
24350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24351 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24352 return SWIG_Py_Void();
24353 }
24354
24355 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24356 return SWIG_Python_InitShadowInstance(args);
24357 }
24358
24359 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24360 PyObject *resultobj = 0;
24361 wxString const &arg1_defvalue = wxPyEmptyString ;
24362 wxString *arg1 = (wxString *) &arg1_defvalue ;
24363 wxMetaFile *result = 0 ;
24364 bool temp1 = false ;
24365 PyObject * obj0 = 0 ;
24366 char * kwnames[] = {
24367 (char *) "filename", NULL
24368 };
24369
24370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24371 if (obj0) {
24372 {
24373 arg1 = wxString_in_helper(obj0);
24374 if (arg1 == NULL) SWIG_fail;
24375 temp1 = true;
24376 }
24377 }
24378 {
24379 if (!wxPyCheckForApp()) SWIG_fail;
24380 PyThreadState* __tstate = wxPyBeginAllowThreads();
24381 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24382 wxPyEndAllowThreads(__tstate);
24383 if (PyErr_Occurred()) SWIG_fail;
24384 }
24385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24386 {
24387 if (temp1)
24388 delete arg1;
24389 }
24390 return resultobj;
24391 fail:
24392 {
24393 if (temp1)
24394 delete arg1;
24395 }
24396 return NULL;
24397 }
24398
24399
24400 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24401 PyObject *resultobj = 0;
24402 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24403 void *argp1 = 0 ;
24404 int res1 = 0 ;
24405 PyObject *swig_obj[1] ;
24406
24407 if (!args) SWIG_fail;
24408 swig_obj[0] = args;
24409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24410 if (!SWIG_IsOK(res1)) {
24411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24412 }
24413 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24414 {
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 delete arg1;
24417
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 resultobj = SWIG_Py_Void();
24422 return resultobj;
24423 fail:
24424 return NULL;
24425 }
24426
24427
24428 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24429 PyObject *resultobj = 0;
24430 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24431 bool result;
24432 void *argp1 = 0 ;
24433 int res1 = 0 ;
24434 PyObject *swig_obj[1] ;
24435
24436 if (!args) SWIG_fail;
24437 swig_obj[0] = args;
24438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24439 if (!SWIG_IsOK(res1)) {
24440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24441 }
24442 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 result = (bool)(arg1)->Ok();
24446 wxPyEndAllowThreads(__tstate);
24447 if (PyErr_Occurred()) SWIG_fail;
24448 }
24449 {
24450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24451 }
24452 return resultobj;
24453 fail:
24454 return NULL;
24455 }
24456
24457
24458 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24459 PyObject *resultobj = 0;
24460 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24461 int arg2 = (int) 0 ;
24462 int arg3 = (int) 0 ;
24463 bool result;
24464 void *argp1 = 0 ;
24465 int res1 = 0 ;
24466 int val2 ;
24467 int ecode2 = 0 ;
24468 int val3 ;
24469 int ecode3 = 0 ;
24470 PyObject * obj0 = 0 ;
24471 PyObject * obj1 = 0 ;
24472 PyObject * obj2 = 0 ;
24473 char * kwnames[] = {
24474 (char *) "self",(char *) "width",(char *) "height", NULL
24475 };
24476
24477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24479 if (!SWIG_IsOK(res1)) {
24480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24481 }
24482 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24483 if (obj1) {
24484 ecode2 = SWIG_AsVal_int(obj1, &val2);
24485 if (!SWIG_IsOK(ecode2)) {
24486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24487 }
24488 arg2 = static_cast< int >(val2);
24489 }
24490 if (obj2) {
24491 ecode3 = SWIG_AsVal_int(obj2, &val3);
24492 if (!SWIG_IsOK(ecode3)) {
24493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24494 }
24495 arg3 = static_cast< int >(val3);
24496 }
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24500 wxPyEndAllowThreads(__tstate);
24501 if (PyErr_Occurred()) SWIG_fail;
24502 }
24503 {
24504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24505 }
24506 return resultobj;
24507 fail:
24508 return NULL;
24509 }
24510
24511
24512 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24513 PyObject *resultobj = 0;
24514 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24515 wxSize result;
24516 void *argp1 = 0 ;
24517 int res1 = 0 ;
24518 PyObject *swig_obj[1] ;
24519
24520 if (!args) SWIG_fail;
24521 swig_obj[0] = args;
24522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24523 if (!SWIG_IsOK(res1)) {
24524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24525 }
24526 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24527 {
24528 PyThreadState* __tstate = wxPyBeginAllowThreads();
24529 result = (arg1)->GetSize();
24530 wxPyEndAllowThreads(__tstate);
24531 if (PyErr_Occurred()) SWIG_fail;
24532 }
24533 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24534 return resultobj;
24535 fail:
24536 return NULL;
24537 }
24538
24539
24540 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24541 PyObject *resultobj = 0;
24542 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24543 int result;
24544 void *argp1 = 0 ;
24545 int res1 = 0 ;
24546 PyObject *swig_obj[1] ;
24547
24548 if (!args) SWIG_fail;
24549 swig_obj[0] = args;
24550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24551 if (!SWIG_IsOK(res1)) {
24552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24553 }
24554 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24555 {
24556 PyThreadState* __tstate = wxPyBeginAllowThreads();
24557 result = (int)(arg1)->GetWidth();
24558 wxPyEndAllowThreads(__tstate);
24559 if (PyErr_Occurred()) SWIG_fail;
24560 }
24561 resultobj = SWIG_From_int(static_cast< int >(result));
24562 return resultobj;
24563 fail:
24564 return NULL;
24565 }
24566
24567
24568 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24569 PyObject *resultobj = 0;
24570 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24571 int result;
24572 void *argp1 = 0 ;
24573 int res1 = 0 ;
24574 PyObject *swig_obj[1] ;
24575
24576 if (!args) SWIG_fail;
24577 swig_obj[0] = args;
24578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24579 if (!SWIG_IsOK(res1)) {
24580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24581 }
24582 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24583 {
24584 PyThreadState* __tstate = wxPyBeginAllowThreads();
24585 result = (int)(arg1)->GetHeight();
24586 wxPyEndAllowThreads(__tstate);
24587 if (PyErr_Occurred()) SWIG_fail;
24588 }
24589 resultobj = SWIG_From_int(static_cast< int >(result));
24590 return resultobj;
24591 fail:
24592 return NULL;
24593 }
24594
24595
24596 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24597 PyObject *resultobj = 0;
24598 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24599 wxString *result = 0 ;
24600 void *argp1 = 0 ;
24601 int res1 = 0 ;
24602 PyObject *swig_obj[1] ;
24603
24604 if (!args) SWIG_fail;
24605 swig_obj[0] = args;
24606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24607 if (!SWIG_IsOK(res1)) {
24608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24609 }
24610 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24611 {
24612 PyThreadState* __tstate = wxPyBeginAllowThreads();
24613 {
24614 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24615 result = (wxString *) &_result_ref;
24616 }
24617 wxPyEndAllowThreads(__tstate);
24618 if (PyErr_Occurred()) SWIG_fail;
24619 }
24620 {
24621 #if wxUSE_UNICODE
24622 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24623 #else
24624 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24625 #endif
24626 }
24627 return resultobj;
24628 fail:
24629 return NULL;
24630 }
24631
24632
24633 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24634 PyObject *obj;
24635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24636 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24637 return SWIG_Py_Void();
24638 }
24639
24640 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24641 return SWIG_Python_InitShadowInstance(args);
24642 }
24643
24644 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24645 PyObject *resultobj = 0;
24646 wxString const &arg1_defvalue = wxPyEmptyString ;
24647 wxString *arg1 = (wxString *) &arg1_defvalue ;
24648 int arg2 = (int) 0 ;
24649 int arg3 = (int) 0 ;
24650 wxString const &arg4_defvalue = wxPyEmptyString ;
24651 wxString *arg4 = (wxString *) &arg4_defvalue ;
24652 wxMetaFileDC *result = 0 ;
24653 bool temp1 = false ;
24654 int val2 ;
24655 int ecode2 = 0 ;
24656 int val3 ;
24657 int ecode3 = 0 ;
24658 bool temp4 = false ;
24659 PyObject * obj0 = 0 ;
24660 PyObject * obj1 = 0 ;
24661 PyObject * obj2 = 0 ;
24662 PyObject * obj3 = 0 ;
24663 char * kwnames[] = {
24664 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24665 };
24666
24667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24668 if (obj0) {
24669 {
24670 arg1 = wxString_in_helper(obj0);
24671 if (arg1 == NULL) SWIG_fail;
24672 temp1 = true;
24673 }
24674 }
24675 if (obj1) {
24676 ecode2 = SWIG_AsVal_int(obj1, &val2);
24677 if (!SWIG_IsOK(ecode2)) {
24678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24679 }
24680 arg2 = static_cast< int >(val2);
24681 }
24682 if (obj2) {
24683 ecode3 = SWIG_AsVal_int(obj2, &val3);
24684 if (!SWIG_IsOK(ecode3)) {
24685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24686 }
24687 arg3 = static_cast< int >(val3);
24688 }
24689 if (obj3) {
24690 {
24691 arg4 = wxString_in_helper(obj3);
24692 if (arg4 == NULL) SWIG_fail;
24693 temp4 = true;
24694 }
24695 }
24696 {
24697 if (!wxPyCheckForApp()) SWIG_fail;
24698 PyThreadState* __tstate = wxPyBeginAllowThreads();
24699 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24700 wxPyEndAllowThreads(__tstate);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 }
24703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24704 {
24705 if (temp1)
24706 delete arg1;
24707 }
24708 {
24709 if (temp4)
24710 delete arg4;
24711 }
24712 return resultobj;
24713 fail:
24714 {
24715 if (temp1)
24716 delete arg1;
24717 }
24718 {
24719 if (temp4)
24720 delete arg4;
24721 }
24722 return NULL;
24723 }
24724
24725
24726 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24727 PyObject *resultobj = 0;
24728 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24729 wxMetaFile *result = 0 ;
24730 void *argp1 = 0 ;
24731 int res1 = 0 ;
24732 PyObject *swig_obj[1] ;
24733
24734 if (!args) SWIG_fail;
24735 swig_obj[0] = args;
24736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24737 if (!SWIG_IsOK(res1)) {
24738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24739 }
24740 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24741 {
24742 PyThreadState* __tstate = wxPyBeginAllowThreads();
24743 result = (wxMetaFile *)(arg1)->Close();
24744 wxPyEndAllowThreads(__tstate);
24745 if (PyErr_Occurred()) SWIG_fail;
24746 }
24747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24748 return resultobj;
24749 fail:
24750 return NULL;
24751 }
24752
24753
24754 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24755 PyObject *obj;
24756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24757 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24758 return SWIG_Py_Void();
24759 }
24760
24761 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24762 return SWIG_Python_InitShadowInstance(args);
24763 }
24764
24765 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24766 PyObject *resultobj = 0;
24767 wxPrintData *arg1 = 0 ;
24768 wxPrinterDC *result = 0 ;
24769 void *argp1 = 0 ;
24770 int res1 = 0 ;
24771 PyObject * obj0 = 0 ;
24772 char * kwnames[] = {
24773 (char *) "printData", NULL
24774 };
24775
24776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24777 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24778 if (!SWIG_IsOK(res1)) {
24779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24780 }
24781 if (!argp1) {
24782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24783 }
24784 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24785 {
24786 if (!wxPyCheckForApp()) SWIG_fail;
24787 PyThreadState* __tstate = wxPyBeginAllowThreads();
24788 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24789 wxPyEndAllowThreads(__tstate);
24790 if (PyErr_Occurred()) SWIG_fail;
24791 }
24792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24793 return resultobj;
24794 fail:
24795 return NULL;
24796 }
24797
24798
24799 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24800 PyObject *obj;
24801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24802 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24803 return SWIG_Py_Void();
24804 }
24805
24806 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24807 return SWIG_Python_InitShadowInstance(args);
24808 }
24809
24810 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24811 PyObject *resultobj = 0;
24812 int arg1 ;
24813 int arg2 ;
24814 int arg3 = (int) true ;
24815 int arg4 = (int) 1 ;
24816 wxImageList *result = 0 ;
24817 int val1 ;
24818 int ecode1 = 0 ;
24819 int val2 ;
24820 int ecode2 = 0 ;
24821 int val3 ;
24822 int ecode3 = 0 ;
24823 int val4 ;
24824 int ecode4 = 0 ;
24825 PyObject * obj0 = 0 ;
24826 PyObject * obj1 = 0 ;
24827 PyObject * obj2 = 0 ;
24828 PyObject * obj3 = 0 ;
24829 char * kwnames[] = {
24830 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
24831 };
24832
24833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24834 ecode1 = SWIG_AsVal_int(obj0, &val1);
24835 if (!SWIG_IsOK(ecode1)) {
24836 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
24837 }
24838 arg1 = static_cast< int >(val1);
24839 ecode2 = SWIG_AsVal_int(obj1, &val2);
24840 if (!SWIG_IsOK(ecode2)) {
24841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
24842 }
24843 arg2 = static_cast< int >(val2);
24844 if (obj2) {
24845 ecode3 = SWIG_AsVal_int(obj2, &val3);
24846 if (!SWIG_IsOK(ecode3)) {
24847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
24848 }
24849 arg3 = static_cast< int >(val3);
24850 }
24851 if (obj3) {
24852 ecode4 = SWIG_AsVal_int(obj3, &val4);
24853 if (!SWIG_IsOK(ecode4)) {
24854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
24855 }
24856 arg4 = static_cast< int >(val4);
24857 }
24858 {
24859 if (!wxPyCheckForApp()) SWIG_fail;
24860 PyThreadState* __tstate = wxPyBeginAllowThreads();
24861 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
24862 wxPyEndAllowThreads(__tstate);
24863 if (PyErr_Occurred()) SWIG_fail;
24864 }
24865 {
24866 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
24867 }
24868 return resultobj;
24869 fail:
24870 return NULL;
24871 }
24872
24873
24874 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24875 PyObject *resultobj = 0;
24876 wxImageList *arg1 = (wxImageList *) 0 ;
24877 void *argp1 = 0 ;
24878 int res1 = 0 ;
24879 PyObject *swig_obj[1] ;
24880
24881 if (!args) SWIG_fail;
24882 swig_obj[0] = args;
24883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24884 if (!SWIG_IsOK(res1)) {
24885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24886 }
24887 arg1 = reinterpret_cast< wxImageList * >(argp1);
24888 {
24889 PyThreadState* __tstate = wxPyBeginAllowThreads();
24890 delete arg1;
24891
24892 wxPyEndAllowThreads(__tstate);
24893 if (PyErr_Occurred()) SWIG_fail;
24894 }
24895 resultobj = SWIG_Py_Void();
24896 return resultobj;
24897 fail:
24898 return NULL;
24899 }
24900
24901
24902 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24903 PyObject *resultobj = 0;
24904 wxImageList *arg1 = (wxImageList *) 0 ;
24905 wxBitmap *arg2 = 0 ;
24906 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24907 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24908 int result;
24909 void *argp1 = 0 ;
24910 int res1 = 0 ;
24911 void *argp2 = 0 ;
24912 int res2 = 0 ;
24913 void *argp3 = 0 ;
24914 int res3 = 0 ;
24915 PyObject * obj0 = 0 ;
24916 PyObject * obj1 = 0 ;
24917 PyObject * obj2 = 0 ;
24918 char * kwnames[] = {
24919 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24920 };
24921
24922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24924 if (!SWIG_IsOK(res1)) {
24925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
24926 }
24927 arg1 = reinterpret_cast< wxImageList * >(argp1);
24928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24929 if (!SWIG_IsOK(res2)) {
24930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24931 }
24932 if (!argp2) {
24933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24934 }
24935 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24936 if (obj2) {
24937 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24938 if (!SWIG_IsOK(res3)) {
24939 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24940 }
24941 if (!argp3) {
24942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24943 }
24944 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24945 }
24946 {
24947 PyThreadState* __tstate = wxPyBeginAllowThreads();
24948 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24949 wxPyEndAllowThreads(__tstate);
24950 if (PyErr_Occurred()) SWIG_fail;
24951 }
24952 resultobj = SWIG_From_int(static_cast< int >(result));
24953 return resultobj;
24954 fail:
24955 return NULL;
24956 }
24957
24958
24959 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24960 PyObject *resultobj = 0;
24961 wxImageList *arg1 = (wxImageList *) 0 ;
24962 wxBitmap *arg2 = 0 ;
24963 wxColour *arg3 = 0 ;
24964 int result;
24965 void *argp1 = 0 ;
24966 int res1 = 0 ;
24967 void *argp2 = 0 ;
24968 int res2 = 0 ;
24969 wxColour temp3 ;
24970 PyObject * obj0 = 0 ;
24971 PyObject * obj1 = 0 ;
24972 PyObject * obj2 = 0 ;
24973 char * kwnames[] = {
24974 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24975 };
24976
24977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24979 if (!SWIG_IsOK(res1)) {
24980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24981 }
24982 arg1 = reinterpret_cast< wxImageList * >(argp1);
24983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24984 if (!SWIG_IsOK(res2)) {
24985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24986 }
24987 if (!argp2) {
24988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24989 }
24990 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24991 {
24992 arg3 = &temp3;
24993 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24994 }
24995 {
24996 PyThreadState* __tstate = wxPyBeginAllowThreads();
24997 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24998 wxPyEndAllowThreads(__tstate);
24999 if (PyErr_Occurred()) SWIG_fail;
25000 }
25001 resultobj = SWIG_From_int(static_cast< int >(result));
25002 return resultobj;
25003 fail:
25004 return NULL;
25005 }
25006
25007
25008 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25009 PyObject *resultobj = 0;
25010 wxImageList *arg1 = (wxImageList *) 0 ;
25011 wxIcon *arg2 = 0 ;
25012 int result;
25013 void *argp1 = 0 ;
25014 int res1 = 0 ;
25015 void *argp2 = 0 ;
25016 int res2 = 0 ;
25017 PyObject * obj0 = 0 ;
25018 PyObject * obj1 = 0 ;
25019 char * kwnames[] = {
25020 (char *) "self",(char *) "icon", NULL
25021 };
25022
25023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
25024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25025 if (!SWIG_IsOK(res1)) {
25026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
25027 }
25028 arg1 = reinterpret_cast< wxImageList * >(argp1);
25029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
25030 if (!SWIG_IsOK(res2)) {
25031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25032 }
25033 if (!argp2) {
25034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25035 }
25036 arg2 = reinterpret_cast< wxIcon * >(argp2);
25037 {
25038 PyThreadState* __tstate = wxPyBeginAllowThreads();
25039 result = (int)(arg1)->Add((wxIcon const &)*arg2);
25040 wxPyEndAllowThreads(__tstate);
25041 if (PyErr_Occurred()) SWIG_fail;
25042 }
25043 resultobj = SWIG_From_int(static_cast< int >(result));
25044 return resultobj;
25045 fail:
25046 return NULL;
25047 }
25048
25049
25050 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25051 PyObject *resultobj = 0;
25052 wxImageList *arg1 = (wxImageList *) 0 ;
25053 int arg2 ;
25054 SwigValueWrapper<wxBitmap > result;
25055 void *argp1 = 0 ;
25056 int res1 = 0 ;
25057 int val2 ;
25058 int ecode2 = 0 ;
25059 PyObject * obj0 = 0 ;
25060 PyObject * obj1 = 0 ;
25061 char * kwnames[] = {
25062 (char *) "self",(char *) "index", NULL
25063 };
25064
25065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
25066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25067 if (!SWIG_IsOK(res1)) {
25068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
25069 }
25070 arg1 = reinterpret_cast< wxImageList * >(argp1);
25071 ecode2 = SWIG_AsVal_int(obj1, &val2);
25072 if (!SWIG_IsOK(ecode2)) {
25073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
25074 }
25075 arg2 = static_cast< int >(val2);
25076 {
25077 PyThreadState* __tstate = wxPyBeginAllowThreads();
25078 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
25079 wxPyEndAllowThreads(__tstate);
25080 if (PyErr_Occurred()) SWIG_fail;
25081 }
25082 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
25083 return resultobj;
25084 fail:
25085 return NULL;
25086 }
25087
25088
25089 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25090 PyObject *resultobj = 0;
25091 wxImageList *arg1 = (wxImageList *) 0 ;
25092 int arg2 ;
25093 wxIcon result;
25094 void *argp1 = 0 ;
25095 int res1 = 0 ;
25096 int val2 ;
25097 int ecode2 = 0 ;
25098 PyObject * obj0 = 0 ;
25099 PyObject * obj1 = 0 ;
25100 char * kwnames[] = {
25101 (char *) "self",(char *) "index", NULL
25102 };
25103
25104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
25105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25106 if (!SWIG_IsOK(res1)) {
25107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
25108 }
25109 arg1 = reinterpret_cast< wxImageList * >(argp1);
25110 ecode2 = SWIG_AsVal_int(obj1, &val2);
25111 if (!SWIG_IsOK(ecode2)) {
25112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
25113 }
25114 arg2 = static_cast< int >(val2);
25115 {
25116 PyThreadState* __tstate = wxPyBeginAllowThreads();
25117 result = ((wxImageList const *)arg1)->GetIcon(arg2);
25118 wxPyEndAllowThreads(__tstate);
25119 if (PyErr_Occurred()) SWIG_fail;
25120 }
25121 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
25122 return resultobj;
25123 fail:
25124 return NULL;
25125 }
25126
25127
25128 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25129 PyObject *resultobj = 0;
25130 wxImageList *arg1 = (wxImageList *) 0 ;
25131 int arg2 ;
25132 wxBitmap *arg3 = 0 ;
25133 wxBitmap const &arg4_defvalue = wxNullBitmap ;
25134 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
25135 bool result;
25136 void *argp1 = 0 ;
25137 int res1 = 0 ;
25138 int val2 ;
25139 int ecode2 = 0 ;
25140 void *argp3 = 0 ;
25141 int res3 = 0 ;
25142 void *argp4 = 0 ;
25143 int res4 = 0 ;
25144 PyObject * obj0 = 0 ;
25145 PyObject * obj1 = 0 ;
25146 PyObject * obj2 = 0 ;
25147 PyObject * obj3 = 0 ;
25148 char * kwnames[] = {
25149 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
25150 };
25151
25152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25154 if (!SWIG_IsOK(res1)) {
25155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
25156 }
25157 arg1 = reinterpret_cast< wxImageList * >(argp1);
25158 ecode2 = SWIG_AsVal_int(obj1, &val2);
25159 if (!SWIG_IsOK(ecode2)) {
25160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
25161 }
25162 arg2 = static_cast< int >(val2);
25163 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
25164 if (!SWIG_IsOK(res3)) {
25165 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25166 }
25167 if (!argp3) {
25168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25169 }
25170 arg3 = reinterpret_cast< wxBitmap * >(argp3);
25171 if (obj3) {
25172 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
25173 if (!SWIG_IsOK(res4)) {
25174 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
25175 }
25176 if (!argp4) {
25177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
25178 }
25179 arg4 = reinterpret_cast< wxBitmap * >(argp4);
25180 }
25181 {
25182 PyThreadState* __tstate = wxPyBeginAllowThreads();
25183 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
25184 wxPyEndAllowThreads(__tstate);
25185 if (PyErr_Occurred()) SWIG_fail;
25186 }
25187 {
25188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25189 }
25190 return resultobj;
25191 fail:
25192 return NULL;
25193 }
25194
25195
25196 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25197 PyObject *resultobj = 0;
25198 wxImageList *arg1 = (wxImageList *) 0 ;
25199 int arg2 ;
25200 wxDC *arg3 = 0 ;
25201 int arg4 ;
25202 int arg5 ;
25203 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
25204 bool arg7 = (bool) (bool)false ;
25205 bool result;
25206 void *argp1 = 0 ;
25207 int res1 = 0 ;
25208 int val2 ;
25209 int ecode2 = 0 ;
25210 void *argp3 = 0 ;
25211 int res3 = 0 ;
25212 int val4 ;
25213 int ecode4 = 0 ;
25214 int val5 ;
25215 int ecode5 = 0 ;
25216 int val6 ;
25217 int ecode6 = 0 ;
25218 bool val7 ;
25219 int ecode7 = 0 ;
25220 PyObject * obj0 = 0 ;
25221 PyObject * obj1 = 0 ;
25222 PyObject * obj2 = 0 ;
25223 PyObject * obj3 = 0 ;
25224 PyObject * obj4 = 0 ;
25225 PyObject * obj5 = 0 ;
25226 PyObject * obj6 = 0 ;
25227 char * kwnames[] = {
25228 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
25229 };
25230
25231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25233 if (!SWIG_IsOK(res1)) {
25234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
25235 }
25236 arg1 = reinterpret_cast< wxImageList * >(argp1);
25237 ecode2 = SWIG_AsVal_int(obj1, &val2);
25238 if (!SWIG_IsOK(ecode2)) {
25239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
25240 }
25241 arg2 = static_cast< int >(val2);
25242 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25243 if (!SWIG_IsOK(res3)) {
25244 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
25245 }
25246 if (!argp3) {
25247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
25248 }
25249 arg3 = reinterpret_cast< wxDC * >(argp3);
25250 ecode4 = SWIG_AsVal_int(obj3, &val4);
25251 if (!SWIG_IsOK(ecode4)) {
25252 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
25253 }
25254 arg4 = static_cast< int >(val4);
25255 ecode5 = SWIG_AsVal_int(obj4, &val5);
25256 if (!SWIG_IsOK(ecode5)) {
25257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
25258 }
25259 arg5 = static_cast< int >(val5);
25260 if (obj5) {
25261 ecode6 = SWIG_AsVal_int(obj5, &val6);
25262 if (!SWIG_IsOK(ecode6)) {
25263 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
25264 }
25265 arg6 = static_cast< int >(val6);
25266 }
25267 if (obj6) {
25268 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25269 if (!SWIG_IsOK(ecode7)) {
25270 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
25271 }
25272 arg7 = static_cast< bool >(val7);
25273 }
25274 {
25275 PyThreadState* __tstate = wxPyBeginAllowThreads();
25276 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
25277 wxPyEndAllowThreads(__tstate);
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
25280 {
25281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25282 }
25283 return resultobj;
25284 fail:
25285 return NULL;
25286 }
25287
25288
25289 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25290 PyObject *resultobj = 0;
25291 wxImageList *arg1 = (wxImageList *) 0 ;
25292 int result;
25293 void *argp1 = 0 ;
25294 int res1 = 0 ;
25295 PyObject *swig_obj[1] ;
25296
25297 if (!args) SWIG_fail;
25298 swig_obj[0] = args;
25299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25300 if (!SWIG_IsOK(res1)) {
25301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
25302 }
25303 arg1 = reinterpret_cast< wxImageList * >(argp1);
25304 {
25305 PyThreadState* __tstate = wxPyBeginAllowThreads();
25306 result = (int)(arg1)->GetImageCount();
25307 wxPyEndAllowThreads(__tstate);
25308 if (PyErr_Occurred()) SWIG_fail;
25309 }
25310 resultobj = SWIG_From_int(static_cast< int >(result));
25311 return resultobj;
25312 fail:
25313 return NULL;
25314 }
25315
25316
25317 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj = 0;
25319 wxImageList *arg1 = (wxImageList *) 0 ;
25320 int arg2 ;
25321 bool result;
25322 void *argp1 = 0 ;
25323 int res1 = 0 ;
25324 int val2 ;
25325 int ecode2 = 0 ;
25326 PyObject * obj0 = 0 ;
25327 PyObject * obj1 = 0 ;
25328 char * kwnames[] = {
25329 (char *) "self",(char *) "index", NULL
25330 };
25331
25332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
25333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25334 if (!SWIG_IsOK(res1)) {
25335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
25336 }
25337 arg1 = reinterpret_cast< wxImageList * >(argp1);
25338 ecode2 = SWIG_AsVal_int(obj1, &val2);
25339 if (!SWIG_IsOK(ecode2)) {
25340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
25341 }
25342 arg2 = static_cast< int >(val2);
25343 {
25344 PyThreadState* __tstate = wxPyBeginAllowThreads();
25345 result = (bool)(arg1)->Remove(arg2);
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 {
25350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25351 }
25352 return resultobj;
25353 fail:
25354 return NULL;
25355 }
25356
25357
25358 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25359 PyObject *resultobj = 0;
25360 wxImageList *arg1 = (wxImageList *) 0 ;
25361 bool result;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 PyObject *swig_obj[1] ;
25365
25366 if (!args) SWIG_fail;
25367 swig_obj[0] = args;
25368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25369 if (!SWIG_IsOK(res1)) {
25370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
25371 }
25372 arg1 = reinterpret_cast< wxImageList * >(argp1);
25373 {
25374 PyThreadState* __tstate = wxPyBeginAllowThreads();
25375 result = (bool)(arg1)->RemoveAll();
25376 wxPyEndAllowThreads(__tstate);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 {
25380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25381 }
25382 return resultobj;
25383 fail:
25384 return NULL;
25385 }
25386
25387
25388 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25389 PyObject *resultobj = 0;
25390 wxImageList *arg1 = (wxImageList *) 0 ;
25391 int arg2 ;
25392 int *arg3 = 0 ;
25393 int *arg4 = 0 ;
25394 void *argp1 = 0 ;
25395 int res1 = 0 ;
25396 int val2 ;
25397 int ecode2 = 0 ;
25398 int temp3 ;
25399 int res3 = SWIG_TMPOBJ ;
25400 int temp4 ;
25401 int res4 = SWIG_TMPOBJ ;
25402 PyObject * obj0 = 0 ;
25403 PyObject * obj1 = 0 ;
25404 char * kwnames[] = {
25405 (char *) "self",(char *) "index", NULL
25406 };
25407
25408 arg3 = &temp3;
25409 arg4 = &temp4;
25410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
25411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25412 if (!SWIG_IsOK(res1)) {
25413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
25414 }
25415 arg1 = reinterpret_cast< wxImageList * >(argp1);
25416 ecode2 = SWIG_AsVal_int(obj1, &val2);
25417 if (!SWIG_IsOK(ecode2)) {
25418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
25419 }
25420 arg2 = static_cast< int >(val2);
25421 {
25422 PyThreadState* __tstate = wxPyBeginAllowThreads();
25423 (arg1)->GetSize(arg2,*arg3,*arg4);
25424 wxPyEndAllowThreads(__tstate);
25425 if (PyErr_Occurred()) SWIG_fail;
25426 }
25427 resultobj = SWIG_Py_Void();
25428 if (SWIG_IsTmpObj(res3)) {
25429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
25430 } else {
25431 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
25433 }
25434 if (SWIG_IsTmpObj(res4)) {
25435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
25436 } else {
25437 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
25439 }
25440 return resultobj;
25441 fail:
25442 return NULL;
25443 }
25444
25445
25446 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25447 PyObject *obj;
25448 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25449 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
25450 return SWIG_Py_Void();
25451 }
25452
25453 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25454 return SWIG_Python_InitShadowInstance(args);
25455 }
25456
25457 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25458 PyObject *resultobj = 0;
25459 wxStockGDI *result = 0 ;
25460
25461 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
25462 {
25463 PyThreadState* __tstate = wxPyBeginAllowThreads();
25464 result = (wxStockGDI *)new wxStockGDI();
25465 wxPyEndAllowThreads(__tstate);
25466 if (PyErr_Occurred()) SWIG_fail;
25467 }
25468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
25469 return resultobj;
25470 fail:
25471 return NULL;
25472 }
25473
25474
25475 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25476 PyObject *resultobj = 0;
25477 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25478 void *argp1 = 0 ;
25479 int res1 = 0 ;
25480 PyObject *swig_obj[1] ;
25481
25482 if (!args) SWIG_fail;
25483 swig_obj[0] = args;
25484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
25485 if (!SWIG_IsOK(res1)) {
25486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25487 }
25488 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25489 {
25490 PyThreadState* __tstate = wxPyBeginAllowThreads();
25491 delete arg1;
25492
25493 wxPyEndAllowThreads(__tstate);
25494 if (PyErr_Occurred()) SWIG_fail;
25495 }
25496 resultobj = SWIG_Py_Void();
25497 return resultobj;
25498 fail:
25499 return NULL;
25500 }
25501
25502
25503 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25504 PyObject *resultobj = 0;
25505
25506 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
25507 {
25508 PyThreadState* __tstate = wxPyBeginAllowThreads();
25509 wxStockGDI::DeleteAll();
25510 wxPyEndAllowThreads(__tstate);
25511 if (PyErr_Occurred()) SWIG_fail;
25512 }
25513 resultobj = SWIG_Py_Void();
25514 return resultobj;
25515 fail:
25516 return NULL;
25517 }
25518
25519
25520 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25521 PyObject *resultobj = 0;
25522 wxStockGDI *result = 0 ;
25523
25524 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
25525 {
25526 PyThreadState* __tstate = wxPyBeginAllowThreads();
25527 {
25528 wxStockGDI &_result_ref = wxStockGDI::instance();
25529 result = (wxStockGDI *) &_result_ref;
25530 }
25531 wxPyEndAllowThreads(__tstate);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
25535 return resultobj;
25536 fail:
25537 return NULL;
25538 }
25539
25540
25541 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25542 PyObject *resultobj = 0;
25543 wxStockGDI::Item arg1 ;
25544 wxBrush *result = 0 ;
25545 int val1 ;
25546 int ecode1 = 0 ;
25547 PyObject * obj0 = 0 ;
25548 char * kwnames[] = {
25549 (char *) "item", NULL
25550 };
25551
25552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
25553 ecode1 = SWIG_AsVal_int(obj0, &val1);
25554 if (!SWIG_IsOK(ecode1)) {
25555 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25556 }
25557 arg1 = static_cast< wxStockGDI::Item >(val1);
25558 {
25559 PyThreadState* __tstate = wxPyBeginAllowThreads();
25560 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
25561 wxPyEndAllowThreads(__tstate);
25562 if (PyErr_Occurred()) SWIG_fail;
25563 }
25564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25565 return resultobj;
25566 fail:
25567 return NULL;
25568 }
25569
25570
25571 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25572 PyObject *resultobj = 0;
25573 wxStockGDI::Item arg1 ;
25574 wxColour *result = 0 ;
25575 int val1 ;
25576 int ecode1 = 0 ;
25577 PyObject * obj0 = 0 ;
25578 char * kwnames[] = {
25579 (char *) "item", NULL
25580 };
25581
25582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
25583 ecode1 = SWIG_AsVal_int(obj0, &val1);
25584 if (!SWIG_IsOK(ecode1)) {
25585 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25586 }
25587 arg1 = static_cast< wxStockGDI::Item >(val1);
25588 {
25589 PyThreadState* __tstate = wxPyBeginAllowThreads();
25590 result = (wxColour *)wxStockGDI::GetColour(arg1);
25591 wxPyEndAllowThreads(__tstate);
25592 if (PyErr_Occurred()) SWIG_fail;
25593 }
25594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
25595 return resultobj;
25596 fail:
25597 return NULL;
25598 }
25599
25600
25601 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25602 PyObject *resultobj = 0;
25603 wxStockGDI::Item arg1 ;
25604 wxCursor *result = 0 ;
25605 int val1 ;
25606 int ecode1 = 0 ;
25607 PyObject * obj0 = 0 ;
25608 char * kwnames[] = {
25609 (char *) "item", NULL
25610 };
25611
25612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
25613 ecode1 = SWIG_AsVal_int(obj0, &val1);
25614 if (!SWIG_IsOK(ecode1)) {
25615 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25616 }
25617 arg1 = static_cast< wxStockGDI::Item >(val1);
25618 {
25619 PyThreadState* __tstate = wxPyBeginAllowThreads();
25620 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
25621 wxPyEndAllowThreads(__tstate);
25622 if (PyErr_Occurred()) SWIG_fail;
25623 }
25624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
25625 return resultobj;
25626 fail:
25627 return NULL;
25628 }
25629
25630
25631 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25632 PyObject *resultobj = 0;
25633 wxStockGDI::Item arg1 ;
25634 wxPen *result = 0 ;
25635 int val1 ;
25636 int ecode1 = 0 ;
25637 PyObject * obj0 = 0 ;
25638 char * kwnames[] = {
25639 (char *) "item", NULL
25640 };
25641
25642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
25643 ecode1 = SWIG_AsVal_int(obj0, &val1);
25644 if (!SWIG_IsOK(ecode1)) {
25645 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25646 }
25647 arg1 = static_cast< wxStockGDI::Item >(val1);
25648 {
25649 PyThreadState* __tstate = wxPyBeginAllowThreads();
25650 result = (wxPen *)wxStockGDI::GetPen(arg1);
25651 wxPyEndAllowThreads(__tstate);
25652 if (PyErr_Occurred()) SWIG_fail;
25653 }
25654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25655 return resultobj;
25656 fail:
25657 return NULL;
25658 }
25659
25660
25661 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25662 PyObject *resultobj = 0;
25663 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25664 wxStockGDI::Item arg2 ;
25665 wxFont *result = 0 ;
25666 void *argp1 = 0 ;
25667 int res1 = 0 ;
25668 int val2 ;
25669 int ecode2 = 0 ;
25670 PyObject * obj0 = 0 ;
25671 PyObject * obj1 = 0 ;
25672 char * kwnames[] = {
25673 (char *) "self",(char *) "item", NULL
25674 };
25675
25676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
25678 if (!SWIG_IsOK(res1)) {
25679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25680 }
25681 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25682 ecode2 = SWIG_AsVal_int(obj1, &val2);
25683 if (!SWIG_IsOK(ecode2)) {
25684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
25685 }
25686 arg2 = static_cast< wxStockGDI::Item >(val2);
25687 {
25688 PyThreadState* __tstate = wxPyBeginAllowThreads();
25689 result = (wxFont *)(arg1)->GetFont(arg2);
25690 wxPyEndAllowThreads(__tstate);
25691 if (PyErr_Occurred()) SWIG_fail;
25692 }
25693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25694 return resultobj;
25695 fail:
25696 return NULL;
25697 }
25698
25699
25700 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25701 PyObject *obj;
25702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25703 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
25704 return SWIG_Py_Void();
25705 }
25706
25707 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25708 return SWIG_Python_InitShadowInstance(args);
25709 }
25710
25711 SWIGINTERN int NullBitmap_set(PyObject *) {
25712 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
25713 return 1;
25714 }
25715
25716
25717 SWIGINTERN PyObject *NullBitmap_get(void) {
25718 PyObject *pyobj = 0;
25719
25720 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
25721 return pyobj;
25722 }
25723
25724
25725 SWIGINTERN int NullIcon_set(PyObject *) {
25726 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
25727 return 1;
25728 }
25729
25730
25731 SWIGINTERN PyObject *NullIcon_get(void) {
25732 PyObject *pyobj = 0;
25733
25734 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
25735 return pyobj;
25736 }
25737
25738
25739 SWIGINTERN int NullCursor_set(PyObject *) {
25740 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
25741 return 1;
25742 }
25743
25744
25745 SWIGINTERN PyObject *NullCursor_get(void) {
25746 PyObject *pyobj = 0;
25747
25748 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
25749 return pyobj;
25750 }
25751
25752
25753 SWIGINTERN int NullPen_set(PyObject *) {
25754 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
25755 return 1;
25756 }
25757
25758
25759 SWIGINTERN PyObject *NullPen_get(void) {
25760 PyObject *pyobj = 0;
25761
25762 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
25763 return pyobj;
25764 }
25765
25766
25767 SWIGINTERN int NullBrush_set(PyObject *) {
25768 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
25769 return 1;
25770 }
25771
25772
25773 SWIGINTERN PyObject *NullBrush_get(void) {
25774 PyObject *pyobj = 0;
25775
25776 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
25777 return pyobj;
25778 }
25779
25780
25781 SWIGINTERN int NullPalette_set(PyObject *) {
25782 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
25783 return 1;
25784 }
25785
25786
25787 SWIGINTERN PyObject *NullPalette_get(void) {
25788 PyObject *pyobj = 0;
25789
25790 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
25791 return pyobj;
25792 }
25793
25794
25795 SWIGINTERN int NullFont_set(PyObject *) {
25796 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
25797 return 1;
25798 }
25799
25800
25801 SWIGINTERN PyObject *NullFont_get(void) {
25802 PyObject *pyobj = 0;
25803
25804 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
25805 return pyobj;
25806 }
25807
25808
25809 SWIGINTERN int NullColour_set(PyObject *) {
25810 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
25811 return 1;
25812 }
25813
25814
25815 SWIGINTERN PyObject *NullColour_get(void) {
25816 PyObject *pyobj = 0;
25817
25818 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
25819 return pyobj;
25820 }
25821
25822
25823 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25824 PyObject *resultobj = 0;
25825 wxGDIObjListBase *result = 0 ;
25826
25827 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
25828 {
25829 PyThreadState* __tstate = wxPyBeginAllowThreads();
25830 result = (wxGDIObjListBase *)new wxGDIObjListBase();
25831 wxPyEndAllowThreads(__tstate);
25832 if (PyErr_Occurred()) SWIG_fail;
25833 }
25834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
25835 return resultobj;
25836 fail:
25837 return NULL;
25838 }
25839
25840
25841 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25842 PyObject *resultobj = 0;
25843 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
25844 void *argp1 = 0 ;
25845 int res1 = 0 ;
25846 PyObject *swig_obj[1] ;
25847
25848 if (!args) SWIG_fail;
25849 swig_obj[0] = args;
25850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
25851 if (!SWIG_IsOK(res1)) {
25852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
25853 }
25854 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
25855 {
25856 PyThreadState* __tstate = wxPyBeginAllowThreads();
25857 delete arg1;
25858
25859 wxPyEndAllowThreads(__tstate);
25860 if (PyErr_Occurred()) SWIG_fail;
25861 }
25862 resultobj = SWIG_Py_Void();
25863 return resultobj;
25864 fail:
25865 return NULL;
25866 }
25867
25868
25869 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25870 PyObject *obj;
25871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25872 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25873 return SWIG_Py_Void();
25874 }
25875
25876 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25877 return SWIG_Python_InitShadowInstance(args);
25878 }
25879
25880 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25881 PyObject *resultobj = 0;
25882 wxPenList *arg1 = (wxPenList *) 0 ;
25883 wxColour *arg2 = 0 ;
25884 int arg3 ;
25885 int arg4 ;
25886 wxPen *result = 0 ;
25887 void *argp1 = 0 ;
25888 int res1 = 0 ;
25889 wxColour temp2 ;
25890 int val3 ;
25891 int ecode3 = 0 ;
25892 int val4 ;
25893 int ecode4 = 0 ;
25894 PyObject * obj0 = 0 ;
25895 PyObject * obj1 = 0 ;
25896 PyObject * obj2 = 0 ;
25897 PyObject * obj3 = 0 ;
25898 char * kwnames[] = {
25899 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25900 };
25901
25902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25904 if (!SWIG_IsOK(res1)) {
25905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25906 }
25907 arg1 = reinterpret_cast< wxPenList * >(argp1);
25908 {
25909 arg2 = &temp2;
25910 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25911 }
25912 ecode3 = SWIG_AsVal_int(obj2, &val3);
25913 if (!SWIG_IsOK(ecode3)) {
25914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25915 }
25916 arg3 = static_cast< int >(val3);
25917 ecode4 = SWIG_AsVal_int(obj3, &val4);
25918 if (!SWIG_IsOK(ecode4)) {
25919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25920 }
25921 arg4 = static_cast< int >(val4);
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25929 return resultobj;
25930 fail:
25931 return NULL;
25932 }
25933
25934
25935 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25936 PyObject *resultobj = 0;
25937 wxPenList *arg1 = (wxPenList *) 0 ;
25938 wxPen *arg2 = (wxPen *) 0 ;
25939 void *argp1 = 0 ;
25940 int res1 = 0 ;
25941 void *argp2 = 0 ;
25942 int res2 = 0 ;
25943 PyObject * obj0 = 0 ;
25944 PyObject * obj1 = 0 ;
25945 char * kwnames[] = {
25946 (char *) "self",(char *) "pen", NULL
25947 };
25948
25949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
25950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25951 if (!SWIG_IsOK(res1)) {
25952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
25953 }
25954 arg1 = reinterpret_cast< wxPenList * >(argp1);
25955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25956 if (!SWIG_IsOK(res2)) {
25957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
25958 }
25959 arg2 = reinterpret_cast< wxPen * >(argp2);
25960 {
25961 PyThreadState* __tstate = wxPyBeginAllowThreads();
25962 (arg1)->AddPen(arg2);
25963 wxPyEndAllowThreads(__tstate);
25964 if (PyErr_Occurred()) SWIG_fail;
25965 }
25966 resultobj = SWIG_Py_Void();
25967 return resultobj;
25968 fail:
25969 return NULL;
25970 }
25971
25972
25973 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25974 PyObject *resultobj = 0;
25975 wxPenList *arg1 = (wxPenList *) 0 ;
25976 wxPen *arg2 = (wxPen *) 0 ;
25977 void *argp1 = 0 ;
25978 int res1 = 0 ;
25979 void *argp2 = 0 ;
25980 int res2 = 0 ;
25981 PyObject * obj0 = 0 ;
25982 PyObject * obj1 = 0 ;
25983 char * kwnames[] = {
25984 (char *) "self",(char *) "pen", NULL
25985 };
25986
25987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25989 if (!SWIG_IsOK(res1)) {
25990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25991 }
25992 arg1 = reinterpret_cast< wxPenList * >(argp1);
25993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25994 if (!SWIG_IsOK(res2)) {
25995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25996 }
25997 arg2 = reinterpret_cast< wxPen * >(argp2);
25998 {
25999 PyThreadState* __tstate = wxPyBeginAllowThreads();
26000 (arg1)->RemovePen(arg2);
26001 wxPyEndAllowThreads(__tstate);
26002 if (PyErr_Occurred()) SWIG_fail;
26003 }
26004 resultobj = SWIG_Py_Void();
26005 return resultobj;
26006 fail:
26007 return NULL;
26008 }
26009
26010
26011 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26012 PyObject *obj;
26013 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26014 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
26015 return SWIG_Py_Void();
26016 }
26017
26018 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26019 PyObject *resultobj = 0;
26020 wxBrushList *arg1 = (wxBrushList *) 0 ;
26021 wxColour *arg2 = 0 ;
26022 int arg3 = (int) wxSOLID ;
26023 wxBrush *result = 0 ;
26024 void *argp1 = 0 ;
26025 int res1 = 0 ;
26026 wxColour temp2 ;
26027 int val3 ;
26028 int ecode3 = 0 ;
26029 PyObject * obj0 = 0 ;
26030 PyObject * obj1 = 0 ;
26031 PyObject * obj2 = 0 ;
26032 char * kwnames[] = {
26033 (char *) "self",(char *) "colour",(char *) "style", NULL
26034 };
26035
26036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26038 if (!SWIG_IsOK(res1)) {
26039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26040 }
26041 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26042 {
26043 arg2 = &temp2;
26044 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26045 }
26046 if (obj2) {
26047 ecode3 = SWIG_AsVal_int(obj2, &val3);
26048 if (!SWIG_IsOK(ecode3)) {
26049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
26050 }
26051 arg3 = static_cast< int >(val3);
26052 }
26053 {
26054 PyThreadState* __tstate = wxPyBeginAllowThreads();
26055 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
26056 wxPyEndAllowThreads(__tstate);
26057 if (PyErr_Occurred()) SWIG_fail;
26058 }
26059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
26060 return resultobj;
26061 fail:
26062 return NULL;
26063 }
26064
26065
26066 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26067 PyObject *resultobj = 0;
26068 wxBrushList *arg1 = (wxBrushList *) 0 ;
26069 wxBrush *arg2 = (wxBrush *) 0 ;
26070 void *argp1 = 0 ;
26071 int res1 = 0 ;
26072 void *argp2 = 0 ;
26073 int res2 = 0 ;
26074 PyObject * obj0 = 0 ;
26075 PyObject * obj1 = 0 ;
26076 char * kwnames[] = {
26077 (char *) "self",(char *) "brush", NULL
26078 };
26079
26080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26082 if (!SWIG_IsOK(res1)) {
26083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26084 }
26085 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26086 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
26087 if (!SWIG_IsOK(res2)) {
26088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
26089 }
26090 arg2 = reinterpret_cast< wxBrush * >(argp2);
26091 {
26092 PyThreadState* __tstate = wxPyBeginAllowThreads();
26093 (arg1)->AddBrush(arg2);
26094 wxPyEndAllowThreads(__tstate);
26095 if (PyErr_Occurred()) SWIG_fail;
26096 }
26097 resultobj = SWIG_Py_Void();
26098 return resultobj;
26099 fail:
26100 return NULL;
26101 }
26102
26103
26104 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26105 PyObject *resultobj = 0;
26106 wxBrushList *arg1 = (wxBrushList *) 0 ;
26107 wxBrush *arg2 = (wxBrush *) 0 ;
26108 void *argp1 = 0 ;
26109 int res1 = 0 ;
26110 void *argp2 = 0 ;
26111 int res2 = 0 ;
26112 PyObject * obj0 = 0 ;
26113 PyObject * obj1 = 0 ;
26114 char * kwnames[] = {
26115 (char *) "self",(char *) "brush", NULL
26116 };
26117
26118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26120 if (!SWIG_IsOK(res1)) {
26121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26122 }
26123 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
26125 if (!SWIG_IsOK(res2)) {
26126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
26127 }
26128 arg2 = reinterpret_cast< wxBrush * >(argp2);
26129 {
26130 PyThreadState* __tstate = wxPyBeginAllowThreads();
26131 (arg1)->RemoveBrush(arg2);
26132 wxPyEndAllowThreads(__tstate);
26133 if (PyErr_Occurred()) SWIG_fail;
26134 }
26135 resultobj = SWIG_Py_Void();
26136 return resultobj;
26137 fail:
26138 return NULL;
26139 }
26140
26141
26142 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26143 PyObject *obj;
26144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26145 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
26146 return SWIG_Py_Void();
26147 }
26148
26149 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26150 PyObject *resultobj = 0;
26151 wxFontList *arg1 = (wxFontList *) 0 ;
26152 int arg2 ;
26153 int arg3 ;
26154 int arg4 ;
26155 int arg5 ;
26156 bool arg6 = (bool) false ;
26157 wxString const &arg7_defvalue = wxPyEmptyString ;
26158 wxString *arg7 = (wxString *) &arg7_defvalue ;
26159 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
26160 wxFont *result = 0 ;
26161 void *argp1 = 0 ;
26162 int res1 = 0 ;
26163 int val2 ;
26164 int ecode2 = 0 ;
26165 int val3 ;
26166 int ecode3 = 0 ;
26167 int val4 ;
26168 int ecode4 = 0 ;
26169 int val5 ;
26170 int ecode5 = 0 ;
26171 bool val6 ;
26172 int ecode6 = 0 ;
26173 bool temp7 = false ;
26174 int val8 ;
26175 int ecode8 = 0 ;
26176 PyObject * obj0 = 0 ;
26177 PyObject * obj1 = 0 ;
26178 PyObject * obj2 = 0 ;
26179 PyObject * obj3 = 0 ;
26180 PyObject * obj4 = 0 ;
26181 PyObject * obj5 = 0 ;
26182 PyObject * obj6 = 0 ;
26183 PyObject * obj7 = 0 ;
26184 char * kwnames[] = {
26185 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
26186 };
26187
26188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26190 if (!SWIG_IsOK(res1)) {
26191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26192 }
26193 arg1 = reinterpret_cast< wxFontList * >(argp1);
26194 ecode2 = SWIG_AsVal_int(obj1, &val2);
26195 if (!SWIG_IsOK(ecode2)) {
26196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
26197 }
26198 arg2 = static_cast< int >(val2);
26199 ecode3 = SWIG_AsVal_int(obj2, &val3);
26200 if (!SWIG_IsOK(ecode3)) {
26201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
26202 }
26203 arg3 = static_cast< int >(val3);
26204 ecode4 = SWIG_AsVal_int(obj3, &val4);
26205 if (!SWIG_IsOK(ecode4)) {
26206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
26207 }
26208 arg4 = static_cast< int >(val4);
26209 ecode5 = SWIG_AsVal_int(obj4, &val5);
26210 if (!SWIG_IsOK(ecode5)) {
26211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
26212 }
26213 arg5 = static_cast< int >(val5);
26214 if (obj5) {
26215 ecode6 = SWIG_AsVal_bool(obj5, &val6);
26216 if (!SWIG_IsOK(ecode6)) {
26217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
26218 }
26219 arg6 = static_cast< bool >(val6);
26220 }
26221 if (obj6) {
26222 {
26223 arg7 = wxString_in_helper(obj6);
26224 if (arg7 == NULL) SWIG_fail;
26225 temp7 = true;
26226 }
26227 }
26228 if (obj7) {
26229 ecode8 = SWIG_AsVal_int(obj7, &val8);
26230 if (!SWIG_IsOK(ecode8)) {
26231 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
26232 }
26233 arg8 = static_cast< wxFontEncoding >(val8);
26234 }
26235 {
26236 PyThreadState* __tstate = wxPyBeginAllowThreads();
26237 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
26238 wxPyEndAllowThreads(__tstate);
26239 if (PyErr_Occurred()) SWIG_fail;
26240 }
26241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
26242 {
26243 if (temp7)
26244 delete arg7;
26245 }
26246 return resultobj;
26247 fail:
26248 {
26249 if (temp7)
26250 delete arg7;
26251 }
26252 return NULL;
26253 }
26254
26255
26256 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26257 PyObject *resultobj = 0;
26258 wxFontList *arg1 = (wxFontList *) 0 ;
26259 wxFont *arg2 = (wxFont *) 0 ;
26260 void *argp1 = 0 ;
26261 int res1 = 0 ;
26262 void *argp2 = 0 ;
26263 int res2 = 0 ;
26264 PyObject * obj0 = 0 ;
26265 PyObject * obj1 = 0 ;
26266 char * kwnames[] = {
26267 (char *) "self",(char *) "font", NULL
26268 };
26269
26270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
26271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26272 if (!SWIG_IsOK(res1)) {
26273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26274 }
26275 arg1 = reinterpret_cast< wxFontList * >(argp1);
26276 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26277 if (!SWIG_IsOK(res2)) {
26278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
26279 }
26280 arg2 = reinterpret_cast< wxFont * >(argp2);
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 (arg1)->AddFont(arg2);
26284 wxPyEndAllowThreads(__tstate);
26285 if (PyErr_Occurred()) SWIG_fail;
26286 }
26287 resultobj = SWIG_Py_Void();
26288 return resultobj;
26289 fail:
26290 return NULL;
26291 }
26292
26293
26294 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26295 PyObject *resultobj = 0;
26296 wxFontList *arg1 = (wxFontList *) 0 ;
26297 wxFont *arg2 = (wxFont *) 0 ;
26298 void *argp1 = 0 ;
26299 int res1 = 0 ;
26300 void *argp2 = 0 ;
26301 int res2 = 0 ;
26302 PyObject * obj0 = 0 ;
26303 PyObject * obj1 = 0 ;
26304 char * kwnames[] = {
26305 (char *) "self",(char *) "font", NULL
26306 };
26307
26308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
26309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26310 if (!SWIG_IsOK(res1)) {
26311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26312 }
26313 arg1 = reinterpret_cast< wxFontList * >(argp1);
26314 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26315 if (!SWIG_IsOK(res2)) {
26316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
26317 }
26318 arg2 = reinterpret_cast< wxFont * >(argp2);
26319 {
26320 PyThreadState* __tstate = wxPyBeginAllowThreads();
26321 (arg1)->RemoveFont(arg2);
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 resultobj = SWIG_Py_Void();
26326 return resultobj;
26327 fail:
26328 return NULL;
26329 }
26330
26331
26332 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26333 PyObject *obj;
26334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26335 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
26336 return SWIG_Py_Void();
26337 }
26338
26339 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26340 PyObject *resultobj = 0;
26341 wxColourDatabase *result = 0 ;
26342
26343 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
26344 {
26345 if (!wxPyCheckForApp()) SWIG_fail;
26346 PyThreadState* __tstate = wxPyBeginAllowThreads();
26347 result = (wxColourDatabase *)new wxColourDatabase();
26348 wxPyEndAllowThreads(__tstate);
26349 if (PyErr_Occurred()) SWIG_fail;
26350 }
26351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
26352 return resultobj;
26353 fail:
26354 return NULL;
26355 }
26356
26357
26358 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26359 PyObject *resultobj = 0;
26360 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26361 void *argp1 = 0 ;
26362 int res1 = 0 ;
26363 PyObject *swig_obj[1] ;
26364
26365 if (!args) SWIG_fail;
26366 swig_obj[0] = args;
26367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
26368 if (!SWIG_IsOK(res1)) {
26369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26370 }
26371 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26372 {
26373 PyThreadState* __tstate = wxPyBeginAllowThreads();
26374 delete arg1;
26375
26376 wxPyEndAllowThreads(__tstate);
26377 if (PyErr_Occurred()) SWIG_fail;
26378 }
26379 resultobj = SWIG_Py_Void();
26380 return resultobj;
26381 fail:
26382 return NULL;
26383 }
26384
26385
26386 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26387 PyObject *resultobj = 0;
26388 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26389 wxString *arg2 = 0 ;
26390 wxColour result;
26391 void *argp1 = 0 ;
26392 int res1 = 0 ;
26393 bool temp2 = false ;
26394 PyObject * obj0 = 0 ;
26395 PyObject * obj1 = 0 ;
26396 char * kwnames[] = {
26397 (char *) "self",(char *) "name", NULL
26398 };
26399
26400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
26401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26402 if (!SWIG_IsOK(res1)) {
26403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
26404 }
26405 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26406 {
26407 arg2 = wxString_in_helper(obj1);
26408 if (arg2 == NULL) SWIG_fail;
26409 temp2 = true;
26410 }
26411 {
26412 PyThreadState* __tstate = wxPyBeginAllowThreads();
26413 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
26414 wxPyEndAllowThreads(__tstate);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26418 {
26419 if (temp2)
26420 delete arg2;
26421 }
26422 return resultobj;
26423 fail:
26424 {
26425 if (temp2)
26426 delete arg2;
26427 }
26428 return NULL;
26429 }
26430
26431
26432 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26433 PyObject *resultobj = 0;
26434 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26435 wxColour *arg2 = 0 ;
26436 wxString result;
26437 void *argp1 = 0 ;
26438 int res1 = 0 ;
26439 wxColour temp2 ;
26440 PyObject * obj0 = 0 ;
26441 PyObject * obj1 = 0 ;
26442 char * kwnames[] = {
26443 (char *) "self",(char *) "colour", NULL
26444 };
26445
26446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
26447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26448 if (!SWIG_IsOK(res1)) {
26449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
26450 }
26451 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26452 {
26453 arg2 = &temp2;
26454 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26455 }
26456 {
26457 PyThreadState* __tstate = wxPyBeginAllowThreads();
26458 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
26459 wxPyEndAllowThreads(__tstate);
26460 if (PyErr_Occurred()) SWIG_fail;
26461 }
26462 {
26463 #if wxUSE_UNICODE
26464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26465 #else
26466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26467 #endif
26468 }
26469 return resultobj;
26470 fail:
26471 return NULL;
26472 }
26473
26474
26475 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26476 PyObject *resultobj = 0;
26477 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26478 wxString *arg2 = 0 ;
26479 wxColour *arg3 = 0 ;
26480 void *argp1 = 0 ;
26481 int res1 = 0 ;
26482 bool temp2 = false ;
26483 wxColour temp3 ;
26484 PyObject * obj0 = 0 ;
26485 PyObject * obj1 = 0 ;
26486 PyObject * obj2 = 0 ;
26487 char * kwnames[] = {
26488 (char *) "self",(char *) "name",(char *) "colour", NULL
26489 };
26490
26491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26493 if (!SWIG_IsOK(res1)) {
26494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26495 }
26496 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26497 {
26498 arg2 = wxString_in_helper(obj1);
26499 if (arg2 == NULL) SWIG_fail;
26500 temp2 = true;
26501 }
26502 {
26503 arg3 = &temp3;
26504 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26505 }
26506 {
26507 PyThreadState* __tstate = wxPyBeginAllowThreads();
26508 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
26509 wxPyEndAllowThreads(__tstate);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_Py_Void();
26513 {
26514 if (temp2)
26515 delete arg2;
26516 }
26517 return resultobj;
26518 fail:
26519 {
26520 if (temp2)
26521 delete arg2;
26522 }
26523 return NULL;
26524 }
26525
26526
26527 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26528 PyObject *resultobj = 0;
26529 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26530 wxString *arg2 = 0 ;
26531 int arg3 ;
26532 int arg4 ;
26533 int arg5 ;
26534 void *argp1 = 0 ;
26535 int res1 = 0 ;
26536 bool temp2 = false ;
26537 int val3 ;
26538 int ecode3 = 0 ;
26539 int val4 ;
26540 int ecode4 = 0 ;
26541 int val5 ;
26542 int ecode5 = 0 ;
26543 PyObject * obj0 = 0 ;
26544 PyObject * obj1 = 0 ;
26545 PyObject * obj2 = 0 ;
26546 PyObject * obj3 = 0 ;
26547 PyObject * obj4 = 0 ;
26548 char * kwnames[] = {
26549 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
26550 };
26551
26552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26554 if (!SWIG_IsOK(res1)) {
26555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26556 }
26557 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26558 {
26559 arg2 = wxString_in_helper(obj1);
26560 if (arg2 == NULL) SWIG_fail;
26561 temp2 = true;
26562 }
26563 ecode3 = SWIG_AsVal_int(obj2, &val3);
26564 if (!SWIG_IsOK(ecode3)) {
26565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
26566 }
26567 arg3 = static_cast< int >(val3);
26568 ecode4 = SWIG_AsVal_int(obj3, &val4);
26569 if (!SWIG_IsOK(ecode4)) {
26570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
26571 }
26572 arg4 = static_cast< int >(val4);
26573 ecode5 = SWIG_AsVal_int(obj4, &val5);
26574 if (!SWIG_IsOK(ecode5)) {
26575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
26576 }
26577 arg5 = static_cast< int >(val5);
26578 {
26579 PyThreadState* __tstate = wxPyBeginAllowThreads();
26580 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
26581 wxPyEndAllowThreads(__tstate);
26582 if (PyErr_Occurred()) SWIG_fail;
26583 }
26584 resultobj = SWIG_Py_Void();
26585 {
26586 if (temp2)
26587 delete arg2;
26588 }
26589 return resultobj;
26590 fail:
26591 {
26592 if (temp2)
26593 delete arg2;
26594 }
26595 return NULL;
26596 }
26597
26598
26599 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26600 PyObject *obj;
26601 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26602 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
26603 return SWIG_Py_Void();
26604 }
26605
26606 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26607 return SWIG_Python_InitShadowInstance(args);
26608 }
26609
26610 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26611 PyObject *resultobj = 0;
26612 wxFontList *result = 0 ;
26613
26614 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
26615 {
26616 PyThreadState* __tstate = wxPyBeginAllowThreads();
26617 result = (wxFontList *)_wxPyInitTheFontList();
26618 wxPyEndAllowThreads(__tstate);
26619 if (PyErr_Occurred()) SWIG_fail;
26620 }
26621 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
26622 return resultobj;
26623 fail:
26624 return NULL;
26625 }
26626
26627
26628 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26629 PyObject *resultobj = 0;
26630 wxPenList *result = 0 ;
26631
26632 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
26633 {
26634 PyThreadState* __tstate = wxPyBeginAllowThreads();
26635 result = (wxPenList *)_wxPyInitThePenList();
26636 wxPyEndAllowThreads(__tstate);
26637 if (PyErr_Occurred()) SWIG_fail;
26638 }
26639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
26640 return resultobj;
26641 fail:
26642 return NULL;
26643 }
26644
26645
26646 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26647 PyObject *resultobj = 0;
26648 wxBrushList *result = 0 ;
26649
26650 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
26651 {
26652 PyThreadState* __tstate = wxPyBeginAllowThreads();
26653 result = (wxBrushList *)_wxPyInitTheBrushList();
26654 wxPyEndAllowThreads(__tstate);
26655 if (PyErr_Occurred()) SWIG_fail;
26656 }
26657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
26658 return resultobj;
26659 fail:
26660 return NULL;
26661 }
26662
26663
26664 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26665 PyObject *resultobj = 0;
26666 wxColourDatabase *result = 0 ;
26667
26668 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
26669 {
26670 PyThreadState* __tstate = wxPyBeginAllowThreads();
26671 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
26672 wxPyEndAllowThreads(__tstate);
26673 if (PyErr_Occurred()) SWIG_fail;
26674 }
26675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26676 return resultobj;
26677 fail:
26678 return NULL;
26679 }
26680
26681
26682 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26683 PyObject *resultobj = 0;
26684 wxEffects *result = 0 ;
26685
26686 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
26687 {
26688 PyThreadState* __tstate = wxPyBeginAllowThreads();
26689 result = (wxEffects *)new wxEffects();
26690 wxPyEndAllowThreads(__tstate);
26691 if (PyErr_Occurred()) SWIG_fail;
26692 }
26693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
26694 return resultobj;
26695 fail:
26696 return NULL;
26697 }
26698
26699
26700 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26701 PyObject *resultobj = 0;
26702 wxEffects *arg1 = (wxEffects *) 0 ;
26703 wxColour result;
26704 void *argp1 = 0 ;
26705 int res1 = 0 ;
26706 PyObject *swig_obj[1] ;
26707
26708 if (!args) SWIG_fail;
26709 swig_obj[0] = args;
26710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26711 if (!SWIG_IsOK(res1)) {
26712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26713 }
26714 arg1 = reinterpret_cast< wxEffects * >(argp1);
26715 {
26716 PyThreadState* __tstate = wxPyBeginAllowThreads();
26717 result = ((wxEffects const *)arg1)->GetHighlightColour();
26718 wxPyEndAllowThreads(__tstate);
26719 if (PyErr_Occurred()) SWIG_fail;
26720 }
26721 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26722 return resultobj;
26723 fail:
26724 return NULL;
26725 }
26726
26727
26728 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26729 PyObject *resultobj = 0;
26730 wxEffects *arg1 = (wxEffects *) 0 ;
26731 wxColour result;
26732 void *argp1 = 0 ;
26733 int res1 = 0 ;
26734 PyObject *swig_obj[1] ;
26735
26736 if (!args) SWIG_fail;
26737 swig_obj[0] = args;
26738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26739 if (!SWIG_IsOK(res1)) {
26740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26741 }
26742 arg1 = reinterpret_cast< wxEffects * >(argp1);
26743 {
26744 PyThreadState* __tstate = wxPyBeginAllowThreads();
26745 result = ((wxEffects const *)arg1)->GetLightShadow();
26746 wxPyEndAllowThreads(__tstate);
26747 if (PyErr_Occurred()) SWIG_fail;
26748 }
26749 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26750 return resultobj;
26751 fail:
26752 return NULL;
26753 }
26754
26755
26756 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26757 PyObject *resultobj = 0;
26758 wxEffects *arg1 = (wxEffects *) 0 ;
26759 wxColour result;
26760 void *argp1 = 0 ;
26761 int res1 = 0 ;
26762 PyObject *swig_obj[1] ;
26763
26764 if (!args) SWIG_fail;
26765 swig_obj[0] = args;
26766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26767 if (!SWIG_IsOK(res1)) {
26768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26769 }
26770 arg1 = reinterpret_cast< wxEffects * >(argp1);
26771 {
26772 PyThreadState* __tstate = wxPyBeginAllowThreads();
26773 result = ((wxEffects const *)arg1)->GetFaceColour();
26774 wxPyEndAllowThreads(__tstate);
26775 if (PyErr_Occurred()) SWIG_fail;
26776 }
26777 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26778 return resultobj;
26779 fail:
26780 return NULL;
26781 }
26782
26783
26784 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26785 PyObject *resultobj = 0;
26786 wxEffects *arg1 = (wxEffects *) 0 ;
26787 wxColour result;
26788 void *argp1 = 0 ;
26789 int res1 = 0 ;
26790 PyObject *swig_obj[1] ;
26791
26792 if (!args) SWIG_fail;
26793 swig_obj[0] = args;
26794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26795 if (!SWIG_IsOK(res1)) {
26796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26797 }
26798 arg1 = reinterpret_cast< wxEffects * >(argp1);
26799 {
26800 PyThreadState* __tstate = wxPyBeginAllowThreads();
26801 result = ((wxEffects const *)arg1)->GetMediumShadow();
26802 wxPyEndAllowThreads(__tstate);
26803 if (PyErr_Occurred()) SWIG_fail;
26804 }
26805 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26806 return resultobj;
26807 fail:
26808 return NULL;
26809 }
26810
26811
26812 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26813 PyObject *resultobj = 0;
26814 wxEffects *arg1 = (wxEffects *) 0 ;
26815 wxColour result;
26816 void *argp1 = 0 ;
26817 int res1 = 0 ;
26818 PyObject *swig_obj[1] ;
26819
26820 if (!args) SWIG_fail;
26821 swig_obj[0] = args;
26822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26823 if (!SWIG_IsOK(res1)) {
26824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26825 }
26826 arg1 = reinterpret_cast< wxEffects * >(argp1);
26827 {
26828 PyThreadState* __tstate = wxPyBeginAllowThreads();
26829 result = ((wxEffects const *)arg1)->GetDarkShadow();
26830 wxPyEndAllowThreads(__tstate);
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26834 return resultobj;
26835 fail:
26836 return NULL;
26837 }
26838
26839
26840 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26841 PyObject *resultobj = 0;
26842 wxEffects *arg1 = (wxEffects *) 0 ;
26843 wxColour *arg2 = 0 ;
26844 void *argp1 = 0 ;
26845 int res1 = 0 ;
26846 wxColour temp2 ;
26847 PyObject * obj0 = 0 ;
26848 PyObject * obj1 = 0 ;
26849 char * kwnames[] = {
26850 (char *) "self",(char *) "c", NULL
26851 };
26852
26853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
26854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26855 if (!SWIG_IsOK(res1)) {
26856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26857 }
26858 arg1 = reinterpret_cast< wxEffects * >(argp1);
26859 {
26860 arg2 = &temp2;
26861 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26862 }
26863 {
26864 PyThreadState* __tstate = wxPyBeginAllowThreads();
26865 (arg1)->SetHighlightColour((wxColour const &)*arg2);
26866 wxPyEndAllowThreads(__tstate);
26867 if (PyErr_Occurred()) SWIG_fail;
26868 }
26869 resultobj = SWIG_Py_Void();
26870 return resultobj;
26871 fail:
26872 return NULL;
26873 }
26874
26875
26876 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26877 PyObject *resultobj = 0;
26878 wxEffects *arg1 = (wxEffects *) 0 ;
26879 wxColour *arg2 = 0 ;
26880 void *argp1 = 0 ;
26881 int res1 = 0 ;
26882 wxColour temp2 ;
26883 PyObject * obj0 = 0 ;
26884 PyObject * obj1 = 0 ;
26885 char * kwnames[] = {
26886 (char *) "self",(char *) "c", NULL
26887 };
26888
26889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26891 if (!SWIG_IsOK(res1)) {
26892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26893 }
26894 arg1 = reinterpret_cast< wxEffects * >(argp1);
26895 {
26896 arg2 = &temp2;
26897 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26898 }
26899 {
26900 PyThreadState* __tstate = wxPyBeginAllowThreads();
26901 (arg1)->SetLightShadow((wxColour const &)*arg2);
26902 wxPyEndAllowThreads(__tstate);
26903 if (PyErr_Occurred()) SWIG_fail;
26904 }
26905 resultobj = SWIG_Py_Void();
26906 return resultobj;
26907 fail:
26908 return NULL;
26909 }
26910
26911
26912 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26913 PyObject *resultobj = 0;
26914 wxEffects *arg1 = (wxEffects *) 0 ;
26915 wxColour *arg2 = 0 ;
26916 void *argp1 = 0 ;
26917 int res1 = 0 ;
26918 wxColour temp2 ;
26919 PyObject * obj0 = 0 ;
26920 PyObject * obj1 = 0 ;
26921 char * kwnames[] = {
26922 (char *) "self",(char *) "c", NULL
26923 };
26924
26925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
26926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26927 if (!SWIG_IsOK(res1)) {
26928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26929 }
26930 arg1 = reinterpret_cast< wxEffects * >(argp1);
26931 {
26932 arg2 = &temp2;
26933 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26934 }
26935 {
26936 PyThreadState* __tstate = wxPyBeginAllowThreads();
26937 (arg1)->SetFaceColour((wxColour const &)*arg2);
26938 wxPyEndAllowThreads(__tstate);
26939 if (PyErr_Occurred()) SWIG_fail;
26940 }
26941 resultobj = SWIG_Py_Void();
26942 return resultobj;
26943 fail:
26944 return NULL;
26945 }
26946
26947
26948 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26949 PyObject *resultobj = 0;
26950 wxEffects *arg1 = (wxEffects *) 0 ;
26951 wxColour *arg2 = 0 ;
26952 void *argp1 = 0 ;
26953 int res1 = 0 ;
26954 wxColour temp2 ;
26955 PyObject * obj0 = 0 ;
26956 PyObject * obj1 = 0 ;
26957 char * kwnames[] = {
26958 (char *) "self",(char *) "c", NULL
26959 };
26960
26961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26963 if (!SWIG_IsOK(res1)) {
26964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26965 }
26966 arg1 = reinterpret_cast< wxEffects * >(argp1);
26967 {
26968 arg2 = &temp2;
26969 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26970 }
26971 {
26972 PyThreadState* __tstate = wxPyBeginAllowThreads();
26973 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26974 wxPyEndAllowThreads(__tstate);
26975 if (PyErr_Occurred()) SWIG_fail;
26976 }
26977 resultobj = SWIG_Py_Void();
26978 return resultobj;
26979 fail:
26980 return NULL;
26981 }
26982
26983
26984 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26985 PyObject *resultobj = 0;
26986 wxEffects *arg1 = (wxEffects *) 0 ;
26987 wxColour *arg2 = 0 ;
26988 void *argp1 = 0 ;
26989 int res1 = 0 ;
26990 wxColour temp2 ;
26991 PyObject * obj0 = 0 ;
26992 PyObject * obj1 = 0 ;
26993 char * kwnames[] = {
26994 (char *) "self",(char *) "c", NULL
26995 };
26996
26997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26999 if (!SWIG_IsOK(res1)) {
27000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
27001 }
27002 arg1 = reinterpret_cast< wxEffects * >(argp1);
27003 {
27004 arg2 = &temp2;
27005 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27006 }
27007 {
27008 PyThreadState* __tstate = wxPyBeginAllowThreads();
27009 (arg1)->SetDarkShadow((wxColour const &)*arg2);
27010 wxPyEndAllowThreads(__tstate);
27011 if (PyErr_Occurred()) SWIG_fail;
27012 }
27013 resultobj = SWIG_Py_Void();
27014 return resultobj;
27015 fail:
27016 return NULL;
27017 }
27018
27019
27020 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27021 PyObject *resultobj = 0;
27022 wxEffects *arg1 = (wxEffects *) 0 ;
27023 wxColour *arg2 = 0 ;
27024 wxColour *arg3 = 0 ;
27025 wxColour *arg4 = 0 ;
27026 wxColour *arg5 = 0 ;
27027 wxColour *arg6 = 0 ;
27028 void *argp1 = 0 ;
27029 int res1 = 0 ;
27030 wxColour temp2 ;
27031 wxColour temp3 ;
27032 wxColour temp4 ;
27033 wxColour temp5 ;
27034 wxColour temp6 ;
27035 PyObject * obj0 = 0 ;
27036 PyObject * obj1 = 0 ;
27037 PyObject * obj2 = 0 ;
27038 PyObject * obj3 = 0 ;
27039 PyObject * obj4 = 0 ;
27040 PyObject * obj5 = 0 ;
27041 char * kwnames[] = {
27042 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
27043 };
27044
27045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27047 if (!SWIG_IsOK(res1)) {
27048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
27049 }
27050 arg1 = reinterpret_cast< wxEffects * >(argp1);
27051 {
27052 arg2 = &temp2;
27053 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27054 }
27055 {
27056 arg3 = &temp3;
27057 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27058 }
27059 {
27060 arg4 = &temp4;
27061 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
27062 }
27063 {
27064 arg5 = &temp5;
27065 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
27066 }
27067 {
27068 arg6 = &temp6;
27069 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27070 }
27071 {
27072 PyThreadState* __tstate = wxPyBeginAllowThreads();
27073 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
27074 wxPyEndAllowThreads(__tstate);
27075 if (PyErr_Occurred()) SWIG_fail;
27076 }
27077 resultobj = SWIG_Py_Void();
27078 return resultobj;
27079 fail:
27080 return NULL;
27081 }
27082
27083
27084 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27085 PyObject *resultobj = 0;
27086 wxEffects *arg1 = (wxEffects *) 0 ;
27087 wxDC *arg2 = 0 ;
27088 wxRect *arg3 = 0 ;
27089 int arg4 = (int) 1 ;
27090 void *argp1 = 0 ;
27091 int res1 = 0 ;
27092 void *argp2 = 0 ;
27093 int res2 = 0 ;
27094 wxRect temp3 ;
27095 int val4 ;
27096 int ecode4 = 0 ;
27097 PyObject * obj0 = 0 ;
27098 PyObject * obj1 = 0 ;
27099 PyObject * obj2 = 0 ;
27100 PyObject * obj3 = 0 ;
27101 char * kwnames[] = {
27102 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
27103 };
27104
27105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27107 if (!SWIG_IsOK(res1)) {
27108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
27109 }
27110 arg1 = reinterpret_cast< wxEffects * >(argp1);
27111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
27112 if (!SWIG_IsOK(res2)) {
27113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
27114 }
27115 if (!argp2) {
27116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
27117 }
27118 arg2 = reinterpret_cast< wxDC * >(argp2);
27119 {
27120 arg3 = &temp3;
27121 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27122 }
27123 if (obj3) {
27124 ecode4 = SWIG_AsVal_int(obj3, &val4);
27125 if (!SWIG_IsOK(ecode4)) {
27126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
27127 }
27128 arg4 = static_cast< int >(val4);
27129 }
27130 {
27131 PyThreadState* __tstate = wxPyBeginAllowThreads();
27132 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
27133 wxPyEndAllowThreads(__tstate);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 resultobj = SWIG_Py_Void();
27137 return resultobj;
27138 fail:
27139 return NULL;
27140 }
27141
27142
27143 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27144 PyObject *resultobj = 0;
27145 wxEffects *arg1 = (wxEffects *) 0 ;
27146 wxRect *arg2 = 0 ;
27147 wxDC *arg3 = 0 ;
27148 wxBitmap *arg4 = 0 ;
27149 bool result;
27150 void *argp1 = 0 ;
27151 int res1 = 0 ;
27152 wxRect temp2 ;
27153 void *argp3 = 0 ;
27154 int res3 = 0 ;
27155 void *argp4 = 0 ;
27156 int res4 = 0 ;
27157 PyObject * obj0 = 0 ;
27158 PyObject * obj1 = 0 ;
27159 PyObject * obj2 = 0 ;
27160 PyObject * obj3 = 0 ;
27161 char * kwnames[] = {
27162 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
27163 };
27164
27165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27167 if (!SWIG_IsOK(res1)) {
27168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
27169 }
27170 arg1 = reinterpret_cast< wxEffects * >(argp1);
27171 {
27172 arg2 = &temp2;
27173 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27174 }
27175 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27176 if (!SWIG_IsOK(res3)) {
27177 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
27178 }
27179 if (!argp3) {
27180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
27181 }
27182 arg3 = reinterpret_cast< wxDC * >(argp3);
27183 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
27184 if (!SWIG_IsOK(res4)) {
27185 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
27186 }
27187 if (!argp4) {
27188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
27189 }
27190 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27191 {
27192 PyThreadState* __tstate = wxPyBeginAllowThreads();
27193 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
27194 wxPyEndAllowThreads(__tstate);
27195 if (PyErr_Occurred()) SWIG_fail;
27196 }
27197 {
27198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27199 }
27200 return resultobj;
27201 fail:
27202 return NULL;
27203 }
27204
27205
27206 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27207 PyObject *obj;
27208 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27209 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
27210 return SWIG_Py_Void();
27211 }
27212
27213 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27214 return SWIG_Python_InitShadowInstance(args);
27215 }
27216
27217 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27218 PyObject *resultobj = 0;
27219 int arg1 ;
27220 int arg2 ;
27221 bool arg3 ;
27222 wxSplitterRenderParams *result = 0 ;
27223 int val1 ;
27224 int ecode1 = 0 ;
27225 int val2 ;
27226 int ecode2 = 0 ;
27227 bool val3 ;
27228 int ecode3 = 0 ;
27229 PyObject * obj0 = 0 ;
27230 PyObject * obj1 = 0 ;
27231 PyObject * obj2 = 0 ;
27232 char * kwnames[] = {
27233 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
27234 };
27235
27236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27237 ecode1 = SWIG_AsVal_int(obj0, &val1);
27238 if (!SWIG_IsOK(ecode1)) {
27239 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
27240 }
27241 arg1 = static_cast< int >(val1);
27242 ecode2 = SWIG_AsVal_int(obj1, &val2);
27243 if (!SWIG_IsOK(ecode2)) {
27244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
27245 }
27246 arg2 = static_cast< int >(val2);
27247 ecode3 = SWIG_AsVal_bool(obj2, &val3);
27248 if (!SWIG_IsOK(ecode3)) {
27249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
27250 }
27251 arg3 = static_cast< bool >(val3);
27252 {
27253 PyThreadState* __tstate = wxPyBeginAllowThreads();
27254 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
27255 wxPyEndAllowThreads(__tstate);
27256 if (PyErr_Occurred()) SWIG_fail;
27257 }
27258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
27259 return resultobj;
27260 fail:
27261 return NULL;
27262 }
27263
27264
27265 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27266 PyObject *resultobj = 0;
27267 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27268 void *argp1 = 0 ;
27269 int res1 = 0 ;
27270 PyObject *swig_obj[1] ;
27271
27272 if (!args) SWIG_fail;
27273 swig_obj[0] = args;
27274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
27275 if (!SWIG_IsOK(res1)) {
27276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27277 }
27278 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27279 {
27280 PyThreadState* __tstate = wxPyBeginAllowThreads();
27281 delete arg1;
27282
27283 wxPyEndAllowThreads(__tstate);
27284 if (PyErr_Occurred()) SWIG_fail;
27285 }
27286 resultobj = SWIG_Py_Void();
27287 return resultobj;
27288 fail:
27289 return NULL;
27290 }
27291
27292
27293 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27294 PyObject *resultobj = 0;
27295 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27296 int result;
27297 void *argp1 = 0 ;
27298 int res1 = 0 ;
27299 PyObject *swig_obj[1] ;
27300
27301 if (!args) SWIG_fail;
27302 swig_obj[0] = args;
27303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27304 if (!SWIG_IsOK(res1)) {
27305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27306 }
27307 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27308 result = (int)(int) ((arg1)->widthSash);
27309 resultobj = SWIG_From_int(static_cast< int >(result));
27310 return resultobj;
27311 fail:
27312 return NULL;
27313 }
27314
27315
27316 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27317 PyObject *resultobj = 0;
27318 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27319 int result;
27320 void *argp1 = 0 ;
27321 int res1 = 0 ;
27322 PyObject *swig_obj[1] ;
27323
27324 if (!args) SWIG_fail;
27325 swig_obj[0] = args;
27326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27327 if (!SWIG_IsOK(res1)) {
27328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27329 }
27330 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27331 result = (int)(int) ((arg1)->border);
27332 resultobj = SWIG_From_int(static_cast< int >(result));
27333 return resultobj;
27334 fail:
27335 return NULL;
27336 }
27337
27338
27339 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27340 PyObject *resultobj = 0;
27341 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27342 bool result;
27343 void *argp1 = 0 ;
27344 int res1 = 0 ;
27345 PyObject *swig_obj[1] ;
27346
27347 if (!args) SWIG_fail;
27348 swig_obj[0] = args;
27349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27350 if (!SWIG_IsOK(res1)) {
27351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27352 }
27353 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27354 result = (bool)(bool) ((arg1)->isHotSensitive);
27355 resultobj = SWIG_From_bool(static_cast< bool >(result));
27356 return resultobj;
27357 fail:
27358 return NULL;
27359 }
27360
27361
27362 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27363 PyObject *obj;
27364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27365 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
27366 return SWIG_Py_Void();
27367 }
27368
27369 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27370 return SWIG_Python_InitShadowInstance(args);
27371 }
27372
27373 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27374 PyObject *resultobj = 0;
27375 int arg1 ;
27376 int arg2 ;
27377 wxRendererVersion *result = 0 ;
27378 int val1 ;
27379 int ecode1 = 0 ;
27380 int val2 ;
27381 int ecode2 = 0 ;
27382 PyObject * obj0 = 0 ;
27383 PyObject * obj1 = 0 ;
27384 char * kwnames[] = {
27385 (char *) "version_",(char *) "age_", NULL
27386 };
27387
27388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
27389 ecode1 = SWIG_AsVal_int(obj0, &val1);
27390 if (!SWIG_IsOK(ecode1)) {
27391 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
27392 }
27393 arg1 = static_cast< int >(val1);
27394 ecode2 = SWIG_AsVal_int(obj1, &val2);
27395 if (!SWIG_IsOK(ecode2)) {
27396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
27397 }
27398 arg2 = static_cast< int >(val2);
27399 {
27400 PyThreadState* __tstate = wxPyBeginAllowThreads();
27401 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
27402 wxPyEndAllowThreads(__tstate);
27403 if (PyErr_Occurred()) SWIG_fail;
27404 }
27405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
27406 return resultobj;
27407 fail:
27408 return NULL;
27409 }
27410
27411
27412 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27413 PyObject *resultobj = 0;
27414 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27415 void *argp1 = 0 ;
27416 int res1 = 0 ;
27417 PyObject *swig_obj[1] ;
27418
27419 if (!args) SWIG_fail;
27420 swig_obj[0] = args;
27421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
27422 if (!SWIG_IsOK(res1)) {
27423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27424 }
27425 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27426 {
27427 PyThreadState* __tstate = wxPyBeginAllowThreads();
27428 delete arg1;
27429
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_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27441 PyObject *resultobj = 0;
27442 wxRendererVersion *arg1 = 0 ;
27443 bool result;
27444 void *argp1 = 0 ;
27445 int res1 = 0 ;
27446 PyObject * obj0 = 0 ;
27447 char * kwnames[] = {
27448 (char *) "ver", NULL
27449 };
27450
27451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
27452 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
27453 if (!SWIG_IsOK(res1)) {
27454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27455 }
27456 if (!argp1) {
27457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27458 }
27459 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27460 {
27461 PyThreadState* __tstate = wxPyBeginAllowThreads();
27462 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
27463 wxPyEndAllowThreads(__tstate);
27464 if (PyErr_Occurred()) SWIG_fail;
27465 }
27466 {
27467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27468 }
27469 return resultobj;
27470 fail:
27471 return NULL;
27472 }
27473
27474
27475 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27476 PyObject *resultobj = 0;
27477 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27478 int result;
27479 void *argp1 = 0 ;
27480 int res1 = 0 ;
27481 PyObject *swig_obj[1] ;
27482
27483 if (!args) SWIG_fail;
27484 swig_obj[0] = args;
27485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27486 if (!SWIG_IsOK(res1)) {
27487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27488 }
27489 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27490 result = (int)(int) ((arg1)->version);
27491 resultobj = SWIG_From_int(static_cast< int >(result));
27492 return resultobj;
27493 fail:
27494 return NULL;
27495 }
27496
27497
27498 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27499 PyObject *resultobj = 0;
27500 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27501 int result;
27502 void *argp1 = 0 ;
27503 int res1 = 0 ;
27504 PyObject *swig_obj[1] ;
27505
27506 if (!args) SWIG_fail;
27507 swig_obj[0] = args;
27508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27509 if (!SWIG_IsOK(res1)) {
27510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27511 }
27512 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27513 result = (int)(int) ((arg1)->age);
27514 resultobj = SWIG_From_int(static_cast< int >(result));
27515 return resultobj;
27516 fail:
27517 return NULL;
27518 }
27519
27520
27521 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27522 PyObject *obj;
27523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27524 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
27525 return SWIG_Py_Void();
27526 }
27527
27528 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27529 return SWIG_Python_InitShadowInstance(args);
27530 }
27531
27532 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27533 PyObject *resultobj = 0;
27534 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27535 wxWindow *arg2 = (wxWindow *) 0 ;
27536 wxDC *arg3 = 0 ;
27537 wxRect *arg4 = 0 ;
27538 int arg5 = (int) 0 ;
27539 void *argp1 = 0 ;
27540 int res1 = 0 ;
27541 void *argp2 = 0 ;
27542 int res2 = 0 ;
27543 void *argp3 = 0 ;
27544 int res3 = 0 ;
27545 wxRect temp4 ;
27546 int val5 ;
27547 int ecode5 = 0 ;
27548 PyObject * obj0 = 0 ;
27549 PyObject * obj1 = 0 ;
27550 PyObject * obj2 = 0 ;
27551 PyObject * obj3 = 0 ;
27552 PyObject * obj4 = 0 ;
27553 char * kwnames[] = {
27554 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27555 };
27556
27557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27559 if (!SWIG_IsOK(res1)) {
27560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27561 }
27562 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27564 if (!SWIG_IsOK(res2)) {
27565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27566 }
27567 arg2 = reinterpret_cast< wxWindow * >(argp2);
27568 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27569 if (!SWIG_IsOK(res3)) {
27570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27571 }
27572 if (!argp3) {
27573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27574 }
27575 arg3 = reinterpret_cast< wxDC * >(argp3);
27576 {
27577 arg4 = &temp4;
27578 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27579 }
27580 if (obj4) {
27581 ecode5 = SWIG_AsVal_int(obj4, &val5);
27582 if (!SWIG_IsOK(ecode5)) {
27583 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
27584 }
27585 arg5 = static_cast< int >(val5);
27586 }
27587 {
27588 PyThreadState* __tstate = wxPyBeginAllowThreads();
27589 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27590 wxPyEndAllowThreads(__tstate);
27591 if (PyErr_Occurred()) SWIG_fail;
27592 }
27593 resultobj = SWIG_Py_Void();
27594 return resultobj;
27595 fail:
27596 return NULL;
27597 }
27598
27599
27600 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27601 PyObject *resultobj = 0;
27602 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27603 wxWindow *arg2 = (wxWindow *) 0 ;
27604 wxDC *arg3 = 0 ;
27605 wxRect *arg4 = 0 ;
27606 int arg5 = (int) 0 ;
27607 void *argp1 = 0 ;
27608 int res1 = 0 ;
27609 void *argp2 = 0 ;
27610 int res2 = 0 ;
27611 void *argp3 = 0 ;
27612 int res3 = 0 ;
27613 wxRect temp4 ;
27614 int val5 ;
27615 int ecode5 = 0 ;
27616 PyObject * obj0 = 0 ;
27617 PyObject * obj1 = 0 ;
27618 PyObject * obj2 = 0 ;
27619 PyObject * obj3 = 0 ;
27620 PyObject * obj4 = 0 ;
27621 char * kwnames[] = {
27622 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27623 };
27624
27625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27627 if (!SWIG_IsOK(res1)) {
27628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27629 }
27630 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27631 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27632 if (!SWIG_IsOK(res2)) {
27633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27634 }
27635 arg2 = reinterpret_cast< wxWindow * >(argp2);
27636 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27637 if (!SWIG_IsOK(res3)) {
27638 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27639 }
27640 if (!argp3) {
27641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27642 }
27643 arg3 = reinterpret_cast< wxDC * >(argp3);
27644 {
27645 arg4 = &temp4;
27646 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27647 }
27648 if (obj4) {
27649 ecode5 = SWIG_AsVal_int(obj4, &val5);
27650 if (!SWIG_IsOK(ecode5)) {
27651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
27652 }
27653 arg5 = static_cast< int >(val5);
27654 }
27655 {
27656 PyThreadState* __tstate = wxPyBeginAllowThreads();
27657 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27658 wxPyEndAllowThreads(__tstate);
27659 if (PyErr_Occurred()) SWIG_fail;
27660 }
27661 resultobj = SWIG_Py_Void();
27662 return resultobj;
27663 fail:
27664 return NULL;
27665 }
27666
27667
27668 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27669 PyObject *resultobj = 0;
27670 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27671 wxWindow *arg2 = (wxWindow *) 0 ;
27672 wxDC *arg3 = 0 ;
27673 wxRect *arg4 = 0 ;
27674 int arg5 = (int) 0 ;
27675 void *argp1 = 0 ;
27676 int res1 = 0 ;
27677 void *argp2 = 0 ;
27678 int res2 = 0 ;
27679 void *argp3 = 0 ;
27680 int res3 = 0 ;
27681 wxRect temp4 ;
27682 int val5 ;
27683 int ecode5 = 0 ;
27684 PyObject * obj0 = 0 ;
27685 PyObject * obj1 = 0 ;
27686 PyObject * obj2 = 0 ;
27687 PyObject * obj3 = 0 ;
27688 PyObject * obj4 = 0 ;
27689 char * kwnames[] = {
27690 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27691 };
27692
27693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27695 if (!SWIG_IsOK(res1)) {
27696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27697 }
27698 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27700 if (!SWIG_IsOK(res2)) {
27701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
27702 }
27703 arg2 = reinterpret_cast< wxWindow * >(argp2);
27704 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27705 if (!SWIG_IsOK(res3)) {
27706 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27707 }
27708 if (!argp3) {
27709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27710 }
27711 arg3 = reinterpret_cast< wxDC * >(argp3);
27712 {
27713 arg4 = &temp4;
27714 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27715 }
27716 if (obj4) {
27717 ecode5 = SWIG_AsVal_int(obj4, &val5);
27718 if (!SWIG_IsOK(ecode5)) {
27719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
27720 }
27721 arg5 = static_cast< int >(val5);
27722 }
27723 {
27724 PyThreadState* __tstate = wxPyBeginAllowThreads();
27725 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
27726 wxPyEndAllowThreads(__tstate);
27727 if (PyErr_Occurred()) SWIG_fail;
27728 }
27729 resultobj = SWIG_Py_Void();
27730 return resultobj;
27731 fail:
27732 return NULL;
27733 }
27734
27735
27736 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27737 PyObject *resultobj = 0;
27738 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27739 wxWindow *arg2 = (wxWindow *) 0 ;
27740 wxDC *arg3 = 0 ;
27741 wxSize *arg4 = 0 ;
27742 int arg5 ;
27743 wxOrientation arg6 ;
27744 int arg7 = (int) 0 ;
27745 void *argp1 = 0 ;
27746 int res1 = 0 ;
27747 void *argp2 = 0 ;
27748 int res2 = 0 ;
27749 void *argp3 = 0 ;
27750 int res3 = 0 ;
27751 wxSize temp4 ;
27752 int val5 ;
27753 int ecode5 = 0 ;
27754 int val6 ;
27755 int ecode6 = 0 ;
27756 int val7 ;
27757 int ecode7 = 0 ;
27758 PyObject * obj0 = 0 ;
27759 PyObject * obj1 = 0 ;
27760 PyObject * obj2 = 0 ;
27761 PyObject * obj3 = 0 ;
27762 PyObject * obj4 = 0 ;
27763 PyObject * obj5 = 0 ;
27764 PyObject * obj6 = 0 ;
27765 char * kwnames[] = {
27766 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
27767 };
27768
27769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27771 if (!SWIG_IsOK(res1)) {
27772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27773 }
27774 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27776 if (!SWIG_IsOK(res2)) {
27777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
27778 }
27779 arg2 = reinterpret_cast< wxWindow * >(argp2);
27780 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27781 if (!SWIG_IsOK(res3)) {
27782 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27783 }
27784 if (!argp3) {
27785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27786 }
27787 arg3 = reinterpret_cast< wxDC * >(argp3);
27788 {
27789 arg4 = &temp4;
27790 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27791 }
27792 ecode5 = SWIG_AsVal_int(obj4, &val5);
27793 if (!SWIG_IsOK(ecode5)) {
27794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
27795 }
27796 arg5 = static_cast< int >(val5);
27797 ecode6 = SWIG_AsVal_int(obj5, &val6);
27798 if (!SWIG_IsOK(ecode6)) {
27799 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
27800 }
27801 arg6 = static_cast< wxOrientation >(val6);
27802 if (obj6) {
27803 ecode7 = SWIG_AsVal_int(obj6, &val7);
27804 if (!SWIG_IsOK(ecode7)) {
27805 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
27806 }
27807 arg7 = static_cast< int >(val7);
27808 }
27809 {
27810 PyThreadState* __tstate = wxPyBeginAllowThreads();
27811 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
27812 wxPyEndAllowThreads(__tstate);
27813 if (PyErr_Occurred()) SWIG_fail;
27814 }
27815 resultobj = SWIG_Py_Void();
27816 return resultobj;
27817 fail:
27818 return NULL;
27819 }
27820
27821
27822 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27823 PyObject *resultobj = 0;
27824 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27825 wxWindow *arg2 = (wxWindow *) 0 ;
27826 wxDC *arg3 = 0 ;
27827 wxRect *arg4 = 0 ;
27828 int arg5 = (int) 0 ;
27829 void *argp1 = 0 ;
27830 int res1 = 0 ;
27831 void *argp2 = 0 ;
27832 int res2 = 0 ;
27833 void *argp3 = 0 ;
27834 int res3 = 0 ;
27835 wxRect temp4 ;
27836 int val5 ;
27837 int ecode5 = 0 ;
27838 PyObject * obj0 = 0 ;
27839 PyObject * obj1 = 0 ;
27840 PyObject * obj2 = 0 ;
27841 PyObject * obj3 = 0 ;
27842 PyObject * obj4 = 0 ;
27843 char * kwnames[] = {
27844 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27845 };
27846
27847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27849 if (!SWIG_IsOK(res1)) {
27850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27851 }
27852 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27853 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27854 if (!SWIG_IsOK(res2)) {
27855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27856 }
27857 arg2 = reinterpret_cast< wxWindow * >(argp2);
27858 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27859 if (!SWIG_IsOK(res3)) {
27860 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27861 }
27862 if (!argp3) {
27863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27864 }
27865 arg3 = reinterpret_cast< wxDC * >(argp3);
27866 {
27867 arg4 = &temp4;
27868 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27869 }
27870 if (obj4) {
27871 ecode5 = SWIG_AsVal_int(obj4, &val5);
27872 if (!SWIG_IsOK(ecode5)) {
27873 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
27874 }
27875 arg5 = static_cast< int >(val5);
27876 }
27877 {
27878 PyThreadState* __tstate = wxPyBeginAllowThreads();
27879 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27880 wxPyEndAllowThreads(__tstate);
27881 if (PyErr_Occurred()) SWIG_fail;
27882 }
27883 resultobj = SWIG_Py_Void();
27884 return resultobj;
27885 fail:
27886 return NULL;
27887 }
27888
27889
27890 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27891 PyObject *resultobj = 0;
27892 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27893 wxWindow *arg2 = (wxWindow *) 0 ;
27894 wxDC *arg3 = 0 ;
27895 wxRect *arg4 = 0 ;
27896 int arg5 = (int) 0 ;
27897 void *argp1 = 0 ;
27898 int res1 = 0 ;
27899 void *argp2 = 0 ;
27900 int res2 = 0 ;
27901 void *argp3 = 0 ;
27902 int res3 = 0 ;
27903 wxRect temp4 ;
27904 int val5 ;
27905 int ecode5 = 0 ;
27906 PyObject * obj0 = 0 ;
27907 PyObject * obj1 = 0 ;
27908 PyObject * obj2 = 0 ;
27909 PyObject * obj3 = 0 ;
27910 PyObject * obj4 = 0 ;
27911 char * kwnames[] = {
27912 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27913 };
27914
27915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27917 if (!SWIG_IsOK(res1)) {
27918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27919 }
27920 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27922 if (!SWIG_IsOK(res2)) {
27923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
27924 }
27925 arg2 = reinterpret_cast< wxWindow * >(argp2);
27926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27927 if (!SWIG_IsOK(res3)) {
27928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27929 }
27930 if (!argp3) {
27931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27932 }
27933 arg3 = reinterpret_cast< wxDC * >(argp3);
27934 {
27935 arg4 = &temp4;
27936 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27937 }
27938 if (obj4) {
27939 ecode5 = SWIG_AsVal_int(obj4, &val5);
27940 if (!SWIG_IsOK(ecode5)) {
27941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
27942 }
27943 arg5 = static_cast< int >(val5);
27944 }
27945 {
27946 PyThreadState* __tstate = wxPyBeginAllowThreads();
27947 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
27948 wxPyEndAllowThreads(__tstate);
27949 if (PyErr_Occurred()) SWIG_fail;
27950 }
27951 resultobj = SWIG_Py_Void();
27952 return resultobj;
27953 fail:
27954 return NULL;
27955 }
27956
27957
27958 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27959 PyObject *resultobj = 0;
27960 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27961 wxWindow *arg2 = (wxWindow *) 0 ;
27962 wxDC *arg3 = 0 ;
27963 wxRect *arg4 = 0 ;
27964 int arg5 = (int) 0 ;
27965 void *argp1 = 0 ;
27966 int res1 = 0 ;
27967 void *argp2 = 0 ;
27968 int res2 = 0 ;
27969 void *argp3 = 0 ;
27970 int res3 = 0 ;
27971 wxRect temp4 ;
27972 int val5 ;
27973 int ecode5 = 0 ;
27974 PyObject * obj0 = 0 ;
27975 PyObject * obj1 = 0 ;
27976 PyObject * obj2 = 0 ;
27977 PyObject * obj3 = 0 ;
27978 PyObject * obj4 = 0 ;
27979 char * kwnames[] = {
27980 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27981 };
27982
27983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27985 if (!SWIG_IsOK(res1)) {
27986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27987 }
27988 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27990 if (!SWIG_IsOK(res2)) {
27991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
27992 }
27993 arg2 = reinterpret_cast< wxWindow * >(argp2);
27994 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27995 if (!SWIG_IsOK(res3)) {
27996 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27997 }
27998 if (!argp3) {
27999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
28000 }
28001 arg3 = reinterpret_cast< wxDC * >(argp3);
28002 {
28003 arg4 = &temp4;
28004 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28005 }
28006 if (obj4) {
28007 ecode5 = SWIG_AsVal_int(obj4, &val5);
28008 if (!SWIG_IsOK(ecode5)) {
28009 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
28010 }
28011 arg5 = static_cast< int >(val5);
28012 }
28013 {
28014 PyThreadState* __tstate = wxPyBeginAllowThreads();
28015 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
28016 wxPyEndAllowThreads(__tstate);
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
28019 resultobj = SWIG_Py_Void();
28020 return resultobj;
28021 fail:
28022 return NULL;
28023 }
28024
28025
28026 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28027 PyObject *resultobj = 0;
28028 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28029 wxWindow *arg2 = (wxWindow *) 0 ;
28030 wxDC *arg3 = 0 ;
28031 wxRect *arg4 = 0 ;
28032 int arg5 = (int) 0 ;
28033 void *argp1 = 0 ;
28034 int res1 = 0 ;
28035 void *argp2 = 0 ;
28036 int res2 = 0 ;
28037 void *argp3 = 0 ;
28038 int res3 = 0 ;
28039 wxRect temp4 ;
28040 int val5 ;
28041 int ecode5 = 0 ;
28042 PyObject * obj0 = 0 ;
28043 PyObject * obj1 = 0 ;
28044 PyObject * obj2 = 0 ;
28045 PyObject * obj3 = 0 ;
28046 PyObject * obj4 = 0 ;
28047 char * kwnames[] = {
28048 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28049 };
28050
28051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28053 if (!SWIG_IsOK(res1)) {
28054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28055 }
28056 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28057 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28058 if (!SWIG_IsOK(res2)) {
28059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28060 }
28061 arg2 = reinterpret_cast< wxWindow * >(argp2);
28062 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28063 if (!SWIG_IsOK(res3)) {
28064 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
28065 }
28066 if (!argp3) {
28067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
28068 }
28069 arg3 = reinterpret_cast< wxDC * >(argp3);
28070 {
28071 arg4 = &temp4;
28072 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28073 }
28074 if (obj4) {
28075 ecode5 = SWIG_AsVal_int(obj4, &val5);
28076 if (!SWIG_IsOK(ecode5)) {
28077 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
28078 }
28079 arg5 = static_cast< int >(val5);
28080 }
28081 {
28082 PyThreadState* __tstate = wxPyBeginAllowThreads();
28083 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28084 wxPyEndAllowThreads(__tstate);
28085 if (PyErr_Occurred()) SWIG_fail;
28086 }
28087 resultobj = SWIG_Py_Void();
28088 return resultobj;
28089 fail:
28090 return NULL;
28091 }
28092
28093
28094 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28095 PyObject *resultobj = 0;
28096 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28097 wxWindow *arg2 = (wxWindow *) 0 ;
28098 wxDC *arg3 = 0 ;
28099 wxRect *arg4 = 0 ;
28100 int arg5 = (int) 0 ;
28101 void *argp1 = 0 ;
28102 int res1 = 0 ;
28103 void *argp2 = 0 ;
28104 int res2 = 0 ;
28105 void *argp3 = 0 ;
28106 int res3 = 0 ;
28107 wxRect temp4 ;
28108 int val5 ;
28109 int ecode5 = 0 ;
28110 PyObject * obj0 = 0 ;
28111 PyObject * obj1 = 0 ;
28112 PyObject * obj2 = 0 ;
28113 PyObject * obj3 = 0 ;
28114 PyObject * obj4 = 0 ;
28115 char * kwnames[] = {
28116 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28117 };
28118
28119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28121 if (!SWIG_IsOK(res1)) {
28122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28123 }
28124 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28126 if (!SWIG_IsOK(res2)) {
28127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
28128 }
28129 arg2 = reinterpret_cast< wxWindow * >(argp2);
28130 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28131 if (!SWIG_IsOK(res3)) {
28132 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28133 }
28134 if (!argp3) {
28135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28136 }
28137 arg3 = reinterpret_cast< wxDC * >(argp3);
28138 {
28139 arg4 = &temp4;
28140 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28141 }
28142 if (obj4) {
28143 ecode5 = SWIG_AsVal_int(obj4, &val5);
28144 if (!SWIG_IsOK(ecode5)) {
28145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
28146 }
28147 arg5 = static_cast< int >(val5);
28148 }
28149 {
28150 PyThreadState* __tstate = wxPyBeginAllowThreads();
28151 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
28152 wxPyEndAllowThreads(__tstate);
28153 if (PyErr_Occurred()) SWIG_fail;
28154 }
28155 resultobj = SWIG_Py_Void();
28156 return resultobj;
28157 fail:
28158 return NULL;
28159 }
28160
28161
28162 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28163 PyObject *resultobj = 0;
28164 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28165 wxWindow *arg2 = (wxWindow *) 0 ;
28166 SwigValueWrapper<wxSplitterRenderParams > result;
28167 void *argp1 = 0 ;
28168 int res1 = 0 ;
28169 void *argp2 = 0 ;
28170 int res2 = 0 ;
28171 PyObject * obj0 = 0 ;
28172 PyObject * obj1 = 0 ;
28173 char * kwnames[] = {
28174 (char *) "self",(char *) "win", NULL
28175 };
28176
28177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
28178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28179 if (!SWIG_IsOK(res1)) {
28180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28181 }
28182 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28183 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28184 if (!SWIG_IsOK(res2)) {
28185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
28186 }
28187 arg2 = reinterpret_cast< wxWindow * >(argp2);
28188 {
28189 PyThreadState* __tstate = wxPyBeginAllowThreads();
28190 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
28191 wxPyEndAllowThreads(__tstate);
28192 if (PyErr_Occurred()) SWIG_fail;
28193 }
28194 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
28195 return resultobj;
28196 fail:
28197 return NULL;
28198 }
28199
28200
28201 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28202 PyObject *resultobj = 0;
28203 wxRendererNative *result = 0 ;
28204
28205 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
28206 {
28207 if (!wxPyCheckForApp()) SWIG_fail;
28208 PyThreadState* __tstate = wxPyBeginAllowThreads();
28209 {
28210 wxRendererNative &_result_ref = wxRendererNative::Get();
28211 result = (wxRendererNative *) &_result_ref;
28212 }
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28217 return resultobj;
28218 fail:
28219 return NULL;
28220 }
28221
28222
28223 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *resultobj = 0;
28225 wxRendererNative *result = 0 ;
28226
28227 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
28228 {
28229 if (!wxPyCheckForApp()) SWIG_fail;
28230 PyThreadState* __tstate = wxPyBeginAllowThreads();
28231 {
28232 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
28233 result = (wxRendererNative *) &_result_ref;
28234 }
28235 wxPyEndAllowThreads(__tstate);
28236 if (PyErr_Occurred()) SWIG_fail;
28237 }
28238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28239 return resultobj;
28240 fail:
28241 return NULL;
28242 }
28243
28244
28245 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28246 PyObject *resultobj = 0;
28247 wxRendererNative *result = 0 ;
28248
28249 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
28250 {
28251 if (!wxPyCheckForApp()) SWIG_fail;
28252 PyThreadState* __tstate = wxPyBeginAllowThreads();
28253 {
28254 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
28255 result = (wxRendererNative *) &_result_ref;
28256 }
28257 wxPyEndAllowThreads(__tstate);
28258 if (PyErr_Occurred()) SWIG_fail;
28259 }
28260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28261 return resultobj;
28262 fail:
28263 return NULL;
28264 }
28265
28266
28267 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28268 PyObject *resultobj = 0;
28269 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28270 wxRendererNative *result = 0 ;
28271 void *argp1 = 0 ;
28272 int res1 = 0 ;
28273 PyObject * obj0 = 0 ;
28274 char * kwnames[] = {
28275 (char *) "renderer", NULL
28276 };
28277
28278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
28279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28280 if (!SWIG_IsOK(res1)) {
28281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28282 }
28283 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28284 {
28285 if (!wxPyCheckForApp()) SWIG_fail;
28286 PyThreadState* __tstate = wxPyBeginAllowThreads();
28287 result = (wxRendererNative *)wxRendererNative::Set(arg1);
28288 wxPyEndAllowThreads(__tstate);
28289 if (PyErr_Occurred()) SWIG_fail;
28290 }
28291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28292 return resultobj;
28293 fail:
28294 return NULL;
28295 }
28296
28297
28298 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28299 PyObject *resultobj = 0;
28300 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28301 SwigValueWrapper<wxRendererVersion > result;
28302 void *argp1 = 0 ;
28303 int res1 = 0 ;
28304 PyObject *swig_obj[1] ;
28305
28306 if (!args) SWIG_fail;
28307 swig_obj[0] = args;
28308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28309 if (!SWIG_IsOK(res1)) {
28310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
28311 }
28312 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28313 {
28314 PyThreadState* __tstate = wxPyBeginAllowThreads();
28315 result = ((wxRendererNative const *)arg1)->GetVersion();
28316 wxPyEndAllowThreads(__tstate);
28317 if (PyErr_Occurred()) SWIG_fail;
28318 }
28319 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
28320 return resultobj;
28321 fail:
28322 return NULL;
28323 }
28324
28325
28326 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28327 PyObject *obj;
28328 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28329 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
28330 return SWIG_Py_Void();
28331 }
28332
28333 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28334 PyObject *resultobj = 0;
28335 wxPseudoDC *result = 0 ;
28336
28337 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
28338 {
28339 PyThreadState* __tstate = wxPyBeginAllowThreads();
28340 result = (wxPseudoDC *)new wxPseudoDC();
28341 wxPyEndAllowThreads(__tstate);
28342 if (PyErr_Occurred()) SWIG_fail;
28343 }
28344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
28345 return resultobj;
28346 fail:
28347 return NULL;
28348 }
28349
28350
28351 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28352 PyObject *resultobj = 0;
28353 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28354 void *argp1 = 0 ;
28355 int res1 = 0 ;
28356 PyObject *swig_obj[1] ;
28357
28358 if (!args) SWIG_fail;
28359 swig_obj[0] = args;
28360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28361 if (!SWIG_IsOK(res1)) {
28362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28363 }
28364 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28365 {
28366 PyThreadState* __tstate = wxPyBeginAllowThreads();
28367 (arg1)->BeginDrawing();
28368 wxPyEndAllowThreads(__tstate);
28369 if (PyErr_Occurred()) SWIG_fail;
28370 }
28371 resultobj = SWIG_Py_Void();
28372 return resultobj;
28373 fail:
28374 return NULL;
28375 }
28376
28377
28378 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28379 PyObject *resultobj = 0;
28380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28381 void *argp1 = 0 ;
28382 int res1 = 0 ;
28383 PyObject *swig_obj[1] ;
28384
28385 if (!args) SWIG_fail;
28386 swig_obj[0] = args;
28387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28388 if (!SWIG_IsOK(res1)) {
28389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28390 }
28391 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28392 {
28393 PyThreadState* __tstate = wxPyBeginAllowThreads();
28394 (arg1)->EndDrawing();
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_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28406 PyObject *resultobj = 0;
28407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28408 void *argp1 = 0 ;
28409 int res1 = 0 ;
28410 PyObject *swig_obj[1] ;
28411
28412 if (!args) SWIG_fail;
28413 swig_obj[0] = args;
28414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
28415 if (!SWIG_IsOK(res1)) {
28416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28417 }
28418 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28419 {
28420 PyThreadState* __tstate = wxPyBeginAllowThreads();
28421 delete arg1;
28422
28423 wxPyEndAllowThreads(__tstate);
28424 if (PyErr_Occurred()) SWIG_fail;
28425 }
28426 resultobj = SWIG_Py_Void();
28427 return resultobj;
28428 fail:
28429 return NULL;
28430 }
28431
28432
28433 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28434 PyObject *resultobj = 0;
28435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28436 void *argp1 = 0 ;
28437 int res1 = 0 ;
28438 PyObject *swig_obj[1] ;
28439
28440 if (!args) SWIG_fail;
28441 swig_obj[0] = args;
28442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28443 if (!SWIG_IsOK(res1)) {
28444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28445 }
28446 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28447 {
28448 PyThreadState* __tstate = wxPyBeginAllowThreads();
28449 (arg1)->RemoveAll();
28450 wxPyEndAllowThreads(__tstate);
28451 if (PyErr_Occurred()) SWIG_fail;
28452 }
28453 resultobj = SWIG_Py_Void();
28454 return resultobj;
28455 fail:
28456 return NULL;
28457 }
28458
28459
28460 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28461 PyObject *resultobj = 0;
28462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28463 int result;
28464 void *argp1 = 0 ;
28465 int res1 = 0 ;
28466 PyObject *swig_obj[1] ;
28467
28468 if (!args) SWIG_fail;
28469 swig_obj[0] = args;
28470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28471 if (!SWIG_IsOK(res1)) {
28472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28473 }
28474 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28475 {
28476 PyThreadState* __tstate = wxPyBeginAllowThreads();
28477 result = (int)(arg1)->GetLen();
28478 wxPyEndAllowThreads(__tstate);
28479 if (PyErr_Occurred()) SWIG_fail;
28480 }
28481 resultobj = SWIG_From_int(static_cast< int >(result));
28482 return resultobj;
28483 fail:
28484 return NULL;
28485 }
28486
28487
28488 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28489 PyObject *resultobj = 0;
28490 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28491 int arg2 ;
28492 void *argp1 = 0 ;
28493 int res1 = 0 ;
28494 int val2 ;
28495 int ecode2 = 0 ;
28496 PyObject * obj0 = 0 ;
28497 PyObject * obj1 = 0 ;
28498 char * kwnames[] = {
28499 (char *) "self",(char *) "id", NULL
28500 };
28501
28502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
28503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28504 if (!SWIG_IsOK(res1)) {
28505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28506 }
28507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28508 ecode2 = SWIG_AsVal_int(obj1, &val2);
28509 if (!SWIG_IsOK(ecode2)) {
28510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
28511 }
28512 arg2 = static_cast< int >(val2);
28513 {
28514 PyThreadState* __tstate = wxPyBeginAllowThreads();
28515 (arg1)->SetId(arg2);
28516 wxPyEndAllowThreads(__tstate);
28517 if (PyErr_Occurred()) SWIG_fail;
28518 }
28519 resultobj = SWIG_Py_Void();
28520 return resultobj;
28521 fail:
28522 return NULL;
28523 }
28524
28525
28526 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28527 PyObject *resultobj = 0;
28528 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28529 int arg2 ;
28530 void *argp1 = 0 ;
28531 int res1 = 0 ;
28532 int val2 ;
28533 int ecode2 = 0 ;
28534 PyObject * obj0 = 0 ;
28535 PyObject * obj1 = 0 ;
28536 char * kwnames[] = {
28537 (char *) "self",(char *) "id", NULL
28538 };
28539
28540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
28541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28542 if (!SWIG_IsOK(res1)) {
28543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28544 }
28545 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28546 ecode2 = SWIG_AsVal_int(obj1, &val2);
28547 if (!SWIG_IsOK(ecode2)) {
28548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
28549 }
28550 arg2 = static_cast< int >(val2);
28551 {
28552 PyThreadState* __tstate = wxPyBeginAllowThreads();
28553 (arg1)->ClearId(arg2);
28554 wxPyEndAllowThreads(__tstate);
28555 if (PyErr_Occurred()) SWIG_fail;
28556 }
28557 resultobj = SWIG_Py_Void();
28558 return resultobj;
28559 fail:
28560 return NULL;
28561 }
28562
28563
28564 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28565 PyObject *resultobj = 0;
28566 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28567 int arg2 ;
28568 void *argp1 = 0 ;
28569 int res1 = 0 ;
28570 int val2 ;
28571 int ecode2 = 0 ;
28572 PyObject * obj0 = 0 ;
28573 PyObject * obj1 = 0 ;
28574 char * kwnames[] = {
28575 (char *) "self",(char *) "id", NULL
28576 };
28577
28578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
28579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28580 if (!SWIG_IsOK(res1)) {
28581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28582 }
28583 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28584 ecode2 = SWIG_AsVal_int(obj1, &val2);
28585 if (!SWIG_IsOK(ecode2)) {
28586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
28587 }
28588 arg2 = static_cast< int >(val2);
28589 {
28590 PyThreadState* __tstate = wxPyBeginAllowThreads();
28591 (arg1)->RemoveId(arg2);
28592 wxPyEndAllowThreads(__tstate);
28593 if (PyErr_Occurred()) SWIG_fail;
28594 }
28595 resultobj = SWIG_Py_Void();
28596 return resultobj;
28597 fail:
28598 return NULL;
28599 }
28600
28601
28602 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28603 PyObject *resultobj = 0;
28604 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28605 int arg2 ;
28606 int arg3 ;
28607 int arg4 ;
28608 void *argp1 = 0 ;
28609 int res1 = 0 ;
28610 int val2 ;
28611 int ecode2 = 0 ;
28612 int val3 ;
28613 int ecode3 = 0 ;
28614 int val4 ;
28615 int ecode4 = 0 ;
28616 PyObject * obj0 = 0 ;
28617 PyObject * obj1 = 0 ;
28618 PyObject * obj2 = 0 ;
28619 PyObject * obj3 = 0 ;
28620 char * kwnames[] = {
28621 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
28622 };
28623
28624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28626 if (!SWIG_IsOK(res1)) {
28627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28628 }
28629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28630 ecode2 = SWIG_AsVal_int(obj1, &val2);
28631 if (!SWIG_IsOK(ecode2)) {
28632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
28633 }
28634 arg2 = static_cast< int >(val2);
28635 ecode3 = SWIG_AsVal_int(obj2, &val3);
28636 if (!SWIG_IsOK(ecode3)) {
28637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
28638 }
28639 arg3 = static_cast< int >(val3);
28640 ecode4 = SWIG_AsVal_int(obj3, &val4);
28641 if (!SWIG_IsOK(ecode4)) {
28642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
28643 }
28644 arg4 = static_cast< int >(val4);
28645 {
28646 PyThreadState* __tstate = wxPyBeginAllowThreads();
28647 (arg1)->TranslateId(arg2,arg3,arg4);
28648 wxPyEndAllowThreads(__tstate);
28649 if (PyErr_Occurred()) SWIG_fail;
28650 }
28651 resultobj = SWIG_Py_Void();
28652 return resultobj;
28653 fail:
28654 return NULL;
28655 }
28656
28657
28658 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28659 PyObject *resultobj = 0;
28660 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28661 int arg2 ;
28662 wxDC *arg3 = (wxDC *) 0 ;
28663 void *argp1 = 0 ;
28664 int res1 = 0 ;
28665 int val2 ;
28666 int ecode2 = 0 ;
28667 void *argp3 = 0 ;
28668 int res3 = 0 ;
28669 PyObject * obj0 = 0 ;
28670 PyObject * obj1 = 0 ;
28671 PyObject * obj2 = 0 ;
28672 char * kwnames[] = {
28673 (char *) "self",(char *) "id",(char *) "dc", NULL
28674 };
28675
28676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28678 if (!SWIG_IsOK(res1)) {
28679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28680 }
28681 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28682 ecode2 = SWIG_AsVal_int(obj1, &val2);
28683 if (!SWIG_IsOK(ecode2)) {
28684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
28685 }
28686 arg2 = static_cast< int >(val2);
28687 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
28688 if (!SWIG_IsOK(res3)) {
28689 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
28690 }
28691 arg3 = reinterpret_cast< wxDC * >(argp3);
28692 {
28693 PyThreadState* __tstate = wxPyBeginAllowThreads();
28694 (arg1)->DrawIdToDC(arg2,arg3);
28695 wxPyEndAllowThreads(__tstate);
28696 if (PyErr_Occurred()) SWIG_fail;
28697 }
28698 resultobj = SWIG_Py_Void();
28699 return resultobj;
28700 fail:
28701 return NULL;
28702 }
28703
28704
28705 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28706 PyObject *resultobj = 0;
28707 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28708 int arg2 ;
28709 wxRect *arg3 = 0 ;
28710 void *argp1 = 0 ;
28711 int res1 = 0 ;
28712 int val2 ;
28713 int ecode2 = 0 ;
28714 wxRect temp3 ;
28715 PyObject * obj0 = 0 ;
28716 PyObject * obj1 = 0 ;
28717 PyObject * obj2 = 0 ;
28718 char * kwnames[] = {
28719 (char *) "self",(char *) "id",(char *) "rect", NULL
28720 };
28721
28722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28724 if (!SWIG_IsOK(res1)) {
28725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28726 }
28727 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28728 ecode2 = SWIG_AsVal_int(obj1, &val2);
28729 if (!SWIG_IsOK(ecode2)) {
28730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
28731 }
28732 arg2 = static_cast< int >(val2);
28733 {
28734 arg3 = &temp3;
28735 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28736 }
28737 {
28738 PyThreadState* __tstate = wxPyBeginAllowThreads();
28739 (arg1)->SetIdBounds(arg2,*arg3);
28740 wxPyEndAllowThreads(__tstate);
28741 if (PyErr_Occurred()) SWIG_fail;
28742 }
28743 resultobj = SWIG_Py_Void();
28744 return resultobj;
28745 fail:
28746 return NULL;
28747 }
28748
28749
28750 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28751 PyObject *resultobj = 0;
28752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28753 int arg2 ;
28754 wxRect result;
28755 void *argp1 = 0 ;
28756 int res1 = 0 ;
28757 int val2 ;
28758 int ecode2 = 0 ;
28759 PyObject * obj0 = 0 ;
28760 PyObject * obj1 = 0 ;
28761 char * kwnames[] = {
28762 (char *) "self",(char *) "id", NULL
28763 };
28764
28765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
28766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28767 if (!SWIG_IsOK(res1)) {
28768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28769 }
28770 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28771 ecode2 = SWIG_AsVal_int(obj1, &val2);
28772 if (!SWIG_IsOK(ecode2)) {
28773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
28774 }
28775 arg2 = static_cast< int >(val2);
28776 {
28777 PyThreadState* __tstate = wxPyBeginAllowThreads();
28778 result = wxPseudoDC_GetIdBounds(arg1,arg2);
28779 wxPyEndAllowThreads(__tstate);
28780 if (PyErr_Occurred()) SWIG_fail;
28781 }
28782 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28783 return resultobj;
28784 fail:
28785 return NULL;
28786 }
28787
28788
28789 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28790 PyObject *resultobj = 0;
28791 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28792 wxDC *arg2 = (wxDC *) 0 ;
28793 wxRect *arg3 = 0 ;
28794 void *argp1 = 0 ;
28795 int res1 = 0 ;
28796 void *argp2 = 0 ;
28797 int res2 = 0 ;
28798 wxRect temp3 ;
28799 PyObject * obj0 = 0 ;
28800 PyObject * obj1 = 0 ;
28801 PyObject * obj2 = 0 ;
28802 char * kwnames[] = {
28803 (char *) "self",(char *) "dc",(char *) "rect", NULL
28804 };
28805
28806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28808 if (!SWIG_IsOK(res1)) {
28809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28810 }
28811 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28813 if (!SWIG_IsOK(res2)) {
28814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
28815 }
28816 arg2 = reinterpret_cast< wxDC * >(argp2);
28817 {
28818 arg3 = &temp3;
28819 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28820 }
28821 {
28822 PyThreadState* __tstate = wxPyBeginAllowThreads();
28823 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
28824 wxPyEndAllowThreads(__tstate);
28825 if (PyErr_Occurred()) SWIG_fail;
28826 }
28827 resultobj = SWIG_Py_Void();
28828 return resultobj;
28829 fail:
28830 return NULL;
28831 }
28832
28833
28834 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28835 PyObject *resultobj = 0;
28836 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28837 wxDC *arg2 = (wxDC *) 0 ;
28838 wxRegion *arg3 = 0 ;
28839 void *argp1 = 0 ;
28840 int res1 = 0 ;
28841 void *argp2 = 0 ;
28842 int res2 = 0 ;
28843 void *argp3 = 0 ;
28844 int res3 = 0 ;
28845 PyObject * obj0 = 0 ;
28846 PyObject * obj1 = 0 ;
28847 PyObject * obj2 = 0 ;
28848 char * kwnames[] = {
28849 (char *) "self",(char *) "dc",(char *) "region", NULL
28850 };
28851
28852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28854 if (!SWIG_IsOK(res1)) {
28855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28856 }
28857 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28858 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28859 if (!SWIG_IsOK(res2)) {
28860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
28861 }
28862 arg2 = reinterpret_cast< wxDC * >(argp2);
28863 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
28864 if (!SWIG_IsOK(res3)) {
28865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28866 }
28867 if (!argp3) {
28868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28869 }
28870 arg3 = reinterpret_cast< wxRegion * >(argp3);
28871 {
28872 PyThreadState* __tstate = wxPyBeginAllowThreads();
28873 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
28874 wxPyEndAllowThreads(__tstate);
28875 if (PyErr_Occurred()) SWIG_fail;
28876 }
28877 resultobj = SWIG_Py_Void();
28878 return resultobj;
28879 fail:
28880 return NULL;
28881 }
28882
28883
28884 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28885 PyObject *resultobj = 0;
28886 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28887 wxDC *arg2 = (wxDC *) 0 ;
28888 void *argp1 = 0 ;
28889 int res1 = 0 ;
28890 void *argp2 = 0 ;
28891 int res2 = 0 ;
28892 PyObject * obj0 = 0 ;
28893 PyObject * obj1 = 0 ;
28894 char * kwnames[] = {
28895 (char *) "self",(char *) "dc", NULL
28896 };
28897
28898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
28899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28900 if (!SWIG_IsOK(res1)) {
28901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28902 }
28903 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28905 if (!SWIG_IsOK(res2)) {
28906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
28907 }
28908 arg2 = reinterpret_cast< wxDC * >(argp2);
28909 {
28910 PyThreadState* __tstate = wxPyBeginAllowThreads();
28911 (arg1)->DrawToDC(arg2);
28912 wxPyEndAllowThreads(__tstate);
28913 if (PyErr_Occurred()) SWIG_fail;
28914 }
28915 resultobj = SWIG_Py_Void();
28916 return resultobj;
28917 fail:
28918 return NULL;
28919 }
28920
28921
28922 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28923 PyObject *resultobj = 0;
28924 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28925 int arg2 ;
28926 int arg3 ;
28927 wxColour *arg4 = 0 ;
28928 int arg5 = (int) wxFLOOD_SURFACE ;
28929 void *argp1 = 0 ;
28930 int res1 = 0 ;
28931 int val2 ;
28932 int ecode2 = 0 ;
28933 int val3 ;
28934 int ecode3 = 0 ;
28935 wxColour temp4 ;
28936 int val5 ;
28937 int ecode5 = 0 ;
28938 PyObject * obj0 = 0 ;
28939 PyObject * obj1 = 0 ;
28940 PyObject * obj2 = 0 ;
28941 PyObject * obj3 = 0 ;
28942 PyObject * obj4 = 0 ;
28943 char * kwnames[] = {
28944 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
28945 };
28946
28947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28949 if (!SWIG_IsOK(res1)) {
28950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28951 }
28952 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28953 ecode2 = SWIG_AsVal_int(obj1, &val2);
28954 if (!SWIG_IsOK(ecode2)) {
28955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
28956 }
28957 arg2 = static_cast< int >(val2);
28958 ecode3 = SWIG_AsVal_int(obj2, &val3);
28959 if (!SWIG_IsOK(ecode3)) {
28960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28961 }
28962 arg3 = static_cast< int >(val3);
28963 {
28964 arg4 = &temp4;
28965 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28966 }
28967 if (obj4) {
28968 ecode5 = SWIG_AsVal_int(obj4, &val5);
28969 if (!SWIG_IsOK(ecode5)) {
28970 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28971 }
28972 arg5 = static_cast< int >(val5);
28973 }
28974 {
28975 PyThreadState* __tstate = wxPyBeginAllowThreads();
28976 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28977 wxPyEndAllowThreads(__tstate);
28978 if (PyErr_Occurred()) SWIG_fail;
28979 }
28980 resultobj = SWIG_Py_Void();
28981 return resultobj;
28982 fail:
28983 return NULL;
28984 }
28985
28986
28987 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28988 PyObject *resultobj = 0;
28989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28990 wxPoint *arg2 = 0 ;
28991 wxColour *arg3 = 0 ;
28992 int arg4 = (int) wxFLOOD_SURFACE ;
28993 void *argp1 = 0 ;
28994 int res1 = 0 ;
28995 wxPoint temp2 ;
28996 wxColour temp3 ;
28997 int val4 ;
28998 int ecode4 = 0 ;
28999 PyObject * obj0 = 0 ;
29000 PyObject * obj1 = 0 ;
29001 PyObject * obj2 = 0 ;
29002 PyObject * obj3 = 0 ;
29003 char * kwnames[] = {
29004 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
29005 };
29006
29007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29009 if (!SWIG_IsOK(res1)) {
29010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29011 }
29012 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29013 {
29014 arg2 = &temp2;
29015 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29016 }
29017 {
29018 arg3 = &temp3;
29019 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29020 }
29021 if (obj3) {
29022 ecode4 = SWIG_AsVal_int(obj3, &val4);
29023 if (!SWIG_IsOK(ecode4)) {
29024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
29025 }
29026 arg4 = static_cast< int >(val4);
29027 }
29028 {
29029 PyThreadState* __tstate = wxPyBeginAllowThreads();
29030 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
29031 wxPyEndAllowThreads(__tstate);
29032 if (PyErr_Occurred()) SWIG_fail;
29033 }
29034 resultobj = SWIG_Py_Void();
29035 return resultobj;
29036 fail:
29037 return NULL;
29038 }
29039
29040
29041 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29042 PyObject *resultobj = 0;
29043 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29044 int arg2 ;
29045 int arg3 ;
29046 int arg4 ;
29047 int arg5 ;
29048 void *argp1 = 0 ;
29049 int res1 = 0 ;
29050 int val2 ;
29051 int ecode2 = 0 ;
29052 int val3 ;
29053 int ecode3 = 0 ;
29054 int val4 ;
29055 int ecode4 = 0 ;
29056 int val5 ;
29057 int ecode5 = 0 ;
29058 PyObject * obj0 = 0 ;
29059 PyObject * obj1 = 0 ;
29060 PyObject * obj2 = 0 ;
29061 PyObject * obj3 = 0 ;
29062 PyObject * obj4 = 0 ;
29063 char * kwnames[] = {
29064 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29065 };
29066
29067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29069 if (!SWIG_IsOK(res1)) {
29070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29071 }
29072 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29073 ecode2 = SWIG_AsVal_int(obj1, &val2);
29074 if (!SWIG_IsOK(ecode2)) {
29075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
29076 }
29077 arg2 = static_cast< int >(val2);
29078 ecode3 = SWIG_AsVal_int(obj2, &val3);
29079 if (!SWIG_IsOK(ecode3)) {
29080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
29081 }
29082 arg3 = static_cast< int >(val3);
29083 ecode4 = SWIG_AsVal_int(obj3, &val4);
29084 if (!SWIG_IsOK(ecode4)) {
29085 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
29086 }
29087 arg4 = static_cast< int >(val4);
29088 ecode5 = SWIG_AsVal_int(obj4, &val5);
29089 if (!SWIG_IsOK(ecode5)) {
29090 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
29091 }
29092 arg5 = static_cast< int >(val5);
29093 {
29094 PyThreadState* __tstate = wxPyBeginAllowThreads();
29095 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
29096 wxPyEndAllowThreads(__tstate);
29097 if (PyErr_Occurred()) SWIG_fail;
29098 }
29099 resultobj = SWIG_Py_Void();
29100 return resultobj;
29101 fail:
29102 return NULL;
29103 }
29104
29105
29106 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29107 PyObject *resultobj = 0;
29108 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29109 wxPoint *arg2 = 0 ;
29110 wxPoint *arg3 = 0 ;
29111 void *argp1 = 0 ;
29112 int res1 = 0 ;
29113 wxPoint temp2 ;
29114 wxPoint temp3 ;
29115 PyObject * obj0 = 0 ;
29116 PyObject * obj1 = 0 ;
29117 PyObject * obj2 = 0 ;
29118 char * kwnames[] = {
29119 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
29120 };
29121
29122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29124 if (!SWIG_IsOK(res1)) {
29125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29126 }
29127 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29128 {
29129 arg2 = &temp2;
29130 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29131 }
29132 {
29133 arg3 = &temp3;
29134 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29135 }
29136 {
29137 PyThreadState* __tstate = wxPyBeginAllowThreads();
29138 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
29139 wxPyEndAllowThreads(__tstate);
29140 if (PyErr_Occurred()) SWIG_fail;
29141 }
29142 resultobj = SWIG_Py_Void();
29143 return resultobj;
29144 fail:
29145 return NULL;
29146 }
29147
29148
29149 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29150 PyObject *resultobj = 0;
29151 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29152 int arg2 ;
29153 int arg3 ;
29154 void *argp1 = 0 ;
29155 int res1 = 0 ;
29156 int val2 ;
29157 int ecode2 = 0 ;
29158 int val3 ;
29159 int ecode3 = 0 ;
29160 PyObject * obj0 = 0 ;
29161 PyObject * obj1 = 0 ;
29162 PyObject * obj2 = 0 ;
29163 char * kwnames[] = {
29164 (char *) "self",(char *) "x",(char *) "y", NULL
29165 };
29166
29167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29169 if (!SWIG_IsOK(res1)) {
29170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29171 }
29172 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29173 ecode2 = SWIG_AsVal_int(obj1, &val2);
29174 if (!SWIG_IsOK(ecode2)) {
29175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
29176 }
29177 arg2 = static_cast< int >(val2);
29178 ecode3 = SWIG_AsVal_int(obj2, &val3);
29179 if (!SWIG_IsOK(ecode3)) {
29180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
29181 }
29182 arg3 = static_cast< int >(val3);
29183 {
29184 PyThreadState* __tstate = wxPyBeginAllowThreads();
29185 (arg1)->CrossHair(arg2,arg3);
29186 wxPyEndAllowThreads(__tstate);
29187 if (PyErr_Occurred()) SWIG_fail;
29188 }
29189 resultobj = SWIG_Py_Void();
29190 return resultobj;
29191 fail:
29192 return NULL;
29193 }
29194
29195
29196 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29197 PyObject *resultobj = 0;
29198 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29199 wxPoint *arg2 = 0 ;
29200 void *argp1 = 0 ;
29201 int res1 = 0 ;
29202 wxPoint temp2 ;
29203 PyObject * obj0 = 0 ;
29204 PyObject * obj1 = 0 ;
29205 char * kwnames[] = {
29206 (char *) "self",(char *) "pt", NULL
29207 };
29208
29209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29211 if (!SWIG_IsOK(res1)) {
29212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29213 }
29214 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29215 {
29216 arg2 = &temp2;
29217 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29218 }
29219 {
29220 PyThreadState* __tstate = wxPyBeginAllowThreads();
29221 (arg1)->CrossHair((wxPoint const &)*arg2);
29222 wxPyEndAllowThreads(__tstate);
29223 if (PyErr_Occurred()) SWIG_fail;
29224 }
29225 resultobj = SWIG_Py_Void();
29226 return resultobj;
29227 fail:
29228 return NULL;
29229 }
29230
29231
29232 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29233 PyObject *resultobj = 0;
29234 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29235 int arg2 ;
29236 int arg3 ;
29237 int arg4 ;
29238 int arg5 ;
29239 int arg6 ;
29240 int arg7 ;
29241 void *argp1 = 0 ;
29242 int res1 = 0 ;
29243 int val2 ;
29244 int ecode2 = 0 ;
29245 int val3 ;
29246 int ecode3 = 0 ;
29247 int val4 ;
29248 int ecode4 = 0 ;
29249 int val5 ;
29250 int ecode5 = 0 ;
29251 int val6 ;
29252 int ecode6 = 0 ;
29253 int val7 ;
29254 int ecode7 = 0 ;
29255 PyObject * obj0 = 0 ;
29256 PyObject * obj1 = 0 ;
29257 PyObject * obj2 = 0 ;
29258 PyObject * obj3 = 0 ;
29259 PyObject * obj4 = 0 ;
29260 PyObject * obj5 = 0 ;
29261 PyObject * obj6 = 0 ;
29262 char * kwnames[] = {
29263 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
29264 };
29265
29266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29268 if (!SWIG_IsOK(res1)) {
29269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29270 }
29271 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29272 ecode2 = SWIG_AsVal_int(obj1, &val2);
29273 if (!SWIG_IsOK(ecode2)) {
29274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
29275 }
29276 arg2 = static_cast< int >(val2);
29277 ecode3 = SWIG_AsVal_int(obj2, &val3);
29278 if (!SWIG_IsOK(ecode3)) {
29279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
29280 }
29281 arg3 = static_cast< int >(val3);
29282 ecode4 = SWIG_AsVal_int(obj3, &val4);
29283 if (!SWIG_IsOK(ecode4)) {
29284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
29285 }
29286 arg4 = static_cast< int >(val4);
29287 ecode5 = SWIG_AsVal_int(obj4, &val5);
29288 if (!SWIG_IsOK(ecode5)) {
29289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
29290 }
29291 arg5 = static_cast< int >(val5);
29292 ecode6 = SWIG_AsVal_int(obj5, &val6);
29293 if (!SWIG_IsOK(ecode6)) {
29294 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
29295 }
29296 arg6 = static_cast< int >(val6);
29297 ecode7 = SWIG_AsVal_int(obj6, &val7);
29298 if (!SWIG_IsOK(ecode7)) {
29299 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
29300 }
29301 arg7 = static_cast< int >(val7);
29302 {
29303 PyThreadState* __tstate = wxPyBeginAllowThreads();
29304 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
29305 wxPyEndAllowThreads(__tstate);
29306 if (PyErr_Occurred()) SWIG_fail;
29307 }
29308 resultobj = SWIG_Py_Void();
29309 return resultobj;
29310 fail:
29311 return NULL;
29312 }
29313
29314
29315 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29316 PyObject *resultobj = 0;
29317 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29318 wxPoint *arg2 = 0 ;
29319 wxPoint *arg3 = 0 ;
29320 wxPoint *arg4 = 0 ;
29321 void *argp1 = 0 ;
29322 int res1 = 0 ;
29323 wxPoint temp2 ;
29324 wxPoint temp3 ;
29325 wxPoint temp4 ;
29326 PyObject * obj0 = 0 ;
29327 PyObject * obj1 = 0 ;
29328 PyObject * obj2 = 0 ;
29329 PyObject * obj3 = 0 ;
29330 char * kwnames[] = {
29331 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
29332 };
29333
29334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29336 if (!SWIG_IsOK(res1)) {
29337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29338 }
29339 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29340 {
29341 arg2 = &temp2;
29342 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29343 }
29344 {
29345 arg3 = &temp3;
29346 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29347 }
29348 {
29349 arg4 = &temp4;
29350 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29351 }
29352 {
29353 PyThreadState* __tstate = wxPyBeginAllowThreads();
29354 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
29355 wxPyEndAllowThreads(__tstate);
29356 if (PyErr_Occurred()) SWIG_fail;
29357 }
29358 resultobj = SWIG_Py_Void();
29359 return resultobj;
29360 fail:
29361 return NULL;
29362 }
29363
29364
29365 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29366 PyObject *resultobj = 0;
29367 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29368 int arg2 ;
29369 int arg3 ;
29370 int arg4 ;
29371 int arg5 ;
29372 void *argp1 = 0 ;
29373 int res1 = 0 ;
29374 int val2 ;
29375 int ecode2 = 0 ;
29376 int val3 ;
29377 int ecode3 = 0 ;
29378 int val4 ;
29379 int ecode4 = 0 ;
29380 int val5 ;
29381 int ecode5 = 0 ;
29382 PyObject * obj0 = 0 ;
29383 PyObject * obj1 = 0 ;
29384 PyObject * obj2 = 0 ;
29385 PyObject * obj3 = 0 ;
29386 PyObject * obj4 = 0 ;
29387 char * kwnames[] = {
29388 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29389 };
29390
29391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29393 if (!SWIG_IsOK(res1)) {
29394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29395 }
29396 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29397 ecode2 = SWIG_AsVal_int(obj1, &val2);
29398 if (!SWIG_IsOK(ecode2)) {
29399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
29400 }
29401 arg2 = static_cast< int >(val2);
29402 ecode3 = SWIG_AsVal_int(obj2, &val3);
29403 if (!SWIG_IsOK(ecode3)) {
29404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
29405 }
29406 arg3 = static_cast< int >(val3);
29407 ecode4 = SWIG_AsVal_int(obj3, &val4);
29408 if (!SWIG_IsOK(ecode4)) {
29409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
29410 }
29411 arg4 = static_cast< int >(val4);
29412 ecode5 = SWIG_AsVal_int(obj4, &val5);
29413 if (!SWIG_IsOK(ecode5)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
29415 }
29416 arg5 = static_cast< int >(val5);
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
29420 wxPyEndAllowThreads(__tstate);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 resultobj = SWIG_Py_Void();
29424 return resultobj;
29425 fail:
29426 return NULL;
29427 }
29428
29429
29430 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29431 PyObject *resultobj = 0;
29432 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29433 wxRect *arg2 = 0 ;
29434 void *argp1 = 0 ;
29435 int res1 = 0 ;
29436 wxRect temp2 ;
29437 PyObject * obj0 = 0 ;
29438 PyObject * obj1 = 0 ;
29439 char * kwnames[] = {
29440 (char *) "self",(char *) "rect", NULL
29441 };
29442
29443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
29444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29445 if (!SWIG_IsOK(res1)) {
29446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29447 }
29448 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29449 {
29450 arg2 = &temp2;
29451 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29452 }
29453 {
29454 PyThreadState* __tstate = wxPyBeginAllowThreads();
29455 (arg1)->DrawCheckMark((wxRect const &)*arg2);
29456 wxPyEndAllowThreads(__tstate);
29457 if (PyErr_Occurred()) SWIG_fail;
29458 }
29459 resultobj = SWIG_Py_Void();
29460 return resultobj;
29461 fail:
29462 return NULL;
29463 }
29464
29465
29466 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29467 PyObject *resultobj = 0;
29468 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29469 int arg2 ;
29470 int arg3 ;
29471 int arg4 ;
29472 int arg5 ;
29473 double arg6 ;
29474 double arg7 ;
29475 void *argp1 = 0 ;
29476 int res1 = 0 ;
29477 int val2 ;
29478 int ecode2 = 0 ;
29479 int val3 ;
29480 int ecode3 = 0 ;
29481 int val4 ;
29482 int ecode4 = 0 ;
29483 int val5 ;
29484 int ecode5 = 0 ;
29485 double val6 ;
29486 int ecode6 = 0 ;
29487 double val7 ;
29488 int ecode7 = 0 ;
29489 PyObject * obj0 = 0 ;
29490 PyObject * obj1 = 0 ;
29491 PyObject * obj2 = 0 ;
29492 PyObject * obj3 = 0 ;
29493 PyObject * obj4 = 0 ;
29494 PyObject * obj5 = 0 ;
29495 PyObject * obj6 = 0 ;
29496 char * kwnames[] = {
29497 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
29498 };
29499
29500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29502 if (!SWIG_IsOK(res1)) {
29503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29504 }
29505 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29506 ecode2 = SWIG_AsVal_int(obj1, &val2);
29507 if (!SWIG_IsOK(ecode2)) {
29508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
29509 }
29510 arg2 = static_cast< int >(val2);
29511 ecode3 = SWIG_AsVal_int(obj2, &val3);
29512 if (!SWIG_IsOK(ecode3)) {
29513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
29514 }
29515 arg3 = static_cast< int >(val3);
29516 ecode4 = SWIG_AsVal_int(obj3, &val4);
29517 if (!SWIG_IsOK(ecode4)) {
29518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
29519 }
29520 arg4 = static_cast< int >(val4);
29521 ecode5 = SWIG_AsVal_int(obj4, &val5);
29522 if (!SWIG_IsOK(ecode5)) {
29523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
29524 }
29525 arg5 = static_cast< int >(val5);
29526 ecode6 = SWIG_AsVal_double(obj5, &val6);
29527 if (!SWIG_IsOK(ecode6)) {
29528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
29529 }
29530 arg6 = static_cast< double >(val6);
29531 ecode7 = SWIG_AsVal_double(obj6, &val7);
29532 if (!SWIG_IsOK(ecode7)) {
29533 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
29534 }
29535 arg7 = static_cast< double >(val7);
29536 {
29537 PyThreadState* __tstate = wxPyBeginAllowThreads();
29538 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
29539 wxPyEndAllowThreads(__tstate);
29540 if (PyErr_Occurred()) SWIG_fail;
29541 }
29542 resultobj = SWIG_Py_Void();
29543 return resultobj;
29544 fail:
29545 return NULL;
29546 }
29547
29548
29549 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29550 PyObject *resultobj = 0;
29551 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29552 wxPoint *arg2 = 0 ;
29553 wxSize *arg3 = 0 ;
29554 double arg4 ;
29555 double arg5 ;
29556 void *argp1 = 0 ;
29557 int res1 = 0 ;
29558 wxPoint temp2 ;
29559 wxSize temp3 ;
29560 double val4 ;
29561 int ecode4 = 0 ;
29562 double val5 ;
29563 int ecode5 = 0 ;
29564 PyObject * obj0 = 0 ;
29565 PyObject * obj1 = 0 ;
29566 PyObject * obj2 = 0 ;
29567 PyObject * obj3 = 0 ;
29568 PyObject * obj4 = 0 ;
29569 char * kwnames[] = {
29570 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
29571 };
29572
29573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29575 if (!SWIG_IsOK(res1)) {
29576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29577 }
29578 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29579 {
29580 arg2 = &temp2;
29581 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29582 }
29583 {
29584 arg3 = &temp3;
29585 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29586 }
29587 ecode4 = SWIG_AsVal_double(obj3, &val4);
29588 if (!SWIG_IsOK(ecode4)) {
29589 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
29590 }
29591 arg4 = static_cast< double >(val4);
29592 ecode5 = SWIG_AsVal_double(obj4, &val5);
29593 if (!SWIG_IsOK(ecode5)) {
29594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
29595 }
29596 arg5 = static_cast< double >(val5);
29597 {
29598 PyThreadState* __tstate = wxPyBeginAllowThreads();
29599 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
29600 wxPyEndAllowThreads(__tstate);
29601 if (PyErr_Occurred()) SWIG_fail;
29602 }
29603 resultobj = SWIG_Py_Void();
29604 return resultobj;
29605 fail:
29606 return NULL;
29607 }
29608
29609
29610 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29611 PyObject *resultobj = 0;
29612 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29613 int arg2 ;
29614 int arg3 ;
29615 void *argp1 = 0 ;
29616 int res1 = 0 ;
29617 int val2 ;
29618 int ecode2 = 0 ;
29619 int val3 ;
29620 int ecode3 = 0 ;
29621 PyObject * obj0 = 0 ;
29622 PyObject * obj1 = 0 ;
29623 PyObject * obj2 = 0 ;
29624 char * kwnames[] = {
29625 (char *) "self",(char *) "x",(char *) "y", NULL
29626 };
29627
29628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29630 if (!SWIG_IsOK(res1)) {
29631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29632 }
29633 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29634 ecode2 = SWIG_AsVal_int(obj1, &val2);
29635 if (!SWIG_IsOK(ecode2)) {
29636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
29637 }
29638 arg2 = static_cast< int >(val2);
29639 ecode3 = SWIG_AsVal_int(obj2, &val3);
29640 if (!SWIG_IsOK(ecode3)) {
29641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
29642 }
29643 arg3 = static_cast< int >(val3);
29644 {
29645 PyThreadState* __tstate = wxPyBeginAllowThreads();
29646 (arg1)->DrawPoint(arg2,arg3);
29647 wxPyEndAllowThreads(__tstate);
29648 if (PyErr_Occurred()) SWIG_fail;
29649 }
29650 resultobj = SWIG_Py_Void();
29651 return resultobj;
29652 fail:
29653 return NULL;
29654 }
29655
29656
29657 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29658 PyObject *resultobj = 0;
29659 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29660 wxPoint *arg2 = 0 ;
29661 void *argp1 = 0 ;
29662 int res1 = 0 ;
29663 wxPoint temp2 ;
29664 PyObject * obj0 = 0 ;
29665 PyObject * obj1 = 0 ;
29666 char * kwnames[] = {
29667 (char *) "self",(char *) "pt", NULL
29668 };
29669
29670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29672 if (!SWIG_IsOK(res1)) {
29673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29674 }
29675 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29676 {
29677 arg2 = &temp2;
29678 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29679 }
29680 {
29681 PyThreadState* __tstate = wxPyBeginAllowThreads();
29682 (arg1)->DrawPoint((wxPoint const &)*arg2);
29683 wxPyEndAllowThreads(__tstate);
29684 if (PyErr_Occurred()) SWIG_fail;
29685 }
29686 resultobj = SWIG_Py_Void();
29687 return resultobj;
29688 fail:
29689 return NULL;
29690 }
29691
29692
29693 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29694 PyObject *resultobj = 0;
29695 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29696 int arg2 ;
29697 int arg3 ;
29698 int arg4 ;
29699 int arg5 ;
29700 void *argp1 = 0 ;
29701 int res1 = 0 ;
29702 int val2 ;
29703 int ecode2 = 0 ;
29704 int val3 ;
29705 int ecode3 = 0 ;
29706 int val4 ;
29707 int ecode4 = 0 ;
29708 int val5 ;
29709 int ecode5 = 0 ;
29710 PyObject * obj0 = 0 ;
29711 PyObject * obj1 = 0 ;
29712 PyObject * obj2 = 0 ;
29713 PyObject * obj3 = 0 ;
29714 PyObject * obj4 = 0 ;
29715 char * kwnames[] = {
29716 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29717 };
29718
29719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29721 if (!SWIG_IsOK(res1)) {
29722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29723 }
29724 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29725 ecode2 = SWIG_AsVal_int(obj1, &val2);
29726 if (!SWIG_IsOK(ecode2)) {
29727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
29728 }
29729 arg2 = static_cast< int >(val2);
29730 ecode3 = SWIG_AsVal_int(obj2, &val3);
29731 if (!SWIG_IsOK(ecode3)) {
29732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
29733 }
29734 arg3 = static_cast< int >(val3);
29735 ecode4 = SWIG_AsVal_int(obj3, &val4);
29736 if (!SWIG_IsOK(ecode4)) {
29737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
29738 }
29739 arg4 = static_cast< int >(val4);
29740 ecode5 = SWIG_AsVal_int(obj4, &val5);
29741 if (!SWIG_IsOK(ecode5)) {
29742 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
29743 }
29744 arg5 = static_cast< int >(val5);
29745 {
29746 PyThreadState* __tstate = wxPyBeginAllowThreads();
29747 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29748 wxPyEndAllowThreads(__tstate);
29749 if (PyErr_Occurred()) SWIG_fail;
29750 }
29751 resultobj = SWIG_Py_Void();
29752 return resultobj;
29753 fail:
29754 return NULL;
29755 }
29756
29757
29758 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29759 PyObject *resultobj = 0;
29760 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29761 wxRect *arg2 = 0 ;
29762 void *argp1 = 0 ;
29763 int res1 = 0 ;
29764 wxRect temp2 ;
29765 PyObject * obj0 = 0 ;
29766 PyObject * obj1 = 0 ;
29767 char * kwnames[] = {
29768 (char *) "self",(char *) "rect", NULL
29769 };
29770
29771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
29772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29773 if (!SWIG_IsOK(res1)) {
29774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29775 }
29776 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29777 {
29778 arg2 = &temp2;
29779 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29780 }
29781 {
29782 PyThreadState* __tstate = wxPyBeginAllowThreads();
29783 (arg1)->DrawRectangle((wxRect const &)*arg2);
29784 wxPyEndAllowThreads(__tstate);
29785 if (PyErr_Occurred()) SWIG_fail;
29786 }
29787 resultobj = SWIG_Py_Void();
29788 return resultobj;
29789 fail:
29790 return NULL;
29791 }
29792
29793
29794 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29795 PyObject *resultobj = 0;
29796 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29797 wxPoint *arg2 = 0 ;
29798 wxSize *arg3 = 0 ;
29799 void *argp1 = 0 ;
29800 int res1 = 0 ;
29801 wxPoint temp2 ;
29802 wxSize temp3 ;
29803 PyObject * obj0 = 0 ;
29804 PyObject * obj1 = 0 ;
29805 PyObject * obj2 = 0 ;
29806 char * kwnames[] = {
29807 (char *) "self",(char *) "pt",(char *) "sz", NULL
29808 };
29809
29810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29812 if (!SWIG_IsOK(res1)) {
29813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29814 }
29815 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29816 {
29817 arg2 = &temp2;
29818 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29819 }
29820 {
29821 arg3 = &temp3;
29822 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29823 }
29824 {
29825 PyThreadState* __tstate = wxPyBeginAllowThreads();
29826 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
29827 wxPyEndAllowThreads(__tstate);
29828 if (PyErr_Occurred()) SWIG_fail;
29829 }
29830 resultobj = SWIG_Py_Void();
29831 return resultobj;
29832 fail:
29833 return NULL;
29834 }
29835
29836
29837 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29838 PyObject *resultobj = 0;
29839 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29840 int arg2 ;
29841 int arg3 ;
29842 int arg4 ;
29843 int arg5 ;
29844 double arg6 ;
29845 void *argp1 = 0 ;
29846 int res1 = 0 ;
29847 int val2 ;
29848 int ecode2 = 0 ;
29849 int val3 ;
29850 int ecode3 = 0 ;
29851 int val4 ;
29852 int ecode4 = 0 ;
29853 int val5 ;
29854 int ecode5 = 0 ;
29855 double val6 ;
29856 int ecode6 = 0 ;
29857 PyObject * obj0 = 0 ;
29858 PyObject * obj1 = 0 ;
29859 PyObject * obj2 = 0 ;
29860 PyObject * obj3 = 0 ;
29861 PyObject * obj4 = 0 ;
29862 PyObject * obj5 = 0 ;
29863 char * kwnames[] = {
29864 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
29865 };
29866
29867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29869 if (!SWIG_IsOK(res1)) {
29870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29871 }
29872 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29873 ecode2 = SWIG_AsVal_int(obj1, &val2);
29874 if (!SWIG_IsOK(ecode2)) {
29875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
29876 }
29877 arg2 = static_cast< int >(val2);
29878 ecode3 = SWIG_AsVal_int(obj2, &val3);
29879 if (!SWIG_IsOK(ecode3)) {
29880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
29881 }
29882 arg3 = static_cast< int >(val3);
29883 ecode4 = SWIG_AsVal_int(obj3, &val4);
29884 if (!SWIG_IsOK(ecode4)) {
29885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
29886 }
29887 arg4 = static_cast< int >(val4);
29888 ecode5 = SWIG_AsVal_int(obj4, &val5);
29889 if (!SWIG_IsOK(ecode5)) {
29890 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
29891 }
29892 arg5 = static_cast< int >(val5);
29893 ecode6 = SWIG_AsVal_double(obj5, &val6);
29894 if (!SWIG_IsOK(ecode6)) {
29895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
29896 }
29897 arg6 = static_cast< double >(val6);
29898 {
29899 PyThreadState* __tstate = wxPyBeginAllowThreads();
29900 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29901 wxPyEndAllowThreads(__tstate);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 }
29904 resultobj = SWIG_Py_Void();
29905 return resultobj;
29906 fail:
29907 return NULL;
29908 }
29909
29910
29911 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29912 PyObject *resultobj = 0;
29913 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29914 wxRect *arg2 = 0 ;
29915 double arg3 ;
29916 void *argp1 = 0 ;
29917 int res1 = 0 ;
29918 wxRect temp2 ;
29919 double val3 ;
29920 int ecode3 = 0 ;
29921 PyObject * obj0 = 0 ;
29922 PyObject * obj1 = 0 ;
29923 PyObject * obj2 = 0 ;
29924 char * kwnames[] = {
29925 (char *) "self",(char *) "r",(char *) "radius", NULL
29926 };
29927
29928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29930 if (!SWIG_IsOK(res1)) {
29931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29932 }
29933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29934 {
29935 arg2 = &temp2;
29936 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29937 }
29938 ecode3 = SWIG_AsVal_double(obj2, &val3);
29939 if (!SWIG_IsOK(ecode3)) {
29940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
29941 }
29942 arg3 = static_cast< double >(val3);
29943 {
29944 PyThreadState* __tstate = wxPyBeginAllowThreads();
29945 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
29946 wxPyEndAllowThreads(__tstate);
29947 if (PyErr_Occurred()) SWIG_fail;
29948 }
29949 resultobj = SWIG_Py_Void();
29950 return resultobj;
29951 fail:
29952 return NULL;
29953 }
29954
29955
29956 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29957 PyObject *resultobj = 0;
29958 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29959 wxPoint *arg2 = 0 ;
29960 wxSize *arg3 = 0 ;
29961 double arg4 ;
29962 void *argp1 = 0 ;
29963 int res1 = 0 ;
29964 wxPoint temp2 ;
29965 wxSize temp3 ;
29966 double val4 ;
29967 int ecode4 = 0 ;
29968 PyObject * obj0 = 0 ;
29969 PyObject * obj1 = 0 ;
29970 PyObject * obj2 = 0 ;
29971 PyObject * obj3 = 0 ;
29972 char * kwnames[] = {
29973 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29974 };
29975
29976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29978 if (!SWIG_IsOK(res1)) {
29979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29980 }
29981 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29982 {
29983 arg2 = &temp2;
29984 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29985 }
29986 {
29987 arg3 = &temp3;
29988 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29989 }
29990 ecode4 = SWIG_AsVal_double(obj3, &val4);
29991 if (!SWIG_IsOK(ecode4)) {
29992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29993 }
29994 arg4 = static_cast< double >(val4);
29995 {
29996 PyThreadState* __tstate = wxPyBeginAllowThreads();
29997 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29998 wxPyEndAllowThreads(__tstate);
29999 if (PyErr_Occurred()) SWIG_fail;
30000 }
30001 resultobj = SWIG_Py_Void();
30002 return resultobj;
30003 fail:
30004 return NULL;
30005 }
30006
30007
30008 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30009 PyObject *resultobj = 0;
30010 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30011 int arg2 ;
30012 int arg3 ;
30013 int arg4 ;
30014 void *argp1 = 0 ;
30015 int res1 = 0 ;
30016 int val2 ;
30017 int ecode2 = 0 ;
30018 int val3 ;
30019 int ecode3 = 0 ;
30020 int val4 ;
30021 int ecode4 = 0 ;
30022 PyObject * obj0 = 0 ;
30023 PyObject * obj1 = 0 ;
30024 PyObject * obj2 = 0 ;
30025 PyObject * obj3 = 0 ;
30026 char * kwnames[] = {
30027 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
30028 };
30029
30030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30032 if (!SWIG_IsOK(res1)) {
30033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30034 }
30035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30036 ecode2 = SWIG_AsVal_int(obj1, &val2);
30037 if (!SWIG_IsOK(ecode2)) {
30038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
30039 }
30040 arg2 = static_cast< int >(val2);
30041 ecode3 = SWIG_AsVal_int(obj2, &val3);
30042 if (!SWIG_IsOK(ecode3)) {
30043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
30044 }
30045 arg3 = static_cast< int >(val3);
30046 ecode4 = SWIG_AsVal_int(obj3, &val4);
30047 if (!SWIG_IsOK(ecode4)) {
30048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
30049 }
30050 arg4 = static_cast< int >(val4);
30051 {
30052 PyThreadState* __tstate = wxPyBeginAllowThreads();
30053 (arg1)->DrawCircle(arg2,arg3,arg4);
30054 wxPyEndAllowThreads(__tstate);
30055 if (PyErr_Occurred()) SWIG_fail;
30056 }
30057 resultobj = SWIG_Py_Void();
30058 return resultobj;
30059 fail:
30060 return NULL;
30061 }
30062
30063
30064 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30065 PyObject *resultobj = 0;
30066 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30067 wxPoint *arg2 = 0 ;
30068 int arg3 ;
30069 void *argp1 = 0 ;
30070 int res1 = 0 ;
30071 wxPoint temp2 ;
30072 int val3 ;
30073 int ecode3 = 0 ;
30074 PyObject * obj0 = 0 ;
30075 PyObject * obj1 = 0 ;
30076 PyObject * obj2 = 0 ;
30077 char * kwnames[] = {
30078 (char *) "self",(char *) "pt",(char *) "radius", NULL
30079 };
30080
30081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30083 if (!SWIG_IsOK(res1)) {
30084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30085 }
30086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30087 {
30088 arg2 = &temp2;
30089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30090 }
30091 ecode3 = SWIG_AsVal_int(obj2, &val3);
30092 if (!SWIG_IsOK(ecode3)) {
30093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
30094 }
30095 arg3 = static_cast< int >(val3);
30096 {
30097 PyThreadState* __tstate = wxPyBeginAllowThreads();
30098 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
30099 wxPyEndAllowThreads(__tstate);
30100 if (PyErr_Occurred()) SWIG_fail;
30101 }
30102 resultobj = SWIG_Py_Void();
30103 return resultobj;
30104 fail:
30105 return NULL;
30106 }
30107
30108
30109 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30110 PyObject *resultobj = 0;
30111 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30112 int arg2 ;
30113 int arg3 ;
30114 int arg4 ;
30115 int arg5 ;
30116 void *argp1 = 0 ;
30117 int res1 = 0 ;
30118 int val2 ;
30119 int ecode2 = 0 ;
30120 int val3 ;
30121 int ecode3 = 0 ;
30122 int val4 ;
30123 int ecode4 = 0 ;
30124 int val5 ;
30125 int ecode5 = 0 ;
30126 PyObject * obj0 = 0 ;
30127 PyObject * obj1 = 0 ;
30128 PyObject * obj2 = 0 ;
30129 PyObject * obj3 = 0 ;
30130 PyObject * obj4 = 0 ;
30131 char * kwnames[] = {
30132 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30133 };
30134
30135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30137 if (!SWIG_IsOK(res1)) {
30138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30139 }
30140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30141 ecode2 = SWIG_AsVal_int(obj1, &val2);
30142 if (!SWIG_IsOK(ecode2)) {
30143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
30144 }
30145 arg2 = static_cast< int >(val2);
30146 ecode3 = SWIG_AsVal_int(obj2, &val3);
30147 if (!SWIG_IsOK(ecode3)) {
30148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
30149 }
30150 arg3 = static_cast< int >(val3);
30151 ecode4 = SWIG_AsVal_int(obj3, &val4);
30152 if (!SWIG_IsOK(ecode4)) {
30153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
30154 }
30155 arg4 = static_cast< int >(val4);
30156 ecode5 = SWIG_AsVal_int(obj4, &val5);
30157 if (!SWIG_IsOK(ecode5)) {
30158 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
30159 }
30160 arg5 = static_cast< int >(val5);
30161 {
30162 PyThreadState* __tstate = wxPyBeginAllowThreads();
30163 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30164 wxPyEndAllowThreads(__tstate);
30165 if (PyErr_Occurred()) SWIG_fail;
30166 }
30167 resultobj = SWIG_Py_Void();
30168 return resultobj;
30169 fail:
30170 return NULL;
30171 }
30172
30173
30174 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30175 PyObject *resultobj = 0;
30176 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30177 wxRect *arg2 = 0 ;
30178 void *argp1 = 0 ;
30179 int res1 = 0 ;
30180 wxRect temp2 ;
30181 PyObject * obj0 = 0 ;
30182 PyObject * obj1 = 0 ;
30183 char * kwnames[] = {
30184 (char *) "self",(char *) "rect", NULL
30185 };
30186
30187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
30188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30189 if (!SWIG_IsOK(res1)) {
30190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30191 }
30192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30193 {
30194 arg2 = &temp2;
30195 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30196 }
30197 {
30198 PyThreadState* __tstate = wxPyBeginAllowThreads();
30199 (arg1)->DrawEllipse((wxRect const &)*arg2);
30200 wxPyEndAllowThreads(__tstate);
30201 if (PyErr_Occurred()) SWIG_fail;
30202 }
30203 resultobj = SWIG_Py_Void();
30204 return resultobj;
30205 fail:
30206 return NULL;
30207 }
30208
30209
30210 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30211 PyObject *resultobj = 0;
30212 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30213 wxPoint *arg2 = 0 ;
30214 wxSize *arg3 = 0 ;
30215 void *argp1 = 0 ;
30216 int res1 = 0 ;
30217 wxPoint temp2 ;
30218 wxSize temp3 ;
30219 PyObject * obj0 = 0 ;
30220 PyObject * obj1 = 0 ;
30221 PyObject * obj2 = 0 ;
30222 char * kwnames[] = {
30223 (char *) "self",(char *) "pt",(char *) "sz", NULL
30224 };
30225
30226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30228 if (!SWIG_IsOK(res1)) {
30229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30230 }
30231 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30232 {
30233 arg2 = &temp2;
30234 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30235 }
30236 {
30237 arg3 = &temp3;
30238 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30239 }
30240 {
30241 PyThreadState* __tstate = wxPyBeginAllowThreads();
30242 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
30243 wxPyEndAllowThreads(__tstate);
30244 if (PyErr_Occurred()) SWIG_fail;
30245 }
30246 resultobj = SWIG_Py_Void();
30247 return resultobj;
30248 fail:
30249 return NULL;
30250 }
30251
30252
30253 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30254 PyObject *resultobj = 0;
30255 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30256 wxIcon *arg2 = 0 ;
30257 int arg3 ;
30258 int arg4 ;
30259 void *argp1 = 0 ;
30260 int res1 = 0 ;
30261 void *argp2 = 0 ;
30262 int res2 = 0 ;
30263 int val3 ;
30264 int ecode3 = 0 ;
30265 int val4 ;
30266 int ecode4 = 0 ;
30267 PyObject * obj0 = 0 ;
30268 PyObject * obj1 = 0 ;
30269 PyObject * obj2 = 0 ;
30270 PyObject * obj3 = 0 ;
30271 char * kwnames[] = {
30272 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
30273 };
30274
30275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30277 if (!SWIG_IsOK(res1)) {
30278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30279 }
30280 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30282 if (!SWIG_IsOK(res2)) {
30283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30284 }
30285 if (!argp2) {
30286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30287 }
30288 arg2 = reinterpret_cast< wxIcon * >(argp2);
30289 ecode3 = SWIG_AsVal_int(obj2, &val3);
30290 if (!SWIG_IsOK(ecode3)) {
30291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
30292 }
30293 arg3 = static_cast< int >(val3);
30294 ecode4 = SWIG_AsVal_int(obj3, &val4);
30295 if (!SWIG_IsOK(ecode4)) {
30296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
30297 }
30298 arg4 = static_cast< int >(val4);
30299 {
30300 PyThreadState* __tstate = wxPyBeginAllowThreads();
30301 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 resultobj = SWIG_Py_Void();
30306 return resultobj;
30307 fail:
30308 return NULL;
30309 }
30310
30311
30312 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30313 PyObject *resultobj = 0;
30314 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30315 wxIcon *arg2 = 0 ;
30316 wxPoint *arg3 = 0 ;
30317 void *argp1 = 0 ;
30318 int res1 = 0 ;
30319 void *argp2 = 0 ;
30320 int res2 = 0 ;
30321 wxPoint temp3 ;
30322 PyObject * obj0 = 0 ;
30323 PyObject * obj1 = 0 ;
30324 PyObject * obj2 = 0 ;
30325 char * kwnames[] = {
30326 (char *) "self",(char *) "icon",(char *) "pt", NULL
30327 };
30328
30329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30331 if (!SWIG_IsOK(res1)) {
30332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30333 }
30334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30336 if (!SWIG_IsOK(res2)) {
30337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30338 }
30339 if (!argp2) {
30340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30341 }
30342 arg2 = reinterpret_cast< wxIcon * >(argp2);
30343 {
30344 arg3 = &temp3;
30345 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30346 }
30347 {
30348 PyThreadState* __tstate = wxPyBeginAllowThreads();
30349 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
30350 wxPyEndAllowThreads(__tstate);
30351 if (PyErr_Occurred()) SWIG_fail;
30352 }
30353 resultobj = SWIG_Py_Void();
30354 return resultobj;
30355 fail:
30356 return NULL;
30357 }
30358
30359
30360 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30361 PyObject *resultobj = 0;
30362 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30363 wxBitmap *arg2 = 0 ;
30364 int arg3 ;
30365 int arg4 ;
30366 bool arg5 = (bool) false ;
30367 void *argp1 = 0 ;
30368 int res1 = 0 ;
30369 void *argp2 = 0 ;
30370 int res2 = 0 ;
30371 int val3 ;
30372 int ecode3 = 0 ;
30373 int val4 ;
30374 int ecode4 = 0 ;
30375 bool val5 ;
30376 int ecode5 = 0 ;
30377 PyObject * obj0 = 0 ;
30378 PyObject * obj1 = 0 ;
30379 PyObject * obj2 = 0 ;
30380 PyObject * obj3 = 0 ;
30381 PyObject * obj4 = 0 ;
30382 char * kwnames[] = {
30383 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
30384 };
30385
30386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30388 if (!SWIG_IsOK(res1)) {
30389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30390 }
30391 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30393 if (!SWIG_IsOK(res2)) {
30394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30395 }
30396 if (!argp2) {
30397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30398 }
30399 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30400 ecode3 = SWIG_AsVal_int(obj2, &val3);
30401 if (!SWIG_IsOK(ecode3)) {
30402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', 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_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
30408 }
30409 arg4 = static_cast< int >(val4);
30410 if (obj4) {
30411 ecode5 = SWIG_AsVal_bool(obj4, &val5);
30412 if (!SWIG_IsOK(ecode5)) {
30413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
30414 }
30415 arg5 = static_cast< bool >(val5);
30416 }
30417 {
30418 PyThreadState* __tstate = wxPyBeginAllowThreads();
30419 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
30420 wxPyEndAllowThreads(__tstate);
30421 if (PyErr_Occurred()) SWIG_fail;
30422 }
30423 resultobj = SWIG_Py_Void();
30424 return resultobj;
30425 fail:
30426 return NULL;
30427 }
30428
30429
30430 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30431 PyObject *resultobj = 0;
30432 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30433 wxBitmap *arg2 = 0 ;
30434 wxPoint *arg3 = 0 ;
30435 bool arg4 = (bool) false ;
30436 void *argp1 = 0 ;
30437 int res1 = 0 ;
30438 void *argp2 = 0 ;
30439 int res2 = 0 ;
30440 wxPoint temp3 ;
30441 bool val4 ;
30442 int ecode4 = 0 ;
30443 PyObject * obj0 = 0 ;
30444 PyObject * obj1 = 0 ;
30445 PyObject * obj2 = 0 ;
30446 PyObject * obj3 = 0 ;
30447 char * kwnames[] = {
30448 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
30449 };
30450
30451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30453 if (!SWIG_IsOK(res1)) {
30454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30455 }
30456 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30458 if (!SWIG_IsOK(res2)) {
30459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30460 }
30461 if (!argp2) {
30462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30463 }
30464 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30465 {
30466 arg3 = &temp3;
30467 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30468 }
30469 if (obj3) {
30470 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30471 if (!SWIG_IsOK(ecode4)) {
30472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
30473 }
30474 arg4 = static_cast< bool >(val4);
30475 }
30476 {
30477 PyThreadState* __tstate = wxPyBeginAllowThreads();
30478 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
30479 wxPyEndAllowThreads(__tstate);
30480 if (PyErr_Occurred()) SWIG_fail;
30481 }
30482 resultobj = SWIG_Py_Void();
30483 return resultobj;
30484 fail:
30485 return NULL;
30486 }
30487
30488
30489 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30490 PyObject *resultobj = 0;
30491 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30492 wxString *arg2 = 0 ;
30493 int arg3 ;
30494 int arg4 ;
30495 void *argp1 = 0 ;
30496 int res1 = 0 ;
30497 bool temp2 = false ;
30498 int val3 ;
30499 int ecode3 = 0 ;
30500 int val4 ;
30501 int ecode4 = 0 ;
30502 PyObject * obj0 = 0 ;
30503 PyObject * obj1 = 0 ;
30504 PyObject * obj2 = 0 ;
30505 PyObject * obj3 = 0 ;
30506 char * kwnames[] = {
30507 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
30508 };
30509
30510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30512 if (!SWIG_IsOK(res1)) {
30513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30514 }
30515 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30516 {
30517 arg2 = wxString_in_helper(obj1);
30518 if (arg2 == NULL) SWIG_fail;
30519 temp2 = true;
30520 }
30521 ecode3 = SWIG_AsVal_int(obj2, &val3);
30522 if (!SWIG_IsOK(ecode3)) {
30523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
30524 }
30525 arg3 = static_cast< int >(val3);
30526 ecode4 = SWIG_AsVal_int(obj3, &val4);
30527 if (!SWIG_IsOK(ecode4)) {
30528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
30529 }
30530 arg4 = static_cast< int >(val4);
30531 {
30532 PyThreadState* __tstate = wxPyBeginAllowThreads();
30533 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
30534 wxPyEndAllowThreads(__tstate);
30535 if (PyErr_Occurred()) SWIG_fail;
30536 }
30537 resultobj = SWIG_Py_Void();
30538 {
30539 if (temp2)
30540 delete arg2;
30541 }
30542 return resultobj;
30543 fail:
30544 {
30545 if (temp2)
30546 delete arg2;
30547 }
30548 return NULL;
30549 }
30550
30551
30552 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30553 PyObject *resultobj = 0;
30554 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30555 wxString *arg2 = 0 ;
30556 wxPoint *arg3 = 0 ;
30557 void *argp1 = 0 ;
30558 int res1 = 0 ;
30559 bool temp2 = false ;
30560 wxPoint temp3 ;
30561 PyObject * obj0 = 0 ;
30562 PyObject * obj1 = 0 ;
30563 PyObject * obj2 = 0 ;
30564 char * kwnames[] = {
30565 (char *) "self",(char *) "text",(char *) "pt", NULL
30566 };
30567
30568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30570 if (!SWIG_IsOK(res1)) {
30571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30572 }
30573 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30574 {
30575 arg2 = wxString_in_helper(obj1);
30576 if (arg2 == NULL) SWIG_fail;
30577 temp2 = true;
30578 }
30579 {
30580 arg3 = &temp3;
30581 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30582 }
30583 {
30584 PyThreadState* __tstate = wxPyBeginAllowThreads();
30585 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
30586 wxPyEndAllowThreads(__tstate);
30587 if (PyErr_Occurred()) SWIG_fail;
30588 }
30589 resultobj = SWIG_Py_Void();
30590 {
30591 if (temp2)
30592 delete arg2;
30593 }
30594 return resultobj;
30595 fail:
30596 {
30597 if (temp2)
30598 delete arg2;
30599 }
30600 return NULL;
30601 }
30602
30603
30604 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30605 PyObject *resultobj = 0;
30606 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30607 wxString *arg2 = 0 ;
30608 int arg3 ;
30609 int arg4 ;
30610 double arg5 ;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613 bool temp2 = false ;
30614 int val3 ;
30615 int ecode3 = 0 ;
30616 int val4 ;
30617 int ecode4 = 0 ;
30618 double val5 ;
30619 int ecode5 = 0 ;
30620 PyObject * obj0 = 0 ;
30621 PyObject * obj1 = 0 ;
30622 PyObject * obj2 = 0 ;
30623 PyObject * obj3 = 0 ;
30624 PyObject * obj4 = 0 ;
30625 char * kwnames[] = {
30626 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
30627 };
30628
30629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30631 if (!SWIG_IsOK(res1)) {
30632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30633 }
30634 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30635 {
30636 arg2 = wxString_in_helper(obj1);
30637 if (arg2 == NULL) SWIG_fail;
30638 temp2 = true;
30639 }
30640 ecode3 = SWIG_AsVal_int(obj2, &val3);
30641 if (!SWIG_IsOK(ecode3)) {
30642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
30643 }
30644 arg3 = static_cast< int >(val3);
30645 ecode4 = SWIG_AsVal_int(obj3, &val4);
30646 if (!SWIG_IsOK(ecode4)) {
30647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
30648 }
30649 arg4 = static_cast< int >(val4);
30650 ecode5 = SWIG_AsVal_double(obj4, &val5);
30651 if (!SWIG_IsOK(ecode5)) {
30652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
30653 }
30654 arg5 = static_cast< double >(val5);
30655 {
30656 PyThreadState* __tstate = wxPyBeginAllowThreads();
30657 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
30658 wxPyEndAllowThreads(__tstate);
30659 if (PyErr_Occurred()) SWIG_fail;
30660 }
30661 resultobj = SWIG_Py_Void();
30662 {
30663 if (temp2)
30664 delete arg2;
30665 }
30666 return resultobj;
30667 fail:
30668 {
30669 if (temp2)
30670 delete arg2;
30671 }
30672 return NULL;
30673 }
30674
30675
30676 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30677 PyObject *resultobj = 0;
30678 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30679 wxString *arg2 = 0 ;
30680 wxPoint *arg3 = 0 ;
30681 double arg4 ;
30682 void *argp1 = 0 ;
30683 int res1 = 0 ;
30684 bool temp2 = false ;
30685 wxPoint temp3 ;
30686 double val4 ;
30687 int ecode4 = 0 ;
30688 PyObject * obj0 = 0 ;
30689 PyObject * obj1 = 0 ;
30690 PyObject * obj2 = 0 ;
30691 PyObject * obj3 = 0 ;
30692 char * kwnames[] = {
30693 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
30694 };
30695
30696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30698 if (!SWIG_IsOK(res1)) {
30699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30700 }
30701 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30702 {
30703 arg2 = wxString_in_helper(obj1);
30704 if (arg2 == NULL) SWIG_fail;
30705 temp2 = true;
30706 }
30707 {
30708 arg3 = &temp3;
30709 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30710 }
30711 ecode4 = SWIG_AsVal_double(obj3, &val4);
30712 if (!SWIG_IsOK(ecode4)) {
30713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
30714 }
30715 arg4 = static_cast< double >(val4);
30716 {
30717 PyThreadState* __tstate = wxPyBeginAllowThreads();
30718 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
30719 wxPyEndAllowThreads(__tstate);
30720 if (PyErr_Occurred()) SWIG_fail;
30721 }
30722 resultobj = SWIG_Py_Void();
30723 {
30724 if (temp2)
30725 delete arg2;
30726 }
30727 return resultobj;
30728 fail:
30729 {
30730 if (temp2)
30731 delete arg2;
30732 }
30733 return NULL;
30734 }
30735
30736
30737 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30738 PyObject *resultobj = 0;
30739 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30740 int arg2 ;
30741 wxPoint *arg3 = (wxPoint *) 0 ;
30742 int arg4 = (int) 0 ;
30743 int arg5 = (int) 0 ;
30744 void *argp1 = 0 ;
30745 int res1 = 0 ;
30746 int val4 ;
30747 int ecode4 = 0 ;
30748 int val5 ;
30749 int ecode5 = 0 ;
30750 PyObject * obj0 = 0 ;
30751 PyObject * obj1 = 0 ;
30752 PyObject * obj2 = 0 ;
30753 PyObject * obj3 = 0 ;
30754 char * kwnames[] = {
30755 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
30756 };
30757
30758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30760 if (!SWIG_IsOK(res1)) {
30761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30762 }
30763 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30764 {
30765 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30766 if (arg3 == NULL) SWIG_fail;
30767 }
30768 if (obj2) {
30769 ecode4 = SWIG_AsVal_int(obj2, &val4);
30770 if (!SWIG_IsOK(ecode4)) {
30771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
30772 }
30773 arg4 = static_cast< int >(val4);
30774 }
30775 if (obj3) {
30776 ecode5 = SWIG_AsVal_int(obj3, &val5);
30777 if (!SWIG_IsOK(ecode5)) {
30778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
30779 }
30780 arg5 = static_cast< int >(val5);
30781 }
30782 {
30783 PyThreadState* __tstate = wxPyBeginAllowThreads();
30784 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
30785 wxPyEndAllowThreads(__tstate);
30786 if (PyErr_Occurred()) SWIG_fail;
30787 }
30788 resultobj = SWIG_Py_Void();
30789 {
30790 if (arg3) delete [] arg3;
30791 }
30792 return resultobj;
30793 fail:
30794 {
30795 if (arg3) delete [] arg3;
30796 }
30797 return NULL;
30798 }
30799
30800
30801 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30802 PyObject *resultobj = 0;
30803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30804 int arg2 ;
30805 wxPoint *arg3 = (wxPoint *) 0 ;
30806 int arg4 = (int) 0 ;
30807 int arg5 = (int) 0 ;
30808 int arg6 = (int) wxODDEVEN_RULE ;
30809 void *argp1 = 0 ;
30810 int res1 = 0 ;
30811 int val4 ;
30812 int ecode4 = 0 ;
30813 int val5 ;
30814 int ecode5 = 0 ;
30815 int val6 ;
30816 int ecode6 = 0 ;
30817 PyObject * obj0 = 0 ;
30818 PyObject * obj1 = 0 ;
30819 PyObject * obj2 = 0 ;
30820 PyObject * obj3 = 0 ;
30821 PyObject * obj4 = 0 ;
30822 char * kwnames[] = {
30823 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
30824 };
30825
30826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30828 if (!SWIG_IsOK(res1)) {
30829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30830 }
30831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30832 {
30833 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30834 if (arg3 == NULL) SWIG_fail;
30835 }
30836 if (obj2) {
30837 ecode4 = SWIG_AsVal_int(obj2, &val4);
30838 if (!SWIG_IsOK(ecode4)) {
30839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
30840 }
30841 arg4 = static_cast< int >(val4);
30842 }
30843 if (obj3) {
30844 ecode5 = SWIG_AsVal_int(obj3, &val5);
30845 if (!SWIG_IsOK(ecode5)) {
30846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
30847 }
30848 arg5 = static_cast< int >(val5);
30849 }
30850 if (obj4) {
30851 ecode6 = SWIG_AsVal_int(obj4, &val6);
30852 if (!SWIG_IsOK(ecode6)) {
30853 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
30854 }
30855 arg6 = static_cast< int >(val6);
30856 }
30857 {
30858 PyThreadState* __tstate = wxPyBeginAllowThreads();
30859 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
30860 wxPyEndAllowThreads(__tstate);
30861 if (PyErr_Occurred()) SWIG_fail;
30862 }
30863 resultobj = SWIG_Py_Void();
30864 {
30865 if (arg3) delete [] arg3;
30866 }
30867 return resultobj;
30868 fail:
30869 {
30870 if (arg3) delete [] arg3;
30871 }
30872 return NULL;
30873 }
30874
30875
30876 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30877 PyObject *resultobj = 0;
30878 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30879 wxString *arg2 = 0 ;
30880 wxRect *arg3 = 0 ;
30881 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30882 int arg5 = (int) -1 ;
30883 void *argp1 = 0 ;
30884 int res1 = 0 ;
30885 bool temp2 = false ;
30886 wxRect temp3 ;
30887 int val4 ;
30888 int ecode4 = 0 ;
30889 int val5 ;
30890 int ecode5 = 0 ;
30891 PyObject * obj0 = 0 ;
30892 PyObject * obj1 = 0 ;
30893 PyObject * obj2 = 0 ;
30894 PyObject * obj3 = 0 ;
30895 PyObject * obj4 = 0 ;
30896 char * kwnames[] = {
30897 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30898 };
30899
30900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30902 if (!SWIG_IsOK(res1)) {
30903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30904 }
30905 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30906 {
30907 arg2 = wxString_in_helper(obj1);
30908 if (arg2 == NULL) SWIG_fail;
30909 temp2 = true;
30910 }
30911 {
30912 arg3 = &temp3;
30913 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30914 }
30915 if (obj3) {
30916 ecode4 = SWIG_AsVal_int(obj3, &val4);
30917 if (!SWIG_IsOK(ecode4)) {
30918 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
30919 }
30920 arg4 = static_cast< int >(val4);
30921 }
30922 if (obj4) {
30923 ecode5 = SWIG_AsVal_int(obj4, &val5);
30924 if (!SWIG_IsOK(ecode5)) {
30925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
30926 }
30927 arg5 = static_cast< int >(val5);
30928 }
30929 {
30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
30931 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
30932 wxPyEndAllowThreads(__tstate);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 }
30935 resultobj = SWIG_Py_Void();
30936 {
30937 if (temp2)
30938 delete arg2;
30939 }
30940 return resultobj;
30941 fail:
30942 {
30943 if (temp2)
30944 delete arg2;
30945 }
30946 return NULL;
30947 }
30948
30949
30950 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30951 PyObject *resultobj = 0;
30952 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30953 wxString *arg2 = 0 ;
30954 wxBitmap *arg3 = 0 ;
30955 wxRect *arg4 = 0 ;
30956 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30957 int arg6 = (int) -1 ;
30958 void *argp1 = 0 ;
30959 int res1 = 0 ;
30960 bool temp2 = false ;
30961 void *argp3 = 0 ;
30962 int res3 = 0 ;
30963 wxRect temp4 ;
30964 int val5 ;
30965 int ecode5 = 0 ;
30966 int val6 ;
30967 int ecode6 = 0 ;
30968 PyObject * obj0 = 0 ;
30969 PyObject * obj1 = 0 ;
30970 PyObject * obj2 = 0 ;
30971 PyObject * obj3 = 0 ;
30972 PyObject * obj4 = 0 ;
30973 PyObject * obj5 = 0 ;
30974 char * kwnames[] = {
30975 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30976 };
30977
30978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30980 if (!SWIG_IsOK(res1)) {
30981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30982 }
30983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30984 {
30985 arg2 = wxString_in_helper(obj1);
30986 if (arg2 == NULL) SWIG_fail;
30987 temp2 = true;
30988 }
30989 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30990 if (!SWIG_IsOK(res3)) {
30991 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30992 }
30993 if (!argp3) {
30994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30995 }
30996 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30997 {
30998 arg4 = &temp4;
30999 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31000 }
31001 if (obj4) {
31002 ecode5 = SWIG_AsVal_int(obj4, &val5);
31003 if (!SWIG_IsOK(ecode5)) {
31004 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
31005 }
31006 arg5 = static_cast< int >(val5);
31007 }
31008 if (obj5) {
31009 ecode6 = SWIG_AsVal_int(obj5, &val6);
31010 if (!SWIG_IsOK(ecode6)) {
31011 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
31012 }
31013 arg6 = static_cast< int >(val6);
31014 }
31015 {
31016 PyThreadState* __tstate = wxPyBeginAllowThreads();
31017 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
31018 wxPyEndAllowThreads(__tstate);
31019 if (PyErr_Occurred()) SWIG_fail;
31020 }
31021 resultobj = SWIG_Py_Void();
31022 {
31023 if (temp2)
31024 delete arg2;
31025 }
31026 return resultobj;
31027 fail:
31028 {
31029 if (temp2)
31030 delete arg2;
31031 }
31032 return NULL;
31033 }
31034
31035
31036 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31037 PyObject *resultobj = 0;
31038 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31039 int arg2 ;
31040 wxPoint *arg3 = (wxPoint *) 0 ;
31041 void *argp1 = 0 ;
31042 int res1 = 0 ;
31043 PyObject * obj0 = 0 ;
31044 PyObject * obj1 = 0 ;
31045 char * kwnames[] = {
31046 (char *) "self",(char *) "points", NULL
31047 };
31048
31049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
31050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31051 if (!SWIG_IsOK(res1)) {
31052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31053 }
31054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31055 {
31056 arg3 = wxPoint_LIST_helper(obj1, &arg2);
31057 if (arg3 == NULL) SWIG_fail;
31058 }
31059 {
31060 PyThreadState* __tstate = wxPyBeginAllowThreads();
31061 (arg1)->DrawSpline(arg2,arg3);
31062 wxPyEndAllowThreads(__tstate);
31063 if (PyErr_Occurred()) SWIG_fail;
31064 }
31065 resultobj = SWIG_Py_Void();
31066 {
31067 if (arg3) delete [] arg3;
31068 }
31069 return resultobj;
31070 fail:
31071 {
31072 if (arg3) delete [] arg3;
31073 }
31074 return NULL;
31075 }
31076
31077
31078 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31079 PyObject *resultobj = 0;
31080 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31081 void *argp1 = 0 ;
31082 int res1 = 0 ;
31083 PyObject *swig_obj[1] ;
31084
31085 if (!args) SWIG_fail;
31086 swig_obj[0] = args;
31087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31088 if (!SWIG_IsOK(res1)) {
31089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31090 }
31091 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31092 {
31093 PyThreadState* __tstate = wxPyBeginAllowThreads();
31094 (arg1)->Clear();
31095 wxPyEndAllowThreads(__tstate);
31096 if (PyErr_Occurred()) SWIG_fail;
31097 }
31098 resultobj = SWIG_Py_Void();
31099 return resultobj;
31100 fail:
31101 return NULL;
31102 }
31103
31104
31105 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31106 PyObject *resultobj = 0;
31107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31108 wxFont *arg2 = 0 ;
31109 void *argp1 = 0 ;
31110 int res1 = 0 ;
31111 void *argp2 = 0 ;
31112 int res2 = 0 ;
31113 PyObject * obj0 = 0 ;
31114 PyObject * obj1 = 0 ;
31115 char * kwnames[] = {
31116 (char *) "self",(char *) "font", NULL
31117 };
31118
31119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31121 if (!SWIG_IsOK(res1)) {
31122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31123 }
31124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31126 if (!SWIG_IsOK(res2)) {
31127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31128 }
31129 if (!argp2) {
31130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31131 }
31132 arg2 = reinterpret_cast< wxFont * >(argp2);
31133 {
31134 PyThreadState* __tstate = wxPyBeginAllowThreads();
31135 (arg1)->SetFont((wxFont const &)*arg2);
31136 wxPyEndAllowThreads(__tstate);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 }
31139 resultobj = SWIG_Py_Void();
31140 return resultobj;
31141 fail:
31142 return NULL;
31143 }
31144
31145
31146 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31147 PyObject *resultobj = 0;
31148 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31149 wxPen *arg2 = 0 ;
31150 void *argp1 = 0 ;
31151 int res1 = 0 ;
31152 void *argp2 = 0 ;
31153 int res2 = 0 ;
31154 PyObject * obj0 = 0 ;
31155 PyObject * obj1 = 0 ;
31156 char * kwnames[] = {
31157 (char *) "self",(char *) "pen", NULL
31158 };
31159
31160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
31161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31162 if (!SWIG_IsOK(res1)) {
31163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31164 }
31165 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31167 if (!SWIG_IsOK(res2)) {
31168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31169 }
31170 if (!argp2) {
31171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31172 }
31173 arg2 = reinterpret_cast< wxPen * >(argp2);
31174 {
31175 PyThreadState* __tstate = wxPyBeginAllowThreads();
31176 (arg1)->SetPen((wxPen const &)*arg2);
31177 wxPyEndAllowThreads(__tstate);
31178 if (PyErr_Occurred()) SWIG_fail;
31179 }
31180 resultobj = SWIG_Py_Void();
31181 return resultobj;
31182 fail:
31183 return NULL;
31184 }
31185
31186
31187 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31188 PyObject *resultobj = 0;
31189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31190 wxBrush *arg2 = 0 ;
31191 void *argp1 = 0 ;
31192 int res1 = 0 ;
31193 void *argp2 = 0 ;
31194 int res2 = 0 ;
31195 PyObject * obj0 = 0 ;
31196 PyObject * obj1 = 0 ;
31197 char * kwnames[] = {
31198 (char *) "self",(char *) "brush", NULL
31199 };
31200
31201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31203 if (!SWIG_IsOK(res1)) {
31204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31205 }
31206 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31208 if (!SWIG_IsOK(res2)) {
31209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31210 }
31211 if (!argp2) {
31212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31213 }
31214 arg2 = reinterpret_cast< wxBrush * >(argp2);
31215 {
31216 PyThreadState* __tstate = wxPyBeginAllowThreads();
31217 (arg1)->SetBrush((wxBrush const &)*arg2);
31218 wxPyEndAllowThreads(__tstate);
31219 if (PyErr_Occurred()) SWIG_fail;
31220 }
31221 resultobj = SWIG_Py_Void();
31222 return resultobj;
31223 fail:
31224 return NULL;
31225 }
31226
31227
31228 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31229 PyObject *resultobj = 0;
31230 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31231 wxBrush *arg2 = 0 ;
31232 void *argp1 = 0 ;
31233 int res1 = 0 ;
31234 void *argp2 = 0 ;
31235 int res2 = 0 ;
31236 PyObject * obj0 = 0 ;
31237 PyObject * obj1 = 0 ;
31238 char * kwnames[] = {
31239 (char *) "self",(char *) "brush", NULL
31240 };
31241
31242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31244 if (!SWIG_IsOK(res1)) {
31245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31246 }
31247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31249 if (!SWIG_IsOK(res2)) {
31250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31251 }
31252 if (!argp2) {
31253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31254 }
31255 arg2 = reinterpret_cast< wxBrush * >(argp2);
31256 {
31257 PyThreadState* __tstate = wxPyBeginAllowThreads();
31258 (arg1)->SetBackground((wxBrush const &)*arg2);
31259 wxPyEndAllowThreads(__tstate);
31260 if (PyErr_Occurred()) SWIG_fail;
31261 }
31262 resultobj = SWIG_Py_Void();
31263 return resultobj;
31264 fail:
31265 return NULL;
31266 }
31267
31268
31269 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31270 PyObject *resultobj = 0;
31271 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31272 int arg2 ;
31273 void *argp1 = 0 ;
31274 int res1 = 0 ;
31275 int val2 ;
31276 int ecode2 = 0 ;
31277 PyObject * obj0 = 0 ;
31278 PyObject * obj1 = 0 ;
31279 char * kwnames[] = {
31280 (char *) "self",(char *) "mode", NULL
31281 };
31282
31283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
31284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31285 if (!SWIG_IsOK(res1)) {
31286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31287 }
31288 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31289 ecode2 = SWIG_AsVal_int(obj1, &val2);
31290 if (!SWIG_IsOK(ecode2)) {
31291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
31292 }
31293 arg2 = static_cast< int >(val2);
31294 {
31295 PyThreadState* __tstate = wxPyBeginAllowThreads();
31296 (arg1)->SetBackgroundMode(arg2);
31297 wxPyEndAllowThreads(__tstate);
31298 if (PyErr_Occurred()) SWIG_fail;
31299 }
31300 resultobj = SWIG_Py_Void();
31301 return resultobj;
31302 fail:
31303 return NULL;
31304 }
31305
31306
31307 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31308 PyObject *resultobj = 0;
31309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31310 wxPalette *arg2 = 0 ;
31311 void *argp1 = 0 ;
31312 int res1 = 0 ;
31313 void *argp2 = 0 ;
31314 int res2 = 0 ;
31315 PyObject * obj0 = 0 ;
31316 PyObject * obj1 = 0 ;
31317 char * kwnames[] = {
31318 (char *) "self",(char *) "palette", NULL
31319 };
31320
31321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
31322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31323 if (!SWIG_IsOK(res1)) {
31324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31325 }
31326 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
31328 if (!SWIG_IsOK(res2)) {
31329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31330 }
31331 if (!argp2) {
31332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31333 }
31334 arg2 = reinterpret_cast< wxPalette * >(argp2);
31335 {
31336 PyThreadState* __tstate = wxPyBeginAllowThreads();
31337 (arg1)->SetPalette((wxPalette const &)*arg2);
31338 wxPyEndAllowThreads(__tstate);
31339 if (PyErr_Occurred()) SWIG_fail;
31340 }
31341 resultobj = SWIG_Py_Void();
31342 return resultobj;
31343 fail:
31344 return NULL;
31345 }
31346
31347
31348 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31349 PyObject *resultobj = 0;
31350 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31351 wxColour *arg2 = 0 ;
31352 void *argp1 = 0 ;
31353 int res1 = 0 ;
31354 wxColour temp2 ;
31355 PyObject * obj0 = 0 ;
31356 PyObject * obj1 = 0 ;
31357 char * kwnames[] = {
31358 (char *) "self",(char *) "colour", NULL
31359 };
31360
31361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
31362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31363 if (!SWIG_IsOK(res1)) {
31364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31365 }
31366 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31367 {
31368 arg2 = &temp2;
31369 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31370 }
31371 {
31372 PyThreadState* __tstate = wxPyBeginAllowThreads();
31373 (arg1)->SetTextForeground((wxColour const &)*arg2);
31374 wxPyEndAllowThreads(__tstate);
31375 if (PyErr_Occurred()) SWIG_fail;
31376 }
31377 resultobj = SWIG_Py_Void();
31378 return resultobj;
31379 fail:
31380 return NULL;
31381 }
31382
31383
31384 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31385 PyObject *resultobj = 0;
31386 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31387 wxColour *arg2 = 0 ;
31388 void *argp1 = 0 ;
31389 int res1 = 0 ;
31390 wxColour temp2 ;
31391 PyObject * obj0 = 0 ;
31392 PyObject * obj1 = 0 ;
31393 char * kwnames[] = {
31394 (char *) "self",(char *) "colour", NULL
31395 };
31396
31397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31399 if (!SWIG_IsOK(res1)) {
31400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31401 }
31402 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31403 {
31404 arg2 = &temp2;
31405 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31406 }
31407 {
31408 PyThreadState* __tstate = wxPyBeginAllowThreads();
31409 (arg1)->SetTextBackground((wxColour const &)*arg2);
31410 wxPyEndAllowThreads(__tstate);
31411 if (PyErr_Occurred()) SWIG_fail;
31412 }
31413 resultobj = SWIG_Py_Void();
31414 return resultobj;
31415 fail:
31416 return NULL;
31417 }
31418
31419
31420 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31421 PyObject *resultobj = 0;
31422 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31423 int arg2 ;
31424 void *argp1 = 0 ;
31425 int res1 = 0 ;
31426 int val2 ;
31427 int ecode2 = 0 ;
31428 PyObject * obj0 = 0 ;
31429 PyObject * obj1 = 0 ;
31430 char * kwnames[] = {
31431 (char *) "self",(char *) "function", NULL
31432 };
31433
31434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
31435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31436 if (!SWIG_IsOK(res1)) {
31437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31438 }
31439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31440 ecode2 = SWIG_AsVal_int(obj1, &val2);
31441 if (!SWIG_IsOK(ecode2)) {
31442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
31443 }
31444 arg2 = static_cast< int >(val2);
31445 {
31446 PyThreadState* __tstate = wxPyBeginAllowThreads();
31447 (arg1)->SetLogicalFunction(arg2);
31448 wxPyEndAllowThreads(__tstate);
31449 if (PyErr_Occurred()) SWIG_fail;
31450 }
31451 resultobj = SWIG_Py_Void();
31452 return resultobj;
31453 fail:
31454 return NULL;
31455 }
31456
31457
31458 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31459 PyObject *obj;
31460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31461 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
31462 return SWIG_Py_Void();
31463 }
31464
31465 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31466 return SWIG_Python_InitShadowInstance(args);
31467 }
31468
31469 static PyMethodDef SwigMethods[] = {
31470 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
31471 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
31472 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
31473 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
31474 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
31475 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
31476 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
31477 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31478 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
31479 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
31480 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
31481 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
31482 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
31483 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
31484 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31485 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31486 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31487 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
31488 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
31489 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31490 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31491 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
31492 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
31493 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
31494 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
31495 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
31496 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
31497 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31498 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31499 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
31500 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
31501 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
31502 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
31503 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
31504 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
31505 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
31506 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
31507 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
31508 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
31509 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
31510 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
31511 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
31512 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31513 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
31514 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31515 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31516 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31517 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
31518 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31519 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
31520 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
31521 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
31522 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31523 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31524 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
31525 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
31526 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
31527 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31528 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
31529 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31530 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31531 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
31532 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
31533 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
31534 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
31535 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
31536 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
31537 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
31538 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
31539 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31540 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
31541 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31542 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31543 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31544 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31545 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
31546 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
31547 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
31548 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
31549 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
31550 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
31551 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
31552 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
31553 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
31554 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
31555 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
31556 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
31557 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31558 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
31559 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
31560 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
31561 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31562 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31563 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31564 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31565 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31566 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31567 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31568 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31569 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31570 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
31571 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
31572 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
31573 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
31574 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
31575 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
31576 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
31577 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
31578 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
31579 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
31580 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
31581 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
31582 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
31583 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
31584 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
31585 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
31586 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
31587 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
31588 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
31589 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
31590 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31591 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
31592 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
31593 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31594 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31595 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31596 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31597 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31598 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
31599 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
31600 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
31601 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
31602 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
31603 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
31604 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
31605 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
31606 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
31607 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
31608 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
31609 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
31610 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31611 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
31612 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
31613 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31614 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31615 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31616 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31617 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31618 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
31619 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
31620 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
31621 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
31622 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
31623 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
31624 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
31625 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
31626 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
31627 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
31628 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31629 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31630 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31631 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
31632 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
31633 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
31634 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
31635 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
31636 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
31637 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
31638 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31639 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31640 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31641 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31642 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31643 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
31644 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
31645 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31646 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
31647 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
31648 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
31649 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
31650 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
31651 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
31652 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
31653 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
31654 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
31655 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31656 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31657 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
31658 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31659 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31660 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31661 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
31662 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
31663 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
31664 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
31665 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31666 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31667 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
31668 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
31669 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
31670 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
31671 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
31672 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
31673 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31674 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31675 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31676 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31677 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
31678 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
31679 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
31680 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31681 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31682 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
31683 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
31684 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
31685 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31686 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
31687 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31688 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
31689 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
31690 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
31691 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
31692 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
31693 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31694 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
31695 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
31696 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31697 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31698 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
31699 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
31700 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31701 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
31702 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
31703 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31704 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
31705 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31706 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31707 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
31708 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
31709 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
31710 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
31711 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
31712 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
31713 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
31714 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
31715 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
31716 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
31717 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
31718 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
31719 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
31720 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
31721 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
31722 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
31723 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
31724 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
31725 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
31726 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
31727 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
31728 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
31729 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
31730 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
31731 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
31732 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
31733 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
31734 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
31735 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
31736 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31737 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31738 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31739 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31740 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31741 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31742 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31743 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31744 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31745 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
31746 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
31747 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
31748 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
31749 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
31750 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
31751 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
31752 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
31753 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
31754 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
31755 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
31756 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
31757 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31758 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
31759 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
31760 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
31761 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31762 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31763 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
31764 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
31765 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
31766 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31767 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31768 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
31769 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31770 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
31771 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
31772 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31773 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
31774 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
31775 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31776 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31777 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
31778 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
31779 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
31780 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
31781 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
31782 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
31783 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31784 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
31785 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
31786 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31787 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31788 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
31789 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31790 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31791 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
31792 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
31793 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
31794 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
31795 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
31796 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
31797 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
31798 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
31799 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
31800 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
31801 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
31802 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
31803 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
31804 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31805 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31806 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31807 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31808 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31809 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31810 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31811 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31812 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31813 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
31814 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
31815 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
31816 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
31817 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
31818 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
31819 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
31820 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
31821 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31822 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
31823 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
31824 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
31825 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
31826 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31827 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
31828 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
31829 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
31830 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
31831 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
31832 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
31833 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
31834 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
31835 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
31836 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
31837 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
31838 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
31839 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
31840 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
31841 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
31842 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
31843 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
31844 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
31845 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
31846 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
31847 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
31848 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
31849 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
31850 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
31851 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
31852 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
31853 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
31854 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
31855 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
31856 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31857 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
31858 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31859 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
31860 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
31861 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
31862 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
31863 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
31864 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
31865 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
31866 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31867 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
31868 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
31869 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
31870 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
31871 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
31872 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
31873 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
31874 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
31875 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
31876 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
31877 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31878 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31879 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
31880 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
31881 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
31882 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
31883 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31884 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31885 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
31886 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
31887 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31888 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31889 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31890 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31891 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31892 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31893 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31894 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31895 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31896 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31897 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31898 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31899 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31900 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31901 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31902 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31903 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31904 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31905 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31906 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31907 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31908 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31909 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31910 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31911 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31912 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31913 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31914 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31915 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31916 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31917 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31918 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31919 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31920 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
31921 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31922 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31923 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31924 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31925 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
31926 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31927 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31928 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31929 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31930 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31931 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
31932 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
31933 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
31934 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
31935 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
31936 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31937 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31938 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31939 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31940 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31941 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31942 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
31943 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
31944 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
31945 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
31946 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
31947 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31948 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31949 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31950 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
31951 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
31952 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
31953 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
31954 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
31955 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
31956 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
31957 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31958 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31959 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
31960 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
31961 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31962 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31963 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
31964 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
31965 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
31966 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
31967 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
31968 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
31969 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
31970 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
31971 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
31972 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
31973 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
31974 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
31975 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31976 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31977 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31978 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31979 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31980 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31981 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31982 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31983 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31984 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31985 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31986 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31987 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31988 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31989 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31990 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31991 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31992 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31993 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31994 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31995 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31996 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31997 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31998 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31999 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
32000 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
32001 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
32002 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
32003 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
32004 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
32005 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
32006 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
32007 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
32008 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
32009 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
32010 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
32011 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
32012 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
32013 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
32014 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
32015 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
32016 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
32017 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
32018 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
32019 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
32020 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
32021 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
32022 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
32023 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
32024 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
32025 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
32026 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
32027 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
32028 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
32029 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
32030 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
32031 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
32032 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
32033 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
32034 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
32035 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
32036 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
32037 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
32038 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
32039 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
32040 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
32041 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
32042 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
32043 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
32044 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
32045 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
32046 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
32047 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
32048 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
32049 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
32050 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
32051 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
32052 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
32053 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
32054 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
32055 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
32056 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
32057 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
32058 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
32059 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
32060 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
32061 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
32062 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
32063 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
32064 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
32065 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
32066 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
32067 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
32068 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
32069 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
32070 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32071 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32072 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32073 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
32074 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
32075 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
32076 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
32077 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
32078 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32079 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
32080 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
32081 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
32082 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
32083 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
32084 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
32085 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32086 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32087 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32088 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32089 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32090 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
32091 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
32092 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
32093 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
32094 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
32095 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
32096 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
32097 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
32098 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
32099 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
32100 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32101 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32102 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32103 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
32104 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
32105 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
32106 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
32107 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
32108 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
32109 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
32110 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
32111 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
32112 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
32113 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
32114 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
32115 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
32116 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
32117 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
32118 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
32119 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
32120 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
32121 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
32122 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
32123 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
32124 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
32125 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
32126 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
32127 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32128 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
32129 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32130 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32131 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32132 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
32133 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32134 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
32135 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
32136 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
32137 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
32138 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
32139 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
32140 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
32141 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
32142 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
32143 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32144 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
32145 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
32146 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
32147 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
32148 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
32149 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
32150 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
32151 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
32152 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
32153 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
32154 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
32155 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
32156 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
32157 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
32158 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
32159 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
32160 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
32161 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
32162 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
32163 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32164 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
32165 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
32166 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
32167 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
32168 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
32169 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
32170 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
32171 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
32172 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
32173 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
32174 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
32175 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
32176 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32177 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32178 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32179 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
32180 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
32181 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32182 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
32183 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32184 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
32185 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32186 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
32187 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32188 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
32189 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32190 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
32191 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
32192 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
32193 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32194 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32195 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32196 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32197 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32198 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32199 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32200 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32201 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32202 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
32203 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32204 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
32205 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
32206 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32207 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32208 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32209 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32210 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32211 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
32212 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32213 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
32214 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32215 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
32216 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
32217 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32218 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32219 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
32220 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
32221 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32222 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32223 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32224 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32225 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
32226 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32227 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
32228 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32229 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
32230 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
32231 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
32232 { NULL, NULL, 0, NULL }
32233 };
32234
32235
32236 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32237
32238 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
32239 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
32240 }
32241 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
32242 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
32243 }
32244 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
32245 return (void *)((wxLocale *) ((wxPyLocale *) x));
32246 }
32247 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
32248 return (void *)((wxGDIObject *) ((wxIcon *) x));
32249 }
32250 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
32251 return (void *)((wxGDIObject *) ((wxPalette *) x));
32252 }
32253 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
32254 return (void *)((wxGDIObject *) ((wxPen *) x));
32255 }
32256 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
32257 return (void *)((wxGDIObject *) ((wxFont *) x));
32258 }
32259 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
32260 return (void *)((wxGDIObject *) ((wxCursor *) x));
32261 }
32262 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
32263 return (void *)((wxGDIObject *) ((wxBitmap *) x));
32264 }
32265 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
32266 return (void *)((wxGDIObject *) ((wxRegion *) x));
32267 }
32268 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
32269 return (void *)((wxGDIObject *) ((wxBrush *) x));
32270 }
32271 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
32272 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
32273 }
32274 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
32275 return (void *)((wxDC *) ((wxScreenDC *) x));
32276 }
32277 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
32278 return (void *)((wxDC *) ((wxMirrorDC *) x));
32279 }
32280 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
32281 return (void *)((wxDC *) ((wxMemoryDC *) x));
32282 }
32283 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
32284 return (void *)((wxDC *) ((wxWindowDC *) x));
32285 }
32286 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
32287 return (void *)((wxDC *) ((wxMetaFileDC *) x));
32288 }
32289 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
32290 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32291 }
32292 static void *_p_wxClientDCTo_p_wxDC(void *x) {
32293 return (void *)((wxDC *) ((wxClientDC *) x));
32294 }
32295 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
32296 return (void *)((wxDC *) ((wxPaintDC *) x));
32297 }
32298 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
32299 return (void *)((wxDC *) ((wxPostScriptDC *) x));
32300 }
32301 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
32302 return (void *)((wxDC *) ((wxPrinterDC *) x));
32303 }
32304 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
32305 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
32306 }
32307 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
32308 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
32309 }
32310 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
32311 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
32312 }
32313 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
32314 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
32315 }
32316 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32317 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32318 }
32319 static void *_p_wxPenTo_p_wxObject(void *x) {
32320 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
32321 }
32322 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
32323 return (void *)((wxObject *) ((wxRegionIterator *) x));
32324 }
32325 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32326 return (void *)((wxObject *) ((wxSizerItem *) x));
32327 }
32328 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32329 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32330 }
32331 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32332 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32333 }
32334 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32335 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32336 }
32337 static void *_p_wxIconTo_p_wxObject(void *x) {
32338 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
32339 }
32340 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32341 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32342 }
32343 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32344 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32345 }
32346 static void *_p_wxSizerTo_p_wxObject(void *x) {
32347 return (void *)((wxObject *) ((wxSizer *) x));
32348 }
32349 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32350 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32351 }
32352 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32354 }
32355 static void *_p_wxEventTo_p_wxObject(void *x) {
32356 return (void *)((wxObject *) ((wxEvent *) x));
32357 }
32358 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32359 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32360 }
32361 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32362 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32363 }
32364 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32365 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32366 }
32367 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
32368 return (void *)((wxObject *) ((wxPseudoDC *) x));
32369 }
32370 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
32371 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
32372 }
32373 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32374 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32375 }
32376 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32377 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32378 }
32379 static void *_p_wxDCTo_p_wxObject(void *x) {
32380 return (void *)((wxObject *) ((wxDC *) x));
32381 }
32382 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32383 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32384 }
32385 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32386 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32387 }
32388 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32389 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32390 }
32391 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32392 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32393 }
32394 static void *_p_wxControlTo_p_wxObject(void *x) {
32395 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32396 }
32397 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32398 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32399 }
32400 static void *_p_wxClientDCTo_p_wxObject(void *x) {
32401 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
32402 }
32403 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32404 return (void *)((wxObject *) ((wxFSFile *) x));
32405 }
32406 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
32407 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
32408 }
32409 static void *_p_wxRegionTo_p_wxObject(void *x) {
32410 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
32411 }
32412 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32413 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32414 }
32415 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
32416 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
32417 }
32418 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
32419 return (void *)((wxObject *) ((wxGDIObject *) x));
32420 }
32421 static void *_p_wxEffectsTo_p_wxObject(void *x) {
32422 return (void *)((wxObject *) ((wxEffects *) x));
32423 }
32424 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32425 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32426 }
32427 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32428 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32429 }
32430 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
32431 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
32432 }
32433 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32434 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32435 }
32436 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32437 return (void *)((wxObject *) ((wxMenuItem *) x));
32438 }
32439 static void *_p_wxDateEventTo_p_wxObject(void *x) {
32440 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
32441 }
32442 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32443 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32444 }
32445 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32446 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32447 }
32448 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32449 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32450 }
32451 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32452 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32453 }
32454 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32455 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32456 }
32457 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32458 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32459 }
32460 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32461 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32462 }
32463 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32464 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32465 }
32466 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32467 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32468 }
32469 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32470 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32471 }
32472 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32473 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32474 }
32475 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32476 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32477 }
32478 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32479 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32480 }
32481 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32482 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32483 }
32484 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32485 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32486 }
32487 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32488 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32489 }
32490 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32491 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32492 }
32493 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
32494 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
32495 }
32496 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32497 return (void *)((wxObject *) ((wxImageHandler *) x));
32498 }
32499 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32500 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32501 }
32502 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32503 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32504 }
32505 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32506 return (void *)((wxObject *) ((wxEvtHandler *) x));
32507 }
32508 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
32509 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
32510 }
32511 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
32512 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32513 }
32514 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
32515 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
32516 }
32517 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
32518 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
32519 }
32520 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
32521 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
32522 }
32523 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
32524 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
32525 }
32526 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32527 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32528 }
32529 static void *_p_wxImageTo_p_wxObject(void *x) {
32530 return (void *)((wxObject *) ((wxImage *) x));
32531 }
32532 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32533 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32534 }
32535 static void *_p_wxPaletteTo_p_wxObject(void *x) {
32536 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
32537 }
32538 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
32539 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
32540 }
32541 static void *_p_wxImageListTo_p_wxObject(void *x) {
32542 return (void *)((wxObject *) ((wxImageList *) x));
32543 }
32544 static void *_p_wxCursorTo_p_wxObject(void *x) {
32545 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
32546 }
32547 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
32548 return (void *)((wxObject *) ((wxEncodingConverter *) x));
32549 }
32550 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
32551 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
32552 }
32553 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32555 }
32556 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32557 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32558 }
32559 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32560 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32561 }
32562 static void *_p_wxWindowTo_p_wxObject(void *x) {
32563 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32564 }
32565 static void *_p_wxMenuTo_p_wxObject(void *x) {
32566 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32567 }
32568 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32569 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32570 }
32571 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
32572 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
32573 }
32574 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32575 return (void *)((wxObject *) ((wxFileSystem *) x));
32576 }
32577 static void *_p_wxBitmapTo_p_wxObject(void *x) {
32578 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
32579 }
32580 static void *_p_wxMaskTo_p_wxObject(void *x) {
32581 return (void *)((wxObject *) ((wxMask *) x));
32582 }
32583 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32584 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32585 }
32586 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32587 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32588 }
32589 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32590 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32591 }
32592 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32593 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32594 }
32595 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32596 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32597 }
32598 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32599 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32600 }
32601 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32602 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32603 }
32604 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32605 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32606 }
32607 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32608 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32609 }
32610 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32611 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32612 }
32613 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32614 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32615 }
32616 static void *_p_wxFontTo_p_wxObject(void *x) {
32617 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
32618 }
32619 static void *_p_wxBrushTo_p_wxObject(void *x) {
32620 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
32621 }
32622 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
32623 return (void *)((wxObject *) ((wxMetaFile *) x));
32624 }
32625 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32626 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32627 }
32628 static void *_p_wxColourTo_p_wxObject(void *x) {
32629 return (void *)((wxObject *) ((wxColour *) x));
32630 }
32631 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32632 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32633 }
32634 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32635 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32636 }
32637 static void *_p_wxControlTo_p_wxWindow(void *x) {
32638 return (void *)((wxWindow *) ((wxControl *) x));
32639 }
32640 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32641 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32642 }
32643 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32644 return (void *)((wxWindow *) ((wxMenuBar *) x));
32645 }
32646 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
32647 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
32648 }
32649 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
32650 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
32651 }
32652 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
32653 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
32654 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
32655 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};
32656 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
32657 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
32658 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
32659 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
32660 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
32661 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
32662 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
32663 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
32664 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
32665 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
32666 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
32667 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
32668 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
32669 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
32670 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
32671 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
32672 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
32673 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
32674 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
32675 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
32676 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
32677 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
32678 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
32679 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
32680 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
32681 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
32682 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
32683 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
32684 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
32685 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
32686 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
32687 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
32688 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
32689 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
32690 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
32691 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
32692 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
32693 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
32694 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
32695 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
32696 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
32697 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
32698 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
32699 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
32700 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
32701 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
32702 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
32703 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
32704 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
32705 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
32706 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
32707 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
32708 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
32709 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
32710 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
32711 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
32712 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
32713 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
32714 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
32715 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
32716 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
32717 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
32718 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
32719 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
32720 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
32721 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
32722 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
32723 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
32724 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
32725 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
32726 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
32727 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
32728 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
32729 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
32730 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
32731 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
32732 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
32733 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
32734 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
32735 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
32736 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
32737 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
32738 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
32739 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
32740 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
32741 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
32742 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
32743 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
32744 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
32745 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
32746 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
32747 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
32748 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
32749 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
32750 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
32751 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
32752 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
32753 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
32754 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
32755 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
32756 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
32757 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
32758 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
32759 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
32760 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
32761 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
32762 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
32763 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
32764 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
32765 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
32766 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
32767 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
32768 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
32769 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
32770 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
32771 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
32772 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
32773 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
32774 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
32775 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
32776 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
32777 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
32778 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
32779 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
32780 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
32781 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
32782 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
32783 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
32784 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
32785 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
32786 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
32787 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
32788 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
32789 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
32790 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
32791 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
32792 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
32793 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
32794 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
32795 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
32796 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
32797 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
32798 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
32799 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
32800
32801 static swig_type_info *swig_type_initial[] = {
32802 &_swigt__p_buffer,
32803 &_swigt__p_char,
32804 &_swigt__p_double,
32805 &_swigt__p_form_ops_t,
32806 &_swigt__p_int,
32807 &_swigt__p_unsigned_char,
32808 &_swigt__p_unsigned_int,
32809 &_swigt__p_unsigned_long,
32810 &_swigt__p_wxANIHandler,
32811 &_swigt__p_wxAcceleratorTable,
32812 &_swigt__p_wxActivateEvent,
32813 &_swigt__p_wxAlphaPixelData,
32814 &_swigt__p_wxAlphaPixelData_Accessor,
32815 &_swigt__p_wxBMPHandler,
32816 &_swigt__p_wxBitmap,
32817 &_swigt__p_wxBoxSizer,
32818 &_swigt__p_wxBrush,
32819 &_swigt__p_wxBrushList,
32820 &_swigt__p_wxBufferedDC,
32821 &_swigt__p_wxBufferedPaintDC,
32822 &_swigt__p_wxCURHandler,
32823 &_swigt__p_wxChar,
32824 &_swigt__p_wxChildFocusEvent,
32825 &_swigt__p_wxClientDC,
32826 &_swigt__p_wxClipboardTextEvent,
32827 &_swigt__p_wxCloseEvent,
32828 &_swigt__p_wxColour,
32829 &_swigt__p_wxColourDatabase,
32830 &_swigt__p_wxCommandEvent,
32831 &_swigt__p_wxContextMenuEvent,
32832 &_swigt__p_wxControl,
32833 &_swigt__p_wxControlWithItems,
32834 &_swigt__p_wxCursor,
32835 &_swigt__p_wxDC,
32836 &_swigt__p_wxDash,
32837 &_swigt__p_wxDateEvent,
32838 &_swigt__p_wxDisplayChangedEvent,
32839 &_swigt__p_wxDropFilesEvent,
32840 &_swigt__p_wxDuplexMode,
32841 &_swigt__p_wxEffects,
32842 &_swigt__p_wxEncodingConverter,
32843 &_swigt__p_wxEraseEvent,
32844 &_swigt__p_wxEvent,
32845 &_swigt__p_wxEvtHandler,
32846 &_swigt__p_wxFSFile,
32847 &_swigt__p_wxFileSystem,
32848 &_swigt__p_wxFlexGridSizer,
32849 &_swigt__p_wxFocusEvent,
32850 &_swigt__p_wxFont,
32851 &_swigt__p_wxFontList,
32852 &_swigt__p_wxFontMapper,
32853 &_swigt__p_wxGBSizerItem,
32854 &_swigt__p_wxGDIObjListBase,
32855 &_swigt__p_wxGDIObject,
32856 &_swigt__p_wxGIFHandler,
32857 &_swigt__p_wxGridBagSizer,
32858 &_swigt__p_wxGridSizer,
32859 &_swigt__p_wxICOHandler,
32860 &_swigt__p_wxIcon,
32861 &_swigt__p_wxIconBundle,
32862 &_swigt__p_wxIconLocation,
32863 &_swigt__p_wxIconizeEvent,
32864 &_swigt__p_wxIdleEvent,
32865 &_swigt__p_wxImage,
32866 &_swigt__p_wxImageHandler,
32867 &_swigt__p_wxImageList,
32868 &_swigt__p_wxIndividualLayoutConstraint,
32869 &_swigt__p_wxInitDialogEvent,
32870 &_swigt__p_wxJPEGHandler,
32871 &_swigt__p_wxKeyEvent,
32872 &_swigt__p_wxLanguageInfo,
32873 &_swigt__p_wxLayoutConstraints,
32874 &_swigt__p_wxLocale,
32875 &_swigt__p_wxMask,
32876 &_swigt__p_wxMaximizeEvent,
32877 &_swigt__p_wxMemoryDC,
32878 &_swigt__p_wxMenu,
32879 &_swigt__p_wxMenuBar,
32880 &_swigt__p_wxMenuEvent,
32881 &_swigt__p_wxMenuItem,
32882 &_swigt__p_wxMetaFile,
32883 &_swigt__p_wxMetaFileDC,
32884 &_swigt__p_wxMirrorDC,
32885 &_swigt__p_wxMouseCaptureChangedEvent,
32886 &_swigt__p_wxMouseCaptureLostEvent,
32887 &_swigt__p_wxMouseEvent,
32888 &_swigt__p_wxMoveEvent,
32889 &_swigt__p_wxNativeEncodingInfo,
32890 &_swigt__p_wxNativeFontInfo,
32891 &_swigt__p_wxNativePixelData,
32892 &_swigt__p_wxNativePixelData_Accessor,
32893 &_swigt__p_wxNavigationKeyEvent,
32894 &_swigt__p_wxNcPaintEvent,
32895 &_swigt__p_wxNotifyEvent,
32896 &_swigt__p_wxObject,
32897 &_swigt__p_wxPCXHandler,
32898 &_swigt__p_wxPNGHandler,
32899 &_swigt__p_wxPNMHandler,
32900 &_swigt__p_wxPaintDC,
32901 &_swigt__p_wxPaintEvent,
32902 &_swigt__p_wxPalette,
32903 &_swigt__p_wxPaletteChangedEvent,
32904 &_swigt__p_wxPaperSize,
32905 &_swigt__p_wxPen,
32906 &_swigt__p_wxPenList,
32907 &_swigt__p_wxPixelDataBase,
32908 &_swigt__p_wxPoint,
32909 &_swigt__p_wxPostScriptDC,
32910 &_swigt__p_wxPrintData,
32911 &_swigt__p_wxPrinterDC,
32912 &_swigt__p_wxPseudoDC,
32913 &_swigt__p_wxPyApp,
32914 &_swigt__p_wxPyCommandEvent,
32915 &_swigt__p_wxPyEvent,
32916 &_swigt__p_wxPyFontEnumerator,
32917 &_swigt__p_wxPyImageHandler,
32918 &_swigt__p_wxPyLocale,
32919 &_swigt__p_wxPySizer,
32920 &_swigt__p_wxPyValidator,
32921 &_swigt__p_wxQueryNewPaletteEvent,
32922 &_swigt__p_wxRect,
32923 &_swigt__p_wxRegion,
32924 &_swigt__p_wxRegionIterator,
32925 &_swigt__p_wxRendererNative,
32926 &_swigt__p_wxRendererVersion,
32927 &_swigt__p_wxScreenDC,
32928 &_swigt__p_wxScrollEvent,
32929 &_swigt__p_wxScrollWinEvent,
32930 &_swigt__p_wxSetCursorEvent,
32931 &_swigt__p_wxShowEvent,
32932 &_swigt__p_wxSize,
32933 &_swigt__p_wxSizeEvent,
32934 &_swigt__p_wxSizer,
32935 &_swigt__p_wxSizerItem,
32936 &_swigt__p_wxSplitterRenderParams,
32937 &_swigt__p_wxStaticBoxSizer,
32938 &_swigt__p_wxStdDialogButtonSizer,
32939 &_swigt__p_wxStockGDI,
32940 &_swigt__p_wxString,
32941 &_swigt__p_wxSysColourChangedEvent,
32942 &_swigt__p_wxTIFFHandler,
32943 &_swigt__p_wxUpdateUIEvent,
32944 &_swigt__p_wxValidator,
32945 &_swigt__p_wxWindow,
32946 &_swigt__p_wxWindowCreateEvent,
32947 &_swigt__p_wxWindowDC,
32948 &_swigt__p_wxWindowDestroyEvent,
32949 &_swigt__p_wxXPMHandler,
32950 };
32951
32952 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
32953 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
32954 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
32955 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
32956 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
32957 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
32958 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
32959 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
32960 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
32961 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32962 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
32963 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
32964 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
32965 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}};
32966 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32967 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
32968 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
32969 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
32970 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
32971 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
32972 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}};
32973 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
32974 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
32975 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
32976 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
32977 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
32978 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
32979 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
32980 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}};
32981 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}};
32982 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
32983 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
32984 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
32985 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32986 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32987 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
32988 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}};
32989 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32990 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}};
32991 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32992 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32993 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32994 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32995 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
32996 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32997 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32998 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
32999 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
33000 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
33001 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
33002 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
33003 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
33004 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
33005 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
33006 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
33007 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
33008 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
33009 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
33010 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
33011 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
33012 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
33013 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
33014 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
33015 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
33016 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33017 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33018 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33019 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33020 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
33021 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
33022 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
33023 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
33024 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
33025 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
33026 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
33027 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
33028 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
33029 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
33030 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
33031 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
33032 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33033 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33034 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33035 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
33036 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
33037 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
33038 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
33039 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
33040 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
33041 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
33042 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
33043 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
33044 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
33045 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
33046 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
33047 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
33048 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
33049 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
33050 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
33051 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
33052 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
33053 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
33054 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
33055 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
33056 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
33057 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
33058 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
33059 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
33060 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
33061 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
33062 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
33063 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
33064 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
33065 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
33066 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
33067 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
33068 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
33069 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
33070 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
33071 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
33072 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
33073 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
33074 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}};
33075 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
33076 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
33077 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
33078 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
33079 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
33080 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}};
33081 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
33082 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
33083 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
33084 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
33085 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
33086 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
33087 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
33088 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
33089 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
33090 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
33091 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
33092 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
33093 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
33094 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
33095 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
33096 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
33097 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
33098 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}};
33099 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
33100
33101 static swig_cast_info *swig_cast_initial[] = {
33102 _swigc__p_buffer,
33103 _swigc__p_char,
33104 _swigc__p_double,
33105 _swigc__p_form_ops_t,
33106 _swigc__p_int,
33107 _swigc__p_unsigned_char,
33108 _swigc__p_unsigned_int,
33109 _swigc__p_unsigned_long,
33110 _swigc__p_wxANIHandler,
33111 _swigc__p_wxAcceleratorTable,
33112 _swigc__p_wxActivateEvent,
33113 _swigc__p_wxAlphaPixelData,
33114 _swigc__p_wxAlphaPixelData_Accessor,
33115 _swigc__p_wxBMPHandler,
33116 _swigc__p_wxBitmap,
33117 _swigc__p_wxBoxSizer,
33118 _swigc__p_wxBrush,
33119 _swigc__p_wxBrushList,
33120 _swigc__p_wxBufferedDC,
33121 _swigc__p_wxBufferedPaintDC,
33122 _swigc__p_wxCURHandler,
33123 _swigc__p_wxChar,
33124 _swigc__p_wxChildFocusEvent,
33125 _swigc__p_wxClientDC,
33126 _swigc__p_wxClipboardTextEvent,
33127 _swigc__p_wxCloseEvent,
33128 _swigc__p_wxColour,
33129 _swigc__p_wxColourDatabase,
33130 _swigc__p_wxCommandEvent,
33131 _swigc__p_wxContextMenuEvent,
33132 _swigc__p_wxControl,
33133 _swigc__p_wxControlWithItems,
33134 _swigc__p_wxCursor,
33135 _swigc__p_wxDC,
33136 _swigc__p_wxDash,
33137 _swigc__p_wxDateEvent,
33138 _swigc__p_wxDisplayChangedEvent,
33139 _swigc__p_wxDropFilesEvent,
33140 _swigc__p_wxDuplexMode,
33141 _swigc__p_wxEffects,
33142 _swigc__p_wxEncodingConverter,
33143 _swigc__p_wxEraseEvent,
33144 _swigc__p_wxEvent,
33145 _swigc__p_wxEvtHandler,
33146 _swigc__p_wxFSFile,
33147 _swigc__p_wxFileSystem,
33148 _swigc__p_wxFlexGridSizer,
33149 _swigc__p_wxFocusEvent,
33150 _swigc__p_wxFont,
33151 _swigc__p_wxFontList,
33152 _swigc__p_wxFontMapper,
33153 _swigc__p_wxGBSizerItem,
33154 _swigc__p_wxGDIObjListBase,
33155 _swigc__p_wxGDIObject,
33156 _swigc__p_wxGIFHandler,
33157 _swigc__p_wxGridBagSizer,
33158 _swigc__p_wxGridSizer,
33159 _swigc__p_wxICOHandler,
33160 _swigc__p_wxIcon,
33161 _swigc__p_wxIconBundle,
33162 _swigc__p_wxIconLocation,
33163 _swigc__p_wxIconizeEvent,
33164 _swigc__p_wxIdleEvent,
33165 _swigc__p_wxImage,
33166 _swigc__p_wxImageHandler,
33167 _swigc__p_wxImageList,
33168 _swigc__p_wxIndividualLayoutConstraint,
33169 _swigc__p_wxInitDialogEvent,
33170 _swigc__p_wxJPEGHandler,
33171 _swigc__p_wxKeyEvent,
33172 _swigc__p_wxLanguageInfo,
33173 _swigc__p_wxLayoutConstraints,
33174 _swigc__p_wxLocale,
33175 _swigc__p_wxMask,
33176 _swigc__p_wxMaximizeEvent,
33177 _swigc__p_wxMemoryDC,
33178 _swigc__p_wxMenu,
33179 _swigc__p_wxMenuBar,
33180 _swigc__p_wxMenuEvent,
33181 _swigc__p_wxMenuItem,
33182 _swigc__p_wxMetaFile,
33183 _swigc__p_wxMetaFileDC,
33184 _swigc__p_wxMirrorDC,
33185 _swigc__p_wxMouseCaptureChangedEvent,
33186 _swigc__p_wxMouseCaptureLostEvent,
33187 _swigc__p_wxMouseEvent,
33188 _swigc__p_wxMoveEvent,
33189 _swigc__p_wxNativeEncodingInfo,
33190 _swigc__p_wxNativeFontInfo,
33191 _swigc__p_wxNativePixelData,
33192 _swigc__p_wxNativePixelData_Accessor,
33193 _swigc__p_wxNavigationKeyEvent,
33194 _swigc__p_wxNcPaintEvent,
33195 _swigc__p_wxNotifyEvent,
33196 _swigc__p_wxObject,
33197 _swigc__p_wxPCXHandler,
33198 _swigc__p_wxPNGHandler,
33199 _swigc__p_wxPNMHandler,
33200 _swigc__p_wxPaintDC,
33201 _swigc__p_wxPaintEvent,
33202 _swigc__p_wxPalette,
33203 _swigc__p_wxPaletteChangedEvent,
33204 _swigc__p_wxPaperSize,
33205 _swigc__p_wxPen,
33206 _swigc__p_wxPenList,
33207 _swigc__p_wxPixelDataBase,
33208 _swigc__p_wxPoint,
33209 _swigc__p_wxPostScriptDC,
33210 _swigc__p_wxPrintData,
33211 _swigc__p_wxPrinterDC,
33212 _swigc__p_wxPseudoDC,
33213 _swigc__p_wxPyApp,
33214 _swigc__p_wxPyCommandEvent,
33215 _swigc__p_wxPyEvent,
33216 _swigc__p_wxPyFontEnumerator,
33217 _swigc__p_wxPyImageHandler,
33218 _swigc__p_wxPyLocale,
33219 _swigc__p_wxPySizer,
33220 _swigc__p_wxPyValidator,
33221 _swigc__p_wxQueryNewPaletteEvent,
33222 _swigc__p_wxRect,
33223 _swigc__p_wxRegion,
33224 _swigc__p_wxRegionIterator,
33225 _swigc__p_wxRendererNative,
33226 _swigc__p_wxRendererVersion,
33227 _swigc__p_wxScreenDC,
33228 _swigc__p_wxScrollEvent,
33229 _swigc__p_wxScrollWinEvent,
33230 _swigc__p_wxSetCursorEvent,
33231 _swigc__p_wxShowEvent,
33232 _swigc__p_wxSize,
33233 _swigc__p_wxSizeEvent,
33234 _swigc__p_wxSizer,
33235 _swigc__p_wxSizerItem,
33236 _swigc__p_wxSplitterRenderParams,
33237 _swigc__p_wxStaticBoxSizer,
33238 _swigc__p_wxStdDialogButtonSizer,
33239 _swigc__p_wxStockGDI,
33240 _swigc__p_wxString,
33241 _swigc__p_wxSysColourChangedEvent,
33242 _swigc__p_wxTIFFHandler,
33243 _swigc__p_wxUpdateUIEvent,
33244 _swigc__p_wxValidator,
33245 _swigc__p_wxWindow,
33246 _swigc__p_wxWindowCreateEvent,
33247 _swigc__p_wxWindowDC,
33248 _swigc__p_wxWindowDestroyEvent,
33249 _swigc__p_wxXPMHandler,
33250 };
33251
33252
33253 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33254
33255 static swig_const_info swig_const_table[] = {
33256 {0, 0, 0, 0.0, 0, 0}};
33257
33258 #ifdef __cplusplus
33259 }
33260 #endif
33261 /* -----------------------------------------------------------------------------
33262 * Type initialization:
33263 * This problem is tough by the requirement that no dynamic
33264 * memory is used. Also, since swig_type_info structures store pointers to
33265 * swig_cast_info structures and swig_cast_info structures store pointers back
33266 * to swig_type_info structures, we need some lookup code at initialization.
33267 * The idea is that swig generates all the structures that are needed.
33268 * The runtime then collects these partially filled structures.
33269 * The SWIG_InitializeModule function takes these initial arrays out of
33270 * swig_module, and does all the lookup, filling in the swig_module.types
33271 * array with the correct data and linking the correct swig_cast_info
33272 * structures together.
33273 *
33274 * The generated swig_type_info structures are assigned staticly to an initial
33275 * array. We just loop though that array, and handle each type individually.
33276 * First we lookup if this type has been already loaded, and if so, use the
33277 * loaded structure instead of the generated one. Then we have to fill in the
33278 * cast linked list. The cast data is initially stored in something like a
33279 * two-dimensional array. Each row corresponds to a type (there are the same
33280 * number of rows as there are in the swig_type_initial array). Each entry in
33281 * a column is one of the swig_cast_info structures for that type.
33282 * The cast_initial array is actually an array of arrays, because each row has
33283 * a variable number of columns. So to actually build the cast linked list,
33284 * we find the array of casts associated with the type, and loop through it
33285 * adding the casts to the list. The one last trick we need to do is making
33286 * sure the type pointer in the swig_cast_info struct is correct.
33287 *
33288 * First off, we lookup the cast->type name to see if it is already loaded.
33289 * There are three cases to handle:
33290 * 1) If the cast->type has already been loaded AND the type we are adding
33291 * casting info to has not been loaded (it is in this module), THEN we
33292 * replace the cast->type pointer with the type pointer that has already
33293 * been loaded.
33294 * 2) If BOTH types (the one we are adding casting info to, and the
33295 * cast->type) are loaded, THEN the cast info has already been loaded by
33296 * the previous module so we just ignore it.
33297 * 3) Finally, if cast->type has not already been loaded, then we add that
33298 * swig_cast_info to the linked list (because the cast->type) pointer will
33299 * be correct.
33300 * ----------------------------------------------------------------------------- */
33301
33302 #ifdef __cplusplus
33303 extern "C" {
33304 #if 0
33305 } /* c-mode */
33306 #endif
33307 #endif
33308
33309 #if 0
33310 #define SWIGRUNTIME_DEBUG
33311 #endif
33312
33313 SWIGRUNTIME void
33314 SWIG_InitializeModule(void *clientdata) {
33315 size_t i;
33316 swig_module_info *module_head;
33317 static int init_run = 0;
33318
33319 clientdata = clientdata;
33320
33321 if (init_run) return;
33322 init_run = 1;
33323
33324 /* Initialize the swig_module */
33325 swig_module.type_initial = swig_type_initial;
33326 swig_module.cast_initial = swig_cast_initial;
33327
33328 /* Try and load any already created modules */
33329 module_head = SWIG_GetModule(clientdata);
33330 if (module_head) {
33331 swig_module.next = module_head->next;
33332 module_head->next = &swig_module;
33333 } else {
33334 /* This is the first module loaded */
33335 swig_module.next = &swig_module;
33336 SWIG_SetModule(clientdata, &swig_module);
33337 }
33338
33339 /* Now work on filling in swig_module.types */
33340 #ifdef SWIGRUNTIME_DEBUG
33341 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
33342 #endif
33343 for (i = 0; i < swig_module.size; ++i) {
33344 swig_type_info *type = 0;
33345 swig_type_info *ret;
33346 swig_cast_info *cast;
33347
33348 #ifdef SWIGRUNTIME_DEBUG
33349 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33350 #endif
33351
33352 /* if there is another module already loaded */
33353 if (swig_module.next != &swig_module) {
33354 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
33355 }
33356 if (type) {
33357 /* Overwrite clientdata field */
33358 #ifdef SWIGRUNTIME_DEBUG
33359 printf("SWIG_InitializeModule: found type %s\n", type->name);
33360 #endif
33361 if (swig_module.type_initial[i]->clientdata) {
33362 type->clientdata = swig_module.type_initial[i]->clientdata;
33363 #ifdef SWIGRUNTIME_DEBUG
33364 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
33365 #endif
33366 }
33367 } else {
33368 type = swig_module.type_initial[i];
33369 }
33370
33371 /* Insert casting types */
33372 cast = swig_module.cast_initial[i];
33373 while (cast->type) {
33374 /* Don't need to add information already in the list */
33375 ret = 0;
33376 #ifdef SWIGRUNTIME_DEBUG
33377 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
33378 #endif
33379 if (swig_module.next != &swig_module) {
33380 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
33381 #ifdef SWIGRUNTIME_DEBUG
33382 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
33383 #endif
33384 }
33385 if (ret) {
33386 if (type == swig_module.type_initial[i]) {
33387 #ifdef SWIGRUNTIME_DEBUG
33388 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
33389 #endif
33390 cast->type = ret;
33391 ret = 0;
33392 } else {
33393 /* Check for casting already in the list */
33394 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
33395 #ifdef SWIGRUNTIME_DEBUG
33396 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
33397 #endif
33398 if (!ocast) ret = 0;
33399 }
33400 }
33401
33402 if (!ret) {
33403 #ifdef SWIGRUNTIME_DEBUG
33404 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
33405 #endif
33406 if (type->cast) {
33407 type->cast->prev = cast;
33408 cast->next = type->cast;
33409 }
33410 type->cast = cast;
33411 }
33412 cast++;
33413 }
33414 /* Set entry in modules->types array equal to the type */
33415 swig_module.types[i] = type;
33416 }
33417 swig_module.types[i] = 0;
33418
33419 #ifdef SWIGRUNTIME_DEBUG
33420 printf("**** SWIG_InitializeModule: Cast List ******\n");
33421 for (i = 0; i < swig_module.size; ++i) {
33422 int j = 0;
33423 swig_cast_info *cast = swig_module.cast_initial[i];
33424 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33425 while (cast->type) {
33426 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
33427 cast++;
33428 ++j;
33429 }
33430 printf("---- Total casts: %d\n",j);
33431 }
33432 printf("**** SWIG_InitializeModule: Cast List ******\n");
33433 #endif
33434 }
33435
33436 /* This function will propagate the clientdata field of type to
33437 * any new swig_type_info structures that have been added into the list
33438 * of equivalent types. It is like calling
33439 * SWIG_TypeClientData(type, clientdata) a second time.
33440 */
33441 SWIGRUNTIME void
33442 SWIG_PropagateClientData(void) {
33443 size_t i;
33444 swig_cast_info *equiv;
33445 static int init_run = 0;
33446
33447 if (init_run) return;
33448 init_run = 1;
33449
33450 for (i = 0; i < swig_module.size; i++) {
33451 if (swig_module.types[i]->clientdata) {
33452 equiv = swig_module.types[i]->cast;
33453 while (equiv) {
33454 if (!equiv->converter) {
33455 if (equiv->type && !equiv->type->clientdata)
33456 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
33457 }
33458 equiv = equiv->next;
33459 }
33460 }
33461 }
33462 }
33463
33464 #ifdef __cplusplus
33465 #if 0
33466 {
33467 /* c-mode */
33468 #endif
33469 }
33470 #endif
33471
33472
33473
33474 #ifdef __cplusplus
33475 extern "C" {
33476 #endif
33477
33478 /* Python-specific SWIG API */
33479 #define SWIG_newvarlink() SWIG_Python_newvarlink()
33480 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
33481 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
33482
33483 /* -----------------------------------------------------------------------------
33484 * global variable support code.
33485 * ----------------------------------------------------------------------------- */
33486
33487 typedef struct swig_globalvar {
33488 char *name; /* Name of global variable */
33489 PyObject *(*get_attr)(void); /* Return the current value */
33490 int (*set_attr)(PyObject *); /* Set the value */
33491 struct swig_globalvar *next;
33492 } swig_globalvar;
33493
33494 typedef struct swig_varlinkobject {
33495 PyObject_HEAD
33496 swig_globalvar *vars;
33497 } swig_varlinkobject;
33498
33499 SWIGINTERN PyObject *
33500 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
33501 return PyString_FromString("<Swig global variables>");
33502 }
33503
33504 SWIGINTERN PyObject *
33505 swig_varlink_str(swig_varlinkobject *v) {
33506 PyObject *str = PyString_FromString("(");
33507 swig_globalvar *var;
33508 for (var = v->vars; var; var=var->next) {
33509 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
33510 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
33511 }
33512 PyString_ConcatAndDel(&str,PyString_FromString(")"));
33513 return str;
33514 }
33515
33516 SWIGINTERN int
33517 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
33518 PyObject *str = swig_varlink_str(v);
33519 fprintf(fp,"Swig global variables ");
33520 fprintf(fp,"%s\n", PyString_AsString(str));
33521 Py_DECREF(str);
33522 return 0;
33523 }
33524
33525 SWIGINTERN void
33526 swig_varlink_dealloc(swig_varlinkobject *v) {
33527 swig_globalvar *var = v->vars;
33528 while (var) {
33529 swig_globalvar *n = var->next;
33530 free(var->name);
33531 free(var);
33532 var = n;
33533 }
33534 }
33535
33536 SWIGINTERN PyObject *
33537 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
33538 PyObject *res = NULL;
33539 swig_globalvar *var = v->vars;
33540 while (var) {
33541 if (strcmp(var->name,n) == 0) {
33542 res = (*var->get_attr)();
33543 break;
33544 }
33545 var = var->next;
33546 }
33547 if (res == NULL && !PyErr_Occurred()) {
33548 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
33549 }
33550 return res;
33551 }
33552
33553 SWIGINTERN int
33554 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
33555 int res = 1;
33556 swig_globalvar *var = v->vars;
33557 while (var) {
33558 if (strcmp(var->name,n) == 0) {
33559 res = (*var->set_attr)(p);
33560 break;
33561 }
33562 var = var->next;
33563 }
33564 if (res == 1 && !PyErr_Occurred()) {
33565 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
33566 }
33567 return res;
33568 }
33569
33570 SWIGINTERN PyTypeObject*
33571 swig_varlink_type(void) {
33572 static char varlink__doc__[] = "Swig var link object";
33573 static PyTypeObject varlink_type;
33574 static int type_init = 0;
33575 if (!type_init) {
33576 const PyTypeObject tmp
33577 = {
33578 PyObject_HEAD_INIT(NULL)
33579 0, /* Number of items in variable part (ob_size) */
33580 (char *)"swigvarlink", /* Type name (tp_name) */
33581 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
33582 0, /* Itemsize (tp_itemsize) */
33583 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
33584 (printfunc) swig_varlink_print, /* Print (tp_print) */
33585 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
33586 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
33587 0, /* tp_compare */
33588 (reprfunc) swig_varlink_repr, /* tp_repr */
33589 0, /* tp_as_number */
33590 0, /* tp_as_sequence */
33591 0, /* tp_as_mapping */
33592 0, /* tp_hash */
33593 0, /* tp_call */
33594 (reprfunc)swig_varlink_str, /* tp_str */
33595 0, /* tp_getattro */
33596 0, /* tp_setattro */
33597 0, /* tp_as_buffer */
33598 0, /* tp_flags */
33599 varlink__doc__, /* tp_doc */
33600 0, /* tp_traverse */
33601 0, /* tp_clear */
33602 0, /* tp_richcompare */
33603 0, /* tp_weaklistoffset */
33604 #if PY_VERSION_HEX >= 0x02020000
33605 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
33606 #endif
33607 #if PY_VERSION_HEX >= 0x02030000
33608 0, /* tp_del */
33609 #endif
33610 #ifdef COUNT_ALLOCS
33611 0,0,0,0 /* tp_alloc -> tp_next */
33612 #endif
33613 };
33614 varlink_type = tmp;
33615 varlink_type.ob_type = &PyType_Type;
33616 type_init = 1;
33617 }
33618 return &varlink_type;
33619 }
33620
33621 /* Create a variable linking object for use later */
33622 SWIGINTERN PyObject *
33623 SWIG_Python_newvarlink(void) {
33624 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
33625 if (result) {
33626 result->vars = 0;
33627 }
33628 return ((PyObject*) result);
33629 }
33630
33631 SWIGINTERN void
33632 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
33633 swig_varlinkobject *v = (swig_varlinkobject *) p;
33634 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
33635 if (gv) {
33636 size_t size = strlen(name)+1;
33637 gv->name = (char *)malloc(size);
33638 if (gv->name) {
33639 strncpy(gv->name,name,size);
33640 gv->get_attr = get_attr;
33641 gv->set_attr = set_attr;
33642 gv->next = v->vars;
33643 }
33644 }
33645 v->vars = gv;
33646 }
33647
33648 SWIGINTERN PyObject *
33649 SWIG_globals() {
33650 static PyObject *_SWIG_globals = 0;
33651 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
33652 return _SWIG_globals;
33653 }
33654
33655 /* -----------------------------------------------------------------------------
33656 * constants/methods manipulation
33657 * ----------------------------------------------------------------------------- */
33658
33659 /* Install Constants */
33660 SWIGINTERN void
33661 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
33662 PyObject *obj = 0;
33663 size_t i;
33664 for (i = 0; constants[i].type; ++i) {
33665 switch(constants[i].type) {
33666 case SWIG_PY_POINTER:
33667 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
33668 break;
33669 case SWIG_PY_BINARY:
33670 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
33671 break;
33672 default:
33673 obj = 0;
33674 break;
33675 }
33676 if (obj) {
33677 PyDict_SetItemString(d, constants[i].name, obj);
33678 Py_DECREF(obj);
33679 }
33680 }
33681 }
33682
33683 /* -----------------------------------------------------------------------------*/
33684 /* Fix SwigMethods to carry the callback ptrs when needed */
33685 /* -----------------------------------------------------------------------------*/
33686
33687 SWIGINTERN void
33688 SWIG_Python_FixMethods(PyMethodDef *methods,
33689 swig_const_info *const_table,
33690 swig_type_info **types,
33691 swig_type_info **types_initial) {
33692 size_t i;
33693 for (i = 0; methods[i].ml_name; ++i) {
33694 const char *c = methods[i].ml_doc;
33695 if (c && (c = strstr(c, "swig_ptr: "))) {
33696 int j;
33697 swig_const_info *ci = 0;
33698 const char *name = c + 10;
33699 for (j = 0; const_table[j].type; ++j) {
33700 if (strncmp(const_table[j].name, name,
33701 strlen(const_table[j].name)) == 0) {
33702 ci = &(const_table[j]);
33703 break;
33704 }
33705 }
33706 if (ci) {
33707 size_t shift = (ci->ptype) - types;
33708 swig_type_info *ty = types_initial[shift];
33709 size_t ldoc = (c - methods[i].ml_doc);
33710 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
33711 char *ndoc = (char*)malloc(ldoc + lptr + 10);
33712 if (ndoc) {
33713 char *buff = ndoc;
33714 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
33715 if (ptr) {
33716 strncpy(buff, methods[i].ml_doc, ldoc);
33717 buff += ldoc;
33718 strncpy(buff, "swig_ptr: ", 10);
33719 buff += 10;
33720 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
33721 methods[i].ml_doc = ndoc;
33722 }
33723 }
33724 }
33725 }
33726 }
33727 }
33728
33729 #ifdef __cplusplus
33730 }
33731 #endif
33732
33733 /* -----------------------------------------------------------------------------*
33734 * Partial Init method
33735 * -----------------------------------------------------------------------------*/
33736
33737 #ifdef __cplusplus
33738 extern "C"
33739 #endif
33740 SWIGEXPORT void SWIG_init(void) {
33741 PyObject *m, *d;
33742
33743 /* Fix SwigMethods to carry the callback ptrs when needed */
33744 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
33745
33746 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33747 d = PyModule_GetDict(m);
33748
33749 SWIG_InitializeModule(0);
33750 SWIG_InstallConstants(d,swig_const_table);
33751
33752
33753 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
33754 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
33755 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
33756 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
33757 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
33758 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
33759 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
33760 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
33761 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
33762 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
33763 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
33764 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
33765 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
33766 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
33767 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
33768 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
33769 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
33770 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
33771 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
33772 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
33773 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
33774 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
33775 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
33776 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
33777 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
33778 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
33779 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
33780 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
33781 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
33782 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
33783 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
33784 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
33785 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
33786 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
33787 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
33788 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
33789 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
33790 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
33791 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
33792 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
33793 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
33794 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
33795 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
33796 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
33797 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
33798 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
33799 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
33800 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
33801 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
33802 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
33803 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
33804 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
33805 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
33806 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
33807 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
33808 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
33809 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
33810 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
33811 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
33812 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
33813 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
33814 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
33815 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
33816 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
33817 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
33818 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
33819 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
33820 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
33821 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
33822 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
33823 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
33824 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
33825 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
33826 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
33827 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
33828 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
33829 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
33830 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
33831 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
33832 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
33833 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
33834 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
33835 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
33836 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
33837 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
33838 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
33839 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
33840 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
33841 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
33842 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
33843 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
33844 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
33845 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
33846 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
33847 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
33848 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
33849 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
33850 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
33851 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
33852 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
33853 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
33854 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
33855 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
33856 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
33857 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
33858 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
33859 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
33860 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
33861 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
33862 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
33863 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
33864 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
33865 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
33866 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
33867 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
33868 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
33869 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
33870 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
33871 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
33872 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
33873 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
33874 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
33875 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
33876 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
33877 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
33878 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
33879 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
33880 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
33881 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
33882 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
33883 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
33884 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
33885
33886 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
33887
33888 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
33889 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
33890 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
33891 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
33892 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
33893 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
33894 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
33895 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
33896 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
33897 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
33898 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
33899 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
33900 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
33901 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
33902 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
33903 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
33904 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
33905 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
33906 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
33907 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
33908 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
33909 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
33910 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
33911 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
33912 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
33913 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
33914 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
33915 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
33916 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
33917 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
33918 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
33919 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
33920 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
33921 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
33922 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
33923 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
33924 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
33925 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
33926 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
33927 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
33928 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
33929 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
33930 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
33931 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
33932 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
33933 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
33934 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
33935 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
33936 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
33937 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
33938 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
33939 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
33940 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
33941 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
33942 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
33943 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
33944 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
33945 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
33946 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
33947 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
33948 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
33949 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
33950 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
33951 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
33952 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
33953 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
33954 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
33955 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
33956 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
33957 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
33958 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
33959 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
33960 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
33961 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
33962 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
33963 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
33964 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
33965 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
33966 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
33967 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
33968 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
33969 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
33970 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
33971 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
33972 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
33973 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
33974 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
33975 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
33976 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
33977 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
33978 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
33979 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
33980 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
33981 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
33982 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
33983 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
33984 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
33985 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33986 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33987 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33988 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33989 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33990 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33991 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33992 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33993 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33994 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33995 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33996 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33997 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33998 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33999 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
34000 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
34001 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
34002 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
34003 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
34004 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
34005 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
34006 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
34007 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
34008 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
34009 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
34010 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
34011 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
34012 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
34013 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
34014 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
34015 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
34016 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
34017 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
34018 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
34019 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
34020 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
34021 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
34022 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
34023 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
34024 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
34025 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
34026 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
34027 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
34028 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
34029 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
34030 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
34031 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
34032 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
34033 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
34034 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
34035 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
34036 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
34037 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
34038 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
34039 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
34040 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
34041 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
34042 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
34043 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
34044 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
34045 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
34046 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
34047 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
34048 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
34049 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
34050 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
34051 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
34052 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
34053 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
34054 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
34055 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
34056 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
34057 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
34058 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
34059 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
34060 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
34061 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
34062 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
34063 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
34064 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
34065 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
34066 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
34067 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
34068 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
34069 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
34070 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
34071 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
34072 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
34073 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
34074 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
34075 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
34076 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
34077 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
34078 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
34079 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
34080 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
34081 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
34082 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
34083 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
34084 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
34085 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
34086 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
34087 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
34088 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
34089 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
34090 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
34091 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
34092 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
34093 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
34094 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
34095 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
34096 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
34097 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
34098 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
34099 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
34100 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
34101 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
34102 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
34103 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
34104 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
34105 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
34106 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
34107 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
34108 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
34109 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
34110 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
34111 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
34112 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
34113 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
34114 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
34115 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
34116 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
34117 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
34118 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
34119 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
34120 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
34121 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
34122 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
34123 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
34124 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
34125 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
34126 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
34127 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
34128 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
34129 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
34130 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
34131 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
34132 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
34133 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
34134 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
34135 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
34136 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
34137 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
34138 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
34139 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
34140 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
34141 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
34142 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
34143 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
34144 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
34145 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
34146 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
34147 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
34148 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
34149 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
34150 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
34151 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
34152 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
34153 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
34154 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
34155 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
34156 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
34157 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
34158 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
34159 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
34160 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
34161 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
34162 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
34163 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
34164 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
34165 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
34166 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
34167 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
34168 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
34169 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
34170 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
34171 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
34172 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
34173 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
34174 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
34175 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
34176 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
34177 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
34178 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
34179 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
34180 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
34181 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
34182 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
34183 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
34184 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
34185 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
34186 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
34187 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
34188 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
34189 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
34190 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
34191 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
34192 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
34193 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
34194 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
34195 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
34196 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
34197 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
34198 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
34199 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
34200 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
34201 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
34202
34203 // Work around a chicken/egg problem in drawlist.cpp
34204 wxPyDrawList_SetAPIPtr();
34205
34206 }
34207